diff --git a/assets/KaTeX_AMS-Regular-UIXRTGNW.woff2 b/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 similarity index 100% rename from assets/KaTeX_AMS-Regular-UIXRTGNW.woff2 rename to assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 diff --git a/assets/KaTeX_AMS-Regular-zJvWDgGp.woff b/assets/KaTeX_AMS-Regular-DMm9YOAa.woff similarity index 100% rename from assets/KaTeX_AMS-Regular-zJvWDgGp.woff rename to assets/KaTeX_AMS-Regular-DMm9YOAa.woff diff --git a/assets/KaTeX_AMS-Regular-0YIAJWTb.ttf b/assets/KaTeX_AMS-Regular-DRggAlZN.ttf similarity index 100% rename from assets/KaTeX_AMS-Regular-0YIAJWTb.ttf rename to assets/KaTeX_AMS-Regular-DRggAlZN.ttf diff --git a/assets/KaTeX_Caligraphic-Bold-AE18XbF9.ttf b/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf similarity index 100% rename from assets/KaTeX_Caligraphic-Bold-AE18XbF9.ttf rename to assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf diff --git a/assets/KaTeX_Caligraphic-Bold-RIlxi71x.woff b/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff similarity index 100% rename from assets/KaTeX_Caligraphic-Bold-RIlxi71x.woff rename to assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff diff --git a/assets/KaTeX_Caligraphic-Bold-6vyEfazt.woff2 b/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 similarity index 100% rename from assets/KaTeX_Caligraphic-Bold-6vyEfazt.woff2 rename to assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 diff --git a/assets/KaTeX_Caligraphic-Regular-k0QPq0y-.woff b/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff similarity index 100% rename from assets/KaTeX_Caligraphic-Regular-k0QPq0y-.woff rename to assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff diff --git a/assets/KaTeX_Caligraphic-Regular-4uo0fsfh.woff2 b/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 similarity index 100% rename from assets/KaTeX_Caligraphic-Regular-4uo0fsfh.woff2 rename to assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 diff --git a/assets/KaTeX_Caligraphic-Regular-MF_e1AYw.ttf b/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf similarity index 100% rename from assets/KaTeX_Caligraphic-Regular-MF_e1AYw.ttf rename to assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf diff --git a/assets/KaTeX_Fraktur-Bold-XZxETTVq.ttf b/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf similarity index 100% rename from assets/KaTeX_Fraktur-Bold-XZxETTVq.ttf rename to assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf diff --git a/assets/KaTeX_Fraktur-Bold-bAz-dThZ.woff b/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff similarity index 100% rename from assets/KaTeX_Fraktur-Bold-bAz-dThZ.woff rename to assets/KaTeX_Fraktur-Bold-BsDP51OF.woff diff --git a/assets/KaTeX_Fraktur-Bold-i-oP291Y.woff2 b/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 similarity index 100% rename from assets/KaTeX_Fraktur-Bold-i-oP291Y.woff2 rename to assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 diff --git a/assets/KaTeX_Fraktur-Regular-gf8Lq3rE.ttf b/assets/KaTeX_Fraktur-Regular-CB_wures.ttf similarity index 100% rename from assets/KaTeX_Fraktur-Regular-gf8Lq3rE.ttf rename to assets/KaTeX_Fraktur-Regular-CB_wures.ttf diff --git a/assets/KaTeX_Fraktur-Regular-k2IhepQP.woff2 b/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 similarity index 100% rename from assets/KaTeX_Fraktur-Regular-k2IhepQP.woff2 rename to assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 diff --git a/assets/KaTeX_Fraktur-Regular-8XXOHEfX.woff b/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff similarity index 100% rename from assets/KaTeX_Fraktur-Regular-8XXOHEfX.woff rename to assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff diff --git a/assets/KaTeX_Main-Bold-sffOiHVw.woff2 b/assets/KaTeX_Main-Bold-Cx986IdX.woff2 similarity index 100% rename from assets/KaTeX_Main-Bold-sffOiHVw.woff2 rename to assets/KaTeX_Main-Bold-Cx986IdX.woff2 diff --git a/assets/KaTeX_Main-Bold-CZtwCMuf.woff b/assets/KaTeX_Main-Bold-Jm3AIy58.woff similarity index 100% rename from assets/KaTeX_Main-Bold-CZtwCMuf.woff rename to assets/KaTeX_Main-Bold-Jm3AIy58.woff diff --git a/assets/KaTeX_Main-Bold-MGqDlVzd.ttf b/assets/KaTeX_Main-Bold-waoOVXN0.ttf similarity index 100% rename from assets/KaTeX_Main-Bold-MGqDlVzd.ttf rename to assets/KaTeX_Main-Bold-waoOVXN0.ttf diff --git a/assets/KaTeX_Main-BoldItalic-8QydwDku.woff2 b/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 similarity index 100% rename from assets/KaTeX_Main-BoldItalic-8QydwDku.woff2 rename to assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 diff --git a/assets/KaTeX_Main-BoldItalic-88TzJhul.ttf b/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf similarity index 100% rename from assets/KaTeX_Main-BoldItalic-88TzJhul.ttf rename to assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf diff --git a/assets/KaTeX_Main-BoldItalic-EqUi0SPe.woff b/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff similarity index 100% rename from assets/KaTeX_Main-BoldItalic-EqUi0SPe.woff rename to assets/KaTeX_Main-BoldItalic-SpSLRI95.woff diff --git a/assets/KaTeX_Main-Italic-N1npxqDf.ttf b/assets/KaTeX_Main-Italic-3WenGoN9.ttf similarity index 100% rename from assets/KaTeX_Main-Italic-N1npxqDf.ttf rename to assets/KaTeX_Main-Italic-3WenGoN9.ttf diff --git a/assets/KaTeX_Main-Italic-TCzgZvdR.woff b/assets/KaTeX_Main-Italic-BMLOBm91.woff similarity index 100% rename from assets/KaTeX_Main-Italic-TCzgZvdR.woff rename to assets/KaTeX_Main-Italic-BMLOBm91.woff diff --git a/assets/KaTeX_Main-Italic-DVgO3ulm.woff2 b/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 similarity index 100% rename from assets/KaTeX_Main-Italic-DVgO3ulm.woff2 rename to assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 diff --git a/assets/KaTeX_Main-Regular-dtjb4qKe.woff2 b/assets/KaTeX_Main-Regular-B22Nviop.woff2 similarity index 100% rename from assets/KaTeX_Main-Regular-dtjb4qKe.woff2 rename to assets/KaTeX_Main-Regular-B22Nviop.woff2 diff --git a/assets/KaTeX_Main-Regular-6_eCWgYQ.woff b/assets/KaTeX_Main-Regular-Dr94JaBh.woff similarity index 100% rename from assets/KaTeX_Main-Regular-6_eCWgYQ.woff rename to assets/KaTeX_Main-Regular-Dr94JaBh.woff diff --git a/assets/KaTeX_Main-Regular-MqWbzbVV.ttf b/assets/KaTeX_Main-Regular-ypZvNtVU.ttf similarity index 100% rename from assets/KaTeX_Main-Regular-MqWbzbVV.ttf rename to assets/KaTeX_Main-Regular-ypZvNtVU.ttf diff --git a/assets/KaTeX_Math-BoldItalic-d10o37uD.ttf b/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf similarity index 100% rename from assets/KaTeX_Math-BoldItalic-d10o37uD.ttf rename to assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf diff --git a/assets/KaTeX_Math-BoldItalic-mZ7zbAmZ.woff2 b/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 similarity index 100% rename from assets/KaTeX_Math-BoldItalic-mZ7zbAmZ.woff2 rename to assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 diff --git a/assets/KaTeX_Math-BoldItalic-ImPtsMme.woff b/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff similarity index 100% rename from assets/KaTeX_Math-BoldItalic-ImPtsMme.woff rename to assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff diff --git a/assets/KaTeX_Math-Italic-wNP_z16f.woff b/assets/KaTeX_Math-Italic-DA0__PXp.woff similarity index 100% rename from assets/KaTeX_Math-Italic-wNP_z16f.woff rename to assets/KaTeX_Math-Italic-DA0__PXp.woff diff --git a/assets/KaTeX_Math-Italic-H5Tq_9FA.ttf b/assets/KaTeX_Math-Italic-flOr_0UB.ttf similarity index 100% rename from assets/KaTeX_Math-Italic-H5Tq_9FA.ttf rename to assets/KaTeX_Math-Italic-flOr_0UB.ttf diff --git a/assets/KaTeX_Math-Italic-LedwBEzP.woff2 b/assets/KaTeX_Math-Italic-t53AETM-.woff2 similarity index 100% rename from assets/KaTeX_Math-Italic-LedwBEzP.woff2 rename to assets/KaTeX_Math-Italic-t53AETM-.woff2 diff --git a/assets/KaTeX_SansSerif-Bold-hTHqZ76u.ttf b/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf similarity index 100% rename from assets/KaTeX_SansSerif-Bold-hTHqZ76u.ttf rename to assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf diff --git a/assets/KaTeX_SansSerif-Bold-9bFEtBg9.woff2 b/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 similarity index 100% rename from assets/KaTeX_SansSerif-Bold-9bFEtBg9.woff2 rename to assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 diff --git a/assets/KaTeX_SansSerif-Bold-2yISjogg.woff b/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff similarity index 100% rename from assets/KaTeX_SansSerif-Bold-2yISjogg.woff rename to assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff diff --git a/assets/KaTeX_SansSerif-Italic-tx9FahgZ.woff2 b/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 similarity index 100% rename from assets/KaTeX_SansSerif-Italic-tx9FahgZ.woff2 rename to assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 diff --git a/assets/KaTeX_SansSerif-Italic-Azdo-3Wm.woff b/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff similarity index 100% rename from assets/KaTeX_SansSerif-Italic-Azdo-3Wm.woff rename to assets/KaTeX_SansSerif-Italic-DN2j7dab.woff diff --git a/assets/KaTeX_SansSerif-Italic-GGIydc0p.ttf b/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf similarity index 100% rename from assets/KaTeX_SansSerif-Italic-GGIydc0p.ttf rename to assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf diff --git a/assets/KaTeX_SansSerif-Regular-TaO4USHJ.ttf b/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf similarity index 100% rename from assets/KaTeX_SansSerif-Regular-TaO4USHJ.ttf rename to assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf diff --git a/assets/KaTeX_SansSerif-Regular-kun6lKiW.woff b/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff similarity index 100% rename from assets/KaTeX_SansSerif-Regular-kun6lKiW.woff rename to assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff diff --git a/assets/KaTeX_SansSerif-Regular-wwQp5Se8.woff2 b/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 similarity index 100% rename from assets/KaTeX_SansSerif-Regular-wwQp5Se8.woff2 rename to assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 diff --git a/assets/KaTeX_Script-Regular-uSZBlqPg.ttf b/assets/KaTeX_Script-Regular-C5JkGWo-.ttf similarity index 100% rename from assets/KaTeX_Script-Regular-uSZBlqPg.ttf rename to assets/KaTeX_Script-Regular-C5JkGWo-.ttf diff --git a/assets/KaTeX_Script-Regular-98CFnxev.woff2 b/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 similarity index 100% rename from assets/KaTeX_Script-Regular-98CFnxev.woff2 rename to assets/KaTeX_Script-Regular-D3wIWfF6.woff2 diff --git a/assets/KaTeX_Script-Regular--ckFYqpa.woff b/assets/KaTeX_Script-Regular-D5yQViql.woff similarity index 100% rename from assets/KaTeX_Script-Regular--ckFYqpa.woff rename to assets/KaTeX_Script-Regular-D5yQViql.woff diff --git a/assets/KaTeX_Size1-Regular-tfebZ-uE.woff b/assets/KaTeX_Size1-Regular-C195tn64.woff similarity index 100% rename from assets/KaTeX_Size1-Regular-tfebZ-uE.woff rename to assets/KaTeX_Size1-Regular-C195tn64.woff diff --git a/assets/KaTeX_Size1-Regular-27J7nvyK.ttf b/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf similarity index 100% rename from assets/KaTeX_Size1-Regular-27J7nvyK.ttf rename to assets/KaTeX_Size1-Regular-Dbsnue_I.ttf diff --git a/assets/KaTeX_Size1-Regular-Jgg_JgPA.woff2 b/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 similarity index 100% rename from assets/KaTeX_Size1-Regular-Jgg_JgPA.woff2 rename to assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 diff --git a/assets/KaTeX_Size2-Regular-e4ClFoQr.ttf b/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf similarity index 100% rename from assets/KaTeX_Size2-Regular-e4ClFoQr.ttf rename to assets/KaTeX_Size2-Regular-B7gKUWhC.ttf diff --git a/assets/KaTeX_Size2-Regular-8uHcfdJu.woff2 b/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 similarity index 100% rename from assets/KaTeX_Size2-Regular-8uHcfdJu.woff2 rename to assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 diff --git a/assets/KaTeX_Size2-Regular-KA9bXP1N.woff b/assets/KaTeX_Size2-Regular-oD1tc_U0.woff similarity index 100% rename from assets/KaTeX_Size2-Regular-KA9bXP1N.woff rename to assets/KaTeX_Size2-Regular-oD1tc_U0.woff diff --git a/assets/KaTeX_Size3-Regular-k6uTKqBB.woff b/assets/KaTeX_Size3-Regular-CTq5MqoE.woff similarity index 100% rename from assets/KaTeX_Size3-Regular-k6uTKqBB.woff rename to assets/KaTeX_Size3-Regular-CTq5MqoE.woff diff --git a/assets/KaTeX_Size3-Regular-4KV7NJM_.ttf b/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf similarity index 100% rename from assets/KaTeX_Size3-Regular-4KV7NJM_.ttf rename to assets/KaTeX_Size3-Regular-DgpXs0kz.ttf diff --git a/assets/KaTeX_Size4-Regular-RfuIJGSk.woff b/assets/KaTeX_Size4-Regular-BF-4gkZK.woff similarity index 100% rename from assets/KaTeX_Size4-Regular-RfuIJGSk.woff rename to assets/KaTeX_Size4-Regular-BF-4gkZK.woff diff --git a/assets/KaTeX_Size4-Regular-1hQb9ONy.ttf b/assets/KaTeX_Size4-Regular-DWFBv043.ttf similarity index 100% rename from assets/KaTeX_Size4-Regular-1hQb9ONy.ttf rename to assets/KaTeX_Size4-Regular-DWFBv043.ttf diff --git a/assets/KaTeX_Size4-Regular-5eZcWcVX.woff2 b/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 similarity index 100% rename from assets/KaTeX_Size4-Regular-5eZcWcVX.woff2 rename to assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 diff --git a/assets/KaTeX_Typewriter-Regular-tMUvZjwd.woff b/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff similarity index 100% rename from assets/KaTeX_Typewriter-Regular-tMUvZjwd.woff rename to assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff diff --git a/assets/KaTeX_Typewriter-Regular-juq-IZ9c.woff2 b/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 similarity index 100% rename from assets/KaTeX_Typewriter-Regular-juq-IZ9c.woff2 rename to assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 diff --git a/assets/KaTeX_Typewriter-Regular-9yG-_x36.ttf b/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf similarity index 100% rename from assets/KaTeX_Typewriter-Regular-9yG-_x36.ttf rename to assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf diff --git a/assets/index-DLicTBFJ.js b/assets/index-DLicTBFJ.js new file mode 100644 index 00000000..fefb8514 --- /dev/null +++ b/assets/index-DLicTBFJ.js @@ -0,0 +1,631 @@ +var AEe=Object.defineProperty;var UV=e=>{throw TypeError(e)};var _Ee=(e,t,n)=>t in e?AEe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var CEe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $s=(e,t,n)=>_Ee(e,typeof t!="symbol"?t+"":t,n),eN=(e,t,n)=>t.has(e)||UV("Cannot "+n);var _e=(e,t,n)=>(eN(e,t,"read from private field"),n?n.call(e):t.get(e)),Fn=(e,t,n)=>t.has(e)?UV("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,n),ln=(e,t,n,r)=>(eN(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n),lr=(e,t,n)=>(eN(e,t,"access private method"),n);var Hk=(e,t,n,r)=>({set _(i){ln(e,t,i,n)},get _(){return _e(e,t,r)}});var LOt=CEe((hSt,M_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="3743b76b-30de-4241-a39f-3ccd7a8879de",e._sentryDebugIdIdentifier="sentry-dbid-3743b76b-30de-4241-a39f-3ccd7a8879de")}catch{}})();function mre(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var REe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};REe.SENTRY_RELEASE={id:"e098395b3a84bd2ea6e330eb291cf4e8bfd8ed15"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var mf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function Cu(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function gp(e){if(e.__esModule)return e;var t=e.default;if(typeof t=="function"){var n=function r(){return this instanceof r?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(r){var i=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,i.get?i:{enumerable:!0,get:function(){return e[r]}})}),n}var gre={exports:{}},GC={},bre={exports:{}},Sr={};/** + * @license React + * react.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var cT=Symbol.for("react.element"),IEe=Symbol.for("react.portal"),NEe=Symbol.for("react.fragment"),DEe=Symbol.for("react.strict_mode"),PEe=Symbol.for("react.profiler"),LEe=Symbol.for("react.provider"),MEe=Symbol.for("react.context"),$Ee=Symbol.for("react.forward_ref"),FEe=Symbol.for("react.suspense"),BEe=Symbol.for("react.memo"),UEe=Symbol.for("react.lazy"),zV=Symbol.iterator;function zEe(e){return e===null||typeof e!="object"?null:(e=zV&&e[zV]||e["@@iterator"],typeof e=="function"?e:null)}var yre={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},vre=Object.assign,Ore={};function Xv(e,t,n){this.props=e,this.context=t,this.refs=Ore,this.updater=n||yre}Xv.prototype.isReactComponent={};Xv.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")};Xv.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Sre(){}Sre.prototype=Xv.prototype;function JM(e,t,n){this.props=e,this.context=t,this.refs=Ore,this.updater=n||yre}var e9=JM.prototype=new Sre;e9.constructor=JM;vre(e9,Xv.prototype);e9.isPureReactComponent=!0;var jV=Array.isArray,Ere=Object.prototype.hasOwnProperty,t9={current:null},wre={key:!0,ref:!0,__self:!0,__source:!0};function Tre(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Ere.call(t,r)&&!wre.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1>>1,Se=G[Re];if(0>>1;Rei($e,H))aei(Xe,$e)?(G[Re]=Xe,G[ae]=H,Re=ae):(G[Re]=$e,G[ke]=H,Re=ke);else if(aei(Xe,H))G[Re]=Xe,G[ae]=H,Re=ae;else break e}}return ie}function i(G,ie){var H=G.sortIndex-ie.sortIndex;return H!==0?H:G.id-ie.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],d=1,f=null,p=3,g=!1,O=!1,S=!1,T=typeof setTimeout=="function"?setTimeout:null,w=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(G){for(var ie=n(u);ie!==null;){if(ie.callback===null)r(u);else if(ie.startTime<=G)r(u),ie.sortIndex=ie.expirationTime,t(l,ie);else break;ie=n(u)}}function _(G){if(S=!1,k(G),!O)if(n(l)!==null)O=!0,ne(I);else{var ie=n(u);ie!==null&&K(_,ie.startTime-G)}}function I(G,ie){O=!1,S&&(S=!1,w(L),L=-1),g=!0;var H=p;try{for(k(ie),f=n(l);f!==null&&(!(f.expirationTime>ie)||G&&!W());){var Re=f.callback;if(typeof Re=="function"){f.callback=null,p=f.priorityLevel;var Se=Re(f.expirationTime<=ie);ie=e.unstable_now(),typeof Se=="function"?f.callback=Se:f===n(l)&&r(l),k(ie)}else r(l);f=n(l)}if(f!==null)var Z=!0;else{var ke=n(u);ke!==null&&K(_,ke.startTime-ie),Z=!1}return Z}finally{f=null,p=H,g=!1}}var N=!1,D=null,L=-1,U=5,B=-1;function W(){return!(e.unstable_now()-BG||125Re?(G.sortIndex=H,t(u,G),n(l)===null&&G===n(u)&&(S?(w(L),L=-1):S=!0,K(_,H-Re))):(G.sortIndex=Se,t(l,G),O||g||(O=!0,ne(I))),G},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(G){var ie=p;return function(){var H=p;p=ie;try{return G.apply(this,arguments)}finally{p=H}}}})(Cre);_re.exports=Cre;var KEe=_re.exports;/** + * @license React + * react-dom.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var JEe=M,xu=KEe;function Lt(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n"u"||typeof window.document>"u"||typeof window.document.createElement>"u"),j7=Object.prototype.hasOwnProperty,e2e=/^[: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]*$/,QV={},WV={};function t2e(e){return j7.call(WV,e)?!0:j7.call(QV,e)?!1:e2e.test(e)?WV[e]=!0:(QV[e]=!0,!1)}function n2e(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 r2e(e,t,n,r){if(t===null||typeof t>"u"||n2e(e,t,n,r))return!0;if(r)return!1;if(n!==null)switch(n.type){case 3:return!t;case 4:return t===!1;case 5:return isNaN(t);case 6:return isNaN(t)||1>t}return!1}function tl(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Zs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zs[e]=new tl(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zs[t]=new tl(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zs[e]=new tl(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zs[e]=new tl(e,2,!1,e,null,!1,!1)});"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach(function(e){Zs[e]=new tl(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zs[e]=new tl(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zs[e]=new tl(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zs[e]=new tl(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zs[e]=new tl(e,5,!1,e.toLowerCase(),null,!1,!1)});var r9=/[\-:]([a-z])/g;function i9(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(r9,i9);Zs[t]=new tl(t,1,!1,e,null,!1,!1)});"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach(function(e){var t=e.replace(r9,i9);Zs[t]=new tl(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)});["xml:base","xml:lang","xml:space"].forEach(function(e){var t=e.replace(r9,i9);Zs[t]=new tl(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zs[e]=new tl(e,1,!1,e.toLowerCase(),null,!1,!1)});Zs.xlinkHref=new tl("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zs[e]=new tl(e,1,!1,e.toLowerCase(),null,!0,!0)});function a9(e,t,n,r){var i=Zs.hasOwnProperty(t)?Zs[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==a[o]){var l=` +`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{rN=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?IE(e):""}function i2e(e){switch(e.tag){case 5:return IE(e.type);case 16:return IE("Lazy");case 13:return IE("Suspense");case 19:return IE("SuspenseList");case 0:case 2:case 15:return e=iN(e.type,!1),e;case 11:return e=iN(e.type.render,!1),e;case 1:return e=iN(e.type,!0),e;default:return""}}function V7(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 ny:return"Fragment";case ty:return"Portal";case H7:return"Profiler";case s9:return"StrictMode";case Q7:return"Suspense";case W7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Nre:return(e.displayName||"Context")+".Consumer";case Ire:return(e._context.displayName||"Context")+".Provider";case o9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case l9:return t=e.displayName||null,t!==null?t:V7(e.type)||"Memo";case s0:t=e._payload,e=e._init;try{return V7(e(t))}catch{}}return null}function a2e(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 V7(t);case 8:return t===s9?"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 J0(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Pre(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function s2e(e){var t=Pre(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function Vk(e){e._valueTracker||(e._valueTracker=s2e(e))}function Lre(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Pre(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function $_(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 q7(e,t){var n=t.checked;return ca({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function qV(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=J0(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 Mre(e,t){t=t.checked,t!=null&&a9(e,"checked",t,!1)}function G7(e,t){Mre(e,t);var n=J0(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")?Y7(e,t.type,n):t.hasOwnProperty("defaultValue")&&Y7(e,t.type,J0(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function GV(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 Y7(e,t,n){(t!=="number"||$_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var NE=Array.isArray;function xy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=qk.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function j2(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var KE={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},o2e=["Webkit","ms","Moz","O"];Object.keys(KE).forEach(function(e){o2e.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),KE[t]=KE[e]})});function Ure(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||KE.hasOwnProperty(e)&&KE[e]?(""+t).trim():t+"px"}function zre(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=Ure(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var l2e=ca({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 K7(e,t){if(t){if(l2e[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(Lt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(Lt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(Lt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(Lt(62))}}function J7(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 eP=null;function u9(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var tP=null,ky=null,Ay=null;function XV(e){if(e=hT(e)){if(typeof tP!="function")throw Error(Lt(280));var t=e.stateNode;t&&(t=JC(t),tP(e.stateNode,e.type,t))}}function jre(e){ky?Ay?Ay.push(e):Ay=[e]:ky=e}function Hre(){if(ky){var e=ky,t=Ay;if(Ay=ky=null,XV(e),t)for(e=0;e>>=0,e===0?32:31-(v2e(e)/O2e|0)|0}var Gk=64,Yk=4194304;function DE(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 z_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=DE(o):(a&=s,a!==0&&(r=DE(a)))}else s=n&~i,s!==0?r=DE(s):a!==0&&(r=DE(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function dT(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yd(t),e[t]=n}function T2e(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=e2),sq=" ",oq=!1;function uie(e,t){switch(e){case"keyup":return K2e.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function cie(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var ry=!1;function ewe(e,t){switch(e){case"compositionend":return cie(t);case"keypress":return t.which!==32?null:(oq=!0,sq);case"textInput":return e=t.data,e===sq&&oq?null:e;default:return null}}function twe(e,t){if(ry)return e==="compositionend"||!b9&&uie(e,t)?(e=oie(),D4=p9=k0=null,ry=!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=dq(n)}}function pie(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?pie(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function mie(){for(var e=window,t=$_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=$_(e.document)}return t}function y9(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 cwe(e){var t=mie(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&pie(n.ownerDocument.documentElement,n)){if(r!==null&&y9(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=fq(n,a);var s=fq(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,iy=null,oP=null,n2=null,lP=!1;function hq(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;lP||iy==null||iy!==$_(r)||(r=iy,"selectionStart"in r&&y9(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}),n2&&G2(n2,r)||(n2=r,r=Q_(oP,"onSelect"),0oy||(e.current=pP[oy],pP[oy]=null,oy--)}function Ci(e,t){oy++,pP[oy]=e.current,e.current=t}var em={},yo=pm(em),_l=pm(!1),u1=em;function pv(e,t){var n=e.type.contextTypes;if(!n)return em;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function Cl(e){return e=e.childContextTypes,e!=null}function V_(){Fi(_l),Fi(yo)}function Oq(e,t,n){if(yo.current!==em)throw Error(Lt(168));Ci(yo,t),Ci(_l,n)}function Tie(e,t,n){var r=e.stateNode;if(t=t.childContextTypes,typeof r.getChildContext!="function")return n;r=r.getChildContext();for(var i in r)if(!(i in t))throw Error(Lt(108,a2e(e)||"Unknown",i));return ca({},n,r)}function q_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||em,u1=yo.current,Ci(yo,e),Ci(_l,_l.current),!0}function Sq(e,t,n){var r=e.stateNode;if(!r)throw Error(Lt(169));n?(e=Tie(e,t,u1),r.__reactInternalMemoizedMergedChildContext=e,Fi(_l),Fi(yo),Ci(yo,e)):Fi(_l),Ci(_l,n)}var Ph=null,e5=!1,yN=!1;function xie(e){Ph===null?Ph=[e]:Ph.push(e)}function Ewe(e){e5=!0,xie(e)}function mm(){if(!yN&&Ph!==null){yN=!0;var e=0,t=si;try{var n=Ph;for(si=1;e>=s,i-=s,Uh=1<<32-yd(t)+i|n<L?(U=D,D=null):U=D.sibling;var B=p(w,D,k[L],_);if(B===null){D===null&&(D=U);break}e&&D&&B.alternate===null&&t(w,D),x=a(B,x,L),N===null?I=B:N.sibling=B,N=B,D=U}if(L===k.length)return n(w,D),Ki&&Og(w,L),I;if(D===null){for(;LL?(U=D,D=null):U=D.sibling;var W=p(w,D,B.value,_);if(W===null){D===null&&(D=U);break}e&&D&&W.alternate===null&&t(w,D),x=a(W,x,L),N===null?I=W:N.sibling=W,N=W,D=U}if(B.done)return n(w,D),Ki&&Og(w,L),I;if(D===null){for(;!B.done;L++,B=k.next())B=f(w,B.value,_),B!==null&&(x=a(B,x,L),N===null?I=B:N.sibling=B,N=B);return Ki&&Og(w,L),I}for(D=r(w,D);!B.done;L++,B=k.next())B=g(D,w,L,B.value,_),B!==null&&(e&&B.alternate!==null&&D.delete(B.key===null?L:B.key),x=a(B,x,L),N===null?I=B:N.sibling=B,N=B);return e&&D.forEach(function(V){return t(w,V)}),Ki&&Og(w,L),I}function T(w,x,k,_){if(typeof k=="object"&&k!==null&&k.type===ny&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case Wk:e:{for(var I=k.key,N=x;N!==null;){if(N.key===I){if(I=k.type,I===ny){if(N.tag===7){n(w,N.sibling),x=i(N,k.props.children),x.return=w,w=x;break e}}else if(N.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===s0&&Tq(I)===N.type){n(w,N.sibling),x=i(N,k.props),x.ref=YS(w,N,k),x.return=w,w=x;break e}n(w,N);break}else t(w,N);N=N.sibling}k.type===ny?(x=t1(k.props.children,w.mode,_,k.key),x.return=w,w=x):(_=z4(k.type,k.key,k.props,null,w.mode,_),_.ref=YS(w,x,k),_.return=w,w=_)}return s(w);case ty:e:{for(N=k.key;x!==null;){if(x.key===N)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(w,x.sibling),x=i(x,k.children||[]),x.return=w,w=x;break e}else{n(w,x);break}else t(w,x);x=x.sibling}x=kN(k,w.mode,_),x.return=w,w=x}return s(w);case s0:return N=k._init,T(w,x,N(k._payload),_)}if(NE(k))return O(w,x,k,_);if(QS(k))return S(w,x,k,_);nA(w,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(w,x.sibling),x=i(x,k),x.return=w,w=x):(n(w,x),x=xN(k,w.mode,_),x.return=w,w=x),s(w)):n(w,x)}return T}var gv=Cie(!0),Rie=Cie(!1),Z_=pm(null),X_=null,cy=null,E9=null;function w9(){E9=cy=X_=null}function T9(e){var t=Z_.current;Fi(Z_),e._currentValue=t}function bP(e,t,n){for(;e!==null;){var r=e.alternate;if((e.childLanes&t)!==t?(e.childLanes|=t,r!==null&&(r.childLanes|=t)):r!==null&&(r.childLanes&t)!==t&&(r.childLanes|=t),e===n)break;e=e.return}}function Cy(e,t){X_=e,E9=cy=null,e=e.dependencies,e!==null&&e.firstContext!==null&&(e.lanes&t&&(xl=!0),e.firstContext=null)}function wc(e){var t=e._currentValue;if(E9!==e)if(e={context:e,memoizedValue:t,next:null},cy===null){if(X_===null)throw Error(Lt(308));cy=e,X_.dependencies={lanes:0,firstContext:e}}else cy=cy.next=e;return t}var Ng=null;function x9(e){Ng===null?Ng=[e]:Ng.push(e)}function Iie(e,t,n,r){var i=t.interleaved;return i===null?(n.next=n,x9(t)):(n.next=i.next,i.next=n),t.interleaved=n,np(e,r)}function np(e,t){e.lanes|=t;var n=e.alternate;for(n!==null&&(n.lanes|=t),n=e,e=e.return;e!==null;)e.childLanes|=t,n=e.alternate,n!==null&&(n.childLanes|=t),n=e,e=e.return;return n.tag===3?n.stateNode:null}var o0=!1;function k9(e){e.updateQueue={baseState:e.memoizedState,firstBaseUpdate:null,lastBaseUpdate:null,shared:{pending:null,interleaved:null,lanes:0},effects:null}}function Nie(e,t){e=e.updateQueue,t.updateQueue===e&&(t.updateQueue={baseState:e.baseState,firstBaseUpdate:e.firstBaseUpdate,lastBaseUpdate:e.lastBaseUpdate,shared:e.shared,effects:e.effects})}function Vh(e,t){return{eventTime:e,lane:t,tag:0,payload:null,callback:null,next:null}}function z0(e,t,n){var r=e.updateQueue;if(r===null)return null;if(r=r.shared,Fr&2){var i=r.pending;return i===null?t.next=t:(t.next=i.next,i.next=t),r.pending=t,np(e,n)}return i=r.interleaved,i===null?(t.next=t,x9(r)):(t.next=i.next,i.next=t),r.interleaved=t,np(e,n)}function L4(e,t,n){if(t=t.updateQueue,t!==null&&(t=t.shared,(n&4194240)!==0)){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,d9(e,n)}}function xq(e,t){var n=e.updateQueue,r=e.alternate;if(r!==null&&(r=r.updateQueue,n===r)){var i=null,a=null;if(n=n.firstBaseUpdate,n!==null){do{var s={eventTime:n.eventTime,lane:n.lane,tag:n.tag,payload:n.payload,callback:n.callback,next:null};a===null?i=a=s:a=a.next=s,n=n.next}while(n!==null);a===null?i=a=t:a=a.next=t}else i=a=t;n={baseState:r.baseState,firstBaseUpdate:i,lastBaseUpdate:a,shared:r.shared,effects:r.effects},e.updateQueue=n;return}e=n.lastBaseUpdate,e===null?n.firstBaseUpdate=t:e.next=t,n.lastBaseUpdate=t}function K_(e,t,n,r){var i=e.updateQueue;o0=!1;var a=i.firstBaseUpdate,s=i.lastBaseUpdate,o=i.shared.pending;if(o!==null){i.shared.pending=null;var l=o,u=l.next;l.next=null,s===null?a=u:s.next=u,s=l;var d=e.alternate;d!==null&&(d=d.updateQueue,o=d.lastBaseUpdate,o!==s&&(o===null?d.firstBaseUpdate=u:o.next=u,d.lastBaseUpdate=l))}if(a!==null){var f=i.baseState;s=0,d=u=l=null,o=a;do{var p=o.lane,g=o.eventTime;if((r&p)===p){d!==null&&(d=d.next={eventTime:g,lane:0,tag:o.tag,payload:o.payload,callback:o.callback,next:null});e:{var O=e,S=o;switch(p=t,g=n,S.tag){case 1:if(O=S.payload,typeof O=="function"){f=O.call(g,f,p);break e}f=O;break e;case 3:O.flags=O.flags&-65537|128;case 0:if(O=S.payload,p=typeof O=="function"?O.call(g,f,p):O,p==null)break e;f=ca({},f,p);break e;case 2:o0=!0}}o.callback!==null&&o.lane!==0&&(e.flags|=64,p=i.effects,p===null?i.effects=[o]:p.push(o))}else g={eventTime:g,lane:p,tag:o.tag,payload:o.payload,callback:o.callback,next:null},d===null?(u=d=g,l=f):d=d.next=g,s|=p;if(o=o.next,o===null){if(o=i.shared.pending,o===null)break;p=o,o=p.next,p.next=null,i.lastBaseUpdate=p,i.shared.pending=null}}while(!0);if(d===null&&(l=f),i.baseState=l,i.firstBaseUpdate=u,i.lastBaseUpdate=d,t=i.shared.interleaved,t!==null){i=t;do s|=i.lane,i=i.next;while(i!==t)}else a===null&&(i.shared.lanes=0);f1|=s,e.lanes=s,e.memoizedState=f}}function kq(e,t,n){if(e=t.effects,t.effects=null,e!==null)for(t=0;tn?n:4,e(!0);var r=ON.transition;ON.transition={};try{e(!1),t()}finally{si=n,ON.transition=r}}function Yie(){return Tc().memoizedState}function kwe(e,t,n){var r=H0(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},Zie(e))Xie(t,n);else if(n=Iie(e,t,n,r),n!==null){var i=Go();vd(n,e,r,i),Kie(n,t,r)}}function Awe(e,t,n){var r=H0(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(Zie(e))Xie(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,xd(o,s)){var l=t.interleaved;l===null?(i.next=i,x9(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=Iie(e,t,i,r),n!==null&&(i=Go(),vd(n,e,r,i),Kie(n,t,r))}}function Zie(e){var t=e.alternate;return e===la||t!==null&&t===la}function Xie(e,t){r2=e3=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function Kie(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,d9(e,n)}}var t3={readContext:wc,useCallback:so,useContext:so,useEffect:so,useImperativeHandle:so,useInsertionEffect:so,useLayoutEffect:so,useMemo:so,useReducer:so,useRef:so,useState:so,useDebugValue:so,useDeferredValue:so,useTransition:so,useMutableSource:so,useSyncExternalStore:so,useId:so,unstable_isNewReconciler:!1},_we={readContext:wc,useCallback:function(e,t){return rf().memoizedState=[e,t===void 0?null:t],e},useContext:wc,useEffect:_q,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,$4(4194308,4,Qie.bind(null,t,e),n)},useLayoutEffect:function(e,t){return $4(4194308,4,e,t)},useInsertionEffect:function(e,t){return $4(4,2,e,t)},useMemo:function(e,t){var n=rf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=rf();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=kwe.bind(null,la,e),[r.memoizedState,e]},useRef:function(e){var t=rf();return e={current:e},t.memoizedState=e},useState:Aq,useDebugValue:P9,useDeferredValue:function(e){return rf().memoizedState=e},useTransition:function(){var e=Aq(!1),t=e[0];return e=xwe.bind(null,e[1]),rf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=la,i=rf();if(Ki){if(n===void 0)throw Error(Lt(407));n=n()}else{if(n=t(),Ts===null)throw Error(Lt(349));d1&30||Mie(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,_q(Fie.bind(null,r,a,e),[e]),r.flags|=2048,nw(9,$ie.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=rf(),t=Ts.identifierPrefix;if(Ki){var n=zh,r=Uh;n=(r&~(1<<32-yd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=ew++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[gf]=t,e[X2]=r,lae(e,t,!1,!1),t.stateNode=e;e:{switch(s=J7(n,r),n){case"dialog":Li("cancel",e),Li("close",e),i=r;break;case"iframe":case"object":case"embed":Li("load",e),i=r;break;case"video":case"audio":for(i=0;ivv&&(t.flags|=128,r=!0,ZS(a,!1),t.lanes=4194304)}else{if(!r)if(e=J_(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),ZS(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Ki)return oo(t),null}else 2*Na()-a.renderingStartTime>vv&&n!==1073741824&&(t.flags|=128,r=!0,ZS(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Na(),t.sibling=null,n=sa.current,Ci(sa,r?n&1|2:n&1),t):(oo(t),null);case 22:case 23:return U9(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?iu&1073741824&&(oo(t),t.subtreeFlags&6&&(t.flags|=8192)):oo(t),null;case 24:return null;case 25:return null}throw Error(Lt(156,t.tag))}function Mwe(e,t){switch(O9(t),t.tag){case 1:return Cl(t.type)&&V_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return bv(),Fi(_l),Fi(yo),C9(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return _9(t),null;case 13:if(Fi(sa),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(Lt(340));mv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return Fi(sa),null;case 4:return bv(),null;case 10:return T9(t.type._context),null;case 22:case 23:return U9(),null;case 24:return null;default:return null}}var iA=!1,ho=!1,$we=typeof WeakSet=="function"?WeakSet:Set,hn=null;function dy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Ea(e,t,r)}else n.current=null}function kP(e,t,n){try{n()}catch(r){Ea(e,t,r)}}var Bq=!1;function Fwe(e,t){if(uP=j_,e=mie(),y9(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,d=0,f=e,p=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)p=f,f=g;for(;;){if(f===e)break t;if(p===n&&++u===i&&(o=s),p===a&&++d===r&&(l=s),(g=f.nextSibling)!==null)break;f=p,p=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(cP={focusedElem:e,selectionRange:n},j_=!1,hn=t;hn!==null;)if(t=hn,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,hn=e;else for(;hn!==null;){t=hn;try{var O=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(O!==null){var S=O.memoizedProps,T=O.memoizedState,w=t.stateNode,x=w.getSnapshotBeforeUpdate(t.elementType===t.type?S:sd(t.type,S),T);w.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(Lt(163))}}catch(_){Ea(t,t.return,_)}if(e=t.sibling,e!==null){e.return=t.return,hn=e;break}hn=t.return}return O=Bq,Bq=!1,O}function i2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&kP(t,n,a)}i=i.next}while(i!==r)}}function r5(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 AP(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 dae(e){var t=e.alternate;t!==null&&(e.alternate=null,dae(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[gf],delete t[X2],delete t[hP],delete t[Owe],delete t[Swe])),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 fae(e){return e.tag===5||e.tag===3||e.tag===4}function Uq(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||fae(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 _P(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=W_));else if(r!==4&&(e=e.child,e!==null))for(_P(e,t,n),e=e.sibling;e!==null;)_P(e,t,n),e=e.sibling}function CP(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(CP(e,t,n),e=e.sibling;e!==null;)CP(e,t,n),e=e.sibling}var Bs=null,ld=!1;function Yp(e,t,n){for(n=n.child;n!==null;)hae(e,t,n),n=n.sibling}function hae(e,t,n){if(_f&&typeof _f.onCommitFiberUnmount=="function")try{_f.onCommitFiberUnmount(YC,n)}catch{}switch(n.tag){case 5:ho||dy(n,t);case 6:var r=Bs,i=ld;Bs=null,Yp(e,t,n),Bs=r,ld=i,Bs!==null&&(ld?(e=Bs,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Bs.removeChild(n.stateNode));break;case 18:Bs!==null&&(ld?(e=Bs,n=n.stateNode,e.nodeType===8?bN(e.parentNode,n):e.nodeType===1&&bN(e,n),V2(e)):bN(Bs,n.stateNode));break;case 4:r=Bs,i=ld,Bs=n.stateNode.containerInfo,ld=!0,Yp(e,t,n),Bs=r,ld=i;break;case 0:case 11:case 14:case 15:if(!ho&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&kP(n,t,s),i=i.next}while(i!==r)}Yp(e,t,n);break;case 1:if(!ho&&(dy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Ea(n,t,o)}Yp(e,t,n);break;case 21:Yp(e,t,n);break;case 22:n.mode&1?(ho=(r=ho)||n.memoizedState!==null,Yp(e,t,n),ho=r):Yp(e,t,n);break;default:Yp(e,t,n)}}function zq(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new $we),t.forEach(function(r){var i=qwe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ad(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Na()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*Uwe(r/1960))-r,10e?16:e,A0===null)var r=!1;else{if(e=A0,A0=null,i3=0,Fr&6)throw Error(Lt(331));var i=Fr;for(Fr|=4,hn=e.current;hn!==null;){var a=hn,s=a.child;if(hn.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lNa()-F9?e1(e,0):$9|=n),Rl(e,t)}function Sae(e,t){t===0&&(e.mode&1?(t=Yk,Yk<<=1,!(Yk&130023424)&&(Yk=4194304)):t=1);var n=Go();e=np(e,t),e!==null&&(dT(e,t,n),Rl(e,n))}function Vwe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Sae(e,n)}function qwe(e,t){var n=0;switch(e.tag){case 13:var r=e.stateNode,i=e.memoizedState;i!==null&&(n=i.retryLane);break;case 19:r=e.stateNode;break;default:throw Error(Lt(314))}r!==null&&r.delete(t),Sae(e,n)}var Eae;Eae=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||_l.current)xl=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return xl=!1,Pwe(e,t,n);xl=!!(e.flags&131072)}else xl=!1,Ki&&t.flags&1048576&&kie(t,Y_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;F4(e,t),e=t.pendingProps;var i=pv(t,yo.current);Cy(t,n),i=I9(null,t,r,e,i,n);var a=N9();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,Cl(r)?(a=!0,q_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,k9(t),i.updater=n5,t.stateNode=i,i._reactInternals=t,vP(t,r,e,n),t=EP(null,t,r,!0,a,n)):(t.tag=0,Ki&&a&&v9(t),Uo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(F4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=Ywe(r),e=sd(r,e),i){case 0:t=SP(null,t,r,e,n);break e;case 1:t=Mq(null,t,r,e,n);break e;case 11:t=Pq(null,t,r,e,n);break e;case 14:t=Lq(null,t,r,sd(r.type,e),n);break e}throw Error(Lt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),SP(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),Mq(e,t,r,i,n);case 3:e:{if(aae(t),e===null)throw Error(Lt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Nie(e,t),K_(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=yv(Error(Lt(423)),t),t=$q(e,t,r,n,i);break e}else if(r!==i){i=yv(Error(Lt(424)),t),t=$q(e,t,r,n,i);break e}else for(bu=U0(t.stateNode.containerInfo.firstChild),Eu=t,Ki=!0,fd=null,n=Rie(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(mv(),r===i){t=rp(e,t,n);break e}Uo(e,t,r,n)}t=t.child}return t;case 5:return Die(t),e===null&&gP(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,dP(r,i)?s=null:a!==null&&dP(r,a)&&(t.flags|=32),iae(e,t),Uo(e,t,s,n),t.child;case 6:return e===null&&gP(t),null;case 13:return sae(e,t,n);case 4:return A9(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=gv(t,null,r,n):Uo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),Pq(e,t,r,i,n);case 7:return Uo(e,t,t.pendingProps,n),t.child;case 8:return Uo(e,t,t.pendingProps.children,n),t.child;case 12:return Uo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ci(Z_,r._currentValue),r._currentValue=s,a!==null)if(xd(a.value,s)){if(a.children===i.children&&!_l.current){t=rp(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=Vh(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var d=u.pending;d===null?l.next=l:(l.next=d.next,d.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),bP(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(Lt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),bP(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Uo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Cy(t,n),i=wc(i),r=r(i),t.flags|=1,Uo(e,t,r,n),t.child;case 14:return r=t.type,i=sd(r,t.pendingProps),i=sd(r.type,i),Lq(e,t,r,i,n);case 15:return nae(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:sd(r,i),F4(e,t),t.tag=1,Cl(r)?(e=!0,q_(t)):e=!1,Cy(t,n),Jie(t,r,i),vP(t,r,i,n),EP(null,t,r,!0,e,n);case 19:return oae(e,t,n);case 22:return rae(e,t,n)}throw Error(Lt(156,t.tag))};function wae(e,t){return Zre(e,t)}function Gwe(e,t,n,r){this.tag=e,this.key=n,this.sibling=this.child=this.return=this.stateNode=this.type=this.elementType=null,this.index=0,this.ref=null,this.pendingProps=t,this.dependencies=this.memoizedState=this.updateQueue=this.memoizedProps=null,this.mode=r,this.subtreeFlags=this.flags=0,this.deletions=null,this.childLanes=this.lanes=0,this.alternate=null}function dc(e,t,n,r){return new Gwe(e,t,n,r)}function j9(e){return e=e.prototype,!(!e||!e.isReactComponent)}function Ywe(e){if(typeof e=="function")return j9(e)?1:0;if(e!=null){if(e=e.$$typeof,e===o9)return 11;if(e===l9)return 14}return 2}function Q0(e,t){var n=e.alternate;return n===null?(n=dc(e.tag,t,e.key,e.mode),n.elementType=e.elementType,n.type=e.type,n.stateNode=e.stateNode,n.alternate=e,e.alternate=n):(n.pendingProps=t,n.type=e.type,n.flags=0,n.subtreeFlags=0,n.deletions=null),n.flags=e.flags&14680064,n.childLanes=e.childLanes,n.lanes=e.lanes,n.child=e.child,n.memoizedProps=e.memoizedProps,n.memoizedState=e.memoizedState,n.updateQueue=e.updateQueue,t=e.dependencies,n.dependencies=t===null?null:{lanes:t.lanes,firstContext:t.firstContext},n.sibling=e.sibling,n.index=e.index,n.ref=e.ref,n}function z4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")j9(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case ny:return t1(n.children,i,a,t);case s9:s=8,i|=8;break;case H7:return e=dc(12,n,t,i|2),e.elementType=H7,e.lanes=a,e;case Q7:return e=dc(13,n,t,i),e.elementType=Q7,e.lanes=a,e;case W7:return e=dc(19,n,t,i),e.elementType=W7,e.lanes=a,e;case Dre:return a5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Ire:s=10;break e;case Nre:s=9;break e;case o9:s=11;break e;case l9:s=14;break e;case s0:s=16,r=null;break e}throw Error(Lt(130,e==null?e:typeof e,""))}return t=dc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function t1(e,t,n,r){return e=dc(7,e,r,t),e.lanes=n,e}function a5(e,t,n,r){return e=dc(22,e,r,t),e.elementType=Dre,e.lanes=n,e.stateNode={isHidden:!1},e}function xN(e,t,n){return e=dc(6,e,null,t),e.lanes=n,e}function kN(e,t,n){return t=dc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function Zwe(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=sN(0),this.expirationTimes=sN(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=sN(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function H9(e,t,n,r,i,a,s,o,l){return e=new Zwe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=dc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},k9(a),e}function Xwe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Aae)}catch(e){console.error(e)}}Aae(),Are.exports=Ru;var eO=Are.exports;const LE=Cu(eO),nTe=mre({__proto__:null,default:LE},[eO]);var Yq=eO;z7.createRoot=Yq.createRoot,z7.hydrateRoot=Yq.hydrateRoot;const iw={black:"#000",white:"#fff"},kb={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"},Ab={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"},_b={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"},Cb={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"},Rb={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"},KS={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"},rTe={50:"#fafafa",100:"#f5f5f5",200:"#eeeeee",300:"#e0e0e0",400:"#bdbdbd",500:"#9e9e9e",600:"#757575",700:"#616161",800:"#424242",900:"#212121",A100:"#f5f5f5",A200:"#eeeeee",A400:"#bdbdbd",A700:"#616161"};function ip(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n0?zs(tO,--Pl):0,Sv--,Ha===10&&(Sv=1,d5--),Ha}function wu(){return Ha=Pl2||sw(Ha)>3?"":" "}function STe(e,t){for(;--t&&wu()&&!(Ha<48||Ha>102||Ha>57&&Ha<65||Ha>70&&Ha<97););return mT(e,j4()+(t<6&&Rf()==32&&wu()==32))}function LP(e){for(;wu();)switch(Ha){case e:return Pl;case 34:case 39:e!==34&&e!==39&&LP(Ha);break;case 40:e===41&&LP(e);break;case 92:wu();break}return Pl}function ETe(e,t){for(;wu()&&e+Ha!==57;)if(e+Ha===84&&Rf()===47)break;return"/*"+mT(t,Pl-1)+"*"+c5(e===47?e:wu())}function wTe(e){for(;!sw(Rf());)wu();return mT(e,Pl)}function TTe(e){return Pae(Q4("",null,null,null,[""],e=Dae(e),0,[0],e))}function Q4(e,t,n,r,i,a,s,o,l){for(var u=0,d=0,f=s,p=0,g=0,O=0,S=1,T=1,w=1,x=0,k="",_=i,I=a,N=r,D=k;T;)switch(O=x,x=wu()){case 40:if(O!=108&&zs(D,f-1)==58){PP(D+=qr(H4(x),"&","&\f"),"&\f")!=-1&&(w=-1);break}case 34:case 39:case 91:D+=H4(x);break;case 9:case 10:case 13:case 32:D+=OTe(O);break;case 92:D+=STe(j4()-1,7);continue;case 47:switch(Rf()){case 42:case 47:oA(xTe(ETe(wu(),j4()),t,n),l);break;default:D+="/"}break;case 123*S:o[u++]=ff(D)*w;case 125*S:case 59:case 0:switch(x){case 0:case 125:T=0;case 59+d:w==-1&&(D=qr(D,/\f/g,"")),g>0&&ff(D)-f&&oA(g>32?Xq(D+";",r,n,f-1):Xq(qr(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if(oA(N=Zq(D,t,n,u,d,i,o,k,_=[],I=[],f),a),x===123)if(d===0)Q4(D,t,N,N,_,a,f,o,I);else switch(p===99&&zs(D,3)===110?100:p){case 100:case 108:case 109:case 115:Q4(e,N,N,r&&oA(Zq(e,N,N,0,0,i,o,k,i,_=[],f),I),i,I,f,o,r?_:I);break;default:Q4(D,N,N,N,[""],I,0,o,I)}}u=d=g=0,S=w=1,k=D="",f=s;break;case 58:f=1+ff(D),g=O;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&vTe()==125)continue}switch(D+=c5(x),x*S){case 38:w=d>0?1:(D+="\f",-1);break;case 44:o[u++]=(ff(D)-1)*w,w=1;break;case 64:Rf()===45&&(D+=H4(wu())),p=Rf(),d=f=ff(k=D+=wTe(j4())),x++;break;case 45:O===45&&ff(D)==2&&(S=0)}}return a}function Zq(e,t,n,r,i,a,s,o,l,u,d){for(var f=i-1,p=i===0?a:[""],g=Y9(p),O=0,S=0,T=0;O0?p[w]+" "+x:qr(x,/&\f/g,p[w])))&&(l[T++]=k);return f5(e,t,n,i===0?q9:o,l,u,d)}function xTe(e,t,n){return f5(e,t,n,Cae,c5(yTe()),aw(e,2,-2),0)}function Xq(e,t,n,r){return f5(e,t,n,G9,aw(e,0,r),aw(e,r+1,-1),r)}function Iy(e,t){for(var n="",r=Y9(e),i=0;i6)switch(zs(e,t+1)){case 109:if(zs(e,t+4)!==45)break;case 102:return qr(e,/(.+:)(.+)-([^]+)/,"$1"+Vr+"$2-$3$1"+o3+(zs(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~PP(e,"stretch")?Lae(qr(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(zs(e,t+1)!==115)break;case 6444:switch(zs(e,ff(e)-3-(~PP(e,"!important")&&10))){case 107:return qr(e,":",":"+Vr)+e;case 101:return qr(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+Vr+(zs(e,14)===45?"inline-":"")+"box$3$1"+Vr+"$2$3$1"+uo+"$2box$3")+e}break;case 5936:switch(zs(e,t+11)){case 114:return Vr+e+uo+qr(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return Vr+e+uo+qr(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return Vr+e+uo+qr(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return Vr+e+uo+e+e}return e}var PTe=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case G9:t.return=Lae(t.value,t.length);break;case Rae:return Iy([JS(t,{value:qr(t.value,"@","@"+Vr)})],i);case q9:if(t.length)return bTe(t.props,function(a){switch(gTe(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Iy([JS(t,{props:[qr(a,/:(read-\w+)/,":"+o3+"$1")]})],i);case"::placeholder":return Iy([JS(t,{props:[qr(a,/:(plac\w+)/,":"+Vr+"input-$1")]}),JS(t,{props:[qr(a,/:(plac\w+)/,":"+o3+"$1")]}),JS(t,{props:[qr(a,/:(plac\w+)/,uo+"input-$1")]})],i)}return""})}},LTe=[PTe],Mae=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var T=S.getAttribute("data-emotion");T.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||LTe,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var T=S.getAttribute("data-emotion").split(" "),w=1;w=4;++r,i-=4)n=e.charCodeAt(r)&255|(e.charCodeAt(++r)&255)<<8|(e.charCodeAt(++r)&255)<<16|(e.charCodeAt(++r)&255)<<24,n=(n&65535)*1540483477+((n>>>16)*59797<<16),n^=n>>>24,t=(n&65535)*1540483477+((n>>>16)*59797<<16)^(t&65535)*1540483477+((t>>>16)*59797<<16);switch(i){case 3:t^=(e.charCodeAt(r+2)&255)<<16;case 2:t^=(e.charCodeAt(r+1)&255)<<8;case 1:t^=e.charCodeAt(r)&255,t=(t&65535)*1540483477+((t>>>16)*59797<<16)}return t^=t>>>13,t=(t&65535)*1540483477+((t>>>16)*59797<<16),((t^t>>>15)>>>0).toString(36)}var qTe={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},GTe=!1,YTe=/[A-Z]|^ms/g,ZTe=/_EMO_([^_]+?)_([^]*?)_EMO_/g,Hae=function(t){return t.charCodeAt(1)===45},Jq=function(t){return t!=null&&typeof t!="boolean"},AN=_ae(function(e){return Hae(e)?e:e.replace(YTe,"-$&").toLowerCase()}),eG=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(ZTe,function(r,i,a){return hf={name:i,styles:a,next:hf},i})}return qTe[t]!==1&&!Hae(t)&&typeof n=="number"&&n!==0?n+"px":n},XTe="Component selectors can only be used in conjunction with @emotion/babel-plugin, the swc Emotion plugin, or another Emotion-aware compiler transform.";function ow(e,t,n){if(n==null)return"";var r=n;if(r.__emotion_styles!==void 0)return r;switch(typeof n){case"boolean":return"";case"object":{var i=n;if(i.anim===1)return hf={name:i.name,styles:i.styles,next:hf},i.name;var a=n;if(a.styles!==void 0){var s=a.next;if(s!==void 0)for(;s!==void 0;)hf={name:s.name,styles:s.styles,next:hf},s=s.next;var o=a.styles+";";return o}return KTe(e,t,n)}case"function":{if(e!==void 0){var l=hf,u=n(e);return hf=l,ow(e,t,u)}break}}var d=n;if(t==null)return d;var f=t[d];return f!==void 0?f:d}function KTe(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?ixe:axe},aG=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},sxe=!1,oxe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return zae(n,r,i),exe(function(){return jae(n,r,i)}),null},lxe=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=aG(t,n,r),l=o||iG(i),u=!l("as");return function(){var d=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),d[0]==null||d[0].raw===void 0)f.push.apply(f,d);else{f.push(d[0][0]);for(var p=d.length,g=1;gt(gxe(i)?n:i):t;return R.jsx(rxe,{styles:r})}function e$(e,t){return MP(e,t)}const Kae=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))},bxe=Object.freeze(Object.defineProperty({__proto__:null,GlobalStyles:Xae,StyledEngineProvider:mxe,ThemeContext:gT,css:w5,default:e$,internal_processStyles:Kae,keyframes:nO},Symbol.toStringTag,{value:"Module"}));function Bh(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 Jae(e){if(!Bh(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=Jae(e[n])}),t}function Yo(e,t,n={clone:!0}){const r=n.clone?Q({},e):e;return Bh(e)&&Bh(t)&&Object.keys(t).forEach(i=>{Bh(t[i])&&Object.prototype.hasOwnProperty.call(e,i)&&Bh(e[i])?r[i]=Yo(e[i],t[i],n):n.clone?r[i]=Bh(t[i])?Jae(t[i]):t[i]:r[i]=t[i]}),r}const yxe=Object.freeze(Object.defineProperty({__proto__:null,default:Yo,isPlainObject:Bh},Symbol.toStringTag,{value:"Module"})),vxe=["values","unit","step"],Oxe=e=>{const t=Object.keys(e).map(n=>({key:n,val:e[n]}))||[];return t.sort((n,r)=>n.val-r.val),t.reduce((n,r)=>Q({},n,{[r.key]:r.val}),{})};function ese(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=wt(e,vxe),a=Oxe(t),s=Object.keys(a);function o(p){return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n})`}function l(p){return`@media (max-width:${(typeof t[p]=="number"?t[p]:p)-r/100}${n})`}function u(p,g){const O=s.indexOf(g);return`@media (min-width:${typeof t[p]=="number"?t[p]:p}${n}) and (max-width:${(O!==-1&&typeof t[s[O]]=="number"?t[s[O]]:g)-r/100}${n})`}function d(p){return s.indexOf(p)+1`@media (min-width:${t$[e]}px)`};function Ll(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||sG;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||sG;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||t$).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function tse(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function nse(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function Exe(e,...t){const n=tse(e),r=[n,...t].reduce((i,a)=>Yo(i,a),{});return nse(Object.keys(n),r)}function wxe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function n1({values:e,breakpoints:t,base:n}){const r=n||wxe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function it(e){if(typeof e!="string")throw new Error(ip(7));return e.charAt(0).toUpperCase()+e.slice(1)}const Txe=Object.freeze(Object.defineProperty({__proto__:null,default:it},Symbol.toStringTag,{value:"Module"}));function T5(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function l3(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=T5(e,n)||r,t&&(i=t(i,r,e)),i}function Ma(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=T5(l,r)||{};return Ll(s,o,f=>{let p=l3(u,i,f);return f===p&&typeof f=="string"&&(p=l3(u,i,`${t}${f==="default"?"":it(f)}`,f)),n===!1?p:{[n]:p}})};return a.propTypes={},a.filterProps=[t],a}function xxe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const kxe={m:"margin",p:"padding"},Axe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},oG={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},_xe=xxe(e=>{if(e.length>2)if(oG[e])e=oG[e];else return[e];const[t,n]=e.split(""),r=kxe[t],i=Axe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),n$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],r$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...n$,...r$];function bT(e,t,n,r){var i;const a=(i=T5(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function i$(e){return bT(e,"spacing",8)}function p1(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 Cxe(e,t){return n=>e.reduce((r,i)=>(r[i]=p1(t,n),r),{})}function Rxe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=_xe(n),a=Cxe(i,r),s=e[n];return Ll(e,s,a)}function rse(e,t){const n=i$(e.theme);return Object.keys(e).map(r=>Rxe(e,t,r,n)).reduce(o2,{})}function ya(e){return rse(e,n$)}ya.propTypes={};ya.filterProps=n$;function va(e){return rse(e,r$)}va.propTypes={};va.filterProps=r$;function Ixe(e=8){if(e.mui)return e;const t=i$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function x5(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?o2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function sc(e){return typeof e!="number"?e:`${e}px solid`}function Nc(e,t){return Ma({prop:e,themeKey:"borders",transform:t})}const Nxe=Nc("border",sc),Dxe=Nc("borderTop",sc),Pxe=Nc("borderRight",sc),Lxe=Nc("borderBottom",sc),Mxe=Nc("borderLeft",sc),$xe=Nc("borderColor"),Fxe=Nc("borderTopColor"),Bxe=Nc("borderRightColor"),Uxe=Nc("borderBottomColor"),zxe=Nc("borderLeftColor"),jxe=Nc("outline",sc),Hxe=Nc("outlineColor"),k5=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=bT(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:p1(t,r)});return Ll(e,e.borderRadius,n)}return null};k5.propTypes={};k5.filterProps=["borderRadius"];x5(Nxe,Dxe,Pxe,Lxe,Mxe,$xe,Fxe,Bxe,Uxe,zxe,k5,jxe,Hxe);const A5=e=>{if(e.gap!==void 0&&e.gap!==null){const t=bT(e.theme,"spacing",8),n=r=>({gap:p1(t,r)});return Ll(e,e.gap,n)}return null};A5.propTypes={};A5.filterProps=["gap"];const _5=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=bT(e.theme,"spacing",8),n=r=>({columnGap:p1(t,r)});return Ll(e,e.columnGap,n)}return null};_5.propTypes={};_5.filterProps=["columnGap"];const C5=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=bT(e.theme,"spacing",8),n=r=>({rowGap:p1(t,r)});return Ll(e,e.rowGap,n)}return null};C5.propTypes={};C5.filterProps=["rowGap"];const Qxe=Ma({prop:"gridColumn"}),Wxe=Ma({prop:"gridRow"}),Vxe=Ma({prop:"gridAutoFlow"}),qxe=Ma({prop:"gridAutoColumns"}),Gxe=Ma({prop:"gridAutoRows"}),Yxe=Ma({prop:"gridTemplateColumns"}),Zxe=Ma({prop:"gridTemplateRows"}),Xxe=Ma({prop:"gridTemplateAreas"}),Kxe=Ma({prop:"gridArea"});x5(A5,_5,C5,Qxe,Wxe,Vxe,qxe,Gxe,Yxe,Zxe,Xxe,Kxe);function Ny(e,t){return t==="grey"?t:e}const Jxe=Ma({prop:"color",themeKey:"palette",transform:Ny}),eke=Ma({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:Ny}),tke=Ma({prop:"backgroundColor",themeKey:"palette",transform:Ny});x5(Jxe,eke,tke);function pu(e){return e<=1&&e!==0?`${e*100}%`:e}const nke=Ma({prop:"width",transform:pu}),a$=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||t$[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:pu(n)}};return Ll(e,e.maxWidth,t)}return null};a$.filterProps=["maxWidth"];const rke=Ma({prop:"minWidth",transform:pu}),ike=Ma({prop:"height",transform:pu}),ake=Ma({prop:"maxHeight",transform:pu}),ske=Ma({prop:"minHeight",transform:pu});Ma({prop:"size",cssProperty:"width",transform:pu});Ma({prop:"size",cssProperty:"height",transform:pu});const oke=Ma({prop:"boxSizing"});x5(nke,a$,rke,ike,ake,ske,oke);const yT={border:{themeKey:"borders",transform:sc},borderTop:{themeKey:"borders",transform:sc},borderRight:{themeKey:"borders",transform:sc},borderBottom:{themeKey:"borders",transform:sc},borderLeft:{themeKey:"borders",transform:sc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:sc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:k5},color:{themeKey:"palette",transform:Ny},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:Ny},backgroundColor:{themeKey:"palette",transform:Ny},p:{style:va},pt:{style:va},pr:{style:va},pb:{style:va},pl:{style:va},px:{style:va},py:{style:va},padding:{style:va},paddingTop:{style:va},paddingRight:{style:va},paddingBottom:{style:va},paddingLeft:{style:va},paddingX:{style:va},paddingY:{style:va},paddingInline:{style:va},paddingInlineStart:{style:va},paddingInlineEnd:{style:va},paddingBlock:{style:va},paddingBlockStart:{style:va},paddingBlockEnd:{style:va},m:{style:ya},mt:{style:ya},mr:{style:ya},mb:{style:ya},ml:{style:ya},mx:{style:ya},my:{style:ya},margin:{style:ya},marginTop:{style:ya},marginRight:{style:ya},marginBottom:{style:ya},marginLeft:{style:ya},marginX:{style:ya},marginY:{style:ya},marginInline:{style:ya},marginInlineStart:{style:ya},marginInlineEnd:{style:ya},marginBlock:{style:ya},marginBlockStart:{style:ya},marginBlockEnd:{style:ya},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:A5},rowGap:{style:C5},columnGap:{style:_5},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:pu},maxWidth:{style:a$},minWidth:{transform:pu},height:{transform:pu},maxHeight:{transform:pu},minHeight:{transform:pu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function lke(...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 uke(e,t){return typeof e=="function"?e(t):e}function ise(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:d,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const p=T5(i,u)||{};return f?f(s):Ll(s,r,O=>{let S=l3(p,d,O);return O===S&&typeof O=="string"&&(S=l3(p,d,`${n}${O==="default"?"":it(O)}`,O)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:yT;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const d=tse(a.breakpoints),f=Object.keys(d);let p=d;return Object.keys(u).forEach(g=>{const O=uke(u[g],a);if(O!=null)if(typeof O=="object")if(s[g])p=o2(p,e(g,O,a,s));else{const S=Ll({theme:a},O,T=>({[g]:T}));lke(S,O)?p[g]=t({sx:O,theme:a}):p=o2(p,S)}else p=o2(p,e(g,O,a,s))}),nse(f,p)}return Array.isArray(i)?i.map(o):o(i)}return t}const rO=ise();rO.filterProps=["sx"];function ase(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const cke=["breakpoints","palette","spacing","shape"];function iO(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=wt(e,cke),o=ese(n),l=Ixe(i);let u=Yo({breakpoints:o,direction:"ltr",components:{},palette:Q({mode:"light"},r),spacing:l,shape:Q({},Sxe,a)},s);return u.applyStyles=ase,u=t.reduce((d,f)=>Yo(d,f),u),u.unstable_sxConfig=Q({},yT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return rO({sx:f,theme:this})},u}const dke=Object.freeze(Object.defineProperty({__proto__:null,default:iO,private_createBreakpoints:ese,unstable_applyStyles:ase},Symbol.toStringTag,{value:"Module"}));function fke(e){return Object.keys(e).length===0}function s$(e=null){const t=M.useContext(gT);return!t||fke(t)?e:t}const hke=iO();function R5(e=hke){return s$(e)}function pke({styles:e,themeId:t,defaultTheme:n={}}){const r=R5(n),i=typeof e=="function"?e(t&&r[t]||r):e;return R.jsx(Xae,{styles:i})}const mke=["sx"],gke=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:yT;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function vT(e){const{sx:t}=e,n=wt(e,mke),{systemProps:r,otherProps:i}=gke(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return Bh(o)?Q({},r,o):r}:a=Q({},r,t),Q({},i,{sx:a})}const bke=Object.freeze(Object.defineProperty({__proto__:null,default:rO,extendSxProp:vT,unstable_createStyleFunctionSx:ise,unstable_defaultSxConfig:yT},Symbol.toStringTag,{value:"Module"})),lG=e=>e,yke=()=>{let e=lG;return{configure(t){e=t},generate(t){return e(t)},reset(){e=lG}}},o$=yke();function sse(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(rO);return M.forwardRef(function(l,u){const d=R5(n),f=vT(l),{className:p,component:g="div"}=f,O=wt(f,vke);return R.jsx(a,Q({as:g,ref:u,className:St(p,i?i(r):r),theme:t&&d[t]||d},O))})}const Ske={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 cn(e,t,n="Mui"){const r=Ske[t];return r?`${n}-${r}`:`${o$.generate(e)}-${t}`}function pn(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=cn(e,i,n)}),r}var ose={exports:{}},li={};/** + * @license React + * react-is.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var l$=Symbol.for("react.element"),u$=Symbol.for("react.portal"),I5=Symbol.for("react.fragment"),N5=Symbol.for("react.strict_mode"),D5=Symbol.for("react.profiler"),P5=Symbol.for("react.provider"),L5=Symbol.for("react.context"),Eke=Symbol.for("react.server_context"),M5=Symbol.for("react.forward_ref"),$5=Symbol.for("react.suspense"),F5=Symbol.for("react.suspense_list"),B5=Symbol.for("react.memo"),U5=Symbol.for("react.lazy"),wke=Symbol.for("react.offscreen"),lse;lse=Symbol.for("react.module.reference");function Dc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case l$:switch(e=e.type,e){case I5:case D5:case N5:case $5:case F5:return e;default:switch(e=e&&e.$$typeof,e){case Eke:case L5:case M5:case U5:case B5:case P5:return e;default:return t}}case u$:return t}}}li.ContextConsumer=L5;li.ContextProvider=P5;li.Element=l$;li.ForwardRef=M5;li.Fragment=I5;li.Lazy=U5;li.Memo=B5;li.Portal=u$;li.Profiler=D5;li.StrictMode=N5;li.Suspense=$5;li.SuspenseList=F5;li.isAsyncMode=function(){return!1};li.isConcurrentMode=function(){return!1};li.isContextConsumer=function(e){return Dc(e)===L5};li.isContextProvider=function(e){return Dc(e)===P5};li.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===l$};li.isForwardRef=function(e){return Dc(e)===M5};li.isFragment=function(e){return Dc(e)===I5};li.isLazy=function(e){return Dc(e)===U5};li.isMemo=function(e){return Dc(e)===B5};li.isPortal=function(e){return Dc(e)===u$};li.isProfiler=function(e){return Dc(e)===D5};li.isStrictMode=function(e){return Dc(e)===N5};li.isSuspense=function(e){return Dc(e)===$5};li.isSuspenseList=function(e){return Dc(e)===F5};li.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===I5||e===D5||e===N5||e===$5||e===F5||e===wke||typeof e=="object"&&e!==null&&(e.$$typeof===U5||e.$$typeof===B5||e.$$typeof===P5||e.$$typeof===L5||e.$$typeof===M5||e.$$typeof===lse||e.getModuleId!==void 0)};li.typeOf=Dc;ose.exports=li;var uG=ose.exports;const Tke=/^\s*function(?:\s|\s*\/\*.*\*\/\s*)+([^(\s/]*)\s*/;function use(e){const t=`${e}`.match(Tke);return t&&t[1]||""}function cse(e,t=""){return e.displayName||e.name||use(e)||t}function cG(e,t,n){const r=cse(t);return e.displayName||(r!==""?`${n}(${r})`:n)}function xke(e){if(e!=null){if(typeof e=="string")return e;if(typeof e=="function")return cse(e,"Component");if(typeof e=="object")switch(e.$$typeof){case uG.ForwardRef:return cG(e,e.render,"ForwardRef");case uG.Memo:return cG(e,e.type,"memo");default:return}}}const kke=Object.freeze(Object.defineProperty({__proto__:null,default:xke,getFunctionName:use},Symbol.toStringTag,{value:"Module"})),Ake=["ownerState"],_ke=["variants"],Cke=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Rke(e){return Object.keys(e).length===0}function Ike(e){return typeof e=="string"&&e.charCodeAt(0)>96}function CN(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const Nke=iO(),Dke=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function lA({defaultTheme:e,theme:t,themeId:n}){return Rke(t)?e:t[n]||t}function Pke(e){return e?(t,n)=>n[e]:null}function W4(e,t){let{ownerState:n}=t,r=wt(t,Ake);const i=typeof e=="function"?e(Q({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>W4(a,Q({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=wt(i,_ke);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props(Q({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style(Q({ownerState:n},r,n)):l.style))}),o}return i}function Lke(e={}){const{themeId:t,defaultTheme:n=Nke,rootShouldForwardProp:r=CN,slotShouldForwardProp:i=CN}=e,a=s=>rO(Q({},s,{theme:lA(Q({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{Kae(s,I=>I.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=Pke(Dke(u))}=o,g=wt(o,Cke),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=CN;u==="Root"||u==="root"?w=r:u?w=i:Ike(s)&&(w=void 0);const x=e$(s,Q({shouldForwardProp:w,label:T},g)),k=I=>typeof I=="function"&&I.__emotion_real!==I||Bh(I)?N=>W4(I,Q({},N,{theme:lA({theme:N.theme,defaultTheme:n,themeId:t})})):I,_=(I,...N)=>{let D=k(I);const L=N?N.map(k):[];l&&p&&L.push(W=>{const V=lA(Q({},W,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const re=V.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,ne])=>{ee[q]=W4(ne,Q({},W,{theme:V}))}),p(W,ee)}),l&&!O&&L.push(W=>{var V;const re=lA(Q({},W,{defaultTheme:n,themeId:t})),ee=re==null||(V=re.components)==null||(V=V[l])==null?void 0:V.variants;return W4({variants:ee},Q({},W,{theme:re}))}),S||L.push(a);const U=L.length-N.length;if(Array.isArray(I)&&U>0){const W=new Array(U).fill("");D=[...I,...W],D.raw=[...I.raw,...W]}const B=x(D,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}const dse=Lke();function Ev(e,t){const n=Q({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=Q({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=Q({},a),Object.keys(i).forEach(s=>{n[r][s]=Ev(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function fse(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:Ev(t.components[n].defaultProps,r)}function hse({props:e,name:t,defaultTheme:n,themeId:r}){let i=R5(n);return r&&(i=i[r]||i),fse({theme:i,name:t,props:e})}const Ko=typeof window<"u"?M.useLayoutEffect:M.useEffect;function Mke(e,t,n,r,i){const[a,s]=M.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return Ko(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const pse=M.useSyncExternalStore;function $ke(e,t,n,r,i){const a=M.useCallback(()=>t,[t]),s=M.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:d}=r(e);return()=>d}return a},[a,e,r,i,n]),[o,l]=M.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const d=n(e);return[()=>d.matches,f=>(d.addListener(f),()=>{d.removeListener(f)})]},[a,n,e]);return pse(l,o,s)}function mse(e,t={}){const n=s$(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=fse({name:"MuiUseMediaQuery",props:t,theme:n});let l=e;return l=l.replace(/^@media( ?)/m,""),(pse!==void 0?$ke:Mke)(l,i,a,s,o)}function xg(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const Fke=Object.freeze(Object.defineProperty({__proto__:null,default:xg},Symbol.toStringTag,{value:"Module"}));function c$(e,t=0,n=1){return xg(e,t,n)}function Bke(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 m1(e){if(e.type)return e;if(e.charAt(0)==="#")return m1(Bke(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(ip(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(ip(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function z5(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function Uke(e){e=m1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),z5({type:o,values:l})}function zke(e){e=m1(e);let t=e.type==="hsl"||e.type==="hsla"?m1(Uke(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 uA(e,t){return e=m1(e),t=c$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,z5(e)}function jke(e,t){if(e=m1(e),t=c$(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 z5(e)}function Hke(e,t){if(e=m1(e),t=c$(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 z5(e)}function Qke(e,t=.15){return zke(e)>.5?jke(e,t):Hke(e,t)}function u3(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function j5(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function Wke(e,t){return()=>null}function l2(e,t){var n,r;return M.isValidElement(e)&&t.indexOf((n=e.type.muiName)!=null?n:(r=e.type)==null||(r=r._payload)==null||(r=r.value)==null?void 0:r.muiName)!==-1}function ua(e){return e&&e.ownerDocument||document}function Bf(e){return ua(e).defaultView||window}function Vke(e,t){return()=>null}function lw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}let dG=0;function qke(e){const[t,n]=M.useState(e),r=e||t;return M.useEffect(()=>{t==null&&(dG+=1,n(`mui-${dG}`))},[t]),r}const fG=fv.useId;function aO(e){if(fG!==void 0){const t=fG();return e??t}return qke(e)}function Gke(e,t,n,r,i){return null}function If({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=M.useRef(e!==void 0),[a,s]=M.useState(t),o=i?e:a,l=M.useCallback(u=>{i||s(u)},[]);return[o,l]}function Vs(e){const t=M.useRef(e);return Ko(()=>{t.current=e}),M.useRef((...n)=>(0,t.current)(...n)).current}function Or(...e){return M.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{lw(n,t)})},e)}const hG={};function Yke(e,t){const n=M.useRef(hG);return n.current===hG&&(n.current=e(t)),n}const Zke=[];function Xke(e){M.useEffect(e,Zke)}class OT{constructor(){this.currentId=null,this.clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)},this.disposeEffect=()=>this.clear}static create(){return new OT}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}}function Pg(){const e=Yke(OT.create).current;return Xke(e.disposeEffect),e}let H5=!0,FP=!1;const Kke=new OT,Jke={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 eAe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&Jke[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function tAe(e){e.metaKey||e.altKey||e.ctrlKey||(H5=!0)}function RN(){H5=!1}function nAe(){this.visibilityState==="hidden"&&FP&&(H5=!0)}function rAe(e){e.addEventListener("keydown",tAe,!0),e.addEventListener("mousedown",RN,!0),e.addEventListener("pointerdown",RN,!0),e.addEventListener("touchstart",RN,!0),e.addEventListener("visibilitychange",nAe,!0)}function iAe(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return H5||eAe(t)}function Q5(){const e=M.useCallback(i=>{i!=null&&rAe(i.ownerDocument)},[]),t=M.useRef(!1);function n(){return t.current?(FP=!0,Kke.start(100,()=>{FP=!1}),t.current=!1,!0):!1}function r(i){return iAe(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function gse(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}const aAe=e=>{const t=M.useRef({});return M.useEffect(()=>{t.current=e}),t.current};function sAe(e){return M.Children.toArray(e).filter(t=>M.isValidElement(t))}const oAe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"};function mn(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}function Nf(e){return typeof e=="string"}function hy(e,t,n){return e===void 0||Nf(e)?t:Q({},t,{ownerState:Q({},t.ownerState,n)})}function u2(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 pG(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 bse(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=St(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),O=Q({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=Q({},n,i,r);return g.length>0&&(S.className=g),Object.keys(O).length>0&&(S.style=O),{props:S,internalRef:void 0}}const s=u2(Q({},i,r)),o=pG(r),l=pG(i),u=t(s),d=St(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=Q({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),p=Q({},u,n,l,o);return d.length>0&&(p.className=d),Object.keys(f).length>0&&(p.style=f),{props:p,internalRef:u.ref}}function yse(e,t,n){return typeof e=="function"?e(t,n):e}const lAe=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function jo(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=wt(e,lAe),o=a?{}:yse(r,i),{props:l,internalRef:u}=bse(Q({},s,{externalSlotProps:o})),d=Or(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return hy(n,Q({},l,{ref:d}),i)}const vse=M.createContext(null);function Ose(){return M.useContext(vse)}const uAe=typeof Symbol=="function"&&Symbol.for,cAe=uAe?Symbol.for("mui.nested"):"__THEME_NESTED__";function dAe(e,t){return typeof t=="function"?t(e):Q({},e,t)}function fAe(e){const{children:t,theme:n}=e,r=Ose(),i=M.useMemo(()=>{const a=r===null?n:dAe(r,n);return a!=null&&(a[cAe]=r!==null),a},[n,r]);return R.jsx(vse.Provider,{value:i,children:t})}const hAe=["value"],Sse=M.createContext();function pAe(e){let{value:t}=e,n=wt(e,hAe);return R.jsx(Sse.Provider,Q({value:t??!0},n))}const W5=()=>{const e=M.useContext(Sse);return e??!1},Ese=M.createContext(void 0);function mAe({value:e,children:t}){return R.jsx(Ese.Provider,{value:e,children:t})}function gAe(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const i=t.components[n];return i.defaultProps?Ev(i.defaultProps,r):!i.styleOverrides&&!i.variants?Ev(i,r):r}function bAe({props:e,name:t}){const n=M.useContext(Ese);return gAe({props:e,name:t,theme:{components:n}})}const mG={};function gG(e,t,n,r=!1){return M.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?Q({},t,{[e]:a}):a;return r?()=>s:s}return e?Q({},t,{[e]:n}):Q({},t,n)},[e,t,n,r])}function yAe(e){const{children:t,theme:n,themeId:r}=e,i=s$(mG),a=Ose()||mG,s=gG(r,i,n),o=gG(r,a,n,!0),l=s.direction==="rtl";return R.jsx(fAe,{theme:o,children:R.jsx(gT.Provider,{value:s,children:R.jsx(pAe,{value:l,children:R.jsx(mAe,{value:s==null?void 0:s.components,children:t})})})})}const vAe=["className","component","disableGutters","fixed","maxWidth","classes"],OAe=iO(),SAe=dse("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${it(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),EAe=e=>hse({props:e,name:"MuiContainer",defaultTheme:OAe}),wAe=(e,t)=>{const n=l=>cn(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${it(String(s))}`,i&&"fixed",a&&"disableGutters"]};return mn(o,n,r)};function TAe(e={}){const{createStyledComponent:t=SAe,useThemeProps:n=EAe,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>Q({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const d=u,f=s.breakpoints.values[d];return f!==0&&(l[s.breakpoints.up(d)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>Q({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return M.forwardRef(function(o,l){const u=n(o),{className:d,component:f="div",disableGutters:p=!1,fixed:g=!1,maxWidth:O="lg"}=u,S=wt(u,vAe),T=Q({},u,{component:f,disableGutters:p,fixed:g,maxWidth:O}),w=wAe(T,r);return R.jsx(i,Q({as:f,ownerState:T,className:St(w.root,d),ref:l},S))})}const xAe=["component","direction","spacing","divider","children","className","useFlexGap"],kAe=iO(),AAe=dse("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function _Ae(e){return hse({props:e,name:"MuiStack",defaultTheme:kAe})}function CAe(e,t){const n=M.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],IAe=({ownerState:e,theme:t})=>{let n=Q({display:"flex",flexDirection:"column"},Ll({theme:t},n1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=i$(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=n1({values:e.direction,base:i}),s=n1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,d)=>{if(!a[l]){const p=u>0?a[d[u-1]]:"column";a[l]=p}}),n=Yo(n,Ll({theme:t},s,(l,u)=>e.useFlexGap?{gap:p1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${RAe(u?a[u]:e.direction)}`]:p1(r,l)}}))}return n=Exe(t.breakpoints,n),n};function NAe(e={}){const{createStyledComponent:t=AAe,useThemeProps:n=_Ae,componentName:r="MuiStack"}=e,i=()=>mn({root:["root"]},l=>cn(r,l),{}),a=t(IAe);return M.forwardRef(function(l,u){const d=n(l),f=vT(d),{component:p="div",direction:g="column",spacing:O=0,divider:S,children:T,className:w,useFlexGap:x=!1}=f,k=wt(f,xAe),_={direction:g,spacing:O,useFlexGap:x},I=i();return R.jsx(a,Q({as:p,ownerState:_,ref:u,className:St(I.root,w)},k,{children:S?CAe(T,S):T}))})}function DAe(e,t){return Q({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}var $a={},wse={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})(wse);var Ni=wse.exports;const PAe=gp(iTe),LAe=gp(Fke);var Tse=Ni;Object.defineProperty($a,"__esModule",{value:!0});var Qn=$a.alpha=_se;$a.blend=VAe;$a.colorChannel=void 0;var uw=$a.darken=f$;$a.decomposeColor=xc;$a.emphasize=Cse;var MAe=$a.getContrastRatio=zAe;$a.getLuminance=c3;$a.hexToRgb=xse;$a.hslToRgb=Ase;var cw=$a.lighten=h$;$a.private_safeAlpha=jAe;$a.private_safeColorChannel=void 0;$a.private_safeDarken=HAe;$a.private_safeEmphasize=WAe;$a.private_safeLighten=QAe;$a.recomposeColor=sO;$a.rgbToHex=UAe;var bG=Tse(PAe),$Ae=Tse(LAe);function d$(e,t=0,n=1){return(0,$Ae.default)(e,t,n)}function xse(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 FAe(e){const t=e.toString(16);return t.length===1?`0${t}`:t}function xc(e){if(e.type)return e;if(e.charAt(0)==="#")return xc(xse(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error((0,bG.default)(9,e));let r=e.substring(t+1,e.length-1),i;if(n==="color"){if(r=r.split(" "),i=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].indexOf(i)===-1)throw new Error((0,bG.default)(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}const kse=e=>{const t=xc(e);return t.values.slice(0,3).map((n,r)=>t.type.indexOf("hsl")!==-1&&r!==0?`${n}%`:n).join(" ")};$a.colorChannel=kse;const BAe=(e,t)=>{try{return kse(e)}catch{return e}};$a.private_safeColorChannel=BAe;function sO(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function UAe(e){if(e.indexOf("#")===0)return e;const{values:t}=xc(e);return`#${t.map((n,r)=>FAe(r===3?Math.round(255*n):n)).join("")}`}function Ase(e){e=xc(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,d=(u+n/30)%12)=>i-a*Math.max(Math.min(d-3,9-d,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),sO({type:o,values:l})}function c3(e){e=xc(e);let t=e.type==="hsl"||e.type==="hsla"?xc(Ase(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 zAe(e,t){const n=c3(e),r=c3(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function _se(e,t){return e=xc(e),t=d$(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,sO(e)}function jAe(e,t,n){try{return _se(e,t)}catch{return e}}function f$(e,t){if(e=xc(e),t=d$(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 sO(e)}function HAe(e,t,n){try{return f$(e,t)}catch{return e}}function h$(e,t){if(e=xc(e),t=d$(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 sO(e)}function QAe(e,t,n){try{return h$(e,t)}catch{return e}}function Cse(e,t=.15){return c3(e)>.5?f$(e,t):h$(e,t)}function WAe(e,t,n){try{return Cse(e,t)}catch{return e}}function VAe(e,t,n,r=1){const i=(l,u)=>Math.round((l**(1/r)*(1-n)+u**(1/r)*n)**r),a=xc(e),s=xc(t),o=[i(a.values[0],s.values[0]),i(a.values[1],s.values[1]),i(a.values[2],s.values[2])];return sO({type:"rgb",values:o})}const qAe=["mode","contrastThreshold","tonalOffset"],yG={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:iw.white,default:iw.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}},IN={text:{primary:iw.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:iw.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 vG(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=cw(e.main,i):t==="dark"&&(e.dark=uw(e.main,a)))}function GAe(e="light"){return e==="dark"?{main:_b[200],light:_b[50],dark:_b[400]}:{main:_b[700],light:_b[400],dark:_b[800]}}function YAe(e="light"){return e==="dark"?{main:Ab[200],light:Ab[50],dark:Ab[400]}:{main:Ab[500],light:Ab[300],dark:Ab[700]}}function ZAe(e="light"){return e==="dark"?{main:kb[500],light:kb[300],dark:kb[700]}:{main:kb[700],light:kb[400],dark:kb[800]}}function XAe(e="light"){return e==="dark"?{main:Cb[400],light:Cb[300],dark:Cb[700]}:{main:Cb[700],light:Cb[500],dark:Cb[900]}}function KAe(e="light"){return e==="dark"?{main:Rb[400],light:Rb[300],dark:Rb[700]}:{main:Rb[800],light:Rb[500],dark:Rb[900]}}function JAe(e="light"){return e==="dark"?{main:KS[400],light:KS[300],dark:KS[700]}:{main:"#ed6c02",light:KS[500],dark:KS[900]}}function e4e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=wt(e,qAe),a=e.primary||GAe(t),s=e.secondary||YAe(t),o=e.error||ZAe(t),l=e.info||XAe(t),u=e.success||KAe(t),d=e.warning||JAe(t);function f(S){return MAe(S,IN.text.primary)>=n?IN.text.primary:yG.text.primary}const p=({color:S,name:T,mainShade:w=500,lightShade:x=300,darkShade:k=700})=>{if(S=Q({},S),!S.main&&S[w]&&(S.main=S[w]),!S.hasOwnProperty("main"))throw new Error(ip(11,T?` (${T})`:"",w));if(typeof S.main!="string")throw new Error(ip(12,T?` (${T})`:"",JSON.stringify(S.main)));return vG(S,"light",x,r),vG(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:IN,light:yG};return Yo(Q({common:Q({},iw),mode:t,primary:p({color:a,name:"primary"}),secondary:p({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:p({color:o,name:"error"}),warning:p({color:d,name:"warning"}),info:p({color:l,name:"info"}),success:p({color:u,name:"success"}),grey:rTe,contrastThreshold:n,getContrastText:f,augmentColor:p,tonalOffset:r},g[t]),i)}const t4e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function n4e(e){return Math.round(e*1e5)/1e5}const OG={textTransform:"uppercase"},SG='"Roboto", "Helvetica", "Arial", sans-serif';function r4e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=SG,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:d,pxToRem:f}=n,p=wt(n,t4e),g=i/14,O=f||(w=>`${w/u*g}rem`),S=(w,x,k,_,I)=>Q({fontFamily:r,fontWeight:w,fontSize:O(x),lineHeight:k},r===SG?{letterSpacing:`${n4e(_/x)}em`}:{},I,d),T={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,OG),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,OG),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return Yo(Q({htmlFontSize:u,pxToRem:O,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},T),p,{clone:!1})}const i4e=.2,a4e=.14,s4e=.12;function Gi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${i4e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${a4e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${s4e})`].join(",")}const o4e=["none",Gi(0,2,1,-1,0,1,1,0,0,1,3,0),Gi(0,3,1,-2,0,2,2,0,0,1,5,0),Gi(0,3,3,-2,0,3,4,0,0,1,8,0),Gi(0,2,4,-1,0,4,5,0,0,1,10,0),Gi(0,3,5,-1,0,5,8,0,0,1,14,0),Gi(0,3,5,-1,0,6,10,0,0,1,18,0),Gi(0,4,5,-2,0,7,10,1,0,2,16,1),Gi(0,5,5,-3,0,8,10,1,0,3,14,2),Gi(0,5,6,-3,0,9,12,1,0,3,16,2),Gi(0,6,6,-3,0,10,14,1,0,4,18,3),Gi(0,6,7,-4,0,11,15,1,0,4,20,3),Gi(0,7,8,-4,0,12,17,2,0,5,22,4),Gi(0,7,8,-4,0,13,19,2,0,5,24,4),Gi(0,7,9,-4,0,14,21,2,0,5,26,4),Gi(0,8,9,-5,0,15,22,2,0,6,28,5),Gi(0,8,10,-5,0,16,24,2,0,6,30,5),Gi(0,8,11,-5,0,17,26,2,0,6,32,5),Gi(0,9,11,-5,0,18,28,2,0,7,34,6),Gi(0,9,12,-6,0,19,29,2,0,7,36,6),Gi(0,10,13,-6,0,20,31,3,0,8,38,7),Gi(0,10,13,-6,0,21,33,3,0,8,40,7),Gi(0,10,14,-6,0,22,35,3,0,8,42,7),Gi(0,11,14,-7,0,23,36,3,0,9,44,8),Gi(0,11,15,-7,0,24,38,3,0,9,46,8)],l4e=["duration","easing","delay"],u4e={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)"},Rse={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function EG(e){return`${Math.round(e)}ms`}function c4e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function d4e(e){const t=Q({},u4e,e.easing),n=Q({},Rse,e.duration);return Q({getAutoHeightDuration:c4e,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return wt(a,l4e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:EG(s)} ${o} ${typeof l=="string"?l:EG(l)}`).join(",")}},e,{easing:t,duration:n})}const f4e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},h4e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function p$(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=wt(e,h4e);if(e.vars)throw new Error(ip(18));const o=e4e(r),l=iO(e);let u=Yo(l,{mixins:DAe(l.breakpoints,n),palette:o,shadows:o4e.slice(),typography:r4e(o,a),transitions:d4e(i),zIndex:Q({},f4e)});return u=Yo(u,s),u=t.reduce((d,f)=>Yo(d,f),u),u.unstable_sxConfig=Q({},yT,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return rO({sx:f,theme:this})},u}const m$=p$();function Pc(){const e=R5(m$);return e[Ov]||e}var ST={},NN={exports:{}},wG;function Ise(){return wG||(wG=1,function(e){function t(n,r){if(n==null)return{};var i={};for(var a in n)if({}.hasOwnProperty.call(n,a)){if(r.includes(a))continue;i[a]=n[a]}return i}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}(NN)),NN.exports}const Nse=gp(bxe),p4e=gp(yxe),m4e=gp(Txe),g4e=gp(kke),b4e=gp(dke),y4e=gp(bke);var oO=Ni;Object.defineProperty(ST,"__esModule",{value:!0});var v4e=ST.default=N4e;ST.shouldForwardProp=V4;ST.systemDefaultTheme=void 0;var ec=oO(qae()),BP=oO(Ise()),TG=k4e(Nse),O4e=p4e;oO(m4e);oO(g4e);var S4e=oO(b4e),E4e=oO(y4e);const w4e=["ownerState"],T4e=["variants"],x4e=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function Dse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Dse=function(r){return r?n:t})(e)}function k4e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Dse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function A4e(e){return Object.keys(e).length===0}function _4e(e){return typeof e=="string"&&e.charCodeAt(0)>96}function V4(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const C4e=ST.systemDefaultTheme=(0,S4e.default)(),R4e=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function cA({defaultTheme:e,theme:t,themeId:n}){return A4e(t)?e:t[n]||t}function I4e(e){return e?(t,n)=>n[e]:null}function q4(e,t){let{ownerState:n}=t,r=(0,BP.default)(t,w4e);const i=typeof e=="function"?e((0,ec.default)({ownerState:n},r)):e;if(Array.isArray(i))return i.flatMap(a=>q4(a,(0,ec.default)({ownerState:n},r)));if(i&&typeof i=="object"&&Array.isArray(i.variants)){const{variants:a=[]}=i;let o=(0,BP.default)(i,T4e);return a.forEach(l=>{let u=!0;typeof l.props=="function"?u=l.props((0,ec.default)({ownerState:n},r,n)):Object.keys(l.props).forEach(d=>{(n==null?void 0:n[d])!==l.props[d]&&r[d]!==l.props[d]&&(u=!1)}),u&&(Array.isArray(o)||(o=[o]),o.push(typeof l.style=="function"?l.style((0,ec.default)({ownerState:n},r,n)):l.style))}),o}return i}function N4e(e={}){const{themeId:t,defaultTheme:n=C4e,rootShouldForwardProp:r=V4,slotShouldForwardProp:i=V4}=e,a=s=>(0,E4e.default)((0,ec.default)({},s,{theme:cA((0,ec.default)({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{(0,TG.internal_processStyles)(s,I=>I.filter(N=>!(N!=null&&N.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:d,skipSx:f,overridesResolver:p=I4e(R4e(u))}=o,g=(0,BP.default)(o,x4e),O=d!==void 0?d:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let T,w=V4;u==="Root"||u==="root"?w=r:u?w=i:_4e(s)&&(w=void 0);const x=(0,TG.default)(s,(0,ec.default)({shouldForwardProp:w,label:T},g)),k=I=>typeof I=="function"&&I.__emotion_real!==I||(0,O4e.isPlainObject)(I)?N=>q4(I,(0,ec.default)({},N,{theme:cA({theme:N.theme,defaultTheme:n,themeId:t})})):I,_=(I,...N)=>{let D=k(I);const L=N?N.map(k):[];l&&p&&L.push(W=>{const V=cA((0,ec.default)({},W,{defaultTheme:n,themeId:t}));if(!V.components||!V.components[l]||!V.components[l].styleOverrides)return null;const re=V.components[l].styleOverrides,ee={};return Object.entries(re).forEach(([q,ne])=>{ee[q]=q4(ne,(0,ec.default)({},W,{theme:V}))}),p(W,ee)}),l&&!O&&L.push(W=>{var V;const re=cA((0,ec.default)({},W,{defaultTheme:n,themeId:t})),ee=re==null||(V=re.components)==null||(V=V[l])==null?void 0:V.variants;return q4({variants:ee},(0,ec.default)({},W,{theme:re}))}),S||L.push(a);const U=L.length-N.length;if(Array.isArray(I)&&U>0){const W=new Array(U).fill("");D=[...I,...W],D.raw=[...I.raw,...W]}const B=x(D,...L);return s.muiName&&(B.muiName=s.muiName),B};return x.withConfig&&(_.withConfig=x.withConfig),_}}function V5(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const ks=e=>V5(e)&&e!=="classes",at=v4e({themeId:Ov,defaultTheme:m$,rootShouldForwardProp:ks}),D4e=["theme"];function P4e(e){let{theme:t}=e,n=wt(e,D4e);const r=t[Ov];return R.jsx(yAe,Q({},n,{themeId:r?Ov:void 0,theme:r||t}))}const xG=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function gn(e){return bAe(e)}function L4e(e){return cn("MuiSvgIcon",e)}pn("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const M4e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],$4e=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${it(t)}`,`fontSize${it(n)}`]};return mn(i,L4e,r)},F4e=at("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${it(n.color)}`],t[`fontSize${it(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,d,f,p,g,O;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(d=u.pxToRem)==null?void 0:d.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(p=(e.vars||e).palette)==null||(p=p[t.color])==null?void 0:p.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(O=(e.vars||e).palette)==null||(O=O.action)==null?void 0:O.disabled,inherit:void 0}[t.color]}}),tm=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:d=!1,titleAccess:f,viewBox:p="0 0 24 24"}=r,g=wt(r,M4e),O=M.isValidElement(i)&&i.type==="svg",S=Q({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:d,viewBox:p,hasSvgAsChild:O}),T={};d||(T.viewBox=p);const w=$4e(S);return R.jsxs(F4e,Q({as:o,className:St(w.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},T,g,O&&i.props,{ownerState:S,children:[O?i.props.children:i,f?R.jsx("title",{children:f}):null]}))});tm.muiName="SvgIcon";function Nd(e,t){function n(r,i){return R.jsx(tm,Q({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=tm.muiName,M.memo(M.forwardRef(n))}const B4e={configure:e=>{o$.configure(e)}},U4e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:it,createChainedFunction:u3,createSvgIcon:Nd,debounce:j5,deprecatedPropType:Wke,isMuiElement:l2,ownerDocument:ua,ownerWindow:Bf,requirePropFactory:Vke,setRef:lw,unstable_ClassNameGenerator:B4e,unstable_useEnhancedEffect:Ko,unstable_useId:aO,unsupportedProp:Gke,useControlled:If,useEventCallback:Vs,useForkRef:Or,useIsFocusVisible:Q5},Symbol.toStringTag,{value:"Module"}));function UP(e,t){return UP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},UP(e,t)}function Pse(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,UP(e,t)}const kG={disabled:!1},d3=rn.createContext(null);var z4e=function(t){return t.scrollTop},ME="unmounted",Eg="exited",wg="entering",jb="entered",zP="exiting",Lc=function(e){Pse(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=Eg,a.appearStatus=wg):l=jb:r.unmountOnExit||r.mountOnEnter?l=ME:l=Eg,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===ME?{status:Eg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==wg&&s!==jb&&(a=wg):(s===wg||s===jb)&&(a=zP)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===wg){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:LE.findDOMNode(this);s&&z4e(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===Eg&&this.setState({status:ME})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[LE.findDOMNode(this),o],u=l[0],d=l[1],f=this.getTimeouts(),p=o?f.appear:f.enter;if(!i&&!s||kG.disabled){this.safeSetState({status:jb},function(){a.props.onEntered(u)});return}this.props.onEnter(u,d),this.safeSetState({status:wg},function(){a.props.onEntering(u,d),a.onTransitionEnd(p,function(){a.safeSetState({status:jb},function(){a.props.onEntered(u,d)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:LE.findDOMNode(this);if(!a||kG.disabled){this.safeSetState({status:Eg},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:zP},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:Eg},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:LE.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],d=l[1];this.props.addEndListener(u,d)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===ME)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=wt(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return rn.createElement(d3.Provider,{value:null},typeof s=="function"?s(i,o):rn.cloneElement(rn.Children.only(s),o))},t}(rn.Component);Lc.contextType=d3;Lc.propTypes={};function Ib(){}Lc.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Ib,onEntering:Ib,onEntered:Ib,onExit:Ib,onExiting:Ib,onExited:Ib};Lc.UNMOUNTED=ME;Lc.EXITED=Eg;Lc.ENTERING=wg;Lc.ENTERED=jb;Lc.EXITING=zP;function j4e(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function g$(e,t){var n=function(a){return t&&M.isValidElement(a)?t(a):a},r=Object.create(null);return e&&M.Children.map(e,function(i){return i}).forEach(function(i){r[i.key]=n(i)}),r}function H4e(e,t){e=e||{},t=t||{};function n(d){return d in t?t[d]:e[d]}var r=Object.create(null),i=[];for(var a in e)a in t?i.length&&(r[a]=i,i=[]):i.push(a);var s,o={};for(var l in t){if(r[l])for(s=0;se.scrollTop;function nm(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function G4e(e){return cn("MuiCollapse",e)}pn("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const Y4e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],Z4e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return mn(r,G4e,n)},X4e=at("div",{name:"MuiCollapse",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.orientation],n.state==="entered"&&t.entered,n.state==="exited"&&!n.in&&n.collapsedSize==="0px"&&t.hidden]}})(({theme:e,ownerState:t})=>Q({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&Q({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),K4e=at("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>Q({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),J4e=at("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>Q({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Lse=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:d,onEnter:f,onEntered:p,onEntering:g,onExit:O,onExited:S,onExiting:T,orientation:w="vertical",style:x,timeout:k=Rse.standard,TransitionComponent:_=Lc}=r,I=wt(r,Y4e),N=Q({},r,{orientation:w,collapsedSize:o}),D=Z4e(N),L=Pc(),U=Pg(),B=M.useRef(null),W=M.useRef(),V=typeof o=="number"?`${o}px`:o,re=w==="horizontal",ee=re?"width":"height",q=M.useRef(null),ne=Or(n,q),K=ae=>Xe=>{if(ae){const We=q.current;Xe===void 0?ae(We):ae(We,Xe)}},G=()=>B.current?B.current[re?"clientWidth":"clientHeight"]:0,ie=K((ae,Xe)=>{B.current&&re&&(B.current.style.position="absolute"),ae.style[ee]=V,f&&f(ae,Xe)}),H=K((ae,Xe)=>{const We=G();B.current&&re&&(B.current.style.position="");const{duration:Ye,easing:xt}=nm({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const st=L.transitions.getAutoHeightDuration(We);ae.style.transitionDuration=`${st}ms`,W.current=st}else ae.style.transitionDuration=typeof Ye=="string"?Ye:`${Ye}ms`;ae.style[ee]=`${We}px`,ae.style.transitionTimingFunction=xt,g&&g(ae,Xe)}),Re=K((ae,Xe)=>{ae.style[ee]="auto",p&&p(ae,Xe)}),Se=K(ae=>{ae.style[ee]=`${G()}px`,O&&O(ae)}),Z=K(S),ke=K(ae=>{const Xe=G(),{duration:We,easing:Ye}=nm({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const xt=L.transitions.getAutoHeightDuration(Xe);ae.style.transitionDuration=`${xt}ms`,W.current=xt}else ae.style.transitionDuration=typeof We=="string"?We:`${We}ms`;ae.style[ee]=V,ae.style.transitionTimingFunction=Ye,T&&T(ae)}),$e=ae=>{k==="auto"&&U.start(W.current||0,ae),i&&i(q.current,ae)};return R.jsx(_,Q({in:d,onEnter:ie,onEntered:Re,onEntering:H,onExit:Se,onExited:Z,onExiting:ke,addEndListener:$e,nodeRef:q,timeout:k==="auto"?null:k},I,{children:(ae,Xe)=>R.jsx(X4e,Q({as:l,className:St(D.root,s,{entered:D.entered,exited:!d&&V==="0px"&&D.hidden}[ae]),style:Q({[re?"minWidth":"minHeight"]:V},x),ref:ne},Xe,{ownerState:Q({},N,{state:ae}),children:R.jsx(K4e,{ownerState:Q({},N,{state:ae}),className:D.wrapper,ref:B,children:R.jsx(J4e,{ownerState:Q({},N,{state:ae}),className:D.wrapperInner,children:a})})}))}))});Lse.muiSupportAuto=!0;function e_e(e){return cn("MuiPaper",e)}pn("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 t_e=["className","component","elevation","square","variant"],n_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return mn(a,e_e,i)},r_e=at("div",{name:"MuiPaper",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],!n.square&&t.rounded,n.variant==="elevation"&&t[`elevation${n.elevation}`]]}})(({theme:e,ownerState:t})=>{var n;return Q({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow")},!t.square&&{borderRadius:e.shape.borderRadius},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.divider}`},t.variant==="elevation"&&Q({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Qn("#fff",xG(t.elevation))}, ${Qn("#fff",xG(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),Oo=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=wt(r,t_e),d=Q({},r,{component:a,elevation:s,square:o,variant:l}),f=n_e(d);return R.jsx(r_e,Q({as:a,ownerState:d,className:St(f.root,i),ref:n},u))}),i_e=["className","elementType","ownerState","externalForwardedProps","getSlotOwnerState","internalForwardedProps"],a_e=["component","slots","slotProps"],s_e=["component"];function o_e(e,t){const{className:n,elementType:r,ownerState:i,externalForwardedProps:a,getSlotOwnerState:s,internalForwardedProps:o}=t,l=wt(t,i_e),{component:u,slots:d={[e]:void 0},slotProps:f={[e]:void 0}}=a;wt(a,a_e);const p=d[e]||r,g=yse(f[e],i),O=bse(Q({className:n},l,{externalForwardedProps:void 0,externalSlotProps:g})),{props:{component:S},internalRef:T}=O,w=wt(O.props,s_e),x=Or(T,g==null?void 0:g.ref,t.ref),k=s?s(w):{},_=Q({},i,k),I=S,N=hy(p,Q({},e==="root",!d[e]&&o,w,I&&{as:I},{ref:x}),_);return Object.keys(k).forEach(D=>{delete N[D]}),[p,N]}function l_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[d,f]=M.useState(!1),p=St(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},O=St(n.child,d&&n.childLeaving,r&&n.childPulsate);return!o&&!d&&f(!0),M.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),R.jsx("span",{className:p,style:g,children:R.jsx("span",{className:O})})}const nc=pn("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),u_e=["center","classes","className"];let q5=e=>e,AG,_G,CG,RG;const jP=550,c_e=80,d_e=nO(AG||(AG=q5` + 0% { + transform: scale(0); + opacity: 0.1; + } + + 100% { + transform: scale(1); + opacity: 0.3; + } +`)),f_e=nO(_G||(_G=q5` + 0% { + opacity: 1; + } + + 100% { + opacity: 0; + } +`)),h_e=nO(CG||(CG=q5` + 0% { + transform: scale(1); + } + + 50% { + transform: scale(0.92); + } + + 100% { + transform: scale(1); + } +`)),p_e=at("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),m_e=at(l_e,{name:"MuiTouchRipple",slot:"Ripple"})(RG||(RG=q5` + opacity: 0; + position: absolute; + + &.${0} { + opacity: 0.3; + transform: scale(1); + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + &.${0} { + animation-duration: ${0}ms; + } + + & .${0} { + opacity: 1; + display: block; + width: 100%; + height: 100%; + border-radius: 50%; + background-color: currentColor; + } + + & .${0} { + opacity: 0; + animation-name: ${0}; + animation-duration: ${0}ms; + animation-timing-function: ${0}; + } + + & .${0} { + position: absolute; + /* @noflip */ + left: 0px; + top: 0; + animation-name: ${0}; + animation-duration: 2500ms; + animation-timing-function: ${0}; + animation-iteration-count: infinite; + animation-delay: 200ms; + } +`),nc.rippleVisible,d_e,jP,({theme:e})=>e.transitions.easing.easeInOut,nc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,nc.child,nc.childLeaving,f_e,jP,({theme:e})=>e.transitions.easing.easeInOut,nc.childPulsate,h_e,({theme:e})=>e.transitions.easing.easeInOut),g_e=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=wt(r,u_e),[l,u]=M.useState([]),d=M.useRef(0),f=M.useRef(null);M.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const p=M.useRef(!1),g=Pg(),O=M.useRef(null),S=M.useRef(null),T=M.useCallback(_=>{const{pulsate:I,rippleX:N,rippleY:D,rippleSize:L,cb:U}=_;u(B=>[...B,R.jsx(m_e,{classes:{ripple:St(a.ripple,nc.ripple),rippleVisible:St(a.rippleVisible,nc.rippleVisible),ripplePulsate:St(a.ripplePulsate,nc.ripplePulsate),child:St(a.child,nc.child),childLeaving:St(a.childLeaving,nc.childLeaving),childPulsate:St(a.childPulsate,nc.childPulsate)},timeout:jP,pulsate:I,rippleX:N,rippleY:D,rippleSize:L},d.current)]),d.current+=1,f.current=U},[a]),w=M.useCallback((_={},I={},N=()=>{})=>{const{pulsate:D=!1,center:L=i||I.pulsate,fakeElement:U=!1}=I;if((_==null?void 0:_.type)==="mousedown"&&p.current){p.current=!1;return}(_==null?void 0:_.type)==="touchstart"&&(p.current=!0);const B=U?null:S.current,W=B?B.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,re,ee;if(L||_===void 0||_.clientX===0&&_.clientY===0||!_.clientX&&!_.touches)V=Math.round(W.width/2),re=Math.round(W.height/2);else{const{clientX:q,clientY:ne}=_.touches&&_.touches.length>0?_.touches[0]:_;V=Math.round(q-W.left),re=Math.round(ne-W.top)}if(L)ee=Math.sqrt((2*W.width**2+W.height**2)/3),ee%2===0&&(ee+=1);else{const q=Math.max(Math.abs((B?B.clientWidth:0)-V),V)*2+2,ne=Math.max(Math.abs((B?B.clientHeight:0)-re),re)*2+2;ee=Math.sqrt(q**2+ne**2)}_!=null&&_.touches?O.current===null&&(O.current=()=>{T({pulsate:D,rippleX:V,rippleY:re,rippleSize:ee,cb:N})},g.start(c_e,()=>{O.current&&(O.current(),O.current=null)})):T({pulsate:D,rippleX:V,rippleY:re,rippleSize:ee,cb:N})},[i,T,g]),x=M.useCallback(()=>{w({},{pulsate:!0})},[w]),k=M.useCallback((_,I)=>{if(g.clear(),(_==null?void 0:_.type)==="touchend"&&O.current){O.current(),O.current=null,g.start(0,()=>{k(_,I)});return}O.current=null,u(N=>N.length>0?N.slice(1):N),f.current=I},[g]);return M.useImperativeHandle(n,()=>({pulsate:x,start:w,stop:k}),[x,w,k]),R.jsx(p_e,Q({className:St(nc.root,a.root,s),ref:S},o,{children:R.jsx(b$,{component:null,exit:!0,children:l})}))});function b_e(e){return cn("MuiButtonBase",e)}const y_e=pn("MuiButtonBase",["root","disabled","focusVisible"]),v_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],O_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=mn({root:["root",t&&"disabled",n&&"focusVisible"]},b_e,i);return n&&r&&(s.root+=` ${r}`),s},S_e=at("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"},[`&.${y_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),Uf=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:d=!1,disableTouchRipple:f=!1,focusRipple:p=!1,LinkComponent:g="a",onBlur:O,onClick:S,onContextMenu:T,onDragLeave:w,onFocus:x,onFocusVisible:k,onKeyDown:_,onKeyUp:I,onMouseDown:N,onMouseLeave:D,onMouseUp:L,onTouchEnd:U,onTouchMove:B,onTouchStart:W,tabIndex:V=0,TouchRippleProps:re,touchRippleRef:ee,type:q}=r,ne=wt(r,v_e),K=M.useRef(null),G=M.useRef(null),ie=Or(G,ee),{isFocusVisibleRef:H,onFocus:Re,onBlur:Se,ref:Z}=Q5(),[ke,$e]=M.useState(!1);u&&ke&&$e(!1),M.useImperativeHandle(i,()=>({focusVisible:()=>{$e(!0),K.current.focus()}}),[]);const[ae,Xe]=M.useState(!1);M.useEffect(()=>{Xe(!0)},[]);const We=ae&&!d&&!u;M.useEffect(()=>{ke&&p&&!d&&ae&&G.current.pulsate()},[d,p,ke,ae]);function Ye(xe,Ue,Ct=f){return Vs(qt=>(Ue&&Ue(qt),!Ct&&G.current&&G.current[xe](qt),!0))}const xt=Ye("start",N),st=Ye("stop",T),Pt=Ye("stop",w),jt=Ye("stop",L),ut=Ye("stop",xe=>{ke&&xe.preventDefault(),D&&D(xe)}),Ot=Ye("start",W),yt=Ye("stop",U),Ut=Ye("stop",B),de=Ye("stop",xe=>{Se(xe),H.current===!1&&$e(!1),O&&O(xe)},!1),Ce=Vs(xe=>{K.current||(K.current=xe.currentTarget),Re(xe),H.current===!0&&($e(!0),k&&k(xe)),x&&x(xe)}),Ne=()=>{const xe=K.current;return l&&l!=="button"&&!(xe.tagName==="A"&&xe.href)},Ke=M.useRef(!1),ct=Vs(xe=>{p&&!Ke.current&&ke&&G.current&&xe.key===" "&&(Ke.current=!0,G.current.stop(xe,()=>{G.current.start(xe)})),xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&xe.preventDefault(),_&&_(xe),xe.target===xe.currentTarget&&Ne()&&xe.key==="Enter"&&!u&&(xe.preventDefault(),S&&S(xe))}),Je=Vs(xe=>{p&&xe.key===" "&&G.current&&ke&&!xe.defaultPrevented&&(Ke.current=!1,G.current.stop(xe,()=>{G.current.pulsate(xe)})),I&&I(xe),S&&xe.target===xe.currentTarget&&Ne()&&xe.key===" "&&!xe.defaultPrevented&&S(xe)});let gt=l;gt==="button"&&(ne.href||ne.to)&&(gt=g);const en={};gt==="button"?(en.type=q===void 0?"button":q,en.disabled=u):(!ne.href&&!ne.to&&(en.role="button"),u&&(en["aria-disabled"]=u));const Fe=Or(n,Z,K),Te=Q({},r,{centerRipple:a,component:l,disabled:u,disableRipple:d,disableTouchRipple:f,focusRipple:p,tabIndex:V,focusVisible:ke}),ye=O_e(Te);return R.jsxs(S_e,Q({as:gt,className:St(ye.root,o),ownerState:Te,onBlur:de,onClick:S,onContextMenu:st,onFocus:Ce,onKeyDown:ct,onKeyUp:Je,onMouseDown:xt,onMouseLeave:ut,onMouseUp:jt,onDragLeave:Pt,onTouchEnd:yt,onTouchMove:Ut,onTouchStart:Ot,ref:Fe,tabIndex:u?-1:V,type:q},en,ne,{children:[s,We?R.jsx(g_e,Q({ref:ie,center:a},re)):null]}))});function E_e(e){return cn("MuiIconButton",e)}const w_e=pn("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),T_e=["edge","children","className","color","disabled","disableFocusRipple","size"],x_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${it(r)}`,i&&`edge${it(i)}`,`size${it(a)}`]};return mn(s,E_e,t)},k_e=at(Uf,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${it(n.color)}`],n.edge&&t[`edge${it(n.edge)}`],t[`size${it(n.size)}`]]}})(({theme:e,ownerState:t})=>Q({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",overflow:"visible",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest})},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.edge==="start"&&{marginLeft:t.size==="small"?-3:-12},t.edge==="end"&&{marginRight:t.size==="small"?-3:-12}),({theme:e,ownerState:t})=>{var n;const r=(n=(e.vars||e).palette)==null?void 0:n[t.color];return Q({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&Q({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":Q({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(r.main,e.palette.action.hoverOpacity)},{"@media (hover: none)":{backgroundColor:"transparent"}})}),t.size==="small"&&{padding:5,fontSize:e.typography.pxToRem(18)},t.size==="large"&&{padding:12,fontSize:e.typography.pxToRem(28)},{[`&.${w_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),ss=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:d="medium"}=r,f=wt(r,T_e),p=Q({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:d}),g=x_e(p);return R.jsx(k_e,Q({className:St(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n},f,{ownerState:p,children:a}))}),A_e=Nd(R.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 __e(e){return cn("MuiTypography",e)}pn("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const C_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],R_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${it(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return mn(o,__e,s)},I_e=at("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${it(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>Q({margin:0},t.variant==="inherit"&&{font:"inherit"},t.variant!=="inherit"&&e.typography[t.variant],t.align!=="inherit"&&{textAlign:t.align},t.noWrap&&{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},t.gutterBottom&&{marginBottom:"0.35em"},t.paragraph&&{marginBottom:16})),IG={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},N_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},D_e=e=>N_e[e]||e,Cr=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTypography"}),i=D_e(r.color),a=vT(Q({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:d=!1,paragraph:f=!1,variant:p="body1",variantMapping:g=IG}=a,O=wt(a,C_e),S=Q({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:d,paragraph:f,variant:p,variantMapping:g}),T=l||(f?"p":g[p]||IG[p])||"span",w=R_e(S);return R.jsx(I_e,Q({as:T,ref:n,ownerState:S,className:St(w.root,o)},O))});function P_e(e){return cn("MuiAppBar",e)}pn("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const L_e=["className","color","enableColorOnDark","position"],M_e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${it(t)}`,`position${it(n)}`]};return mn(i,P_e,r)},dA=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,$_e=at(Oo,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${it(n.position)}`],t[`color${it(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return Q({display:"flex",flexDirection:"column",width:"100%",boxSizing:"border-box",flexShrink:0},t.position==="fixed"&&{position:"fixed",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0,"@media print":{position:"absolute"}},t.position==="absolute"&&{position:"absolute",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="sticky"&&{position:"sticky",zIndex:(e.vars||e).zIndex.appBar,top:0,left:"auto",right:0},t.position==="static"&&{position:"static"},t.position==="relative"&&{position:"relative"},!e.vars&&Q({},t.color==="default"&&{backgroundColor:n,color:e.palette.getContrastText(n)},t.color&&t.color!=="default"&&t.color!=="inherit"&&t.color!=="transparent"&&{backgroundColor:e.palette[t.color].main,color:e.palette[t.color].contrastText},t.color==="inherit"&&{color:"inherit"},e.palette.mode==="dark"&&!t.enableColorOnDark&&{backgroundColor:null,color:null},t.color==="transparent"&&Q({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&Q({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:dA(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:dA(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:dA(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:dA(e.vars.palette.AppBar.darkColor,e.vars.palette[t.color].contrastText)},!["inherit","transparent"].includes(t.color)&&{backgroundColor:"var(--AppBar-background)"},{color:t.color==="inherit"?"inherit":"var(--AppBar-color)"},t.color==="transparent"&&{backgroundImage:"none",backgroundColor:"transparent",color:"inherit"}))}),Mse=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=wt(r,L_e),u=Q({},r,{color:a,position:o,enableColorOnDark:s}),d=M_e(u);return R.jsx($_e,Q({square:!0,component:"header",ownerState:u,elevation:4,className:St(d.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))});function NG(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function F_e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let d=s?l.trim():l;n&&(d=d.toLowerCase()),t&&(d=NG(d));const f=d?o.filter(p=>{let g=(a||u)(p);return n&&(g=g.toLowerCase()),t&&(g=NG(g)),i==="start"?g.indexOf(d)===0:g.indexOf(d)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function fA(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 z_e(e){const{unstable_isActiveElementInListbox:t=U_e,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:d=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:p=!1,disabled:g,disabledItemsFocusable:O=!1,disableListWrap:S=!1,filterOptions:T=B_e,filterSelectedOptions:w=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:_,getOptionLabel:I=Ie=>{var we;return(we=Ie.label)!=null?we:Ie},groupBy:N,handleHomeEndKeys:D=!e.freeSolo,id:L,includeInputInList:U=!1,inputValue:B,isOptionEqualToValue:W=(Ie,we)=>Ie===we,multiple:V=!1,onChange:re,onClose:ee,onHighlightChange:q,onInputChange:ne,onOpen:K,open:G,openOnFocus:ie=!1,options:H,readOnly:Re=!1,selectOnFocus:Se=!e.freeSolo,value:Z}=e,ke=aO(L);let $e=I;$e=Ie=>{const we=I(Ie);return typeof we!="string"?String(we):we};const ae=M.useRef(!1),Xe=M.useRef(!0),We=M.useRef(null),Ye=M.useRef(null),[xt,st]=M.useState(null),[Pt,jt]=M.useState(-1),ut=i?0:-1,Ot=M.useRef(ut),[yt,Ut]=If({controlled:Z,default:d,name:u}),[de,Ce]=If({controlled:B,default:"",name:u,state:"inputValue"}),[Ne,Ke]=M.useState(!1),ct=M.useCallback((Ie,we)=>{if(!(V?yt.length!(w&&(V?yt:[yt]).some(we=>we!==null&&W(Ie,we)))),{inputValue:Te&&en?"":de,getOptionLabel:$e}):[],Ue=aAe({filteredOptions:xe,value:yt,inputValue:de});M.useEffect(()=>{const Ie=yt!==Ue.value;Ne&&!Ie||x&&!Ie||ct(null,yt)},[yt,ct,Ne,Ue.value,x]);const Ct=Je&&xe.length>0&&!Re,qt=Vs(Ie=>{Ie===-1?We.current.focus():xt.querySelector(`[data-tag-index="${Ie}"]`).focus()});M.useEffect(()=>{V&&Pt>yt.length-1&&(jt(-1),qt(-1))},[yt,V,Pt,qt]);function tt(Ie,we){if(!Ye.current||Ie<0||Ie>=xe.length)return-1;let ot=Ie;for(;;){const qe=Ye.current.querySelector(`[data-option-index="${ot}"]`),Et=O?!1:!qe||qe.disabled||qe.getAttribute("aria-disabled")==="true";if(qe&&qe.hasAttribute("tabindex")&&!Et)return ot;if(we==="next"?ot=(ot+1)%xe.length:ot=(ot-1+xe.length)%xe.length,ot===Ie)return-1}}const Wt=Vs(({event:Ie,index:we,reason:ot="auto"})=>{if(Ot.current=we,we===-1?We.current.removeAttribute("aria-activedescendant"):We.current.setAttribute("aria-activedescendant",`${ke}-option-${we}`),q&&q(Ie,we===-1?null:xe[we],ot),!Ye.current)return;const qe=Ye.current.querySelector(`[role="option"].${n}-focused`);qe&&(qe.classList.remove(`${n}-focused`),qe.classList.remove(`${n}-focusVisible`));let Et=Ye.current;if(Ye.current.getAttribute("role")!=="listbox"&&(Et=Ye.current.parentElement.querySelector('[role="listbox"]')),!Et)return;if(we===-1){Et.scrollTop=0;return}const _t=Ye.current.querySelector(`[data-option-index="${we}"]`);if(_t&&(_t.classList.add(`${n}-focused`),ot==="keyboard"&&_t.classList.add(`${n}-focusVisible`),Et.scrollHeight>Et.clientHeight&&ot!=="mouse"&&ot!=="touch")){const Gt=_t,jn=Et.clientHeight+Et.scrollTop,qn=Gt.offsetTop+Gt.offsetHeight;qn>jn?Et.scrollTop=qn-Et.clientHeight:Gt.offsetTop-Gt.offsetHeight*(N?1.3:0){if(!ye)return;const _t=tt((()=>{const Gt=xe.length-1;if(we==="reset")return ut;if(we==="start")return 0;if(we==="end")return Gt;const jn=Ot.current+we;return jn<0?jn===-1&&U?-1:S&&Ot.current!==-1||Math.abs(we)>1?0:Gt:jn>Gt?jn===Gt+1&&U?-1:S||Math.abs(we)>1?Gt:0:jn})(),ot);if(Wt({index:_t,reason:qe,event:Ie}),r&&we!=="reset")if(_t===-1)We.current.value=de;else{const Gt=$e(xe[_t]);We.current.value=Gt,Gt.toLowerCase().indexOf(de.toLowerCase())===0&&de.length>0&&We.current.setSelectionRange(de.length,Gt.length)}}),zt=()=>{const Ie=(we,ot)=>{const qe=we?$e(we):"",Et=ot?$e(ot):"";return qe===Et};if(Ot.current!==-1&&Ue.filteredOptions&&Ue.filteredOptions.length!==xe.length&&Ue.inputValue===de&&(V?yt.length===Ue.value.length&&Ue.value.every((we,ot)=>$e(yt[ot])===$e(we)):Ie(Ue.value,yt))){const we=Ue.filteredOptions[Ot.current];if(we)return fA(xe,ot=>$e(ot)===$e(we))}return-1},Sn=M.useCallback(()=>{if(!ye)return;const Ie=zt();if(Ie!==-1){Ot.current=Ie;return}const we=V?yt[0]:yt;if(xe.length===0||we==null){Ht({diff:"reset"});return}if(Ye.current){if(we!=null){const ot=xe[Ot.current];if(V&&ot&&fA(yt,Et=>W(ot,Et))!==-1)return;const qe=fA(xe,Et=>W(Et,we));qe===-1?Ht({diff:"reset"}):Wt({index:qe});return}if(Ot.current>=xe.length-1){Wt({index:xe.length-1});return}Wt({index:Ot.current})}},[xe.length,V?!1:yt,w,Ht,Wt,ye,de,V]),pr=Vs(Ie=>{lw(Ye,Ie),Ie&&Sn()});M.useEffect(()=>{Sn()},[Sn]);const Mr=Ie=>{Je||(gt(!0),Fe(!0),K&&K(Ie))},Rr=(Ie,we)=>{Je&&(gt(!1),ee&&ee(Ie,we))},Yr=(Ie,we,ot,qe)=>{if(V){if(yt.length===we.length&&yt.every((Et,_t)=>Et===we[_t]))return}else if(yt===we)return;re&&re(Ie,we,ot,qe),Ut(we)},Di=M.useRef(!1),hi=(Ie,we,ot="selectOption",qe="options")=>{let Et=ot,_t=we;if(V){_t=Array.isArray(yt)?yt.slice():[];const Gt=fA(_t,jn=>W(we,jn));Gt===-1?_t.push(we):qe!=="freeSolo"&&(_t.splice(Gt,1),Et="removeOption")}ct(Ie,_t),Yr(Ie,_t,Et,{option:we}),!p&&(!Ie||!Ie.ctrlKey&&!Ie.metaKey)&&Rr(Ie,Et),(s===!0||s==="touch"&&Di.current||s==="mouse"&&!Di.current)&&We.current.blur()};function ji(Ie,we){if(Ie===-1)return-1;let ot=Ie;for(;;){if(we==="next"&&ot===yt.length||we==="previous"&&ot===-1)return-1;const qe=xt.querySelector(`[data-tag-index="${ot}"]`);if(!qe||!qe.hasAttribute("tabindex")||qe.disabled||qe.getAttribute("aria-disabled")==="true")ot+=we==="next"?1:-1;else return ot}}const pi=(Ie,we)=>{if(!V)return;de===""&&Rr(Ie,"toggleInput");let ot=Pt;Pt===-1?de===""&&we==="previous"&&(ot=yt.length-1):(ot+=we==="next"?1:-1,ot<0&&(ot=0),ot===yt.length&&(ot=-1)),ot=ji(ot,we),jt(ot),qt(ot)},fs=Ie=>{ae.current=!0,Ce(""),ne&&ne(Ie,"","clear"),Yr(Ie,V?[]:null,"clear")},Hi=Ie=>we=>{if(Ie.onKeyDown&&Ie.onKeyDown(we),!we.defaultMuiPrevented&&(Pt!==-1&&["ArrowLeft","ArrowRight"].indexOf(we.key)===-1&&(jt(-1),qt(-1)),we.which!==229))switch(we.key){case"Home":ye&&D&&(we.preventDefault(),Ht({diff:"start",direction:"next",reason:"keyboard",event:we}));break;case"End":ye&&D&&(we.preventDefault(),Ht({diff:"end",direction:"previous",reason:"keyboard",event:we}));break;case"PageUp":we.preventDefault(),Ht({diff:-DG,direction:"previous",reason:"keyboard",event:we}),Mr(we);break;case"PageDown":we.preventDefault(),Ht({diff:DG,direction:"next",reason:"keyboard",event:we}),Mr(we);break;case"ArrowDown":we.preventDefault(),Ht({diff:1,direction:"next",reason:"keyboard",event:we}),Mr(we);break;case"ArrowUp":we.preventDefault(),Ht({diff:-1,direction:"previous",reason:"keyboard",event:we}),Mr(we);break;case"ArrowLeft":pi(we,"previous");break;case"ArrowRight":pi(we,"next");break;case"Enter":if(Ot.current!==-1&&ye){const ot=xe[Ot.current],qe=k?k(ot):!1;if(we.preventDefault(),qe)return;hi(we,ot,"selectOption"),r&&We.current.setSelectionRange(We.current.value.length,We.current.value.length)}else x&&de!==""&&Te===!1&&(V&&we.preventDefault(),hi(we,de,"createOption","freeSolo"));break;case"Escape":ye?(we.preventDefault(),we.stopPropagation(),Rr(we,"escape")):l&&(de!==""||V&&yt.length>0)&&(we.preventDefault(),we.stopPropagation(),fs(we));break;case"Backspace":if(V&&!Re&&de===""&&yt.length>0){const ot=Pt===-1?yt.length-1:Pt,qe=yt.slice();qe.splice(ot,1),Yr(we,qe,"removeOption",{option:yt[ot]})}break;case"Delete":if(V&&!Re&&de===""&&yt.length>0&&Pt!==-1){const ot=Pt,qe=yt.slice();qe.splice(ot,1),Yr(we,qe,"removeOption",{option:yt[ot]})}break}},Js=Ie=>{Ke(!0),ie&&!ae.current&&Mr(Ie)},Qi=Ie=>{if(t(Ye)){We.current.focus();return}Ke(!1),Xe.current=!0,ae.current=!1,a&&Ot.current!==-1&&ye?hi(Ie,xe[Ot.current],"blur"):a&&x&&de!==""?hi(Ie,de,"blur","freeSolo"):o&&ct(Ie,yt),Rr(Ie,"blur")},Ur=Ie=>{const we=Ie.target.value;de!==we&&(Ce(we),Fe(!1),ne&&ne(Ie,we,"input")),we===""?!f&&!V&&Yr(Ie,null,"clear"):Mr(Ie)},tr=Ie=>{const we=Number(Ie.currentTarget.getAttribute("data-option-index"));Ot.current!==we&&Wt({event:Ie,index:we,reason:"mouse"})},Zr=Ie=>{Wt({event:Ie,index:Number(Ie.currentTarget.getAttribute("data-option-index")),reason:"touch"}),Di.current=!0},ze=Ie=>{const we=Number(Ie.currentTarget.getAttribute("data-option-index"));hi(Ie,xe[we],"selectOption"),Di.current=!1},nt=Ie=>we=>{const ot=yt.slice();ot.splice(Ie,1),Yr(we,ot,"removeOption",{option:yt[Ie]})},le=Ie=>{Je?Rr(Ie,"toggleInput"):Mr(Ie)},he=Ie=>{Ie.currentTarget.contains(Ie.target)&&Ie.target.getAttribute("id")!==ke&&Ie.preventDefault()},Le=Ie=>{Ie.currentTarget.contains(Ie.target)&&(We.current.focus(),Se&&Xe.current&&We.current.selectionEnd-We.current.selectionStart===0&&We.current.select(),Xe.current=!1)},Ve=Ie=>{!g&&(de===""||!Je)&&le(Ie)};let pt=x&&de.length>0;pt=pt||(V?yt.length>0:yt!==null);let Vt=xe;return N&&(Vt=xe.reduce((Ie,we,ot)=>{const qe=N(we);return Ie.length>0&&Ie[Ie.length-1].group===qe?Ie[Ie.length-1].options.push(we):Ie.push({key:ot,index:ot,group:qe,options:[we]}),Ie},[])),g&&Ne&&Qi(),{getRootProps:(Ie={})=>Q({"aria-owns":Ct?`${ke}-listbox`:null},Ie,{onKeyDown:Hi(Ie),onMouseDown:he,onClick:Le}),getInputLabelProps:()=>({id:`${ke}-label`,htmlFor:ke}),getInputProps:()=>({id:ke,value:de,onBlur:Qi,onFocus:Js,onChange:Ur,onMouseDown:Ve,"aria-activedescendant":ye?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Ct?`${ke}-listbox`:void 0,"aria-expanded":Ct,autoComplete:"off",ref:We,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:fs}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:le}),getTagProps:({index:Ie})=>Q({key:Ie,"data-tag-index":Ie,tabIndex:-1},!Re&&{onDelete:nt(Ie)}),getListboxProps:()=>({role:"listbox",id:`${ke}-listbox`,"aria-labelledby":`${ke}-label`,ref:pr,onMouseDown:Ie=>{Ie.preventDefault()}}),getOptionProps:({index:Ie,option:we})=>{var ot;const qe=(V?yt:[yt]).some(_t=>_t!=null&&W(we,_t)),Et=k?k(we):!1;return{key:(ot=_==null?void 0:_(we))!=null?ot:$e(we),tabIndex:-1,role:"option",id:`${ke}-option-${Ie}`,onMouseMove:tr,onClick:ze,onTouchStart:Zr,"data-option-index":Ie,"aria-disabled":Et,"aria-selected":qe}},id:ke,inputValue:de,value:yt,dirty:pt,expanded:ye&&xt,popupOpen:ye,focused:Ne||Pt!==-1,anchorEl:xt,setAnchorEl:st,focusedTag:Pt,groupedOptions:Vt}}var v$={};Object.defineProperty(v$,"__esModule",{value:!0});var $se=v$.default=void 0,j_e=Q_e(M),H_e=Nse;function Fse(e){if(typeof WeakMap!="function")return null;var t=new WeakMap,n=new WeakMap;return(Fse=function(r){return r?n:t})(e)}function Q_e(e,t){if(e&&e.__esModule)return e;if(e===null||typeof e!="object"&&typeof e!="function")return{default:e};var n=Fse(t);if(n&&n.has(e))return n.get(e);var r={__proto__:null},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var a in e)if(a!=="default"&&Object.prototype.hasOwnProperty.call(e,a)){var s=i?Object.getOwnPropertyDescriptor(e,a):null;s&&(s.get||s.set)?Object.defineProperty(r,a,s):r[a]=e[a]}return r.default=e,n&&n.set(e,r),r}function W_e(e){return Object.keys(e).length===0}function V_e(e=null){const t=j_e.useContext(H_e.ThemeContext);return!t||W_e(t)?e:t}$se=v$.default=V_e;var Il="top",kc="bottom",Ac="right",Nl="left",O$="auto",ET=[Il,kc,Ac,Nl],wv="start",dw="end",q_e="clippingParents",Bse="viewport",eE="popper",G_e="reference",PG=ET.reduce(function(e,t){return e.concat([t+"-"+wv,t+"-"+dw])},[]),Use=[].concat(ET,[O$]).reduce(function(e,t){return e.concat([t,t+"-"+wv,t+"-"+dw])},[]),Y_e="beforeRead",Z_e="read",X_e="afterRead",K_e="beforeMain",J_e="main",e3e="afterMain",t3e="beforeWrite",n3e="write",r3e="afterWrite",i3e=[Y_e,Z_e,X_e,K_e,J_e,e3e,t3e,n3e,r3e];function zf(e){return e?(e.nodeName||"").toLowerCase():null}function ku(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function g1(e){var t=ku(e).Element;return e instanceof t||e instanceof Element}function yc(e){var t=ku(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function S$(e){if(typeof ShadowRoot>"u")return!1;var t=ku(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function a3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!yc(a)||!zf(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function s3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!yc(i)||!zf(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const o3e={name:"applyStyles",enabled:!0,phase:"write",fn:a3e,effect:s3e,requires:["computeStyles"]};function Df(e){return e.split("-")[0]}var r1=Math.max,f3=Math.min,Tv=Math.round;function HP(){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 zse(){return!/^((?!chrome|android).)*safari/i.test(HP())}function xv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&yc(e)&&(i=e.offsetWidth>0&&Tv(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Tv(r.height)/e.offsetHeight||1);var s=g1(e)?ku(e):window,o=s.visualViewport,l=!zse()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,d=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,p=r.height/a;return{width:f,height:p,top:d,right:u+f,bottom:d+p,left:u,x:u,y:d}}function E$(e){var t=xv(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 jse(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&S$(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ap(e){return ku(e).getComputedStyle(e)}function l3e(e){return["table","td","th"].indexOf(zf(e))>=0}function gm(e){return((g1(e)?e.ownerDocument:e.document)||window.document).documentElement}function G5(e){return zf(e)==="html"?e:e.assignedSlot||e.parentNode||(S$(e)?e.host:null)||gm(e)}function LG(e){return!yc(e)||ap(e).position==="fixed"?null:e.offsetParent}function u3e(e){var t=/firefox/i.test(HP()),n=/Trident/i.test(HP());if(n&&yc(e)){var r=ap(e);if(r.position==="fixed")return null}var i=G5(e);for(S$(i)&&(i=i.host);yc(i)&&["html","body"].indexOf(zf(i))<0;){var a=ap(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function wT(e){for(var t=ku(e),n=LG(e);n&&l3e(n)&&ap(n).position==="static";)n=LG(n);return n&&(zf(n)==="html"||zf(n)==="body"&&ap(n).position==="static")?t:n||u3e(e)||t}function w$(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function c2(e,t,n){return r1(e,f3(t,n))}function c3e(e,t,n){var r=c2(e,t,n);return r>n?n:r}function Hse(){return{top:0,right:0,bottom:0,left:0}}function Qse(e){return Object.assign({},Hse(),e)}function Wse(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var d3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Qse(typeof t!="number"?t:Wse(t,ET))};function f3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Df(n.placement),l=w$(o),u=[Nl,Ac].indexOf(o)>=0,d=u?"height":"width";if(!(!a||!s)){var f=d3e(i.padding,n),p=E$(a),g=l==="y"?Il:Nl,O=l==="y"?kc:Ac,S=n.rects.reference[d]+n.rects.reference[l]-s[l]-n.rects.popper[d],T=s[l]-n.rects.reference[l],w=wT(a),x=w?l==="y"?w.clientHeight||0:w.clientWidth||0:0,k=S/2-T/2,_=f[g],I=x-p[d]-f[O],N=x/2-p[d]/2+k,D=c2(_,N,I),L=l;n.modifiersData[r]=(t={},t[L]=D,t.centerOffset=D-N,t)}}function h3e(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)||jse(t.elements.popper,i)&&(t.elements.arrow=i))}const p3e={name:"arrow",enabled:!0,phase:"main",fn:f3e,effect:h3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function kv(e){return e.split("-")[1]}var m3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function g3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Tv(n*i)/i||0,y:Tv(r*i)/i||0}}function MG(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,d=e.roundOffsets,f=e.isFixed,p=s.x,g=p===void 0?0:p,O=s.y,S=O===void 0?0:O,T=typeof d=="function"?d({x:g,y:S}):{x:g,y:S};g=T.x,S=T.y;var w=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=Nl,_=Il,I=window;if(u){var N=wT(n),D="clientHeight",L="clientWidth";if(N===ku(n)&&(N=gm(n),ap(N).position!=="static"&&o==="absolute"&&(D="scrollHeight",L="scrollWidth")),N=N,i===Il||(i===Nl||i===Ac)&&a===dw){_=kc;var U=f&&N===I&&I.visualViewport?I.visualViewport.height:N[D];S-=U-r.height,S*=l?1:-1}if(i===Nl||(i===Il||i===kc)&&a===dw){k=Ac;var B=f&&N===I&&I.visualViewport?I.visualViewport.width:N[L];g-=B-r.width,g*=l?1:-1}}var W=Object.assign({position:o},u&&m3e),V=d===!0?g3e({x:g,y:S},ku(n)):{x:g,y:S};if(g=V.x,S=V.y,l){var re;return Object.assign({},W,(re={},re[_]=x?"0":"",re[k]=w?"0":"",re.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",re))}return Object.assign({},W,(t={},t[_]=x?S+"px":"",t[k]=w?g+"px":"",t.transform="",t))}function b3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:Df(t.placement),variation:kv(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,MG(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,MG(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 y3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:b3e,data:{}};var hA={passive:!0};function v3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=ku(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(d){d.addEventListener("scroll",n.update,hA)}),o&&l.addEventListener("resize",n.update,hA),function(){a&&u.forEach(function(d){d.removeEventListener("scroll",n.update,hA)}),o&&l.removeEventListener("resize",n.update,hA)}}const O3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:v3e,data:{}};var S3e={left:"right",right:"left",bottom:"top",top:"bottom"};function G4(e){return e.replace(/left|right|bottom|top/g,function(t){return S3e[t]})}var E3e={start:"end",end:"start"};function $G(e){return e.replace(/start|end/g,function(t){return E3e[t]})}function T$(e){var t=ku(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function x$(e){return xv(gm(e)).left+T$(e).scrollLeft}function w3e(e,t){var n=ku(e),r=gm(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=zse();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+x$(e),y:l}}function T3e(e){var t,n=gm(e),r=T$(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=r1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=r1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+x$(e),l=-r.scrollTop;return ap(i||n).direction==="rtl"&&(o+=r1(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function k$(e){var t=ap(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Vse(e){return["html","body","#document"].indexOf(zf(e))>=0?e.ownerDocument.body:yc(e)&&k$(e)?e:Vse(G5(e))}function d2(e,t){var n;t===void 0&&(t=[]);var r=Vse(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=ku(r),s=i?[a].concat(a.visualViewport||[],k$(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(d2(G5(s)))}function QP(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function x3e(e,t){var n=xv(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 FG(e,t,n){return t===Bse?QP(w3e(e,n)):g1(t)?x3e(t,n):QP(T3e(gm(e)))}function k3e(e){var t=d2(G5(e)),n=["absolute","fixed"].indexOf(ap(e).position)>=0,r=n&&yc(e)?wT(e):e;return g1(r)?t.filter(function(i){return g1(i)&&jse(i,r)&&zf(i)!=="body"}):[]}function A3e(e,t,n,r){var i=t==="clippingParents"?k3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var d=FG(e,u,r);return l.top=r1(d.top,l.top),l.right=f3(d.right,l.right),l.bottom=f3(d.bottom,l.bottom),l.left=r1(d.left,l.left),l},FG(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function qse(e){var t=e.reference,n=e.element,r=e.placement,i=r?Df(r):null,a=r?kv(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Il:l={x:s,y:t.y-n.height};break;case kc:l={x:s,y:t.y+t.height};break;case Ac:l={x:t.x+t.width,y:o};break;case Nl:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?w$(i):null;if(u!=null){var d=u==="y"?"height":"width";switch(a){case wv:l[u]=l[u]-(t[d]/2-n[d]/2);break;case dw:l[u]=l[u]+(t[d]/2-n[d]/2);break}}return l}function fw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?q_e:o,u=n.rootBoundary,d=u===void 0?Bse:u,f=n.elementContext,p=f===void 0?eE:f,g=n.altBoundary,O=g===void 0?!1:g,S=n.padding,T=S===void 0?0:S,w=Qse(typeof T!="number"?T:Wse(T,ET)),x=p===eE?G_e:eE,k=e.rects.popper,_=e.elements[O?x:p],I=A3e(g1(_)?_:_.contextElement||gm(e.elements.popper),l,d,s),N=xv(e.elements.reference),D=qse({reference:N,element:k,strategy:"absolute",placement:i}),L=QP(Object.assign({},k,D)),U=p===eE?L:N,B={top:I.top-U.top+w.top,bottom:U.bottom-I.bottom+w.bottom,left:I.left-U.left+w.left,right:U.right-I.right+w.right},W=e.modifiersData.offset;if(p===eE&&W){var V=W[i];Object.keys(B).forEach(function(re){var ee=[Ac,kc].indexOf(re)>=0?1:-1,q=[Il,kc].indexOf(re)>=0?"y":"x";B[re]+=V[q]*ee})}return B}function _3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Use:l,d=kv(r),f=d?o?PG:PG.filter(function(O){return kv(O)===d}):ET,p=f.filter(function(O){return u.indexOf(O)>=0});p.length===0&&(p=f);var g=p.reduce(function(O,S){return O[S]=fw(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Df(S)],O},{});return Object.keys(g).sort(function(O,S){return g[O]-g[S]})}function C3e(e){if(Df(e)===O$)return[];var t=G4(e);return[$G(e),t,$G(t)]}function R3e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,d=n.boundary,f=n.rootBoundary,p=n.altBoundary,g=n.flipVariations,O=g===void 0?!0:g,S=n.allowedAutoPlacements,T=t.options.placement,w=Df(T),x=w===T,k=l||(x||!O?[G4(T)]:C3e(T)),_=[T].concat(k).reduce(function(ke,$e){return ke.concat(Df($e)===O$?_3e(t,{placement:$e,boundary:d,rootBoundary:f,padding:u,flipVariations:O,allowedAutoPlacements:S}):$e)},[]),I=t.rects.reference,N=t.rects.popper,D=new Map,L=!0,U=_[0],B=0;B<_.length;B++){var W=_[B],V=Df(W),re=kv(W)===wv,ee=[Il,kc].indexOf(V)>=0,q=ee?"width":"height",ne=fw(t,{placement:W,boundary:d,rootBoundary:f,altBoundary:p,padding:u}),K=ee?re?Ac:Nl:re?kc:Il;I[q]>N[q]&&(K=G4(K));var G=G4(K),ie=[];if(a&&ie.push(ne[V]<=0),o&&ie.push(ne[K]<=0,ne[G]<=0),ie.every(function(ke){return ke})){U=W,L=!1;break}D.set(W,ie)}if(L)for(var H=O?3:1,Re=function($e){var ae=_.find(function(Xe){var We=D.get(Xe);if(We)return We.slice(0,$e).every(function(Ye){return Ye})});if(ae)return U=ae,"break"},Se=H;Se>0;Se--){var Z=Re(Se);if(Z==="break")break}t.placement!==U&&(t.modifiersData[r]._skip=!0,t.placement=U,t.reset=!0)}}const I3e={name:"flip",enabled:!0,phase:"main",fn:R3e,requiresIfExists:["offset"],data:{_skip:!1}};function BG(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 UG(e){return[Il,Ac,kc,Nl].some(function(t){return e[t]>=0})}function N3e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=fw(t,{elementContext:"reference"}),o=fw(t,{altBoundary:!0}),l=BG(s,r),u=BG(o,i,a),d=UG(l),f=UG(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:d,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":d,"data-popper-escaped":f})}const D3e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:N3e};function P3e(e,t,n){var r=Df(e),i=[Nl,Il].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[Nl,Ac].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function L3e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Use.reduce(function(d,f){return d[f]=P3e(f,t.rects,a),d},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const M3e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:L3e};function $3e(e){var t=e.state,n=e.name;t.modifiersData[n]=qse({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const F3e={name:"popperOffsets",enabled:!0,phase:"read",fn:$3e,data:{}};function B3e(e){return e==="x"?"y":"x"}function U3e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,d=n.altBoundary,f=n.padding,p=n.tether,g=p===void 0?!0:p,O=n.tetherOffset,S=O===void 0?0:O,T=fw(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:d}),w=Df(t.placement),x=kv(t.placement),k=!x,_=w$(w),I=B3e(_),N=t.modifiersData.popperOffsets,D=t.rects.reference,L=t.rects.popper,U=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,B=typeof U=="number"?{mainAxis:U,altAxis:U}:Object.assign({mainAxis:0,altAxis:0},U),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(N){if(a){var re,ee=_==="y"?Il:Nl,q=_==="y"?kc:Ac,ne=_==="y"?"height":"width",K=N[_],G=K+T[ee],ie=K-T[q],H=g?-L[ne]/2:0,Re=x===wv?D[ne]:L[ne],Se=x===wv?-L[ne]:-D[ne],Z=t.elements.arrow,ke=g&&Z?E$(Z):{width:0,height:0},$e=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Hse(),ae=$e[ee],Xe=$e[q],We=c2(0,D[ne],ke[ne]),Ye=k?D[ne]/2-H-We-ae-B.mainAxis:Re-We-ae-B.mainAxis,xt=k?-D[ne]/2+H+We+Xe+B.mainAxis:Se+We+Xe+B.mainAxis,st=t.elements.arrow&&wT(t.elements.arrow),Pt=st?_==="y"?st.clientTop||0:st.clientLeft||0:0,jt=(re=W==null?void 0:W[_])!=null?re:0,ut=K+Ye-jt-Pt,Ot=K+xt-jt,yt=c2(g?f3(G,ut):G,K,g?r1(ie,Ot):ie);N[_]=yt,V[_]=yt-K}if(o){var Ut,de=_==="x"?Il:Nl,Ce=_==="x"?kc:Ac,Ne=N[I],Ke=I==="y"?"height":"width",ct=Ne+T[de],Je=Ne-T[Ce],gt=[Il,Nl].indexOf(w)!==-1,en=(Ut=W==null?void 0:W[I])!=null?Ut:0,Fe=gt?ct:Ne-D[Ke]-L[Ke]-en+B.altAxis,Te=gt?Ne+D[Ke]+L[Ke]-en-B.altAxis:Je,ye=g&>?c3e(Fe,Ne,Te):c2(g?Fe:ct,Ne,g?Te:Je);N[I]=ye,V[I]=ye-Ne}t.modifiersData[r]=V}}const z3e={name:"preventOverflow",enabled:!0,phase:"main",fn:U3e,requiresIfExists:["offset"]};function j3e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function H3e(e){return e===ku(e)||!yc(e)?T$(e):j3e(e)}function Q3e(e){var t=e.getBoundingClientRect(),n=Tv(t.width)/e.offsetWidth||1,r=Tv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function W3e(e,t,n){n===void 0&&(n=!1);var r=yc(t),i=yc(t)&&Q3e(t),a=gm(t),s=xv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((zf(t)!=="body"||k$(a))&&(o=H3e(t)),yc(t)?(l=xv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=x$(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function V3e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function q3e(e){var t=V3e(e);return i3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function G3e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function Y3e(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 zG={placement:"bottom",modifiers:[],strategy:"absolute"};function jG(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(J3e(i)||document.body)},[i,a]),Ko(()=>{if(s&&!a)return lw(n,s),()=>{lw(n,null)}},[n,s,a]),a){if(M.isValidElement(r)){const u={ref:l};return M.cloneElement(r,u)}return R.jsx(M.Fragment,{children:r})}return R.jsx(M.Fragment,{children:s&&eO.createPortal(r,s)})});function eCe(e){return cn("MuiPopper",e)}pn("MuiPopper",["root"]);const tCe=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],nCe=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function rCe(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 WP(e){return typeof e=="function"?e():e}function iCe(e){return e.nodeType!==void 0}const aCe=e=>{const{classes:t}=e;return mn({root:["root"]},eCe,t)},sCe={},oCe=M.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:d,popperOptions:f,popperRef:p,slotProps:g={},slots:O={},TransitionProps:S}=t,T=wt(t,tCe),w=M.useRef(null),x=Or(w,n),k=M.useRef(null),_=Or(k,p),I=M.useRef(_);Ko(()=>{I.current=_},[_]),M.useImperativeHandle(p,()=>k.current,[]);const N=rCe(d,s),[D,L]=M.useState(N),[U,B]=M.useState(WP(i));M.useEffect(()=>{k.current&&k.current.forceUpdate()}),M.useEffect(()=>{i&&B(WP(i))},[i]),Ko(()=>{if(!U||!u)return;const q=G=>{L(G.placement)};let ne=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:G})=>{q(G)}}];l!=null&&(ne=ne.concat(l)),f&&f.modifiers!=null&&(ne=ne.concat(f.modifiers));const K=K3e(U,w.current,Q({placement:N},f,{modifiers:ne}));return I.current(K),()=>{K.destroy(),I.current(null)}},[U,o,l,u,f,N]);const W={placement:D};S!==null&&(W.TransitionProps=S);const V=aCe(t),re=(r=O.root)!=null?r:"div",ee=jo({elementType:re,externalSlotProps:g.root,externalForwardedProps:T,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:V.root});return R.jsx(re,Q({},ee,{children:typeof a=="function"?a(W):a}))}),lCe=M.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:d,placement:f="bottom",popperOptions:p=sCe,popperRef:g,style:O,transition:S=!1,slotProps:T={},slots:w={}}=t,x=wt(t,nCe),[k,_]=M.useState(!0),I=()=>{_(!1)},N=()=>{_(!0)};if(!l&&!d&&(!S||k))return null;let D;if(a)D=a;else if(r){const B=WP(r);D=B&&iCe(B)?ua(B).body:ua(null).body}const L=!d&&l&&(!S||k)?"none":void 0,U=S?{in:d,onEnter:I,onExited:N}:void 0;return R.jsx(Gse,{disablePortal:o,container:D,children:R.jsx(oCe,Q({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:d,placement:f,popperOptions:p,popperRef:g,slotProps:T,slots:w},x,{style:Q({position:"fixed",top:0,left:0,display:L},O),TransitionProps:U,children:i}))})}),uCe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],cCe=at(lCe,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),Y5=M.forwardRef(function(t,n){var r;const i=$se(),a=gn({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x,slots:k,slotProps:_}=a,I=wt(a,uCe),N=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,D=Q({anchorEl:s,container:d,disablePortal:f,keepMounted:p,modifiers:g,open:O,placement:S,popperOptions:T,popperRef:w,transition:x},I);return R.jsx(cCe,Q({as:o,direction:i==null?void 0:i.direction,slots:{root:N},slotProps:_??u},D,{ref:n}))});function dCe(e){return cn("MuiListSubheader",e)}pn("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const fCe=["className","color","component","disableGutters","disableSticky","inset"],hCe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${it(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return mn(s,dCe,t)},pCe=at("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${it(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>Q({boxSizing:"border-box",lineHeight:"48px",listStyle:"none",color:(e.vars||e).palette.text.secondary,fontFamily:e.typography.fontFamily,fontWeight:e.typography.fontWeightMedium,fontSize:e.typography.pxToRem(14)},t.color==="primary"&&{color:(e.vars||e).palette.primary.main},t.color==="inherit"&&{color:"inherit"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.inset&&{paddingLeft:72},!t.disableSticky&&{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper})),Yse=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,d=wt(r,fCe),f=Q({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),p=hCe(f);return R.jsx(pCe,Q({as:s,className:St(p.root,i),ref:n,ownerState:f},d))});Yse.muiSkipListHighlight=!0;const mCe=Nd(R.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 gCe(e){return cn("MuiChip",e)}const jr=pn("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"]),bCe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],yCe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${it(r)}`,`color${it(i)}`,o&&"clickable",o&&`clickableColor${it(i)}`,s&&"deletable",s&&`deletableColor${it(i)}`,`${l}${it(i)}`],label:["label",`label${it(r)}`],avatar:["avatar",`avatar${it(r)}`,`avatarColor${it(i)}`],icon:["icon",`icon${it(r)}`,`iconColor${it(a)}`],deleteIcon:["deleteIcon",`deleteIcon${it(r)}`,`deleteIconColor${it(i)}`,`deleteIcon${it(l)}Color${it(i)}`]};return mn(u,gCe,t)},vCe=at("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${jr.avatar}`]:t.avatar},{[`& .${jr.avatar}`]:t[`avatar${it(o)}`]},{[`& .${jr.avatar}`]:t[`avatarColor${it(r)}`]},{[`& .${jr.icon}`]:t.icon},{[`& .${jr.icon}`]:t[`icon${it(o)}`]},{[`& .${jr.icon}`]:t[`iconColor${it(i)}`]},{[`& .${jr.deleteIcon}`]:t.deleteIcon},{[`& .${jr.deleteIcon}`]:t[`deleteIcon${it(o)}`]},{[`& .${jr.deleteIcon}`]:t[`deleteIconColor${it(r)}`]},{[`& .${jr.deleteIcon}`]:t[`deleteIcon${it(l)}Color${it(r)}`]},t.root,t[`size${it(o)}`],t[`color${it(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${it(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${it(r)}`],t[l],t[`${l}${it(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return Q({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${jr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${jr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${jr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${jr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${jr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${jr.icon}`]:Q({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&Q({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${jr.deleteIcon}`]:Q({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Qn(e.palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.4)`:Qn(e.palette.text.primary,.4)}},t.size==="small"&&{fontSize:16,marginRight:4,marginLeft:-4},t.color!=="default"&&{color:e.vars?`rgba(${e.vars.palette[t.color].contrastTextChannel} / 0.7)`:Qn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>Q({},t.clickable&&{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>Q({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${jr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${jr.avatar}`]:{marginLeft:4},[`& .${jr.avatarSmall}`]:{marginLeft:2},[`& .${jr.icon}`]:{marginLeft:4},[`& .${jr.iconSmall}`]:{marginLeft:2},[`& .${jr.deleteIcon}`]:{marginRight:5},[`& .${jr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Qn(e.palette[t.color].main,.7)}`,[`&.${jr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Qn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${jr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Qn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),OCe=at("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${it(r)}`]]}})(({ownerState:e})=>Q({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap"},e.variant==="outlined"&&{paddingLeft:11,paddingRight:11},e.size==="small"&&{paddingLeft:8,paddingRight:8},e.size==="small"&&e.variant==="outlined"&&{paddingLeft:7,paddingRight:7}));function HG(e){return e.key==="Backspace"||e.key==="Delete"}const Zse=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:d=!1,icon:f,label:p,onClick:g,onDelete:O,onKeyDown:S,onKeyUp:T,size:w="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:_=!1}=r,I=wt(r,bCe),N=M.useRef(null),D=Or(N,n),L=ie=>{ie.stopPropagation(),O&&O(ie)},U=ie=>{ie.currentTarget===ie.target&&HG(ie)&&ie.preventDefault(),S&&S(ie)},B=ie=>{ie.currentTarget===ie.target&&(O&&HG(ie)?O(ie):ie.key==="Escape"&&N.current&&N.current.blur()),T&&T(ie)},W=s!==!1&&g?!0:s,V=W||O?Uf:l||"div",re=Q({},r,{component:V,disabled:d,size:w,color:o,iconColor:M.isValidElement(f)&&f.props.color||o,onDelete:!!O,clickable:W,variant:x}),ee=yCe(re),q=V===Uf?Q({component:l||"div",focusVisibleClassName:ee.focusVisible},O&&{disableRipple:!0}):{};let ne=null;O&&(ne=u&&M.isValidElement(u)?M.cloneElement(u,{className:St(u.props.className,ee.deleteIcon),onClick:L}):R.jsx(mCe,{className:St(ee.deleteIcon),onClick:L}));let K=null;i&&M.isValidElement(i)&&(K=M.cloneElement(i,{className:St(ee.avatar,i.props.className)}));let G=null;return f&&M.isValidElement(f)&&(G=M.cloneElement(f,{className:St(ee.icon,f.props.className)})),R.jsxs(vCe,Q({as:V,className:St(ee.root,a),disabled:W&&d?!0:void 0,onClick:g,onKeyDown:U,onKeyUp:B,ref:D,tabIndex:_&&d?-1:k,ownerState:re},q,I,{children:[K||G,R.jsx(OCe,{className:St(ee.label),ownerState:re,children:p}),ne]}))}),SCe=["onChange","maxRows","minRows","style","value"];function pA(e){return parseInt(e,10)||0}const ECe={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function wCe(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflowing}const Xse=M.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=wt(t,SCe),{current:u}=M.useRef(o!=null),d=M.useRef(null),f=Or(n,d),p=M.useRef(null),g=M.useRef(null),O=M.useCallback(()=>{const w=d.current,k=Bf(w).getComputedStyle(w);if(k.width==="0px")return{outerHeightStyle:0,overflowing:!1};const _=g.current;_.style.width=k.width,_.value=w.value||t.placeholder||"x",_.value.slice(-1)===` +`&&(_.value+=" ");const I=k.boxSizing,N=pA(k.paddingBottom)+pA(k.paddingTop),D=pA(k.borderBottomWidth)+pA(k.borderTopWidth),L=_.scrollHeight;_.value="x";const U=_.scrollHeight;let B=L;a&&(B=Math.max(Number(a)*U,B)),i&&(B=Math.min(Number(i)*U,B)),B=Math.max(B,U);const W=B+(I==="border-box"?N+D:0),V=Math.abs(B-L)<=1;return{outerHeightStyle:W,overflowing:V}},[i,a,t.placeholder]),S=M.useCallback(()=>{const w=O();if(wCe(w))return;const x=w.outerHeightStyle,k=d.current;p.current!==x&&(p.current=x,k.style.height=`${x}px`),k.style.overflow=w.overflowing?"hidden":""},[O]);Ko(()=>{const w=()=>{S()};let x;const k=j5(w),_=d.current,I=Bf(_);I.addEventListener("resize",k);let N;return typeof ResizeObserver<"u"&&(N=new ResizeObserver(w),N.observe(_)),()=>{k.clear(),cancelAnimationFrame(x),I.removeEventListener("resize",k),N&&N.disconnect()}},[O,S]),Ko(()=>{S()});const T=w=>{u||S(),r&&r(w)};return R.jsxs(M.Fragment,{children:[R.jsx("textarea",Q({value:o,onChange:T,ref:f,rows:a,style:s},l)),R.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:g,tabIndex:-1,style:Q({},ECe.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function bm({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 Z5=M.createContext(void 0);function Hf(){return M.useContext(Z5)}function Kse(e){return R.jsx(pke,Q({},e,{defaultTheme:m$,themeId:Ov}))}function QG(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function h3(e,t=!1){return e&&(QG(e.value)&&e.value!==""||t&&QG(e.defaultValue)&&e.defaultValue!=="")}function TCe(e){return e.startAdornment}function xCe(e){return cn("MuiInputBase",e)}const ou=pn("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),kCe=["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"],X5=(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${it(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},K5=(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]},ACe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:d,readOnly:f,size:p,startAdornment:g,type:O}=e,S={root:["root",`color${it(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",p&&p!=="medium"&&`size${it(p)}`,d&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",O==="search"&&"inputTypeSearch",d&&"inputMultiline",p==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return mn(S,xCe,t)},J5=at("div",{name:"MuiInputBase",slot:"Root",overridesResolver:X5})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{color:(e.vars||e).palette.text.primary,lineHeight:"1.4375em",boxSizing:"border-box",position:"relative",cursor:"text",display:"inline-flex",alignItems:"center",[`&.${ou.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&Q({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),eR=at("input",{name:"MuiInputBase",slot:"Input",overridesResolver:K5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=Q({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return Q({font:"inherit",letterSpacing:"inherit",color:"currentColor",padding:"4px 0 5px",border:0,boxSizing:"content-box",background:"none",height:"1.4375em",margin:0,WebkitTapHighlightColor:"transparent",display:"block",minWidth:0,width:"100%",animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&:-ms-input-placeholder":r,"&::-ms-input-placeholder":r,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${ou.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${ou.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},"&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}},t.size==="small"&&{paddingTop:1},t.multiline&&{height:"auto",resize:"none",padding:0,paddingTop:0},t.type==="search"&&{MozAppearance:"textfield"})}),_Ce=R.jsx(Kse,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),CCe=M.forwardRef(function(t,n){var r;const i=gn({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:d={},defaultValue:f,disabled:p,disableInjectingGlobalStyles:g,endAdornment:O,fullWidth:S=!1,id:T,inputComponent:w="input",inputProps:x={},inputRef:k,maxRows:_,minRows:I,multiline:N=!1,name:D,onBlur:L,onChange:U,onClick:B,onFocus:W,onKeyDown:V,onKeyUp:re,placeholder:ee,readOnly:q,renderSuffix:ne,rows:K,slotProps:G={},slots:ie={},startAdornment:H,type:Re="text",value:Se}=i,Z=wt(i,kCe),ke=x.value!=null?x.value:Se,{current:$e}=M.useRef(ke!=null),ae=M.useRef(),Xe=M.useCallback(ye=>{},[]),We=Or(ae,k,x.ref,Xe),[Ye,xt]=M.useState(!1),st=Hf(),Pt=bm({props:i,muiFormControl:st,states:["color","disabled","error","hiddenLabel","size","required","filled"]});Pt.focused=st?st.focused:Ye,M.useEffect(()=>{!st&&p&&Ye&&(xt(!1),L&&L())},[st,p,Ye,L]);const jt=st&&st.onFilled,ut=st&&st.onEmpty,Ot=M.useCallback(ye=>{h3(ye)?jt&&jt():ut&&ut()},[jt,ut]);Ko(()=>{$e&&Ot({value:ke})},[ke,Ot,$e]);const yt=ye=>{if(Pt.disabled){ye.stopPropagation();return}W&&W(ye),x.onFocus&&x.onFocus(ye),st&&st.onFocus?st.onFocus(ye):xt(!0)},Ut=ye=>{L&&L(ye),x.onBlur&&x.onBlur(ye),st&&st.onBlur?st.onBlur(ye):xt(!1)},de=(ye,...xe)=>{if(!$e){const Ue=ye.target||ae.current;if(Ue==null)throw new Error(ip(1));Ot({value:Ue.value})}x.onChange&&x.onChange(ye,...xe),U&&U(ye,...xe)};M.useEffect(()=>{Ot(ae.current)},[]);const Ce=ye=>{ae.current&&ye.currentTarget===ye.target&&ae.current.focus(),B&&B(ye)};let Ne=w,Ke=x;N&&Ne==="input"&&(K?Ke=Q({type:void 0,minRows:K,maxRows:K},Ke):Ke=Q({type:void 0,maxRows:_,minRows:I},Ke),Ne=Xse);const ct=ye=>{Ot(ye.animationName==="mui-auto-fill-cancel"?ae.current:{value:"x"})};M.useEffect(()=>{st&&st.setAdornedStart(!!H)},[st,H]);const Je=Q({},i,{color:Pt.color||"primary",disabled:Pt.disabled,endAdornment:O,error:Pt.error,focused:Pt.focused,formControl:st,fullWidth:S,hiddenLabel:Pt.hiddenLabel,multiline:N,size:Pt.size,startAdornment:H,type:Re}),gt=ACe(Je),en=ie.root||u.Root||J5,Fe=G.root||d.root||{},Te=ie.input||u.Input||eR;return Ke=Q({},Ke,(r=G.input)!=null?r:d.input),R.jsxs(M.Fragment,{children:[!g&&_Ce,R.jsxs(en,Q({},Fe,!Nf(en)&&{ownerState:Q({},Je,Fe.ownerState)},{ref:n,onClick:Ce},Z,{className:St(gt.root,Fe.className,l,q&&"MuiInputBase-readOnly"),children:[H,R.jsx(Z5.Provider,{value:null,children:R.jsx(Te,Q({ownerState:Je,"aria-invalid":Pt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:Pt.disabled,id:T,onAnimationStart:ct,name:D,placeholder:ee,readOnly:q,required:Pt.required,rows:K,value:ke,onKeyDown:V,onKeyUp:re,type:Re},Ke,!Nf(Te)&&{as:Ne,ownerState:Q({},Je,Ke.ownerState)},{ref:We,className:St(gt.input,Ke.className,q&&"MuiInputBase-readOnly"),onBlur:Ut,onChange:de,onFocus:yt}))}),O,ne?ne(Q({},Pt,{startAdornment:H})):null]}))]})}),A$=CCe;function RCe(e){return cn("MuiInput",e)}const h0=Q({},ou,pn("MuiInput",["root","underline","input"]));function ICe(e){return cn("MuiOutlinedInput",e)}const af=Q({},ou,pn("MuiOutlinedInput",["root","notchedOutline","input"]));function NCe(e){return cn("MuiFilledInput",e)}const lu=Q({},ou,pn("MuiFilledInput",["root","underline","input"])),Jse=Nd(R.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function DCe(e){return cn("MuiAutocomplete",e)}const ur=pn("MuiAutocomplete",["root","expanded","fullWidth","focused","focusVisible","tag","tagSizeSmall","tagSizeMedium","hasPopupIcon","hasClearIcon","inputRoot","input","inputFocused","endAdornment","clearIndicator","popupIndicator","popupIndicatorOpen","popper","popperDisablePortal","paper","listbox","loading","noOptions","option","groupLabel","groupUl"]);var WG,VG;const PCe=["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"],LCe=["ref"],MCe=["key"],$Ce=["key"],FCe=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:d}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${it(d)}`],endAdornment:["endAdornment"],clearIndicator:["clearIndicator"],popupIndicator:["popupIndicator",u&&"popupIndicatorOpen"],popper:["popper",n&&"popperDisablePortal"],paper:["paper"],listbox:["listbox"],loading:["loading"],noOptions:["noOptions"],option:["option"],groupLabel:["groupLabel"],groupUl:["groupUl"]};return mn(f,DCe,t)},BCe=at("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${ur.tag}`]:t.tag},{[`& .${ur.tag}`]:t[`tagSize${it(o)}`]},{[`& .${ur.inputRoot}`]:t.inputRoot},{[`& .${ur.input}`]:t.input},{[`& .${ur.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})({[`&.${ur.focused} .${ur.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${ur.clearIndicator}`]:{visibility:"visible"}},[`& .${ur.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${ur.inputRoot}`]:{[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:30},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:56},[`& .${ur.input}`]:{width:0,minWidth:30}},[`& .${h0.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${h0.root}.${ou.sizeSmall}`]:{[`& .${h0.input}`]:{padding:"2px 4px 3px 0"}},[`& .${af.root}`]:{padding:9,[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:39},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:65},[`& .${ur.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${ur.endAdornment}`]:{right:9}},[`& .${af.root}.${ou.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${ur.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${lu.root}`]:{paddingTop:19,paddingLeft:8,[`.${ur.hasPopupIcon}&, .${ur.hasClearIcon}&`]:{paddingRight:39},[`.${ur.hasPopupIcon}.${ur.hasClearIcon}&`]:{paddingRight:65},[`& .${lu.input}`]:{padding:"7px 4px"},[`& .${ur.endAdornment}`]:{right:9}},[`& .${lu.root}.${ou.sizeSmall}`]:{paddingBottom:1,[`& .${lu.input}`]:{padding:"2.5px 4px"}},[`& .${ou.hiddenLabel}`]:{paddingTop:8},[`& .${lu.root}.${ou.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${ur.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${lu.root}.${ou.hiddenLabel}.${ou.sizeSmall}`]:{[`& .${ur.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${ur.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${ur.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${ur.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${ur.inputRoot}`]:{flexWrap:"wrap"}}}]}),UCe=at("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),zCe=at(ss,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),jCe=at(ss,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>Q({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),HCe=at(Y5,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${ur.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]})),QCe=at(Oo,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>Q({},e.typography.body1,{overflow:"auto"})),WCe=at("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),VCe=at("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),qCe=at("div",{name:"MuiAutocomplete",slot:"Listbox",overridesResolver:(e,t)=>t.listbox})(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${ur.option}`]:{minHeight:48,display:"flex",overflow:"hidden",justifyContent:"flex-start",alignItems:"center",cursor:"pointer",paddingTop:6,boxSizing:"border-box",outline:"0",WebkitTapHighlightColor:"transparent",paddingBottom:6,paddingLeft:16,paddingRight:16,[e.breakpoints.up("sm")]:{minHeight:"auto"},[`&.${ur.focused}`]:{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},'&[aria-disabled="true"]':{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`&.${ur.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${ur.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${ur.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),GCe=at(Yse,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),YCe=at("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${ur.option}`]:{paddingLeft:24}}),ZCe=M.forwardRef(function(t,n){var r,i,a,s;const o=gn({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:d=!1,blurOnSelect:f=!1,ChipProps:p,className:g,clearIcon:O=WG||(WG=R.jsx(A_e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:T=!1,clearText:w="Clear",closeText:x="Close",componentsProps:k={},defaultValue:_=o.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:N=!1,disabled:D=!1,disabledItemsFocusable:L=!1,disableListWrap:U=!1,disablePortal:B=!1,filterSelectedOptions:W=!1,forcePopupIcon:V="auto",freeSolo:re=!1,fullWidth:ee=!1,getLimitTagsText:q=qe=>`+${qe}`,getOptionLabel:ne,groupBy:K,handleHomeEndKeys:G=!o.freeSolo,includeInputInList:ie=!1,limitTags:H=-1,ListboxComponent:Re="ul",ListboxProps:Se,loading:Z=!1,loadingText:ke="Loading…",multiple:$e=!1,noOptionsText:ae="No options",openOnFocus:Xe=!1,openText:We="Open",PaperComponent:Ye=Oo,PopperComponent:xt=Y5,popupIcon:st=VG||(VG=R.jsx(Jse,{})),readOnly:Pt=!1,renderGroup:jt,renderInput:ut,renderOption:Ot,renderTags:yt,selectOnFocus:Ut=!o.freeSolo,size:de="medium",slotProps:Ce={}}=o,Ne=wt(o,PCe),{getRootProps:Ke,getInputProps:ct,getInputLabelProps:Je,getPopupIndicatorProps:gt,getClearProps:en,getTagProps:Fe,getListboxProps:Te,getOptionProps:ye,value:xe,dirty:Ue,expanded:Ct,id:qt,popupOpen:tt,focused:Wt,focusedTag:Ht,anchorEl:zt,setAnchorEl:Sn,inputValue:pr,groupedOptions:Mr}=z_e(Q({},o,{componentName:"Autocomplete"})),Rr=!I&&!D&&Ue&&!Pt,Yr=(!re||V===!0)&&V!==!1,{onMouseDown:Di}=ct(),{ref:hi}=Se??{},ji=Te(),{ref:pi}=ji,fs=wt(ji,LCe),Hi=Or(pi,hi),Qi=ne||(qe=>{var Et;return(Et=qe.label)!=null?Et:qe}),Ur=Q({},o,{disablePortal:B,expanded:Ct,focused:Wt,fullWidth:ee,getOptionLabel:Qi,hasClearIcon:Rr,hasPopupIcon:Yr,inputFocused:Ht===-1,popupOpen:tt,size:de}),tr=FCe(Ur);let Zr;if($e&&xe.length>0){const qe=Et=>Q({className:tr.tag,disabled:D},Fe(Et));yt?Zr=yt(xe,qe,Ur):Zr=xe.map((Et,_t)=>{const Gt=qe({index:_t}),{key:jn}=Gt,qn=wt(Gt,MCe);return R.jsx(Zse,Q({label:Qi(Et),size:de},qn,p),jn)})}if(H>-1&&Array.isArray(Zr)){const qe=Zr.length-H;!Wt&&qe>0&&(Zr=Zr.splice(0,H),Zr.push(R.jsx("span",{className:tr.tag,children:q(qe)},Zr.length)))}const nt=jt||(qe=>R.jsxs("li",{children:[R.jsx(GCe,{className:tr.groupLabel,ownerState:Ur,component:"div",children:qe.group}),R.jsx(YCe,{className:tr.groupUl,ownerState:Ur,children:qe.children})]},qe.key)),he=Ot||((qe,Et)=>{const{key:_t}=qe,Gt=wt(qe,$Ce);return R.jsx("li",Q({},Gt,{children:Qi(Et)}),_t)}),Le=(qe,Et)=>{const _t=ye({option:qe,index:Et});return he(Q({},_t,{className:tr.option}),qe,{selected:_t["aria-selected"],index:Et,inputValue:pr},Ur)},Ve=(r=Ce.clearIndicator)!=null?r:k.clearIndicator,pt=(i=Ce.paper)!=null?i:k.paper,Vt=(a=Ce.popper)!=null?a:k.popper,Ie=(s=Ce.popupIndicator)!=null?s:k.popupIndicator,we=qe=>R.jsx(HCe,Q({as:xt,disablePortal:B,style:{width:zt?zt.clientWidth:null},ownerState:Ur,role:"presentation",anchorEl:zt,open:tt},Vt,{className:St(tr.popper,Vt==null?void 0:Vt.className),children:R.jsx(QCe,Q({ownerState:Ur,as:Ye},pt,{className:St(tr.paper,pt==null?void 0:pt.className),children:qe}))}));let ot=null;return Mr.length>0?ot=we(R.jsx(qCe,Q({as:Re,className:tr.listbox,ownerState:Ur},fs,Se,{ref:Hi,children:Mr.map((qe,Et)=>K?nt({key:qe.key,group:qe.group,children:qe.options.map((_t,Gt)=>Le(_t,qe.index+Gt))}):Le(qe,Et))}))):Z&&Mr.length===0?ot=we(R.jsx(WCe,{className:tr.loading,ownerState:Ur,children:ke})):Mr.length===0&&!re&&!Z&&(ot=we(R.jsx(VCe,{className:tr.noOptions,ownerState:Ur,role:"presentation",onMouseDown:qe=>{qe.preventDefault()},children:ae}))),R.jsxs(M.Fragment,{children:[R.jsx(BCe,Q({ref:n,className:St(tr.root,g),ownerState:Ur},Ke(Ne),{children:ut({id:qt,disabled:D,fullWidth:!0,size:de==="small"?"small":void 0,InputLabelProps:Je(),InputProps:Q({ref:Sn,className:tr.inputRoot,startAdornment:Zr,onClick:qe=>{qe.target===qe.currentTarget&&Di(qe)}},(Rr||Yr)&&{endAdornment:R.jsxs(UCe,{className:tr.endAdornment,ownerState:Ur,children:[Rr?R.jsx(zCe,Q({},en(),{"aria-label":w,title:w,ownerState:Ur},Ve,{className:St(tr.clearIndicator,Ve==null?void 0:Ve.className),children:O})):null,Yr?R.jsx(jCe,Q({},gt(),{disabled:D,"aria-label":tt?x:We,title:tt?x:We,ownerState:Ur},Ie,{className:St(tr.popupIndicator,Ie==null?void 0:Ie.className),children:st})):null]})}),inputProps:Q({className:tr.input,disabled:D,readOnly:Pt},ct())})})),zt?ot:null]})}),XCe=Nd(R.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 KCe(e){return cn("MuiAvatar",e)}const JCe=pn("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),e5e=["alt","children","className","component","slots","slotProps","imgProps","sizes","src","srcSet","variant"],t5e=e=>{const{classes:t,variant:n,colorDefault:r}=e;return mn({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},KCe,t)},n5e=at("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:Q({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:Q({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),r5e=at("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),i5e=at(XCe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function a5e({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=M.useState(!1);return M.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const i1=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",slots:l={},slotProps:u={},imgProps:d,sizes:f,src:p,srcSet:g,variant:O="circular"}=r,S=wt(r,e5e);let T=null;const w=a5e(Q({},d,{src:p,srcSet:g})),x=p||g,k=x&&w!=="error",_=Q({},r,{colorDefault:!k,component:o,variant:O}),I=t5e(_),[N,D]=o_e("img",{className:I.img,elementType:r5e,externalForwardedProps:{slots:l,slotProps:{img:Q({},d,u.img)}},additionalProps:{alt:i,src:p,srcSet:g,sizes:f},ownerState:_});return k?T=R.jsx(N,Q({},D)):a||a===0?T=a:x&&i?T=i[0]:T=R.jsx(i5e,{ownerState:_,className:I.fallback}),R.jsx(n5e,Q({as:o,ownerState:_,className:St(I.root,s),ref:n},S,{children:T}))});function s5e(e){return cn("MuiAvatarGroup",e)}const o5e=pn("MuiAvatarGroup",["root","avatar"]),l5e=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],qG={small:-16,medium:null},u5e=e=>{const{classes:t}=e;return mn({root:["root"],avatar:["avatar"]},s5e,t)},c5e=at("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>Q({[`& .${o5e.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&qG[t.spacing]!==void 0?qG[t.spacing]:-t.spacing;return{[`& .${JCe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),d5e=M.forwardRef(function(t,n){var r;const i=gn({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:d,slotProps:f={},spacing:p="medium",total:g,variant:O="circular"}=i,S=wt(i,l5e);let T=u<2?2:u;const w=Q({},i,{max:u,spacing:p,component:o,variant:O}),x=u5e(w),k=M.Children.toArray(a).filter(U=>M.isValidElement(U)),_=g||k.length;_===T&&(T+=1),T=Math.min(_+1,T);const I=Math.min(k.length,T-1),N=Math.max(_-T,_-I,0),D=d?d(N):`+${N}`,L=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return R.jsxs(c5e,Q({as:o,ownerState:w,className:St(x.root,s),ref:n},S,{children:[N?R.jsx(i1,Q({variant:O},L,{className:St(x.avatar,L==null?void 0:L.className),children:D})):null,k.slice(0,I).reverse().map(U=>M.cloneElement(U,{className:St(U.props.className,x.avatar),variant:U.props.variant||O}))]}))}),f5e=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],h5e={entering:{opacity:1},entered:{opacity:1}},p3=M.forwardRef(function(t,n){const r=Pc(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:d,onEntered:f,onEntering:p,onExit:g,onExited:O,onExiting:S,style:T,timeout:w=i,TransitionComponent:x=Lc}=t,k=wt(t,f5e),_=M.useRef(null),I=Or(_,o.ref,n),N=ee=>q=>{if(ee){const ne=_.current;q===void 0?ee(ne):ee(ne,q)}},D=N(p),L=N((ee,q)=>{y$(ee);const ne=nm({style:T,timeout:w,easing:l},{mode:"enter"});ee.style.webkitTransition=r.transitions.create("opacity",ne),ee.style.transition=r.transitions.create("opacity",ne),d&&d(ee,q)}),U=N(f),B=N(S),W=N(ee=>{const q=nm({style:T,timeout:w,easing:l},{mode:"exit"});ee.style.webkitTransition=r.transitions.create("opacity",q),ee.style.transition=r.transitions.create("opacity",q),g&&g(ee)}),V=N(O),re=ee=>{a&&a(_.current,ee)};return R.jsx(x,Q({appear:s,in:u,nodeRef:_,onEnter:L,onEntered:U,onEntering:D,onExit:W,onExited:V,onExiting:B,addEndListener:re,timeout:w},k,{children:(ee,q)=>M.cloneElement(o,Q({style:Q({opacity:0,visibility:ee==="exited"&&!u?"hidden":void 0},h5e[ee],T,o.props.style),ref:I},q))}))});function p5e(e){return cn("MuiBackdrop",e)}pn("MuiBackdrop",["root","invisible"]);const m5e=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],g5e=e=>{const{classes:t,invisible:n}=e;return mn({root:["root",n&&"invisible"]},p5e,t)},b5e=at("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>Q({position:"fixed",display:"flex",alignItems:"center",justifyContent:"center",right:0,bottom:0,top:0,left:0,backgroundColor:"rgba(0, 0, 0, 0.5)",WebkitTapHighlightColor:"transparent"},e.invisible&&{backgroundColor:"transparent"})),lO=M.forwardRef(function(t,n){var r,i,a;const s=gn({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:d={},componentsProps:f={},invisible:p=!1,open:g,slotProps:O={},slots:S={},TransitionComponent:T=p3,transitionDuration:w}=s,x=wt(s,m5e),k=Q({},s,{component:u,invisible:p}),_=g5e(k),I=(r=O.root)!=null?r:f.root;return R.jsx(T,Q({in:g,timeout:w},x,{children:R.jsx(b5e,Q({"aria-hidden":!0},I,{as:(i=(a=S.root)!=null?a:d.Root)!=null?i:u,className:St(_.root,l,I==null?void 0:I.className),ownerState:Q({},k,I==null?void 0:I.ownerState),classes:_,ref:n,children:o}))}))}),y5e=pn("MuiBox",["root"]),v5e=p$(),Wa=Oke({themeId:Ov,defaultTheme:v5e,defaultClassName:y5e.root,generateClassName:o$.generate});function O5e(e){return cn("MuiButton",e)}const mA=pn("MuiButton",["root","text","textInherit","textPrimary","textSecondary","textSuccess","textError","textInfo","textWarning","outlined","outlinedInherit","outlinedPrimary","outlinedSecondary","outlinedSuccess","outlinedError","outlinedInfo","outlinedWarning","contained","containedInherit","containedPrimary","containedSecondary","containedSuccess","containedError","containedInfo","containedWarning","disableElevation","focusVisible","disabled","colorInherit","colorPrimary","colorSecondary","colorSuccess","colorError","colorInfo","colorWarning","textSizeSmall","textSizeMedium","textSizeLarge","outlinedSizeSmall","outlinedSizeMedium","outlinedSizeLarge","containedSizeSmall","containedSizeMedium","containedSizeLarge","sizeMedium","sizeSmall","sizeLarge","fullWidth","startIcon","endIcon","icon","iconSizeSmall","iconSizeMedium","iconSizeLarge"]),S5e=M.createContext({}),E5e=M.createContext(void 0),w5e=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],T5e=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${it(t)}`,`size${it(i)}`,`${a}Size${it(i)}`,`color${it(t)}`,n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["icon","startIcon",`iconSize${it(i)}`],endIcon:["icon","endIcon",`iconSize${it(i)}`]},l=mn(o,O5e,s);return Q({},s,l)},eoe=e=>Q({},e.size==="small"&&{"& > *:nth-of-type(1)":{fontSize:18}},e.size==="medium"&&{"& > *:nth-of-type(1)":{fontSize:20}},e.size==="large"&&{"& > *:nth-of-type(1)":{fontSize:22}}),x5e=at(Uf,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${it(n.color)}`],t[`size${it(n.size)}`],t[`${n.variant}Size${it(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return Q({},e.typography.button,{minWidth:64,padding:"6px 16px",borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":Q({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="text"&&t.color!=="inherit"&&{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="outlined"&&t.color!=="inherit"&&{border:`1px solid ${(e.vars||e).palette[t.color].main}`,backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${mA.focusVisible}`]:Q({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${mA.disabled}`]:Q({color:(e.vars||e).palette.action.disabled},t.variant==="outlined"&&{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`},t.variant==="contained"&&{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground})},t.variant==="text"&&{padding:"6px 8px"},t.variant==="text"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main},t.variant==="outlined"&&{padding:"5px 15px",border:"1px solid currentColor"},t.variant==="outlined"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].main,border:e.vars?`1px solid rgba(${e.vars.palette[t.color].mainChannel} / 0.5)`:`1px solid ${Qn(e.palette[t.color].main,.5)}`},t.variant==="contained"&&{color:e.vars?e.vars.palette.text.primary:(n=(r=e.palette).getContrastText)==null?void 0:n.call(r,e.palette.grey[300]),backgroundColor:e.vars?e.vars.palette.Button.inheritContainedBg:i,boxShadow:(e.vars||e).shadows[2]},t.variant==="contained"&&t.color!=="inherit"&&{color:(e.vars||e).palette[t.color].contrastText,backgroundColor:(e.vars||e).palette[t.color].main},t.color==="inherit"&&{color:"inherit",borderColor:"currentColor"},t.size==="small"&&t.variant==="text"&&{padding:"4px 5px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="text"&&{padding:"8px 11px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="outlined"&&{padding:"3px 9px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="outlined"&&{padding:"7px 21px",fontSize:e.typography.pxToRem(15)},t.size==="small"&&t.variant==="contained"&&{padding:"4px 10px",fontSize:e.typography.pxToRem(13)},t.size==="large"&&t.variant==="contained"&&{padding:"8px 22px",fontSize:e.typography.pxToRem(15)},t.fullWidth&&{width:"100%"})},({ownerState:e})=>e.disableElevation&&{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${mA.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${mA.disabled}`]:{boxShadow:"none"}}),k5e=at("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${it(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},eoe(e))),A5e=at("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${it(n.size)}`]]}})(({ownerState:e})=>Q({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},eoe(e))),Vo=M.forwardRef(function(t,n){const r=M.useContext(S5e),i=M.useContext(E5e),a=Ev(r,t),s=gn({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:d,disabled:f=!1,disableElevation:p=!1,disableFocusRipple:g=!1,endIcon:O,focusVisibleClassName:S,fullWidth:T=!1,size:w="medium",startIcon:x,type:k,variant:_="text"}=s,I=wt(s,w5e),N=Q({},s,{color:l,component:u,disabled:f,disableElevation:p,disableFocusRipple:g,fullWidth:T,size:w,type:k,variant:_}),D=T5e(N),L=x&&R.jsx(k5e,{className:D.startIcon,ownerState:N,children:x}),U=O&&R.jsx(A5e,{className:D.endIcon,ownerState:N,children:O}),B=i||"";return R.jsxs(x5e,Q({ownerState:N,className:St(r.className,D.root,d,B),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:St(D.focusVisible,S),ref:n,type:k},I,{classes:D,children:[L,o,U]}))});function _5e(e){return cn("MuiCard",e)}pn("MuiCard",["root"]);const C5e=["className","raised"],R5e=e=>{const{classes:t}=e;return mn({root:["root"]},_5e,t)},I5e=at(Oo,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),toe=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=wt(r,C5e),o=Q({},r,{raised:a}),l=R5e(o);return R.jsx(I5e,Q({className:St(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))});function N5e(e){return cn("MuiCardActionArea",e)}const DN=pn("MuiCardActionArea",["root","focusVisible","focusHighlight"]),D5e=["children","className","focusVisibleClassName"],P5e=e=>{const{classes:t}=e;return mn({root:["root"],focusHighlight:["focusHighlight"]},N5e,t)},L5e=at(Uf,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${DN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${DN.focusVisible} .${DN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),M5e=at("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})})),$5e=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=wt(r,D5e),l=r,u=P5e(l);return R.jsxs(L5e,Q({className:St(u.root,a),focusVisibleClassName:St(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,R.jsx(M5e,{className:u.focusHighlight,ownerState:l})]}))});function F5e(e){return cn("MuiCardContent",e)}pn("MuiCardContent",["root"]);const B5e=["className","component"],U5e=e=>{const{classes:t}=e;return mn({root:["root"]},F5e,t)},z5e=at("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),j5e=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=wt(r,B5e),o=Q({},r,{component:a}),l=U5e(o);return R.jsx(z5e,Q({as:a,className:St(l.root,i),ownerState:o,ref:n},s))});function H5e(e){return cn("PrivateSwitchBase",e)}pn("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const Q5e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],W5e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${it(i)}`],input:["input"]};return mn(a,H5e,t)},V5e=at(Uf)(({ownerState:e})=>Q({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),q5e=at("input",{shouldForwardProp:ks})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),_$=M.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:d=!1,icon:f,id:p,inputProps:g,inputRef:O,name:S,onBlur:T,onChange:w,onFocus:x,readOnly:k,required:_=!1,tabIndex:I,type:N,value:D}=t,L=wt(t,Q5e),[U,B]=If({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),W=Hf(),V=ie=>{x&&x(ie),W&&W.onFocus&&W.onFocus(ie)},re=ie=>{T&&T(ie),W&&W.onBlur&&W.onBlur(ie)},ee=ie=>{if(ie.nativeEvent.defaultPrevented)return;const H=ie.target.checked;B(H),w&&w(ie,H)};let q=l;W&&typeof q>"u"&&(q=W.disabled);const ne=N==="checkbox"||N==="radio",K=Q({},t,{checked:U,disabled:q,disableFocusRipple:u,edge:d}),G=W5e(K);return R.jsxs(V5e,Q({component:"span",className:St(G.root,s),centerRipple:!0,focusRipple:!u,disabled:q,tabIndex:null,role:void 0,onFocus:V,onBlur:re,ownerState:K,ref:n},L,{children:[R.jsx(q5e,Q({autoFocus:r,checked:i,defaultChecked:o,className:G.input,disabled:q,id:ne?p:void 0,name:S,onChange:ee,readOnly:k,ref:O,required:_,ownerState:K,tabIndex:I,type:N},N==="checkbox"&&D===void 0?{}:{value:D},g)),U?a:f]}))}),G5e=Nd(R.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"),Y5e=Nd(R.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"),Z5e=Nd(R.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 X5e(e){return cn("MuiCheckbox",e)}const PN=pn("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),K5e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],J5e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${it(r)}`,`size${it(i)}`]},s=mn(a,X5e,t);return Q({},t,s)},eRe=at(_$,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${it(n.size)}`],n.color!=="default"&&t[`color${it(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${PN.checked}, &.${PN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${PN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),tRe=R.jsx(Y5e,{}),nRe=R.jsx(G5e,{}),rRe=R.jsx(Z5e,{}),tR=M.forwardRef(function(t,n){var r,i;const a=gn({props:t,name:"MuiCheckbox"}),{checkedIcon:s=tRe,color:o="primary",icon:l=nRe,indeterminate:u=!1,indeterminateIcon:d=rRe,inputProps:f,size:p="medium",className:g}=a,O=wt(a,K5e),S=u?d:l,T=u?d:s,w=Q({},a,{color:o,indeterminate:u,size:p}),x=J5e(w);return R.jsx(eRe,Q({type:"checkbox",inputProps:Q({"data-indeterminate":u},f),icon:M.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(T,{fontSize:(i=T.props.fontSize)!=null?i:p}),ownerState:w,ref:n,className:St(x.root,g)},O,{classes:x}))});function iRe(e){return cn("MuiCircularProgress",e)}pn("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const aRe=["className","color","disableShrink","size","style","thickness","value","variant"];let nR=e=>e,GG,YG,ZG,XG;const Zp=44,sRe=nO(GG||(GG=nR` + 0% { + transform: rotate(0deg); + } + + 100% { + transform: rotate(360deg); + } +`)),oRe=nO(YG||(YG=nR` + 0% { + stroke-dasharray: 1px, 200px; + stroke-dashoffset: 0; + } + + 50% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -15px; + } + + 100% { + stroke-dasharray: 100px, 200px; + stroke-dashoffset: -125px; + } +`)),lRe=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${it(r)}`],svg:["svg"],circle:["circle",`circle${it(n)}`,i&&"circleDisableShrink"]};return mn(a,iRe,t)},uRe=at("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${it(n.color)}`]]}})(({ownerState:e,theme:t})=>Q({display:"inline-block"},e.variant==="determinate"&&{transition:t.transitions.create("transform")},e.color!=="inherit"&&{color:(t.vars||t).palette[e.color].main}),({ownerState:e})=>e.variant==="indeterminate"&&w5(ZG||(ZG=nR` + animation: ${0} 1.4s linear infinite; + `),sRe)),cRe=at("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),dRe=at("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${it(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>Q({stroke:"currentColor"},e.variant==="determinate"&&{transition:t.transitions.create("stroke-dashoffset")},e.variant==="indeterminate"&&{strokeDasharray:"80px, 200px",strokeDashoffset:0}),({ownerState:e})=>e.variant==="indeterminate"&&!e.disableShrink&&w5(XG||(XG=nR` + animation: ${0} 1.4s ease-in-out infinite; + `),oRe)),kd=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:d=0,variant:f="indeterminate"}=r,p=wt(r,aRe),g=Q({},r,{color:a,disableShrink:s,size:o,thickness:u,value:d,variant:f}),O=lRe(g),S={},T={},w={};if(f==="determinate"){const x=2*Math.PI*((Zp-u)/2);S.strokeDasharray=x.toFixed(3),w["aria-valuenow"]=Math.round(d),S.strokeDashoffset=`${((100-d)/100*x).toFixed(3)}px`,T.transform="rotate(-90deg)"}return R.jsx(uRe,Q({className:St(O.root,i),style:Q({width:o,height:o},T,l),ownerState:g,ref:n,role:"progressbar"},w,p,{children:R.jsx(cRe,{className:O.svg,ownerState:g,viewBox:`${Zp/2} ${Zp/2} ${Zp} ${Zp}`,children:R.jsx(dRe,{className:O.circle,style:S,ownerState:g,cx:Zp,cy:Zp,r:(Zp-u)/2,fill:"none",strokeWidth:u})})}))});function KG(e){return e.substring(2).toLowerCase()}function fRe(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const d=Or(t.ref,o),f=Vs(O=>{const S=u.current;u.current=!1;const T=ua(o.current);if(!l.current||!o.current||"clientX"in O&&fRe(O,T))return;if(s.current){s.current=!1;return}let w;O.composedPath?w=O.composedPath().indexOf(o.current)>-1:w=!T.documentElement.contains(O.target)||o.current.contains(O.target),!w&&(n||!S)&&i(O)}),p=O=>S=>{u.current=!0;const T=t.props[O];T&&T(S)},g={ref:d};return a!==!1&&(g[a]=p(a)),M.useEffect(()=>{if(a!==!1){const O=KG(a),S=ua(o.current),T=()=>{s.current=!0};return S.addEventListener(O,f),S.addEventListener("touchmove",T),()=>{S.removeEventListener(O,f),S.removeEventListener("touchmove",T)}}},[f,a]),r!==!1&&(g[r]=p(r)),M.useEffect(()=>{if(r!==!1){const O=KG(r),S=ua(o.current);return S.addEventListener(O,f),()=>{S.removeEventListener(O,f)}}},[f,r]),R.jsx(M.Fragment,{children:M.cloneElement(t,g)})}const C$=TAe({createStyledComponent:at("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${it(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>gn({props:e,name:"MuiContainer"})}),pRe=(e,t)=>Q({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),mRe=e=>Q({color:(e.vars||e).palette.text.primary},e.typography.body1,{backgroundColor:(e.vars||e).palette.background.default,"@media print":{backgroundColor:(e.vars||e).palette.common.white}}),gRe=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=Q({html:pRe(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:Q({margin:0},mRe(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function bRe(e){const t=gn({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return R.jsxs(M.Fragment,{children:[R.jsx(Kse,{styles:i=>gRe(i,r)}),n]})}function yRe(e){const t=ua(e);return t.body===e?Bf(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function f2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function JG(e){return parseInt(Bf(e).getComputedStyle(e).paddingRight,10)||0}function vRe(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 eY(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!vRe(s);o&&l&&f2(s,i)})}function LN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function ORe(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(yRe(r)){const s=gse(ua(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${JG(r)+s}px`;const o=ua(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${JG(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=ua(r).body;else{const s=r.parentElement,o=Bf(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function SRe(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class ERe{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&&f2(t.modalRef,!1);const i=SRe(n);eY(n,t.mount,t.modalRef,i,!0);const a=LN(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=LN(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=ORe(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=LN(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&f2(t.modalRef,n),eY(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&f2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const wRe=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function TRe(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 xRe(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 kRe(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||xRe(e))}function ARe(e){const t=[],n=[];return Array.from(e.querySelectorAll(wRe)).forEach((r,i)=>{const a=TRe(r);a===-1||!kRe(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function _Re(){return!0}function CRe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=ARe,isEnabled:s=_Re,open:o}=e,l=M.useRef(!1),u=M.useRef(null),d=M.useRef(null),f=M.useRef(null),p=M.useRef(null),g=M.useRef(!1),O=M.useRef(null),S=Or(t.ref,O),T=M.useRef(null);M.useEffect(()=>{!o||!O.current||(g.current=!n)},[n,o]),M.useEffect(()=>{if(!o||!O.current)return;const k=ua(O.current);return O.current.contains(k.activeElement)||(O.current.hasAttribute("tabIndex")||O.current.setAttribute("tabIndex","-1"),g.current&&O.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),M.useEffect(()=>{if(!o||!O.current)return;const k=ua(O.current),_=D=>{T.current=D,!(r||!s()||D.key!=="Tab")&&k.activeElement===O.current&&D.shiftKey&&(l.current=!0,d.current&&d.current.focus())},I=()=>{const D=O.current;if(D===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(D.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==d.current)return;if(k.activeElement!==p.current)p.current=null;else if(p.current!==null)return;if(!g.current)return;let L=[];if((k.activeElement===u.current||k.activeElement===d.current)&&(L=a(O.current)),L.length>0){var U,B;const W=!!((U=T.current)!=null&&U.shiftKey&&((B=T.current)==null?void 0:B.key)==="Tab"),V=L[0],re=L[L.length-1];typeof V!="string"&&typeof re!="string"&&(W?re.focus():V.focus())}else D.focus()};k.addEventListener("focusin",I),k.addEventListener("keydown",_,!0);const N=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(N),k.removeEventListener("focusin",I),k.removeEventListener("keydown",_,!0)}},[n,r,i,s,o,a]);const w=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,p.current=k.target;const _=t.props.onFocus;_&&_(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return R.jsxs(M.Fragment,{children:[R.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),M.cloneElement(t,{ref:S,onFocus:w}),R.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:d,"data-testid":"sentinelEnd"})]})}function RRe(e){return typeof e=="function"?e():e}function IRe(e){return e?e.props.hasOwnProperty("in"):!1}const NRe=new ERe;function DRe(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=NRe,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:d,rootRef:f}=e,p=M.useRef({}),g=M.useRef(null),O=M.useRef(null),S=Or(O,f),[T,w]=M.useState(!d),x=IRe(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const _=()=>ua(g.current),I=()=>(p.current.modalRef=O.current,p.current.mount=g.current,p.current),N=()=>{i.mount(I(),{disableScrollLock:r}),O.current&&(O.current.scrollTop=0)},D=Vs(()=>{const ne=RRe(t)||_().body;i.add(I(),ne),O.current&&N()}),L=M.useCallback(()=>i.isTopModal(I()),[i]),U=Vs(ne=>{g.current=ne,ne&&(d&&L()?N():O.current&&f2(O.current,k))}),B=M.useCallback(()=>{i.remove(I(),k)},[k,i]);M.useEffect(()=>()=>{B()},[B]),M.useEffect(()=>{d?D():(!x||!a)&&B()},[d,B,x,a,D]);const W=ne=>K=>{var G;(G=ne.onKeyDown)==null||G.call(ne,K),!(K.key!=="Escape"||K.which===229||!L())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},V=ne=>K=>{var G;(G=ne.onClick)==null||G.call(ne,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(ne={})=>{const K=u2(e);delete K.onTransitionEnter,delete K.onTransitionExited;const G=Q({},K,ne);return Q({role:"presentation"},G,{onKeyDown:W(G),ref:S})},getBackdropProps:(ne={})=>{const K=ne;return Q({"aria-hidden":!0},K,{onClick:V(K),open:d})},getTransitionProps:()=>{const ne=()=>{w(!1),s&&s()},K=()=>{w(!0),o&&o(),a&&B()};return{onEnter:u3(ne,l==null?void 0:l.props.onEnter),onExited:u3(K,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:U,isTopModal:L,exited:T,hasTransition:x}}function PRe(e){return cn("MuiModal",e)}pn("MuiModal",["root","hidden","backdrop"]);const LRe=["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"],MRe=e=>{const{open:t,exited:n,classes:r}=e;return mn({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},PRe,r)},$Re=at("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(({theme:e,ownerState:t})=>Q({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),FRe=at(lO,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),M1=M.forwardRef(function(t,n){var r,i,a,s,o,l;const u=gn({name:"MuiModal",props:t}),{BackdropComponent:d=FRe,BackdropProps:f,className:p,closeAfterTransition:g=!1,children:O,container:S,component:T,components:w={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:_=!1,disableEscapeKeyDown:I=!1,disablePortal:N=!1,disableRestoreFocus:D=!1,disableScrollLock:L=!1,hideBackdrop:U=!1,keepMounted:B=!1,onBackdropClick:W,open:V,slotProps:re,slots:ee}=u,q=wt(u,LRe),ne=Q({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:_,disableEscapeKeyDown:I,disablePortal:N,disableRestoreFocus:D,disableScrollLock:L,hideBackdrop:U,keepMounted:B}),{getRootProps:K,getBackdropProps:G,getTransitionProps:ie,portalRef:H,isTopModal:Re,exited:Se,hasTransition:Z}=DRe(Q({},ne,{rootRef:n})),ke=Q({},ne,{exited:Se}),$e=MRe(ke),ae={};if(O.props.tabIndex===void 0&&(ae.tabIndex="-1"),Z){const{onEnter:jt,onExited:ut}=ie();ae.onEnter=jt,ae.onExited=ut}const Xe=(r=(i=ee==null?void 0:ee.root)!=null?i:w.Root)!=null?r:$Re,We=(a=(s=ee==null?void 0:ee.backdrop)!=null?s:w.Backdrop)!=null?a:d,Ye=(o=re==null?void 0:re.root)!=null?o:x.root,xt=(l=re==null?void 0:re.backdrop)!=null?l:x.backdrop,st=jo({elementType:Xe,externalSlotProps:Ye,externalForwardedProps:q,getSlotProps:K,additionalProps:{ref:n,as:T},ownerState:ke,className:St(p,Ye==null?void 0:Ye.className,$e==null?void 0:$e.root,!ke.open&&ke.exited&&($e==null?void 0:$e.hidden))}),Pt=jo({elementType:We,externalSlotProps:xt,additionalProps:f,getSlotProps:jt=>G(Q({},jt,{onClick:ut=>{W&&W(ut),jt!=null&&jt.onClick&&jt.onClick(ut)}})),className:St(xt==null?void 0:xt.className,f==null?void 0:f.className,$e==null?void 0:$e.backdrop),ownerState:ke});return!B&&!V&&(!Z||Se)?null:R.jsx(Gse,{ref:H,container:S,disablePortal:N,children:R.jsxs(Xe,Q({},st,{children:[!U&&d?R.jsx(We,Q({},Pt)):null,R.jsx(CRe,{disableEnforceFocus:_,disableAutoFocus:k,disableRestoreFocus:D,isEnabled:Re,open:V,children:M.cloneElement(O,ae)})]}))})});function BRe(e){return cn("MuiDivider",e)}const tY=pn("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),URe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],zRe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return mn({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},BRe,r)},jRe=at("div",{name:"MuiDivider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.absolute&&t.absolute,t[n.variant],n.light&&t.light,n.orientation==="vertical"&&t.vertical,n.flexItem&&t.flexItem,n.children&&t.withChildren,n.children&&n.orientation==="vertical"&&t.withChildrenVertical,n.textAlign==="right"&&n.orientation!=="vertical"&&t.textAlignRight,n.textAlign==="left"&&n.orientation!=="vertical"&&t.textAlignLeft]}})(({theme:e,ownerState:t})=>Q({margin:0,flexShrink:0,borderWidth:0,borderStyle:"solid",borderColor:(e.vars||e).palette.divider,borderBottomWidth:"thin"},t.absolute&&{position:"absolute",bottom:0,left:0,width:"100%"},t.light&&{borderColor:e.vars?`rgba(${e.vars.palette.dividerChannel} / 0.08)`:Qn(e.palette.divider,.08)},t.variant==="inset"&&{marginLeft:72},t.variant==="middle"&&t.orientation==="horizontal"&&{marginLeft:e.spacing(2),marginRight:e.spacing(2)},t.variant==="middle"&&t.orientation==="vertical"&&{marginTop:e.spacing(1),marginBottom:e.spacing(1)},t.orientation==="vertical"&&{height:"100%",borderBottomWidth:0,borderRightWidth:"thin"},t.flexItem&&{alignSelf:"stretch",height:"auto"}),({ownerState:e})=>Q({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,borderTopStyle:"solid",borderLeftStyle:"solid","&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`,borderTopStyle:"inherit"}}),({theme:e,ownerState:t})=>Q({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`,borderLeftStyle:"inherit"}}),({ownerState:e})=>Q({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),HRe=at("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>Q({display:"inline-block",paddingLeft:`calc(${e.spacing(1)} * 1.2)`,paddingRight:`calc(${e.spacing(1)} * 1.2)`},t.orientation==="vertical"&&{paddingTop:`calc(${e.spacing(1)} * 1.2)`,paddingBottom:`calc(${e.spacing(1)} * 1.2)`})),b1=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:d="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:p="center",variant:g="fullWidth"}=r,O=wt(r,URe),S=Q({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:d,role:f,textAlign:p,variant:g}),T=zRe(S);return R.jsx(jRe,Q({as:o,className:St(T.root,s),role:f,ref:n,ownerState:S},O,{children:a?R.jsx(HRe,{className:T.wrapper,ownerState:S,children:a}):null}))});b1.muiSkipListHighlight=!0;const QRe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function WRe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=Bf(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function VRe(e){return typeof e=="function"?e():e}function gA(e,t,n){const r=VRe(n),i=WRe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const noe=M.forwardRef(function(t,n){const r=Pc(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:d="down",easing:f=i,in:p,onEnter:g,onEntered:O,onEntering:S,onExit:T,onExited:w,onExiting:x,style:k,timeout:_=a,TransitionComponent:I=Lc}=t,N=wt(t,QRe),D=M.useRef(null),L=Or(l.ref,D,n),U=G=>ie=>{G&&(ie===void 0?G(D.current):G(D.current,ie))},B=U((G,ie)=>{gA(d,G,u),y$(G),g&&g(G,ie)}),W=U((G,ie)=>{const H=nm({timeout:_,style:k,easing:f},{mode:"enter"});G.style.webkitTransition=r.transitions.create("-webkit-transform",Q({},H)),G.style.transition=r.transitions.create("transform",Q({},H)),G.style.webkitTransform="none",G.style.transform="none",S&&S(G,ie)}),V=U(O),re=U(x),ee=U(G=>{const ie=nm({timeout:_,style:k,easing:f},{mode:"exit"});G.style.webkitTransition=r.transitions.create("-webkit-transform",ie),G.style.transition=r.transitions.create("transform",ie),gA(d,G,u),T&&T(G)}),q=U(G=>{G.style.webkitTransition="",G.style.transition="",w&&w(G)}),ne=G=>{s&&s(D.current,G)},K=M.useCallback(()=>{D.current&&gA(d,D.current,u)},[d,u]);return M.useEffect(()=>{if(p||d==="down"||d==="right")return;const G=j5(()=>{D.current&&gA(d,D.current,u)}),ie=Bf(D.current);return ie.addEventListener("resize",G),()=>{G.clear(),ie.removeEventListener("resize",G)}},[d,p,u]),M.useEffect(()=>{p||K()},[p,K]),R.jsx(I,Q({nodeRef:D,onEnter:B,onEntered:V,onEntering:W,onExit:ee,onExited:q,onExiting:re,addEndListener:ne,appear:o,in:p,timeout:_},N,{children:(G,ie)=>M.cloneElement(l,Q({ref:L,style:Q({visibility:G==="exited"&&!p?"hidden":void 0},k,l.props.style)},ie))}))});function qRe(e){return cn("MuiDrawer",e)}pn("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const GRe=["BackdropProps"],YRe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],roe=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},ZRe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${it(n)}`,r!=="temporary"&&`paperAnchorDocked${it(n)}`]};return mn(i,qRe,t)},XRe=at(M1,{name:"MuiDrawer",slot:"Root",overridesResolver:roe})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),nY=at("div",{shouldForwardProp:ks,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:roe})({flex:"0 0 auto"}),KRe=at(Oo,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${it(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${it(n.anchor)}`]]}})(({theme:e,ownerState:t})=>Q({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}`})),ioe={left:"right",right:"left",top:"down",bottom:"up"};function JRe(e){return["left","right"].indexOf(e)!==-1}function eIe({direction:e},t){return e==="rtl"&&JRe(t)?ioe[t]:t}const tIe=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiDrawer"}),i=Pc(),a=W5(),s={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:o="left",BackdropProps:l,children:u,className:d,elevation:f=16,hideBackdrop:p=!1,ModalProps:{BackdropProps:g}={},onClose:O,open:S=!1,PaperProps:T={},SlideProps:w,TransitionComponent:x=noe,transitionDuration:k=s,variant:_="temporary"}=r,I=wt(r.ModalProps,GRe),N=wt(r,YRe),D=M.useRef(!1);M.useEffect(()=>{D.current=!0},[]);const L=eIe({direction:a?"rtl":"ltr"},o),B=Q({},r,{anchor:o,elevation:f,open:S,variant:_},N),W=ZRe(B),V=R.jsx(KRe,Q({elevation:_==="temporary"?f:0,square:!0},T,{className:St(W.paper,T.className),ownerState:B,children:u}));if(_==="permanent")return R.jsx(nY,Q({className:St(W.root,W.docked,d),ownerState:B,ref:n},N,{children:V}));const re=R.jsx(x,Q({in:S,direction:ioe[L],timeout:k,appear:D.current},w,{children:V}));return _==="persistent"?R.jsx(nY,Q({className:St(W.root,W.docked,d),ownerState:B,ref:n},N,{children:re})):R.jsx(XRe,Q({BackdropProps:Q({},l,g,{transitionDuration:k}),className:St(W.root,W.modal,d),open:S,ownerState:B,onClose:O,hideBackdrop:p,ref:n},N,I,{children:re}))}),nIe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],rIe=e=>{const{classes:t,disableUnderline:n}=e,i=mn({root:["root",!n&&"underline"],input:["input"]},NCe,t);return Q({},t,i)},iIe=at(J5,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...X5(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return Q({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${lu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${lu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${lu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${lu.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(.${lu.disabled}, .${lu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${lu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&Q({padding:"25px 12px 8px"},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9}))}),aIe=at(eR,{name:"MuiFilledInput",slot:"Input",overridesResolver:K5})(({theme:e,ownerState:t})=>Q({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderTopLeftRadius:"inherit",borderTopRightRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{paddingTop:21,paddingBottom:4},t.hiddenLabel&&{paddingTop:16,paddingBottom:17},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0},t.hiddenLabel&&t.size==="small"&&{paddingTop:8,paddingBottom:9},t.multiline&&{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0})),R$=M.forwardRef(function(t,n){var r,i,a,s;const o=gn({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:d=!1,inputComponent:f="input",multiline:p=!1,slotProps:g,slots:O={},type:S="text"}=o,T=wt(o,nIe),w=Q({},o,{fullWidth:d,inputComponent:f,multiline:p,type:S}),x=rIe(o),k={root:{ownerState:w},input:{ownerState:w}},_=g??u?Yo(k,g??u):k,I=(r=(i=O.root)!=null?i:l.Root)!=null?r:iIe,N=(a=(s=O.input)!=null?s:l.Input)!=null?a:aIe;return R.jsx(A$,Q({slots:{root:I,input:N},componentsProps:_,fullWidth:d,inputComponent:f,multiline:p,ref:n,type:S},T,{classes:x}))});R$.muiName="Input";function sIe(e){return cn("MuiFormControl",e)}pn("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const oIe=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],lIe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${it(n)}`,r&&"fullWidth"]};return mn(i,sIe,t)},uIe=at("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,t[`margin${it(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>Q({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top"},e.margin==="normal"&&{marginTop:16,marginBottom:8},e.margin==="dense"&&{marginTop:8,marginBottom:4},e.fullWidth&&{width:"100%"})),Mc=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:d,fullWidth:f=!1,hiddenLabel:p=!1,margin:g="none",required:O=!1,size:S="medium",variant:T="outlined"}=r,w=wt(r,oIe),x=Q({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:p,margin:g,required:O,size:S,variant:T}),k=lIe(x),[_,I]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{if(!l2(ee,["Input","Select"]))return;const q=l2(ee,["Select"])?ee.props.input:ee;q&&TCe(q.props)&&(re=!0)}),re}),[N,D]=M.useState(()=>{let re=!1;return i&&M.Children.forEach(i,ee=>{l2(ee,["Input","Select"])&&(h3(ee.props,!0)||h3(ee.props.inputProps,!0))&&(re=!0)}),re}),[L,U]=M.useState(!1);l&&L&&U(!1);const B=d!==void 0&&!l?d:L;let W;const V=M.useMemo(()=>({adornedStart:_,setAdornedStart:I,color:s,disabled:l,error:u,filled:N,focused:B,fullWidth:f,hiddenLabel:p,size:S,onBlur:()=>{U(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{U(!0)},registerEffect:W,required:O,variant:T}),[_,s,l,u,N,B,f,p,W,O,S,T]);return R.jsx(Z5.Provider,{value:V,children:R.jsx(uIe,Q({as:o,ownerState:x,className:St(k.root,a),ref:n},w,{children:i}))})}),zn=NAe({createStyledComponent:at("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>gn({props:e,name:"MuiStack"})});function cIe(e){return cn("MuiFormControlLabel",e)}const $E=pn("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),dIe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],fIe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${it(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return mn(s,cIe,t)},hIe=at("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${$E.label}`]:t.label},t.root,t[`labelPlacement${it(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>Q({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${$E.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},{[`& .${$E.label}`]:{[`&.${$E.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),pIe=at("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${$E.error}`]:{color:(e.vars||e).palette.error.main}})),hw=M.forwardRef(function(t,n){var r,i;const a=gn({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:d,label:f,labelPlacement:p="end",required:g,slotProps:O={}}=a,S=wt(a,dIe),T=Hf(),w=(r=u??l.props.disabled)!=null?r:T==null?void 0:T.disabled,x=g??l.props.required,k={disabled:w,required:x};["checked","name","onChange","value","inputRef"].forEach(U=>{typeof l.props[U]>"u"&&typeof a[U]<"u"&&(k[U]=a[U])});const _=bm({props:a,muiFormControl:T,states:["error"]}),I=Q({},a,{disabled:w,labelPlacement:p,required:x,error:_.error}),N=fIe(I),D=(i=O.typography)!=null?i:o.typography;let L=f;return L!=null&&L.type!==Cr&&!d&&(L=R.jsx(Cr,Q({component:"span"},D,{className:St(N.label,D==null?void 0:D.className),children:L}))),R.jsxs(hIe,Q({className:St(N.root,s),ownerState:I,ref:n},S,{children:[M.cloneElement(l,k),x?R.jsxs(zn,{display:"block",children:[L,R.jsxs(pIe,{ownerState:I,"aria-hidden":!0,className:N.asterisk,children:[" ","*"]})]}):L]}))});function mIe(e){return cn("MuiFormGroup",e)}pn("MuiFormGroup",["root","row","error"]);const gIe=["className","row"],bIe=e=>{const{classes:t,row:n,error:r}=e;return mn({root:["root",n&&"row",r&&"error"]},mIe,t)},yIe=at("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>Q({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),I$=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=wt(r,gIe),o=Hf(),l=bm({props:r,muiFormControl:o,states:["error"]}),u=Q({},r,{row:a,error:l.error}),d=bIe(u);return R.jsx(yIe,Q({className:St(d.root,i),ownerState:u,ref:n},s))});function vIe(e){return cn("MuiFormHelperText",e)}const rY=pn("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var iY;const OIe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],SIe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${it(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return mn(u,vIe,t)},EIe=at("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${it(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${rY.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${rY.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),uO=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=wt(r,OIe),l=Hf(),u=bm({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),d=Q({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=SIe(d);return R.jsx(EIe,Q({as:s,ownerState:d,className:St(f.root,a),ref:n},o,{children:i===" "?iY||(iY=R.jsx("span",{className:"notranslate",children:"​"})):i}))});function wIe(e){return cn("MuiFormLabel",e)}const h2=pn("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),TIe=["children","className","color","component","disabled","error","filled","focused","required"],xIe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${it(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return mn(l,wIe,t)},kIe=at("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>Q({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${h2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${h2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${h2.error}`]:{color:(e.vars||e).palette.error.main}})),AIe=at("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${h2.error}`]:{color:(e.vars||e).palette.error.main}})),rR=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=wt(r,TIe),l=Hf(),u=bm({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),d=Q({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=xIe(d);return R.jsxs(kIe,Q({as:s,ownerState:d,className:St(f.root,a),ref:n},o,{children:[i,u.required&&R.jsxs(AIe,{ownerState:d,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),aY=M.createContext();function _Ie(e){return cn("MuiGrid",e)}const CIe=[0,1,2,3,4,5,6,7,8,9,10],RIe=["column-reverse","column","row-reverse","row"],IIe=["nowrap","wrap-reverse","wrap"],tE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],pw=pn("MuiGrid",["root","container","item","zeroMinWidth",...CIe.map(e=>`spacing-xs-${e}`),...RIe.map(e=>`direction-xs-${e}`),...IIe.map(e=>`wrap-xs-${e}`),...tE.map(e=>`grid-xs-${e}`),...tE.map(e=>`grid-sm-${e}`),...tE.map(e=>`grid-md-${e}`),...tE.map(e=>`grid-lg-${e}`),...tE.map(e=>`grid-xl-${e}`)]),NIe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function Dy(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function DIe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=n1({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const d=e.spacing(t.columnSpacing);if(d!=="0px"){const f=`calc(${l} + ${Dy(d)})`;u={flexBasis:f,maxWidth:f}}}a=Q({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function PIe({theme:e,ownerState:t}){const n=n1({values:t.direction,breakpoints:e.breakpoints.values});return Ll({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${pw.item}`]={maxWidth:"none"}),i})}function aoe({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function LIe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=n1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=aoe({breakpoints:e.breakpoints.values,values:a})),i=Ll({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{marginTop:`-${Dy(d)}`,[`& > .${pw.item}`]:{paddingTop:Dy(d)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${pw.item}`]:{paddingTop:0}}})}return i}function MIe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=n1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=aoe({breakpoints:e.breakpoints.values,values:a})),i=Ll({theme:e},a,(o,l)=>{var u;const d=e.spacing(o);return d!=="0px"?{width:`calc(100% + ${Dy(d)})`,marginLeft:`-${Dy(d)}`,[`& > .${pw.item}`]:{paddingLeft:Dy(d)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${pw.item}`]:{paddingLeft:0}}})}return i}function $Ie(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const FIe=at("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let d=[];r&&(d=$Ie(s,u,t));const f=[];return u.forEach(p=>{const g=n[p];g&&f.push(t[`grid-${p}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...d,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>Q({boxSizing:"border-box"},e.container&&{display:"flex",flexWrap:"wrap",width:"100%"},e.item&&{margin:0},e.zeroMinWidth&&{minWidth:0},e.wrap!=="wrap"&&{flexWrap:e.wrap}),PIe,LIe,MIe,DIe);function BIe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const UIe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=BIe(a,l));const d=[];l.forEach(p=>{const g=e[p];g&&d.push(`grid-${p}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...d]};return mn(f,_Ie,t)},py=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiGrid"}),{breakpoints:i}=Pc(),a=vT(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:d=!1,direction:f="row",item:p=!1,rowSpacing:g,spacing:O=0,wrap:S="wrap",zeroMinWidth:T=!1}=a,w=wt(a,NIe),x=g||O,k=l||O,_=M.useContext(aY),I=d?o||12:_,N={},D=Q({},w);i.keys.forEach(B=>{w[B]!=null&&(N[B]=w[B],delete D[B])});const L=Q({},a,{columns:I,container:d,direction:f,item:p,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:T,spacing:O},N,{breakpoints:i.keys}),U=UIe(L);return R.jsx(aY.Provider,{value:I,children:R.jsx(FIe,Q({ownerState:L,className:St(U.root,s),as:u,ref:n},D))})}),zIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function VP(e){return`scale(${e}, ${e**2})`}const jIe={entering:{opacity:1,transform:VP(1)},entered:{opacity:1,transform:"none"}},MN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),m3=M.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:d,onExit:f,onExited:p,onExiting:g,style:O,timeout:S="auto",TransitionComponent:T=Lc}=t,w=wt(t,zIe),x=Pg(),k=M.useRef(),_=Pc(),I=M.useRef(null),N=Or(I,a.ref,n),D=q=>ne=>{if(q){const K=I.current;ne===void 0?q(K):q(K,ne)}},L=D(d),U=D((q,ne)=>{y$(q);const{duration:K,delay:G,easing:ie}=nm({style:O,timeout:S,easing:s},{mode:"enter"});let H;S==="auto"?(H=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=H):H=K,q.style.transition=[_.transitions.create("opacity",{duration:H,delay:G}),_.transitions.create("transform",{duration:MN?H:H*.666,delay:G,easing:ie})].join(","),l&&l(q,ne)}),B=D(u),W=D(g),V=D(q=>{const{duration:ne,delay:K,easing:G}=nm({style:O,timeout:S,easing:s},{mode:"exit"});let ie;S==="auto"?(ie=_.transitions.getAutoHeightDuration(q.clientHeight),k.current=ie):ie=ne,q.style.transition=[_.transitions.create("opacity",{duration:ie,delay:K}),_.transitions.create("transform",{duration:MN?ie:ie*.666,delay:MN?K:K||ie*.333,easing:G})].join(","),q.style.opacity=0,q.style.transform=VP(.75),f&&f(q)}),re=D(p),ee=q=>{S==="auto"&&x.start(k.current||0,q),r&&r(I.current,q)};return R.jsx(T,Q({appear:i,in:o,nodeRef:I,onEnter:U,onEntered:B,onEntering:L,onExit:V,onExited:re,onExiting:W,addEndListener:ee,timeout:S==="auto"?null:S},w,{children:(q,ne)=>M.cloneElement(a,Q({style:Q({opacity:0,transform:VP(.75),visibility:q==="exited"&&!o?"hidden":void 0},jIe[q],O,a.props.style),ref:N},ne))}))});m3.muiSupportAuto=!0;function HIe(e){return cn("MuiIcon",e)}pn("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const QIe=["baseClassName","className","color","component","fontSize"],WIe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${it(t)}`,`fontSize${it(n)}`]};return mn(i,HIe,r)},VIe=at("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${it(n.color)}`],t[`fontSize${it(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),soe=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=wt(r,QIe),d=Q({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=WIe(d);return R.jsx(VIe,Q({as:o,className:St(i,"notranslate",f.root,a),ownerState:d,"aria-hidden":!0,ref:n},u))});soe.muiName="Icon";const qIe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],GIe=e=>{const{classes:t,disableUnderline:n}=e,i=mn({root:["root",!n&&"underline"],input:["input"]},RCe,t);return Q({},t,i)},YIe=at(J5,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...X5(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{let r=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(r=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),Q({position:"relative"},t.formControl&&{"label + &":{marginTop:16}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[t.color].main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${h0.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${h0.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(.${h0.disabled}, .${h0.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${h0.disabled}:before`]:{borderBottomStyle:"dotted"}})}),ZIe=at(eR,{name:"MuiInput",slot:"Input",overridesResolver:K5})({}),N$=M.forwardRef(function(t,n){var r,i,a,s;const o=gn({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:d,fullWidth:f=!1,inputComponent:p="input",multiline:g=!1,slotProps:O,slots:S={},type:T="text"}=o,w=wt(o,qIe),x=GIe(o),_={root:{ownerState:{disableUnderline:l}}},I=O??d?Yo(O??d,_):_,N=(r=(i=S.root)!=null?i:u.Root)!=null?r:YIe,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:ZIe;return R.jsx(A$,Q({slots:{root:N,input:D},slotProps:I,fullWidth:f,inputComponent:p,multiline:g,ref:n,type:T},w,{classes:x}))});N$.muiName="Input";function XIe(e){return cn("MuiInputAdornment",e)}const sY=pn("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var oY;const KIe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],JIe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${it(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},e6e=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${it(i)}`,s,r&&"hiddenLabel",a&&`size${it(a)}`]};return mn(o,XIe,t)},t6e=at("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:JIe})(({theme:e,ownerState:t})=>Q({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${sY.positionStart}&:not(.${sY.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),qP=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:d}=r,f=wt(r,KIe),p=Hf()||{};let g=d;d&&p.variant,p&&!g&&(g=p.variant);const O=Q({},r,{hiddenLabel:p.hiddenLabel,size:p.size,disablePointerEvents:o,position:u,variant:g}),S=e6e(O);return R.jsx(Z5.Provider,{value:null,children:R.jsx(t6e,Q({as:s,ownerState:O,className:St(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?R.jsx(Cr,{color:"text.secondary",children:i}):R.jsxs(M.Fragment,{children:[u==="start"?oY||(oY=R.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})});function n6e(e){return cn("MuiInputLabel",e)}pn("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const r6e=["disableAnimation","margin","shrink","variant","className"],i6e=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${it(r)}`,s],asterisk:[o&&"asterisk"]},u=mn(l,n6e,t);return Q({},t,u)},a6e=at(rR,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${h2.asterisk}`]:t.asterisk},t.root,n.formControl&&t.formControl,n.size==="small"&&t.sizeSmall,n.shrink&&t.shrink,!n.disableAnimation&&t.animated,n.focused&&t.focused,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%"},t.formControl&&{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"},t.size==="small"&&{transform:"translate(0, 17px) scale(1)"},t.shrink&&{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"},!t.disableAnimation&&{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})},t.variant==="filled"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(12px, 13px) scale(1)"},t.shrink&&Q({userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"},t.size==="small"&&{transform:"translate(12px, 4px) scale(0.75)"})),t.variant==="outlined"&&Q({zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"},t.size==="small"&&{transform:"translate(14px, 9px) scale(1)"},t.shrink&&{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}))),ooe=M.forwardRef(function(t,n){const r=gn({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=wt(r,r6e),l=Hf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const d=bm({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=Q({},r,{disableAnimation:i,formControl:l,shrink:u,size:d.size,variant:d.variant,required:d.required,focused:d.focused}),p=i6e(f);return R.jsx(a6e,Q({"data-shrink":u,ownerState:f,ref:n,className:St(p.root,s)},o,{classes:p}))}),vc=M.createContext({});function s6e(e){return cn("MuiList",e)}pn("MuiList",["root","padding","dense","subheader"]);const o6e=["children","className","component","dense","disablePadding","subheader"],l6e=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return mn({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},s6e,t)},u6e=at("ul",{name:"MuiList",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disablePadding&&t.padding,n.dense&&t.dense,n.subheader&&t.subheader]}})(({ownerState:e})=>Q({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),c6e=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,d=wt(r,o6e),f=M.useMemo(()=>({dense:o}),[o]),p=Q({},r,{component:s,dense:o,disablePadding:l}),g=l6e(p);return R.jsx(vc.Provider,{value:f,children:R.jsxs(u6e,Q({as:s,className:St(g.root,a),ref:n,ownerState:p},d,{children:[u,i]}))})});function d6e(e){return cn("MuiListItem",e)}const Hb=pn("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]);function f6e(e){return cn("MuiListItemButton",e)}const Qb=pn("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),h6e=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],p6e=(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]},m6e=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=mn({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},f6e,n);return Q({},n,u)},g6e=at(Uf,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:p6e})(({theme:e,ownerState:t})=>Q({display:"flex",flexGrow:1,justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minWidth:0,boxSizing:"border-box",textAlign:"left",paddingTop:8,paddingBottom:8,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Qb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Qb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Qb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Qb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Qb.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})),lY=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:d=!1,focusVisibleClassName:f,selected:p=!1,className:g}=r,O=wt(r,h6e),S=M.useContext(vc),T=M.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),w=M.useRef(null);Ko(()=>{a&&w.current&&w.current.focus()},[a]);const x=Q({},r,{alignItems:i,dense:T.dense,disableGutters:u,divider:d,selected:p}),k=m6e(x),_=Or(w,n);return R.jsx(vc.Provider,{value:T,children:R.jsx(g6e,Q({ref:_,href:O.href||O.to,component:(O.href||O.to)&&s==="div"?"button":s,focusVisibleClassName:St(k.focusVisible,f),ownerState:x,className:St(k.root,g)},O,{classes:k,children:o}))})});function b6e(e){return cn("MuiListItemSecondaryAction",e)}pn("MuiListItemSecondaryAction",["root","disableGutters"]);const y6e=["className"],v6e=e=>{const{disableGutters:t,classes:n}=e;return mn({root:["root",t&&"disableGutters"]},b6e,n)},O6e=at("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>Q({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),iR=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=wt(r,y6e),s=M.useContext(vc),o=Q({},r,{disableGutters:s.disableGutters}),l=v6e(o);return R.jsx(O6e,Q({className:St(l.root,i),ownerState:o,ref:n},a))});iR.muiName="ListItemSecondaryAction";const S6e=["className"],E6e=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],w6e=(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]},T6e=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:d}=e;return mn({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",d&&"selected"],container:["container"]},d6e,r)},x6e=at("div",{name:"MuiListItem",slot:"Root",overridesResolver:w6e})(({theme:e,ownerState:t})=>Q({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&Q({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${Qb.root}`]:{paddingRight:48}},{[`&.${Hb.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Hb.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${Hb.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${Hb.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"}},[`&.${Hb.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),k6e=at("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),GP=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:d={},componentsProps:f={},ContainerComponent:p="li",ContainerProps:{className:g}={},dense:O=!1,disabled:S=!1,disableGutters:T=!1,disablePadding:w=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:_,selected:I=!1,slotProps:N={},slots:D={}}=r,L=wt(r.ContainerProps,S6e),U=wt(r,E6e),B=M.useContext(vc),W=M.useMemo(()=>({dense:O||B.dense||!1,alignItems:i,disableGutters:T}),[i,B.dense,O,T]),V=M.useRef(null);Ko(()=>{a&&V.current&&V.current.focus()},[a]);const re=M.Children.toArray(o),ee=re.length&&l2(re[re.length-1],["ListItemSecondaryAction"]),q=Q({},r,{alignItems:i,autoFocus:a,button:s,dense:W.dense,disabled:S,disableGutters:T,disablePadding:w,divider:x,hasSecondaryAction:ee,selected:I}),ne=T6e(q),K=Or(V,n),G=D.root||d.Root||x6e,ie=N.root||f.root||{},H=Q({className:St(ne.root,ie.className,l),disabled:S},U);let Re=u||"li";return s&&(H.component=u||"div",H.focusVisibleClassName=St(Hb.focusVisible,k),Re=Uf),ee?(Re=!H.component&&!u?"div":Re,p==="li"&&(Re==="li"?Re="div":H.component==="li"&&(H.component="div")),R.jsx(vc.Provider,{value:W,children:R.jsxs(k6e,Q({as:p,className:St(ne.container,g),ref:K,ownerState:q},L,{children:[R.jsx(G,Q({},ie,!Nf(G)&&{as:Re,ownerState:Q({},q,ie.ownerState)},H,{children:re})),re.pop()]}))})):R.jsx(vc.Provider,{value:W,children:R.jsxs(G,Q({},ie,{as:Re,ref:K},!Nf(G)&&{ownerState:Q({},q,ie.ownerState)},H,{children:[re,_&&R.jsx(iR,{children:_})]}))})});function A6e(e){return cn("MuiListItemAvatar",e)}pn("MuiListItemAvatar",["root","alignItemsFlexStart"]);const _6e=["className"],C6e=e=>{const{alignItems:t,classes:n}=e;return mn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},A6e,n)},R6e=at("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>Q({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),I6e=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=wt(r,_6e),s=M.useContext(vc),o=Q({},r,{alignItems:s.alignItems}),l=C6e(o);return R.jsx(R6e,Q({className:St(l.root,i),ownerState:o,ref:n},a))});function N6e(e){return cn("MuiListItemIcon",e)}const uY=pn("MuiListItemIcon",["root","alignItemsFlexStart"]),D6e=["className"],P6e=e=>{const{alignItems:t,classes:n}=e;return mn({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},N6e,n)},L6e=at("div",{name:"MuiListItemIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({theme:e,ownerState:t})=>Q({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),Py=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=wt(r,D6e),s=M.useContext(vc),o=Q({},r,{alignItems:s.alignItems}),l=P6e(o);return R.jsx(L6e,Q({className:St(l.root,i),ownerState:o,ref:n},a))});function M6e(e){return cn("MuiListItemText",e)}const g3=pn("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),$6e=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],F6e=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return mn({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},M6e,t)},B6e=at("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${g3.primary}`]:t.primary},{[`& .${g3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>Q({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),Pf=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:d,secondaryTypographyProps:f}=r,p=wt(r,$6e),{dense:g}=M.useContext(vc);let O=l??i,S=d;const T=Q({},r,{disableTypography:s,inset:o,primary:!!O,secondary:!!S,dense:g}),w=F6e(T);return O!=null&&O.type!==Cr&&!s&&(O=R.jsx(Cr,Q({variant:g?"body2":"body1",className:w.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:O}))),S!=null&&S.type!==Cr&&!s&&(S=R.jsx(Cr,Q({variant:"body2",className:w.secondary,color:"text.secondary",display:"block"},f,{children:S}))),R.jsxs(B6e,Q({className:St(w.root,a),ownerState:T,ref:n},p,{children:[O,S]}))}),U6e=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function $N(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function cY(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function loe(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 nE(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!loe(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const aR=M.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:d,variant:f="selectedMenu"}=t,p=wt(t,U6e),g=M.useRef(null),O=M.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});Ko(()=>{i&&g.current.focus()},[i]),M.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,{direction:_})=>{const I=!g.current.style.width;if(k.clientHeight{const _=g.current,I=k.key,N=ua(_).activeElement;if(I==="ArrowDown")k.preventDefault(),nE(_,N,u,l,$N);else if(I==="ArrowUp")k.preventDefault(),nE(_,N,u,l,cY);else if(I==="Home")k.preventDefault(),nE(_,null,u,l,$N);else if(I==="End")k.preventDefault(),nE(_,null,u,l,cY);else if(I.length===1){const D=O.current,L=I.toLowerCase(),U=performance.now();D.keys.length>0&&(U-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&L!==D.keys[0]&&(D.repeating=!1)),D.lastTime=U,D.keys.push(L);const B=N&&!D.repeating&&loe(N,D);D.previousKeyMatched&&(B||nE(_,N,!1,l,$N,D))?k.preventDefault():D.previousKeyMatched=!1}d&&d(k)},T=Or(g,n);let w=-1;M.Children.forEach(s,(k,_)=>{if(!M.isValidElement(k)){w===_&&(w+=1,w>=s.length&&(w=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||w===-1)&&(w=_),w===_&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(w+=1,w>=s.length&&(w=-1))});const x=M.Children.map(s,(k,_)=>{if(_===w){const I={};return a&&(I.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(I.tabIndex=0),M.cloneElement(k,I)}return k});return R.jsx(c6e,Q({role:"menu",ref:T,className:o,onKeyDown:S,tabIndex:i?0:-1},p,{children:x}))});function z6e(e){return cn("MuiPopover",e)}pn("MuiPopover",["root","paper"]);const j6e=["onEntering"],H6e=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],Q6e=["slotProps"];function dY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function fY(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function hY(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function FN(e){return typeof e=="function"?e():e}const W6e=e=>{const{classes:t}=e;return mn({root:["root"],paper:["paper"]},z6e,t)},V6e=at(M1,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),uoe=at(Oo,{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}),cO=M.forwardRef(function(t,n){var r,i,a;const s=gn({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:d,anchorReference:f="anchorEl",children:p,className:g,container:O,elevation:S=8,marginThreshold:T=16,open:w,PaperProps:x={},slots:k,slotProps:_,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:N=m3,transitionDuration:D="auto",TransitionProps:{onEntering:L}={},disableScrollLock:U=!1}=s,B=wt(s.TransitionProps,j6e),W=wt(s,H6e),V=(r=_==null?void 0:_.paper)!=null?r:x,re=M.useRef(),ee=Or(re,V.ref),q=Q({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:T,externalPaperSlotProps:V,transformOrigin:I,TransitionComponent:N,transitionDuration:D,TransitionProps:B}),ne=W6e(q),K=M.useCallback(()=>{if(f==="anchorPosition")return d;const jt=FN(l),Ot=(jt&&jt.nodeType===1?jt:ua(re.current).body).getBoundingClientRect();return{top:Ot.top+dY(Ot,u.vertical),left:Ot.left+fY(Ot,u.horizontal)}},[l,u.horizontal,u.vertical,d,f]),G=M.useCallback(jt=>({vertical:dY(jt,I.vertical),horizontal:fY(jt,I.horizontal)}),[I.horizontal,I.vertical]),ie=M.useCallback(jt=>{const ut={width:jt.offsetWidth,height:jt.offsetHeight},Ot=G(ut);if(f==="none")return{top:null,left:null,transformOrigin:hY(Ot)};const yt=K();let Ut=yt.top-Ot.vertical,de=yt.left-Ot.horizontal;const Ce=Ut+ut.height,Ne=de+ut.width,Ke=Bf(FN(l)),ct=Ke.innerHeight-T,Je=Ke.innerWidth-T;if(T!==null&&Utct){const gt=Ce-ct;Ut-=gt,Ot.vertical+=gt}if(T!==null&&deJe){const gt=Ne-Je;de-=gt,Ot.horizontal+=gt}return{top:`${Math.round(Ut)}px`,left:`${Math.round(de)}px`,transformOrigin:hY(Ot)}},[l,f,K,G,T]),[H,Re]=M.useState(w),Se=M.useCallback(()=>{const jt=re.current;if(!jt)return;const ut=ie(jt);ut.top!==null&&(jt.style.top=ut.top),ut.left!==null&&(jt.style.left=ut.left),jt.style.transformOrigin=ut.transformOrigin,Re(!0)},[ie]);M.useEffect(()=>(U&&window.addEventListener("scroll",Se),()=>window.removeEventListener("scroll",Se)),[l,U,Se]);const Z=(jt,ut)=>{L&&L(jt,ut),Se()},ke=()=>{Re(!1)};M.useEffect(()=>{w&&Se()}),M.useImperativeHandle(o,()=>w?{updatePosition:()=>{Se()}}:null,[w,Se]),M.useEffect(()=>{if(!w)return;const jt=j5(()=>{Se()}),ut=Bf(l);return ut.addEventListener("resize",jt),()=>{jt.clear(),ut.removeEventListener("resize",jt)}},[l,w,Se]);let $e=D;D==="auto"&&!N.muiSupportAuto&&($e=void 0);const ae=O||(l?ua(FN(l)).body:void 0),Xe=(i=k==null?void 0:k.root)!=null?i:V6e,We=(a=k==null?void 0:k.paper)!=null?a:uoe,Ye=jo({elementType:We,externalSlotProps:Q({},V,{style:H?V.style:Q({},V.style,{opacity:0})}),additionalProps:{elevation:S,ref:ee},ownerState:q,className:St(ne.paper,V==null?void 0:V.className)}),xt=jo({elementType:Xe,externalSlotProps:(_==null?void 0:_.root)||{},externalForwardedProps:W,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ae,open:w},ownerState:q,className:St(ne.root,g)}),{slotProps:st}=xt,Pt=wt(xt,Q6e);return R.jsx(Xe,Q({},Pt,!Nf(Xe)&&{slotProps:st,disableScrollLock:U},{children:R.jsx(N,Q({appear:!0,in:w,onEntering:Z,onExited:ke,timeout:$e},B,{children:R.jsx(We,Q({},Ye,{children:p}))}))}))});function q6e(e){return cn("MuiMenu",e)}pn("MuiMenu",["root","paper","list"]);const G6e=["onEntering"],Y6e=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],Z6e={vertical:"top",horizontal:"right"},X6e={vertical:"top",horizontal:"left"},K6e=e=>{const{classes:t}=e;return mn({root:["root"],paper:["paper"],list:["list"]},q6e,t)},J6e=at(cO,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),eNe=at(uoe,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tNe=at(aR,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),coe=M.forwardRef(function(t,n){var r,i;const a=gn({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:d={},onClose:f,open:p,PaperProps:g={},PopoverClasses:O,transitionDuration:S="auto",TransitionProps:{onEntering:T}={},variant:w="selectedMenu",slots:x={},slotProps:k={}}=a,_=wt(a.TransitionProps,G6e),I=wt(a,Y6e),N=W5(),D=Q({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:d,onEntering:T,PaperProps:g,transitionDuration:S,TransitionProps:_,variant:w}),L=K6e(D),U=s&&!u&&p,B=M.useRef(null),W=(G,ie)=>{B.current&&B.current.adjustStyleForScrollbar(G,{direction:N?"rtl":"ltr"}),T&&T(G,ie)},V=G=>{G.key==="Tab"&&(G.preventDefault(),f&&f(G,"tabKeyDown"))};let re=-1;M.Children.map(o,(G,ie)=>{M.isValidElement(G)&&(G.props.disabled||(w==="selectedMenu"&&G.props.selected||re===-1)&&(re=ie))});const ee=(r=x.paper)!=null?r:eNe,q=(i=k.paper)!=null?i:g,ne=jo({elementType:x.root,externalSlotProps:k.root,ownerState:D,className:[L.root,l]}),K=jo({elementType:ee,externalSlotProps:q,ownerState:D,className:L.paper});return R.jsx(J6e,Q({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:N?"right":"left"},transformOrigin:N?Z6e:X6e,slots:{paper:ee,root:x.root},slotProps:{root:ne,paper:K},open:p,ref:n,transitionDuration:S,TransitionProps:Q({onEntering:W},_),ownerState:D},I,{classes:O,children:R.jsx(tNe,Q({onKeyDown:V,actions:B,autoFocus:s&&(re===-1||u),autoFocusItem:U,variant:w},d,{className:St(L.list,d.className),children:o}))}))});function nNe(e){return cn("MuiMenuItem",e)}const rE=pn("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),rNe=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],iNe=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},aNe=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=mn({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},nNe,s);return Q({},s,l)},sNe=at(Uf,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:iNe})(({theme:e,ownerState:t})=>Q({},e.typography.body1,{display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",minHeight:48,paddingTop:6,paddingBottom:6,boxSizing:"border-box",whiteSpace:"nowrap"},!t.disableGutters&&{paddingLeft:16,paddingRight:16},t.divider&&{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"},{"&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${rE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${rE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${rE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${rE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${rE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${tY.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${tY.inset}`]:{marginLeft:52},[`& .${g3.root}`]:{marginTop:0,marginBottom:0},[`& .${g3.inset}`]:{paddingLeft:36},[`& .${uY.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&Q({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${uY.root} svg`]:{fontSize:"1.25rem"}}))),Od=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:d="menuitem",tabIndex:f,className:p}=r,g=wt(r,rNe),O=M.useContext(vc),S=M.useMemo(()=>({dense:s||O.dense||!1,disableGutters:l}),[O.dense,s,l]),T=M.useRef(null);Ko(()=>{i&&T.current&&T.current.focus()},[i]);const w=Q({},r,{dense:S.dense,divider:o,disableGutters:l}),x=aNe(r),k=Or(T,n);let _;return r.disabled||(_=f!==void 0?f:-1),R.jsx(vc.Provider,{value:S,children:R.jsx(sNe,Q({ref:k,role:d,tabIndex:_,component:a,focusVisibleClassName:St(x.focusVisible,u),className:St(x.root,p)},g,{ownerState:w,classes:x}))})});function oNe(e){return cn("MuiNativeSelect",e)}const D$=pn("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),lNe=["className","disabled","error","IconComponent","inputRef","variant"],uNe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${it(n)}`,a&&"iconOpen",r&&"disabled"]};return mn(o,oNe,t)},doe=({ownerState:e,theme:t})=>Q({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":Q({},t.vars?{backgroundColor:`rgba(${t.vars.palette.common.onBackgroundChannel} / 0.05)`}:{backgroundColor:t.palette.mode==="light"?"rgba(0, 0, 0, 0.05)":"rgba(255, 255, 255, 0.05)"},{borderRadius:0}),"&::-ms-expand":{display:"none"},[`&.${D$.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}}),cNe=at("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:ks,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${D$.multiple}`]:t.multiple}]}})(doe),foe=({ownerState:e,theme:t})=>Q({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${D$.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),dNe=at("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${it(n.variant)}`],n.open&&t.iconOpen]}})(foe),fNe=M.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=wt(t,lNe),d=Q({},t,{disabled:i,variant:l,error:a}),f=uNe(d);return R.jsxs(M.Fragment,{children:[R.jsx(cNe,Q({ownerState:d,className:St(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:R.jsx(dNe,{as:s,ownerState:d,className:f.icon})]})});var pY;const hNe=["children","classes","className","label","notched"],pNe=at("fieldset",{shouldForwardProp:ks})({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%"}),mNe=at("legend",{shouldForwardProp:ks})(({ownerState:e,theme:t})=>Q({float:"unset",width:"auto",overflow:"hidden"},!e.withLabel&&{padding:0,lineHeight:"11px",transition:t.transitions.create("width",{duration:150,easing:t.transitions.easing.easeOut})},e.withLabel&&Q({display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:t.transitions.create("max-width",{duration:50,easing:t.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}},e.notched&&{maxWidth:"100%",transition:t.transitions.create("max-width",{duration:100,easing:t.transitions.easing.easeOut,delay:50})})));function gNe(e){const{className:t,label:n,notched:r}=e,i=wt(e,hNe),a=n!=null&&n!=="",s=Q({},e,{notched:r,withLabel:a});return R.jsx(pNe,Q({"aria-hidden":!0,className:t,ownerState:s},i,{children:R.jsx(mNe,{ownerState:s,children:a?R.jsx("span",{children:n}):pY||(pY=R.jsx("span",{className:"notranslate",children:"​"}))})}))}const bNe=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],yNe=e=>{const{classes:t}=e,r=mn({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ICe,t);return Q({},t,r)},vNe=at(J5,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:X5})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return Q({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${af.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${af.focused} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${af.error} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${af.disabled} .${af.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&Q({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),ONe=at(gNe,{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}}),SNe=at(eR,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:K5})(({theme:e,ownerState:t})=>Q({padding:"16.5px 14px"},!e.vars&&{"&:-webkit-autofill":{WebkitBoxShadow:e.palette.mode==="light"?null:"0 0 0 100px #266798 inset",WebkitTextFillColor:e.palette.mode==="light"?null:"#fff",caretColor:e.palette.mode==="light"?null:"#fff",borderRadius:"inherit"}},e.vars&&{"&:-webkit-autofill":{borderRadius:"inherit"},[e.getColorSchemeSelector("dark")]:{"&:-webkit-autofill":{WebkitBoxShadow:"0 0 0 100px #266798 inset",WebkitTextFillColor:"#fff",caretColor:"#fff"}}},t.size==="small"&&{padding:"8.5px 14px"},t.multiline&&{padding:0},t.startAdornment&&{paddingLeft:0},t.endAdornment&&{paddingRight:0})),P$=M.forwardRef(function(t,n){var r,i,a,s,o;const l=gn({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:d=!1,inputComponent:f="input",label:p,multiline:g=!1,notched:O,slots:S={},type:T="text"}=l,w=wt(l,bNe),x=yNe(l),k=Hf(),_=bm({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=Q({},l,{color:_.color||"primary",disabled:_.disabled,error:_.error,focused:_.focused,formControl:k,fullWidth:d,hiddenLabel:_.hiddenLabel,multiline:g,size:_.size,type:T}),N=(r=(i=S.root)!=null?i:u.Root)!=null?r:vNe,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:SNe;return R.jsx(A$,Q({slots:{root:N,input:D},renderSuffix:L=>R.jsx(ONe,{ownerState:I,className:x.notchedOutline,label:p!=null&&p!==""&&_.required?o||(o=R.jsxs(M.Fragment,{children:[p," ","*"]})):p,notched:typeof O<"u"?O:!!(L.startAdornment||L.filled||L.focused)}),fullWidth:d,inputComponent:f,multiline:g,ref:n,type:T},w,{classes:Q({},x,{notchedOutline:null})}))});P$.muiName="Input";const ENe=Nd(R.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"),wNe=Nd(R.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"),TNe=at("span",{shouldForwardProp:ks})({position:"relative",display:"flex"}),xNe=at(ENe)({transform:"scale(1)"}),kNe=at(wNe)(({theme:e,ownerState:t})=>Q({left:0,position:"absolute",transform:"scale(0)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeIn,duration:e.transitions.duration.shortest})},t.checked&&{transform:"scale(1)",transition:e.transitions.create("transform",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.shortest})}));function hoe(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=Q({},e,{checked:t});return R.jsxs(TNe,{className:n.root,ownerState:i,children:[R.jsx(xNe,{fontSize:r,className:n.background,ownerState:i}),R.jsx(kNe,{fontSize:r,className:n.dot,ownerState:i})]})}const poe=M.createContext(void 0);function ANe(){return M.useContext(poe)}function _Ne(e){return cn("MuiRadio",e)}const mY=pn("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),CNe=["checked","checkedIcon","color","icon","name","onChange","size","className"],RNe=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${it(n)}`,r!=="medium"&&`size${it(r)}`]};return Q({},t,mn(i,_Ne,t))},INe=at(_$,{shouldForwardProp:e=>ks(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${it(n.size)}`],t[`color${it(n.color)}`]]}})(({theme:e,ownerState:t})=>Q({color:(e.vars||e).palette.text.secondary},!t.disableRipple&&{"&:hover":{backgroundColor:e.vars?`rgba(${t.color==="default"?e.vars.palette.action.activeChannel:e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${mY.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${mY.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function NNe(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const gY=R.jsx(hoe,{checked:!0}),bY=R.jsx(hoe,{}),yY=M.forwardRef(function(t,n){var r,i;const a=gn({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=gY,color:l="primary",icon:u=bY,name:d,onChange:f,size:p="medium",className:g}=a,O=wt(a,CNe),S=Q({},a,{color:l,size:p}),T=RNe(S),w=ANe();let x=s;const k=u3(f,w&&w.onChange);let _=d;return w&&(typeof x>"u"&&(x=NNe(w.value,a.value)),typeof _>"u"&&(_=w.name)),R.jsx(INe,Q({type:"radio",icon:M.cloneElement(u,{fontSize:(r=bY.props.fontSize)!=null?r:p}),checkedIcon:M.cloneElement(o,{fontSize:(i=gY.props.fontSize)!=null?i:p}),ownerState:S,classes:T,name:_,checked:x,onChange:k,ref:n,className:St(T.root,g)},O))});function DNe(e){return cn("MuiRadioGroup",e)}pn("MuiRadioGroup",["root","row","error"]);const PNe=["actions","children","className","defaultValue","name","onChange","value"],LNe=e=>{const{classes:t,row:n,error:r}=e;return mn({root:["root",n&&"row",r&&"error"]},DNe,t)},MNe=M.forwardRef(function(t,n){const{actions:r,children:i,className:a,defaultValue:s,name:o,onChange:l,value:u}=t,d=wt(t,PNe),f=M.useRef(null),p=LNe(t),[g,O]=If({controlled:u,default:s,name:"RadioGroup"});M.useImperativeHandle(r,()=>({focus:()=>{let x=f.current.querySelector("input:not(:disabled):checked");x||(x=f.current.querySelector("input:not(:disabled)")),x&&x.focus()}}),[]);const S=Or(n,f),T=aO(o),w=M.useMemo(()=>({name:T,onChange(x){O(x.target.value),l&&l(x,x.target.value)},value:g}),[T,l,O,g]);return R.jsx(poe.Provider,{value:w,children:R.jsx(I$,Q({role:"radiogroup",ref:S,className:St(p.root,a)},d,{children:i}))})});function $Ne(e){return cn("MuiSelect",e)}const iE=pn("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var vY;const FNe=["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"],BNe=at("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${iE.select}`]:t.select},{[`&.${iE.select}`]:t[n.variant]},{[`&.${iE.error}`]:t.error},{[`&.${iE.multiple}`]:t.multiple}]}})(doe,{[`&.${iE.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),UNe=at("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${it(n.variant)}`],n.open&&t.iconOpen]}})(foe),zNe=at("input",{shouldForwardProp:e=>V5(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 OY(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function jNe(e){return e==null||typeof e=="string"&&!e.trim()}const HNe=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${it(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return mn(o,$Ne,t)},QNe=M.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:d,defaultValue:f,disabled:p,displayEmpty:g,error:O=!1,IconComponent:S,inputRef:T,labelId:w,MenuProps:x={},multiple:k,name:_,onBlur:I,onChange:N,onClose:D,onFocus:L,onOpen:U,open:B,readOnly:W,renderValue:V,SelectDisplayProps:re={},tabIndex:ee,value:q,variant:ne="standard"}=t,K=wt(t,FNe),[G,ie]=If({controlled:q,default:f,name:"Select"}),[H,Re]=If({controlled:B,default:d,name:"Select"}),Se=M.useRef(null),Z=M.useRef(null),[ke,$e]=M.useState(null),{current:ae}=M.useRef(B!=null),[Xe,We]=M.useState(),Ye=Or(n,T),xt=M.useCallback(tt=>{Z.current=tt,tt&&$e(tt)},[]),st=ke==null?void 0:ke.parentNode;M.useImperativeHandle(Ye,()=>({focus:()=>{Z.current.focus()},node:Se.current,value:G}),[G]),M.useEffect(()=>{d&&H&&ke&&!ae&&(We(o?null:st.clientWidth),Z.current.focus())},[ke,o]),M.useEffect(()=>{s&&Z.current.focus()},[s]),M.useEffect(()=>{if(!w)return;const tt=ua(Z.current).getElementById(w);if(tt){const Wt=()=>{getSelection().isCollapsed&&Z.current.focus()};return tt.addEventListener("click",Wt),()=>{tt.removeEventListener("click",Wt)}}},[w]);const Pt=(tt,Wt)=>{tt?U&&U(Wt):D&&D(Wt),ae||(We(o?null:st.clientWidth),Re(tt))},jt=tt=>{tt.button===0&&(tt.preventDefault(),Z.current.focus(),Pt(!0,tt))},ut=tt=>{Pt(!1,tt)},Ot=M.Children.toArray(l),yt=tt=>{const Wt=Ot.find(Ht=>Ht.props.value===tt.target.value);Wt!==void 0&&(ie(Wt.props.value),N&&N(tt,Wt))},Ut=tt=>Wt=>{let Ht;if(Wt.currentTarget.hasAttribute("tabindex")){if(k){Ht=Array.isArray(G)?G.slice():[];const zt=G.indexOf(tt.props.value);zt===-1?Ht.push(tt.props.value):Ht.splice(zt,1)}else Ht=tt.props.value;if(tt.props.onClick&&tt.props.onClick(Wt),G!==Ht&&(ie(Ht),N)){const zt=Wt.nativeEvent||Wt,Sn=new zt.constructor(zt.type,zt);Object.defineProperty(Sn,"target",{writable:!0,value:{value:Ht,name:_}}),N(Sn,tt)}k||Pt(!1,Wt)}},de=tt=>{W||[" ","ArrowUp","ArrowDown","Enter"].indexOf(tt.key)!==-1&&(tt.preventDefault(),Pt(!0,tt))},Ce=ke!==null&&H,Ne=tt=>{!Ce&&I&&(Object.defineProperty(tt,"target",{writable:!0,value:{value:G,name:_}}),I(tt))};delete K["aria-invalid"];let Ke,ct;const Je=[];let gt=!1;(h3({value:G})||g)&&(V?Ke=V(G):gt=!0);const en=Ot.map(tt=>{if(!M.isValidElement(tt))return null;let Wt;if(k){if(!Array.isArray(G))throw new Error(ip(2));Wt=G.some(Ht=>OY(Ht,tt.props.value)),Wt&>&&Je.push(tt.props.children)}else Wt=OY(G,tt.props.value),Wt&>&&(ct=tt.props.children);return M.cloneElement(tt,{"aria-selected":Wt?"true":"false",onClick:Ut(tt),onKeyUp:Ht=>{Ht.key===" "&&Ht.preventDefault(),tt.props.onKeyUp&&tt.props.onKeyUp(Ht)},role:"option",selected:Wt,value:void 0,"data-value":tt.props.value})});gt&&(k?Je.length===0?Ke=null:Ke=Je.reduce((tt,Wt,Ht)=>(tt.push(Wt),Ht{const{classes:t}=e;return t},L$={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>ks(e)&&e!=="variant",slot:"Root"},GNe=at(N$,L$)(""),YNe=at(P$,L$)(""),ZNe=at(R$,L$)(""),M$=M.forwardRef(function(t,n){const r=gn({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:d=Jse,id:f,input:p,inputProps:g,label:O,labelId:S,MenuProps:T,multiple:w=!1,native:x=!1,onClose:k,onOpen:_,open:I,renderValue:N,SelectDisplayProps:D,variant:L="outlined"}=r,U=wt(r,WNe),B=x?fNe:QNe,W=Hf(),V=bm({props:r,muiFormControl:W,states:["variant","error"]}),re=V.variant||L,ee=Q({},r,{variant:re,classes:s}),q=qNe(ee),ne=wt(q,VNe),K=p||{standard:R.jsx(GNe,{ownerState:ee}),outlined:R.jsx(YNe,{label:O,ownerState:ee}),filled:R.jsx(ZNe,{ownerState:ee})}[re],G=Or(n,K.ref);return R.jsx(M.Fragment,{children:M.cloneElement(K,Q({inputComponent:B,inputProps:Q({children:a,error:V.error,IconComponent:d,variant:re,type:void 0,multiple:w},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:T,onClose:k,onOpen:_,open:I,renderValue:N,SelectDisplayProps:Q({id:f},D)},g,{classes:g?Yo(ne,g.classes):ne},p?p.props.inputProps:{})},(w&&x||u)&&re==="outlined"?{notched:!0}:{},{ref:G,className:St(K.props.className,o,q.root)},!p&&{variant:re},U))})});M$.muiName="Select";function XNe(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const KNe=2;function moe(e,t){return e-t}function SY(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},rDe=e=>e;let OA;function wY(){return OA===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?OA=CSS.supports("touch-action","none"):OA=!0),OA}function iDe(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:d,onChangeCommitted:f,orientation:p="horizontal",rootRef:g,scale:O=rDe,step:S=1,shiftStep:T=10,tabIndex:w,value:x}=e,k=M.useRef(),[_,I]=M.useState(-1),[N,D]=M.useState(-1),[L,U]=M.useState(!1),B=M.useRef(0),[W,V]=If({controlled:x,default:n??l,name:"Slider"}),re=d&&((ye,xe,Ue)=>{const Ct=ye.nativeEvent||ye,qt=new Ct.constructor(Ct.type,Ct);Object.defineProperty(qt,"target",{writable:!0,value:{value:xe,name:u}}),d(qt,xe,Ue)}),ee=Array.isArray(W);let q=ee?W.slice().sort(moe):[W];q=q.map(ye=>ye==null?l:xg(ye,l,o));const ne=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((ye,xe)=>({value:l+S*xe})):s||[],K=ne.map(ye=>ye.value),{isFocusVisibleRef:G,onBlur:ie,onFocus:H,ref:Re}=Q5(),[Se,Z]=M.useState(-1),ke=M.useRef(),$e=Or(Re,ke),ae=Or(g,$e),Xe=ye=>xe=>{var Ue;const Ct=Number(xe.currentTarget.getAttribute("data-index"));H(xe),G.current===!0&&Z(Ct),D(Ct),ye==null||(Ue=ye.onFocus)==null||Ue.call(ye,xe)},We=ye=>xe=>{var Ue;ie(xe),G.current===!1&&Z(-1),D(-1),ye==null||(Ue=ye.onBlur)==null||Ue.call(ye,xe)},Ye=(ye,xe)=>{const Ue=Number(ye.currentTarget.getAttribute("data-index")),Ct=q[Ue],qt=K.indexOf(Ct);let tt=xe;if(ne&&S==null){const Wt=K[K.length-1];tt>Wt?tt=Wt:ttxe=>{var Ue;if(S!==null){const Ct=Number(xe.currentTarget.getAttribute("data-index")),qt=q[Ct];let tt=null;(xe.key==="ArrowLeft"||xe.key==="ArrowDown")&&xe.shiftKey||xe.key==="PageDown"?tt=Math.max(qt-T,l):((xe.key==="ArrowRight"||xe.key==="ArrowUp")&&xe.shiftKey||xe.key==="PageUp")&&(tt=Math.min(qt+T,o)),tt!==null&&(Ye(xe,tt),xe.preventDefault())}ye==null||(Ue=ye.onKeyDown)==null||Ue.call(ye,xe)};Ko(()=>{if(r&&ke.current.contains(document.activeElement)){var ye;(ye=document.activeElement)==null||ye.blur()}},[r]),r&&_!==-1&&I(-1),r&&Se!==-1&&Z(-1);const st=ye=>xe=>{var Ue;(Ue=ye.onChange)==null||Ue.call(ye,xe),Ye(xe,xe.target.valueAsNumber)},Pt=M.useRef();let jt=p;a&&p==="horizontal"&&(jt+="-reverse");const ut=({finger:ye,move:xe=!1})=>{const{current:Ue}=ke,{width:Ct,height:qt,bottom:tt,left:Wt}=Ue.getBoundingClientRect();let Ht;jt.indexOf("vertical")===0?Ht=(tt-ye.y)/qt:Ht=(ye.x-Wt)/Ct,jt.indexOf("-reverse")!==-1&&(Ht=1-Ht);let zt;if(zt=JNe(Ht,l,o),S)zt=tDe(zt,S,l);else{const pr=SY(K,zt);zt=K[pr]}zt=xg(zt,l,o);let Sn=0;if(ee){xe?Sn=Pt.current:Sn=SY(q,zt),i&&(zt=xg(zt,q[Sn-1]||-1/0,q[Sn+1]||1/0));const pr=zt;zt=EY({values:q,newValue:zt,index:Sn}),i&&xe||(Sn=zt.indexOf(pr),Pt.current=Sn)}return{newValue:zt,activeIndex:Sn}},Ot=Vs(ye=>{const xe=bA(ye,k);if(!xe)return;if(B.current+=1,ye.type==="mousemove"&&ye.buttons===0){yt(ye);return}const{newValue:Ue,activeIndex:Ct}=ut({finger:xe,move:!0});yA({sliderRef:ke,activeIndex:Ct,setActive:I}),V(Ue),!L&&B.current>KNe&&U(!0),re&&!vA(Ue,W)&&re(ye,Ue,Ct)}),yt=Vs(ye=>{const xe=bA(ye,k);if(U(!1),!xe)return;const{newValue:Ue}=ut({finger:xe,move:!0});I(-1),ye.type==="touchend"&&D(-1),f&&f(ye,Ue),k.current=void 0,de()}),Ut=Vs(ye=>{if(r)return;wY()||ye.preventDefault();const xe=ye.changedTouches[0];xe!=null&&(k.current=xe.identifier);const Ue=bA(ye,k);if(Ue!==!1){const{newValue:qt,activeIndex:tt}=ut({finger:Ue});yA({sliderRef:ke,activeIndex:tt,setActive:I}),V(qt),re&&!vA(qt,W)&&re(ye,qt,tt)}B.current=0;const Ct=ua(ke.current);Ct.addEventListener("touchmove",Ot,{passive:!0}),Ct.addEventListener("touchend",yt,{passive:!0})}),de=M.useCallback(()=>{const ye=ua(ke.current);ye.removeEventListener("mousemove",Ot),ye.removeEventListener("mouseup",yt),ye.removeEventListener("touchmove",Ot),ye.removeEventListener("touchend",yt)},[yt,Ot]);M.useEffect(()=>{const{current:ye}=ke;return ye.addEventListener("touchstart",Ut,{passive:wY()}),()=>{ye.removeEventListener("touchstart",Ut),de()}},[de,Ut]),M.useEffect(()=>{r&&de()},[r,de]);const Ce=ye=>xe=>{var Ue;if((Ue=ye.onMouseDown)==null||Ue.call(ye,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const Ct=bA(xe,k);if(Ct!==!1){const{newValue:tt,activeIndex:Wt}=ut({finger:Ct});yA({sliderRef:ke,activeIndex:Wt,setActive:I}),V(tt),re&&!vA(tt,W)&&re(xe,tt,Wt)}B.current=0;const qt=ua(ke.current);qt.addEventListener("mousemove",Ot,{passive:!0}),qt.addEventListener("mouseup",yt)},Ne=b3(ee?q[0]:l,l,o),Ke=b3(q[q.length-1],l,o)-Ne,ct=(ye={})=>{const xe=u2(ye),Ue={onMouseDown:Ce(xe||{})},Ct=Q({},xe,Ue);return Q({},ye,{ref:ae},Ct)},Je=ye=>xe=>{var Ue;(Ue=ye.onMouseOver)==null||Ue.call(ye,xe);const Ct=Number(xe.currentTarget.getAttribute("data-index"));D(Ct)},gt=ye=>xe=>{var Ue;(Ue=ye.onMouseLeave)==null||Ue.call(ye,xe),D(-1)};return{active:_,axis:jt,axisProps:nDe,dragging:L,focusedThumbIndex:Se,getHiddenInputProps:(ye={})=>{var xe;const Ue=u2(ye),Ct={onChange:st(Ue||{}),onFocus:Xe(Ue||{}),onBlur:We(Ue||{}),onKeyDown:xt(Ue||{})},qt=Q({},Ue,Ct);return Q({tabIndex:w,"aria-labelledby":t,"aria-orientation":p,"aria-valuemax":O(o),"aria-valuemin":O(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(xe=e.step)!=null?xe:void 0,disabled:r},ye,qt,{style:Q({},oAe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:ct,getThumbProps:(ye={})=>{const xe=u2(ye),Ue={onMouseOver:Je(xe||{}),onMouseLeave:gt(xe||{})};return Q({},ye,xe,Ue)},marks:ne,open:N,range:ee,rootRef:ae,trackLeap:Ke,trackOffset:Ne,values:q,getThumbStyle:ye=>({pointerEvents:_!==-1&&_!==ye?"none":void 0})}}const aDe=e=>!e||!Nf(e);function sDe(e){return cn("MuiSlider",e)}const fc=pn("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"]),oDe=e=>{const{open:t}=e;return{offset:St(t&&fc.valueLabelOpen),circle:fc.valueLabelCircle,label:fc.valueLabelLabel}};function lDe(e){const{children:t,className:n,value:r}=e,i=oDe(e);return t?M.cloneElement(t,{className:St(t.props.className)},R.jsxs(M.Fragment,{children:[t.props.children,R.jsx("span",{className:St(i.offset,n),"aria-hidden":!0,children:R.jsx("span",{className:i.circle,children:R.jsx("span",{className:i.label,children:r})})})]})):null}const uDe=["aria-label","aria-valuetext","aria-labelledby","component","components","componentsProps","color","classes","className","disableSwap","disabled","getAriaLabel","getAriaValueText","marks","max","min","name","onChange","onChangeCommitted","orientation","shiftStep","size","step","scale","slotProps","slots","tabIndex","track","value","valueLabelDisplay","valueLabelFormat"];function TY(e){return e}const cDe=at("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${it(n.color)}`],n.size!=="medium"&&t[`size${it(n.size)}`],n.marked&&t.marked,n.orientation==="vertical"&&t.vertical,n.track==="inverted"&&t.trackInverted,n.track===!1&&t.trackFalse]}})(({theme:e})=>{var t;return{borderRadius:12,boxSizing:"content-box",display:"inline-block",position:"relative",cursor:"pointer",touchAction:"none",WebkitTapHighlightColor:"transparent","@media print":{colorAdjust:"exact"},[`&.${fc.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${fc.dragging}`]:{[`& .${fc.thumb}, & .${fc.track}`]:{transition:"none"}},variants:[...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{color:(e.vars||e).palette[n].main}})),{props:{orientation:"horizontal"},style:{height:4,width:"100%",padding:"13px 0","@media (pointer: coarse)":{padding:"20px 0"}}},{props:{orientation:"horizontal",size:"small"},style:{height:2}},{props:{orientation:"horizontal",marked:!0},style:{marginBottom:20}},{props:{orientation:"vertical"},style:{height:"100%",width:4,padding:"0 13px","@media (pointer: coarse)":{padding:"0 20px"}}},{props:{orientation:"vertical",size:"small"},style:{width:2}},{props:{orientation:"vertical",marked:!0},style:{marginRight:44}}]}}),dDe=at("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})({display:"block",position:"absolute",borderRadius:"inherit",backgroundColor:"currentColor",opacity:.38,variants:[{props:{orientation:"horizontal"},style:{width:"100%",height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{height:"100%",width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:"inverted"},style:{opacity:1}}]}),fDe=at("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e})=>{var t;return{display:"block",position:"absolute",borderRadius:"inherit",border:"1px solid currentColor",backgroundColor:"currentColor",transition:e.transitions.create(["left","width","bottom","height"],{duration:e.transitions.duration.shortest}),variants:[{props:{size:"small"},style:{border:"none"}},{props:{orientation:"horizontal"},style:{height:"inherit",top:"50%",transform:"translateY(-50%)"}},{props:{orientation:"vertical"},style:{width:"inherit",left:"50%",transform:"translateX(-50%)"}},{props:{track:!1},style:{display:"none"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n,track:"inverted"},style:Q({},e.vars?{backgroundColor:e.vars.palette.Slider[`${n}Track`],borderColor:e.vars.palette.Slider[`${n}Track`]}:Q({backgroundColor:cw(e.palette[n].main,.62),borderColor:cw(e.palette[n].main,.62)},e.applyStyles("dark",{backgroundColor:uw(e.palette[n].main,.5)}),e.applyStyles("dark",{borderColor:uw(e.palette[n].main,.5)})))}))]}}),hDe=at("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${it(n.color)}`],n.size!=="medium"&&t[`thumbSize${it(n.size)}`]]}})(({theme:e})=>{var t;return{position:"absolute",width:20,height:20,boxSizing:"border-box",borderRadius:"50%",outline:0,backgroundColor:"currentColor",display:"flex",alignItems:"center",justifyContent:"center",transition:e.transitions.create(["box-shadow","left","bottom"],{duration:e.transitions.duration.shortest}),"&::before":{position:"absolute",content:'""',borderRadius:"inherit",width:"100%",height:"100%",boxShadow:(e.vars||e).shadows[2]},"&::after":{position:"absolute",content:'""',borderRadius:"50%",width:42,height:42,top:"50%",left:"50%",transform:"translate(-50%, -50%)"},[`&.${fc.disabled}`]:{"&:hover":{boxShadow:"none"}},variants:[{props:{size:"small"},style:{width:12,height:12,"&::before":{boxShadow:"none"}}},{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-50%, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 50%)"}},...Object.keys(((t=e.vars)!=null?t:e).palette).filter(n=>{var r;return((r=e.vars)!=null?r:e).palette[n].main}).map(n=>({props:{color:n},style:{[`&:hover, &.${fc.focusVisible}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 8px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 8px ${Qn(e.palette[n].main,.16)}`},{"@media (hover: none)":{boxShadow:"none"}}),[`&.${fc.active}`]:Q({},e.vars?{boxShadow:`0px 0px 0px 14px rgba(${e.vars.palette[n].mainChannel} / 0.16)`}:{boxShadow:`0px 0px 0px 14px ${Qn(e.palette[n].main,.16)}`})}}))]}}),pDe=at(lDe,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e})=>Q({zIndex:1,whiteSpace:"nowrap"},e.typography.body2,{fontWeight:500,transition:e.transitions.create(["transform"],{duration:e.transitions.duration.shortest}),position:"absolute",backgroundColor:(e.vars||e).palette.grey[600],borderRadius:2,color:(e.vars||e).palette.common.white,display:"flex",alignItems:"center",justifyContent:"center",padding:"0.25rem 0.75rem",variants:[{props:{orientation:"horizontal"},style:{transform:"translateY(-100%) scale(0)",top:"-10px",transformOrigin:"bottom center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, 50%) rotate(45deg)",backgroundColor:"inherit",bottom:0,left:"50%"},[`&.${fc.valueLabelOpen}`]:{transform:"translateY(-100%) scale(1)"}}},{props:{orientation:"vertical"},style:{transform:"translateY(-50%) scale(0)",right:"30px",top:"50%",transformOrigin:"right center","&::before":{position:"absolute",content:'""',width:8,height:8,transform:"translate(-50%, -50%) rotate(45deg)",backgroundColor:"inherit",right:-8,top:"50%"},[`&.${fc.valueLabelOpen}`]:{transform:"translateY(-50%) scale(1)"}}},{props:{size:"small"},style:{fontSize:e.typography.pxToRem(12),padding:"0.25rem 0.5rem"}},{props:{orientation:"vertical",size:"small"},style:{right:"20px"}}]})),mDe=at("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>V5(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e})=>({position:"absolute",width:2,height:2,borderRadius:1,backgroundColor:"currentColor",variants:[{props:{orientation:"horizontal"},style:{top:"50%",transform:"translate(-1px, -50%)"}},{props:{orientation:"vertical"},style:{left:"50%",transform:"translate(-50%, 1px)"}},{props:{markActive:!0},style:{backgroundColor:(e.vars||e).palette.background.paper,opacity:.8}}]})),gDe=at("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>V5(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e})=>Q({},e.typography.body2,{color:(e.vars||e).palette.text.secondary,position:"absolute",whiteSpace:"nowrap",variants:[{props:{orientation:"horizontal"},style:{top:30,transform:"translateX(-50%)","@media (pointer: coarse)":{top:40}}},{props:{orientation:"vertical"},style:{left:36,transform:"translateY(50%)","@media (pointer: coarse)":{left:44}}},{props:{markLabelActive:!0},style:{color:(e.vars||e).palette.text.primary}}]})),bDe=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${it(o)}`,l&&`size${it(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${it(l)}`,o&&`thumbColor${it(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return mn(u,sDe,s)},yDe=({children:e})=>e,vDe=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,I,N,D,L,U,B;const W=gn({props:t,name:"MuiSlider"}),V=W5(),{"aria-label":re,"aria-valuetext":ee,"aria-labelledby":q,component:ne="span",components:K={},componentsProps:G={},color:ie="primary",classes:H,className:Re,disableSwap:Se=!1,disabled:Z=!1,getAriaLabel:ke,getAriaValueText:$e,marks:ae=!1,max:Xe=100,min:We=0,orientation:Ye="horizontal",shiftStep:xt=10,size:st="medium",step:Pt=1,scale:jt=TY,slotProps:ut,slots:Ot,track:yt="normal",valueLabelDisplay:Ut="off",valueLabelFormat:de=TY}=W,Ce=wt(W,uDe),Ne=Q({},W,{isRtl:V,max:Xe,min:We,classes:H,disabled:Z,disableSwap:Se,orientation:Ye,marks:ae,color:ie,size:st,step:Pt,shiftStep:xt,scale:jt,track:yt,valueLabelDisplay:Ut,valueLabelFormat:de}),{axisProps:Ke,getRootProps:ct,getHiddenInputProps:Je,getThumbProps:gt,open:en,active:Fe,axis:Te,focusedThumbIndex:ye,range:xe,dragging:Ue,marks:Ct,values:qt,trackOffset:tt,trackLeap:Wt,getThumbStyle:Ht}=iDe(Q({},Ne,{rootRef:n}));Ne.marked=Ct.length>0&&Ct.some(Ie=>Ie.label),Ne.dragging=Ue,Ne.focusedThumbIndex=ye;const zt=bDe(Ne),Sn=(r=(i=Ot==null?void 0:Ot.root)!=null?i:K.Root)!=null?r:cDe,pr=(a=(s=Ot==null?void 0:Ot.rail)!=null?s:K.Rail)!=null?a:dDe,Mr=(o=(l=Ot==null?void 0:Ot.track)!=null?l:K.Track)!=null?o:fDe,Rr=(u=(d=Ot==null?void 0:Ot.thumb)!=null?d:K.Thumb)!=null?u:hDe,Yr=(f=(p=Ot==null?void 0:Ot.valueLabel)!=null?p:K.ValueLabel)!=null?f:pDe,Di=(g=(O=Ot==null?void 0:Ot.mark)!=null?O:K.Mark)!=null?g:mDe,hi=(S=(T=Ot==null?void 0:Ot.markLabel)!=null?T:K.MarkLabel)!=null?S:gDe,ji=(w=(x=Ot==null?void 0:Ot.input)!=null?x:K.Input)!=null?w:"input",pi=(k=ut==null?void 0:ut.root)!=null?k:G.root,fs=(_=ut==null?void 0:ut.rail)!=null?_:G.rail,Hi=(I=ut==null?void 0:ut.track)!=null?I:G.track,Js=(N=ut==null?void 0:ut.thumb)!=null?N:G.thumb,Qi=(D=ut==null?void 0:ut.valueLabel)!=null?D:G.valueLabel,Ur=(L=ut==null?void 0:ut.mark)!=null?L:G.mark,tr=(U=ut==null?void 0:ut.markLabel)!=null?U:G.markLabel,Zr=(B=ut==null?void 0:ut.input)!=null?B:G.input,ze=jo({elementType:Sn,getSlotProps:ct,externalSlotProps:pi,externalForwardedProps:Ce,additionalProps:Q({},aDe(Sn)&&{as:ne}),ownerState:Q({},Ne,pi==null?void 0:pi.ownerState),className:[zt.root,Re]}),nt=jo({elementType:pr,externalSlotProps:fs,ownerState:Ne,className:zt.rail}),le=jo({elementType:Mr,externalSlotProps:Hi,additionalProps:{style:Q({},Ke[Te].offset(tt),Ke[Te].leap(Wt))},ownerState:Q({},Ne,Hi==null?void 0:Hi.ownerState),className:zt.track}),he=jo({elementType:Rr,getSlotProps:gt,externalSlotProps:Js,ownerState:Q({},Ne,Js==null?void 0:Js.ownerState),className:zt.thumb}),Le=jo({elementType:Yr,externalSlotProps:Qi,ownerState:Q({},Ne,Qi==null?void 0:Qi.ownerState),className:zt.valueLabel}),Ve=jo({elementType:Di,externalSlotProps:Ur,ownerState:Ne,className:zt.mark}),pt=jo({elementType:hi,externalSlotProps:tr,ownerState:Ne,className:zt.markLabel}),Vt=jo({elementType:ji,getSlotProps:Je,externalSlotProps:Zr,ownerState:Ne});return R.jsxs(Sn,Q({},ze,{children:[R.jsx(pr,Q({},nt)),R.jsx(Mr,Q({},le)),Ct.filter(Ie=>Ie.value>=We&&Ie.value<=Xe).map((Ie,we)=>{const ot=b3(Ie.value,We,Xe),qe=Ke[Te].offset(ot);let Et;return yt===!1?Et=qt.indexOf(Ie.value)!==-1:Et=yt==="normal"&&(xe?Ie.value>=qt[0]&&Ie.value<=qt[qt.length-1]:Ie.value<=qt[0])||yt==="inverted"&&(xe?Ie.value<=qt[0]||Ie.value>=qt[qt.length-1]:Ie.value>=qt[0]),R.jsxs(M.Fragment,{children:[R.jsx(Di,Q({"data-index":we},Ve,!Nf(Di)&&{markActive:Et},{style:Q({},qe,Ve.style),className:St(Ve.className,Et&&zt.markActive)})),Ie.label!=null?R.jsx(hi,Q({"aria-hidden":!0,"data-index":we},pt,!Nf(hi)&&{markLabelActive:Et},{style:Q({},qe,pt.style),className:St(zt.markLabel,pt.className,Et&&zt.markLabelActive),children:Ie.label})):null]},we)}),qt.map((Ie,we)=>{const ot=b3(Ie,We,Xe),qe=Ke[Te].offset(ot),Et=Ut==="off"?yDe:Yr;return R.jsx(Et,Q({},!Nf(Et)&&{valueLabelFormat:de,valueLabelDisplay:Ut,value:typeof de=="function"?de(jt(Ie),we):de,index:we,open:en===we||Fe===we||Ut==="on",disabled:Z},Le,{children:R.jsx(Rr,Q({"data-index":we},he,{className:St(zt.thumb,he.className,Fe===we&&zt.active,ye===we&&zt.focusVisible),style:Q({},qe,Ht(we),he.style),children:R.jsx(ji,Q({"data-index":we,"aria-label":ke?ke(we):re,"aria-valuenow":jt(Ie),"aria-labelledby":q,"aria-valuetext":$e?$e(jt(Ie),we):ee,value:qt[we]},Vt))}))}),we)})]}))});function ODe(e){return cn("MuiTooltip",e)}const _0=pn("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),SDe=["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 EDe(e){return Math.round(e*1e5)/1e5}const wDe=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${it(a.split("-")[0])}`],arrow:["arrow"]};return mn(s,ODe,t)},TDe=at(Y5,{name:"MuiTooltip",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popper,!n.disableInteractive&&t.popperInteractive,n.arrow&&t.popperArrow,!n.open&&t.popperClose]}})(({theme:e,ownerState:t,open:n})=>Q({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_0.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_0.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_0.arrow}`]:Q({},t.isRtl?{right:0,marginRight:"-0.71em"}:{left:0,marginLeft:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"100% 100%"}}),[`&[data-popper-placement*="left"] .${_0.arrow}`]:Q({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),xDe=at("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${it(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>Q({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Qn(e.palette.grey[700],.92),borderRadius:(e.vars||e).shape.borderRadius,color:(e.vars||e).palette.common.white,fontFamily:e.typography.fontFamily,padding:"4px 8px",fontSize:e.typography.pxToRem(11),maxWidth:300,margin:2,wordWrap:"break-word",fontWeight:e.typography.fontWeightMedium},t.arrow&&{position:"relative",margin:0},t.touch&&{padding:"8px 16px",fontSize:e.typography.pxToRem(14),lineHeight:`${EDe(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_0.popper}[data-popper-placement*="left"] &`]:Q({transformOrigin:"right center"},t.isRtl?Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):Q({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_0.popper}[data-popper-placement*="right"] &`]:Q({transformOrigin:"left center"},t.isRtl?Q({marginRight:"14px"},t.touch&&{marginRight:"24px"}):Q({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_0.popper}[data-popper-placement*="top"] &`]:Q({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_0.popper}[data-popper-placement*="bottom"] &`]:Q({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),kDe=at("span",{name:"MuiTooltip",slot:"Arrow",overridesResolver:(e,t)=>t.arrow})(({theme:e})=>({overflow:"hidden",position:"absolute",width:"1em",height:"0.71em",boxSizing:"border-box",color:e.vars?e.vars.palette.Tooltip.bg:Qn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let SA=!1;const xY=new OT;let aE={x:0,y:0};function EA(e,t){return(n,...r)=>{t&&t(n,...r),e(n,...r)}}const C0=M.forwardRef(function(t,n){var r,i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,I;const N=gn({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:L,components:U={},componentsProps:B={},describeChild:W=!1,disableFocusListener:V=!1,disableHoverListener:re=!1,disableInteractive:ee=!1,disableTouchListener:q=!1,enterDelay:ne=100,enterNextDelay:K=0,enterTouchDelay:G=700,followCursor:ie=!1,id:H,leaveDelay:Re=0,leaveTouchDelay:Se=1500,onClose:Z,onOpen:ke,open:$e,placement:ae="bottom",PopperComponent:Xe,PopperProps:We={},slotProps:Ye={},slots:xt={},title:st,TransitionComponent:Pt=m3,TransitionProps:jt}=N,ut=wt(N,SDe),Ot=M.isValidElement(L)?L:R.jsx("span",{children:L}),yt=Pc(),Ut=W5(),[de,Ce]=M.useState(),[Ne,Ke]=M.useState(null),ct=M.useRef(!1),Je=ee||ie,gt=Pg(),en=Pg(),Fe=Pg(),Te=Pg(),[ye,xe]=If({controlled:$e,default:!1,name:"Tooltip",state:"open"});let Ue=ye;const Ct=aO(H),qt=M.useRef(),tt=Vs(()=>{qt.current!==void 0&&(document.body.style.WebkitUserSelect=qt.current,qt.current=void 0),Te.clear()});M.useEffect(()=>tt,[tt]);const Wt=_t=>{xY.clear(),SA=!0,xe(!0),ke&&!Ue&&ke(_t)},Ht=Vs(_t=>{xY.start(800+Re,()=>{SA=!1}),xe(!1),Z&&Ue&&Z(_t),gt.start(yt.transitions.duration.shortest,()=>{ct.current=!1})}),zt=_t=>{ct.current&&_t.type!=="touchstart"||(de&&de.removeAttribute("title"),en.clear(),Fe.clear(),ne||SA&&K?en.start(SA?K:ne,()=>{Wt(_t)}):Wt(_t))},Sn=_t=>{en.clear(),Fe.start(Re,()=>{Ht(_t)})},{isFocusVisibleRef:pr,onBlur:Mr,onFocus:Rr,ref:Yr}=Q5(),[,Di]=M.useState(!1),hi=_t=>{Mr(_t),pr.current===!1&&(Di(!1),Sn(_t))},ji=_t=>{de||Ce(_t.currentTarget),Rr(_t),pr.current===!0&&(Di(!0),zt(_t))},pi=_t=>{ct.current=!0;const Gt=Ot.props;Gt.onTouchStart&&Gt.onTouchStart(_t)},fs=_t=>{pi(_t),Fe.clear(),gt.clear(),tt(),qt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",Te.start(G,()=>{document.body.style.WebkitUserSelect=qt.current,zt(_t)})},Hi=_t=>{Ot.props.onTouchEnd&&Ot.props.onTouchEnd(_t),tt(),Fe.start(Se,()=>{Ht(_t)})};M.useEffect(()=>{if(!Ue)return;function _t(Gt){(Gt.key==="Escape"||Gt.key==="Esc")&&Ht(Gt)}return document.addEventListener("keydown",_t),()=>{document.removeEventListener("keydown",_t)}},[Ht,Ue]);const Js=Or(Ot.ref,Yr,Ce,n);!st&&st!==0&&(Ue=!1);const Qi=M.useRef(),Ur=_t=>{const Gt=Ot.props;Gt.onMouseMove&&Gt.onMouseMove(_t),aE={x:_t.clientX,y:_t.clientY},Qi.current&&Qi.current.update()},tr={},Zr=typeof st=="string";W?(tr.title=!Ue&&Zr&&!re?st:null,tr["aria-describedby"]=Ue?Ct:null):(tr["aria-label"]=Zr?st:null,tr["aria-labelledby"]=Ue&&!Zr?Ct:null);const ze=Q({},tr,ut,Ot.props,{className:St(ut.className,Ot.props.className),onTouchStart:pi,ref:Js},ie?{onMouseMove:Ur}:{}),nt={};q||(ze.onTouchStart=fs,ze.onTouchEnd=Hi),re||(ze.onMouseOver=EA(zt,ze.onMouseOver),ze.onMouseLeave=EA(Sn,ze.onMouseLeave),Je||(nt.onMouseOver=zt,nt.onMouseLeave=Sn)),V||(ze.onFocus=EA(ji,ze.onFocus),ze.onBlur=EA(hi,ze.onBlur),Je||(nt.onFocus=ji,nt.onBlur=hi));const le=M.useMemo(()=>{var _t;let Gt=[{name:"arrow",enabled:!!Ne,options:{element:Ne,padding:4}}];return(_t=We.popperOptions)!=null&&_t.modifiers&&(Gt=Gt.concat(We.popperOptions.modifiers)),Q({},We.popperOptions,{modifiers:Gt})},[Ne,We]),he=Q({},N,{isRtl:Ut,arrow:D,disableInteractive:Je,placement:ae,PopperComponentProp:Xe,touch:ct.current}),Le=wDe(he),Ve=(r=(i=xt.popper)!=null?i:U.Popper)!=null?r:TDe,pt=(a=(s=(o=xt.transition)!=null?o:U.Transition)!=null?s:Pt)!=null?a:m3,Vt=(l=(u=xt.tooltip)!=null?u:U.Tooltip)!=null?l:xDe,Ie=(d=(f=xt.arrow)!=null?f:U.Arrow)!=null?d:kDe,we=hy(Ve,Q({},We,(p=Ye.popper)!=null?p:B.popper,{className:St(Le.popper,We==null?void 0:We.className,(g=(O=Ye.popper)!=null?O:B.popper)==null?void 0:g.className)}),he),ot=hy(pt,Q({},jt,(S=Ye.transition)!=null?S:B.transition),he),qe=hy(Vt,Q({},(T=Ye.tooltip)!=null?T:B.tooltip,{className:St(Le.tooltip,(w=(x=Ye.tooltip)!=null?x:B.tooltip)==null?void 0:w.className)}),he),Et=hy(Ie,Q({},(k=Ye.arrow)!=null?k:B.arrow,{className:St(Le.arrow,(_=(I=Ye.arrow)!=null?I:B.arrow)==null?void 0:_.className)}),he);return R.jsxs(M.Fragment,{children:[M.cloneElement(Ot,ze),R.jsx(Ve,Q({as:Xe??Y5,placement:ae,anchorEl:ie?{getBoundingClientRect:()=>({top:aE.y,left:aE.x,right:aE.x,bottom:aE.y,width:0,height:0})}:de,popperRef:Qi,open:de?Ue:!1,id:Ct,transition:!0},nt,we,{popperOptions:le,children:({TransitionProps:_t})=>R.jsx(pt,Q({timeout:yt.transitions.duration.shorter},_t,ot,{children:R.jsxs(Vt,Q({},qe,{children:[st,D?R.jsx(Ie,Q({},Et,{ref:Ke})):null]}))}))}))]})});function ADe(e){return cn("MuiSwitch",e)}const Mo=pn("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),_De=["className","color","edge","size","sx"],CDe=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${it(n)}`,`size${it(r)}`],switchBase:["switchBase",`color${it(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=mn(o,ADe,t);return Q({},t,l)},RDe=at("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${it(n.edge)}`],t[`size${it(n.size)}`]]}})({display:"inline-flex",width:34+12*2,height:14+12*2,overflow:"hidden",padding:12,boxSizing:"border-box",position:"relative",flexShrink:0,zIndex:0,verticalAlign:"middle","@media print":{colorAdjust:"exact"},variants:[{props:{edge:"start"},style:{marginLeft:-8}},{props:{edge:"end"},style:{marginRight:-8}},{props:{size:"small"},style:{width:40,height:24,padding:7,[`& .${Mo.thumb}`]:{width:16,height:16},[`& .${Mo.switchBase}`]:{padding:4,[`&.${Mo.checked}`]:{transform:"translateX(16px)"}}}}]}),IDe=at(_$,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Mo.input}`]:t.input},n.color!=="default"&&t[`color${it(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}),[`&.${Mo.checked}`]:{transform:"translateX(20px)"},[`&.${Mo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Mo.checked} + .${Mo.track}`]:{opacity:.5},[`&.${Mo.disabled} + .${Mo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Mo.input}`]:{left:"-100%",width:"300%"}}),({theme:e})=>({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},variants:[...Object.entries(e.palette).filter(([,t])=>t.main&&t.light).map(([t])=>({props:{color:t},style:{[`&.${Mo.checked}`]:{color:(e.vars||e).palette[t].main,"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette[t].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Qn(e.palette[t].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Mo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t}DisabledColor`]:`${e.palette.mode==="light"?cw(e.palette[t].main,.62):uw(e.palette[t].main,.55)}`}},[`&.${Mo.checked} + .${Mo.track}`]:{backgroundColor:(e.vars||e).palette[t].main}}}))]})),NDe=at("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}`})),DDe=at("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%"})),PDe=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=wt(r,_De),d=Q({},r,{color:a,edge:s,size:o}),f=CDe(d),p=R.jsx(DDe,{className:f.thumb,ownerState:d});return R.jsxs(RDe,{className:St(f.root,i),sx:l,ownerState:d,children:[R.jsx(IDe,Q({type:"checkbox",icon:p,checkedIcon:p,ref:n,ownerState:d},u,{classes:Q({},f,{root:f.switchBase})})),R.jsx(NDe,{className:f.track,ownerState:d})]})}),goe=M.createContext();function LDe(e){return cn("MuiTable",e)}pn("MuiTable",["root","stickyHeader"]);const MDe=["className","component","padding","size","stickyHeader"],$De=e=>{const{classes:t,stickyHeader:n}=e;return mn({root:["root",n&&"stickyHeader"]},LDe,t)},FDe=at("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":Q({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),kY="table",BDe=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTable"}),{className:i,component:a=kY,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=wt(r,MDe),d=Q({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=$De(d),p=M.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return R.jsx(goe.Provider,{value:p,children:R.jsx(FDe,Q({as:a,role:a===kY?null:"table",ref:n,className:St(f.root,i),ownerState:d},u))})}),sR=M.createContext();function UDe(e){return cn("MuiTableBody",e)}pn("MuiTableBody",["root"]);const zDe=["className","component"],jDe=e=>{const{classes:t}=e;return mn({root:["root"]},UDe,t)},HDe=at("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),QDe={variant:"body"},AY="tbody",WDe=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTableBody"}),{className:i,component:a=AY}=r,s=wt(r,zDe),o=Q({},r,{component:a}),l=jDe(o);return R.jsx(sR.Provider,{value:QDe,children:R.jsx(HDe,Q({className:St(l.root,i),as:a,ref:n,role:a===AY?null:"rowgroup",ownerState:o},s))})});function VDe(e){return cn("MuiTableCell",e)}const qDe=pn("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),GDe=["align","className","component","padding","scope","size","sortDirection","variant"],YDe=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${it(r)}`,i!=="normal"&&`padding${it(i)}`,`size${it(a)}`]};return mn(o,VDe,t)},ZDe=at("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${it(n.size)}`],n.padding!=="normal"&&t[`padding${it(n.padding)}`],n.align!=="inherit"&&t[`align${it(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>Q({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid + ${e.palette.mode==="light"?cw(Qn(e.palette.divider,1),.88):uw(Qn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${qDe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),Nb=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:d,variant:f}=r,p=wt(r,GDe),g=M.useContext(goe),O=M.useContext(sR),S=O&&O.variant==="head";let T;s?T=s:T=S?"th":"td";let w=l;T==="td"?w=void 0:!w&&S&&(w="col");const x=f||O&&O.variant,k=Q({},r,{align:i,component:T,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:d,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),_=YDe(k);let I=null;return d&&(I=d==="asc"?"ascending":"descending"),R.jsx(ZDe,Q({as:T,ref:n,className:St(_.root,a),"aria-sort":I,scope:w,ownerState:k},p))});function XDe(e){return cn("MuiTableContainer",e)}pn("MuiTableContainer",["root"]);const KDe=["className","component"],JDe=e=>{const{classes:t}=e;return mn({root:["root"]},XDe,t)},e7e=at("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),t7e=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=wt(r,KDe),o=Q({},r,{component:a}),l=JDe(o);return R.jsx(e7e,Q({ref:n,as:a,className:St(l.root,i),ownerState:o},s))});function n7e(e){return cn("MuiTableHead",e)}pn("MuiTableHead",["root"]);const r7e=["className","component"],i7e=e=>{const{classes:t}=e;return mn({root:["root"]},n7e,t)},a7e=at("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),s7e={variant:"head"},_Y="thead",o7e=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTableHead"}),{className:i,component:a=_Y}=r,s=wt(r,r7e),o=Q({},r,{component:a}),l=i7e(o);return R.jsx(sR.Provider,{value:s7e,children:R.jsx(a7e,Q({as:a,className:St(l.root,i),ref:n,role:a===_Y?null:"rowgroup",ownerState:o},s))})});function l7e(e){return cn("MuiToolbar",e)}pn("MuiToolbar",["root","gutters","regular","dense"]);const u7e=["className","component","disableGutters","variant"],c7e=e=>{const{classes:t,disableGutters:n,variant:r}=e;return mn({root:["root",!n&&"gutters",r]},l7e,t)},d7e=at("div",{name:"MuiToolbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableGutters&&t.gutters,t[n.variant]]}})(({theme:e,ownerState:t})=>Q({position:"relative",display:"flex",alignItems:"center"},!t.disableGutters&&{paddingLeft:e.spacing(2),paddingRight:e.spacing(2),[e.breakpoints.up("sm")]:{paddingLeft:e.spacing(3),paddingRight:e.spacing(3)}},t.variant==="dense"&&{minHeight:48}),({theme:e,ownerState:t})=>t.variant==="regular"&&e.mixins.toolbar),$$=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=wt(r,u7e),u=Q({},r,{component:a,disableGutters:s,variant:o}),d=c7e(u);return R.jsx(d7e,Q({as:a,className:St(d.root,i),ref:n,ownerState:u},l))});function f7e(e){return cn("MuiTableRow",e)}const CY=pn("MuiTableRow",["root","selected","hover","head","footer"]),h7e=["className","component","hover","selected"],p7e=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return mn({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},f7e,t)},m7e=at("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${CY.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${CY.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Qn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),RY="tr",IY=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTableRow"}),{className:i,component:a=RY,hover:s=!1,selected:o=!1}=r,l=wt(r,h7e),u=M.useContext(sR),d=Q({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=p7e(d);return R.jsx(m7e,Q({as:a,ref:n,className:St(f.root,i),role:a===RY?null:"row",ownerState:d},l))});function g7e(e){return cn("MuiTextField",e)}pn("MuiTextField",["root"]);const b7e=["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"],y7e={standard:N$,filled:R$,outlined:P$},v7e=e=>{const{classes:t}=e;return mn({root:["root"]},g7e,t)},O7e=at(Mc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),TT=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:d=!1,error:f=!1,FormHelperTextProps:p,fullWidth:g=!1,helperText:O,id:S,InputLabelProps:T,inputProps:w,InputProps:x,inputRef:k,label:_,maxRows:I,minRows:N,multiline:D=!1,name:L,onBlur:U,onChange:B,onFocus:W,placeholder:V,required:re=!1,rows:ee,select:q=!1,SelectProps:ne,type:K,value:G,variant:ie="outlined"}=r,H=wt(r,b7e),Re=Q({},r,{autoFocus:a,color:l,disabled:d,error:f,fullWidth:g,multiline:D,required:re,select:q,variant:ie}),Se=v7e(Re),Z={};ie==="outlined"&&(T&&typeof T.shrink<"u"&&(Z.notched=T.shrink),Z.label=_),q&&((!ne||!ne.native)&&(Z.id=void 0),Z["aria-describedby"]=void 0);const ke=aO(S),$e=O&&ke?`${ke}-helper-text`:void 0,ae=_&&ke?`${ke}-label`:void 0,Xe=y7e[ie],We=R.jsx(Xe,Q({"aria-describedby":$e,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:D,name:L,rows:ee,maxRows:I,minRows:N,type:K,value:G,id:ke,inputRef:k,onBlur:U,onChange:B,onFocus:W,placeholder:V,inputProps:w},Z,x));return R.jsxs(O7e,Q({className:St(Se.root,o),disabled:d,error:f,fullWidth:g,ref:n,required:re,color:l,variant:ie,ownerState:Re},H,{children:[_!=null&&_!==""&&R.jsx(ooe,Q({htmlFor:ke,id:ae},T,{children:_})),q?R.jsx(M$,Q({"aria-describedby":$e,id:ke,labelId:ae,value:G,input:We},ne,{children:s})):We,O&&R.jsx(uO,Q({id:$e},p,{children:O}))]}))});function S7e(e){return cn("MuiToggleButton",e)}const my=pn("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),boe=M.createContext({}),yoe=M.createContext(void 0);function E7e(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const w7e=["value"],T7e=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],x7e=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${it(a)}`,s]};return mn(o,S7e,t)},k7e=at(Uf,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${it(n.size)}`]]}})(({theme:e,ownerState:t})=>{let n=t.color==="standard"?e.palette.text.primary:e.palette[t.color].main,r;return e.vars&&(n=t.color==="standard"?e.vars.palette.text.primary:e.vars.palette[t.color].main,r=t.color==="standard"?e.vars.palette.text.primaryChannel:e.vars.palette[t.color].mainChannel),Q({},e.typography.button,{borderRadius:(e.vars||e).shape.borderRadius,padding:11,border:`1px solid ${(e.vars||e).palette.divider}`,color:(e.vars||e).palette.action.active},t.fullWidth&&{width:"100%"},{[`&.${my.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})`:uA(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${my.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:uA(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:uA(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:uA(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)})}),Y4=M.forwardRef(function(t,n){const r=M.useContext(boe),{value:i}=r,a=wt(r,w7e),s=M.useContext(yoe),o=Ev(Q({},a,{selected:E7e(t.value,i)}),t),l=gn({props:o,name:"MuiToggleButton"}),{children:u,className:d,color:f="standard",disabled:p=!1,disableFocusRipple:g=!1,fullWidth:O=!1,onChange:S,onClick:T,selected:w,size:x="medium",value:k}=l,_=wt(l,T7e),I=Q({},l,{color:f,disabled:p,disableFocusRipple:g,fullWidth:O,size:x}),N=x7e(I),D=U=>{T&&(T(U,k),U.defaultPrevented)||S&&S(U,k)},L=s||"";return R.jsx(k7e,Q({className:St(a.className,N.root,d,L),disabled:p,focusRipple:!g,ref:n,onClick:D,onChange:S,value:k,ownerState:I,"aria-pressed":w},_,{children:u}))});function A7e(e){return cn("MuiToggleButtonGroup",e)}const Yi=pn("MuiToggleButtonGroup",["root","selected","horizontal","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),_7e=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],C7e=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${it(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return mn(a,A7e,t)},R7e=at("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Yi.grouped}`]:t.grouped},{[`& .${Yi.grouped}`]:t[`grouped${it(n.orientation)}`]},{[`& .${Yi.firstButton}`]:t.firstButton},{[`& .${Yi.lastButton}`]:t.lastButton},{[`& .${Yi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>Q({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Yi.grouped}`]:Q({},e.orientation==="horizontal"?{[`&.${Yi.selected} + .${Yi.grouped}.${Yi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Yi.selected} + .${Yi.grouped}.${Yi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Yi.firstButton},& .${Yi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Yi.lastButton},& .${Yi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Yi.firstButton},& .${Yi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Yi.lastButton},& .${Yi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Yi.lastButton}.${my.disabled},& .${Yi.middleButton}.${my.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Yi.lastButton}.${my.disabled},& .${Yi.middleButton}.${my.disabled}`]:{borderTop:"1px solid transparent"}})),voe=M.forwardRef(function(t,n){const r=gn({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:d,orientation:f="horizontal",size:p="medium",value:g}=r,O=wt(r,_7e),S=Q({},r,{disabled:o,fullWidth:u,orientation:f,size:p}),T=C7e(S),w=M.useCallback((D,L)=>{if(!d)return;const U=g&&g.indexOf(L);let B;g&&U>=0?(B=g.slice(),B.splice(U,1)):B=g?g.concat(L):[L],d(D,B)},[d,g]),x=M.useCallback((D,L)=>{d&&d(D,g===L?null:L)},[d,g]),k=M.useMemo(()=>({className:T.grouped,onChange:l?x:w,value:g,size:p,fullWidth:u,color:s,disabled:o}),[T.grouped,l,x,w,g,p,u,s,o]),_=sAe(i),I=_.length,N=D=>{const L=D===0,U=D===I-1;return L&&U?"":L?T.firstButton:U?T.lastButton:T.middleButton};return R.jsx(R7e,Q({role:"group",className:St(T.root,a),ref:n,ownerState:S},O,{children:R.jsx(boe.Provider,{value:k,children:_.map((D,L)=>R.jsx(yoe.Provider,{value:N(L),children:D},L))})}))});var Ooe={exports:{}},Soe={};/** + * @license React + * use-sync-external-store-with-selector.production.min.js + * + * Copyright (c) Facebook, Inc. and its affiliates. + * + * This source code is licensed under the MIT license found in the + * LICENSE file in the root directory of this source tree. + */var xT=M;function I7e(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var N7e=typeof Object.is=="function"?Object.is:I7e,D7e=xT.useSyncExternalStore,P7e=xT.useRef,L7e=xT.useEffect,M7e=xT.useMemo,$7e=xT.useDebugValue;Soe.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=P7e(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=M7e(function(){function l(g){if(!u){if(u=!0,d=g,g=r(g),i!==void 0&&s.hasValue){var O=s.value;if(i(O,g))return f=O}return f=g}if(O=f,N7e(d,g))return O;var S=r(g);return i!==void 0&&i(O,S)?O:(d=g,f=S)}var u=!1,d,f,p=n===void 0?null:n;return[function(){return l(t())},p===null?void 0:function(){return l(p())}]},[t,n,r,i]);var o=D7e(e,a[0],a[1]);return L7e(function(){s.hasValue=!0,s.value=o},[o]),$7e(o),o};Ooe.exports=Soe;var F7e=Ooe.exports,yu="default"in fv?rn:fv,NY=Symbol.for("react-redux-context"),DY=typeof globalThis<"u"?globalThis:{};function B7e(){if(!yu.createContext)return{};const e=DY[NY]??(DY[NY]=new Map);let t=e.get(yu.createContext);return t||(t=yu.createContext(null),e.set(yu.createContext,t)),t}var rm=B7e(),U7e=()=>{throw new Error("uSES not initialized!")};function F$(e=rm){return function(){return yu.useContext(e)}}var Eoe=F$(),woe=U7e,z7e=e=>{woe=e},j7e=(e,t)=>e===t;function H7e(e=rm){const t=e===rm?Eoe:F$(e),n=(r,i={})=>{const{equalityFn:a=j7e,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:d,identityFunctionCheck:f}=t();yu.useRef(!0);const p=yu.useCallback({[r.name](O){return r(O)}}[r.name],[r,d,s.stabilityCheck]),g=woe(l.addNestedSub,o.getState,u||o.getState,p,a);return yu.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Pr=H7e();function Q7e(e){e()}function W7e(){let e=null,t=null;return{clear(){e=null,t=null},notify(){Q7e(()=>{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 PY={notify(){},get:()=>[]};function V7e(e,t){let n,r=PY,i=0,a=!1;function s(S){d();const T=r.subscribe(S);let w=!1;return()=>{w||(w=!0,T(),f())}}function o(){r.notify()}function l(){O.onStateChange&&O.onStateChange()}function u(){return a}function d(){i++,n||(n=e.subscribe(l),r=W7e())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=PY)}function p(){a||(a=!0,d())}function g(){a&&(a=!1,f())}const O={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:p,tryUnsubscribe:g,getListeners:()=>r};return O}var q7e=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",G7e=typeof navigator<"u"&&navigator.product==="ReactNative",Y7e=q7e||G7e?yu.useLayoutEffect:yu.useEffect;function Z7e({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=yu.useMemo(()=>{const u=V7e(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=yu.useMemo(()=>e.getState(),[e]);Y7e(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||rm;return yu.createElement(l.Provider,{value:s},n)}var X7e=Z7e;function Toe(e=rm){const t=e===rm?Eoe:F$(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var K7e=Toe();function J7e(e=rm){const t=e===rm?K7e:Toe(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Du=J7e();z7e(F7e.useSyncExternalStoreWithSelector);/** + * @remix-run/router v1.19.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function aa(){return aa=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function Av(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function tPe(){return Math.random().toString(36).substr(2,8)}function MY(e,t){return{usr:e.state,key:e.key,idx:t}}function mw(e,t,n,r){return n===void 0&&(n=null),aa({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?ym(t):t,{state:n,key:t&&t.key||r||tPe()})}function kT(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 ym(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 nPe(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=za.Pop,l=null,u=d();u==null&&(u=0,s.replaceState(aa({},s.state,{idx:u}),""));function d(){return(s.state||{idx:null}).idx}function f(){o=za.Pop;let T=d(),w=T==null?null:T-u;u=T,l&&l({action:o,location:S.location,delta:w})}function p(T,w){o=za.Push;let x=mw(S.location,T,w);u=d()+1;let k=MY(x,u),_=S.createHref(x);try{s.pushState(k,"",_)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(_)}a&&l&&l({action:o,location:S.location,delta:1})}function g(T,w){o=za.Replace;let x=mw(S.location,T,w);u=d();let k=MY(x,u),_=S.createHref(x);s.replaceState(k,"",_),a&&l&&l({action:o,location:S.location,delta:0})}function O(T){let w=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof T=="string"?T:kT(T);return x=x.replace(/ $/,"%20"),fr(w,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,w)}let S={get action(){return o},get location(){return e(i,s)},listen(T){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(LY,f),l=T,()=>{i.removeEventListener(LY,f),l=null}},createHref(T){return t(i,T)},createURL:O,encodeLocation(T){let w=O(T);return{pathname:w.pathname,search:w.search,hash:w.hash}},push:p,replace:g,go(T){return s.go(T)}};return S}var di;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(di||(di={}));const rPe=new Set(["lazy","caseSensitive","path","id","index","children"]);function iPe(e){return e.index===!0}function gw(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,String(a)],o=typeof i.id=="string"?i.id:s.join("-");if(fr(i.index!==!0||!i.children,"Cannot specify children on an index route"),fr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),iPe(i)){let l=aa({},i,t(i),{id:o});return r[o]=l,l}else{let l=aa({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=gw(i.children,t,s,r)),l}})}function kg(e,t,n){return n===void 0&&(n="/"),Z4(e,t,n,!1)}function Z4(e,t,n,r){let i=typeof t=="string"?ym(t):t,a=AT(i.pathname||"/",n);if(a==null)return null;let s=xoe(e);sPe(s);let o=null;for(let l=0;o==null&&l{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(fr(l.relativePath.startsWith(r),'Absolute route path "'+l.relativePath+'" nested under path '+('"'+r+'" is not valid. An absolute child route path ')+"must start with the combined path of all its parent routes."),l.relativePath=l.relativePath.slice(r.length));let u=W0([r,l.relativePath]),d=n.concat(l);a.children&&a.children.length>0&&(fr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),xoe(a.children,t,d,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:hPe(u,a.index),routesMeta:d})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of koe(a.path))i(a,s,l)}),t}function koe(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=koe(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function sPe(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:pPe(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const oPe=/^:[\w-]+$/,lPe=3,uPe=2,cPe=1,dPe=10,fPe=-2,$Y=e=>e==="*";function hPe(e,t){let n=e.split("/"),r=n.length;return n.some($Y)&&(r+=fPe),t&&(r+=uPe),n.filter(i=>!$Y(i)).reduce((i,a)=>i+(oPe.test(a)?lPe:a===""?cPe:dPe),r)}function pPe(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 mPe(e,t,n){n===void 0&&(n=!1);let{routesMeta:r}=e,i={},a="/",s=[];for(let o=0;o{let{paramName:p,isOptional:g}=d;if(p==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const O=o[f];return g&&!O?u[p]=void 0:u[p]=(O||"").replace(/%2F/g,"/"),u},{}),pathname:a,pathnameBase:s,pattern:e}}function gPe(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),Av(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function bPe(e){try{return e.split("/").map(t=>decodeURIComponent(t).replace(/\//g,"%2F")).join("/")}catch(t){return Av(!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 AT(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 yPe(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?ym(e):e;return{pathname:n?n.startsWith("/")?n:vPe(n,t):t,search:SPe(r),hash:EPe(i)}}function vPe(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 BN(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 Aoe(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function B$(e,t){let n=Aoe(e);return t?n.map((r,i)=>i===n.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function U$(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=ym(e):(i=aa({},e),fr(!i.pathname||!i.pathname.includes("?"),BN("?","pathname","search",i)),fr(!i.pathname||!i.pathname.includes("#"),BN("#","pathname","hash",i)),fr(!i.search||!i.search.includes("#"),BN("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let p=s.split("/");for(;p[0]==="..";)p.shift(),f-=1;i.pathname=p.join("/")}o=f>=0?t[f]:"/"}let l=yPe(i,o),u=s&&s!=="/"&&s.endsWith("/"),d=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||d)&&(l.pathname+="/"),l}const W0=e=>e.join("/").replace(/\/\/+/g,"/"),OPe=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),SPe=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,EPe=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class y3{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 _T(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const _oe=["post","put","patch","delete"],wPe=new Set(_oe),TPe=["get",..._oe],xPe=new Set(TPe),kPe=new Set([301,302,303,307,308]),APe=new Set([307,308]),UN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},_Pe={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},sE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},z$=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,CPe=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),Coe="remix-router-transitions";function RPe(e){const t=e.window?e.window:typeof window<"u"?window:void 0,n=typeof t<"u"&&typeof t.document<"u"&&typeof t.document.createElement<"u",r=!n;fr(e.routes.length>0,"You must provide a non-empty routes array to createRouter");let i;if(e.mapRouteProperties)i=e.mapRouteProperties;else if(e.detectErrorBoundary){let le=e.detectErrorBoundary;i=he=>({hasErrorBoundary:le(he)})}else i=CPe;let a={},s=gw(e.routes,i,void 0,a),o,l=e.basename||"/",u=e.unstable_dataStrategy||LPe,d=e.unstable_patchRoutesOnNavigation,f=aa({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1,v7_skipActionErrorRevalidation:!1},e.future),p=null,g=new Set,O=1e3,S=new Set,T=null,w=null,x=null,k=e.hydrationData!=null,_=kg(s,e.history.location,l),I=null;if(_==null&&!d){let le=Bo(404,{pathname:e.history.location.pathname}),{matches:he,route:Le}=GY(s);_=he,I={[Le.id]:le}}_&&!e.hydrationData&&Ur(_,s,e.history.location.pathname).active&&(_=null);let N;if(_)if(_.some(le=>le.route.lazy))N=!1;else if(!_.some(le=>le.route.loader))N=!0;else if(f.v7_partialHydration){let le=e.hydrationData?e.hydrationData.loaderData:null,he=e.hydrationData?e.hydrationData.errors:null,Le=Ve=>Ve.route.loader?typeof Ve.route.loader=="function"&&Ve.route.loader.hydrate===!0?!1:le&&le[Ve.route.id]!==void 0||he&&he[Ve.route.id]!==void 0:!0;if(he){let Ve=_.findIndex(pt=>he[pt.route.id]!==void 0);N=_.slice(0,Ve+1).every(Le)}else N=_.every(Le)}else N=e.hydrationData!=null;else if(N=!1,_=[],f.v7_partialHydration){let le=Ur(null,s,e.history.location.pathname);le.active&&le.matches&&(_=le.matches)}let D,L={historyAction:e.history.action,location:e.history.location,matches:_,initialized:N,navigation:UN,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||I,fetchers:new Map,blockers:new Map},U=za.Pop,B=!1,W,V=!1,re=new Map,ee=null,q=!1,ne=!1,K=[],G=new Set,ie=new Map,H=0,Re=-1,Se=new Map,Z=new Set,ke=new Map,$e=new Map,ae=new Set,Xe=new Map,We=new Map,Ye=new Map,xt=!1;function st(){if(p=e.history.listen(le=>{let{action:he,location:Le,delta:Ve}=le;if(xt){xt=!1;return}Av(We.size===0||Ve!=null,"You are trying to use a blocker on a POP navigation to a location that was not created by @remix-run/router. This will fail silently in production. This can happen if you are navigating outside the router via `window.history.pushState`/`window.location.hash` instead of using router navigation APIs. This can also happen if you are using createHashRouter and the user manually changes the URL.");let pt=Di({currentLocation:L.location,nextLocation:Le,historyAction:he});if(pt&&Ve!=null){xt=!0,e.history.go(Ve*-1),Yr(pt,{state:"blocked",location:Le,proceed(){Yr(pt,{state:"proceeding",proceed:void 0,reset:void 0,location:Le}),e.history.go(Ve)},reset(){let Vt=new Map(L.blockers);Vt.set(pt,sE),ut({blockers:Vt})}});return}return de(he,Le)}),n){GPe(t,re);let le=()=>YPe(t,re);t.addEventListener("pagehide",le),ee=()=>t.removeEventListener("pagehide",le)}return L.initialized||de(za.Pop,L.location,{initialHydration:!0}),D}function Pt(){p&&p(),ee&&ee(),g.clear(),W&&W.abort(),L.fetchers.forEach((le,he)=>tt(he)),L.blockers.forEach((le,he)=>Rr(he))}function jt(le){return g.add(le),()=>g.delete(le)}function ut(le,he){he===void 0&&(he={}),L=aa({},L,le);let Le=[],Ve=[];f.v7_fetcherPersist&&L.fetchers.forEach((pt,Vt)=>{pt.state==="idle"&&(ae.has(Vt)?Ve.push(Vt):Le.push(Vt))}),[...g].forEach(pt=>pt(L,{deletedFetchers:Ve,unstable_viewTransitionOpts:he.viewTransitionOpts,unstable_flushSync:he.flushSync===!0})),f.v7_fetcherPersist&&(Le.forEach(pt=>L.fetchers.delete(pt)),Ve.forEach(pt=>tt(pt)))}function Ot(le,he,Le){var Ve,pt;let{flushSync:Vt}=Le===void 0?{}:Le,Ie=L.actionData!=null&&L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&L.navigation.state==="loading"&&((Ve=le.state)==null?void 0:Ve._isRedirect)!==!0,we;he.actionData?Object.keys(he.actionData).length>0?we=he.actionData:we=null:Ie?we=L.actionData:we=null;let ot=he.loaderData?VY(L.loaderData,he.loaderData,he.matches||[],he.errors):L.loaderData,qe=L.blockers;qe.size>0&&(qe=new Map(qe),qe.forEach((Gt,jn)=>qe.set(jn,sE)));let Et=B===!0||L.navigation.formMethod!=null&&ud(L.navigation.formMethod)&&((pt=le.state)==null?void 0:pt._isRedirect)!==!0;o&&(s=o,o=void 0),q||U===za.Pop||(U===za.Push?e.history.push(le,le.state):U===za.Replace&&e.history.replace(le,le.state));let _t;if(U===za.Pop){let Gt=re.get(L.location.pathname);Gt&&Gt.has(le.pathname)?_t={currentLocation:L.location,nextLocation:le}:re.has(le.pathname)&&(_t={currentLocation:le,nextLocation:L.location})}else if(V){let Gt=re.get(L.location.pathname);Gt?Gt.add(le.pathname):(Gt=new Set([le.pathname]),re.set(L.location.pathname,Gt)),_t={currentLocation:L.location,nextLocation:le}}ut(aa({},he,{actionData:we,loaderData:ot,historyAction:U,location:le,initialized:!0,navigation:UN,revalidation:"idle",restoreScrollPosition:Qi(le,he.matches||L.matches),preventScrollReset:Et,blockers:qe}),{viewTransitionOpts:_t,flushSync:Vt===!0}),U=za.Pop,B=!1,V=!1,q=!1,ne=!1,K=[]}async function yt(le,he){if(typeof le=="number"){e.history.go(le);return}let Le=YP(L.location,L.matches,l,f.v7_prependBasename,le,f.v7_relativeSplatPath,he==null?void 0:he.fromRouteId,he==null?void 0:he.relative),{path:Ve,submission:pt,error:Vt}=BY(f.v7_normalizeFormMethod,!1,Le,he),Ie=L.location,we=mw(L.location,Ve,he&&he.state);we=aa({},we,e.history.encodeLocation(we));let ot=he&&he.replace!=null?he.replace:void 0,qe=za.Push;ot===!0?qe=za.Replace:ot===!1||pt!=null&&ud(pt.formMethod)&&pt.formAction===L.location.pathname+L.location.search&&(qe=za.Replace);let Et=he&&"preventScrollReset"in he?he.preventScrollReset===!0:void 0,_t=(he&&he.unstable_flushSync)===!0,Gt=Di({currentLocation:Ie,nextLocation:we,historyAction:qe});if(Gt){Yr(Gt,{state:"blocked",location:we,proceed(){Yr(Gt,{state:"proceeding",proceed:void 0,reset:void 0,location:we}),yt(le,he)},reset(){let jn=new Map(L.blockers);jn.set(Gt,sE),ut({blockers:jn})}});return}return await de(qe,we,{submission:pt,pendingError:Vt,preventScrollReset:Et,replace:he&&he.replace,enableViewTransition:he&&he.unstable_viewTransition,flushSync:_t})}function Ut(){if(xe(),ut({revalidation:"loading"}),L.navigation.state!=="submitting"){if(L.navigation.state==="idle"){de(L.historyAction,L.location,{startUninterruptedRevalidation:!0});return}de(U||L.historyAction,L.navigation.location,{overrideNavigation:L.navigation})}}async function de(le,he,Le){W&&W.abort(),W=null,U=le,q=(Le&&Le.startUninterruptedRevalidation)===!0,Js(L.location,L.matches),B=(Le&&Le.preventScrollReset)===!0,V=(Le&&Le.enableViewTransition)===!0;let Ve=o||s,pt=Le&&Le.overrideNavigation,Vt=kg(Ve,he,l),Ie=(Le&&Le.flushSync)===!0,we=Ur(Vt,Ve,he.pathname);if(we.active&&we.matches&&(Vt=we.matches),!Vt){let{error:qn,notFoundMatches:Wi,route:ti}=hi(he.pathname);Ot(he,{matches:Wi,loaderData:{},errors:{[ti.id]:qn}},{flushSync:Ie});return}if(L.initialized&&!ne&&zPe(L.location,he)&&!(Le&&Le.submission&&ud(Le.submission.formMethod))){Ot(he,{matches:Vt},{flushSync:Ie});return}W=new AbortController;let ot=Db(e.history,he,W.signal,Le&&Le.submission),qe;if(Le&&Le.pendingError)qe=[gy(Vt).route.id,{type:di.error,error:Le.pendingError}];else if(Le&&Le.submission&&ud(Le.submission.formMethod)){let qn=await Ce(ot,he,Le.submission,Vt,we.active,{replace:Le.replace,flushSync:Ie});if(qn.shortCircuited)return;if(qn.pendingActionResult){let[Wi,ti]=qn.pendingActionResult;if(uu(ti)&&_T(ti.error)&&ti.error.status===404){W=null,Ot(he,{matches:qn.matches,loaderData:{},errors:{[Wi]:ti.error}});return}}Vt=qn.matches||Vt,qe=qn.pendingActionResult,pt=zN(he,Le.submission),Ie=!1,we.active=!1,ot=Db(e.history,ot.url,ot.signal)}let{shortCircuited:Et,matches:_t,loaderData:Gt,errors:jn}=await Ne(ot,he,Vt,we.active,pt,Le&&Le.submission,Le&&Le.fetcherSubmission,Le&&Le.replace,Le&&Le.initialHydration===!0,Ie,qe);Et||(W=null,Ot(he,aa({matches:_t||Vt},qY(qe),{loaderData:Gt,errors:jn})))}async function Ce(le,he,Le,Ve,pt,Vt){Vt===void 0&&(Vt={}),xe();let Ie=VPe(he,Le);if(ut({navigation:Ie},{flushSync:Vt.flushSync===!0}),pt){let qe=await tr(Ve,he.pathname,le.signal);if(qe.type==="aborted")return{shortCircuited:!0};if(qe.type==="error"){let{boundaryId:Et,error:_t}=ji(he.pathname,qe);return{matches:qe.partialMatches,pendingActionResult:[Et,{type:di.error,error:_t}]}}else if(qe.matches)Ve=qe.matches;else{let{notFoundMatches:Et,error:_t,route:Gt}=hi(he.pathname);return{matches:Et,pendingActionResult:[Gt.id,{type:di.error,error:_t}]}}}let we,ot=FE(Ve,he);if(!ot.route.action&&!ot.route.lazy)we={type:di.error,error:Bo(405,{method:le.method,pathname:he.pathname,routeId:ot.route.id})};else if(we=(await Te("action",le,[ot],Ve))[0],le.signal.aborted)return{shortCircuited:!0};if($g(we)){let qe;return Vt&&Vt.replace!=null?qe=Vt.replace:qe=HY(we.response.headers.get("Location"),new URL(le.url),l)===L.location.pathname+L.location.search,await Fe(le,we,{submission:Le,replace:qe}),{shortCircuited:!0}}if(Mg(we))throw Bo(400,{type:"defer-action"});if(uu(we)){let qe=gy(Ve,ot.route.id);return(Vt&&Vt.replace)!==!0&&(U=za.Push),{matches:Ve,pendingActionResult:[qe.route.id,we]}}return{matches:Ve,pendingActionResult:[ot.route.id,we]}}async function Ne(le,he,Le,Ve,pt,Vt,Ie,we,ot,qe,Et){let _t=pt||zN(he,Vt),Gt=Vt||Ie||KY(_t),jn=!q&&(!f.v7_partialHydration||!ot);if(Ve){if(jn){let Tr=Ke(Et);ut(aa({navigation:_t},Tr!==void 0?{actionData:Tr}:{}),{flushSync:qe})}let En=await tr(Le,he.pathname,le.signal);if(En.type==="aborted")return{shortCircuited:!0};if(En.type==="error"){let{boundaryId:Tr,error:mi}=ji(he.pathname,En);return{matches:En.partialMatches,loaderData:{},errors:{[Tr]:mi}}}else if(En.matches)Le=En.matches;else{let{error:Tr,notFoundMatches:mi,route:dr}=hi(he.pathname);return{matches:mi,loaderData:{},errors:{[dr.id]:Tr}}}}let qn=o||s,[Wi,ti]=UY(e.history,L,Le,Gt,he,f.v7_partialHydration&&ot===!0,f.v7_skipActionErrorRevalidation,ne,K,G,ae,ke,Z,qn,l,Et);if(pi(En=>!(Le&&Le.some(Tr=>Tr.route.id===En))||Wi&&Wi.some(Tr=>Tr.route.id===En)),Re=++H,Wi.length===0&&ti.length===0){let En=Sn();return Ot(he,aa({matches:Le,loaderData:{},errors:Et&&uu(Et[1])?{[Et[0]]:Et[1].error}:null},qY(Et),En?{fetchers:new Map(L.fetchers)}:{}),{flushSync:qe}),{shortCircuited:!0}}if(jn){let En={};if(!Ve){En.navigation=_t;let Tr=Ke(Et);Tr!==void 0&&(En.actionData=Tr)}ti.length>0&&(En.fetchers=ct(ti)),ut(En,{flushSync:qe})}ti.forEach(En=>{ie.has(En.key)&&Ht(En.key),En.controller&&ie.set(En.key,En.controller)});let Fu=()=>ti.forEach(En=>Ht(En.key));W&&W.signal.addEventListener("abort",Fu);let{loaderResults:To,fetcherResults:$l}=await ye(L.matches,Le,Wi,ti,le);if(le.signal.aborted)return{shortCircuited:!0};W&&W.signal.removeEventListener("abort",Fu),ti.forEach(En=>ie.delete(En.key));let Fl=YY([...To,...$l]);if(Fl){if(Fl.idx>=Wi.length){let En=ti[Fl.idx-Wi.length].key;Z.add(En)}return await Fe(le,Fl.result,{replace:we}),{shortCircuited:!0}}let{loaderData:Bl,errors:Cs}=WY(L,Le,Wi,To,Et,ti,$l,Xe);Xe.forEach((En,Tr)=>{En.subscribe(mi=>{(mi||En.done)&&Xe.delete(Tr)})}),f.v7_partialHydration&&ot&&L.errors&&Object.entries(L.errors).filter(En=>{let[Tr]=En;return!Wi.some(mi=>mi.route.id===Tr)}).forEach(En=>{let[Tr,mi]=En;Cs=Object.assign(Cs||{},{[Tr]:mi})});let je=Sn(),fa=pr(Re),ih=je||fa||ti.length>0;return aa({matches:Le,loaderData:Bl,errors:Cs},ih?{fetchers:new Map(L.fetchers)}:{})}function Ke(le){if(le&&!uu(le[1]))return{[le[0]]:le[1].data};if(L.actionData)return Object.keys(L.actionData).length===0?null:L.actionData}function ct(le){return le.forEach(he=>{let Le=L.fetchers.get(he.key),Ve=oE(void 0,Le?Le.data:void 0);L.fetchers.set(he.key,Ve)}),new Map(L.fetchers)}function Je(le,he,Le,Ve){if(r)throw new Error("router.fetch() was called during the server render, but it shouldn't be. You are likely calling a useFetcher() method in the body of your component. Try moving it to a useEffect or a callback.");ie.has(le)&&Ht(le);let pt=(Ve&&Ve.unstable_flushSync)===!0,Vt=o||s,Ie=YP(L.location,L.matches,l,f.v7_prependBasename,Le,f.v7_relativeSplatPath,he,Ve==null?void 0:Ve.relative),we=kg(Vt,Ie,l),ot=Ur(we,Vt,Ie);if(ot.active&&ot.matches&&(we=ot.matches),!we){Ct(le,he,Bo(404,{pathname:Ie}),{flushSync:pt});return}let{path:qe,submission:Et,error:_t}=BY(f.v7_normalizeFormMethod,!0,Ie,Ve);if(_t){Ct(le,he,_t,{flushSync:pt});return}let Gt=FE(we,qe);if(B=(Ve&&Ve.preventScrollReset)===!0,Et&&ud(Et.formMethod)){gt(le,he,qe,Gt,we,ot.active,pt,Et);return}ke.set(le,{routeId:he,path:qe}),en(le,he,qe,Gt,we,ot.active,pt,Et)}async function gt(le,he,Le,Ve,pt,Vt,Ie,we){xe(),ke.delete(le);function ot(dr){if(!dr.route.action&&!dr.route.lazy){let Vi=Bo(405,{method:we.formMethod,pathname:Le,routeId:he});return Ct(le,he,Vi,{flushSync:Ie}),!0}return!1}if(!Vt&&ot(Ve))return;let qe=L.fetchers.get(le);Ue(le,qPe(we,qe),{flushSync:Ie});let Et=new AbortController,_t=Db(e.history,Le,Et.signal,we);if(Vt){let dr=await tr(pt,Le,_t.signal);if(dr.type==="aborted")return;if(dr.type==="error"){let{error:Vi}=ji(Le,dr);Ct(le,he,Vi,{flushSync:Ie});return}else if(dr.matches){if(pt=dr.matches,Ve=FE(pt,Le),ot(Ve))return}else{Ct(le,he,Bo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,Et);let Gt=H,qn=(await Te("action",_t,[Ve],pt))[0];if(_t.signal.aborted){ie.get(le)===Et&&ie.delete(le);return}if(f.v7_fetcherPersist&&ae.has(le)){if($g(qn)||uu(qn)){Ue(le,n0(void 0));return}}else{if($g(qn))if(ie.delete(le),Re>Gt){Ue(le,n0(void 0));return}else return Z.add(le),Ue(le,oE(we)),Fe(_t,qn,{fetcherSubmission:we});if(uu(qn)){Ct(le,he,qn.error);return}}if(Mg(qn))throw Bo(400,{type:"defer-action"});let Wi=L.navigation.location||L.location,ti=Db(e.history,Wi,Et.signal),Fu=o||s,To=L.navigation.state!=="idle"?kg(Fu,L.navigation.location,l):L.matches;fr(To,"Didn't find any matches after fetcher action");let $l=++H;Se.set(le,$l);let Fl=oE(we,qn.data);L.fetchers.set(le,Fl);let[Bl,Cs]=UY(e.history,L,To,we,Wi,!1,f.v7_skipActionErrorRevalidation,ne,K,G,ae,ke,Z,Fu,l,[Ve.route.id,qn]);Cs.filter(dr=>dr.key!==le).forEach(dr=>{let Vi=dr.key,xo=L.fetchers.get(Vi),ko=oE(void 0,xo?xo.data:void 0);L.fetchers.set(Vi,ko),ie.has(Vi)&&Ht(Vi),dr.controller&&ie.set(Vi,dr.controller)}),ut({fetchers:new Map(L.fetchers)});let je=()=>Cs.forEach(dr=>Ht(dr.key));Et.signal.addEventListener("abort",je);let{loaderResults:fa,fetcherResults:ih}=await ye(L.matches,To,Bl,Cs,ti);if(Et.signal.aborted)return;Et.signal.removeEventListener("abort",je),Se.delete(le),ie.delete(le),Cs.forEach(dr=>ie.delete(dr.key));let En=YY([...fa,...ih]);if(En){if(En.idx>=Bl.length){let dr=Cs[En.idx-Bl.length].key;Z.add(dr)}return Fe(ti,En.result)}let{loaderData:Tr,errors:mi}=WY(L,L.matches,Bl,fa,void 0,Cs,ih,Xe);if(L.fetchers.has(le)){let dr=n0(qn.data);L.fetchers.set(le,dr)}pr($l),L.navigation.state==="loading"&&$l>Re?(fr(U,"Expected pending action"),W&&W.abort(),Ot(L.navigation.location,{matches:To,loaderData:Tr,errors:mi,fetchers:new Map(L.fetchers)})):(ut({errors:mi,loaderData:VY(L.loaderData,Tr,To,mi),fetchers:new Map(L.fetchers)}),ne=!1)}async function en(le,he,Le,Ve,pt,Vt,Ie,we){let ot=L.fetchers.get(le);Ue(le,oE(we,ot?ot.data:void 0),{flushSync:Ie});let qe=new AbortController,Et=Db(e.history,Le,qe.signal);if(Vt){let qn=await tr(pt,Le,Et.signal);if(qn.type==="aborted")return;if(qn.type==="error"){let{error:Wi}=ji(Le,qn);Ct(le,he,Wi,{flushSync:Ie});return}else if(qn.matches)pt=qn.matches,Ve=FE(pt,Le);else{Ct(le,he,Bo(404,{pathname:Le}),{flushSync:Ie});return}}ie.set(le,qe);let _t=H,jn=(await Te("loader",Et,[Ve],pt))[0];if(Mg(jn)&&(jn=await Poe(jn,Et.signal,!0)||jn),ie.get(le)===qe&&ie.delete(le),!Et.signal.aborted){if(ae.has(le)){Ue(le,n0(void 0));return}if($g(jn))if(Re>_t){Ue(le,n0(void 0));return}else{Z.add(le),await Fe(Et,jn);return}if(uu(jn)){Ct(le,he,jn.error);return}fr(!Mg(jn),"Unhandled fetcher deferred data"),Ue(le,n0(jn.data))}}async function Fe(le,he,Le){let{submission:Ve,fetcherSubmission:pt,replace:Vt}=Le===void 0?{}:Le;he.response.headers.has("X-Remix-Revalidate")&&(ne=!0);let Ie=he.response.headers.get("Location");fr(Ie,"Expected a Location header on the redirect Response"),Ie=HY(Ie,new URL(le.url),l);let we=mw(L.location,Ie,{_isRedirect:!0});if(n){let jn=!1;if(he.response.headers.has("X-Remix-Reload-Document"))jn=!0;else if(z$.test(Ie)){const qn=e.history.createURL(Ie);jn=qn.origin!==t.location.origin||AT(qn.pathname,l)==null}if(jn){Vt?t.location.replace(Ie):t.location.assign(Ie);return}}W=null;let ot=Vt===!0||he.response.headers.has("X-Remix-Replace")?za.Replace:za.Push,{formMethod:qe,formAction:Et,formEncType:_t}=L.navigation;!Ve&&!pt&&qe&&Et&&_t&&(Ve=KY(L.navigation));let Gt=Ve||pt;if(APe.has(he.response.status)&&Gt&&ud(Gt.formMethod))await de(ot,we,{submission:aa({},Gt,{formAction:Ie}),preventScrollReset:B});else{let jn=zN(we,Ve);await de(ot,we,{overrideNavigation:jn,fetcherSubmission:pt,preventScrollReset:B})}}async function Te(le,he,Le,Ve){try{let pt=await MPe(u,le,he,Le,Ve,a,i);return await Promise.all(pt.map((Vt,Ie)=>{if(HPe(Vt)){let we=Vt.result;return{type:di.redirect,response:BPe(we,he,Le[Ie].route.id,Ve,l,f.v7_relativeSplatPath)}}return FPe(Vt)}))}catch(pt){return Le.map(()=>({type:di.error,error:pt}))}}async function ye(le,he,Le,Ve,pt){let[Vt,...Ie]=await Promise.all([Le.length?Te("loader",pt,Le,he):[],...Ve.map(we=>{if(we.matches&&we.match&&we.controller){let ot=Db(e.history,we.path,we.controller.signal);return Te("loader",ot,[we.match],we.matches).then(qe=>qe[0])}else return Promise.resolve({type:di.error,error:Bo(404,{pathname:we.path})})})]);return await Promise.all([XY(le,Le,Vt,Vt.map(()=>pt.signal),!1,L.loaderData),XY(le,Ve.map(we=>we.match),Ie,Ve.map(we=>we.controller?we.controller.signal:null),!0)]),{loaderResults:Vt,fetcherResults:Ie}}function xe(){ne=!0,K.push(...pi()),ke.forEach((le,he)=>{ie.has(he)&&(G.add(he),Ht(he))})}function Ue(le,he,Le){Le===void 0&&(Le={}),L.fetchers.set(le,he),ut({fetchers:new Map(L.fetchers)},{flushSync:(Le&&Le.flushSync)===!0})}function Ct(le,he,Le,Ve){Ve===void 0&&(Ve={});let pt=gy(L.matches,he);tt(le),ut({errors:{[pt.route.id]:Le},fetchers:new Map(L.fetchers)},{flushSync:(Ve&&Ve.flushSync)===!0})}function qt(le){return f.v7_fetcherPersist&&($e.set(le,($e.get(le)||0)+1),ae.has(le)&&ae.delete(le)),L.fetchers.get(le)||_Pe}function tt(le){let he=L.fetchers.get(le);ie.has(le)&&!(he&&he.state==="loading"&&Se.has(le))&&Ht(le),ke.delete(le),Se.delete(le),Z.delete(le),ae.delete(le),G.delete(le),L.fetchers.delete(le)}function Wt(le){if(f.v7_fetcherPersist){let he=($e.get(le)||0)-1;he<=0?($e.delete(le),ae.add(le)):$e.set(le,he)}else tt(le);ut({fetchers:new Map(L.fetchers)})}function Ht(le){let he=ie.get(le);fr(he,"Expected fetch controller: "+le),he.abort(),ie.delete(le)}function zt(le){for(let he of le){let Le=qt(he),Ve=n0(Le.data);L.fetchers.set(he,Ve)}}function Sn(){let le=[],he=!1;for(let Le of Z){let Ve=L.fetchers.get(Le);fr(Ve,"Expected fetcher: "+Le),Ve.state==="loading"&&(Z.delete(Le),le.push(Le),he=!0)}return zt(le),he}function pr(le){let he=[];for(let[Le,Ve]of Se)if(Ve0}function Mr(le,he){let Le=L.blockers.get(le)||sE;return We.get(le)!==he&&We.set(le,he),Le}function Rr(le){L.blockers.delete(le),We.delete(le)}function Yr(le,he){let Le=L.blockers.get(le)||sE;fr(Le.state==="unblocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="blocked"||Le.state==="blocked"&&he.state==="proceeding"||Le.state==="blocked"&&he.state==="unblocked"||Le.state==="proceeding"&&he.state==="unblocked","Invalid blocker state transition: "+Le.state+" -> "+he.state);let Ve=new Map(L.blockers);Ve.set(le,he),ut({blockers:Ve})}function Di(le){let{currentLocation:he,nextLocation:Le,historyAction:Ve}=le;if(We.size===0)return;We.size>1&&Av(!1,"A router only supports one blocker at a time");let pt=Array.from(We.entries()),[Vt,Ie]=pt[pt.length-1],we=L.blockers.get(Vt);if(!(we&&we.state==="proceeding")&&Ie({currentLocation:he,nextLocation:Le,historyAction:Ve}))return Vt}function hi(le){let he=Bo(404,{pathname:le}),Le=o||s,{matches:Ve,route:pt}=GY(Le);return pi(),{notFoundMatches:Ve,route:pt,error:he}}function ji(le,he){return{boundaryId:gy(he.partialMatches).route.id,error:Bo(400,{type:"route-discovery",pathname:le,message:he.error!=null&&"message"in he.error?he.error:String(he.error)})}}function pi(le){let he=[];return Xe.forEach((Le,Ve)=>{(!le||le(Ve))&&(Le.cancel(),he.push(Ve),Xe.delete(Ve))}),he}function fs(le,he,Le){if(T=le,x=he,w=Le||null,!k&&L.navigation===UN){k=!0;let Ve=Qi(L.location,L.matches);Ve!=null&&ut({restoreScrollPosition:Ve})}return()=>{T=null,x=null,w=null}}function Hi(le,he){return w&&w(le,he.map(Ve=>aPe(Ve,L.loaderData)))||le.key}function Js(le,he){if(T&&x){let Le=Hi(le,he);T[Le]=x()}}function Qi(le,he){if(T){let Le=Hi(le,he),Ve=T[Le];if(typeof Ve=="number")return Ve}return null}function Ur(le,he,Le){if(d){if(S.has(Le))return{active:!1,matches:le};if(le){if(Object.keys(le[0].params).length>0)return{active:!0,matches:Z4(he,Le,l,!0)}}else return{active:!0,matches:Z4(he,Le,l,!0)||[]}}return{active:!1,matches:null}}async function tr(le,he,Le){let Ve=le;for(;;){let pt=o==null,Vt=o||s;try{await PPe(d,he,Ve,Vt,a,i,Ye,Le)}catch(ot){return{type:"error",error:ot,partialMatches:Ve}}finally{pt&&(s=[...s])}if(Le.aborted)return{type:"aborted"};let Ie=kg(Vt,he,l);if(Ie)return Zr(he,S),{type:"success",matches:Ie};let we=Z4(Vt,he,l,!0);if(!we||Ve.length===we.length&&Ve.every((ot,qe)=>ot.route.id===we[qe].route.id))return Zr(he,S),{type:"success",matches:null};Ve=we}}function Zr(le,he){if(he.size>=O){let Le=he.values().next().value;he.delete(Le)}he.add(le)}function ze(le){a={},o=gw(le,i,void 0,a)}function nt(le,he){let Le=o==null;Ioe(le,he,o||s,a,i),Le&&(s=[...s],ut({}))}return D={get basename(){return l},get future(){return f},get state(){return L},get routes(){return s},get window(){return t},initialize:st,subscribe:jt,enableScrollRestoration:fs,navigate:yt,fetch:Je,revalidate:Ut,createHref:le=>e.history.createHref(le),encodeLocation:le=>e.history.encodeLocation(le),getFetcher:qt,deleteFetcher:Wt,dispose:Pt,getBlocker:Mr,deleteBlocker:Rr,patchRoutes:nt,_internalFetchControllers:ie,_internalActiveDeferreds:Xe,_internalSetRoutes:ze},D}function IPe(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function YP(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let d=U$(i||".",B$(l,a),AT(e.pathname,n)||e.pathname,o==="path");return i==null&&(d.search=e.search,d.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!j$(d.search)&&(d.search=d.search?d.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(d.pathname=d.pathname==="/"?n:W0([n,d.pathname])),kT(d)}function BY(e,t,n,r){if(!r||!IPe(r))return{path:n};if(r.formMethod&&!WPe(r.formMethod))return{path:n,error:Bo(405,{method:r.formMethod})};let i=()=>({path:n,error:Bo(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=Noe(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!ud(s))return i();let p=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,O)=>{let[S,T]=O;return""+g+S+"="+T+` +`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:p}}}else if(r.formEncType==="application/json"){if(!ud(s))return i();try{let p=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:p,text:void 0}}}catch{return i()}}}fr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=ZP(r.formData),u=r.formData;else if(r.body instanceof FormData)l=ZP(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=QY(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=QY(l)}catch{return i()}let d={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(ud(d.formMethod))return{path:n,submission:d};let f=ym(n);return t&&f.search&&j$(f.search)&&l.append("index",""),f.search="?"+l,{path:kT(f),submission:d}}function NPe(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 UY(e,t,n,r,i,a,s,o,l,u,d,f,p,g,O,S){let T=S?uu(S[1])?S[1].error:S[1].data:void 0,w=e.createURL(t.location),x=e.createURL(i),k=S&&uu(S[1])?S[0]:void 0,_=k?NPe(n,k):n,I=S?S[1].statusCode:void 0,N=s&&I&&I>=400,D=_.filter((U,B)=>{let{route:W}=U;if(W.lazy)return!0;if(W.loader==null)return!1;if(a)return typeof W.loader!="function"||W.loader.hydrate?!0:t.loaderData[W.id]===void 0&&(!t.errors||t.errors[W.id]===void 0);if(DPe(t.loaderData,t.matches[B],U)||l.some(ee=>ee===U.route.id))return!0;let V=t.matches[B],re=U;return zY(U,aa({currentUrl:w,currentParams:V.params,nextUrl:x,nextParams:re.params},r,{actionResult:T,actionStatus:I,defaultShouldRevalidate:N?!1:o||w.pathname+w.search===x.pathname+x.search||w.search!==x.search||Roe(V,re)}))}),L=[];return f.forEach((U,B)=>{if(a||!n.some(q=>q.route.id===U.routeId)||d.has(B))return;let W=kg(g,U.path,O);if(!W){L.push({key:B,routeId:U.routeId,path:U.path,matches:null,match:null,controller:null});return}let V=t.fetchers.get(B),re=FE(W,U.path),ee=!1;p.has(B)?ee=!1:u.has(B)?(u.delete(B),ee=!0):V&&V.state!=="idle"&&V.data===void 0?ee=o:ee=zY(re,aa({currentUrl:w,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:T,actionStatus:I,defaultShouldRevalidate:N?!1:o})),ee&&L.push({key:B,routeId:U.routeId,path:U.path,matches:W,match:re,controller:new AbortController})}),[D,L]}function DPe(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function Roe(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function zY(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function PPe(e,t,n,r,i,a,s,o){let l=[t,...n.map(u=>u.route.id)].join("-");try{let u=s.get(l);u||(u=e({path:t,matches:n,patch:(d,f)=>{o.aborted||Ioe(d,f,r,i,a)}}),s.set(l,u)),u&&jPe(u)&&await u}finally{s.delete(l)}}function Ioe(e,t,n,r,i){if(e){var a;let s=r[e];fr(s,"No route found to patch children into: routeId = "+e);let o=gw(t,i,[e,"patch",String(((a=s.children)==null?void 0:a.length)||"0")],r);s.children?s.children.push(...o):s.children=o}else{let s=gw(t,i,["patch",String(n.length||"0")],r);n.push(...s)}}async function jY(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];fr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";Av(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!rPe.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,aa({},t(i),{lazy:void 0}))}function LPe(e){return Promise.all(e.matches.map(t=>t.resolve()))}async function MPe(e,t,n,r,i,a,s,o){let l=r.reduce((f,p)=>f.add(p.route.id),new Set),u=new Set,d=await e({matches:i.map(f=>{let p=l.has(f.route.id);return aa({},f,{shouldLoad:p,resolve:O=>(u.add(f.route.id),p?$Pe(t,n,f,a,s,O,o):Promise.resolve({type:di.data,result:void 0}))})}),request:n,params:i[0].params,context:o});return i.forEach(f=>fr(u.has(f.route.id),'`match.resolve()` was not called for route id "'+f.route.id+'". You must call `match.resolve()` on every match passed to `dataStrategy` to ensure all routes are properly loaded.')),d.filter((f,p)=>l.has(i[p].route.id))}async function $Pe(e,t,n,r,i,a,s){let o,l,u=d=>{let f,p=new Promise((S,T)=>f=T);l=()=>f(),t.signal.addEventListener("abort",l);let g=S=>typeof d!="function"?Promise.reject(new Error("You cannot call the handler for a route which defines a boolean "+('"'+e+'" [routeId: '+n.route.id+"]"))):d({request:t,params:n.params,context:s},...S!==void 0?[S]:[]),O;return a?O=a(S=>g(S)):O=(async()=>{try{return{type:"data",result:await g()}}catch(S){return{type:"error",result:S}}})(),Promise.race([O,p])};try{let d=n.route[e];if(n.route.lazy)if(d){let f,[p]=await Promise.all([u(d).catch(g=>{f=g}),jY(n.route,i,r)]);if(f!==void 0)throw f;o=p}else if(await jY(n.route,i,r),d=n.route[e],d)o=await u(d);else if(e==="action"){let f=new URL(t.url),p=f.pathname+f.search;throw Bo(405,{method:t.method,pathname:p,routeId:n.route.id})}else return{type:di.data,result:void 0};else if(d)o=await u(d);else{let f=new URL(t.url),p=f.pathname+f.search;throw Bo(404,{pathname:p})}fr(o.result!==void 0,"You defined "+(e==="action"?"an action":"a loader")+" for route "+('"'+n.route.id+"\" but didn't return anything from your `"+e+"` ")+"function. Please return a value or `null`.")}catch(d){return{type:di.error,result:d}}finally{l&&t.signal.removeEventListener("abort",l)}return o}async function FPe(e){let{result:t,type:n}=e;if(Doe(t)){let u;try{let d=t.headers.get("Content-Type");d&&/\bapplication\/json\b/.test(d)?t.body==null?u=null:u=await t.json():u=await t.text()}catch(d){return{type:di.error,error:d}}return n===di.error?{type:di.error,error:new y3(t.status,t.statusText,u),statusCode:t.status,headers:t.headers}:{type:di.data,data:u,statusCode:t.status,headers:t.headers}}if(n===di.error){if(ZY(t)){var r;if(t.data instanceof Error){var i;return{type:di.error,error:t.data,statusCode:(i=t.init)==null?void 0:i.status}}t=new y3(((r=t.init)==null?void 0:r.status)||500,void 0,t.data)}return{type:di.error,error:t,statusCode:_T(t)?t.status:void 0}}if(QPe(t)){var a,s;return{type:di.deferred,deferredData:t,statusCode:(a=t.init)==null?void 0:a.status,headers:((s=t.init)==null?void 0:s.headers)&&new Headers(t.init.headers)}}if(ZY(t)){var o,l;return{type:di.data,data:t.data,statusCode:(o=t.init)==null?void 0:o.status,headers:(l=t.init)!=null&&l.headers?new Headers(t.init.headers):void 0}}return{type:di.data,data:t}}function BPe(e,t,n,r,i,a){let s=e.headers.get("Location");if(fr(s,"Redirects returned/thrown from loaders/actions must have a Location header"),!z$.test(s)){let o=r.slice(0,r.findIndex(l=>l.route.id===n)+1);s=YP(new URL(t.url),o,i,!0,s,a),e.headers.set("Location",s)}return e}function HY(e,t,n){if(z$.test(e)){let r=e,i=r.startsWith("//")?new URL(t.protocol+r):new URL(r),a=AT(i.pathname,n)!=null;if(i.origin===t.origin&&a)return i.pathname+i.search+i.hash}return e}function Db(e,t,n,r){let i=e.createURL(Noe(t)).toString(),a={signal:n};if(r&&ud(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=ZP(r.formData):a.body=r.formData}return new Request(i,a)}function ZP(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function QY(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function UPe(e,t,n,r,i,a){let s={},o=null,l,u=!1,d={},f=r&&uu(r[1])?r[1].error:void 0;return n.forEach((p,g)=>{let O=t[g].route.id;if(fr(!$g(p),"Cannot handle redirect results in processLoaderData"),uu(p)){let S=p.error;f!==void 0&&(S=f,f=void 0),o=o||{};{let T=gy(e,O);o[T.route.id]==null&&(o[T.route.id]=S)}s[O]=void 0,u||(u=!0,l=_T(p.error)?p.error.status:500),p.headers&&(d[O]=p.headers)}else Mg(p)?(i.set(O,p.deferredData),s[O]=p.deferredData.data,p.statusCode!=null&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers)):(s[O]=p.data,p.statusCode&&p.statusCode!==200&&!u&&(l=p.statusCode),p.headers&&(d[O]=p.headers))}),f!==void 0&&r&&(o={[r[0]]:f},s[r[0]]=void 0),{loaderData:s,errors:o,statusCode:l||200,loaderHeaders:d}}function WY(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=UPe(t,n,r,i,o);for(let d=0;dr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function GY(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 Bo(e,t){let{pathname:n,routeId:r,method:i,type:a,message:s}=t===void 0?{}:t,o="Unknown Server Error",l="Unknown @remix-run/router error";return e===400?(o="Bad Request",a==="route-discovery"?l='Unable to match URL "'+n+'" - the `unstable_patchRoutesOnNavigation()` '+(`function threw the following error: +`+s):i&&n&&r?l="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?l="defer() is not supported in actions":a==="invalid-body"&&(l="Unable to encode submission body")):e===403?(o="Forbidden",l='Route "'+r+'" does not match URL "'+n+'"'):e===404?(o="Not Found",l='No route matches URL "'+n+'"'):e===405&&(o="Method Not Allowed",i&&n&&r?l="You made a "+i.toUpperCase()+' request to "'+n+'" but '+('did not provide an `action` for route "'+r+'", ')+"so there is no way to handle the request.":i&&(l='Invalid request method "'+i.toUpperCase()+'"')),new y3(e||500,o,new Error(l),!0)}function YY(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if($g(n))return{result:n,idx:t}}}function Noe(e){let t=typeof e=="string"?ym(e):e;return kT(aa({},t,{hash:""}))}function zPe(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function jPe(e){return typeof e=="object"&&e!=null&&"then"in e}function HPe(e){return Doe(e.result)&&kPe.has(e.result.status)}function Mg(e){return e.type===di.deferred}function uu(e){return e.type===di.error}function $g(e){return(e&&e.type)===di.redirect}function ZY(e){return typeof e=="object"&&e!=null&&"type"in e&&"data"in e&&"init"in e&&e.type==="DataWithResponseInit"}function QPe(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 Doe(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function WPe(e){return xPe.has(e.toLowerCase())}function ud(e){return wPe.has(e.toLowerCase())}async function XY(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),d=u!=null&&!Roe(u,l)&&(a&&a[l.route.id])!==void 0;if(Mg(o)&&(i||d)){let f=r[s];fr(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Poe(o,f,i).then(p=>{p&&(n[s]=p||n[s])})}}}async function Poe(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:di.data,data:e.deferredData.unwrappedData}}catch(i){return{type:di.error,error:i}}return{type:di.data,data:e.deferredData.data}}}function j$(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function FE(e,t){let n=typeof t=="string"?ym(t).search:t.search;if(e[e.length-1].route.index&&j$(n||""))return e[e.length-1];let r=Aoe(e);return r[r.length-1]}function KY(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function zN(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 VPe(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 oE(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 qPe(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 n0(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 GPe(e,t){try{let n=e.sessionStorage.getItem(Coe);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function YPe(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(Coe,JSON.stringify(n))}catch(r){Av(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** + * React Router v6.26.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function v3(){return v3=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),M.useCallback(function(u,d){if(d===void 0&&(d={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=U$(u,JSON.parse(s),a,d.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:W0([t,f.pathname])),(d.replace?r.replace:r.push)(f,d.state,d)},[t,r,s,a,e])}const XPe=M.createContext(null);function KPe(e){let t=M.useContext(yp).outlet;return t&&M.createElement(XPe.Provider,{value:e},t)}function Om(){let{matches:e}=M.useContext(yp),t=e[e.length-1];return t?t.params:{}}function JPe(e,t,n,r){RT()||fr(!1);let{navigator:i}=M.useContext(CT),{matches:a}=M.useContext(yp),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=vm(),d;d=u;let f=d.pathname||"/",p=f;if(l!=="/"){let S=l.replace(/^\//,"").split("/");p="/"+f.replace(/^\//,"").split("/").slice(S.length).join("/")}let g=kg(e,{pathname:p});return i8e(g&&g.map(S=>Object.assign({},S,{params:Object.assign({},o,S.params),pathname:W0([l,i.encodeLocation?i.encodeLocation(S.pathname).pathname:S.pathname]),pathnameBase:S.pathnameBase==="/"?l:W0([l,i.encodeLocation?i.encodeLocation(S.pathnameBase).pathname:S.pathnameBase])})),a,n,r)}function e8e(){let e=Uoe(),t=_T(e)?e.status+" "+e.statusText:e instanceof Error?e.message:JSON.stringify(e),n=e instanceof Error?e.stack:null,i={padding:"0.5rem",backgroundColor:"rgba(200,200,200, 0.5)"};return M.createElement(M.Fragment,null,M.createElement("h2",null,"Unexpected Application Error!"),M.createElement("h3",{style:{fontStyle:"italic"}},t),n?M.createElement("pre",{style:i},n):null,null)}const t8e=M.createElement(e8e,null);class n8e extends M.Component{constructor(t){super(t),this.state={location:t.location,revalidation:t.revalidation,error:t.error}}static getDerivedStateFromError(t){return{error:t}}static getDerivedStateFromProps(t,n){return n.location!==t.location||n.revalidation!=="idle"&&t.revalidation==="idle"?{error:t.error,location:t.location,revalidation:t.revalidation}:{error:t.error!==void 0?t.error:n.error,location:n.location,revalidation:t.revalidation||n.revalidation}}componentDidCatch(t,n){console.error("React Router caught the following error during render",t,n)}render(){return this.state.error!==void 0?M.createElement(yp.Provider,{value:this.props.routeContext},M.createElement(Moe.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function r8e(e){let{routeContext:t,match:n,children:r}=e,i=M.useContext(oR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),M.createElement(yp.Provider,{value:t},r)}function i8e(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if(!n)return null;if(n.errors)e=n.matches;else if((a=r)!=null&&a.v7_partialHydration&&t.length===0&&!n.initialized&&n.matches.length>0)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let d=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id])!==void 0);d>=0||fr(!1),s=s.slice(0,Math.min(s.length,d+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let d=0;d=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((d,f,p)=>{let g,O=!1,S=null,T=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||t8e,l&&(u<0&&p===0?(O=!0,T=null):u===p&&(O=!0,T=f.route.hydrateFallbackElement||null)));let w=t.concat(s.slice(0,p+1)),x=()=>{let k;return g?k=S:O?k=T:f.route.Component?k=M.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=d,M.createElement(r8e,{match:f,routeContext:{outlet:d,matches:w,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||p===0)?M.createElement(n8e,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:w,isDataRoute:!0}}):x()},null)}var Foe=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Foe||{}),O3=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}(O3||{});function a8e(e){let t=M.useContext(oR);return t||fr(!1),t}function s8e(e){let t=M.useContext(Loe);return t||fr(!1),t}function o8e(e){let t=M.useContext(yp);return t||fr(!1),t}function Boe(e){let t=o8e(),n=t.matches[t.matches.length-1];return n.route.id||fr(!1),n.route.id}function Uoe(){var e;let t=M.useContext(Moe),n=s8e(O3.UseRouteError),r=Boe(O3.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function l8e(){let{router:e}=a8e(Foe.UseNavigateStable),t=Boe(O3.UseNavigateStable),n=M.useRef(!1);return $oe(()=>{n.current=!0}),M.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,v3({fromRouteId:t},a)))},[e,t])}function Q$(e){let{to:t,replace:n,state:r,relative:i}=e;RT()||fr(!1);let{future:a,static:s}=M.useContext(CT),{matches:o}=M.useContext(yp),{pathname:l}=vm(),u=Pu(),d=U$(t,B$(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(d);return M.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function lR(e){return KPe(e.context)}function u8e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=za.Pop,navigator:a,static:s=!1,future:o}=e;RT()&&fr(!1);let l=t.replace(/^\/*/,"/"),u=M.useMemo(()=>({basename:l,navigator:a,static:s,future:v3({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=ym(r));let{pathname:d="/",search:f="",hash:p="",state:g=null,key:O="default"}=r,S=M.useMemo(()=>{let T=AT(d,l);return T==null?null:{location:{pathname:T,search:f,hash:p,state:g,key:O},navigationType:i}},[l,d,f,p,g,O,i]);return S==null?null:M.createElement(CT.Provider,{value:u},M.createElement(H$.Provider,{children:n,value:S}))}new Promise(()=>{});function c8e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:M.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:M.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:M.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** + * React Router DOM v6.26.1 + * + * Copyright (c) Remix Software Inc. + * + * This source code is licensed under the MIT license found in the + * LICENSE.md file in the root directory of this source tree. + * + * @license MIT + */function S3(){return S3=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 d8e(e,t){let n=XP(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}const f8e="6";try{window.__reactRouterVersion=f8e}catch{}function h8e(e,t){return RPe({basename:void 0,future:S3({},void 0,{v7_prependBasename:!0}),history:ePe({window:void 0}),hydrationData:p8e(),routes:e,mapRouteProperties:c8e,unstable_dataStrategy:void 0,unstable_patchRoutesOnNavigation:void 0,window:void 0}).initialize()}function p8e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=S3({},t,{errors:m8e(t.errors)})),t}function m8e(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 y3(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const g8e=M.createContext({isTransitioning:!1}),b8e=M.createContext(new Map),y8e="startTransition",JY=fv[y8e],v8e="flushSync",eZ=nTe[v8e];function O8e(e){JY?JY(e):e()}function lE(e){eZ?eZ(e):e()}class S8e{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 E8e(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=M.useState(n.state),[s,o]=M.useState(),[l,u]=M.useState({isTransitioning:!1}),[d,f]=M.useState(),[p,g]=M.useState(),[O,S]=M.useState(),T=M.useRef(new Map),{v7_startTransition:w}=r||{},x=M.useCallback(L=>{w?O8e(L):L()},[w]),k=M.useCallback((L,U)=>{let{deletedFetchers:B,unstable_flushSync:W,unstable_viewTransitionOpts:V}=U;B.forEach(ee=>T.current.delete(ee)),L.fetchers.forEach((ee,q)=>{ee.data!==void 0&&T.current.set(q,ee.data)});let re=n.window==null||n.window.document==null||typeof n.window.document.startViewTransition!="function";if(!V||re){W?lE(()=>a(L)):x(()=>a(L));return}if(W){lE(()=>{p&&(d&&d.resolve(),p.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:V.currentLocation,nextLocation:V.nextLocation})});let ee=n.window.document.startViewTransition(()=>{lE(()=>a(L))});ee.finished.finally(()=>{lE(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})})}),lE(()=>g(ee));return}p?(d&&d.resolve(),p.skipTransition(),S({state:L,currentLocation:V.currentLocation,nextLocation:V.nextLocation})):(o(L),u({isTransitioning:!0,flushSync:!1,currentLocation:V.currentLocation,nextLocation:V.nextLocation}))},[n.window,p,d,T,x]);M.useLayoutEffect(()=>n.subscribe(k),[n,k]),M.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new S8e)},[l]),M.useEffect(()=>{if(d&&s&&n.window){let L=s,U=d.promise,B=n.window.document.startViewTransition(async()=>{x(()=>a(L)),await U});B.finished.finally(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})}),g(B)}},[x,s,d,n.window]),M.useEffect(()=>{d&&s&&i.location.key===s.location.key&&d.resolve()},[d,p,i.location,s]),M.useEffect(()=>{!l.isTransitioning&&O&&(o(O.state),u({isTransitioning:!0,flushSync:!1,currentLocation:O.currentLocation,nextLocation:O.nextLocation}),S(void 0))},[l.isTransitioning,O]),M.useEffect(()=>{},[]);let _=M.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:L=>n.navigate(L),push:(L,U,B)=>n.navigate(L,{state:U,preventScrollReset:B==null?void 0:B.preventScrollReset}),replace:(L,U,B)=>n.navigate(L,{replace:!0,state:U,preventScrollReset:B==null?void 0:B.preventScrollReset})}),[n]),I=n.basename||"/",N=M.useMemo(()=>({router:n,navigator:_,static:!1,basename:I}),[n,_,I]),D=M.useMemo(()=>({v7_relativeSplatPath:n.future.v7_relativeSplatPath}),[n.future.v7_relativeSplatPath]);return M.createElement(M.Fragment,null,M.createElement(oR.Provider,{value:N},M.createElement(Loe.Provider,{value:i},M.createElement(b8e.Provider,{value:T.current},M.createElement(g8e.Provider,{value:l},M.createElement(u8e,{basename:I,location:i.location,navigationType:i.historyAction,navigator:_,future:D},i.initialized||n.future.v7_partialHydration?M.createElement(w8e,{routes:n.routes,future:n.future,state:i}):t))))),null)}const w8e=M.memo(T8e);function T8e(e){let{routes:t,future:n,state:r}=e;return JPe(t,void 0,r,n)}var tZ;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(tZ||(tZ={}));var nZ;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(nZ||(nZ={}));function W$(e){let t=M.useRef(XP(e)),n=M.useRef(!1),r=vm(),i=M.useMemo(()=>d8e(r.search,n.current?null:t.current),[r.search]),a=Pu(),s=M.useCallback((o,l)=>{const u=XP(typeof o=="function"?o(i):o);n.current=!0,a("?"+u,l)},[a,i]);return[i,s]}function Fs(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 x8e=typeof Symbol=="function"&&Symbol.observable||"@@observable",rZ=x8e,jN=()=>Math.random().toString(36).substring(7).split("").join("."),k8e={INIT:`@@redux/INIT${jN()}`,REPLACE:`@@redux/REPLACE${jN()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${jN()}`},E3=k8e;function V$(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 q$(e,t,n){if(typeof e!="function")throw new Error(Fs(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Fs(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Fs(1));return n(q$)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function u(){s===a&&(s=new Map,a.forEach((T,w)=>{s.set(w,T)}))}function d(){if(l)throw new Error(Fs(3));return i}function f(T){if(typeof T!="function")throw new Error(Fs(4));if(l)throw new Error(Fs(5));let w=!0;u();const x=o++;return s.set(x,T),function(){if(w){if(l)throw new Error(Fs(6));w=!1,u(),s.delete(x),a=null}}}function p(T){if(!V$(T))throw new Error(Fs(7));if(typeof T.type>"u")throw new Error(Fs(8));if(typeof T.type!="string")throw new Error(Fs(17));if(l)throw new Error(Fs(9));try{l=!0,i=r(i,T)}finally{l=!1}return(a=s).forEach(x=>{x()}),T}function g(T){if(typeof T!="function")throw new Error(Fs(10));r=T,p({type:E3.REPLACE})}function O(){const T=f;return{subscribe(w){if(typeof w!="object"||w===null)throw new Error(Fs(11));function x(){const _=w;_.next&&_.next(d())}return x(),{unsubscribe:T(x)}},[rZ](){return this}}}return p({type:E3.INIT}),{dispatch:p,subscribe:f,getState:d,replaceReducer:g,[rZ]:O}}function A8e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:E3.INIT})>"u")throw new Error(Fs(12));if(typeof n(void 0,{type:E3.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Fs(13))})}function zoe(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error(Fs(14));u[f]=O,l=l||O!==g}return l=l||r.length!==Object.keys(s).length,l?u:s}}function w3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function _8e(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Fs(15))};const s={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},o=e.map(l=>l(s));return a=w3(...o)(i.dispatch),{...i,dispatch:a}}}function C8e(e){return V$(e)&&"type"in e&&typeof e.type=="string"}var joe=Symbol.for("immer-nothing"),iZ=Symbol.for("immer-draftable"),Au=Symbol.for("immer-state");function md(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var _v=Object.getPrototypeOf;function y1(e){return!!e&&!!e[Au]}function sp(e){var t;return e?Hoe(e)||Array.isArray(e)||!!e[iZ]||!!((t=e.constructor)!=null&&t[iZ])||cR(e)||dR(e):!1}var R8e=Object.prototype.constructor.toString();function Hoe(e){if(!e||typeof e!="object")return!1;const t=_v(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)===R8e}function T3(e,t){uR(e)===0?Reflect.ownKeys(e).forEach(n=>{t(n,e[n],e)}):e.forEach((n,r)=>t(r,n,e))}function uR(e){const t=e[Au];return t?t.type_:Array.isArray(e)?1:cR(e)?2:dR(e)?3:0}function KP(e,t){return uR(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function Qoe(e,t,n){const r=uR(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function I8e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function cR(e){return e instanceof Map}function dR(e){return e instanceof Set}function Tg(e){return e.copy_||e.base_}function JP(e,t){if(cR(e))return new Map(e);if(dR(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);const n=Hoe(e);if(t===!0||t==="class_only"&&!n){const r=Object.getOwnPropertyDescriptors(e);delete r[Au];let i=Reflect.ownKeys(r);for(let a=0;a1&&(e.set=e.add=e.clear=e.delete=N8e),Object.freeze(e),t&&Object.entries(e).forEach(([n,r])=>G$(r,!0))),e}function N8e(){md(2)}function fR(e){return Object.isFrozen(e)}var D8e={};function v1(e){const t=D8e[e];return t||md(0,e),t}var bw;function Woe(){return bw}function P8e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function aZ(e,t){t&&(v1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function e8(e){t8(e),e.drafts_.forEach(L8e),e.drafts_=null}function t8(e){e===bw&&(bw=e.parent_)}function sZ(e){return bw=P8e(bw,e)}function L8e(e){const t=e[Au];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function oZ(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[Au].modified_&&(e8(t),md(4)),sp(e)&&(e=x3(t,e),t.parent_||k3(t,e)),t.patches_&&v1("Patches").generateReplacementPatches_(n[Au].base_,e,t.patches_,t.inversePatches_)):e=x3(t,n,[]),e8(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==joe?e:void 0}function x3(e,t,n){if(fR(t))return t;const r=t[Au];if(!r)return T3(t,(i,a)=>lZ(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return k3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),T3(a,(o,l)=>lZ(e,r,i,o,l,n,s)),k3(e,i,!1),n&&e.patches_&&v1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function lZ(e,t,n,r,i,a,s){if(y1(i)){const o=a&&t&&t.type_!==3&&!KP(t.assigned_,r)?a.concat(r):void 0,l=x3(e,i,o);if(Qoe(n,r,l),y1(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(sp(i)&&!fR(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;x3(e,i),(!t||!t.scope_.parent_)&&typeof r!="symbol"&&Object.prototype.propertyIsEnumerable.call(n,r)&&k3(e,i)}}function k3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&G$(t,n)}function M8e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:Woe(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=Y$;n&&(i=[r],a=yw);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var Y$={get(e,t){if(t===Au)return e;const n=Tg(e);if(!KP(n,t))return $8e(e,n,t);const r=n[t];return e.finalized_||!sp(r)?r:r===HN(e.base_,t)?(QN(e),e.copy_[t]=r8(r,e)):r},has(e,t){return t in Tg(e)},ownKeys(e){return Reflect.ownKeys(Tg(e))},set(e,t,n){const r=Voe(Tg(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=HN(Tg(e),t),a=i==null?void 0:i[Au];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(I8e(n,i)&&(n!==void 0||KP(e.base_,t)))return!0;QN(e),n8(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 HN(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,QN(e),n8(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Tg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){md(11)},getPrototypeOf(e){return _v(e.base_)},setPrototypeOf(){md(12)}},yw={};T3(Y$,(e,t)=>{yw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});yw.deleteProperty=function(e,t){return yw.set.call(this,e,t,void 0)};yw.set=function(e,t,n){return Y$.set.call(this,e[0],t,n,e[0])};function HN(e,t){const n=e[Au];return(n?Tg(n):e)[t]}function $8e(e,t,n){var i;const r=Voe(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function Voe(e,t){if(!(t in e))return;let n=_v(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=_v(n)}}function n8(e){e.modified_||(e.modified_=!0,e.parent_&&n8(e.parent_))}function QN(e){e.copy_||(e.copy_=JP(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var F8e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...u){return s.produce(l,d=>n.call(this,d,...u))}}typeof n!="function"&&md(6),r!==void 0&&typeof r!="function"&&md(7);let i;if(sp(t)){const a=sZ(this),s=r8(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?e8(a):t8(a)}return aZ(a,r),oZ(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===joe&&(i=void 0),this.autoFreeze_&&G$(i,!0),r){const a=[],s=[];v1("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else md(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){sp(e)||md(8),y1(e)&&(e=B8e(e));const t=sZ(this),n=r8(e,void 0);return n[Au].isManual_=!0,t8(t),n}finishDraft(e,t){const n=e&&e[Au];(!n||!n.isManual_)&&md(9);const{scope_:r}=n;return aZ(r,t),oZ(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=v1("Patches").applyPatches_;return y1(e)?r(e,t):this.produce(e,i=>r(i,t))}};function r8(e,t){const n=cR(e)?v1("MapSet").proxyMap_(e,t):dR(e)?v1("MapSet").proxySet_(e,t):M8e(e,t);return(t?t.scope_:Woe()).drafts_.push(n),n}function B8e(e){return y1(e)||md(10,e),qoe(e)}function qoe(e){if(!sp(e)||fR(e))return e;const t=e[Au];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=JP(e,t.scope_.immer_.useStrictShallowCopy_)}else n=JP(e,!0);return T3(n,(r,i)=>{Qoe(n,r,qoe(i))}),t&&(t.finalized_=!1),n}var _u=new F8e,Goe=_u.produce;_u.produceWithPatches.bind(_u);_u.setAutoFreeze.bind(_u);_u.setUseStrictShallowCopy.bind(_u);_u.applyPatches.bind(_u);_u.createDraft.bind(_u);_u.finishDraft.bind(_u);function Yoe(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var U8e=Yoe(),z8e=Yoe,j8e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?w3:w3.apply(null,arguments)};function uZ(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Sd(0));return{type:e,payload:i.payload,..."meta"in i&&{meta:i.meta},..."error"in i&&{error:i.error}}}return{type:e,payload:r[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=r=>C8e(r)&&r.type===e,n}var Zoe=class BE extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,BE.prototype)}static get[Symbol.species](){return BE}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new BE(...t[0].concat(this)):new BE(...t.concat(this))}};function cZ(e){return sp(e)?Goe(e,()=>{}):e}function dZ(e,t,n){if(e.has(t)){let i=e.get(t);return n.update&&(i=n.update(i,t,e),e.set(t,i)),i}if(!n.insert)throw new Error(Sd(10));const r=n.insert(t,e);return e.set(t,r),r}function H8e(e){return typeof e=="boolean"}var Q8e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new Zoe;return n&&(H8e(n)?s.push(U8e):s.push(z8e(n.extraArgument))),s},W8e="RTK_autoBatch",Xoe=e=>t=>{setTimeout(t,e)},V8e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Xoe(10),q8e=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?V8e:e.type==="callback"?e.queueNotification:Xoe(e.timeout),u=()=>{s=!1,a&&(a=!1,o.forEach(d=>d()))};return Object.assign({},r,{subscribe(d){const f=()=>i&&d(),p=r.subscribe(f);return o.add(d),()=>{p(),o.delete(d)}},dispatch(d){var f;try{return i=!((f=d==null?void 0:d.meta)!=null&&f[W8e]),a=!i,a&&(s||(s=!0,l(u))),r.dispatch(d)}finally{i=!0}}})},G8e=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new Zoe(e);return r&&i.push(q8e(typeof r=="object"?r:void 0)),i};function Y8e(e){const t=Q8e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(V$(n))o=zoe(n);else throw new Error(Sd(1));let l;typeof r=="function"?l=r(t):l=t();let u=w3;i&&(u=j8e({trace:!1,...typeof i=="object"&&i}));const d=_8e(...l),f=G8e(d);let p=typeof s=="function"?s(f):f();const g=u(...p);return q$(o,a,g)}function Koe(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Sd(28));if(o in t)throw new Error(Sd(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function Z8e(e){return typeof e=="function"}function X8e(e,t){let[n,r,i]=Koe(t),a;if(Z8e(e))a=()=>cZ(e());else{const o=cZ(e);a=()=>o}function s(o=a(),l){let u=[n[l.type],...r.filter(({matcher:d})=>d(l)).map(({reducer:d})=>d)];return u.filter(d=>!!d).length===0&&(u=[i]),u.reduce((d,f)=>{if(f)if(y1(d)){const g=f(d,l);return g===void 0?d:g}else{if(sp(d))return Goe(d,p=>f(p,l));{const p=f(d,l);if(p===void 0){if(d===null)return d;throw new Error(Sd(9))}return p}}return d},o)}return s.getInitialState=a,s}var K8e=Symbol.for("rtk-slice-createasyncthunk");function J8e(e,t){return`${e}/${t}`}function eLe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[K8e];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Sd(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(nLe()):i.reducers)||{},l=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(k,_){const I=typeof k=="string"?k:k.type;if(!I)throw new Error(Sd(12));if(I in u.sliceCaseReducersByType)throw new Error(Sd(13));return u.sliceCaseReducersByType[I]=_,d},addMatcher(k,_){return u.sliceMatchers.push({matcher:k,reducer:_}),d},exposeAction(k,_){return u.actionCreators[k]=_,d},exposeCaseReducer(k,_){return u.sliceCaseReducersByName[k]=_,d}};l.forEach(k=>{const _=o[k],I={reducerName:k,type:J8e(a,k),createNotation:typeof i.reducers=="function"};iLe(_)?sLe(I,_,d,t):rLe(I,_,d)});function f(){const[k={},_=[],I=void 0]=typeof i.extraReducers=="function"?Koe(i.extraReducers):[i.extraReducers],N={...k,...u.sliceCaseReducersByType};return X8e(i.initialState,D=>{for(let L in N)D.addCase(L,N[L]);for(let L of u.sliceMatchers)D.addMatcher(L.matcher,L.reducer);for(let L of _)D.addMatcher(L.matcher,L.reducer);I&&D.addDefaultCase(I)})}const p=k=>k,g=new Map;let O;function S(k,_){return O||(O=f()),O(k,_)}function T(){return O||(O=f()),O.getInitialState()}function w(k,_=!1){function I(D){let L=D[k];return typeof L>"u"&&_&&(L=T()),L}function N(D=p){const L=dZ(g,_,{insert:()=>new WeakMap});return dZ(L,D,{insert:()=>{const U={};for(const[B,W]of Object.entries(i.selectors??{}))U[B]=tLe(W,D,T,_);return U}})}return{reducerPath:k,getSelectors:N,get selectors(){return N(I)},selectSlice:I}}const x={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:T,...w(s),injectInto(k,{reducerPath:_,...I}={}){const N=_??s;return k.inject({reducerPath:N,reducer:S},I),{...x,...w(N,!0)}}};return x}}function tLe(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var $1=eLe();function nLe(){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 rLe({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!aLe(r))throw new Error(Sd(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?uZ(e,s):uZ(e))}function iLe(e){return e._reducerDefinitionType==="asyncThunk"}function aLe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function sLe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Sd(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:d}=n,f=i(e,a,d);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),o&&r.addCase(f.pending,o),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||wA,pending:o||wA,rejected:l||wA,settled:u||wA})}function wA(){}function Sd(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}const oLe={theme:"default",drawerOpen:!0},Joe=$1({name:"editor",initialState:oLe,reducers:{setTheme:(e,t)=>{e.theme=t.payload},setDrawerOpen:(e,t)=>{e.drawerOpen=t.payload}}}),{setTheme:ele,setDrawerOpen:lLe}=Joe.actions,Z$=e=>e.config,uLe=Joe.reducer;function tle(e,t){return function(){return e.apply(t,arguments)}}const{toString:cLe}=Object.prototype,{getPrototypeOf:X$}=Object,hR=(e=>t=>{const n=cLe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Dd=e=>(e=e.toLowerCase(),t=>hR(t)===e),pR=e=>t=>typeof t===e,{isArray:dO}=Array,vw=pR("undefined");function dLe(e){return e!==null&&!vw(e)&&e.constructor!==null&&!vw(e.constructor)&&Tu(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const nle=Dd("ArrayBuffer");function fLe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&nle(e.buffer),t}const hLe=pR("string"),Tu=pR("function"),rle=pR("number"),mR=e=>e!==null&&typeof e=="object",pLe=e=>e===!0||e===!1,X4=e=>{if(hR(e)!=="object")return!1;const t=X$(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},mLe=Dd("Date"),gLe=Dd("File"),bLe=Dd("Blob"),yLe=Dd("FileList"),vLe=e=>mR(e)&&Tu(e.pipe),OLe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||Tu(e.append)&&((t=hR(e))==="formdata"||t==="object"&&Tu(e.toString)&&e.toString()==="[object FormData]"))},SLe=Dd("URLSearchParams"),[ELe,wLe,TLe,xLe]=["ReadableStream","Request","Response","Headers"].map(Dd),kLe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function IT(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),dO(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const Fg=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,ale=e=>!vw(e)&&e!==Fg;function i8(){const{caseless:e}=ale(this)&&this||{},t={},n=(r,i)=>{const a=e&&ile(t,i)||i;X4(t[a])&&X4(r)?t[a]=i8(t[a],r):X4(r)?t[a]=i8({},r):dO(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(IT(t,(i,a)=>{n&&Tu(i)?e[a]=tle(i,n):e[a]=i},{allOwnKeys:r}),e),_Le=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),CLe=(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)},RLe=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&X$(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},ILe=(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},NLe=e=>{if(!e)return null;if(dO(e))return e;let t=e.length;if(!rle(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},DLe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&X$(Uint8Array)),PLe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},LLe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},MLe=Dd("HTMLFormElement"),$Le=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),fZ=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),FLe=Dd("RegExp"),sle=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};IT(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},BLe=e=>{sle(e,(t,n)=>{if(Tu(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(Tu(r)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+n+"'")})}})},ULe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return dO(e)?r(e):r(String(e).split(t)),n},zLe=()=>{},jLe=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t,WN="abcdefghijklmnopqrstuvwxyz",hZ="0123456789",ole={DIGIT:hZ,ALPHA:WN,ALPHA_DIGIT:WN+WN.toUpperCase()+hZ},HLe=(e=16,t=ole.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function QLe(e){return!!(e&&Tu(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const WLe=e=>{const t=new Array(10),n=(r,i)=>{if(mR(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=dO(r)?[]:{};return IT(r,(s,o)=>{const l=n(s,i+1);!vw(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},VLe=Dd("AsyncFunction"),qLe=e=>e&&(mR(e)||Tu(e))&&Tu(e.then)&&Tu(e.catch),lle=((e,t)=>e?setImmediate:t?((n,r)=>(Fg.addEventListener("message",({source:i,data:a})=>{i===Fg&&a===n&&r.length&&r.shift()()},!1),i=>{r.push(i),Fg.postMessage(n,"*")}))(`axios@${Math.random()}`,[]):n=>setTimeout(n))(typeof setImmediate=="function",Tu(Fg.postMessage)),GLe=typeof queueMicrotask<"u"?queueMicrotask.bind(Fg):typeof process<"u"&&process.nextTick||lle,rt={isArray:dO,isArrayBuffer:nle,isBuffer:dLe,isFormData:OLe,isArrayBufferView:fLe,isString:hLe,isNumber:rle,isBoolean:pLe,isObject:mR,isPlainObject:X4,isReadableStream:ELe,isRequest:wLe,isResponse:TLe,isHeaders:xLe,isUndefined:vw,isDate:mLe,isFile:gLe,isBlob:bLe,isRegExp:FLe,isFunction:Tu,isStream:vLe,isURLSearchParams:SLe,isTypedArray:DLe,isFileList:yLe,forEach:IT,merge:i8,extend:ALe,trim:kLe,stripBOM:_Le,inherits:CLe,toFlatObject:RLe,kindOf:hR,kindOfTest:Dd,endsWith:ILe,toArray:NLe,forEachEntry:PLe,matchAll:LLe,isHTMLForm:MLe,hasOwnProperty:fZ,hasOwnProp:fZ,reduceDescriptors:sle,freezeMethods:BLe,toObjectSet:ULe,toCamelCase:$Le,noop:zLe,toFiniteNumber:jLe,findKey:ile,global:Fg,isContextDefined:ale,ALPHABET:ole,generateString:HLe,isSpecCompliantForm:QLe,toJSONObject:WLe,isAsyncFn:VLe,isThenable:qLe,setImmediate:lle,asap:GLe};function Jn(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)}rt.inherits(Jn,Error,{toJSON:function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:rt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const ule=Jn.prototype,cle={};["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=>{cle[e]={value:e}});Object.defineProperties(Jn,cle);Object.defineProperty(ule,"isAxiosError",{value:!0});Jn.from=(e,t,n,r,i,a)=>{const s=Object.create(ule);return rt.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Jn.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const YLe=null;function a8(e){return rt.isPlainObject(e)||rt.isArray(e)}function dle(e){return rt.endsWith(e,"[]")?e.slice(0,-2):e}function pZ(e,t,n){return e?e.concat(t).map(function(i,a){return i=dle(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function ZLe(e){return rt.isArray(e)&&!e.some(a8)}const XLe=rt.toFlatObject(rt,{},null,function(t){return/^is[A-Z]/.test(t)});function gR(e,t,n){if(!rt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=rt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,T){return!rt.isUndefined(T[S])});const r=n.metaTokens,i=n.visitor||d,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&rt.isSpecCompliantForm(t);if(!rt.isFunction(i))throw new TypeError("visitor must be a function");function u(O){if(O===null)return"";if(rt.isDate(O))return O.toISOString();if(!l&&rt.isBlob(O))throw new Jn("Blob is not supported. Use a Buffer instead.");return rt.isArrayBuffer(O)||rt.isTypedArray(O)?l&&typeof Blob=="function"?new Blob([O]):Buffer.from(O):O}function d(O,S,T){let w=O;if(O&&!T&&typeof O=="object"){if(rt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),O=JSON.stringify(O);else if(rt.isArray(O)&&ZLe(O)||(rt.isFileList(O)||rt.endsWith(S,"[]"))&&(w=rt.toArray(O)))return S=dle(S),w.forEach(function(k,_){!(rt.isUndefined(k)||k===null)&&t.append(s===!0?pZ([S],_,a):s===null?S:S+"[]",u(k))}),!1}return a8(O)?!0:(t.append(pZ(T,S,a),u(O)),!1)}const f=[],p=Object.assign(XLe,{defaultVisitor:d,convertValue:u,isVisitable:a8});function g(O,S){if(!rt.isUndefined(O)){if(f.indexOf(O)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(O),rt.forEach(O,function(w,x){(!(rt.isUndefined(w)||w===null)&&i.call(t,w,rt.isString(x)?x.trim():x,S,p))===!0&&g(w,S?S.concat(x):[x])}),f.pop()}}if(!rt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function mZ(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function K$(e,t){this._pairs=[],e&&gR(e,this,t)}const fle=K$.prototype;fle.append=function(t,n){this._pairs.push([t,n])};fle.toString=function(t){const n=t?function(r){return t.call(this,r,mZ)}:mZ;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function KLe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function hle(e,t,n){if(!t)return e;const r=n&&n.encode||KLe,i=n&&n.serialize;let a;if(i?a=i(t,n):a=rt.isURLSearchParams(t)?t.toString():new K$(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class gZ{constructor(){this.handlers=[]}use(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){rt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const ple={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},JLe=typeof URLSearchParams<"u"?URLSearchParams:K$,eMe=typeof FormData<"u"?FormData:null,tMe=typeof Blob<"u"?Blob:null,nMe={isBrowser:!0,classes:{URLSearchParams:JLe,FormData:eMe,Blob:tMe},protocols:["http","https","file","blob","url","data"]},J$=typeof window<"u"&&typeof document<"u",rMe=(e=>J$&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),iMe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",aMe=J$&&window.location.href||"http://localhost",sMe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:J$,hasStandardBrowserEnv:rMe,hasStandardBrowserWebWorkerEnv:iMe,origin:aMe},Symbol.toStringTag,{value:"Module"})),Ed={...sMe,...nMe};function oMe(e,t){return gR(e,new Ed.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Ed.isNode&&rt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function lMe(e){return rt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function uMe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&rt.isArray(i)?i.length:s,l?(rt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!rt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&rt.isArray(i[s])&&(i[s]=uMe(i[s])),!o)}if(rt.isFormData(e)&&rt.isFunction(e.entries)){const n={};return rt.forEachEntry(e,(r,i)=>{t(lMe(r),i,n,0)}),n}return null}function cMe(e,t,n){if(rt.isString(e))try{return(t||JSON.parse)(e),rt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const NT={transitional:ple,adapter:["xhr","http","fetch"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=rt.isObject(t);if(a&&rt.isHTMLForm(t)&&(t=new FormData(t)),rt.isFormData(t))return i?JSON.stringify(mle(t)):t;if(rt.isArrayBuffer(t)||rt.isBuffer(t)||rt.isStream(t)||rt.isFile(t)||rt.isBlob(t)||rt.isReadableStream(t))return t;if(rt.isArrayBufferView(t))return t.buffer;if(rt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return oMe(t,this.formSerializer).toString();if((o=rt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return gR(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),cMe(t)):t}],transformResponse:[function(t){const n=this.transitional||NT.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(rt.isResponse(t)||rt.isReadableStream(t))return t;if(t&&rt.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Jn.from(o,Jn.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Ed.classes.FormData,Blob:Ed.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};rt.forEach(["delete","get","head","post","put","patch"],e=>{NT.headers[e]={}});const dMe=rt.toObjectSet(["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"]),fMe=e=>{const t={};let n,r,i;return e&&e.split(` +`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&dMe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},bZ=Symbol("internals");function uE(e){return e&&String(e).trim().toLowerCase()}function K4(e){return e===!1||e==null?e:rt.isArray(e)?e.map(K4):String(e)}function hMe(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 pMe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function VN(e,t,n,r,i){if(rt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!rt.isString(t)){if(rt.isString(r))return t.indexOf(r)!==-1;if(rt.isRegExp(r))return r.test(t)}}function mMe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function gMe(e,t){const n=rt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let Dl=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const d=uE(l);if(!d)throw new Error("header name must be a non-empty string");const f=rt.findKey(i,d);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=K4(o))}const s=(o,l)=>rt.forEach(o,(u,d)=>a(u,d,l));if(rt.isPlainObject(t)||t instanceof this.constructor)s(t,n);else if(rt.isString(t)&&(t=t.trim())&&!pMe(t))s(fMe(t),n);else if(rt.isHeaders(t))for(const[o,l]of t.entries())a(l,o,r);else t!=null&&a(n,t,r);return this}get(t,n){if(t=uE(t),t){const r=rt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return hMe(i);if(rt.isFunction(n))return n.call(this,i,r);if(rt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=uE(t),t){const r=rt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||VN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=uE(s),s){const o=rt.findKey(r,s);o&&(!n||VN(r,r[o],o,n))&&(delete r[o],i=!0)}}return rt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||VN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return rt.forEach(this,(i,a)=>{const s=rt.findKey(r,a);if(s){n[s]=K4(i),delete n[a];return}const o=t?mMe(a):String(a).trim();o!==a&&delete n[a],n[o]=K4(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return rt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&rt.isArray(r)?r.join(", "):r)}),n}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,n])=>t+": "+n).join(` +`)}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...n){const r=new this(t);return n.forEach(i=>r.set(i)),r}static accessor(t){const r=(this[bZ]=this[bZ]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=uE(s);r[o]||(gMe(i,s),r[o]=!0)}return rt.isArray(t)?t.forEach(a):a(t),this}};Dl.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);rt.reduceDescriptors(Dl.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});rt.freezeMethods(Dl);function qN(e,t){const n=this||NT,r=t||n,i=Dl.from(r.headers);let a=r.data;return rt.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function gle(e){return!!(e&&e.__CANCEL__)}function fO(e,t,n){Jn.call(this,e??"canceled",Jn.ERR_CANCELED,t,n),this.name="CanceledError"}rt.inherits(fO,Jn,{__CANCEL__:!0});function ble(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Jn("Request failed with status code "+n.status,[Jn.ERR_BAD_REQUEST,Jn.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}function bMe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function yMe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),d=r[a];s||(s=u),n[i]=l,r[i]=u;let f=a,p=0;for(;f!==i;)p+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s{n=d,i=null,a&&(clearTimeout(a),a=null),e.apply(null,u)};return[(...u)=>{const d=Date.now(),f=d-n;f>=r?s(u,d):(i=u,a||(a=setTimeout(()=>{a=null,s(i)},r-f)))},()=>i&&s(i)]}const A3=(e,t,n=3)=>{let r=0;const i=yMe(50,250);return vMe(a=>{const s=a.loaded,o=a.lengthComputable?a.total:void 0,l=s-r,u=i(l),d=s<=o;r=s;const f={loaded:s,total:o,progress:o?s/o:void 0,bytes:l,rate:u||void 0,estimated:u&&o&&d?(o-s)/u:void 0,event:a,lengthComputable:o!=null,[t?"download":"upload"]:!0};e(f)},n)},yZ=(e,t)=>{const n=e!=null;return[r=>t[0]({lengthComputable:n,total:e,loaded:r}),t[1]]},vZ=e=>(...t)=>rt.asap(()=>e(...t)),OMe=Ed.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=rt.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}(),SMe=Ed.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];rt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),rt.isString(r)&&s.push("path="+r),rt.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function EMe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function wMe(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function yle(e,t){return e&&!EMe(t)?wMe(e,t):t}const OZ=e=>e instanceof Dl?{...e}:e;function O1(e,t){t=t||{};const n={};function r(u,d,f){return rt.isPlainObject(u)&&rt.isPlainObject(d)?rt.merge.call({caseless:f},u,d):rt.isPlainObject(d)?rt.merge({},d):rt.isArray(d)?d.slice():d}function i(u,d,f){if(rt.isUndefined(d)){if(!rt.isUndefined(u))return r(void 0,u,f)}else return r(u,d,f)}function a(u,d){if(!rt.isUndefined(d))return r(void 0,d)}function s(u,d){if(rt.isUndefined(d)){if(!rt.isUndefined(u))return r(void 0,u)}else return r(void 0,d)}function o(u,d,f){if(f in t)return r(u,d);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,d)=>i(OZ(u),OZ(d),!0)};return rt.forEach(Object.keys(Object.assign({},e,t)),function(d){const f=l[d]||i,p=f(e[d],t[d],d);rt.isUndefined(p)&&f!==o||(n[d]=p)}),n}const vle=e=>{const t=O1({},e);let{data:n,withXSRFToken:r,xsrfHeaderName:i,xsrfCookieName:a,headers:s,auth:o}=t;t.headers=s=Dl.from(s),t.url=hle(yle(t.baseURL,t.url),e.params,e.paramsSerializer),o&&s.set("Authorization","Basic "+btoa((o.username||"")+":"+(o.password?unescape(encodeURIComponent(o.password)):"")));let l;if(rt.isFormData(n)){if(Ed.hasStandardBrowserEnv||Ed.hasStandardBrowserWebWorkerEnv)s.setContentType(void 0);else if((l=s.getContentType())!==!1){const[u,...d]=l?l.split(";").map(f=>f.trim()).filter(Boolean):[];s.setContentType([u||"multipart/form-data",...d].join("; "))}}if(Ed.hasStandardBrowserEnv&&(r&&rt.isFunction(r)&&(r=r(t)),r||r!==!1&&OMe(t.url))){const u=i&&a&&SMe.read(a);u&&s.set(i,u)}return t},TMe=typeof XMLHttpRequest<"u",xMe=TMe&&function(e){return new Promise(function(n,r){const i=vle(e);let a=i.data;const s=Dl.from(i.headers).normalize();let{responseType:o,onUploadProgress:l,onDownloadProgress:u}=i,d,f,p,g,O;function S(){g&&g(),O&&O(),i.cancelToken&&i.cancelToken.unsubscribe(d),i.signal&&i.signal.removeEventListener("abort",d)}let T=new XMLHttpRequest;T.open(i.method.toUpperCase(),i.url,!0),T.timeout=i.timeout;function w(){if(!T)return;const k=Dl.from("getAllResponseHeaders"in T&&T.getAllResponseHeaders()),I={data:!o||o==="text"||o==="json"?T.responseText:T.response,status:T.status,statusText:T.statusText,headers:k,config:e,request:T};ble(function(D){n(D),S()},function(D){r(D),S()},I),T=null}"onloadend"in T?T.onloadend=w:T.onreadystatechange=function(){!T||T.readyState!==4||T.status===0&&!(T.responseURL&&T.responseURL.indexOf("file:")===0)||setTimeout(w)},T.onabort=function(){T&&(r(new Jn("Request aborted",Jn.ECONNABORTED,e,T)),T=null)},T.onerror=function(){r(new Jn("Network Error",Jn.ERR_NETWORK,e,T)),T=null},T.ontimeout=function(){let _=i.timeout?"timeout of "+i.timeout+"ms exceeded":"timeout exceeded";const I=i.transitional||ple;i.timeoutErrorMessage&&(_=i.timeoutErrorMessage),r(new Jn(_,I.clarifyTimeoutError?Jn.ETIMEDOUT:Jn.ECONNABORTED,e,T)),T=null},a===void 0&&s.setContentType(null),"setRequestHeader"in T&&rt.forEach(s.toJSON(),function(_,I){T.setRequestHeader(I,_)}),rt.isUndefined(i.withCredentials)||(T.withCredentials=!!i.withCredentials),o&&o!=="json"&&(T.responseType=i.responseType),u&&([p,O]=A3(u,!0),T.addEventListener("progress",p)),l&&T.upload&&([f,g]=A3(l),T.upload.addEventListener("progress",f),T.upload.addEventListener("loadend",g)),(i.cancelToken||i.signal)&&(d=k=>{T&&(r(!k||k.type?new fO(null,e,T):k),T.abort(),T=null)},i.cancelToken&&i.cancelToken.subscribe(d),i.signal&&(i.signal.aborted?d():i.signal.addEventListener("abort",d)));const x=bMe(i.url);if(x&&Ed.protocols.indexOf(x)===-1){r(new Jn("Unsupported protocol "+x+":",Jn.ERR_BAD_REQUEST,e));return}T.send(a||null)})},kMe=(e,t)=>{let n=new AbortController,r;const i=function(l){if(!r){r=!0,s();const u=l instanceof Error?l:this.reason;n.abort(u instanceof Jn?u:new fO(u instanceof Error?u.message:u))}};let a=t&&setTimeout(()=>{i(new Jn(`timeout ${t} of ms exceeded`,Jn.ETIMEDOUT))},t);const s=()=>{e&&(a&&clearTimeout(a),a=null,e.forEach(l=>{l&&(l.removeEventListener?l.removeEventListener("abort",i):l.unsubscribe(i))}),e=null)};e.forEach(l=>l&&l.addEventListener&&l.addEventListener("abort",i));const{signal:o}=n;return o.unsubscribe=s,[o,()=>{a&&clearTimeout(a),a=null}]},AMe=function*(e,t){let n=e.byteLength;if(!t||n{const a=_Me(e,t,i);let s=0,o,l=u=>{o||(o=!0,r&&r(u))};return new ReadableStream({async pull(u){try{const{done:d,value:f}=await a.next();if(d){l(),u.close();return}let p=f.byteLength;if(n){let g=s+=p;n(g)}u.enqueue(new Uint8Array(f))}catch(d){throw l(d),d}},cancel(u){return l(u),a.return()}},{highWaterMark:2})},bR=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ole=bR&&typeof ReadableStream=="function",s8=bR&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):async e=>new Uint8Array(await new Response(e).arrayBuffer())),Sle=(e,...t)=>{try{return!!e(...t)}catch{return!1}},CMe=Ole&&Sle(()=>{let e=!1;const t=new Request(Ed.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),EZ=64*1024,o8=Ole&&Sle(()=>rt.isReadableStream(new Response("").body)),_3={stream:o8&&(e=>e.body)};bR&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!_3[t]&&(_3[t]=rt.isFunction(e[t])?n=>n[t]():(n,r)=>{throw new Jn(`Response type '${t}' is not supported`,Jn.ERR_NOT_SUPPORT,r)})})})(new Response);const RMe=async e=>{if(e==null)return 0;if(rt.isBlob(e))return e.size;if(rt.isSpecCompliantForm(e))return(await new Request(e).arrayBuffer()).byteLength;if(rt.isArrayBufferView(e)||rt.isArrayBuffer(e))return e.byteLength;if(rt.isURLSearchParams(e)&&(e=e+""),rt.isString(e))return(await s8(e)).byteLength},IMe=async(e,t)=>{const n=rt.toFiniteNumber(e.getContentLength());return n??RMe(t)},NMe=bR&&(async e=>{let{url:t,method:n,data:r,signal:i,cancelToken:a,timeout:s,onDownloadProgress:o,onUploadProgress:l,responseType:u,headers:d,withCredentials:f="same-origin",fetchOptions:p}=vle(e);u=u?(u+"").toLowerCase():"text";let[g,O]=i||a||s?kMe([i,a],s):[],S,T;const w=()=>{!S&&setTimeout(()=>{g&&g.unsubscribe()}),S=!0};let x;try{if(l&&CMe&&n!=="get"&&n!=="head"&&(x=await IMe(d,r))!==0){let N=new Request(t,{method:"POST",body:r,duplex:"half"}),D;if(rt.isFormData(r)&&(D=N.headers.get("content-type"))&&d.setContentType(D),N.body){const[L,U]=yZ(x,A3(vZ(l)));r=SZ(N.body,EZ,L,U,s8)}}rt.isString(f)||(f=f?"include":"omit"),T=new Request(t,{...p,signal:g,method:n.toUpperCase(),headers:d.normalize().toJSON(),body:r,duplex:"half",credentials:f});let k=await fetch(T);const _=o8&&(u==="stream"||u==="response");if(o8&&(o||_)){const N={};["status","statusText","headers"].forEach(B=>{N[B]=k[B]});const D=rt.toFiniteNumber(k.headers.get("content-length")),[L,U]=o&&yZ(D,A3(vZ(o),!0))||[];k=new Response(SZ(k.body,EZ,L,()=>{U&&U(),_&&w()},s8),N)}u=u||"text";let I=await _3[rt.findKey(_3,u)||"text"](k,e);return!_&&w(),O&&O(),await new Promise((N,D)=>{ble(N,D,{data:I,headers:Dl.from(k.headers),status:k.status,statusText:k.statusText,config:e,request:T})})}catch(k){throw w(),k&&k.name==="TypeError"&&/fetch/i.test(k.message)?Object.assign(new Jn("Network Error",Jn.ERR_NETWORK,e,T),{cause:k.cause||k}):Jn.from(k,k&&k.code,e,T)}}),l8={http:YLe,xhr:xMe,fetch:NMe};rt.forEach(l8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const wZ=e=>`- ${e}`,DMe=e=>rt.isFunction(e)||e===null||e===!1,Ele={getAdapter:e=>{e=rt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : +`+a.map(wZ).join(` +`):" "+wZ(a[0]):"as no adapter specified";throw new Jn("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:l8};function GN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new fO(null,e)}function TZ(e){return GN(e),e.headers=Dl.from(e.headers),e.data=qN.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ele.getAdapter(e.adapter||NT.adapter)(e).then(function(r){return GN(e),r.data=qN.call(e,e.transformResponse,r),r.headers=Dl.from(r.headers),r},function(r){return gle(r)||(GN(e),r&&r.response&&(r.response.data=qN.call(e,e.transformResponse,r.response),r.response.headers=Dl.from(r.response.headers))),Promise.reject(r)})}const wle="1.7.4",eF={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{eF[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const xZ={};eF.transitional=function(t,n,r){function i(a,s){return"[Axios v"+wle+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new Jn(i(s," has been removed"+(n?" in "+n:"")),Jn.ERR_DEPRECATED);return n&&!xZ[s]&&(xZ[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function PMe(e,t,n){if(typeof e!="object")throw new Jn("options must be an object",Jn.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new Jn("option "+a+" must be "+l,Jn.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Jn("Unknown option "+a,Jn.ERR_BAD_OPTION)}}const u8={assertOptions:PMe,validators:eF},Xp=u8.validators;let a1=class{constructor(t){this.defaults=t,this.interceptors={request:new gZ,response:new gZ}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";try{r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` +`+a):r.stack=a}catch{}}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=O1(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&u8.assertOptions(r,{silentJSONParsing:Xp.transitional(Xp.boolean),forcedJSONParsing:Xp.transitional(Xp.boolean),clarifyTimeoutError:Xp.transitional(Xp.boolean)},!1),i!=null&&(rt.isFunction(i)?n.paramsSerializer={serialize:i}:u8.assertOptions(i,{encode:Xp.function,serialize:Xp.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&rt.merge(a.common,a[n.method]);a&&rt.forEach(["delete","get","head","post","put","patch","common"],O=>{delete a[O]}),n.headers=Dl.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let d,f=0,p;if(!l){const O=[TZ.bind(this),void 0];for(O.unshift.apply(O,o),O.push.apply(O,u),p=O.length,d=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new fO(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Tle(function(i){t=i}),cancel:t}}};function MMe(e){return function(n){return e.apply(null,n)}}function $Me(e){return rt.isObject(e)&&e.isAxiosError===!0}const c8={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(c8).forEach(([e,t])=>{c8[t]=e});function xle(e){const t=new a1(e),n=tle(a1.prototype.request,t);return rt.extend(n,a1.prototype,t,{allOwnKeys:!0}),rt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return xle(O1(e,i))},n}const ar=xle(NT);ar.Axios=a1;ar.CanceledError=fO;ar.CancelToken=LMe;ar.isCancel=gle;ar.VERSION=wle;ar.toFormData=gR;ar.AxiosError=Jn;ar.Cancel=ar.CanceledError;ar.all=function(t){return Promise.all(t)};ar.spread=MMe;ar.isAxiosError=$Me;ar.mergeConfig=O1;ar.AxiosHeaders=Dl;ar.formToJSON=e=>mle(rt.isHTMLForm(e)?new FormData(e):e);ar.getAdapter=Ele.getAdapter;ar.HttpStatusCode=c8;ar.default=ar;const{Axios:BOt,AxiosError:kle,CanceledError:UOt,isCancel:zOt,CancelToken:jOt,VERSION:HOt,all:QOt,Cancel:WOt,isAxiosError:VOt,spread:qOt,toFormData:GOt,AxiosHeaders:YOt,HttpStatusCode:ZOt,formToJSON:XOt,getAdapter:KOt,mergeConfig:JOt}=ar;function FMe(){const e=Uoe();return R.jsx(zn,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:R.jsxs(zn,{alignItems:"center",children:[R.jsx(Cr,{variant:"h5",children:"Something went wrong"}),_T(e)&&R.jsxs(Cr,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const tF=rn.createContext({isLoading:!0,isLoggedIn:!1}),BMe={data:null},Ale=$1({name:"user",initialState:BMe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:d8}=Ale.actions,DT=e=>e.user,UMe=Ale.reducer,zMe=e=>{var a;const{children:t}=e,{isLoggedIn:n}=M.useContext(tF),r=vm(),i=Pr(DT);return n?R.jsx(Q$,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},jMe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=M.useContext(tF),i=vm();return r?R.jsx(lO,{open:!0,children:R.jsx(kd,{color:"inherit"})}):n?t:R.jsx(Q$,{to:"/",state:{from:i},replace:!0})};var nF={},YN={};const HMe=gp(U4e);var kZ;function ea(){return kZ||(kZ=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=HMe}(YN)),YN}var QMe=Ni;Object.defineProperty(nF,"__esModule",{value:!0});var _le=nF.default=void 0,WMe=QMe(ea()),VMe=R;_le=nF.default=(0,WMe.default)((0,VMe.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");var rF={},qMe=Ni;Object.defineProperty(rF,"__esModule",{value:!0});var Cle=rF.default=void 0,GMe=qMe(ea()),YMe=R;Cle=rF.default=(0,GMe.default)((0,YMe.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 iF={},ZMe=Ni;Object.defineProperty(iF,"__esModule",{value:!0});var Rle=iF.default=void 0,XMe=ZMe(ea()),KMe=R;Rle=iF.default=(0,XMe.default)((0,KMe.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var aF={},JMe=Ni;Object.defineProperty(aF,"__esModule",{value:!0});var sF=aF.default=void 0,e9e=JMe(ea()),t9e=R;sF=aF.default=(0,e9e.default)((0,t9e.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 n9e=function(e){return(e+1)%1e6};function r9e(){var e=M.useReducer(n9e,0),t=e[1];return t}function ZN(e,t){return typeof e=="function"?e.length?e(t):e():e}function i9e(e,t){var n=M.useRef(!1),r=M.useRef(),i=M.useRef(e),a=M.useCallback(function(){return n.current},[]),s=M.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=M.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return M.useEffect(function(){i.current=e},[e]),M.useEffect(function(){return s(),o},[t]),[a,o,s]}function yR(e,t,n){n===void 0&&(n=[]);var r=i9e(e,t),i=r[0],a=r[1],s=r[2];return M.useEffect(s,n),[i,a]}function a9e(e){e===void 0&&(e=[]);var t=M.useRef(ZN(e)),n=r9e(),r=M.useMemo(function(){var i={set:function(a){t.current=ZN(a,t.current),n()},push:function(){for(var a=[],s=0;sl.length?l[a]=s:l.splice(a,0,s),l})},update:function(a,s){r.set(function(o){return o.map(function(l){return a(l,s)?s:l})})},updateFirst:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0&&r.updateAt(o,s)},upsert:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0?r.updateAt(o,s):r.push(s)},sort:function(a){r.set(function(s){return s.slice().sort(a)})},filter:function(a,s){r.set(function(o){return o.slice().filter(a,s)})},removeAt:function(a){r.set(function(s){var o=s.slice();return o.splice(a,1),o})},clear:function(){r.set([])},reset:function(){r.set(ZN(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}const s9e={mode:"both",shareRole:null,doc:null,client:null,cmView:null},Ile=$1({name:"editor",initialState:s9e,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:f8,setDoc:C3,setClient:R3,setShareRole:o9e,setCmView:l9e}=Ile.actions,Sm=e=>e.editor,u9e=Ile.reducer,c9e={data:null},Nle=$1({name:"workspace",initialState:c9e,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:AZ}=Nle.actions,PT=e=>e.workspace,d9e=Nle.reducer,f9e=Nd(R.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function Dle(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 _Z(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Ple=rn.createContext(),g9e={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},wh={view:{default:20,dense:4},snackbar:{default:6,dense:2}},Bg={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:noe,transitionDuration:{enter:225,exit:195}},p2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},b9e=function(t){return""+p2(t.vertical)+p2(t.horizontal)},y9e=function(t){return Object.keys(t).filter(function(n){return!g9e.container[n]}).reduce(function(n,r){var i;return Mi({},n,(i={},i[r]=t[r],i))},{})},p0={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},J4={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+p2(n)+p2(r)},toVariant:function(t){return"variant"+p2(t)}},TA=function(t){return!!t||t===0},CZ=function(t){return typeof t=="number"||t===null},v9e=function(t,n,r){return function(i){return i==="autoHideDuration"?CZ(t.autoHideDuration)?t.autoHideDuration:CZ(n.autoHideDuration)?n.autoHideDuration:Bg.autoHideDuration:t[i]||n[i]||r[i]}};function XN(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Mi({},n,{},t,{},e)}var O9e="SnackbarContent",Lle={root:O9e+"-root"},S9e=at("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Lle.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),E9e=M.forwardRef(function(e,t){var n=e.className,r=V0(e,["className"]);return rn.createElement(S9e,Object.assign({ref:t,className:Ow(Lle.root,n)},r))}),RZ={right:"left",left:"right",bottom:"up",top:"down"},w9e=function(t){return t.horizontal!=="center"?RZ[t.horizontal]:RZ[t.vertical]},T9e=function(t){return rn.createElement(tm,Object.assign({},t),rn.createElement("path",{d:`M12 2C6.5 2 2 6.5 2 12S6.5 22 12 22 22 17.5 22 12 17.5 2 12 2M10 17L5 12L6.41 + 10.59L10 14.17L17.59 6.58L19 8L10 17Z`}))},x9e=function(t){return rn.createElement(tm,Object.assign({},t),rn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},k9e=function(t){return rn.createElement(tm,Object.assign({},t),rn.createElement("path",{d:`M12,2C17.53,2 22,6.47 22,12C22,17.53 17.53,22 12,22C6.47,22 2,17.53 2,12C2, + 6.47 6.47,2 12,2M15.59,7L12,10.59L8.41,7L7,8.41L10.59,12L7,15.59L8.41,17L12, + 13.41L15.59,17L17,15.59L13.41,12L17,8.41L15.59,7Z`}))},A9e=function(t){return rn.createElement(tm,Object.assign({},t),rn.createElement("path",{d:`M13,9H11V7H13M13,17H11V11H13M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0, + 0 22,12A10,10 0 0,0 12,2Z`}))},xA={fontSize:20,marginInlineEnd:8},_9e={default:void 0,success:rn.createElement(T9e,{style:xA}),warning:rn.createElement(x9e,{style:xA}),error:rn.createElement(k9e,{style:xA}),info:rn.createElement(A9e,{style:xA})};function m2(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},JN=16,hg="SnackbarContainer",cd={root:hg+"-root",rootDense:hg+"-rootDense",top:hg+"-top",bottom:hg+"-bottom",left:hg+"-left",right:hg+"-right",center:hg+"-center"},D9e=at("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+cd.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[KN.container]={pointerEvents:"all"},t[KN.wrapper]={padding:wh.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+wh.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+JN*2+"px)"},t),s["&."+cd.rootDense]=(n={},n[KN.wrapper]={padding:wh.snackbar.dense+"px 0px"},n),s["&."+cd.top]={top:wh.view.default-wh.snackbar.default,flexDirection:"column"},s["&."+cd.bottom]={bottom:wh.view.default-wh.snackbar.default,flexDirection:"column-reverse"},s["&."+cd.left]=(r={left:wh.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:JN+"px"},r),s["&."+cd.right]=(i={right:wh.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:JN+"px"},i),s["&."+cd.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),P9e=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=V0(t,["className","anchorOrigin","dense"]),s=Ow(cd[r.vertical],cd[r.horizontal],cd.root,n,i&&cd.rootDense);return rn.createElement(D9e,Object.assign({className:s},a))},L9e=rn.memo(P9e),M9e=function(e){m9e(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,d=V0(o,["key","preventDuplicate"]),f=TA(l),p=f?l:new Date().getTime()+Math.random(),g=v9e(d,i.props,Bg),O=Mi({key:p},d,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return d.persist&&(O.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var T=function(_){return f?_.key===l:_.message===a},w=S.queue.findIndex(T)>-1,x=S.snacks.findIndex(T)>-1;if(w||x)return S}return i.handleDisplaySnack(Mi({},S,{queue:[].concat(S.queue,[O])}))}),p},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Mi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(d){return!d.open||d.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(d,f){return d+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(d){return!s&&(!d.persist||o)?(s=!0,d.entered?(d.onClose&&d.onClose(null,p0.MAXSNACK,d.key),i.props.onClose&&i.props.onClose(null,p0.MAXSNACK,d.key),Mi({},d,{open:!1})):Mi({},d,{requestClose:!0})):Mi({},d)});return Mi({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!TA(o))throw new Error("handleEnteredSnack Cannot be called with undefined key");i.setState(function(l){var u=l.snacks;return{snacks:u.map(function(d){return d.key===o?Mi({},d,{entered:!0}):Mi({},d)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==p0.CLICKAWAY){var l=o===void 0;i.setState(function(u){var d=u.snacks,f=u.queue;return{snacks:d.map(function(p){return!l&&p.key!==o?Mi({},p):p.entered?Mi({},p,{open:!1}):Mi({},p,{requestClose:!0})}),queue:f.filter(function(p){return p.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});TA(a)&&s&&s.onClose&&s.onClose(null,p0.INSTRUCTED,a),i.handleCloseSnack(null,p0.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!TA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var d=i.processQueue(Mi({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return d.queue.length===0?d:i.handleDismissOldest(d)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(_Z(i)),closeSnackbar:i.closeSnackbar.bind(_Z(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?Bg.dense:l,d=s.hideIconVariant,f=d===void 0?Bg.hideIconVariant:d,p=s.domRoot,g=s.children,O=s.classes,S=O===void 0?{}:O,T=V0(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),w=this.state.snacks.reduce(function(k,_){var I,N=b9e(_.anchorOrigin),D=k[N]||[];return Mi({},k,(I={},I[N]=[].concat(D,[_]),I))},{}),x=Object.keys(w).map(function(k){var _=w[k];return rn.createElement(L9e,{key:k,dense:u,anchorOrigin:_[0].anchorOrigin,className:Ow(S.containerRoot,S[J4.toContainerAnchorOrigin(k)])},_.map(function(I){return rn.createElement(N9e,Object.assign({},T,{key:I.key,snack:I,dense:u,iconVariant:o,hideIconVariant:f,classes:y9e(S),onClose:i.handleCloseSnack,onExited:m2([i.handleExitedSnack,i.props.onExited]),onEntered:m2([i.handleEnteredSnack,i.props.onEntered])}))}))});return rn.createElement(Ple.Provider,{value:a},g,p?eO.createPortal(x,p):x)},p9e(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||Bg.maxSnack}}]),t}(M.Component),LT=function(){return M.useContext(Ple)};const $9e={data:null},Mle=$1({name:"document",initialState:$9e,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:I3}=Mle.actions,vR=e=>e.document,F9e=Mle.reducer;var hO=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(){}},Cv=typeof window>"u"||"Deno"in globalThis;function tc(){}function B9e(e,t){return typeof e=="function"?e(t):e}function h8(e){return typeof e=="number"&&e>=0&&e!==1/0}function $le(e,t){return Math.max(e+(t||0)-Date.now(),0)}function Ly(e,t){return typeof e=="function"?e(t):e}function hd(e,t){return typeof e=="function"?e(t):e}function NZ(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==oF(s,t.options))return!1}else if(!Sw(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||i&&i!==t.state.fetchStatus||a&&!a(t))}function DZ(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(S1(t.options.mutationKey)!==S1(a))return!1}else if(!Sw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function oF(e,t){return((t==null?void 0:t.queryKeyHashFn)||S1)(e)}function S1(e){return JSON.stringify(e,(t,n)=>p8(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Sw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Sw(e[n],t[n])):!1}function Fle(e,t){if(e===t)return e;const n=PZ(e)&&PZ(t);if(n||p8(e)&&p8(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let u=0;u{setTimeout(t,e)})}function m8(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Fle(e,t):t}function z9e(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function j9e(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Ble=Symbol();function Ule(e,t){return!e.queryFn&&(t!=null&&t.initialPromise)?()=>t.initialPromise:!e.queryFn||e.queryFn===Ble?()=>Promise.reject(new Error(`Missing queryFn: '${e.queryHash}'`)):e.queryFn}var qg,y0,Jy,are,H9e=(are=class extends hO{constructor(){super();Fn(this,qg);Fn(this,y0);Fn(this,Jy);ln(this,Jy,t=>{if(!Cv&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){_e(this,y0)||this.setEventListener(_e(this,Jy))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,y0))==null||t.call(this),ln(this,y0,void 0))}setEventListener(t){var n;ln(this,Jy,t),(n=_e(this,y0))==null||n.call(this),ln(this,y0,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){_e(this,qg)!==t&&(ln(this,qg,t),this.onFocus())}onFocus(){const t=this.isFocused();this.listeners.forEach(n=>{n(t)})}isFocused(){var t;return typeof _e(this,qg)=="boolean"?_e(this,qg):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},qg=new WeakMap,y0=new WeakMap,Jy=new WeakMap,are),lF=new H9e,ev,v0,tv,sre,Q9e=(sre=class extends hO{constructor(){super();Fn(this,ev,!0);Fn(this,v0);Fn(this,tv);ln(this,tv,t=>{if(!Cv&&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(){_e(this,v0)||this.setEventListener(_e(this,tv))}onUnsubscribe(){var t;this.hasListeners()||((t=_e(this,v0))==null||t.call(this),ln(this,v0,void 0))}setEventListener(t){var n;ln(this,tv,t),(n=_e(this,v0))==null||n.call(this),ln(this,v0,t(this.setOnline.bind(this)))}setOnline(t){_e(this,ev)!==t&&(ln(this,ev,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return _e(this,ev)}},ev=new WeakMap,v0=new WeakMap,tv=new WeakMap,sre),D3=new Q9e;function W9e(e){return Math.min(1e3*2**e,3e4)}function zle(e){return(e??"online")==="online"?D3.isOnline():!0}var jle=class extends Error{constructor(e){super("CancelledError"),this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function eD(e){return e instanceof jle}function Hle(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((w,x)=>{a=w,s=x}),l=w=>{var x;r||(O(new jle(w)),(x=e.abort)==null||x.call(e))},u=()=>{t=!0},d=()=>{t=!1},f=()=>lF.isFocused()&&(e.networkMode==="always"||D3.isOnline())&&e.canRun(),p=()=>zle(e.networkMode)&&e.canRun(),g=w=>{var x;r||(r=!0,(x=e.onSuccess)==null||x.call(e,w),i==null||i(),a(w))},O=w=>{var x;r||(r=!0,(x=e.onError)==null||x.call(e,w),i==null||i(),s(w))},S=()=>new Promise(w=>{var x;i=k=>{(r||f())&&w(k)},(x=e.onPause)==null||x.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),T=()=>{if(r)return;let w;const x=n===0?e.initialPromise:void 0;try{w=x??e.fn()}catch(k){w=Promise.reject(k)}Promise.resolve(w).then(g).catch(k=>{var L;if(r)return;const _=e.retry??(Cv?0:3),I=e.retryDelay??W9e,N=typeof I=="function"?I(n,k):I,D=_===!0||typeof _=="number"&&n<_||typeof _=="function"&&_(n,k);if(t||!D){O(k);return}n++,(L=e.onFail)==null||L.call(e,n,k),U9e(N).then(()=>f()?void 0:S()).then(()=>{t?O(k):T()})})};return{promise:o,cancel:l,continue:()=>(i==null||i(),o),cancelRetry:u,continueRetry:d,canStart:p,start:()=>(p()?T():S().then(T),o)}}function V9e(){let e=[],t=0,n=p=>{p()},r=p=>{p()},i=p=>setTimeout(p,0);const a=p=>{i=p},s=p=>{let g;t++;try{g=p()}finally{t--,t||u()}return g},o=p=>{t?e.push(p):i(()=>{n(p)})},l=p=>(...g)=>{o(()=>{p(...g)})},u=()=>{const p=e;e=[],p.length&&i(()=>{r(()=>{p.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:p=>{n=p},setBatchNotifyFunction:p=>{r=p},setScheduler:a}}var ns=V9e(),Gg,ore,Qle=(ore=class{constructor(){Fn(this,Gg)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),h8(this.gcTime)&&ln(this,Gg,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(Cv?1/0:5*60*1e3))}clearGcTimeout(){_e(this,Gg)&&(clearTimeout(_e(this,Gg)),ln(this,Gg,void 0))}},Gg=new WeakMap,ore),nv,rv,Ju,co,sT,Yg,od,Rh,lre,q9e=(lre=class extends Qle{constructor(t){super();Fn(this,od);Fn(this,nv);Fn(this,rv);Fn(this,Ju);Fn(this,co);Fn(this,sT);Fn(this,Yg);ln(this,Yg,!1),ln(this,sT,t.defaultOptions),this.setOptions(t.options),this.observers=[],ln(this,Ju,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,ln(this,nv,G9e(this.options)),this.state=t.state??_e(this,nv),this.scheduleGc()}get meta(){return this.options.meta}get promise(){var t;return(t=_e(this,co))==null?void 0:t.promise}setOptions(t){this.options={..._e(this,sT),...t},this.updateGcTime(this.options.gcTime)}optionalRemove(){!this.observers.length&&this.state.fetchStatus==="idle"&&_e(this,Ju).remove(this)}setData(t,n){const r=m8(this.state.data,t,this.options);return lr(this,od,Rh).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){lr(this,od,Rh).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r,i;const n=(r=_e(this,co))==null?void 0:r.promise;return(i=_e(this,co))==null||i.cancel(t),n?n.then(tc).catch(tc):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(_e(this,nv))}isActive(){return this.observers.some(t=>hd(t.options.enabled,this)!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated?!0:this.getObserversCount()>0?this.observers.some(t=>t.getCurrentResult().isStale):this.state.data===void 0}isStaleByTime(t=0){return this.state.isInvalidated||this.state.data===void 0||!$le(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=this.observers.find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,co))==null||n.continue()}onOnline(){var n;const t=this.observers.find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=_e(this,co))==null||n.continue()}addObserver(t){this.observers.includes(t)||(this.observers.push(t),this.clearGcTimeout(),_e(this,Ju).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){this.observers.includes(t)&&(this.observers=this.observers.filter(n=>n!==t),this.observers.length||(_e(this,co)&&(_e(this,Yg)?_e(this,co).cancel({revert:!0}):_e(this,co).cancelRetry()),this.scheduleGc()),_e(this,Ju).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return this.observers.length}invalidate(){this.state.isInvalidated||lr(this,od,Rh).call(this,{type:"invalidate"})}fetch(t,n){var l,u,d;if(this.state.fetchStatus!=="idle"){if(this.state.data!==void 0&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(_e(this,co))return _e(this,co).continueRetry(),_e(this,co).promise}if(t&&this.setOptions(t),!this.options.queryFn){const f=this.observers.find(p=>p.options.queryFn);f&&this.setOptions(f.options)}const r=new AbortController,i=f=>{Object.defineProperty(f,"signal",{enumerable:!0,get:()=>(ln(this,Yg,!0),r.signal)})},a=()=>{const f=Ule(this.options,n),p={queryKey:this.queryKey,meta:this.meta};return i(p),ln(this,Yg,!1),this.options.persister?this.options.persister(f,p,this):f(p)},s={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:a};i(s),(l=this.options.behavior)==null||l.onFetch(s,this),ln(this,rv,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((u=s.fetchOptions)==null?void 0:u.meta))&&lr(this,od,Rh).call(this,{type:"fetch",meta:(d=s.fetchOptions)==null?void 0:d.meta});const o=f=>{var p,g,O,S;eD(f)&&f.silent||lr(this,od,Rh).call(this,{type:"error",error:f}),eD(f)||((g=(p=_e(this,Ju).config).onError)==null||g.call(p,f,this),(S=(O=_e(this,Ju).config).onSettled)==null||S.call(O,this.state.data,f,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return ln(this,co,Hle({initialPromise:n==null?void 0:n.initialPromise,fn:s.fetchFn,abort:r.abort.bind(r),onSuccess:f=>{var p,g,O,S;if(f===void 0){o(new Error(`${this.queryHash} data is undefined`));return}this.setData(f),(g=(p=_e(this,Ju).config).onSuccess)==null||g.call(p,f,this),(S=(O=_e(this,Ju).config).onSettled)==null||S.call(O,f,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:o,onFail:(f,p)=>{lr(this,od,Rh).call(this,{type:"failed",failureCount:f,error:p})},onPause:()=>{lr(this,od,Rh).call(this,{type:"pause"})},onContinue:()=>{lr(this,od,Rh).call(this,{type:"continue"})},retry:s.options.retry,retryDelay:s.options.retryDelay,networkMode:s.options.networkMode,canRun:()=>!0})),_e(this,co).start()}},nv=new WeakMap,rv=new WeakMap,Ju=new WeakMap,co=new WeakMap,sT=new WeakMap,Yg=new WeakMap,od=new WeakSet,Rh=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,...Wle(r.data,this.options),fetchMeta:t.meta??null};case"success":return{...r,data:t.data,dataUpdateCount:r.dataUpdateCount+1,dataUpdatedAt:t.dataUpdatedAt??Date.now(),error:null,isInvalidated:!1,status:"success",...!t.manual&&{fetchStatus:"idle",fetchFailureCount:0,fetchFailureReason:null}};case"error":const i=t.error;return eD(i)&&i.revert&&_e(this,rv)?{..._e(this,rv),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),ns.batch(()=>{this.observers.forEach(r=>{r.onQueryUpdate()}),_e(this,Ju).notify({query:this,type:"updated",action:t})})},lre);function Wle(e,t){return{fetchFailureCount:0,fetchFailureReason:null,fetchStatus:zle(t.networkMode)?"fetching":"paused",...e===void 0&&{error:null,status:"pending"}}}function G9e(e){const t=typeof e.initialData=="function"?e.initialData():e.initialData,n=t!==void 0,r=n?typeof e.initialDataUpdatedAt=="function"?e.initialDataUpdatedAt():e.initialDataUpdatedAt:0;return{data:t,dataUpdateCount:0,dataUpdatedAt:n?r??Date.now():0,error:null,errorUpdateCount:0,errorUpdatedAt:0,fetchFailureCount:0,fetchFailureReason:null,fetchMeta:null,isInvalidated:!1,status:n?"success":"pending",fetchStatus:"idle"}}var lf,ure,Vle=(ure=class extends hO{constructor(t={}){super();Fn(this,lf);this.config=t,ln(this,lf,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??oF(i,n);let s=this.get(a);return s||(s=new q9e({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){_e(this,lf).has(t.queryHash)||(_e(this,lf).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=_e(this,lf).get(t.queryHash);n&&(t.destroy(),n===t&&_e(this,lf).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){ns.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return _e(this,lf).get(t)}getAll(){return[..._e(this,lf).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>NZ(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>NZ(t,r)):n}notify(t){ns.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){ns.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){ns.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},lf=new WeakMap,ure),uf,$o,Zg,cf,r0,cre,Y9e=(cre=class extends Qle{constructor(t){super();Fn(this,cf);Fn(this,uf);Fn(this,$o);Fn(this,Zg);this.mutationId=t.mutationId,ln(this,$o,t.mutationCache),ln(this,uf,[]),this.state=t.state||qle(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options=t,this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){_e(this,uf).includes(t)||(_e(this,uf).push(t),this.clearGcTimeout(),_e(this,$o).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){ln(this,uf,_e(this,uf).filter(n=>n!==t)),this.scheduleGc(),_e(this,$o).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){_e(this,uf).length||(this.state.status==="pending"?this.scheduleGc():_e(this,$o).remove(this))}continue(){var t;return((t=_e(this,Zg))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,u,d,f,p,g,O,S,T,w,x,k,_,I,N,D;ln(this,Zg,Hle({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(L,U)=>{lr(this,cf,r0).call(this,{type:"failed",failureCount:L,error:U})},onPause:()=>{lr(this,cf,r0).call(this,{type:"pause"})},onContinue:()=>{lr(this,cf,r0).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode,canRun:()=>_e(this,$o).canRun(this)}));const n=this.state.status==="pending",r=!_e(this,Zg).canStart();try{if(!n){lr(this,cf,r0).call(this,{type:"pending",variables:t,isPaused:r}),await((a=(i=_e(this,$o).config).onMutate)==null?void 0:a.call(i,t,this));const U=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));U!==this.state.context&&lr(this,cf,r0).call(this,{type:"pending",context:U,variables:t,isPaused:r})}const L=await _e(this,Zg).start();return await((u=(l=_e(this,$o).config).onSuccess)==null?void 0:u.call(l,L,t,this.state.context,this)),await((f=(d=this.options).onSuccess)==null?void 0:f.call(d,L,t,this.state.context)),await((g=(p=_e(this,$o).config).onSettled)==null?void 0:g.call(p,L,null,this.state.variables,this.state.context,this)),await((S=(O=this.options).onSettled)==null?void 0:S.call(O,L,null,t,this.state.context)),lr(this,cf,r0).call(this,{type:"success",data:L}),L}catch(L){try{throw await((w=(T=_e(this,$o).config).onError)==null?void 0:w.call(T,L,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,L,t,this.state.context)),await((I=(_=_e(this,$o).config).onSettled)==null?void 0:I.call(_,void 0,L,this.state.variables,this.state.context,this)),await((D=(N=this.options).onSettled)==null?void 0:D.call(N,void 0,L,t,this.state.context)),L}finally{lr(this,cf,r0).call(this,{type:"error",error:L})}}finally{_e(this,$o).runNext(this)}}},uf=new WeakMap,$o=new WeakMap,Zg=new WeakMap,cf=new WeakSet,r0=function(t){const n=r=>{switch(t.type){case"failed":return{...r,failureCount:t.failureCount,failureReason:t.error};case"pause":return{...r,isPaused:!0};case"continue":return{...r,isPaused:!1};case"pending":return{...r,context:t.context,data:void 0,failureCount:0,failureReason:null,error:null,isPaused:t.isPaused,status:"pending",variables:t.variables,submittedAt:Date.now()};case"success":return{...r,data:t.data,failureCount:0,failureReason:null,error:null,status:"success",isPaused:!1};case"error":return{...r,data:void 0,error:t.error,failureCount:r.failureCount+1,failureReason:t.error,isPaused:!1,status:"error"}}};this.state=n(this.state),ns.batch(()=>{_e(this,uf).forEach(r=>{r.onMutationUpdate(t)}),_e(this,$o).notify({mutation:this,type:"updated",action:t})})},cre);function qle(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var ru,oT,dre,Z9e=(dre=class extends hO{constructor(t={}){super();Fn(this,ru);Fn(this,oT);this.config=t,ln(this,ru,new Map),ln(this,oT,Date.now())}build(t,n,r){const i=new Y9e({mutationCache:this,mutationId:++Hk(this,oT)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){const n=kA(t),r=_e(this,ru).get(n)??[];r.push(t),_e(this,ru).set(n,r),this.notify({type:"added",mutation:t})}remove(t){var r;const n=kA(t);if(_e(this,ru).has(n)){const i=(r=_e(this,ru).get(n))==null?void 0:r.filter(a=>a!==t);i&&(i.length===0?_e(this,ru).delete(n):_e(this,ru).set(n,i))}this.notify({type:"removed",mutation:t})}canRun(t){var r;const n=(r=_e(this,ru).get(kA(t)))==null?void 0:r.find(i=>i.state.status==="pending");return!n||n===t}runNext(t){var r;const n=(r=_e(this,ru).get(kA(t)))==null?void 0:r.find(i=>i!==t&&i.state.isPaused);return(n==null?void 0:n.continue())??Promise.resolve()}clear(){ns.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}getAll(){return[..._e(this,ru).values()].flat()}find(t){const n={exact:!0,...t};return this.getAll().find(r=>DZ(n,r))}findAll(t={}){return this.getAll().filter(n=>DZ(t,n))}notify(t){ns.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){const t=this.getAll().filter(n=>n.state.isPaused);return ns.batch(()=>Promise.all(t.map(n=>n.continue().catch(tc))))}},ru=new WeakMap,oT=new WeakMap,dre);function kA(e){var t;return((t=e.options.scope)==null?void 0:t.id)??String(e.mutationId)}function g8(e){return{onFetch:(t,n)=>{const r=async()=>{var O,S,T,w,x;const i=t.options,a=(T=(S=(O=t.fetchOptions)==null?void 0:O.meta)==null?void 0:S.fetchMore)==null?void 0:T.direction,s=((w=t.state.data)==null?void 0:w.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const d=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=Ule(t.options,t.fetchOptions),p=async(k,_,I)=>{if(u)return Promise.reject();if(_==null&&k.pages.length)return Promise.resolve(k);const N={queryKey:t.queryKey,pageParam:_,direction:I?"backward":"forward",meta:t.options.meta};d(N);const D=await f(N),{maxPages:L}=t.options,U=I?j9e:z9e;return{pages:U(k.pages,D,L),pageParams:U(k.pageParams,_,L)}};let g;if(a&&s.length){const k=a==="backward",_=k?Gle:b8,I={pages:s,pageParams:o},N=_(i,I);g=await p(I,N,k)}else{g=await p(l,o[0]??i.initialPageParam);const k=e??s.length;for(let _=1;_{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function b8(e,{pages:t,pageParams:n}){const r=t.length-1;return t.length>0?e.getNextPageParam(t[r],t,n[r],n):void 0}function Gle(e,{pages:t,pageParams:n}){var r;return t.length>0?(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n):void 0}function X9e(e,t){return t?b8(e,t)!=null:!1}function K9e(e,t){return!t||!e.getPreviousPageParam?!1:Gle(e,t)!=null}var Oa,O0,S0,iv,av,E0,sv,ov,fre,J9e=(fre=class{constructor(e={}){Fn(this,Oa);Fn(this,O0);Fn(this,S0);Fn(this,iv);Fn(this,av);Fn(this,E0);Fn(this,sv);Fn(this,ov);ln(this,Oa,e.queryCache||new Vle),ln(this,O0,e.mutationCache||new Z9e),ln(this,S0,e.defaultOptions||{}),ln(this,iv,new Map),ln(this,av,new Map),ln(this,E0,0)}mount(){Hk(this,E0)._++,_e(this,E0)===1&&(ln(this,sv,lF.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,Oa).onFocus())})),ln(this,ov,D3.subscribe(async e=>{e&&(await this.resumePausedMutations(),_e(this,Oa).onOnline())})))}unmount(){var e,t;Hk(this,E0)._--,_e(this,E0)===0&&((e=_e(this,sv))==null||e.call(this),ln(this,sv,void 0),(t=_e(this,ov))==null||t.call(this),ln(this,ov,void 0))}isFetching(e){return _e(this,Oa).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return _e(this,O0).findAll({...e,status:"pending"}).length}getQueryData(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,Oa).get(t.queryHash))==null?void 0:n.state.data}ensureQueryData(e){const t=this.getQueryData(e.queryKey);if(t===void 0)return this.fetchQuery(e);{const n=this.defaultQueryOptions(e),r=_e(this,Oa).build(this,n);return e.revalidateIfStale&&r.isStaleByTime(Ly(n.staleTime,r))&&this.prefetchQuery(n),Promise.resolve(t)}}getQueriesData(e){return _e(this,Oa).findAll(e).map(({queryKey:t,state:n})=>{const r=n.data;return[t,r]})}setQueryData(e,t,n){const r=this.defaultQueryOptions({queryKey:e}),i=_e(this,Oa).get(r.queryHash),a=i==null?void 0:i.state.data,s=B9e(t,a);if(s!==void 0)return _e(this,Oa).build(this,r).setData(s,{...n,manual:!0})}setQueriesData(e,t,n){return ns.batch(()=>_e(this,Oa).findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var n;const t=this.defaultQueryOptions({queryKey:e});return(n=_e(this,Oa).get(t.queryHash))==null?void 0:n.state}removeQueries(e){const t=_e(this,Oa);ns.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=_e(this,Oa),r={type:"active",...e};return ns.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=ns.batch(()=>_e(this,Oa).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(tc).catch(tc)}invalidateQueries(e={},t={}){return ns.batch(()=>{if(_e(this,Oa).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=ns.batch(()=>_e(this,Oa).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(tc)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(tc)}fetchQuery(e){const t=this.defaultQueryOptions(e);t.retry===void 0&&(t.retry=!1);const n=_e(this,Oa).build(this,t);return n.isStaleByTime(Ly(t.staleTime,n))?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(tc).catch(tc)}fetchInfiniteQuery(e){return e.behavior=g8(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(tc).catch(tc)}resumePausedMutations(){return D3.isOnline()?_e(this,O0).resumePausedMutations():Promise.resolve()}getQueryCache(){return _e(this,Oa)}getMutationCache(){return _e(this,O0)}getDefaultOptions(){return _e(this,S0)}setDefaultOptions(e){ln(this,S0,e)}setQueryDefaults(e,t){_e(this,iv).set(S1(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[..._e(this,iv).values()];let n={};return t.forEach(r=>{Sw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){_e(this,av).set(S1(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[..._e(this,av).values()];let n={};return t.forEach(r=>{Sw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e._defaulted)return e;const t={..._e(this,S0).queries,...this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=oF(t.queryKey,t)),t.refetchOnReconnect===void 0&&(t.refetchOnReconnect=t.networkMode!=="always"),t.throwOnError===void 0&&(t.throwOnError=!!t.suspense),!t.networkMode&&t.persister&&(t.networkMode="offlineFirst"),t.enabled!==!0&&t.queryFn===Ble&&(t.enabled=!1),t}defaultMutationOptions(e){return e!=null&&e._defaulted?e:{..._e(this,S0).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){_e(this,Oa).clear(),_e(this,O0).clear()}},Oa=new WeakMap,O0=new WeakMap,S0=new WeakMap,iv=new WeakMap,av=new WeakMap,E0=new WeakMap,sv=new WeakMap,ov=new WeakMap,fre),bl,Ar,lT,Fo,Xg,lv,df,uT,uv,cv,Kg,Jg,w0,dv,ei,UE,y8,v8,O8,S8,E8,w8,T8,Zle,hre,Yle=(hre=class extends hO{constructor(t,n){super();Fn(this,ei);Fn(this,bl);Fn(this,Ar);Fn(this,lT);Fn(this,Fo);Fn(this,Xg);Fn(this,lv);Fn(this,df);Fn(this,uT);Fn(this,uv);Fn(this,cv);Fn(this,Kg);Fn(this,Jg);Fn(this,w0);Fn(this,dv,new Set);this.options=n,ln(this,bl,t),ln(this,df,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(_e(this,Ar).addObserver(this),MZ(_e(this,Ar),this.options)?lr(this,ei,UE).call(this):this.updateResult(),lr(this,ei,S8).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return x8(_e(this,Ar),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return x8(_e(this,Ar),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lr(this,ei,E8).call(this),lr(this,ei,w8).call(this),_e(this,Ar).removeObserver(this)}setOptions(t,n){const r=this.options,i=_e(this,Ar);if(this.options=_e(this,bl).defaultQueryOptions(t),this.options.enabled!==void 0&&typeof this.options.enabled!="boolean"&&typeof this.options.enabled!="function"&&typeof hd(this.options.enabled,_e(this,Ar))!="boolean")throw new Error("Expected enabled to be a boolean or a callback that returns a boolean");lr(this,ei,T8).call(this),_e(this,Ar).setOptions(this.options),r._defaulted&&!N3(this.options,r)&&_e(this,bl).getQueryCache().notify({type:"observerOptionsUpdated",query:_e(this,Ar),observer:this});const a=this.hasListeners();a&&$Z(_e(this,Ar),i,this.options,r)&&lr(this,ei,UE).call(this),this.updateResult(n),a&&(_e(this,Ar)!==i||hd(this.options.enabled,_e(this,Ar))!==hd(r.enabled,_e(this,Ar))||Ly(this.options.staleTime,_e(this,Ar))!==Ly(r.staleTime,_e(this,Ar)))&&lr(this,ei,y8).call(this);const s=lr(this,ei,v8).call(this);a&&(_e(this,Ar)!==i||hd(this.options.enabled,_e(this,Ar))!==hd(r.enabled,_e(this,Ar))||s!==_e(this,w0))&&lr(this,ei,O8).call(this,s)}getOptimisticResult(t){const n=_e(this,bl).getQueryCache().build(_e(this,bl),t),r=this.createResult(n,t);return t$e(this,r)&&(ln(this,Fo,r),ln(this,lv,this.options),ln(this,Xg,_e(this,Ar).state)),r}getCurrentResult(){return _e(this,Fo)}trackResult(t,n){const r={};return Object.keys(t).forEach(i=>{Object.defineProperty(r,i,{configurable:!1,enumerable:!0,get:()=>(this.trackProp(i),n==null||n(i),t[i])})}),r}trackProp(t){_e(this,dv).add(t)}getCurrentQuery(){return _e(this,Ar)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=_e(this,bl).defaultQueryOptions(t),r=_e(this,bl).getQueryCache().build(_e(this,bl),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return lr(this,ei,UE).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),_e(this,Fo)))}createResult(t,n){var D;const r=_e(this,Ar),i=this.options,a=_e(this,Fo),s=_e(this,Xg),o=_e(this,lv),u=t!==r?t.state:_e(this,lT),{state:d}=t;let f={...d},p=!1,g;if(n._optimisticResults){const L=this.hasListeners(),U=!L&&MZ(t,n),B=L&&$Z(t,r,n,i);(U||B)&&(f={...f,...Wle(d.data,t.options)}),n._optimisticResults==="isRestoring"&&(f.fetchStatus="idle")}let{error:O,errorUpdatedAt:S,status:T}=f;if(n.select&&f.data!==void 0)if(a&&f.data===(s==null?void 0:s.data)&&n.select===_e(this,uT))g=_e(this,uv);else try{ln(this,uT,n.select),g=n.select(f.data),g=m8(a==null?void 0:a.data,g,n),ln(this,uv,g),ln(this,df,null)}catch(L){ln(this,df,L)}else g=f.data;if(n.placeholderData!==void 0&&g===void 0&&T==="pending"){let L;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))L=a.data;else if(L=typeof n.placeholderData=="function"?n.placeholderData((D=_e(this,cv))==null?void 0:D.state.data,_e(this,cv)):n.placeholderData,n.select&&L!==void 0)try{L=n.select(L),ln(this,df,null)}catch(U){ln(this,df,U)}L!==void 0&&(T="success",g=m8(a==null?void 0:a.data,L,n),p=!0)}_e(this,df)&&(O=_e(this,df),g=_e(this,uv),S=Date.now(),T="error");const w=f.fetchStatus==="fetching",x=T==="pending",k=T==="error",_=x&&w,I=g!==void 0;return{status:T,fetchStatus:f.fetchStatus,isPending:x,isSuccess:T==="success",isError:k,isInitialLoading:_,isLoading:_,data:g,dataUpdatedAt:f.dataUpdatedAt,error:O,errorUpdatedAt:S,failureCount:f.fetchFailureCount,failureReason:f.fetchFailureReason,errorUpdateCount:f.errorUpdateCount,isFetched:f.dataUpdateCount>0||f.errorUpdateCount>0,isFetchedAfterMount:f.dataUpdateCount>u.dataUpdateCount||f.errorUpdateCount>u.errorUpdateCount,isFetching:w,isRefetching:w&&!x,isLoadingError:k&&!I,isPaused:f.fetchStatus==="paused",isPlaceholderData:p,isRefetchError:k&&I,isStale:uF(t,n),refetch:this.refetch}}updateResult(t){const n=_e(this,Fo),r=this.createResult(_e(this,Ar),this.options);if(ln(this,Xg,_e(this,Ar).state),ln(this,lv,this.options),_e(this,Xg).data!==void 0&&ln(this,cv,_e(this,Ar)),N3(r,n))return;ln(this,Fo,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!_e(this,dv).size)return!0;const l=new Set(o??_e(this,dv));return this.options.throwOnError&&l.add("error"),Object.keys(_e(this,Fo)).some(u=>{const d=u;return _e(this,Fo)[d]!==n[d]&&l.has(d)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),lr(this,ei,Zle).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&lr(this,ei,S8).call(this)}},bl=new WeakMap,Ar=new WeakMap,lT=new WeakMap,Fo=new WeakMap,Xg=new WeakMap,lv=new WeakMap,df=new WeakMap,uT=new WeakMap,uv=new WeakMap,cv=new WeakMap,Kg=new WeakMap,Jg=new WeakMap,w0=new WeakMap,dv=new WeakMap,ei=new WeakSet,UE=function(t){lr(this,ei,T8).call(this);let n=_e(this,Ar).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(tc)),n},y8=function(){lr(this,ei,E8).call(this);const t=Ly(this.options.staleTime,_e(this,Ar));if(Cv||_e(this,Fo).isStale||!h8(t))return;const r=$le(_e(this,Fo).dataUpdatedAt,t)+1;ln(this,Kg,setTimeout(()=>{_e(this,Fo).isStale||this.updateResult()},r))},v8=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(_e(this,Ar)):this.options.refetchInterval)??!1},O8=function(t){lr(this,ei,w8).call(this),ln(this,w0,t),!(Cv||hd(this.options.enabled,_e(this,Ar))===!1||!h8(_e(this,w0))||_e(this,w0)===0)&&ln(this,Jg,setInterval(()=>{(this.options.refetchIntervalInBackground||lF.isFocused())&&lr(this,ei,UE).call(this)},_e(this,w0)))},S8=function(){lr(this,ei,y8).call(this),lr(this,ei,O8).call(this,lr(this,ei,v8).call(this))},E8=function(){_e(this,Kg)&&(clearTimeout(_e(this,Kg)),ln(this,Kg,void 0))},w8=function(){_e(this,Jg)&&(clearInterval(_e(this,Jg)),ln(this,Jg,void 0))},T8=function(){const t=_e(this,bl).getQueryCache().build(_e(this,bl),this.options);if(t===_e(this,Ar))return;const n=_e(this,Ar);ln(this,Ar,t),ln(this,lT,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},Zle=function(t){ns.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(_e(this,Fo))}),_e(this,bl).getQueryCache().notify({query:_e(this,Ar),type:"observerResultsUpdated"})})},hre);function e$e(e,t){return hd(t.enabled,e)!==!1&&e.state.data===void 0&&!(e.state.status==="error"&&t.retryOnMount===!1)}function MZ(e,t){return e$e(e,t)||e.state.data!==void 0&&x8(e,t,t.refetchOnMount)}function x8(e,t,n){if(hd(t.enabled,e)!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&uF(e,t)}return!1}function $Z(e,t,n,r){return(e!==t||hd(r.enabled,e)===!1)&&(!n.suspense||e.state.status!=="error")&&uF(e,n)}function uF(e,t){return hd(t.enabled,e)!==!1&&e.isStaleByTime(Ly(t.staleTime,e))}function t$e(e,t){return!N3(e.getCurrentResult(),t)}var n$e=class extends Yle{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:g8()},t)}getOptimisticResult(e){return e.behavior=g8(),super.getOptimisticResult(e)}fetchNextPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"forward"}}})}fetchPreviousPage(e){return this.fetch({...e,meta:{fetchMore:{direction:"backward"}}})}createResult(e,t){var O,S;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a,isError:s,isRefetchError:o}=r,l=(S=(O=n.fetchMeta)==null?void 0:O.fetchMore)==null?void 0:S.direction,u=s&&l==="forward",d=i&&l==="forward",f=s&&l==="backward",p=i&&l==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:X9e(t,n.data),hasPreviousPage:K9e(t,n.data),isFetchNextPageError:u,isFetchingNextPage:d,isFetchPreviousPageError:f,isFetchingPreviousPage:p,isRefetchError:o&&!u&&!f,isRefetching:a&&!d&&!p}}},T0,x0,yl,Fh,Jh,e_,k8,pre,r$e=(pre=class extends hO{constructor(n,r){super();Fn(this,Jh);Fn(this,T0);Fn(this,x0);Fn(this,yl);Fn(this,Fh);ln(this,T0,n),this.setOptions(r),this.bindMethods(),lr(this,Jh,e_).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=_e(this,T0).defaultMutationOptions(n),N3(this.options,r)||_e(this,T0).getMutationCache().notify({type:"observerOptionsUpdated",mutation:_e(this,yl),observer:this}),r!=null&&r.mutationKey&&this.options.mutationKey&&S1(r.mutationKey)!==S1(this.options.mutationKey)?this.reset():((i=_e(this,yl))==null?void 0:i.state.status)==="pending"&&_e(this,yl).setOptions(this.options)}onUnsubscribe(){var n;this.hasListeners()||(n=_e(this,yl))==null||n.removeObserver(this)}onMutationUpdate(n){lr(this,Jh,e_).call(this),lr(this,Jh,k8).call(this,n)}getCurrentResult(){return _e(this,x0)}reset(){var n;(n=_e(this,yl))==null||n.removeObserver(this),ln(this,yl,void 0),lr(this,Jh,e_).call(this),lr(this,Jh,k8).call(this)}mutate(n,r){var i;return ln(this,Fh,r),(i=_e(this,yl))==null||i.removeObserver(this),ln(this,yl,_e(this,T0).getMutationCache().build(_e(this,T0),this.options)),_e(this,yl).addObserver(this),_e(this,yl).execute(n)}},T0=new WeakMap,x0=new WeakMap,yl=new WeakMap,Fh=new WeakMap,Jh=new WeakSet,e_=function(){var r;const n=((r=_e(this,yl))==null?void 0:r.state)??qle();ln(this,x0,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},k8=function(n){ns.batch(()=>{var r,i,a,s,o,l,u,d;if(_e(this,Fh)&&this.hasListeners()){const f=_e(this,x0).variables,p=_e(this,x0).context;(n==null?void 0:n.type)==="success"?((i=(r=_e(this,Fh)).onSuccess)==null||i.call(r,n.data,f,p),(s=(a=_e(this,Fh)).onSettled)==null||s.call(a,n.data,null,f,p)):(n==null?void 0:n.type)==="error"&&((l=(o=_e(this,Fh)).onError)==null||l.call(o,n.error,f,p),(d=(u=_e(this,Fh)).onSettled)==null||d.call(u,void 0,n.error,f,p))}this.listeners.forEach(f=>{f(_e(this,x0))})})},pre),Xle=M.createContext(void 0),MT=e=>{const t=M.useContext(Xle);if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},i$e=({client:e,children:t})=>(M.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),R.jsx(Xle.Provider,{value:e,children:t})),Kle=M.createContext(!1),a$e=()=>M.useContext(Kle);Kle.Provider;function s$e(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var o$e=M.createContext(s$e()),l$e=()=>M.useContext(o$e);function Jle(e,t){return typeof e=="function"?e(...t):!!e}function u$e(){}var c$e=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},d$e=e=>{M.useEffect(()=>{e.clearReset()},[e])},f$e=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&Jle(n,[e.error,r]),h$e=e=>{e.suspense&&(typeof e.staleTime!="number"&&(e.staleTime=1e3),typeof e.gcTime=="number"&&(e.gcTime=Math.max(e.gcTime,1e3)))},p$e=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,m$e=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function eue(e,t,n){var u,d,f,p;const r=MT(),i=a$e(),a=l$e(),s=r.defaultQueryOptions(e);(d=(u=r.getDefaultOptions().queries)==null?void 0:u._experimental_beforeQuery)==null||d.call(u,s),s._optimisticResults=i?"isRestoring":"optimistic",h$e(s),c$e(s,a),d$e(a);const[o]=M.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(M.useSyncExternalStore(M.useCallback(g=>{const O=i?()=>{}:o.subscribe(ns.batchCalls(g));return o.updateResult(),O},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),M.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),p$e(s,l))throw m$e(s,o,a);if(f$e({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return(p=(f=r.getDefaultOptions().queries)==null?void 0:f._experimental_afterQuery)==null||p.call(f,s,l),s.notifyOnChangeProps?l:o.trackResult(l)}function pO(e,t){return eue(e,Yle)}function vp(e,t){const n=MT(),[r]=M.useState(()=>new r$e(n,e));M.useEffect(()=>{r.setOptions(e)},[r,e]);const i=M.useSyncExternalStore(M.useCallback(s=>r.subscribe(ns.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=M.useCallback((s,o)=>{r.mutate(s,o).catch(u$e)},[r]);if(i.error&&Jle(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function cF(e,t){return eue(e,n$e)}const g$e=()=>vp({mutationFn:async e=>(await ar.post("/files",e)).data}),b$e=()=>vp({mutationFn:async e=>ar.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})}),y$e=()=>vp({mutationFn:async e=>{const{exportType:t,content:n,fileName:r}=e;return await ar.post("/files/export-markdown",{exportType:t,content:n,fileName:r},{responseType:"blob",headers:{Accept:"application/octet-stream"}})}}),v$e=()=>{const{enqueueSnackbar:e}=LT(),t=Pr(Sm),n=Pr(vR),r=y$e(),i=M.useCallback(async l=>{var u,d,f;try{const p=((d=(u=t.doc)==null?void 0:u.getRoot().content)==null?void 0:d.toString())||"",g=((f=n.data)==null?void 0:f.title)||"codepair_document";e(`${l.toUpperCase()} file export started`,{variant:"info"});const O=await r.mutateAsync({exportType:l,content:p,fileName:g}),S=O.headers["content-disposition"],T=S==null?void 0:S.match(/filename="?(.+)"?\s*$/i),w=T?T[1]:`${g}.${l}`,x=new Blob([O.data],{type:O.headers["content-type"]}),k=window.URL.createObjectURL(x),_=document.createElement("a");_.href=k,_.setAttribute("download",w),document.body.appendChild(_),_.click(),document.body.removeChild(_),window.URL.revokeObjectURL(k),e(`${l.toUpperCase()} file exported successfully`,{variant:"success"})}catch(p){console.error("Error:",p),e(`Failed to export ${l.toUpperCase()} file`,{variant:"error"})}},[t,n,e,r]);return{handleExportToPDF:()=>i("pdf"),handleExportToHTML:()=>i("html"),handleExportToMarkdown:()=>i("markdown")}};function O$e(){const[e,t]=M.useState(null),n=o=>{t(o.currentTarget)},r=()=>{t(null)},{handleExportToPDF:i,handleExportToHTML:a,handleExportToMarkdown:s}=v$e();return R.jsxs(Oo,{children:[R.jsx(ss,{"aria-controls":"download-menu","aria-haspopup":"true",onClick:n,children:R.jsx(f9e,{})}),R.jsxs(coe,{id:"download-menu",anchorEl:e,keepMounted:!0,open:!!e,onClose:r,children:[R.jsx(Od,{onClick:i,children:"Download as PDF"}),R.jsx(Od,{onClick:a,children:"Download as HTML"}),R.jsx(Od,{onClick:s,children:"Download as Markdown"})]})]})}var dF={},S$e=Ni;Object.defineProperty(dF,"__esModule",{value:!0});var tue=dF.default=void 0,E$e=S$e(ea()),w$e=R;tue=dF.default=(0,E$e.default)((0,w$e.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");function A8(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);ne.type==="checkbox",by=e=>e instanceof Date,Ho=e=>e==null;const nue=e=>typeof e=="object";var ls=e=>!Ho(e)&&!Array.isArray(e)&&nue(e)&&!by(e),rue=e=>ls(e)&&e.target?$T(e.target)?e.target.checked:e.target.value:e,C$e=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,iue=(e,t)=>e.has(C$e(t)),R$e=e=>{const t=e.constructor&&e.constructor.prototype;return ls(t)&&t.hasOwnProperty("isPrototypeOf")},fF=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function pl(e){let t;const n=Array.isArray(e);if(e instanceof Date)t=new Date(e);else if(e instanceof Set)t=new Set(e);else if(!(fF&&(e instanceof Blob||e instanceof FileList))&&(n||ls(e)))if(t=n?[]:{},!n&&!R$e(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=pl(e[r]));else return e;return t}var OR=e=>Array.isArray(e)?e.filter(Boolean):[],wa=e=>e===void 0,Zt=(e,t,n)=>{if(!t||!ls(e))return n;const r=OR(t.split(/[,[\].]+?/)).reduce((i,a)=>Ho(i)?i:i[a],e);return wa(r)||r===e?wa(e[t])?n:e[t]:r},bf=e=>typeof e=="boolean",hF=e=>/^\w*$/.test(e),aue=e=>OR(e.replace(/["|']|\]/g,"").split(/\.|\[/)),bi=(e,t,n)=>{let r=-1;const i=hF(t)?[t]:aue(t),a=i.length,s=a-1;for(;++rrn.useContext(sue),oue=e=>{const{children:t,...n}=e;return rn.createElement(sue.Provider,{value:n},t)};var lue=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==gd.all&&(t._proxyFormState[s]=!r||gd.all),n&&(n[s]=!0),e[s]}});return i},vl=e=>ls(e)&&!Object.keys(e).length,uue=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return vl(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||gd.all))},g2=e=>Array.isArray(e)?e:[e],cue=(e,t,n)=>!e||!t||e===t||g2(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function mF(e){const t=rn.useRef(e);t.current=e,rn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function I$e(e){const t=pF(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=rn.useState(n._formState),l=rn.useRef(!0),u=rn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,validatingFields:!1,isValidating:!1,isValid:!1,errors:!1}),d=rn.useRef(i);return d.current=i,mF({disabled:r,next:f=>l.current&&cue(d.current,f.name,a)&&uue(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),rn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),lue(s,n,u.current,!1)}var Sf=e=>typeof e=="string",due=(e,t,n,r,i)=>Sf(e)?(r&&t.watch.add(e),Zt(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),Zt(n,a))):(r&&(t.watchAll=!0),n);function fue(e){const t=pF(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=rn.useRef(r);o.current=r,mF({disabled:a,subject:n._subjects.values,next:d=>{cue(o.current,d.name,s)&&u(pl(due(o.current,n._names,d.values||n._formValues,!1,i)))}});const[l,u]=rn.useState(n._getWatch(r,i));return rn.useEffect(()=>n._removeUnmounted()),l}function Wf(e){const t=pF(),{name:n,disabled:r,control:i=t.control,shouldUnregister:a}=e,s=iue(i._names.array,n),o=fue({control:i,name:n,defaultValue:Zt(i._formValues,n,Zt(i._defaultValues,n,e.defaultValue)),exact:!0}),l=I$e({control:i,name:n,exact:!0}),u=rn.useRef(i.register(n,{...e.rules,value:o,...bf(e.disabled)?{disabled:e.disabled}:{}}));return rn.useEffect(()=>{const d=i._options.shouldUnregister||a,f=(p,g)=>{const O=Zt(i._fields,p);O&&O._f&&(O._f.mount=g)};if(f(n,!0),d){const p=pl(Zt(i._options.defaultValues,n));bi(i._defaultValues,n,p),wa(Zt(i._formValues,n))&&bi(i._formValues,n,p)}return()=>{(s?d&&!i._state.action:d)?i.unregister(n):f(n,!1)}},[n,i,s,a]),rn.useEffect(()=>{Zt(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:Zt(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...bf(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:rn.useCallback(d=>u.current.onChange({target:{value:rue(d),name:n},type:P3.CHANGE}),[n]),onBlur:rn.useCallback(()=>u.current.onBlur({target:{value:Zt(i._formValues,n),name:n},type:P3.BLUR}),[n,i]),ref:rn.useCallback(d=>{const f=Zt(i._fields,n);f&&d&&(f._f.ref={focus:()=>d.focus(),select:()=>d.select(),setCustomValidity:p=>d.setCustomValidity(p),reportValidity:()=>d.reportValidity()})},[i._fields,n])},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!Zt(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!Zt(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!Zt(l.touchedFields,n)},isValidating:{enumerable:!0,get:()=>!!Zt(l.validatingFields,n)},error:{enumerable:!0,get:()=>Zt(l.errors,n)}})}}var N$e=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},BZ=e=>({isOnSubmit:!e||e===gd.onSubmit,isOnBlur:e===gd.onBlur,isOnChange:e===gd.onChange,isOnAll:e===gd.all,isOnTouch:e===gd.onTouched}),UZ=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const b2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=Zt(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;b2(o,t)}else ls(o)&&b2(o,t)}}};var D$e=(e,t,n)=>{const r=g2(Zt(e,n));return bi(r,"root",t[n]),bi(e,n,r),e},gF=e=>e.type==="file",R0=e=>typeof e=="function",L3=e=>{if(!fF)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},t_=e=>Sf(e),bF=e=>e.type==="radio",M3=e=>e instanceof RegExp;const zZ={value:!1,isValid:!1},jZ={value:!0,isValid:!0};var hue=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&&!wa(e[0].attributes.value)?wa(e[0].value)||e[0].value===""?jZ:{value:e[0].value,isValid:!0}:jZ:zZ}return zZ};const HZ={isValid:!1,value:null};var pue=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,HZ):HZ;function QZ(e,t,n="validate"){if(t_(e)||Array.isArray(e)&&e.every(t_)||bf(e)&&!e)return{type:n,message:t_(e)?e:"",ref:t}}var Pb=e=>ls(e)&&!M3(e)?e:{value:e,message:""},WZ=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:d,max:f,pattern:p,validate:g,name:O,valueAsNumber:S,mount:T,disabled:w}=e._f,x=Zt(t,O);if(!T||w)return{};const k=s?s[0]:a,_=V=>{r&&k.reportValidity&&(k.setCustomValidity(bf(V)?"":V||""),k.reportValidity())},I={},N=bF(a),D=$T(a),L=N||D,U=(S||gF(a))&&wa(a.value)&&wa(x)||L3(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,B=N$e.bind(null,O,n,I),W=(V,re,ee,q=xh.maxLength,ne=xh.minLength)=>{const K=V?re:ee;I[O]={type:V?q:ne,message:K,ref:a,...B(V?q:ne,K)}};if(i?!Array.isArray(x)||!x.length:o&&(!L&&(U||Ho(x))||bf(x)&&!x||D&&!hue(s).isValid||N&&!pue(s).isValid)){const{value:V,message:re}=t_(o)?{value:!!o,message:o}:Pb(o);if(V&&(I[O]={type:xh.required,message:re,ref:k,...B(xh.required,re)},!n))return _(re),I}if(!U&&(!Ho(d)||!Ho(f))){let V,re;const ee=Pb(f),q=Pb(d);if(!Ho(x)&&!isNaN(x)){const ne=a.valueAsNumber||x&&+x;Ho(ee.value)||(V=ne>ee.value),Ho(q.value)||(re=nenew Date(new Date().toDateString()+" "+H),G=a.type=="time",ie=a.type=="week";Sf(ee.value)&&x&&(V=G?K(x)>K(ee.value):ie?x>ee.value:ne>new Date(ee.value)),Sf(q.value)&&x&&(re=G?K(x)+V.value,q=!Ho(re.value)&&x.length<+re.value;if((ee||q)&&(W(ee,V.message,re.message),!n))return _(I[O].message),I}if(p&&!U&&Sf(x)){const{value:V,message:re}=Pb(p);if(M3(V)&&!x.match(V)&&(I[O]={type:xh.pattern,message:re,ref:a,...B(xh.pattern,re)},!n))return _(re),I}if(g){if(R0(g)){const V=await g(x,t),re=QZ(V,k);if(re&&(I[O]={...re,...B(xh.validate,re.message)},!n))return _(re.message),I}else if(ls(g)){let V={};for(const re in g){if(!vl(V)&&!n)break;const ee=QZ(await g[re](x,t),k,re);ee&&(V={...ee,...B(re,ee.message)},_(ee.message),n&&(I[O]=V))}if(!vl(V)&&(I[O]={ref:k,...V},!n))return I}}return _(!0),I};function P$e(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},$3=e=>Ho(e)||!nue(e);function Ug(e,t){if($3(e)||$3(t))return e===t;if(by(e)&&by(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if(by(a)&&by(s)||ls(a)&&ls(s)||Array.isArray(a)&&Array.isArray(s)?!Ug(a,s):a!==s)return!1}}return!0}var mue=e=>e.type==="select-multiple",M$e=e=>bF(e)||$T(e),nD=e=>L3(e)&&e.isConnected,gue=e=>{for(const t in e)if(R0(e[t]))return!0;return!1};function F3(e,t={}){const n=Array.isArray(e);if(ls(e)||n)for(const r in e)Array.isArray(e[r])||ls(e[r])&&!gue(e[r])?(t[r]=Array.isArray(e[r])?[]:{},F3(e[r],t[r])):Ho(e[r])||(t[r]=!0);return t}function bue(e,t,n){const r=Array.isArray(e);if(ls(e)||r)for(const i in e)Array.isArray(e[i])||ls(e[i])&&!gue(e[i])?wa(t)||$3(n[i])?n[i]=Array.isArray(e[i])?F3(e[i],[]):{...F3(e[i])}:bue(e[i],Ho(t)?{}:t[i],n[i]):n[i]=!Ug(e[i],t[i]);return n}var AA=(e,t)=>bue(e,t,F3(t)),yue=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>wa(e)?e:t?e===""?NaN:e&&+e:n&&Sf(e)?new Date(e):r?r(e):e;function rD(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return gF(t)?t.files:bF(t)?pue(e.refs).value:mue(t)?[...t.selectedOptions].map(({value:n})=>n):$T(t)?hue(e.refs).value:yue(wa(t.value)?e.ref.value:t.value,e)}var $$e=(e,t,n,r)=>{const i={};for(const a of e){const s=Zt(t,a);s&&bi(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},cE=e=>wa(e)?e:M3(e)?e.source:ls(e)?M3(e.value)?e.value.source:e.value:e,F$e=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function VZ(e,t,n){const r=Zt(e,n);if(r||hF(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=Zt(t,a),o=Zt(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var B$e=(e,t,n,r,i)=>i.isOnAll?!1:!n&&i.isOnTouch?!(t||e):(n?r.isOnBlur:i.isOnBlur)?!e:(n?r.isOnChange:i.isOnChange)?e:!0,U$e=(e,t)=>!OR(Zt(e,t)).length&&Ka(e,t);const z$e={mode:gd.onSubmit,reValidateMode:gd.onChange,shouldFocusError:!0};function j$e(e={}){let t={...z$e,...e},n={submitCount:0,isDirty:!1,isLoading:R0(t.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},validatingFields:{},errors:t.errors||{},disabled:t.disabled||!1},r={},i=ls(t.defaultValues)||ls(t.values)?pl(t.defaultValues||t.values)||{}:{},a=t.shouldUnregister?{}:pl(i),s={action:!1,mount:!1,watch:!1},o={mount:new Set,unMount:new Set,array:new Set,watch:new Set},l,u=0;const d={isDirty:!1,dirtyFields:!1,validatingFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},f={values:tD(),array:tD(),state:tD()},p=BZ(t.mode),g=BZ(t.reValidateMode),O=t.criteriaMode===gd.all,S=de=>Ce=>{clearTimeout(u),u=setTimeout(de,Ce)},T=async de=>{if(d.isValid||de){const Ce=t.resolver?vl((await L()).errors):await B(r,!0);Ce!==n.isValid&&f.state.next({isValid:Ce})}},w=(de,Ce)=>{(d.isValidating||d.validatingFields)&&((de||Array.from(o.mount)).forEach(Ne=>{Ne&&(Ce?bi(n.validatingFields,Ne,Ce):Ka(n.validatingFields,Ne))}),f.state.next({validatingFields:n.validatingFields,isValidating:!vl(n.validatingFields)}))},x=(de,Ce=[],Ne,Ke,ct=!0,Je=!0)=>{if(Ke&&Ne){if(s.action=!0,Je&&Array.isArray(Zt(r,de))){const gt=Ne(Zt(r,de),Ke.argA,Ke.argB);ct&&bi(r,de,gt)}if(Je&&Array.isArray(Zt(n.errors,de))){const gt=Ne(Zt(n.errors,de),Ke.argA,Ke.argB);ct&&bi(n.errors,de,gt),U$e(n.errors,de)}if(d.touchedFields&&Je&&Array.isArray(Zt(n.touchedFields,de))){const gt=Ne(Zt(n.touchedFields,de),Ke.argA,Ke.argB);ct&&bi(n.touchedFields,de,gt)}d.dirtyFields&&(n.dirtyFields=AA(i,a)),f.state.next({name:de,isDirty:V(de,Ce),dirtyFields:n.dirtyFields,errors:n.errors,isValid:n.isValid})}else bi(a,de,Ce)},k=(de,Ce)=>{bi(n.errors,de,Ce),f.state.next({errors:n.errors})},_=de=>{n.errors=de,f.state.next({errors:n.errors,isValid:!1})},I=(de,Ce,Ne,Ke)=>{const ct=Zt(r,de);if(ct){const Je=Zt(a,de,wa(Ne)?Zt(i,de):Ne);wa(Je)||Ke&&Ke.defaultChecked||Ce?bi(a,de,Ce?Je:rD(ct._f)):q(de,Je),s.mount&&T()}},N=(de,Ce,Ne,Ke,ct)=>{let Je=!1,gt=!1;const en={name:de},Fe=!!(Zt(r,de)&&Zt(r,de)._f&&Zt(r,de)._f.disabled);if(!Ne||Ke){d.isDirty&&(gt=n.isDirty,n.isDirty=en.isDirty=V(),Je=gt!==en.isDirty);const Te=Fe||Ug(Zt(i,de),Ce);gt=!!(!Fe&&Zt(n.dirtyFields,de)),Te||Fe?Ka(n.dirtyFields,de):bi(n.dirtyFields,de,!0),en.dirtyFields=n.dirtyFields,Je=Je||d.dirtyFields&>!==!Te}if(Ne){const Te=Zt(n.touchedFields,de);Te||(bi(n.touchedFields,de,Ne),en.touchedFields=n.touchedFields,Je=Je||d.touchedFields&&Te!==Ne)}return Je&&ct&&f.state.next(en),Je?en:{}},D=(de,Ce,Ne,Ke)=>{const ct=Zt(n.errors,de),Je=d.isValid&&bf(Ce)&&n.isValid!==Ce;if(e.delayError&&Ne?(l=S(()=>k(de,Ne)),l(e.delayError)):(clearTimeout(u),l=null,Ne?bi(n.errors,de,Ne):Ka(n.errors,de)),(Ne?!Ug(ct,Ne):ct)||!vl(Ke)||Je){const gt={...Ke,...Je&&bf(Ce)?{isValid:Ce}:{},errors:n.errors,name:de};n={...n,...gt},f.state.next(gt)}},L=async de=>{w(de,!0);const Ce=await t.resolver(a,t.context,$$e(de||o.mount,r,t.criteriaMode,t.shouldUseNativeValidation));return w(de),Ce},U=async de=>{const{errors:Ce}=await L(de);if(de)for(const Ne of de){const Ke=Zt(Ce,Ne);Ke?bi(n.errors,Ne,Ke):Ka(n.errors,Ne)}else n.errors=Ce;return Ce},B=async(de,Ce,Ne={valid:!0})=>{for(const Ke in de){const ct=de[Ke];if(ct){const{_f:Je,...gt}=ct;if(Je){const en=o.array.has(Je.name);w([Ke],!0);const Fe=await WZ(ct,a,O,t.shouldUseNativeValidation&&!Ce,en);if(w([Ke]),Fe[Je.name]&&(Ne.valid=!1,Ce))break;!Ce&&(Zt(Fe,Je.name)?en?D$e(n.errors,Fe,Je.name):bi(n.errors,Je.name,Fe[Je.name]):Ka(n.errors,Je.name))}!vl(gt)&&await B(gt,Ce,Ne)}}return Ne.valid},W=()=>{for(const de of o.unMount){const Ce=Zt(r,de);Ce&&(Ce._f.refs?Ce._f.refs.every(Ne=>!nD(Ne)):!nD(Ce._f.ref))&&ae(de)}o.unMount=new Set},V=(de,Ce)=>(de&&Ce&&bi(a,de,Ce),!Ug(Re(),i)),re=(de,Ce,Ne)=>due(de,o,{...s.mount?a:wa(Ce)?i:Sf(de)?{[de]:Ce}:Ce},Ne,Ce),ee=de=>OR(Zt(s.mount?a:i,de,e.shouldUnregister?Zt(i,de,[]):[])),q=(de,Ce,Ne={})=>{const Ke=Zt(r,de);let ct=Ce;if(Ke){const Je=Ke._f;Je&&(!Je.disabled&&bi(a,de,yue(Ce,Je)),ct=L3(Je.ref)&&Ho(Ce)?"":Ce,mue(Je.ref)?[...Je.ref.options].forEach(gt=>gt.selected=ct.includes(gt.value)):Je.refs?$T(Je.ref)?Je.refs.length>1?Je.refs.forEach(gt=>(!gt.defaultChecked||!gt.disabled)&&(gt.checked=Array.isArray(ct)?!!ct.find(en=>en===gt.value):ct===gt.value)):Je.refs[0]&&(Je.refs[0].checked=!!ct):Je.refs.forEach(gt=>gt.checked=gt.value===ct):gF(Je.ref)?Je.ref.value="":(Je.ref.value=ct,Je.ref.type||f.values.next({name:de,values:{...a}})))}(Ne.shouldDirty||Ne.shouldTouch)&&N(de,ct,Ne.shouldTouch,Ne.shouldDirty,!0),Ne.shouldValidate&&H(de)},ne=(de,Ce,Ne)=>{for(const Ke in Ce){const ct=Ce[Ke],Je=`${de}.${Ke}`,gt=Zt(r,Je);(o.array.has(de)||!$3(ct)||gt&&!gt._f)&&!by(ct)?ne(Je,ct,Ne):q(Je,ct,Ne)}},K=(de,Ce,Ne={})=>{const Ke=Zt(r,de),ct=o.array.has(de),Je=pl(Ce);bi(a,de,Je),ct?(f.array.next({name:de,values:{...a}}),(d.isDirty||d.dirtyFields)&&Ne.shouldDirty&&f.state.next({name:de,dirtyFields:AA(i,a),isDirty:V(de,Je)})):Ke&&!Ke._f&&!Ho(Je)?ne(de,Je,Ne):q(de,Je,Ne),UZ(de,o)&&f.state.next({...n}),f.values.next({name:s.mount?de:void 0,values:{...a}})},G=async de=>{s.mount=!0;const Ce=de.target;let Ne=Ce.name,Ke=!0;const ct=Zt(r,Ne),Je=()=>Ce.type?rD(ct._f):rue(de),gt=en=>{Ke=Number.isNaN(en)||en===Zt(a,Ne,en)};if(ct){let en,Fe;const Te=Je(),ye=de.type===P3.BLUR||de.type===P3.FOCUS_OUT,xe=!F$e(ct._f)&&!t.resolver&&!Zt(n.errors,Ne)&&!ct._f.deps||B$e(ye,Zt(n.touchedFields,Ne),n.isSubmitted,g,p),Ue=UZ(Ne,o,ye);bi(a,Ne,Te),ye?(ct._f.onBlur&&ct._f.onBlur(de),l&&l(0)):ct._f.onChange&&ct._f.onChange(de);const Ct=N(Ne,Te,ye,!1),qt=!vl(Ct)||Ue;if(!ye&&f.values.next({name:Ne,type:de.type,values:{...a}}),xe)return d.isValid&&T(),qt&&f.state.next({name:Ne,...Ue?{}:Ct});if(!ye&&Ue&&f.state.next({...n}),t.resolver){const{errors:tt}=await L([Ne]);if(gt(Te),Ke){const Wt=VZ(n.errors,r,Ne),Ht=VZ(tt,r,Wt.name||Ne);en=Ht.error,Ne=Ht.name,Fe=vl(tt)}}else w([Ne],!0),en=(await WZ(ct,a,O,t.shouldUseNativeValidation))[Ne],w([Ne]),gt(Te),Ke&&(en?Fe=!1:d.isValid&&(Fe=await B(r,!0)));Ke&&(ct._f.deps&&H(ct._f.deps),D(Ne,Fe,en,Ct))}},ie=(de,Ce)=>{if(Zt(n.errors,Ce)&&de.focus)return de.focus(),1},H=async(de,Ce={})=>{let Ne,Ke;const ct=g2(de);if(t.resolver){const Je=await U(wa(de)?de:ct);Ne=vl(Je),Ke=de?!ct.some(gt=>Zt(Je,gt)):Ne}else de?(Ke=(await Promise.all(ct.map(async Je=>{const gt=Zt(r,Je);return await B(gt&>._f?{[Je]:gt}:gt)}))).every(Boolean),!(!Ke&&!n.isValid)&&T()):Ke=Ne=await B(r);return f.state.next({...!Sf(de)||d.isValid&&Ne!==n.isValid?{}:{name:de},...t.resolver||!de?{isValid:Ne}:{},errors:n.errors}),Ce.shouldFocus&&!Ke&&b2(r,ie,de?ct:o.mount),Ke},Re=de=>{const Ce={...s.mount?a:i};return wa(de)?Ce:Sf(de)?Zt(Ce,de):de.map(Ne=>Zt(Ce,Ne))},Se=(de,Ce)=>({invalid:!!Zt((Ce||n).errors,de),isDirty:!!Zt((Ce||n).dirtyFields,de),error:Zt((Ce||n).errors,de),isValidating:!!Zt(n.validatingFields,de),isTouched:!!Zt((Ce||n).touchedFields,de)}),Z=de=>{de&&g2(de).forEach(Ce=>Ka(n.errors,Ce)),f.state.next({errors:de?n.errors:{}})},ke=(de,Ce,Ne)=>{const Ke=(Zt(r,de,{_f:{}})._f||{}).ref,ct=Zt(n.errors,de)||{},{ref:Je,message:gt,type:en,...Fe}=ct;bi(n.errors,de,{...Fe,...Ce,ref:Ke}),f.state.next({name:de,errors:n.errors,isValid:!1}),Ne&&Ne.shouldFocus&&Ke&&Ke.focus&&Ke.focus()},$e=(de,Ce)=>R0(de)?f.values.subscribe({next:Ne=>de(re(void 0,Ce),Ne)}):re(de,Ce,!0),ae=(de,Ce={})=>{for(const Ne of de?g2(de):o.mount)o.mount.delete(Ne),o.array.delete(Ne),Ce.keepValue||(Ka(r,Ne),Ka(a,Ne)),!Ce.keepError&&Ka(n.errors,Ne),!Ce.keepDirty&&Ka(n.dirtyFields,Ne),!Ce.keepTouched&&Ka(n.touchedFields,Ne),!Ce.keepIsValidating&&Ka(n.validatingFields,Ne),!t.shouldUnregister&&!Ce.keepDefaultValue&&Ka(i,Ne);f.values.next({values:{...a}}),f.state.next({...n,...Ce.keepDirty?{isDirty:V()}:{}}),!Ce.keepIsValid&&T()},Xe=({disabled:de,name:Ce,field:Ne,fields:Ke,value:ct})=>{if(bf(de)&&s.mount||de){const Je=de?void 0:wa(ct)?rD(Ne?Ne._f:Zt(Ke,Ce)._f):ct;bi(a,Ce,Je),N(Ce,Je,!1,!1,!0)}},We=(de,Ce={})=>{let Ne=Zt(r,de);const Ke=bf(Ce.disabled);return bi(r,de,{...Ne||{},_f:{...Ne&&Ne._f?Ne._f:{ref:{name:de}},name:de,mount:!0,...Ce}}),o.mount.add(de),Ne?Xe({field:Ne,disabled:Ce.disabled,name:de,value:Ce.value}):I(de,!0,Ce.value),{...Ke?{disabled:Ce.disabled}:{},...t.progressive?{required:!!Ce.required,min:cE(Ce.min),max:cE(Ce.max),minLength:cE(Ce.minLength),maxLength:cE(Ce.maxLength),pattern:cE(Ce.pattern)}:{},name:de,onChange:G,onBlur:G,ref:ct=>{if(ct){We(de,Ce),Ne=Zt(r,de);const Je=wa(ct.value)&&ct.querySelectorAll&&ct.querySelectorAll("input,select,textarea")[0]||ct,gt=M$e(Je),en=Ne._f.refs||[];if(gt?en.find(Fe=>Fe===Je):Je===Ne._f.ref)return;bi(r,de,{_f:{...Ne._f,...gt?{refs:[...en.filter(nD),Je,...Array.isArray(Zt(i,de))?[{}]:[]],ref:{type:Je.type,name:de}}:{ref:Je}}}),I(de,!1,void 0,Je)}else Ne=Zt(r,de,{}),Ne._f&&(Ne._f.mount=!1),(t.shouldUnregister||Ce.shouldUnregister)&&!(iue(o.array,de)&&s.action)&&o.unMount.add(de)}}},Ye=()=>t.shouldFocusError&&b2(r,ie,o.mount),xt=de=>{bf(de)&&(f.state.next({disabled:de}),b2(r,(Ce,Ne)=>{const Ke=Zt(r,Ne);Ke&&(Ce.disabled=Ke._f.disabled||de,Array.isArray(Ke._f.refs)&&Ke._f.refs.forEach(ct=>{ct.disabled=Ke._f.disabled||de}))},0,!1))},st=(de,Ce)=>async Ne=>{let Ke;Ne&&(Ne.preventDefault&&Ne.preventDefault(),Ne.persist&&Ne.persist());let ct=pl(a);if(f.state.next({isSubmitting:!0}),t.resolver){const{errors:Je,values:gt}=await L();n.errors=Je,ct=gt}else await B(r);if(Ka(n.errors,"root"),vl(n.errors)){f.state.next({errors:{}});try{await de(ct,Ne)}catch(Je){Ke=Je}}else Ce&&await Ce({...n.errors},Ne),Ye(),setTimeout(Ye);if(f.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:vl(n.errors)&&!Ke,submitCount:n.submitCount+1,errors:n.errors}),Ke)throw Ke},Pt=(de,Ce={})=>{Zt(r,de)&&(wa(Ce.defaultValue)?K(de,pl(Zt(i,de))):(K(de,Ce.defaultValue),bi(i,de,pl(Ce.defaultValue))),Ce.keepTouched||Ka(n.touchedFields,de),Ce.keepDirty||(Ka(n.dirtyFields,de),n.isDirty=Ce.defaultValue?V(de,pl(Zt(i,de))):V()),Ce.keepError||(Ka(n.errors,de),d.isValid&&T()),f.state.next({...n}))},jt=(de,Ce={})=>{const Ne=de?pl(de):i,Ke=pl(Ne),ct=vl(de),Je=ct?i:Ke;if(Ce.keepDefaultValues||(i=Ne),!Ce.keepValues){if(Ce.keepDirtyValues)for(const gt of o.mount)Zt(n.dirtyFields,gt)?bi(Je,gt,Zt(a,gt)):K(gt,Zt(Je,gt));else{if(fF&&wa(de))for(const gt of o.mount){const en=Zt(r,gt);if(en&&en._f){const Fe=Array.isArray(en._f.refs)?en._f.refs[0]:en._f.ref;if(L3(Fe)){const Te=Fe.closest("form");if(Te){Te.reset();break}}}}r={}}a=e.shouldUnregister?Ce.keepDefaultValues?pl(i):{}:pl(Je),f.array.next({values:{...Je}}),f.values.next({values:{...Je}})}o={mount:Ce.keepDirtyValues?o.mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},s.mount=!d.isValid||!!Ce.keepIsValid||!!Ce.keepDirtyValues,s.watch=!!e.shouldUnregister,f.state.next({submitCount:Ce.keepSubmitCount?n.submitCount:0,isDirty:ct?!1:Ce.keepDirty?n.isDirty:!!(Ce.keepDefaultValues&&!Ug(de,i)),isSubmitted:Ce.keepIsSubmitted?n.isSubmitted:!1,dirtyFields:ct?{}:Ce.keepDirtyValues?Ce.keepDefaultValues&&a?AA(i,a):n.dirtyFields:Ce.keepDefaultValues&&de?AA(i,de):Ce.keepDirty?n.dirtyFields:{},touchedFields:Ce.keepTouched?n.touchedFields:{},errors:Ce.keepErrors?n.errors:{},isSubmitSuccessful:Ce.keepIsSubmitSuccessful?n.isSubmitSuccessful:!1,isSubmitting:!1})},ut=(de,Ce)=>jt(R0(de)?de(a):de,Ce);return{control:{register:We,unregister:ae,getFieldState:Se,handleSubmit:st,setError:ke,_executeSchema:L,_getWatch:re,_getDirty:V,_updateValid:T,_removeUnmounted:W,_updateFieldArray:x,_updateDisabledField:Xe,_getFieldArray:ee,_reset:jt,_resetDefaultValues:()=>R0(t.defaultValues)&&t.defaultValues().then(de=>{ut(de,t.resetOptions),f.state.next({isLoading:!1})}),_updateFormState:de=>{n={...n,...de}},_disableForm:xt,_subjects:f,_proxyFormState:d,_setErrors:_,get _fields(){return r},get _formValues(){return a},get _state(){return s},set _state(de){s=de},get _defaultValues(){return i},get _names(){return o},set _names(de){o=de},get _formState(){return n},set _formState(de){n=de},get _options(){return t},set _options(de){t={...t,...de}}},trigger:H,register:We,handleSubmit:st,watch:$e,setValue:K,getValues:Re,reset:ut,resetField:Pt,clearErrors:Z,unregister:ae,setError:ke,setFocus:(de,Ce={})=>{const Ne=Zt(r,de),Ke=Ne&&Ne._f;if(Ke){const ct=Ke.refs?Ke.refs[0]:Ke.ref;ct.focus&&(ct.focus(),Ce.shouldSelect&&ct.select())}},getFieldState:Se}}function vue(e={}){const t=rn.useRef(),n=rn.useRef(),[r,i]=rn.useState({isDirty:!1,isValidating:!1,isLoading:R0(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},validatingFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:R0(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...j$e(e),formState:r});const a=t.current.control;return a._options=e,mF({subject:a._subjects.state,next:s=>{uue(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),rn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),rn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),rn.useEffect(()=>{e.values&&!Ug(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),rn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),rn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),rn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=lue(r,a),t.current}var yF={},H$e=Ni;Object.defineProperty(yF,"__esModule",{value:!0});var Oue=yF.default=void 0,Q$e=H$e(ea()),W$e=R;Oue=yF.default=(0,Q$e.default)((0,W$e.jsx)("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2m5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12z"}),"Cancel");var vF={},V$e=Ni;Object.defineProperty(vF,"__esModule",{value:!0});var Sue=vF.default=void 0,q$e=V$e(ea()),G$e=R;Sue=vF.default=(0,q$e.default)((0,G$e.jsx)("path",{d:"M12 7c2.76 0 5 2.24 5 5 0 .65-.13 1.26-.36 1.83l2.92 2.92c1.51-1.26 2.7-2.89 3.43-4.75-1.73-4.39-6-7.5-11-7.5-1.4 0-2.74.25-3.98.7l2.16 2.16C10.74 7.13 11.35 7 12 7M2 4.27l2.28 2.28.46.46C3.08 8.3 1.78 10.02 1 12c1.73 4.39 6 7.5 11 7.5 1.55 0 3.03-.3 4.38-.84l.42.42L19.73 22 21 20.73 3.27 3zM7.53 9.8l1.55 1.55c-.05.21-.08.43-.08.65 0 1.66 1.34 3 3 3 .22 0 .44-.03.65-.08l1.55 1.55c-.67.33-1.41.53-2.2.53-2.76 0-5-2.24-5-5 0-.79.2-1.53.53-2.2m4.31-.78 3.15 3.15.02-.16c0-1.66-1.34-3-3-3z"}),"VisibilityOff");function _8(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 rFe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function iFe(e,t){return Y$e(e)||J$e(e,t)||wue(e,t)||eFe()}function Eue(e){return Z$e(e)||K$e(e)||wue(e)||tFe()}function aFe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function wue(e,t){if(e){if(typeof e=="string")return _8(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 _8(e,t)}}var Tue=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.type,s=e.required,o=e.name,l=e.control,u=e.component,d=u===void 0?TT:u,f=e.inputRef,p=e.transform,g=Lu(e,["rules","parseError","type","required","name","control","component","inputRef","transform"]),O=Op(),S=i||O,T=Un({},r,s&&!r.required&&{required:"This field is required"},a==="email"&&!r.pattern&&{pattern:{value:/^(([^<>()\[\]\\.,;:\s@"]+(\.[^<>()\[\]\\.,;:\s@"]+)*)|(".+"))@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\])|(([a-zA-Z\-0-9]+\.)+[a-zA-Z]{2,}))$/,message:"Please enter a valid email address"}}),w=Wf({name:o,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,I=Qf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(U){return U??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(U){var B=U.target.value;return a!=="number"?B:B===""?null:B==null?B:Number(B)}}}),N=I.value,D=I.onChange,L=Or(x.ref,f);return R.jsx(d,vi(Un({},g),{name:x.name,value:N,onChange:function(U){D(U),typeof g.onChange=="function"&&g.onChange(U)},onBlur:x.onBlur,required:s,type:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,ref:t,inputRef:L}))});Tue.displayName="TextFieldElement";var FT=Tue;function mO(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=Lu(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),R.jsx(oue,vi(Un({},i),{children:R.jsx("form",vi(Un({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):R.jsx(sFe,Un({onSuccess:a,onError:s,FormProps:r,children:n},o))}function sFe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=Lu(e,["onSuccess","onError","FormProps","children"]),s=vue(Un({},a)),o=s.handleSubmit;return R.jsx(oue,vi(Un({},s),{children:R.jsx("form",vi(Un({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var oFe=M.forwardRef(function(e,t){var n=e.name,r=e.rules,i=r===void 0?{}:r,a=e.required,s=e.parseError,o=e.label,l=e.control,u=e.helperText,d=e.labelProps,f=e.inputRef,p=e.transform,g=Lu(e,["name","rules","required","parseError","label","control","helperText","labelProps","inputRef","transform"]),O=Op(),S=s||O,T=Un({},i,a&&!i.required&&{required:"This field is required"}),w=Wf({name:n,control:l,disabled:g.disabled,rules:T}),x=w.field,k=w.fieldState,_=k.error,I=Qf({value:x.value,onChange:x.onChange,transform:{input:p==null?void 0:p.input,output:typeof(p==null?void 0:p.output)=="function"?p==null?void 0:p.output:function(B,W){return W}}}),N=I.value,D=I.onChange,L=Or(x.ref,f),U=_?typeof S=="function"?S(_):_.message:u;return R.jsxs(Mc,{required:a,error:!!_,ref:t,children:[R.jsx(I$,{row:!0,children:R.jsx(hw,vi(Un({},d),{label:o||"",control:R.jsx(tR,vi(Un({},g),{color:g.color||"primary",sx:Eue(Array.isArray(g.sx)?g.sx:[g.sx]).concat([{color:_?"error.main":void 0}]),value:N,checked:!!N,onChange:function(B,W){D(B,W),typeof g.onChange=="function"&&g.onChange(B,W)},inputRef:L}))}))}),U&&R.jsx(uO,{error:!!_,children:U})]})});oFe.displayName="CheckboxElement";var xue=M.forwardRef(function(e,t){var n,r=e.name,i=e.required,a=e.valueKey,s=a===void 0?"id":a,o=e.labelKey,l=o===void 0?"label":o,u=e.options,d=u===void 0?[]:u,f=e.parseError,p=e.type,g=e.objectOnChange,O=e.rules,S=O===void 0?{}:O,T=e.control,w=e.inputRef,x=e.transform,k=Lu(e,["name","required","valueKey","labelKey","options","parseError","type","objectOnChange","rules","control","inputRef","transform"]),_=Op(),I=f||_,N=!!(!((n=k.SelectProps)===null||n===void 0)&&n.native),D=Un({},S,i&&!S.required&&{required:"This field is required"}),L=Wf({name:r,rules:D,disabled:k.disabled,control:T}),U=L.field,B=L.fieldState,W=B.error,V=Qf({value:U.value,onChange:U.onChange,transform:{input:typeof(x==null?void 0:x.input)=="function"?x.input:function(ne){var K,G;return(G=(K=ne==null?void 0:ne[s])!==null&&K!==void 0?K:ne)!==null&&G!==void 0?G:""},output:typeof(x==null?void 0:x.output)=="function"?x.output:function(ne){var K=ne.target.value;return p==="number"&&K&&(K=Number(K)),K}}}),re=V.value,ee=V.onChange,q=Or(U.ref,w);return p==="number"&&(typeof re>"u"?"undefined":aFe(re))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),R.jsxs(TT,vi(Un({},k),{name:r,value:re,onBlur:U.onBlur,ref:t,onChange:function(ne){if(ee(ne),typeof k.onChange=="function"){var K=ne.target.value;p==="number"&&K&&(K=Number(K)),g&&(K=d.find(function(G){return G[s]===K})),k.onChange(K)}},select:!0,required:i,error:!!W,helperText:W?typeof I=="function"?I(W):W.message:k.helperText,inputRef:q,children:[N&&R.jsx("option",{}),d.map(function(ne){var K,G="".concat(r,"_").concat(ne[s]),ie={value:(K=ne==null?void 0:ne[s])!==null&&K!==void 0?K:ne,disabled:El(ne,"disabled")?!!ne.disabled:!1,children:ne[l]};return N?R.jsx("option",Un({},ie),G):R.jsx(Od,Un({},ie),G)})]}))});xue.displayName="SelectElement";var C8=xue,lFe=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,d=e.valueKey,f=d===void 0?"id":d,p=e.returnObject,g=e.disabled,O=e.row,S=e.control,T=e.checkboxColor,w=e.rules,x=e.labelProps,k=e.transform,_=e.defaultValue,I=_===void 0?[]:_,N=Lu(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),D=Pc(),L=Op(),U=s||L,B=Wf({name:a,rules:o?{required:"This field is required"}:w,disabled:g,control:S,defaultValue:I}),W=B.field,V=B.fieldState,re=V.error,ee=V.invalid,q=Qf({value:W.value,onChange:W.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(H){return Array.isArray(H)?H:[]},output:k==null?void 0:k.output}}),ne=q.value,K=q.onChange,G=function(H){var Re=El(H,f)?H[f]:H,Se=ne.findIndex(function(ke){var $e=El(ke,f)?ke[f]:ke;return Re===$e}),Z=(Se===-1?Eue(ne).concat([H]):ne.filter(function(ke,$e){return Se!==$e})).map(function(ke){return p||!El(ke,f)?ke:ke[f]});K(Z),typeof N.onChange=="function"&&N.onChange(Z)},ie=re?typeof U=="function"?U(re):re.message:n;return R.jsxs(Mc,{error:ee,required:o,ref:t,children:[i?R.jsx(rR,{children:i}):null,R.jsx(I$,{row:O,children:r.map(function(H){var Re=El(H,f)?H[f]:H,Se=El(H,u)?H[u]:H,Z=ne.some(function(ke){return(El(ke,f)?ke[f]:ke)===Re});return M.createElement(hw,vi(Un({},x),{control:R.jsx(tR,{sx:{color:re?D.palette.error.main:void 0},color:T,value:Re,checked:Z,disabled:g,onChange:function(){return G(H)}}),label:"".concat(Se),key:"".concat(Re)}))})}),ie&&R.jsx(uO,{children:ie})]})});lFe.displayName="CheckboxButtonGroup";var uFe=48,cFe=8,dFe=M.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,d=e.itemKey,f=d===void 0?"id":d,p=e.itemValue,g=p===void 0?"":p,O=e.itemLabel,S=O===void 0?"label":O,T=e.required,w=T===void 0?!1:T,x=e.rules,k=x===void 0?{}:x,_=e.parseError,I=e.name,N=e.menuMaxHeight,D=N===void 0?uFe*4.5+cFe:N,L=e.menuMaxWidth,U=L===void 0?250:L,B=e.minWidth,W=B===void 0?120:B,V=e.helperText,re=e.showChips,ee=e.preserveOrder,q=e.control,ne=e.showCheckbox,K=e.formControlProps,G=e.inputRef,ie=e.transform,H=e.inputLabelProps,Re=Lu(e,["options","label","itemKey","itemValue","itemLabel","required","rules","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform","inputLabelProps"]),Se=Op(),Z=_||Se,ke=function(yt){var Ut,de;return(de=(Ut=o.find(function(Ce){var Ne;return((Ne=Ce[g||f])!==null&&Ne!==void 0?Ne:Ce)===yt}))===null||Ut===void 0?void 0:Ut[S])!==null&&de!==void 0?de:yt},$e=Un({},k,w&&!k.required&&{required:"This field is required"}),ae=Wf({name:I,rules:$e,disabled:Re.disabled,control:q}),Xe=ae.field,We=ae.fieldState,Ye=We.error,xt=Qf({value:Xe.value,onChange:Xe.onChange,transform:{input:typeof(ie==null?void 0:ie.input)=="function"?ie.input:function(yt){return Array.isArray(yt)?yt:[]},output:ie==null?void 0:ie.output}}),st=xt.value,Pt=xt.onChange,jt=Or(Xe.ref,G),ut=Ye?typeof Z=="function"?Z(Ye):Ye.message:V,Ot;return R.jsxs(Mc,vi(Un({},K),{style:Un({minWidth:W},K==null?void 0:K.style),variant:Re.variant,fullWidth:Re.fullWidth,error:!!Ye,size:Re.size,ref:t,children:[u&&R.jsx(ooe,vi(Un({},H),{size:Re.size==="small"?"small":H==null?void 0:H.size,error:!!Ye,htmlFor:Re.id||"select-multi-select-".concat(I),required:w,children:u})),R.jsx(M$,vi(Un({},Re),{id:Re.id||"select-multi-select-".concat(I),multiple:!0,label:u||void 0,error:!!Ye,value:st,required:w,onChange:Pt,onBlur:Xe.onBlur,MenuProps:vi(Un({},Re.MenuProps),{slotProps:vi(Un({},(n=Re.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:Un({},(Ot=(i=Re.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Ot!==void 0?Ot:{style:Un({maxHeight:D,width:U},El((s=Re.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof Re.MenuProps.slotProps.paper.style=="object"&&Un({},Re.MenuProps.slotProps.paper.style))})})}),renderValue:typeof Re.renderValue=="function"?Re.renderValue:re?function(yt){return R.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(ee?o.filter(function(Ut){return yt.includes(Ut)}):yt||[]).map(function(Ut){return R.jsx(Zse,{label:ke(Ut),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Pt((Array.isArray(st)?st:[]).filter(function(de){return de!==Ut}))},deleteIcon:R.jsx(Oue,{onMouseDown:function(de){de.stopPropagation()}})},Ut)})})}:function(yt){return Array.isArray(yt)?yt.map(ke).join(", "):""},inputRef:jt,children:o.map(function(yt){var Ut=yt[g||f]||yt,de=Array.isArray(st)?st.some(function(Ce){return Ce===Ut}):!1;return R.jsxs(Od,{value:Ut,sx:{fontWeight:function(Ce){return de?Ce.typography.fontWeightBold:Ce.typography.fontWeightRegular}},children:[ne&&R.jsx(tR,{checked:de}),R.jsx(Pf,{primary:yt[S]||yt})]},Ut)})})),ut&&R.jsx(uO,{error:!!Ye,children:ut})]}))});dFe.displayName="MultiSelectElement";var kue=M.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?R.jsx(sF,{}):R.jsx(Sue,{})}:r,a=Lu(e,["iconColor","renderIcon"]),s=iFe(M.useState(!0),2),o=s[0],l=s[1];return R.jsx(FT,vi(Un({},a),{ref:t,InputProps:{endAdornment:R.jsx(qP,{position:"end",children:R.jsx(ss,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});kue.displayName="PasswordElement";var fFe=kue,hFe=M.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,d=u===void 0?"id":u,f=e.disabledKey,p=f===void 0?"disabled":f,g=e.required,O=e.emptyOptionLabel,S=e.returnObject,T=e.row,w=e.control,x=e.type,k=e.labelProps,_=e.disabled,I=e.formLabelProps,N=e.transform,D=e.rules,L=D===void 0?{}:D,U=Lu(e,["helperText","options","label","name","parseError","labelKey","valueKey","disabledKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform","rules"]),B=Pc(),W=Op(),V=s||W,re=Un({},L,g&&!L.required&&{required:"This field is required"}),ee=Wf({name:a,rules:re,disabled:_,control:w}),q=ee.field,ne=ee.fieldState,K=ne.error,G=Qf({value:q.value,onChange:q.onChange,transform:{input:typeof(N==null?void 0:N.input)=="function"?N.input:function(Z){return Z||""},output:typeof(N==null?void 0:N.output)=="function"?N==null?void 0:N.output:function(Z,ke){return ke&&x==="number"?Number(ke):ke}}}),ie=G.value,H=G.onChange,Re=K?typeof V=="function"?V(K):K.message:n,Se=function(Z,ke){var $e=S?r.find(function(ae){return ae[d]===ke}):ke;H(Z,$e),typeof U.onChange=="function"&&U.onChange($e)};return R.jsxs(Mc,{error:!!K,ref:t,children:[i&&R.jsx(rR,vi(Un({},I),{required:g,error:!!K,children:i})),R.jsxs(MNe,{onChange:Se,name:a,row:T,value:ie,children:[O&&R.jsx(hw,vi(Un({},k),{control:R.jsx(yY,{sx:{color:K?B.palette.error.main:void 0},checked:!ie}),label:O,value:""})),r.map(function(Z){var ke=Z[d],$e=Z[p]||!1;ke===void 0&&console.error("RadioButtonGroup: valueKey ".concat(d," does not exist on option"),Z);var ae=S?ie==null?void 0:ie[d]:ie;x==="number"&&(ae=Number(ae));var Xe=ae===ke;return M.createElement(hw,vi(Un({},k),{control:R.jsx(yY,{sx:{color:K?B.palette.error.main:void 0},disabled:_||$e,checked:Xe}),value:ke,label:Z[l],key:ke}))})]}),Re&&R.jsx(uO,{children:Re})]})});hFe.displayName="RadioButtonGroup";var pFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=Lu(e,["name","control","switchProps","transform"]),o=Wf({name:n,control:r,disabled:s.disabled}),l=o.field,u=Qf({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,O){return O}}}),d=u.value,f=u.onChange,p=Or(l.ref,i==null?void 0:i.ref);return R.jsx(hw,Un({ref:t,control:R.jsx(PDe,vi(Un({},i),{name:l.name,value:d,onChange:function(g,O){f(g,O),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,O)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:p,checked:!!d}))},s))});pFe.displayName="SwitchElement";var mFe=M.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=Lu(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=fue({name:n,control:i});return R.jsx(fFe,vi(Un({control:i},a),{ref:t,rules:{validate:function(o){return o===s||(r??"Password should match")}}}))});mFe.displayName="PasswordRepeatElement";var gFe=M.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,d=e.loadingIndicator,f=e.required,p=e.multiple,g=e.label,O=e.parseError,S=e.transform,T=e.matchId,w=Op(),x=O||w,k=Un({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),_=Wf({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),I=_.field,N=_.fieldState,D=N.error,L=function(K){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(K):El(K,"label")?"".concat(K==null?void 0:K.label):"".concat(K)},U=function(K,G){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(K,G);var ie=El(K,"id")?K.id:K,H=El(G,"id")?G.id:G;return ie===H},B=function(K){return s.find(function(G){return T&&El(G,"id")?G.id===K:U(G,K)})},W=Qf({value:I.value,onChange:I.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(K){var G;return p?(Array.isArray(K)?K:[]).map(B):(G=B(K))!==null&&G!==void 0?G:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(K,G){if(p){var ie=Array.isArray(G)?G:[];return T?ie.map(function(H){return El(H,"id")?H.id:H}):ie}return T&&El(G,"id")?G.id:G}}}),V=W.value,re=W.onChange,ee=Or(I.ref,n==null?void 0:n.inputRef),q=d||R.jsx(kd,{color:"inherit",size:20}),ne;return R.jsx(ZCe,vi(Un({},r),{value:V,loading:o,multiple:p,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!p,isOptionEqualToValue:U,getOptionLabel:L,onChange:function(K,G,ie,H){re(K,G,ie,H),r!=null&&r.onChange&&r.onChange(K,G,ie,H)},ref:t,renderOption:(ne=r==null?void 0:r.renderOption)!==null&&ne!==void 0?ne:l?function(K,G,ie){var H=ie.selected;return R.jsxs("li",vi(Un({},K),{children:[R.jsx(tR,{sx:{marginRight:1},checked:H}),L(G)]}))}:void 0,onBlur:function(K){I.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(K)},renderInput:function(K){return R.jsx(TT,vi(Un({name:i,required:u!=null&&u.required?!0:f,label:g},n,K),{error:!!D,InputLabelProps:Un({},K.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:Un(vi(Un({},K.InputProps),{endAdornment:R.jsxs(R.Fragment,{children:[o?q:null,K.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:Un({},K.inputProps,n==null?void 0:n.inputProps),helperText:D?typeof x=="function"?x(D):D.message:n==null?void 0:n.helperText,inputRef:ee}))}}))});gFe.displayName="AutocompleteElement";var bFe=M.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,d=e.transform,f=Lu(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),p=Op(),g=o||p,O=Un({},s,l&&!s.required&&{required:"This field is required"}),S=Wf({name:n,control:r,disabled:f.disabled,rules:O}),T=S.field,w=S.fieldState,x=w.error,k=w.invalid,_=Qf({value:T.value,onChange:T.onChange,transform:d}),I=_.value,N=_.onChange,D=x?typeof g=="function"?g(x):x.message:null;return R.jsxs(Mc,vi(Un({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&R.jsx(rR,{component:"legend",error:k,children:i}),R.jsx(vDe,vi(Un({},f),{value:I,onChange:N,valueLabelDisplay:f.valueLabelDisplay||"auto"})),D&&R.jsx(uO,{error:k,children:D})]}))});bFe.displayName="SliderElement";var yFe=M.forwardRef(function(e,t){var n=e.rules,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,d=e.inputRef,f=e.inputProps,p=e.transform,g=Lu(e,["rules","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),O=Op(),S=i||O,T=Un({},r,a&&!r.required&&{required:"This field is required"}),w=Wf({name:s,control:o,rules:T,disabled:g.disabled}),x=w.field,k=w.fieldState,_=k.error,I=Qf({value:x.value,onChange:x.onChange,transform:{input:typeof(p==null?void 0:p.input)=="function"?p.input:function(U){return U??""},output:typeof(p==null?void 0:p.output)=="function"?p.output:function(U){return U.target.value}}}),N=I.value,D=I.onChange,L=Or(x.ref,d);return R.jsx(TT,vi(Un({},g),{name:s,value:N,onChange:function(U){D(U),typeof g.onChange=="function"&&g.onChange(U)},onBlur:x.onBlur,required:a,error:!!_,helperText:_?typeof S=="function"?S(_):_.message:g.helperText,inputRef:L,multiline:!0,InputProps:{inputComponent:Xse,inputProps:Un({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});yFe.displayName="TextareaAutosizeElement";const My=["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 Aue;function tn(){return Aue.apply(null,arguments)}function vFe(e){Aue=e}function Ad(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function s1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function Hr(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(Hr(e,t))return!1;return!0}function ml(e){return e===void 0}function op(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function BT(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function _ue(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var TF=/(\[[^\[]*\])|(\\)?([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,_A=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,aD={},$y={};function Rn(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&($y[e]=i),t&&($y[t[0]]=function(){return jf(i.apply(this,arguments),t[1],t[2])}),n&&($y[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function TFe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function xFe(e){var t=e.match(TF),n,r;for(n=0,r=t.length;n=0&&_A.test(e);)e=e.replace(_A,r),_A.lastIndex=0,n-=1;return e}var kFe={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 AFe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(TF).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var _Fe="Invalid date";function CFe(){return this._invalidDate}var RFe="%d",IFe=/\d{1,2}/;function NFe(e){return this._ordinal.replace("%d",e)}var DFe={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 PFe(e,t,n,r){var i=this._relativeTime[n];return qf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function LFe(e,t){var n=this._relativeTime[e>0?"future":"past"];return qf(n)?n(t):n.replace(/%s/i,t)}var YZ={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Fc(e){return typeof e=="string"?YZ[e]||YZ[e.toLowerCase()]:void 0}function xF(e){var t={},n,r;for(r in e)Hr(e,r)&&(n=Fc(r),n&&(t[n]=e[r]));return t}var MFe={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 $Fe(e){var t=[],n;for(n in e)Hr(e,n)&&t.push({unit:n,priority:MFe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Nue=/\d/,Mu=/\d\d/,Due=/\d{3}/,kF=/\d{4}/,ER=/[+-]?\d{6}/,zi=/\d\d?/,Pue=/\d\d\d\d?/,Lue=/\d\d\d\d\d\d?/,wR=/\d{1,3}/,AF=/\d{1,4}/,TR=/[+-]?\d{1,6}/,gO=/\d+/,xR=/[+-]?\d+/,FFe=/Z|[+-]\d\d:?\d\d/gi,kR=/Z|[+-]\d\d(?::?\d\d)?/gi,BFe=/[+-]?\d+(\.\d{1,3})?/,zT=/[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,bO=/^[1-9]\d?/,_F=/^([1-9]\d|\d)/,B3;B3={};function dn(e,t,n){B3[e]=qf(t)?t:function(r,i){return r&&n?n:t}}function UFe(e,t){return Hr(B3,e)?B3[e](t._strict,t._locale):new RegExp(zFe(e))}function zFe(e){return qh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function qh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function oc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function wr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=oc(t)),n}var D8={};function fi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),op(t)&&(r=function(a,s){s[t]=wr(a)}),i=e.length,n=0;n68?1900:2e3)};var Mue=yO("FullYear",!0);function WFe(){return AR(this.year())}function yO(e,t){return function(n){return n!=null?($ue(this,e,n),tn.updateOffset(this,t),this):Ew(this,e)}}function Ew(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 $ue(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!AR(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function VFe(e){return e=Fc(e),qf(this[e])?this[e]():this}function qFe(e,t){if(typeof e=="object"){e=xF(e);var n=$Fe(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function ww(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 U3(e,t,n){var r=7+t-n,i=(7+ww(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Hue(e,t,n,r,i){var a=(7+n-r)%7,s=U3(e,r,i),o=1+7*(t-1)+a+s,l,u;return o<=0?(l=e-1,u=y2(l)+o):o>y2(e)?(l=e+1,u=o-y2(e)):(l=e,u=o),{year:l,dayOfYear:u}}function Tw(e,t,n){var r=U3(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+Gh(s,t,n)):i>Gh(e.year(),t,n)?(a=i-Gh(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Gh(e,t,n){var r=U3(e,t,n),i=U3(e+1,t,n);return(y2(e)-r+i)/7}Rn("w",["ww",2],"wo","week");Rn("W",["WW",2],"Wo","isoWeek");dn("w",zi,bO);dn("ww",zi,Mu);dn("W",zi,bO);dn("WW",zi,Mu);jT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=wr(e)});function sBe(e){return Tw(e,this._week.dow,this._week.doy).week}var oBe={dow:0,doy:6};function lBe(){return this._week.dow}function uBe(){return this._week.doy}function cBe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function dBe(e){var t=Tw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Rn("d",0,"do","day");Rn("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Rn("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Rn("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Rn("e",0,0,"weekday");Rn("E",0,0,"isoWeekday");dn("d",zi);dn("e",zi);dn("E",zi);dn("dd",function(e,t){return t.weekdaysMinRegex(e)});dn("ddd",function(e,t){return t.weekdaysShortRegex(e)});dn("dddd",function(e,t){return t.weekdaysRegex(e)});jT(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:ir(n).invalidWeekday=e});jT(["d","e","E"],function(e,t,n,r){t[r]=wr(e)});function fBe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function hBe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function RF(e,t){return e.slice(t,7).concat(e.slice(0,t))}var pBe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Que="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),mBe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),gBe=zT,bBe=zT,yBe=zT;function vBe(e,t){var n=Ad(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?RF(n,this._week.dow):e?n[e.day()]:n}function OBe(e){return e===!0?RF(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function SBe(e){return e===!0?RF(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function EBe(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Vf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Ra.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Ra.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Ra.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Ra.call(this._weekdaysParse,s),i!==-1||(i=Ra.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Ra.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Ra.call(this._shortWeekdaysParse,s),i!==-1||(i=Ra.call(this._weekdaysParse,s),i!==-1)?i:(i=Ra.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Ra.call(this._minWeekdaysParse,s),i!==-1||(i=Ra.call(this._weekdaysParse,s),i!==-1)?i:(i=Ra.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function wBe(e,t,n){var r,i,a;if(this._weekdaysParseExact)return EBe.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Vf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function TBe(e){if(!this.isValid())return e!=null?this:NaN;var t=Ew(this,"Day");return e!=null?(e=fBe(e,this.localeData()),this.add(e-t,"d")):t}function xBe(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 kBe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=hBe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function ABe(e){return this._weekdaysParseExact?(Hr(this,"_weekdaysRegex")||IF.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(Hr(this,"_weekdaysRegex")||(this._weekdaysRegex=gBe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function _Be(e){return this._weekdaysParseExact?(Hr(this,"_weekdaysRegex")||IF.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(Hr(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=bBe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function CBe(e){return this._weekdaysParseExact?(Hr(this,"_weekdaysRegex")||IF.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(Hr(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=yBe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function IF(){function e(d,f){return f.length-d.length}var t=[],n=[],r=[],i=[],a,s,o,l,u;for(a=0;a<7;a++)s=Vf([2e3,1]).day(a),o=qh(this.weekdaysMin(s,"")),l=qh(this.weekdaysShort(s,"")),u=qh(this.weekdays(s,"")),t.push(o),n.push(l),r.push(u),i.push(o),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function NF(){return this.hours()%12||12}function RBe(){return this.hours()||24}Rn("H",["HH",2],0,"hour");Rn("h",["hh",2],0,NF);Rn("k",["kk",2],0,RBe);Rn("hmm",0,0,function(){return""+NF.apply(this)+jf(this.minutes(),2)});Rn("hmmss",0,0,function(){return""+NF.apply(this)+jf(this.minutes(),2)+jf(this.seconds(),2)});Rn("Hmm",0,0,function(){return""+this.hours()+jf(this.minutes(),2)});Rn("Hmmss",0,0,function(){return""+this.hours()+jf(this.minutes(),2)+jf(this.seconds(),2)});function Wue(e,t){Rn(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Wue("a",!0);Wue("A",!1);function Vue(e,t){return t._meridiemParse}dn("a",Vue);dn("A",Vue);dn("H",zi,_F);dn("h",zi,bO);dn("k",zi,bO);dn("HH",zi,Mu);dn("hh",zi,Mu);dn("kk",zi,Mu);dn("hmm",Pue);dn("hmmss",Lue);dn("Hmm",Pue);dn("Hmmss",Lue);fi(["H","HH"],as);fi(["k","kk"],function(e,t,n){var r=wr(e);t[as]=r===24?0:r});fi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});fi(["h","hh"],function(e,t,n){t[as]=wr(e),ir(n).bigHour=!0});fi("hmm",function(e,t,n){var r=e.length-2;t[as]=wr(e.substr(0,r)),t[bd]=wr(e.substr(r)),ir(n).bigHour=!0});fi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[as]=wr(e.substr(0,r)),t[bd]=wr(e.substr(r,2)),t[Qh]=wr(e.substr(i)),ir(n).bigHour=!0});fi("Hmm",function(e,t,n){var r=e.length-2;t[as]=wr(e.substr(0,r)),t[bd]=wr(e.substr(r))});fi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[as]=wr(e.substr(0,r)),t[bd]=wr(e.substr(r,2)),t[Qh]=wr(e.substr(i))});function IBe(e){return(e+"").toLowerCase().charAt(0)==="p"}var NBe=/[ap]\.?m?\.?/i,DBe=yO("Hours",!0);function PBe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var que={calendar:EFe,longDateFormat:kFe,invalidDate:_Fe,ordinal:RFe,dayOfMonthOrdinalParse:IFe,relativeTime:DFe,months:YFe,monthsShort:Fue,week:oBe,weekdays:pBe,weekdaysMin:mBe,weekdaysShort:Que,meridiemParse:NBe},Xi={},dE={},xw;function LBe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=_R(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&LBe(a,r)>=n-1)break;n--}t++}return xw}function $Be(e){return!!(e&&e.match("^[^/\\\\]*$"))}function _R(e){var t=null,n;if(Xi[e]===void 0&&typeof M_<"u"&&M_&&M_.exports&&$Be(e))try{t=xw._abbr,n=require,n("./locale/"+e),q0(t)}catch{Xi[e]=null}return Xi[e]}function q0(e,t){var n;return e&&(ml(t)?n=Sp(e):n=DF(e,t),n?xw=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),xw._abbr}function DF(e,t){if(t!==null){var n,r=que;if(t.abbr=e,Xi[e]!=null)Rue("defineLocaleOverride","use moment.updateLocale(localeName, config) to change an existing locale. moment.defineLocale(localeName, config) should only be used for creating a new locale See http://momentjs.com/guides/#/warnings/define-locale/ for more info."),r=Xi[e]._config;else if(t.parentLocale!=null)if(Xi[t.parentLocale]!=null)r=Xi[t.parentLocale]._config;else if(n=_R(t.parentLocale),n!=null)r=n._config;else return dE[t.parentLocale]||(dE[t.parentLocale]=[]),dE[t.parentLocale].push({name:e,config:t}),null;return Xi[e]=new wF(I8(r,t)),dE[e]&&dE[e].forEach(function(i){DF(i.name,i.config)}),q0(e),Xi[e]}else return delete Xi[e],null}function FBe(e,t){if(t!=null){var n,r,i=que;Xi[e]!=null&&Xi[e].parentLocale!=null?Xi[e].set(I8(Xi[e]._config,t)):(r=_R(e),r!=null&&(i=r._config),t=I8(i,t),r==null&&(t.abbr=e),n=new wF(t),n.parentLocale=Xi[e],Xi[e]=n),q0(e)}else Xi[e]!=null&&(Xi[e].parentLocale!=null?(Xi[e]=Xi[e].parentLocale,e===q0()&&q0(e)):Xi[e]!=null&&delete Xi[e]);return Xi[e]}function Sp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return xw;if(!Ad(e)){if(t=_R(e),t)return t;e=[e]}return MBe(e)}function BBe(){return N8(Xi)}function PF(e){var t,n=e._a;return n&&ir(e).overflow===-2&&(t=n[Hh]<0||n[Hh]>11?Hh:n[yf]<1||n[yf]>CF(n[go],n[Hh])?yf:n[as]<0||n[as]>24||n[as]===24&&(n[bd]!==0||n[Qh]!==0||n[zg]!==0)?as:n[bd]<0||n[bd]>59?bd:n[Qh]<0||n[Qh]>59?Qh:n[zg]<0||n[zg]>999?zg:-1,ir(e)._overflowDayOfYear&&(tyf)&&(t=yf),ir(e)._overflowWeeks&&t===-1&&(t=HFe),ir(e)._overflowWeekday&&t===-1&&(t=QFe),ir(e).overflow=t),e}var UBe=/^\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)?)?$/,zBe=/^\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)?)?$/,jBe=/Z|[+-]\d\d(?::?\d\d)?/,CA=[["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]],sD=[["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/]],HBe=/^\/?Date\((-?\d+)/i,QBe=/^(?:(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}))$/,WBe={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 Gue(e){var t,n,r=e._i,i=UBe.exec(r)||zBe.exec(r),a,s,o,l,u=CA.length,d=sD.length;if(i){for(ir(e).iso=!0,t=0,n=u;ty2(s)||e._dayOfYear===0)&&(ir(e)._overflowDayOfYear=!0),n=ww(s,0,e._dayOfYear),e._a[Hh]=n.getUTCMonth(),e._a[yf]=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[as]===24&&e._a[bd]===0&&e._a[Qh]===0&&e._a[zg]===0&&(e._nextDay=!0,e._a[as]=0),e._d=(e._useUTC?ww:aBe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[as]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(ir(e).weekdayMismatch=!0)}}function JBe(e){var t,n,r,i,a,s,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=Wb(t.GG,e._a[go],Tw(Ui(),1,4).year),r=Wb(t.W,1),i=Wb(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Tw(Ui(),a,s),n=Wb(t.gg,e._a[go],u.year),r=Wb(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Gh(n,a,s)?ir(e)._overflowWeeks=!0:l!=null?ir(e)._overflowWeekday=!0:(o=Hue(n,r,i,a,s),e._a[go]=o.year,e._dayOfYear=o.dayOfYear)}tn.ISO_8601=function(){};tn.RFC_2822=function(){};function MF(e){if(e._f===tn.ISO_8601){Gue(e);return}if(e._f===tn.RFC_2822){Yue(e);return}e._a=[],ir(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,u,d;for(i=Iue(e._f,e._locale).match(TF)||[],d=i.length,n=0;n0&&ir(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),$y[a]?(r?ir(e).empty=!1:ir(e).unusedTokens.push(a),jFe(a,r,e)):e._strict&&!r&&ir(e).unusedTokens.push(a);ir(e).charsLeftOver=o-l,t.length>0&&ir(e).unusedInput.push(t),e._a[as]<=12&&ir(e).bigHour===!0&&e._a[as]>0&&(ir(e).bigHour=void 0),ir(e).parsedDateParts=e._a.slice(0),ir(e).meridiem=e._meridiem,e._a[as]=eUe(e._locale,e._a[as],e._meridiem),u=ir(e).era,u!==null&&(e._a[go]=e._locale.erasConvertYear(u,e._a[go])),LF(e),PF(e)}function eUe(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 tUe(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){ir(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:SR()});function Kue(e,t){var n,r;if(t.length===1&&Ad(t[0])&&(t=t[0]),!t.length)return Ui();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function EUe(){if(!ml(this._isDSTShifted))return this._isDSTShifted;var e={},t;return EF(e,this),e=Zue(e),e._a?(t=e._isUTC?Vf(e._a):Ui(e._a),this._isDSTShifted=this.isValid()&&hUe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function wUe(){return this.isValid()?!this._isUTC:!1}function TUe(){return this.isValid()?this._isUTC:!1}function ece(){return this.isValid()?this._isUTC&&this._offset===0:!1}var xUe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,kUe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Pd(e,t){var n=e,r=null,i,a,s;return r_(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:op(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=xUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:wr(r[yf])*i,h:wr(r[as])*i,m:wr(r[bd])*i,s:wr(r[Qh])*i,ms:wr(P8(r[zg]*1e3))*i}):(r=kUe.exec(e))?(i=r[1]==="-"?-1:1,n={y:pg(r[2],i),M:pg(r[3],i),w:pg(r[4],i),d:pg(r[5],i),h:pg(r[6],i),m:pg(r[7],i),s:pg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=AUe(Ui(n.from),Ui(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new CR(n),r_(e)&&Hr(e,"_locale")&&(a._locale=e._locale),r_(e)&&Hr(e,"_isValid")&&(a._isValid=e._isValid),a}Pd.fn=CR.prototype;Pd.invalid=fUe;function pg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function XZ(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 AUe(e,t){var n;return e.isValid()&&t.isValid()?(t=FF(t,e),e.isBefore(t)?n=XZ(e,t):(n=XZ(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tce(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(Rue(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Pd(n,r),nce(this,i,e),this}}function nce(e,t,n,r){var i=t._milliseconds,a=P8(t._days),s=P8(t._months);e.isValid()&&(r=r??!0,s&&Uue(e,Ew(e,"Month")+s*n),a&&$ue(e,"Date",Ew(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&tn.updateOffset(e,a||s))}var _Ue=tce(1,"add"),CUe=tce(-1,"subtract");function rce(e){return typeof e=="string"||e instanceof String}function RUe(e){return _d(e)||BT(e)||rce(e)||op(e)||NUe(e)||IUe(e)||e===null||e===void 0}function IUe(e){var t=s1(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,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?n_(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):qf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",n_(n,"Z")):n_(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function VUe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function qUe(e){e||(e=this.isUtc()?tn.defaultFormatUtc:tn.defaultFormat);var t=n_(this,e);return this.localeData().postformat(t)}function GUe(e,t){return this.isValid()&&(_d(e)&&e.isValid()||Ui(e).isValid())?Pd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function YUe(e){return this.from(Ui(),e)}function ZUe(e,t){return this.isValid()&&(_d(e)&&e.isValid()||Ui(e).isValid())?Pd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function XUe(e){return this.to(Ui(),e)}function ice(e){var t;return e===void 0?this._locale._abbr:(t=Sp(e),t!=null&&(this._locale=t),this)}var ace=$c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function sce(){return this._locale}var z3=1e3,Fy=60*z3,j3=60*Fy,oce=(365*400+97)*24*j3;function By(e,t){return(e%t+t)%t}function lce(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-oce:new Date(e,t,n).valueOf()}function uce(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-oce:Date.UTC(e,t,n)}function KUe(e){var t,n;if(e=Fc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?uce:lce,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-=By(t+(this._isUTC?0:this.utcOffset()*Fy),j3);break;case"minute":t=this._d.valueOf(),t-=By(t,Fy);break;case"second":t=this._d.valueOf(),t-=By(t,z3);break}return this._d.setTime(t),tn.updateOffset(this,!0),this}function JUe(e){var t,n;if(e=Fc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?uce:lce,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+=j3-By(t+(this._isUTC?0:this.utcOffset()*Fy),j3)-1;break;case"minute":t=this._d.valueOf(),t+=Fy-By(t,Fy)-1;break;case"second":t=this._d.valueOf(),t+=z3-By(t,z3)-1;break}return this._d.setTime(t),tn.updateOffset(this,!0),this}function eze(){return this._d.valueOf()-(this._offset||0)*6e4}function tze(){return Math.floor(this.valueOf()/1e3)}function nze(){return new Date(this.valueOf())}function rze(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function ize(){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 aze(){return this.isValid()?this.toISOString():null}function sze(){return SF(this)}function oze(){return I0({},ir(this))}function lze(){return ir(this).overflow}function uze(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Rn("N",0,0,"eraAbbr");Rn("NN",0,0,"eraAbbr");Rn("NNN",0,0,"eraAbbr");Rn("NNNN",0,0,"eraName");Rn("NNNNN",0,0,"eraNarrow");Rn("y",["y",1],"yo","eraYear");Rn("y",["yy",2],0,"eraYear");Rn("y",["yyy",3],0,"eraYear");Rn("y",["yyyy",4],0,"eraYear");dn("N",BF);dn("NN",BF);dn("NNN",BF);dn("NNNN",Oze);dn("NNNNN",Sze);fi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?ir(n).era=i:ir(n).invalidEra=e});dn("y",gO);dn("yy",gO);dn("yyy",gO);dn("yyyy",gO);dn("yo",Eze);fi(["y","yy","yyy","yyyy"],go);fi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[go]=n._locale.eraYearOrdinalParse(e,i):t[go]=parseInt(e,10)});function cze(e,t){var n,r,i,a=this._eras||Sp("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function fze(e,t){var n=e.since<=e.until?1:-1;return t===void 0?tn(e.since).year():tn(e.since).year()+(t-e.offset)*n}function hze(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),Cze.call(this,e,t,n,r,i))}function Cze(e,t,n,r,i){var a=Hue(e,t,n,r,i),s=ww(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Rn("Q",0,"Qo","quarter");dn("Q",Nue);fi("Q",function(e,t){t[Hh]=(wr(e)-1)*3});function Rze(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Rn("D",["DD",2],"Do","date");dn("D",zi,bO);dn("DD",zi,Mu);dn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});fi(["D","DD"],yf);fi("Do",function(e,t){t[yf]=wr(e.match(zi)[0])});var dce=yO("Date",!0);Rn("DDD",["DDDD",3],"DDDo","dayOfYear");dn("DDD",wR);dn("DDDD",Due);fi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=wr(e)});function Ize(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Rn("m",["mm",2],0,"minute");dn("m",zi,_F);dn("mm",zi,Mu);fi(["m","mm"],bd);var Nze=yO("Minutes",!1);Rn("s",["ss",2],0,"second");dn("s",zi,_F);dn("ss",zi,Mu);fi(["s","ss"],Qh);var Dze=yO("Seconds",!1);Rn("S",0,0,function(){return~~(this.millisecond()/100)});Rn(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Rn(0,["SSS",3],0,"millisecond");Rn(0,["SSSS",4],0,function(){return this.millisecond()*10});Rn(0,["SSSSS",5],0,function(){return this.millisecond()*100});Rn(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Rn(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Rn(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Rn(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});dn("S",wR,Nue);dn("SS",wR,Mu);dn("SSS",wR,Due);var N0,fce;for(N0="SSSS";N0.length<=9;N0+="S")dn(N0,gO);function Pze(e,t){t[zg]=wr(("0."+e)*1e3)}for(N0="S";N0.length<=9;N0+="S")fi(N0,Pze);fce=yO("Milliseconds",!1);Rn("z",0,0,"zoneAbbr");Rn("zz",0,0,"zoneName");function Lze(){return this._isUTC?"UTC":""}function Mze(){return this._isUTC?"Coordinated Universal Time":""}var $t=UT.prototype;$t.add=_Ue;$t.calendar=LUe;$t.clone=MUe;$t.diff=HUe;$t.endOf=JUe;$t.format=qUe;$t.from=GUe;$t.fromNow=YUe;$t.to=ZUe;$t.toNow=XUe;$t.get=VFe;$t.invalidAt=lze;$t.isAfter=$Ue;$t.isBefore=FUe;$t.isBetween=BUe;$t.isSame=UUe;$t.isSameOrAfter=zUe;$t.isSameOrBefore=jUe;$t.isValid=sze;$t.lang=ace;$t.locale=ice;$t.localeData=sce;$t.max=sUe;$t.min=aUe;$t.parsingFlags=oze;$t.set=qFe;$t.startOf=KUe;$t.subtract=CUe;$t.toArray=rze;$t.toObject=ize;$t.toDate=nze;$t.toISOString=WUe;$t.inspect=VUe;typeof Symbol<"u"&&Symbol.for!=null&&($t[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});$t.toJSON=aze;$t.toString=QUe;$t.unix=tze;$t.valueOf=eze;$t.creationData=uze;$t.eraName=hze;$t.eraNarrow=pze;$t.eraAbbr=mze;$t.eraYear=gze;$t.year=Mue;$t.isLeapYear=WFe;$t.weekYear=wze;$t.isoWeekYear=Tze;$t.quarter=$t.quarters=Rze;$t.month=zue;$t.daysInMonth=nBe;$t.week=$t.weeks=cBe;$t.isoWeek=$t.isoWeeks=dBe;$t.weeksInYear=Aze;$t.weeksInWeekYear=_ze;$t.isoWeeksInYear=xze;$t.isoWeeksInISOWeekYear=kze;$t.date=dce;$t.day=$t.days=TBe;$t.weekday=xBe;$t.isoWeekday=kBe;$t.dayOfYear=Ize;$t.hour=$t.hours=DBe;$t.minute=$t.minutes=Nze;$t.second=$t.seconds=Dze;$t.millisecond=$t.milliseconds=fce;$t.utcOffset=mUe;$t.utc=bUe;$t.local=yUe;$t.parseZone=vUe;$t.hasAlignedHourOffset=OUe;$t.isDST=SUe;$t.isLocal=wUe;$t.isUtcOffset=TUe;$t.isUtc=ece;$t.isUTC=ece;$t.zoneAbbr=Lze;$t.zoneName=Mze;$t.dates=$c("dates accessor is deprecated. Use date instead.",dce);$t.months=$c("months accessor is deprecated. Use month instead",zue);$t.years=$c("years accessor is deprecated. Use year instead",Mue);$t.zone=$c("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",gUe);$t.isDSTShifted=$c("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",EUe);function $ze(e){return Ui(e*1e3)}function Fze(){return Ui.apply(null,arguments).parseZone()}function hce(e){return e}var Qr=wF.prototype;Qr.calendar=wFe;Qr.longDateFormat=AFe;Qr.invalidDate=CFe;Qr.ordinal=NFe;Qr.preparse=hce;Qr.postformat=hce;Qr.relativeTime=PFe;Qr.pastFuture=LFe;Qr.set=SFe;Qr.eras=cze;Qr.erasParse=dze;Qr.erasConvertYear=fze;Qr.erasAbbrRegex=yze;Qr.erasNameRegex=bze;Qr.erasNarrowRegex=vze;Qr.months=KFe;Qr.monthsShort=JFe;Qr.monthsParse=tBe;Qr.monthsRegex=iBe;Qr.monthsShortRegex=rBe;Qr.week=sBe;Qr.firstDayOfYear=uBe;Qr.firstDayOfWeek=lBe;Qr.weekdays=vBe;Qr.weekdaysMin=SBe;Qr.weekdaysShort=OBe;Qr.weekdaysParse=wBe;Qr.weekdaysRegex=ABe;Qr.weekdaysShortRegex=_Be;Qr.weekdaysMinRegex=CBe;Qr.isPM=IBe;Qr.meridiem=PBe;function H3(e,t,n,r){var i=Sp(),a=Vf().set(r,t);return i[n](a,e)}function pce(e,t,n){if(op(e)&&(t=e,e=void 0),e=e||"",t!=null)return H3(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=H3(e,r,n,"month");return i}function zF(e,t,n,r){typeof e=="boolean"?(op(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,op(t)&&(n=t,t=void 0),t=t||"");var i=Sp(),a=e?i._week.dow:0,s,o=[];if(n!=null)return H3(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=H3(t,(s+a)%7,r,"day");return o}function Bze(e,t){return pce(e,t,"months")}function Uze(e,t){return pce(e,t,"monthsShort")}function zze(e,t,n){return zF(e,t,n,"weekdays")}function jze(e,t,n){return zF(e,t,n,"weekdaysShort")}function Hze(e,t,n){return zF(e,t,n,"weekdaysMin")}q0("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=wr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});tn.lang=$c("moment.lang is deprecated. Use moment.locale instead.",q0);tn.langData=$c("moment.langData is deprecated. Use moment.localeData instead.",Sp);var kh=Math.abs;function Qze(){var e=this._data;return this._milliseconds=kh(this._milliseconds),this._days=kh(this._days),this._months=kh(this._months),e.milliseconds=kh(e.milliseconds),e.seconds=kh(e.seconds),e.minutes=kh(e.minutes),e.hours=kh(e.hours),e.months=kh(e.months),e.years=kh(e.years),this}function mce(e,t,n,r){var i=Pd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function Wze(e,t){return mce(this,e,t,1)}function Vze(e,t){return mce(this,e,t,-1)}function KZ(e){return e<0?Math.floor(e):Math.ceil(e)}function qze(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=KZ(M8(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=oc(e/1e3),r.seconds=i%60,a=oc(i/60),r.minutes=a%60,s=oc(a/60),r.hours=s%24,t+=oc(s/24),l=oc(gce(t)),n+=l,t-=KZ(M8(l)),o=oc(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function gce(e){return e*4800/146097}function M8(e){return e*146097/4800}function Gze(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Fc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+gce(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(M8(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 Ep(e){return function(){return this.as(e)}}var bce=Ep("ms"),Yze=Ep("s"),Zze=Ep("m"),Xze=Ep("h"),Kze=Ep("d"),Jze=Ep("w"),eje=Ep("M"),tje=Ep("Q"),nje=Ep("y"),rje=bce;function ije(){return Pd(this)}function aje(e){return e=Fc(e),this.isValid()?this[e+"s"]():NaN}function F1(e){return function(){return this.isValid()?this._data[e]:NaN}}var sje=F1("milliseconds"),oje=F1("seconds"),lje=F1("minutes"),uje=F1("hours"),cje=F1("days"),dje=F1("months"),fje=F1("years");function hje(){return oc(this.days()/7)}var Nh=Math.round,yy={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 mje(e,t,n,r){var i=Pd(e).abs(),a=Nh(i.as("s")),s=Nh(i.as("m")),o=Nh(i.as("h")),l=Nh(i.as("d")),u=Nh(i.as("M")),d=Nh(i.as("w")),f=Nh(i.as("y")),p=a<=n.ss&&["s",a]||a0,p[4]=r,pje.apply(null,p)}function gje(e){return e===void 0?Nh:typeof e=="function"?(Nh=e,!0):!1}function bje(e,t){return yy[e]===void 0?!1:t===void 0?yy[e]:(yy[e]=t,e==="s"&&(yy.ss=t-1),!0)}function yje(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=yy,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},yy,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=mje(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var oD=Math.abs;function Lb(e){return(e>0)-(e<0)||+e}function IR(){if(!this.isValid())return this.localeData().invalidDate();var e=oD(this._milliseconds)/1e3,t=oD(this._days),n=oD(this._months),r,i,a,s,o=this.asSeconds(),l,u,d,f;return o?(r=oc(e/60),i=oc(r/60),e%=60,r%=60,a=oc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=Lb(this._months)!==Lb(o)?"-":"",d=Lb(this._days)!==Lb(o)?"-":"",f=Lb(this._milliseconds)!==Lb(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?d+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var Lr=CR.prototype;Lr.isValid=dUe;Lr.abs=Qze;Lr.add=Wze;Lr.subtract=Vze;Lr.as=Gze;Lr.asMilliseconds=bce;Lr.asSeconds=Yze;Lr.asMinutes=Zze;Lr.asHours=Xze;Lr.asDays=Kze;Lr.asWeeks=Jze;Lr.asMonths=eje;Lr.asQuarters=tje;Lr.asYears=nje;Lr.valueOf=rje;Lr._bubble=qze;Lr.clone=ije;Lr.get=aje;Lr.milliseconds=sje;Lr.seconds=oje;Lr.minutes=lje;Lr.hours=uje;Lr.days=cje;Lr.weeks=hje;Lr.months=dje;Lr.years=fje;Lr.humanize=yje;Lr.toISOString=IR;Lr.toString=IR;Lr.toJSON=IR;Lr.locale=ice;Lr.localeData=sce;Lr.toIsoString=$c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",IR);Lr.lang=ace;Rn("X",0,0,"unix");Rn("x",0,0,"valueOf");dn("x",xR);dn("X",BFe);fi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});fi("x",function(e,t,n){n._d=new Date(wr(e))});//! moment.js +tn.version="2.30.1";vFe(Ui);tn.fn=$t;tn.min=oUe;tn.max=lUe;tn.now=uUe;tn.utc=Vf;tn.unix=$ze;tn.months=Bze;tn.isDate=BT;tn.locale=q0;tn.invalid=SR;tn.duration=Pd;tn.isMoment=_d;tn.weekdays=zze;tn.parseZone=Fze;tn.localeData=Sp;tn.isDuration=r_;tn.monthsShort=Uze;tn.weekdaysMin=Hze;tn.defineLocale=DF;tn.updateLocale=FBe;tn.locales=BBe;tn.weekdaysShort=jze;tn.normalizeUnits=Fc;tn.relativeTimeRounding=gje;tn.relativeTimeThreshold=bje;tn.calendarFormat=PUe;tn.prototype=$t;tn.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const yce=e=>["workspaces",e,"documents"],vje=(e,t)=>["workpsaces",e,"documents",t],Oje=e=>cF({queryKey:yce(e||""),queryFn:async({pageParam:n})=>(await ar.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),Sje=(e,t)=>{const n=Du(),r=pO({queryKey:vje(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await ar.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return M.useEffect(()=>(r.data&&n(I3(r.data)),()=>{n(I3(null))}),[n,r.data]),r},Eje=e=>{const t=MT();return vp({mutationFn:async n=>(await ar.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:yce(e)})}})},wje=(e,t)=>vp({mutationFn:async n=>(await ar.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data});var $8=(e=>(e.READ="READ",e.EDIT="EDIT",e))($8||{});const B1={};B1.write=async e=>{await navigator.clipboard.writeText(e)};B1.read=async()=>navigator.clipboard.readText();B1.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};B1.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};var jF={},Tje=Ni;Object.defineProperty(jF,"__esModule",{value:!0});var NR=jF.default=void 0,xje=Tje(ea()),kje=R;NR=jF.default=(0,xje.default)((0,kje.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var HF={},Aje=Ni;Object.defineProperty(HF,"__esModule",{value:!0});var DR=HF.default=void 0,_je=Aje(ea()),Cje=R;DR=HF.default=(0,_je.default)((0,Cje.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 Rje(e){var d,f;const{...t}=e,n=Om(),[r,i]=M.useState(null),a=Pr(vR),{mutateAsync:s}=wje(((d=a.data)==null?void 0:d.workspaceId)||"",((f=a.data)==null?void 0:f.id)||""),{enqueueSnackbar:o}=LT(),l=async p=>{let g;if(p.expiredString===My[0])g=null;else{const[S,T]=p.expiredString.split(" ");g=tn().add(Number(S),T).toDate()}const{sharingToken:O}=await s({role:p.role,expiredAt:g});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${O}`)},u=async()=>{r&&(await B1.write(r),o("URL Copied!",{variant:"success"}))};return R.jsx(M1,{disableAutoFocus:!0,...t,children:R.jsxs(Oo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[R.jsx(ss,{sx:{position:"absolute",top:28,right:28},onClick:p=>{var g;return(g=e.onClose)==null?void 0:g.call(e,p,"backdropClick")},children:R.jsx(DR,{})}),R.jsxs(zn,{gap:1,children:[R.jsx(Cr,{variant:"subtitle1",children:"Share Link"}),R.jsx(Mc,{children:R.jsx(mO,{defaultValues:{expiredString:My[0],role:Object.values($8)[0]},onSuccess:l,children:R.jsxs(zn,{gap:2,children:[R.jsx(C8,{label:"Role",name:"role",options:Object.values($8).map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),R.jsx(C8,{label:"Expired Date",name:"expiredString",options:My.map(p=>({id:p,label:p})),size:"small",sx:{width:1},variant:"filled"}),R.jsx(Vo,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&R.jsxs(zn,{direction:"row",alignItems:"center",gap:2,children:[R.jsx(Cr,{variant:"body1",width:1,noWrap:!0,children:r}),R.jsx(C0,{title:"Copy URL",children:R.jsx(ss,{onClick:u,children:R.jsx(NR,{})})})]})]})]})})}function Ije(){const[e,t]=M.useState(!1),n=()=>{t(r=>!r)};return R.jsxs(R.Fragment,{children:[R.jsx(ss,{onClick:n,color:"inherit",children:R.jsx(tue,{})}),R.jsx(Rje,{open:e,onClose:n})]})}var QF={},Nje=Ni;Object.defineProperty(QF,"__esModule",{value:!0});var WF=QF.default=void 0,Dje=Nje(ea()),Pje=R;WF=QF.default=(0,Dje.default)((0,Pje.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 VF={},Lje=Ni;Object.defineProperty(VF,"__esModule",{value:!0});var qF=VF.default=void 0,Mje=Lje(ea()),$je=R;qF=VF.default=(0,Mje.default)((0,$je.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 HT(){const e=mse("(prefers-color-scheme: dark)"),t=Pr(Z$);return M.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function Fje(){const e=Du(),t=HT(),n=()=>{e(ele(t=="light"?"dark":"light"))};return R.jsx(ss,{onClick:n,color:"inherit",children:t==="light"?R.jsx(qF,{}):R.jsx(WF,{})})}function Bje(e){const{presenceList:t}=e,[n,r]=M.useState(null),i=!!n,a=d=>{r(d.currentTarget)},s=()=>{r(null)},o=4,l=t.slice(o),u=d=>R.jsx(C0,{title:d.presence.name,children:R.jsx(i1,{alt:d.presence.name,sx:{bgcolor:d.presence.color},children:d.presence.name[0]})},d.clientID);return R.jsxs(R.Fragment,{children:[R.jsxs(d5e,{children:[t.slice(0,o).map(u),t.length>o&&R.jsxs(i1,{onClick:a,children:["+",t.length-o]})]}),R.jsx(cO,{open:i,anchorEl:n,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:R.jsxs(Oo,{sx:{padding:2},children:[R.jsx(Cr,{variant:"subtitle2",children:"Additional Users"}),l.map(d=>R.jsxs(GP,{sx:{paddingY:1},children:[R.jsx(I6e,{children:R.jsx(i1,{sx:{bgcolor:d.presence.color,width:24,height:24,fontSize:12},children:d.presence.name[0]})}),R.jsx(Pf,{primary:d.presence.name,primaryTypographyProps:{variant:"body2"}})]},d.clientID))]})})]})}function Uje(){const e=Du(),t=Pu(),n=Pr(Sm),r=Pr(PT),[i,{set:a,push:s,removeAt:o,clear:l,filter:u}]=a9e([]);M.useEffect(()=>{n.shareRole==="READ"&&e(f8("read"))},[e,n.shareRole]),M.useEffect(()=>{if(!n.doc)return;a(n.doc.getPresences());const p=n.doc.subscribe("others",g=>{var O,S;g.type==="watched"&&a(((S=(O=n.doc)==null?void 0:O.getPresences)==null?void 0:S.call(O))??[]),g.type==="unwatched"&&u(T=>T.clientID!==g.value.clientID)});return()=>{p(),l()}},[n.doc,l,s,o,a,u]);const d=p=>{p&&e(f8(p))},f=()=>{var p;t(`/${(p=r.data)==null?void 0:p.slug}`)};return R.jsx(Mse,{position:"static",sx:{zIndex:100},children:R.jsx($$,{children:R.jsxs(zn,{width:"100%",direction:"row",justifyContent:"space-between",children:[R.jsxs(zn,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&R.jsx(C0,{title:"Back to Previous Page",children:R.jsx(ss,{color:"inherit",onClick:f,children:R.jsx(_le,{})})}),R.jsx(Oo,{children:n.shareRole!=="READ"&&R.jsxs(voe,{value:n.mode,exclusive:!0,onChange:(p,g)=>d(g),size:"small",children:[R.jsx(Y4,{value:"edit","aria-label":"edit",children:R.jsx(C0,{title:"Edit Mode",children:R.jsx(Cle,{})})}),R.jsx(Y4,{value:"both","aria-label":"both",children:R.jsx(C0,{title:"Both Mode",children:R.jsx(Rle,{})})}),R.jsx(Y4,{value:"read","aria-label":"read",children:R.jsx(C0,{title:"Read Mode",children:R.jsx(sF,{})})})]})}),R.jsx(O$e,{})]}),R.jsxs(zn,{direction:"row",alignItems:"center",gap:1,children:[R.jsx(Bje,{presenceList:i}),!n.shareRole&&R.jsx(Ije,{}),R.jsx(Fje,{})]})]})})})}function zje(){return R.jsxs(Wa,{sx:{flexGrow:1},height:"100vh",children:[R.jsx(Uje,{}),R.jsx(lR,{})]})}function jje(){return R.jsx(zn,{sx:{flexGrow:1,height:"100vh"},children:R.jsx(lR,{})})}var GF={},Hje=Ni;Object.defineProperty(GF,"__esModule",{value:!0});var vce=GF.default=void 0,Qje=Hje(ea()),Wje=R;vce=GF.default=(0,Qje.default)((0,Wje.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var YF={},Vje=Ni;Object.defineProperty(YF,"__esModule",{value:!0});var Oce=YF.default=void 0,qje=Vje(ea()),Gje=R;Oce=YF.default=(0,qje.default)((0,Gje.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var ZF={},Yje=Ni;Object.defineProperty(ZF,"__esModule",{value:!0});var Sce=ZF.default=void 0,Zje=Yje(ea()),JZ=R;Sce=ZF.default=(0,Zje.default)([(0,JZ.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,JZ.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");const Xje={accessToken:null},Ece=$1({name:"auth",initialState:Xje,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:XF}=Ece.actions,QT=e=>e.auth,Kje=Ece.reducer;function wce(e){const t=Du(),n=HT(),r=Pu(),i=()=>{t(XF(null)),t(d8(null))},a=()=>{r("/settings/profile")},s=()=>{t(ele(n=="light"?"dark":"light"))};return R.jsx(cO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:R.jsxs(aR,{children:[R.jsxs(Od,{onClick:s,children:[R.jsx(Py,{children:n==="light"?R.jsx(qF,{}):R.jsx(WF,{})}),R.jsx(Pf,{children:"Appearance"})]}),R.jsxs(Od,{onClick:a,children:[R.jsx(Py,{children:R.jsx(Sce,{fontSize:"small"})}),R.jsx(Pf,{children:"Profile"})]}),R.jsxs(Od,{onClick:i,children:[R.jsx(Py,{children:R.jsx(Oce,{fontSize:"small"})}),R.jsx(Pf,{children:"Logout"})]})]})})}var KF={},Jje=Ni;Object.defineProperty(KF,"__esModule",{value:!0});var Tce=KF.default=void 0,eHe=Jje(ea()),eX=R;Tce=KF.default=(0,eHe.default)([(0,eX.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,eX.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");var JF={},tHe=Ni;Object.defineProperty(JF,"__esModule",{value:!0});var xce=JF.default=void 0,nHe=tHe(ea()),tX=R;xce=JF.default=(0,nHe.default)([(0,tX.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,tX.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function eB(e){return R.jsx(tm,{...e,children:R.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:[R.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"}),R.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"}),R.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"})]})})}const Uy=282,kce=at(Mse,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{width:`calc(100% - ${Uy}px)`,marginLeft:`${Uy}px`,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}));function rHe(e){var p,g;const{open:t,onDrawerOpen:n}=e,r=Pc(),i=Pu(),a=Pr(DT),s=Pr(PT),[o,l]=M.useState(null),u=O=>{l(O.currentTarget)},d=()=>{l(null)},f=()=>{var O;i(`/${(O=s.data)==null?void 0:O.slug}`)};return R.jsxs(kce,{position:"fixed",open:t,children:[R.jsx($$,{children:R.jsxs(zn,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[R.jsx(ss,{onClick:u,children:R.jsx(i1,{children:(g=(p=a.data)==null?void 0:p.nickname)==null?void 0:g.charAt(0)})}),R.jsxs(zn,{direction:"row",children:[R.jsx(ss,{color:"inherit","aria-label":"open drawer",onClick:n,edge:"start",sx:{mr:2},children:t?r.direction==="ltr"?R.jsx(Tce,{}):R.jsx(xce,{}):R.jsx(vce,{})}),R.jsx(ss,{onClick:f,children:R.jsx(eB,{})})]})]})}),R.jsx(wce,{open:!!o,anchorEl:o,onClose:d})]})}var tB={},iHe=Ni;Object.defineProperty(tB,"__esModule",{value:!0});var Ace=tB.default=void 0,aHe=iHe(ea()),sHe=R;Ace=tB.default=(0,aHe.default)((0,sHe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var nB={},oHe=Ni;Object.defineProperty(nB,"__esModule",{value:!0});var _ce=nB.default=void 0,lHe=oHe(ea()),uHe=R;_ce=nB.default=(0,lHe.default)((0,uHe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");const cHe=e=>["workspaces",e],Cce=()=>["workspaces"],rB=e=>{const t=Du(),n=pO({queryKey:cHe(e||""),enabled:!!e,queryFn:async()=>(await ar.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return M.useEffect(()=>(n.data&&t(AZ(n.data)),()=>{t(AZ(null))}),[t,n.data]),n},dHe=()=>cF({queryKey:Cce(),queryFn:async({pageParam:t})=>(await ar.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),fHe=()=>{const e=MT();return vp({mutationFn:async t=>(await ar.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:Cce()})}})},hHe=e=>vp({mutationFn:async t=>(await ar.post(`/workspaces/${e}/invite-token`,t)).data}),pHe=()=>vp({mutationFn:async e=>(await ar.post("/workspaces/join",e)).data});class kw extends M.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=w,d&&d(w)};const T=[n];return i&&(o?s?T.unshift(o):T.push(o):this.defaultLoader&&(s?T.unshift(this.defaultLoader):T.push(this.defaultLoader))),rn.createElement(r,S,T)}}$s(kw,"propTypes",{children:Kl.node.isRequired,element:Kl.node,hasMore:Kl.bool,initialLoad:Kl.bool,isReverse:Kl.bool,loader:Kl.node,loadMore:Kl.func.isRequired,pageStart:Kl.number,ref:Kl.func,getScrollParent:Kl.func,threshold:Kl.number,useCapture:Kl.bool,useWindow:Kl.bool}),$s(kw,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var iB={},mHe=Ni;Object.defineProperty(iB,"__esModule",{value:!0});var Rce=iB.default=void 0,gHe=mHe(ea()),bHe=R;Rce=iB.default=(0,gHe.default)((0,bHe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var aB={},yHe=Ni;Object.defineProperty(aB,"__esModule",{value:!0});var PR=aB.default=void 0,vHe=yHe(ea()),OHe=R;PR=aB.default=(0,vHe.default)((0,OHe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const SHe=e=>["check","name-conflict",e],sB=e=>pO({queryKey:SHe(e||""),enabled:!!e,queryFn:async()=>(await ar.post("/check/name-conflict",{name:e})).data});function Ice(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=M.useState(""),[o,l]=M.useState(""),{data:u}=sB(o),d=M.useMemo(()=>r?a.length<2?"Title must be at least 2 characters":u!=null&&u.conflict?"Already Exists":null:null,[r,a.length,u==null?void 0:u.conflict]);yR(()=>{l(a)},500,[a]);const f=()=>{var O;(O=i==null?void 0:i.onClose)==null||O.call(i,new Event("Close Modal"),"escapeKeyDown")},p=async O=>{O.title.length>=2&&(await n(O),f())},g=O=>{r&&s(O.target.value)};return R.jsx(M1,{disableAutoFocus:!0,...i,children:R.jsxs(Oo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[R.jsx(ss,{sx:{position:"absolute",top:28,right:28},onClick:f,children:R.jsx(DR,{})}),R.jsxs(zn,{gap:4,children:[R.jsxs(Cr,{variant:"h5",children:["Create New ",t]}),R.jsx(Mc,{children:R.jsx(mO,{defaultValues:{title:""},onSuccess:p,children:R.jsxs(zn,{gap:4,alignItems:"flex-end",children:[R.jsx(FT,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:g,error:!!d,helperText:d}),R.jsx(Vo,{type:"submit",variant:"contained",size:"large",disabled:!!d,children:"OK"})]})})})]})]})})}function EHe(e){const{width:t,...n}=e,r=Pu(),i=Om(),{data:a,hasNextPage:s,fetchNextPage:o}=dHe(),{mutateAsync:l}=fHe(),u=M.useMemo(()=>(a==null?void 0:a.pages.reduce((T,w)=>T.concat(w.workspaces),[]))??[],[a==null?void 0:a.pages]),[d,f]=M.useState(!1),p=T=>{r(`/${T}`)},g=T=>{var w;i.workspaceSlug!==T&&(p(T),(w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},O=()=>{var T;f(w=>!w),n.open&&((T=n==null?void 0:n.onClose)==null||T.call(n,new Event("Close Popover"),"backdropClick"))},S=async T=>{const w=await l(T);p(w.slug)};return R.jsxs(R.Fragment,{children:[R.jsx(cO,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:R.jsxs(aR,{sx:{width:t},children:[R.jsx(Wa,{style:{maxHeight:300,overflow:"auto"},children:R.jsx(kw,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:R.jsx(Wa,{className:"loader",children:R.jsx(kd,{size:"sm"})},0),useWindow:!1,children:u.map(T=>R.jsxs(Od,{onClick:()=>g(T.slug),children:[R.jsx(Pf,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:T.title}),i.workspaceSlug===T.slug&&R.jsx(iR,{children:R.jsx(Rce,{fontSize:"small"})})]},T.id))})}),R.jsx(b1,{}),R.jsxs(Od,{onClick:O,children:[R.jsx(Py,{children:R.jsx(PR,{fontSize:"small"})}),R.jsx(Pf,{children:"Create Workspace"})]})]})}),R.jsx(Ice,{open:d,title:"Workspace",onClose:O,onSuccess:S,enableConflictCheck:!0})]})}var oB={},wHe=Ni;Object.defineProperty(oB,"__esModule",{value:!0});var Nce=oB.default=void 0,THe=wHe(ea()),xHe=R;Nce=oB.default=(0,THe.default)((0,xHe.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");function kHe(e){var p;const{open:t}=e,n=vm(),r=Om(),i=Pu(),a=Pr(PT),[s,o]=M.useState(null),l=M.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),u=g=>{o(g.currentTarget)},d=()=>{o(null)},f=()=>{i(`/${r.workspaceSlug}/member`)};return R.jsxs(tIe,{sx:{width:Uy,flexShrink:0,"& .MuiDrawer-paper":{width:Uy,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:t,children:[R.jsx(Dce,{children:R.jsxs(GP,{disablePadding:!0,children:[R.jsxs(lY,{onClick:u,children:[R.jsx(Pf,{primary:(p=a.data)==null?void 0:p.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),R.jsx(iR,{children:R.jsx(ss,{children:s?R.jsx(_ce,{}):R.jsx(Ace,{})})})]}),R.jsx(EHe,{open:!!s,anchorEl:s,onClose:d,width:Uy-32})]})}),R.jsx(b1,{}),R.jsx(GP,{disablePadding:!0,children:R.jsxs(lY,{onClick:f,selected:l==="member",children:[R.jsx(Py,{children:R.jsx(Nce,{})}),R.jsx(Pf,{primary:"Members"})]})})]})}const AHe=at("main",{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({flexGrow:1,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:`-${Uy}px`,...t&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}})),Dce=at("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function _He(){const{drawerOpen:e}=Pr(Z$),t=Du(),n=()=>{t(lLe(!e))};return R.jsxs(Wa,{sx:{display:"flex"},children:[R.jsx(rHe,{open:e,onDrawerOpen:n}),R.jsx(kHe,{open:e}),R.jsxs(AHe,{open:e,children:[R.jsx(Dce,{}),R.jsx(lR,{})]})]})}var CHe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=M},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(u,d,f,p,g,O){if(O!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return K}),n.d(t,"GoogleLoginButton",function(){return H}),n.d(t,"GithubLoginButton",function(){return Z}),n.d(t,"TwitterLoginButton",function(){return ae}),n.d(t,"AmazonLoginButton",function(){return Ye}),n.d(t,"InstagramLoginButton",function(){return Pt}),n.d(t,"LinkedInLoginButton",function(){return Ot}),n.d(t,"MicrosoftLoginButton",function(){return de}),n.d(t,"BufferLoginButton",function(){return Ke}),n.d(t,"TelegramLoginButton",function(){return gt}),n.d(t,"AppleLoginButton",function(){return Te}),n.d(t,"DiscordLoginButton",function(){return Ue}),n.d(t,"OktaLoginButton",function(){return tt}),n.d(t,"SlackLoginButton",function(){return zt}),n.d(t,"YahooLoginButton",function(){return Mr}),n.d(t,"createButton",function(){return re}),n.d(t,"createSvgIcon",function(){return q}),n.d(t,"ZaloLoginButton",function(){return Di}),n.d(t,"TikTokLoginButton",function(){return pi}),n.d(t,"MetamaskLoginButton",function(){return Qi});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return K}),n.d(r,"GoogleLoginButton",function(){return H}),n.d(r,"GithubLoginButton",function(){return Z}),n.d(r,"TwitterLoginButton",function(){return ae}),n.d(r,"AmazonLoginButton",function(){return Ye}),n.d(r,"InstagramLoginButton",function(){return Pt}),n.d(r,"LinkedInLoginButton",function(){return Ot}),n.d(r,"MicrosoftLoginButton",function(){return de}),n.d(r,"BufferLoginButton",function(){return Ke}),n.d(r,"TelegramLoginButton",function(){return gt}),n.d(r,"AppleLoginButton",function(){return Te}),n.d(r,"DiscordLoginButton",function(){return Ue}),n.d(r,"OktaLoginButton",function(){return tt}),n.d(r,"SlackLoginButton",function(){return zt}),n.d(r,"YahooLoginButton",function(){return Mr}),n.d(r,"createButton",function(){return re}),n.d(r,"createSvgIcon",function(){return q}),n.d(r,"ZaloLoginButton",function(){return Di}),n.d(r,"TikTokLoginButton",function(){return pi}),n.d(r,"MetamaskLoginButton",function(){return Qi});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(ze){var nt=ze.name,le=ze.size,he=ze.format;return a.a.createElement("i",{className:he(nt),style:{fontSize:le}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(ze){return"demo-icon icon-".concat(ze)},size:26};var u=l,d=function(ze){var nt=ze.type,le=ze.size,he=ze.format,Le=ze.color,Ve=Le===void 0?"#FFFFFF":Le;return typeof nt=="string"?a.a.createElement(u,{format:he,name:nt,size:le}):a.a.createElement(nt,{size:le,color:Ve})};d.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var f=d;function p(ze,nt){var le=Object.keys(ze);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(ze);nt&&(he=he.filter(function(Le){return Object.getOwnPropertyDescriptor(ze,Le).enumerable})),le.push.apply(le,he)}return le}function g(ze){for(var nt=1;nt"u"||!Reflect.construct||Reflect.construct.sham)return!1;if(typeof Proxy=="function")return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch{return!1}}();return function(){var le,he=I(ze);if(nt){var Le=I(this).constructor;le=Reflect.construct(he,arguments,Le)}else le=he.apply(this,arguments);return _(this,le)}}function _(ze,nt){return!nt||S(nt)!=="object"&&typeof nt!="function"?function(le){if(le===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return le}(ze):nt}function I(ze){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(nt){return nt.__proto__||Object.getPrototypeOf(nt)})(ze)}var N=function(ze){(function(Ve,pt){if(typeof pt!="function"&&pt!==null)throw new TypeError("Super expression must either be null or a function");Ve.prototype=Object.create(pt&&pt.prototype,{constructor:{value:Ve,writable:!0,configurable:!0}}),pt&&x(Ve,pt)})(Le,ze);var nt,le,he=k(Le);function Le(Ve){var pt;return function(Vt,Ie){if(!(Vt instanceof Ie))throw new TypeError("Cannot call a class as a function")}(this,Le),(pt=he.call(this,Ve)).state={focused:!1,hovered:!1},pt.handleMouseEnter=function(){pt.setState({hovered:!0}),typeof pt.props.onMouseEnter=="function"&&pt.props.onMouseEnter()},pt.handleMouseLeave=function(){pt.setState({hovered:!1}),typeof pt.props.onMouseLeave=="function"&&pt.props.onMouseLeave()},pt.handleFocus=function(){pt.setState({focused:!0})},pt.handleBlur=function(){pt.setState({focused:!1})},pt.handleClick=function(Vt){typeof pt.props.onClick=="function"&&pt.props.onClick(Vt)},pt}return nt=Le,(le=[{key:"render",value:function(){var Ve=this.props,pt=Ve.activeStyle,Vt=Ve.align,Ie=Ve.text,we=Ve.children,ot=we===void 0?Ie:we,qe=Ve.className,Et=Ve.icon,_t=Ve.iconFormat,Gt=Ve.iconSize,jn=Ve.iconColor,qn=jn===void 0?"#FFFFFF":jn,Wi=Ve.preventActiveStyles,ti=Ve.size,Fu=Ve.style,To=Ve.disabled,$l=this.state,Fl=$l.focused,Bl=$l.hovered,Cs=L(U.button,{activeStyle:Wi?Fu:pt,customStyle:Fu,active:Bl||Fl,size:ti});return a.a.createElement("button",T({type:"button",style:Cs,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:qe},{disabled:To}),a.a.createElement("div",{style:U.flex},!D(Gt)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:Gt}},a.a.createElement(f,{type:Et,size:Gt,format:_t,color:qn})),!D(Gt)&&a.a.createElement("div",{style:U.divider}),a.a.createElement("div",{style:{textAlign:Vt,width:"100%"}},ot)))}}])&&w(nt.prototype,le),Le}(i.Component),D=function(ze){return ze==="0"||ze==="0px"||ze===0},L=function(ze,nt){var le=nt.size,he=nt.customStyle,Le=nt.active,Ve=nt.activeStyle;return g(g(g({},ze),{},{height:le},he),Le&&Ve)};N.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},N.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var U={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function B(ze,nt){var le=Object.keys(ze);if(Object.getOwnPropertySymbols){var he=Object.getOwnPropertySymbols(ze);nt&&(he=he.filter(function(Le){return Object.getOwnPropertyDescriptor(ze,Le).enumerable})),le.push.apply(le,he)}return le}function W(ze){for(var nt=1;nt{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return R.jsx(C$,{sx:{height:1},children:R.jsx(zn,{alignItems:"center",justifyContent:"center",sx:{height:1},children:R.jsx(Oo,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:R.jsxs(zn,{gap:4,children:[R.jsxs(Wa,{children:[R.jsxs(zn,{direction:"row",gap:1,children:[R.jsx(eB,{}),R.jsx(Cr,{variant:"h6",children:"Login"})]}),R.jsx(Cr,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),R.jsxs(zn,{gap:2,children:[R.jsxs(py,{container:!0,spacing:1,alignItems:"center",children:[R.jsx(py,{item:!0,xs:!0,children:R.jsx(b1,{sx:{width:1}})}),R.jsx(py,{item:!0,xs:"auto",children:R.jsx(Cr,{variant:"body2",color:"text.secondary",children:"Login with"})}),R.jsx(py,{item:!0,xs:!0,children:R.jsx(b1,{sx:{width:1}})})]}),RHe.map(({SocailLoginComponent:t,provider:n})=>R.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function NHe(){const e=Du(),t=Pu(),[n]=W$();return M.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(XF(r))},[e,t,n]),R.jsx(Wa,{})}var lB={},DHe=Ni;Object.defineProperty(lB,"__esModule",{value:!0});var Pce=lB.default=void 0,PHe=DHe(ea()),nX=R;Pce=lB.default=(0,PHe.default)([(0,nX.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,nX.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function LHe(e){const{document:t}=e,n=Pu(),r=Om(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return R.jsx(toe,{sx:{width:"100%"},children:R.jsx($5e,{onClick:i,children:R.jsxs(j5e,{children:[R.jsx(Cr,{variant:"h5",component:"div",noWrap:!0,children:t.title}),R.jsxs(zn,{direction:"row",alignItems:"center",gap:1,children:[R.jsx(Pce,{fontSize:"small",sx:{color:"text.secondary"}}),R.jsxs(Cr,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",tn(t.updatedAt).fromNow()]})]})]})})})}function MHe(){const e=Om(),t=Pu(),{data:n,isLoading:r}=rB(e.workspaceSlug),{data:i,fetchNextPage:a,hasNextPage:s}=Oje(n==null?void 0:n.id),{mutateAsync:o}=Eje((n==null?void 0:n.id)||""),[l,u]=M.useState(!1),d=M.useMemo(()=>(i==null?void 0:i.pages.reduce((g,O)=>g.concat(O.documents),[]))??[],[i==null?void 0:i.pages]);if(r)return R.jsx(lO,{open:!0,children:R.jsx(kd,{color:"inherit"})});const f=()=>{u(g=>!g)},p=async g=>{const O=await o(g);t(O.id)};return R.jsxs(zn,{gap:2,children:[R.jsxs(zn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[R.jsxs(Cr,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",R.jsx(Cr,{component:"span",variant:"inherit",color:"primary",children:i==null?void 0:i.pages[0].totalLength})]}),R.jsx(Vo,{variant:"contained",startIcon:R.jsx(PR,{}),onClick:f,children:"New Note"})]}),R.jsx(zn,{style:{maxHeight:"calc(100vh - 144px)",overflow:"auto"},children:R.jsx(kw,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:R.jsx(zn,{className:"loader",alignItems:"center",children:R.jsx(kd,{size:20})},0),useWindow:!1,children:R.jsx(Wa,{p:2,width:1,children:R.jsx(py,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:d.map(g=>R.jsx(py,{item:!0,xs:4,sm:4,md:4,lg:3,children:R.jsx(LHe,{document:g})},g.id))})})})}),R.jsx(Ice,{open:l,title:"Note",onSuccess:p,onClose:f})]})}function Q3(){return Q3=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(U(u),B.current=u):(U(ke),B.current=ke),T&&T({position:B.current})}}},[r,t,S,O,p,d,L,o,u,T,a]),ie=M.useCallback(function(){r||(U(a),B.current=a)},[r,a]);return{position:L,endPosition:V,isDragging:I,separatorProps:Q3({},ee,{onPointerDown:K,onKeyDown:G,onDoubleClick:ie}),setPosition:U,splitterProps:Q3({},ee,{onPointerDown:K,onKeyDown:G,onDoubleClick:ie})}},zHe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(UHe({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 jHe=e=>{const t=M.useRef(e);return M.useEffect(()=>{t.current=e}),t},HHe=(e,t=100,n=!1)=>{const r=jHe(e),i=M.useRef(),a=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}M.useEffect(()=>s,a);function o(){i.current=void 0}return M.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(o,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},a)},QHe=(e,t,n)=>{const r=M.useState(e);return[r[0],HHe(r[1],t,n)]};function lD(e,t,n,r){const i=M.useRef(n),a=M.useRef(r);M.useEffect(()=>{i.current=n,a.current=r}),M.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let o=0;function l(...d){o||i.current.apply(this,d)}s.addEventListener(t,l);const u=a.current;return()=>{o=1,s.removeEventListener(t,l),u&&u()}},[e,t])}const WHe={},v2=typeof window>"u"?null:window,VHe=v2&&typeof v2.visualViewport<"u"?v2.visualViewport:null,rX=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],qHe=function(e){e===void 0&&(e=WHe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[a,s]=QHe(typeof document>"u"?[r,i]:rX,t,n),o=()=>s(rX);return lD(v2,"resize",o),lD(VHe,"resize",o),lD(v2,"orientationchange",o),a},GHe=e=>qHe(e)[0];class yr{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]=Rv(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),a_.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]=Rv(this,t,n);let r=[];return this.decompose(t,n,r,0),a_.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 O2(this),a=new O2(t);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(t=1){return new O2(this,t)}iterRange(t,n=this.length){return new $ce(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 Fce(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]?yr.empty:t.length<=32?new Ia(t):a_.from(Ia.split(t,[]))}}class Ia extends yr{constructor(t,n=YHe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=t)return new ZHe(i,o,r,s);i=o+1,r++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new Ia(iX(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),o=s_(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Ia(o,s.length+a.length));else{let l=o.length>>1;r.push(new Ia(o.slice(0,l)),new Ia(o.slice(l)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof Ia))return super.replace(t,n,r);[t,n]=Rv(this,t,n);let i=s_(this.text,s_(r.text,iX(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new Ia(i,a):a_.from(Ia.split(i,[]),a)}sliceString(t,n=this.length,r=` +`){[t,n]=Rv(this,t,n);let i="";for(let a=0,s=0;a<=n&&st&&s&&(i+=r),ta&&(i+=o.slice(Math.max(0,t-a),n-a)),a=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Ia(r,i)),r=[],i=-1);return i>-1&&n.push(new Ia(r,i)),n}}let a_=class Vb extends yr{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,l=r+s.lines-1;if((n?l:o)>=t)return s.lineInner(t,n,r,i);i=o+1,r=l+1}}decompose(t,n,r,i){for(let a=0,s=0;s<=n&&a=s){let u=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!u?r.push(o):o.decompose(t-s,n-s,r,u)}s=l+1}}replace(t,n,r){if([t,n]=Rv(this,t,n),r.lines=a&&n<=o){let l=s.replace(t-a,n-a,r),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let d=this.children.slice();return d[i]=l,new Vb(d,this.length-(n-t)+r.length)}return super.replace(a,o,l)}a=o+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` +`){[t,n]=Rv(this,t,n);let i="";for(let a=0,s=0;at&&a&&(i+=r),ts&&(i+=o.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof Vb))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let l=this.children[i],u=t.children[a];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of t)r+=g.lines;if(r<32){let g=[];for(let O of t)O.flatten(g);return new Ia(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],l=0,u=-1,d=[];function f(g){let O;if(g.lines>a&&g instanceof Vb)for(let S of g.children)f(S);else g.lines>s&&(l>s||!l)?(p(),o.push(g)):g instanceof Ia&&l&&(O=d[d.length-1])instanceof Ia&&g.lines+O.lines<=32?(l+=g.lines,u+=g.length+1,d[d.length-1]=new Ia(O.text.concat(g.text),O.length+1+g.length)):(l+g.lines>i&&p(),l+=g.lines,u+=g.length+1,d.push(g))}function p(){l!=0&&(o.push(d.length==1?d[0]:Vb.from(d,u)),u=-1,l=d.length=0)}for(let g of t)f(g);return p(),o.length==1?o[0]:new Vb(o,n)}};yr.empty=new Ia([""],0);function YHe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function s_(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a=n&&(l>r&&(o=o.slice(0,r-i)),i0?1:(t instanceof Ia?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof Ia?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` +`,this;t--}else if(i instanceof Ia){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Ia?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 $ce{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new O2(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 Fce{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"&&(yr.prototype[Symbol.iterator]=function(){return this.iter()},O2.prototype[Symbol.iterator]=$ce.prototype[Symbol.iterator]=Fce.prototype[Symbol.iterator]=function(){return this});let ZHe=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 Rv(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let zy="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 zy[t-1]<=e;return!1}function aX(e){return e>=127462&&e<=127487}const sX=8205;function qs(e,t,n=!0,r=!0){return(n?Bce:KHe)(e,t,r)}function Bce(e,t,n){if(t==e.length)return t;t&&Uce(e.charCodeAt(t))&&zce(e.charCodeAt(t-1))&&t--;let r=js(e,t);for(t+=uc(r);t=0&&aX(js(e,s));)a++,s-=2;if(a%2==0)break;t+=2}else break}return t}function KHe(e,t,n){for(;t>0;){let r=Bce(e,t-2,n);if(r=56320&&e<57344}function zce(e){return e>=55296&&e<56320}function js(e,t){let n=e.charCodeAt(t);if(!zce(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Uce(r)?(n-55296<<10)+(r-56320)+65536:n}function uB(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function uc(e){return e<65536?1:2}const F8=/\r\n?|\n/;var Qs=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Qs||(Qs={}));class Lf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return a+(t-i);a+=o}else{if(r!=Qs.Simple&&u>=t&&(r==Qs.TrackDel&&it||r==Qs.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!o)return t==i||n<0?a:a+l;a+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return a}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&o>=t)return in?"cover":!0;i=o}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new Lf(t)}static create(t){return new Lf(t)}}class ts extends Lf{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 B8(this,(n,r,i,a,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return U8(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,a=0;i=0){n[i]=o,n[i+1]=s;let l=i>>1;for(;r.length0&&D0(r,n,a.text),a.forward(d),o+=d}let u=t[s++];for(;o>1].toJSON()))}return t}static of(t,n,r){let i=[],a=[],s=0,o=null;function l(d=!1){if(!d&&!i.length)return;sp||f<0||p>n)throw new RangeError(`Invalid change range ${f} to ${p} (in doc of length ${n})`);let O=g?typeof g=="string"?yr.of(g.split(r||F8)):g:yr.empty,S=O.length;if(f==p&&S==0)return;fs&&fo(i,f-s,-1),fo(i,p-f,S),D0(a,i,O),s=p}}return u(t),l(!o),o}static empty(t){return new ts(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;io&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function D0(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,u,a,d,f),i=u,a=d}}}function U8(e,t,n,r=!1){let i=[],a=r?[]:null,s=new Aw(e),o=new Aw(t);for(let l=-1;;)if(s.ins==-1&&o.ins==-1){let u=Math.min(s.len,o.len);fo(i,u,-1),s.forward(u),o.forward(u)}else if(o.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(o.len=0&&l=0){let u=0,d=s.len;for(;d;)if(o.ins==-1){let f=Math.min(d,o.len);u+=f,d-=f,o.forward(f)}else if(o.ins==0&&o.lenl||s.ins>=0&&s.len>l)&&(o||r.length>u),a.forward2(l),s.forward(l)}}}}class Aw{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?yr.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?yr.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 jg{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 jg(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return dt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return dt.range(this.anchor,r)}eq(t,n=!1){return this.anchor==t.anchor&&this.head==t.head&&(!n||!this.empty||this.assoc==t.assoc)}toJSON(){return{anchor:this.anchor,head:this.head}}static fromJSON(t){if(!t||typeof t.anchor!="number"||typeof t.head!="number")throw new RangeError("Invalid JSON representation for SelectionRange");return dt.range(t.anchor,t.head)}static create(t,n,r){return new jg(t,n,r)}}class dt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:dt.create(this.ranges.map(r=>r.map(t,n)),this.mainIndex)}eq(t,n=!1){if(this.ranges.length!=t.ranges.length||this.mainIndex!=t.mainIndex)return!1;for(let r=0;rt.toJSON()),main:this.mainIndex}}static fromJSON(t){if(!t||!Array.isArray(t.ranges)||typeof t.main!="number"||t.main>=t.ranges.length)throw new RangeError("Invalid JSON representation for EditorSelection");return new dt(t.ranges.map(n=>jg.fromJSON(n)),t.main)}static single(t,n=t){return new dt([dt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((i,a)=>i.from-a.from),n=t.indexOf(r);for(let i=1;ia.head?dt.range(l,o):dt.range(o,l))}}return new dt(t,n)}}function Hce(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let cB=0;class sn{constructor(t,n,r,i,a){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=cB++,this.default=t([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(t={}){return new sn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:dB),!!t.static,t.enables)}of(t){return new o_([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new o_(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new o_(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function dB(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class o_{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=cB++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=t[a]>>1,o=this.type==2,l=!1,u=!1,d=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=t[f.id])!==null&&n!==void 0?n:1)&1||d.push(t[f.id]);return{create(f){return f.values[s]=r(f),1},update(f,p){if(l&&p.docChanged||u&&(p.docChanged||p.selection)||z8(f,d)){let g=r(f);if(o?!oX(g,f.values[s],i):!i(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,p)=>{let g,O=p.config.address[a];if(O!=null){let S=V3(p,O);if(this.dependencies.every(T=>T instanceof sn?p.facet(T)===f.facet(T):T instanceof As?p.field(T,!1)==f.field(T,!1):!0)||(o?oX(g=r(f),S,i):i(g=r(f),S)))return f.values[s]=S,0}else g=r(f);return f.values[s]=g,1}}}}function oX(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),s=e[t.id]>>1;function o(l){let u=[];for(let d=0;dr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(lX).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,lX.of({field:this,create:t})]}get extension(){return this}}const Ag={lowest:4,low:3,default:2,high:1,highest:0};function hE(e){return t=>new Qce(t,e)}const wp={highest:hE(Ag.highest),high:hE(Ag.high),default:hE(Ag.default),low:hE(Ag.low),lowest:hE(Ag.lowest)};class Qce{constructor(t,n){this.inner=t,this.prec=n}}class LR{of(t){return new j8(this,t)}reconfigure(t){return LR.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class j8{constructor(t,n){this.compartment=t,this.inner=n}}class W3{constructor(t,n,r,i,a,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),s=new Map;for(let p of eQe(t,n,s))p instanceof As?i.push(p):(a[p.facet.id]||(a[p.facet.id]=[])).push(p);let o=Object.create(null),l=[],u=[];for(let p of i)o[p.id]=u.length<<1,u.push(g=>p.slot(g));let d=r==null?void 0:r.config.facets;for(let p in a){let g=a[p],O=g[0].facet,S=d&&d[p]||[];if(g.every(T=>T.type==0))if(o[O.id]=l.length<<1|1,dB(S,g))l.push(r.facet(O));else{let T=O.combine(g.map(w=>w.value));l.push(r&&O.compare(T,r.facet(O))?r.facet(O):T)}else{for(let T of g)T.type==0?(o[T.id]=l.length<<1|1,l.push(T.value)):(o[T.id]=u.length<<1,u.push(w=>T.dynamicSlot(w)));o[O.id]=u.length<<1,u.push(T=>JHe(T,O,g))}}let f=u.map(p=>p(o));return new W3(t,s,f,o,l,a)}}function eQe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let l=i.get(s);if(l!=null){if(l<=o)return;let u=r[l].indexOf(s);u>-1&&r[l].splice(u,1),s instanceof j8&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let u of s)a(u,o);else if(s instanceof j8){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(s.compartment)||s.inner;n.set(s.compartment,u),a(u,o)}else if(s instanceof Qce)a(s.inner,s.prec);else if(s instanceof As)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof o_)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,Ag.default);else{let u=s.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(u,o)}}return a(e,Ag.default),r.reduce((s,o)=>s.concat(o))}function S2(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 V3(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Wce=sn.define(),H8=sn.define({combine:e=>e.some(t=>t),static:!0}),Vce=sn.define({combine:e=>e.length?e[0]:void 0,static:!0}),qce=sn.define(),Gce=sn.define(),Yce=sn.define(),Zce=sn.define({combine:e=>e.length?e[0]:!1});class Ld{constructor(t,n){this.type=t,this.value=n}static define(){return new tQe}}class tQe{of(t){return new Ld(this,t)}}class nQe{constructor(t){this.map=t}of(t){return new Zn(this,t)}}class Zn{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 Zn(this.type,n)}is(t){return this.type==t}static define(t={}){return new nQe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let a=i.map(n);a&&r.push(a)}return r}}Zn.reconfigure=Zn.define();Zn.appendConfig=Zn.define();let os=class zE{constructor(t,n,r,i,a,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&Hce(r,n.newLength),a.some(o=>o.type==zE.time)||(this.annotations=a.concat(zE.time.of(Date.now())))}static create(t,n,r,i,a,s){return new zE(t,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(zE.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};os.time=Ld.define();os.userEvent=Ld.define();os.addToHistory=Ld.define();os.remote=Ld.define();function rQe(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r=e[r]))a=e[r++],s=e[r++];else if(i=0;i--){let a=r[i](e);a instanceof os?e=a:Array.isArray(a)&&a.length==1&&a[0]instanceof os?e=a[0]:e=Kce(t,jy(a),!1)}return e}function aQe(e){let t=e.startState,n=t.facet(Yce),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=Xce(r,Q8(t,a,e.changes.newLength),!0))}return r==e?e:os.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const sQe=[];function jy(e){return e==null?sQe:Array.isArray(e)?e:[e]}var Ji=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Ji||(Ji={}));const oQe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let W8;try{W8=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function lQe(e){if(W8)return W8.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||oQe.test(n)))return!0}return!1}function uQe(e){return t=>{if(!/\S/.test(t))return Ji.Space;if(lQe(t))return Ji.Word;for(let n=0;n-1)return Ji.Word;return Ji.Other}}class Dr{constructor(t,n,r,i,a,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;oi.set(u,l)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(Zn.reconfigure)?(n=null,r=o.value):o.is(Zn.appendConfig)&&(n=null,r=jy(r).concat(o.value));let a;n?a=t.startState.values.slice():(n=W3.resolve(r,i,this),a=new Dr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=t.startState.facet(H8)?t.newSelection:t.newSelection.asSingle();new Dr(n,t.newDoc,s,a,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:dt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=jy(r.effects);for(let o=1;os.spec.fromJSON(o,l)))}}return Dr.create({doc:t.doc,selection:dt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=W3.resolve(t.extensions||[],new Map),r=t.doc instanceof yr?t.doc:yr.of((t.doc||"").split(n.staticFacet(Dr.lineSeparator)||F8)),i=t.selection?t.selection instanceof dt?t.selection:dt.single(t.selection.anchor,t.selection.head):dt.single(0);return Hce(i,r.length),n.staticFacet(H8)||(i=i.asSingle()),new Dr(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(Dr.tabSize)}get lineBreak(){return this.facet(Dr.lineSeparator)||` +`}get readOnly(){return this.facet(Zce)}phrase(t,...n){for(let r of this.facet(Dr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let a of this.facet(Wce))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return uQe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),a=this.charCategorizer(t),s=t-r,o=t-r;for(;s>0;){let l=qs(n,s,!1);if(a(n.slice(l,s))!=Ji.Word)break;s=l}for(;oe.length?e[0]:4});Dr.lineSeparator=Vce;Dr.readOnly=Zce;Dr.phrases=sn.define({compare(e,t){let n=Object.keys(e),r=Object.keys(t);return n.length==r.length&&n.every(i=>e[i]==t[i])}});Dr.languageData=Wce;Dr.changeFilter=qce;Dr.transactionFilter=Gce;Dr.transactionExtender=Yce;LR.reconfigure=Zn.define();function Gf(e,t,n={}){let r={};for(let i of e)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class E1{eq(t){return this==t}range(t,n=t){return V8.create(t,n,this)}}E1.prototype.startSide=E1.prototype.endSide=0;E1.prototype.point=!1;E1.prototype.mapMode=Qs.TrackDel;let V8=class Jce{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Jce(t,n,r)}};function q8(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class fB{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let l=s+o>>1,u=a[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:o;u>=0?o=l:s=l+1}}between(t,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);ag||p==g&&u.startSide>0&&u.endSide<=0)continue;(g-p||u.endSide-u.startSide)<0||(s<0&&(s=p),u.point&&(o=Math.max(o,g-p)),r.push(u),i.push(p-s),a.push(g-s))}return{mapped:r.length?new fB(i,a,r,o):null,pos:s}}}class _r{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 _r(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(q8)),this.isEmpty)return n.length?_r.of(n):this;let o=new ede(this,null,-1).goto(0),l=0,u=[],d=new im;for(;o.value||l=0){let f=n[l++];d.addInner(f.from,f.to,f.value)||u.push(f)}else o.rangeIndex==1&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ao.to||a=a&&t<=a+s.length&&s.between(a,t-a,n-a,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return _w.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return _w.from(t).goto(n)}static compare(t,n,r,i,a=-1){let s=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),o=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),l=uX(s,o,r),u=new pE(s,l,a),d=new pE(o,l,a);r.iterGaps((f,p,g)=>cX(u,f,d,p,g,i)),r.empty&&r.length==0&&cX(u,0,d,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let a=t.filter(d=>!d.isEmpty&&n.indexOf(d)<0),s=n.filter(d=>!d.isEmpty&&t.indexOf(d)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=uX(a,s),l=new pE(a,o,0).goto(r),u=new pE(s,o,0).goto(r);for(;;){if(l.to!=u.to||!G8(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,a=-1){let s=new pE(t,null,a).goto(n),o=n,l=s.openStart;for(;;){let u=Math.min(s.to,r);if(s.point){let d=s.activeForPoint(s.to),f=s.pointFromo&&(i.span(o,u,s.active,l),l=s.openEnd(u));if(s.to>r)return l+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(t,n=!1){let r=new im;for(let i of t instanceof V8?[t]:n?cQe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return _r.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=_r.empty;i=i.nextLayer)n=new _r(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}_r.empty=new _r([],[],null,-1);function cQe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(q8);t=r}return e}_r.empty.nextLayer=_r.empty;class im{finishChunk(t){this.chunks.push(new fB(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 im)).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(_r.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=_r.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function uX(e,t,n){let r=new Map;for(let a of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new ede(s,n,r,a));return i.length==1?i[0]:new _w(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--)uD(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--)uD(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(),uD(this.heap,0)}}}function uD(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 pE{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=_w.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){RA(this.active,t),RA(this.activeTo,t),RA(this.activeRank,t),this.minActive=dX(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n0;)n++;IA(this.active,n,r),IA(this.activeTo,n,i),IA(this.activeRank,n,a),t&&IA(t,n,this.cursor.from),this.minActive=dX(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&&RA(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function cX(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,d=u<0?e.to+l:n.to,f=Math.min(d,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&G8(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,f,e.point,n.point):f>o&&!G8(e.active,n.active)&&a.compareRange(o,f,e.active,n.active),d>s)break;o=d,u<=0&&e.next(),u>=0&&n.next()}}function G8(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 dX(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;a+=e.charCodeAt(i)==9?n-a%n:1,i=qs(e,i)}return r===!0?-1:e.length}const Z8="ͼ",fX=typeof Symbol>"u"?"__"+Z8:Symbol.for(Z8),X8=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),hX=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class am{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,l,u){let d=[],f=/^@(\w+)\b/.exec(s[0]),p=f&&f[1]=="keyframes";if(f&&o==null)return l.push(s[0]+";");for(let g in o){let O=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(T=>S.replace(/&/,T))).reduce((S,T)=>S.concat(T)),O,l);else if(O&&typeof O=="object"){if(!f)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),O,d,p)}else O!=null&&d.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+O+";")}(d.length||p)&&l.push((r&&!f&&!u?s.map(r):s).join(", ")+" {"+d.join(" ")+"}")}for(let s in t)a(i(s),t[s],this.rules)}getRules(){return this.rules.join(` +`)}static newName(){let t=hX[fX]||1;return hX[fX]=t+1,Z8+t.toString(36)}static mount(t,n,r){let i=t[X8],a=r&&r.nonce;i?a&&i.setNonce(a):i=new dQe(t,a),i.mount(Array.isArray(n)?n:[n],t)}}let pX=new Map;class dQe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let a=pX.get(r);if(a)return t[X8]=a;this.sheet=new i.CSSStyleSheet,pX.set(r,this)}else this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);this.modules=[],t[X8]=this}mount(t,n){let r=this.sheet,i=0,a=0;for(let s=0;s-1&&(this.modules.splice(l,1),a--,l=-1),l==-1){if(this.modules.splice(a++,0,o),r)for(let u=0;u",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},fQe=typeof navigator<"u"&&/Mac/.test(navigator.platform),hQe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Hs=0;Hs<10;Hs++)sm[48+Hs]=sm[96+Hs]=String(Hs);for(var Hs=1;Hs<=24;Hs++)sm[Hs+111]="F"+Hs;for(var Hs=65;Hs<=90;Hs++)sm[Hs]=String.fromCharCode(Hs+32),Cw[Hs]=String.fromCharCode(Hs);for(var cD in sm)Cw.hasOwnProperty(cD)||(Cw[cD]=sm[cD]);function pQe(e){var t=fQe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||hQe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?Cw:sm)[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 Rw(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function K8(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function mQe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function l_(e,t){if(!t.anchorNode)return!1;try{return K8(e,t.anchorNode)}catch{return!1}}function Iw(e){return e.nodeType==3?T1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function E2(e,t,n,r){return n?mX(e,t,n,r,-1)||mX(e,t,n,r,1):!1}function w1(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function q3(e){return e.nodeType==1&&/^(DIV|P|LI|UL|OL|BLOCKQUOTE|DD|DT|H\d|SECTION|PRE)$/.test(e.nodeName)}function mX(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:lp(e))){if(e.nodeName=="DIV")return!1;let a=e.parentNode;if(!a||a.nodeType!=1)return!1;t=w1(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?lp(e):0}else return!1}}function lp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function MR(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function gQe(e){let t=e.visualViewport;return t?{left:0,right:t.width,top:0,bottom:t.height}:{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function tde(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 bQe(e,t,n,r,i,a,s,o){let l=e.ownerDocument,u=l.defaultView||window;for(let d=e,f=!1;d&&!f;)if(d.nodeType==1){let p,g=d==l.body,O=1,S=1;if(g)p=gQe(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(d).position)&&(f=!0),d.scrollHeight<=d.clientHeight&&d.scrollWidth<=d.clientWidth){d=d.assignedSlot||d.parentNode;continue}let x=d.getBoundingClientRect();({scaleX:O,scaleY:S}=tde(d,x)),p={left:x.left,right:x.left+d.clientWidth*O,top:x.top,bottom:x.top+d.clientHeight*S}}let T=0,w=0;if(i=="nearest")t.top0&&t.bottom>p.bottom+w&&(w=t.bottom-p.bottom+w+s)):t.bottom>p.bottom&&(w=t.bottom-p.bottom+s,n<0&&t.top-w0&&t.right>p.right+T&&(T=t.right-p.right+T+a)):t.right>p.right&&(T=t.right-p.right+a,n<0&&t.lefti.clientHeight&&(r=i),!n&&i.scrollWidth>i.clientWidth&&(n=i),i=i.assignedSlot||i.parentNode;else if(i.nodeType==11)i=i.host;else break;return{x:n,y:r}}class vQe{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?lp(n):0),r,Math.min(t.focusOffset,r?lp(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let Mb=null;function nde(e){if(e.setActive)return e.setActive();if(Mb)return e.focus(Mb);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(Mb==null?{get preventScroll(){return Mb={preventScroll:!0},!0}}:void 0),!Mb){Mb=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}function ade(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&r>0)return{node:n,offset:r};if(n.nodeType==1&&r>0){if(n.contentEditable=="false")return null;n=n.childNodes[r-1],r=lp(n)}else if(n.parentNode&&!q3(n))r=w1(n),n=n.parentNode;else return null}}function sde(e,t){for(let n=e,r=t;;){if(n.nodeType==3&&rn)return f.domBoundsAround(t,n,u);if(p>=t&&i==-1&&(i=l,a=u),u>n&&f.dom.parentNode==this.dom){s=l,o=d;break}d=p,u=p+f.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=hB){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 lde(e,t,n,r,i,a,s,o,l){let{children:u}=e,d=u.length?u[t]:null,f=a.length?a[a.length-1]:null,p=f?f.breakAfter:s;if(!(t==r&&d&&!s&&!p&&a.length<2&&d.merge(n,i,a.length?f:null,n==0,o,l))){if(r0&&(!s&&a.length&&d.merge(n,d.length,a[0],!1,o,0)?d.breakAfter=a.shift().breakAfter:(n2);var un={mac:OX||/Mac/.test(wl.platform),windows:/Win/.test(wl.platform),linux:/Linux|X11/.test(wl.platform),ie:$R,ie_version:cde?J8.documentMode||6:tL?+tL[1]:eL?+eL[1]:0,gecko:yX,gecko_version:yX?+(/Firefox\/(\d+)/.exec(wl.userAgent)||[0,0])[1]:0,chrome:!!dD,chrome_version:dD?+dD[1]:0,ios:OX,android:/Android\b/.test(wl.userAgent),webkit:vX,safari:dde,webkit_version:vX?+(/\bAppleWebKit\/(\d+)/.exec(wl.userAgent)||[0,0])[1]:0,tabSize:J8.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const EQe=256;class Rd extends Oi{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 Rd)||this.length-(n-t)+r.length>EQe||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 Rd(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 po(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 wQe(this.dom,t,n)}}class up extends Oi{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(rde(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,a,s){return r&&(!(r instanceof up&&r.mark.eq(this.mark))||t&&a<=0||nt&&n.push(r=t&&(i=a),r=l,a++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new up(this.mark,n,s)}domAtPos(t){return fde(this,t)}coordsAt(t,n){return pde(this,t,n)}}function wQe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,s=0;t==0&&n<0||t==r&&n>=0?un.chrome||un.gecko||(t?(i--,s=1):a=0)?0:o.length-1];return un.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(o,u=>u.width)||l),s?MR(l,s<0):l||null}class P0 extends Oi{static create(t,n,r){return new P0(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=P0.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,a,s){return r&&(!(r instanceof P0)||!this.widget.compare(r.widget)||t>0&&a<=0||n0)?po.before(this.dom):po.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:t>0;for(let o=s?i.length-1:0;a=i[o],!(t>0?o==0:o==i.length-1||a.top0?po.before(this.dom):po.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return yr.empty}get isHidden(){return!0}}Rd.prototype.children=P0.prototype.children=Iv.prototype.children=hB;function fde(e,t){let n=e.dom,{children:r}=e,i=0;for(let a=0;ia&&t0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a0&&t instanceof up&&i.length&&(r=i[i.length-1])instanceof up&&r.mark.eq(t.mark)?hde(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function pde(e,t,n){let r=null,i=-1,a=null,s=-1;function o(u,d){for(let f=0,p=0;f=d&&(g.children.length?o(g,d-p):(!a||a.isHidden&&n>0)&&(O>d||p==O&&g.getSide()>0)?(a=g,s=d-p):(p-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function rL(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 xQe(e){let t=Object.create(null);for(let n=0;n0?3e8:-4e8:n>0?1e8:-1e8,new om(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=mde(t,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new om(t,r,i,n,t.widget||null,!0)}static line(t){return new VT(t)}static set(t,n=!1){return _r.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}bn.none=_r.empty;class WT extends bn{constructor(t){let{start:n,end:r}=mde(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 WT&&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))&&G3(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)}}WT.prototype.point=!1;class VT extends bn{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof VT&&this.spec.class==t.spec.class&&G3(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)}}VT.prototype.mapMode=Qs.TrackBefore;VT.prototype.point=!0;class om extends bn{constructor(t,n,r,i,a,s){super(n,r,a,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?Qs.TrackBefore:Qs.TrackAfter:Qs.TrackDel}get type(){return this.startSide!=this.endSide?Zo.WidgetRange:this.startSide<=0?Zo.WidgetBefore:Zo.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof om&&kQe(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)}}om.prototype.point=!0;function mde(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 kQe(e,t){return e==t||!!(e&&t&&e.compare(t))}function iL(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 ja extends Oi{constructor(){super(...arguments),this.children=[],this.length=0,this.prevAttrs=void 0,this.attrs=null,this.breakAfter=0}merge(t,n,r,i,a,s){if(r){if(!(r instanceof ja))return!1;this.dom||r.transferDOM(this)}return i&&this.setDeco(r?r.attrs:null),ude(this,t,n,r?r.children.slice():[],a,s),!0}split(t){let n=new ja;if(n.breakAfter=this.breakAfter,this.length==0)return n;let{i:r,off:i}=this.childPos(t);i&&(n.append(this.children[r].split(i),0),this.children[r].merge(i,this.children[r].length,null,!1,0,0),r++);for(let a=r;a0&&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){G3(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){hde(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=nL(n,this.attrs||{})),r&&(this.attrs=nL({class:r},this.attrs||{}))}domAtPos(t){return fde(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(rde(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&&(rL(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&&Oi.get(i)instanceof up;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=Oi.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!un.ios||!this.children.some(a=>a instanceof Rd))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof Rd)||/[^ -~]/.test(r.text))return null;let i=Iw(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=pde(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight=n){if(a instanceof ja)return a;if(s>n)break}i=s+a.breakAfter}return null}}class Yh extends Oi{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,a,s){return r&&(!(r instanceof Yh)||!this.widget.compare(r.widget)||t>0&&a<=0||n0}}class aL extends Md{constructor(t){super(),this.height=t}toDOM(){let t=document.createElement("div");return t.className="cm-gap",this.updateDOM(t),t}eq(t){return t.height==this.height}updateDOM(t){return t.style.height=this.height+"px",!0}get editable(){return!0}get estimatedHeight(){return this.height}ignoreEvent(){return!1}}class w2{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 Yh&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new ja),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(NA(new Iv(-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 Yh)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(NA(new Rd(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof om){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-t;if(r instanceof om)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Yh(r.widget||Nv.block,o,r));else{let l=P0.create(r.widget||Nv.inline,o,o?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&a<=i.length&&(t0),d=!l.isEditable&&(ti.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(NA(new Iv(1),i),a),a=i.length+Math.max(0,a-i.length)),f.append(NA(l,i),a),this.atCursorPos=d,this.pendingBuffer=d?ti.length?1:2:0,this.pendingBuffer&&(this.bufferMarks=i.slice())}else this.doc.lineAt(this.pos).from==this.pos&&this.getLine().addLineDeco(r);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(t,n,r,i,a){let s=new w2(t,n,r,a);return s.openEnd=_r.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function NA(e,t){for(let n of t)e=new up(n,[e],e.length);return e}class Nv extends Md{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}}Nv.inline=new Nv("span");Nv.block=new Nv("div");var Bi=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Bi||(Bi={}));const x1=Bi.LTR,pB=Bi.RTL;function gde(e){let t=[];for(let n=0;n=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.fromn:t[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function yde(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;S-=3)if(Kd[S+1]==-g){let T=Kd[S+2],w=T&2?i:T&4?T&1?a:i:0;w&&(yi[f]=yi[Kd[S]]=w),o=S;break}}else{if(Kd.length==189)break;Kd[o++]=f,Kd[o++]=p,Kd[o++]=l}else if((O=yi[f])==2||O==1){let S=O==i;l=S?0:1;for(let T=o-3;T>=0;T-=3){let w=Kd[T+2];if(w&2)break;if(S)Kd[T+2]|=2;else{if(w&4)break;Kd[T+2]|=4}}}}}function NQe(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:e,o=il;)O==T&&(O=n[--S].from,T=S?n[S-1].to:e),yi[--O]=g;l=d}else a=u,l++}}}function oL(e,t,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&s.push(new L0(l,S.from,g));let T=S.direction==x1!=!(g%2);lL(e,T?r+1:r,i,S.inner,S.from,S.to,s),l=S.to}O=S.to}else{if(O==n||(d?yi[O]!=o:yi[O]==o))break;O++}p?oL(e,l,O,r+1,i,p,s):lt;){let d=!0,f=!1;if(!u||l>a[u-1].to){let S=yi[l-1];S!=o&&(d=!1,f=S==16)}let p=!d&&o==1?[]:null,g=d?r:r+1,O=l;e:for(;;)if(u&&O==a[u-1].to){if(f)break e;let S=a[--u];if(!d)for(let T=S.from,w=u;;){if(T==t)break e;if(w&&a[w-1].to==T)T=a[--w].from;else{if(yi[T-1]==o)break e;break}}if(p)p.push(S);else{S.toyi.length;)yi[yi.length]=256;let r=[],i=t==x1?0:1;return lL(e,i,i,n,0,e.length,r),r}function vde(e){return[new L0(0,e,0)]}let Ode="";function PQe(e,t,n,r,i){var a;let s=r.head-e.from,o=L0.find(t,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=t[o],u=l.side(i,n);if(s==u){let p=o+=i?1:-1;if(p<0||p>=t.length)return null;l=t[o=p],s=l.side(!i,n),u=l.side(i,n)}let d=qs(e.text,s,l.forward(i,n));(dl.to)&&(d=u),Ode=e.text.slice(Math.min(s,d),Math.max(s,d));let f=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return f&&d==u&&f.level+(i?0:1)e.some(t=>t)}),_de=sn.define({combine:e=>e.some(t=>t)}),Cde=sn.define();class Qy{constructor(t,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(t){return t.empty?this:new Qy(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 Qy(dt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const DA=Zn.define({map:(e,t)=>e.map(t)}),Rde=Zn.define();function kl(e,t,n){let r=e.facet(Tde);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 m0=sn.define({combine:e=>e.length?e[0]:!0});let MQe=0;const jE=sn.define();class da{constructor(t,n,r,i,a){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new da(MQe++,t,r,i,o=>{let l=[jE.of(o)];return s&&l.push(Nw.of(u=>{let d=u.plugin(o);return d?s(d):bn.none})),a&&l.push(a(o)),l})}static fromClass(t,n){return da.define(r=>new t(r),n)}}class fD{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(kl(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){kl(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){kl(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Ide=sn.define(),mB=sn.define(),Nw=sn.define(),Nde=sn.define(),gB=sn.define(),Dde=sn.define();function EX(e,t){let n=e.state.facet(Dde);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(e):a),i=[];return _r.spans(r,t.from,t.to,{point(){},span(a,s,o,l){let u=a-t.from,d=s-t.from,f=i;for(let p=o.length-1;p>=0;p--,l--){let g=o[p].spec.bidiIsolate,O;if(g==null&&(g=LQe(t.text,u,d)),l>0&&f.length&&(O=f[f.length-1]).to==u&&O.direction==g)O.to=d,f=O.inner;else{let S={from:u,to:d,direction:g,inner:[]};f.push(S),f=S.inner}}}}),i}const Pde=sn.define();function Lde(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(Pde)){let s=a(e);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const HE=sn.define();class Oc{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new Oc(Math.min(this.fromA,t.fromA),Math.max(this.toA,t.toA),Math.min(this.fromB,t.fromB),Math.max(this.toB,t.toB))}addToSet(t){let n=t.length,r=this;for(;n>0;n--){let i=t[n-1];if(!(i.fromA>r.toA)){if(i.toAd)break;a+=2}if(!l)return r;new Oc(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,o=l.toB}}}class Y3{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ts.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,l)=>i.push(new Oc(a,s,o,l))),this.changedRanges=i}static create(t,n,r){return new Y3(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 wX extends Oi{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[!1],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.editContextFormatting=bn.none,this.lastCompositionAfterCursor=!1,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 ja],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new Oc(0,0,0,t.state.doc.length)],0,null)}update(t){var n;let r=t.changedRanges;this.minWidth>0&&r.length&&(r.every(({fromA:u,toA:d})=>dthis.minWidthTo)?(this.minWidthFrom=t.changes.mapPos(this.minWidthFrom,1),this.minWidthTo=t.changes.mapPos(this.minWidthTo,1)):this.minWidth=this.minWidthFrom=this.minWidthTo=0),this.updateEditContextFormatting(t);let i=-1;this.view.inputState.composing>=0&&!this.view.observer.editContext&&(!((n=this.domChanged)===null||n===void 0)&&n.newSel?i=this.domChanged.newSel.head:!HQe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let a=i>-1?FQe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:d}=this.hasComposition;r=new Oc(u,d,t.changes.mapPos(u,-1),t.changes.mapPos(d,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(un.ie||un.chrome)&&!a&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),l=zQe(s,o,t.changes);return r=Oc.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,a),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=un.chrome||un.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to=0?i[s]:null;if(!o)break;let{fromA:l,toA:u,fromB:d,toB:f}=o,p,g,O,S;if(r&&r.range.fromBd){let _=w2.build(this.view.state.doc,d,r.range.fromB,this.decorations,this.dynamicDecorationMap),I=w2.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);g=_.breakAtStart,O=_.openStart,S=I.openEnd;let N=this.compositionView(r);I.breakAtStart?N.breakAfter=1:I.content.length&&N.merge(N.length,N.length,I.content[0],!1,I.openStart,0)&&(N.breakAfter=I.content[0].breakAfter,I.content.shift()),_.content.length&&N.merge(0,0,_.content[_.content.length-1],!0,0,_.openEnd)&&_.content.pop(),p=_.content.concat(N).concat(I.content)}else({content:p,breakAtStart:g,openStart:O,openEnd:S}=w2.build(this.view.state.doc,d,f,this.decorations,this.dynamicDecorationMap));let{i:T,off:w}=a.findPos(u,1),{i:x,off:k}=a.findPos(l,-1);lde(this,x,k,T,w,p,g,O,S)}r&&this.fixCompositionDOM(r)}updateEditContextFormatting(t){this.editContextFormatting=this.editContextFormatting.map(t.changes);for(let n of t.transactions)for(let r of n.effects)r.is(Rde)&&(this.editContextFormatting=r.value)}compositionView(t){let n=new Rd(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new up(i,[n],n.length);let r=new ja;return r.append(n,0),r}fixCompositionDOM(t){let n=(a,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let o=Oi.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let a=t.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?t.marks[a].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&l_(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),u=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(un.gecko&&o.empty&&!this.hasComposition&&$Qe(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new po(f,0),s=!0}let d=this.view.observer.selectionRange;(s||!d.focusNode||(!E2(l.node,l.offset,d.anchorNode,d.anchorOffset)||!E2(u.node,u.offset,d.focusNode,d.focusOffset))&&!this.suppressWidgetCursorChange(d,o))&&(this.view.observer.ignore(()=>{un.android&&un.chrome&&this.dom.contains(d.focusNode)&&jQe(d.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=Rw(this.view.root);if(f)if(o.empty){if(un.gecko){let p=BQe(l.node,l.offset);if(p&&p!=3){let g=(p==1?ade:sde)(l.node,l.offset);g&&(l=new po(g.node,g.offset))}}f.collapse(l.node,l.offset),o.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=o.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let p=document.createRange();o.anchor>o.head&&([l,u]=[u,l]),p.setEnd(u.node,u.offset),p.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(p)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new po(d.anchorNode,d.anchorOffset),this.impreciseHead=u.precise?null:new po(d.focusNode,d.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&E2(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=Rw(t.root),{anchorNode:i,anchorOffset:a}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=ja.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let d=this.domAtPos(n.head+n.assoc);r.collapse(d.node,d.offset),r.modify("move",n.assoc<0?"forward":"backward","lineboundary"),t.observer.readSelectionRange();let f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let a=Oi.get(n.childNodes[i]);a instanceof ja&&(r=a.domAtPos(a.length))}return r?new po(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=Oi.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let o=this.children[s],l=a-o.breakAfter,u=l-o.length;if(lt||o.covers(1))&&(!r||o instanceof ja&&!(r instanceof ja&&n>=0)))r=o,i=u;else if(r&&u==t&&l==t&&o instanceof Yh&&Math.abs(n)<2){if(o.deco.startSide<0)break;s&&(r=null)}a=u}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof ja))return null;for(;i.children.length;){let{i:o,off:l}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=l}if(!(i instanceof Rd))return null;let a=qs(i.text,r);if(a==r)return null;let s=T1(i.dom,r,a).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Bi.LTR;for(let u=0,d=0;di)break;if(u>=r){let g=f.dom.getBoundingClientRect();if(n.push(g.height),s){let O=f.dom.lastChild,S=O?Iw(O):[];if(S.length){let T=S[S.length-1],w=l?T.right-g.left:g.right-T.left;w>o&&(o=w,this.minWidth=a,this.minWidthFrom=u,this.minWidthTo=p)}}}u=p+f.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Bi.RTL:Bi.LTR}measureTextSize(){for(let a of this.children)if(a instanceof ja){let s=a.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let a=Iw(t.firstChild)[0];n=t.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new ode(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(bn.replace({widget:new aL(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return bn.set(t)}updateDeco(){let t=1,n=this.view.state.facet(Nw).map(a=>(this.dynamicDecorationMap[t++]=typeof a=="function")?a(this.view):a),r=!1,i=this.view.state.facet(Nde).map((a,s)=>{let o=typeof a=="function";return o&&(r=!0),o?a(this.view):a});for(i.length&&(this.dynamicDecorationMap[t++]=r,n.push(_r.join(i))),this.decorations=[this.editContextFormatting,...n,this.computeBlockGapDeco(),this.view.viewState.lineGapDeco];tn.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=Lde(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;bQe(this.view.scrollDOM,s,n.head{rt.from&&(n=!0)}),n}function QQe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return dt.cursor(t);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=qs(i.text,a,!1):o=qs(i.text,a);let l=r(i.text.slice(s,o));for(;s>0;){let u=qs(i.text,s,!1);if(r(i.text.slice(u,s))!=l)break;s=u}for(;oe?t.left-e:Math.max(0,e-t.right)}function VQe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function hD(e,t){return e.topt.top+1}function TX(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function cL(e,t,n){let r,i,a,s,o=!1,l,u,d,f;for(let O=e.firstChild;O;O=O.nextSibling){let S=Iw(O);for(let T=0;Tk||s==k&&a>x){r=O,i=w,a=x,s=k;let _=k?n0?T0)}x==0?n>w.bottom&&(!d||d.bottomw.top)&&(u=O,f=w):d&&hD(d,w)?d=xX(d,w.bottom):f&&hD(f,w)&&(f=TX(f,w.top))}}if(d&&d.bottom>=n?(r=l,i=d):f&&f.top<=n&&(r=u,i=f),!r)return{node:e,offset:0};let p=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return kX(r,p,n);if(o&&r.contentEditable!="false")return cL(r,p,n);let g=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:g}}function kX(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;on?d.top-n:n-d.bottom)-1;if(d.left-1<=t&&d.right+1>=t&&f=(d.left+d.right)/2,g=p;if((un.chrome||un.gecko)&&T1(e,o).getBoundingClientRect().left==d.right&&(g=!p),f<=0)return{node:e,offset:o+(g?1:0)};i=o+(g?1:0),a=f}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function $de(e,t,n,r=-1){var i,a;let s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:d,y:f}=t,p=f-o;if(p<0)return 0;if(p>u)return e.state.doc.length;for(let _=e.viewState.heightOracle.textHeight/2,I=!1;l=e.elementAtHeight(p),l.type!=Zo.Text;)for(;p=r>0?l.bottom+_:l.top-_,!(p>=0&&p<=u);){if(I)return n?null:0;I=!0,r=-r}f=o+p;let g=l.from;if(ge.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:AX(e,s,l,d,f);let O=e.dom.ownerDocument,S=e.root.elementFromPoint?e.root:O,T=S.elementFromPoint(d,f);T&&!e.contentDOM.contains(T)&&(T=null),T||(d=Math.max(s.left+1,Math.min(s.right-1,d)),T=S.elementFromPoint(d,f),T&&!e.contentDOM.contains(T)&&(T=null));let w,x=-1;if(T&&((i=e.docView.nearest(T))===null||i===void 0?void 0:i.isEditable)!=!1){if(O.caretPositionFromPoint){let _=O.caretPositionFromPoint(d,f);_&&({offsetNode:w,offset:x}=_)}else if(O.caretRangeFromPoint){let _=O.caretRangeFromPoint(d,f);_&&({startContainer:w,startOffset:x}=_,(!e.contentDOM.contains(w)||un.safari&&qQe(w,x,d)||un.chrome&&GQe(w,x,d))&&(w=void 0))}}if(!w||!e.docView.dom.contains(w)){let _=ja.find(e.docView,g);if(!_)return p>l.top+l.height/2?l.to:l.from;({node:w,offset:x}=cL(_.dom,d,f))}let k=e.docView.nearest(w);if(!k)return null;if(k.isWidget&&((a=k.dom)===null||a===void 0?void 0:a.nodeType)==1){let _=k.dom.getBoundingClientRect();return t.y<_.top||t.y<=_.bottom&&t.x<=(_.left+_.right)/2?k.posAtStart:k.posAtEnd}else return k.localPosFromDOM(w,x)+k.posAtStart}function AX(e,t,n,r,i){let a=Math.round((r-t.left)*e.defaultCharacterWidth);if(e.lineWrapping&&n.height>e.defaultLineHeight*1.5){let o=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-o)*.5)/o);a+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+Y8(s,a,e.state.tabSize)}function qQe(e,t,n){let r;if(e.nodeType!=3||t!=(r=e.nodeValue.length))return!1;for(let i=e.nextSibling;i;i=i.nextSibling)if(i.nodeType!=1||i.nodeName!="BR")return!1;return T1(e,r-1,r).getBoundingClientRect().left>n}function GQe(e,t,n){if(t!=0)return!1;for(let i=e;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=e.nodeType==1?e.getBoundingClientRect():T1(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function dL(e,t){let n=e.lineBlockAt(t);if(Array.isArray(n.type)){for(let r of n.type)if(r.to>t||r.to==t&&(r.to==n.to||r.type==Zo.Text))return r}return n}function YQe(e,t,n,r){let i=dL(e,t.head),a=!r||i.type!=Zo.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let s=e.dom.getBoundingClientRect(),o=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(o==Bi.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(l!=null)return dt.cursor(l,n?-1:1)}return dt.cursor(n?i.to:i.from,n?-1:1)}function _X(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let o=t,l=null;;){let u=PQe(i,a,s,o,n),d=Ode;if(!u){if(i.number==(n?e.state.doc.lines:1))return o;d=` +`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(d))return o}else{if(!r)return u;l=r(d)}o=u}}function ZQe(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return a=>{let s=r(a);return i==Ji.Space&&(i=s),i==s}}function XQe(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return dt.cursor(i,t.assoc);let s=t.goalColumn,o,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),d=e.documentTop;if(u)s==null&&(s=u.left-l.left),o=a<0?u.top:u.bottom;else{let g=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+d}let f=l.left+s,p=r??e.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let O=o+(p+g)*a,S=$de(e,{x:f,y:O},!1,a);if(Ol.bottom||(a<0?Si)){let T=e.docView.coordsForChar(S),w=!T||O{if(t>a&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:dt.cursor(r,ra)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=a+s}}readNode(t){if(t.cmIgnore)return;let n=Oi.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+(JQe(t,r.node,r.offset)?n:0))}}function JQe(e,t,n){for(;;){if(!t||n-1;let{impreciseHead:a,impreciseAnchor:s}=t.docView;if(t.state.readOnly&&n>-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let o=a||s?[]:rWe(t),l=new KQe(o,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=iWe(o,this.bounds.from)}else{let o=t.observer.selectionRange,l=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!K8(t.contentDOM,o.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(o.focusNode,o.focusOffset),u=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!K8(t.contentDOM,o.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(o.anchorNode,o.anchorOffset),d=t.viewport;if((un.ios||un.chrome)&&t.state.selection.main.empty&&l!=u&&(d.from>0||d.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:o}=t.bounds,l=i.from,u=null;(a===8||un.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))}:(un.mac||un.android)&&n&&n.from==n.to&&n.from==i.head-1&&/^\. ?$/.test(n.insert.toString())&&e.contentDOM.getAttribute("autocorrect")=="off"?(r&&n.insert.length==2&&(r=dt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:yr.of([" "])}):un.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` + `&&e.lineWrapping&&(r&&(r=dt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:yr.of([" "])}),n)return bB(e,n,r,a);if(r&&!r.main.eq(i)){let s=!1,o="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),o=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function bB(e,t,n,r=-1){if(un.ios&&e.inputState.flushIOSKey(t))return!0;let i=e.state.selection.main;if(un.android&&(t.to==i.to&&(t.from==i.from||t.from==i.from-1&&e.state.sliceDoc(t.from,i.from)==" ")&&t.insert.length==1&&t.insert.lines==2&&Hy(e.contentDOM,"Enter",13)||(t.from==i.from-1&&t.to==i.to&&t.insert.length==0||r==8&&t.insert.lengthi.head)&&Hy(e.contentDOM,"Backspace",8)||t.from==i.from&&t.to==i.to+1&&t.insert.length==0&&Hy(e.contentDOM,"Delete",46)))return!0;let a=t.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let s,o=()=>s||(s=tWe(e,t,n));return e.state.facet(xde).some(l=>l(e,t.from,t.to,a,o))||e.dispatch(o()),!0}function tWe(e,t,n){let r,i=e.state,a=i.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let o=a.fromt.to?i.sliceDoc(t.to,a.to):"";r=i.replaceSelection(e.state.toText(o+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let o=i.changes(t),l=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u=e.state.sliceDoc(t.from,t.to),d,f=n&&Mde(e,n.main.head);if(f){let O=t.insert.length-(t.to-t.from);d={from:f.from,to:f.to-O}}else d=e.state.doc.lineAt(a.head);let p=a.to-t.to,g=a.to-a.from;r=i.changeByRange(O=>{if(O.from==a.from&&O.to==a.to)return{changes:o,range:l||O.map(o)};let S=O.to-p,T=S-u.length;if(O.to-O.from!=g||e.state.sliceDoc(T,S)!=u||O.to>=d.from&&O.from<=d.to)return{range:O};let w=i.changes({from:T,to:S,insert:t.insert}),x=O.to-a.to;return{changes:w,range:l?dt.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):O.map(w)}})}else r={changes:o,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function nWe(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;if(r=="end"){let l=Math.max(0,a-Math.min(s,o));n-=s+l-a}if(s=s?a-n:0;a-=l,o=a+(o-s),s=a}else if(o=o?a-n:0;a-=l,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function rWe(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new CX(n,r)),(i!=n||a!=r)&&t.push(new CX(i,a))),t}function iWe(e,t){if(e.length==0)return null;let n=e[0].pos,r=e.length==2?e[1].pos:n;return n>-1&&r>-1?dt.single(n+t,r+t):null}class aWe{setSelectionOrigin(t){this.lastSelectionOrigin=t,this.lastSelectionTime=Date.now()}constructor(t){this.view=t,this.lastKeyCode=0,this.lastKeyTime=0,this.lastTouchTime=0,this.lastFocusTime=0,this.lastScrollTop=0,this.lastScrollLeft=0,this.pendingIOSKey=void 0,this.tabFocusMode=-1,this.lastSelectionOrigin=null,this.lastSelectionTime=0,this.lastContextMenu=0,this.scrollHandlers=[],this.handlers=Object.create(null),this.composing=-1,this.compositionFirstChange=null,this.compositionEndedAt=0,this.compositionPendingKey=!1,this.compositionPendingChange=!1,this.mouseSelection=null,this.draggedContent=null,this.handleEvent=this.handleEvent.bind(this),this.notifiedFocused=t.hasFocus,un.safari&&t.contentDOM.addEventListener("input",()=>null),un.gecko&&SWe(t.contentDOM.ownerDocument)}handleEvent(t){!hWe(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=sWe(t),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&this.tabFocusMode>-1&&(!this.tabFocusMode||Date.now()<=this.tabFocusMode))return!0;if(this.tabFocusMode>0&&t.keyCode!=27&&Ude.indexOf(t.keyCode)<0&&(this.tabFocusMode=-1),un.android&&un.chrome&&!t.synthetic&&(t.keyCode==13||t.keyCode==8))return this.view.observer.delayAndroidKey(t.key,t.keyCode),!0;let n;return un.ios&&!t.synthetic&&!t.altKey&&!t.metaKey&&((n=Bde.find(r=>r.keyCode==t.keyCode))&&!t.ctrlKey||oWe.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(t){let n=this.pendingIOSKey;return!n||n.key=="Enter"&&t&&t.from0?!0:un.safari&&!un.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.view.observer.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 RX(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){kl(n.state,i)}}}function sWe(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(RX(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(RX(r.value,s))}}for(let r in Id)n(r).handlers.push(Id[r]);for(let r in _c)n(r).observers.push(_c[r]);return t}const Bde=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],oWe="dthko",Ude=[16,17,18,20,91,92,224,225],PA=6;function LA(e){return Math.max(0,e)*.7+8}function lWe(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class uWe{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.scrollParents=yQe(t.contentDOM),this.atoms=t.state.facet(gB).map(s=>s(t));let a=t.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Dr.allowMultipleSelections)&&cWe(t,n),this.dragging=fWe(t,n)&&Hde(n)==1?null:!1}start(t){this.dragging===!1&&this.select(t)}move(t){if(t.buttons==0)return this.destroy();if(this.dragging||this.dragging==null&&lWe(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let n=0,r=0,i=0,a=0,s=this.view.win.innerWidth,o=this.view.win.innerHeight;this.scrollParents.x&&({left:i,right:s}=this.scrollParents.x.getBoundingClientRect()),this.scrollParents.y&&({top:a,bottom:o}=this.scrollParents.y.getBoundingClientRect());let l=Lde(this.view);t.clientX-l.left<=i+PA?n=-LA(i-t.clientX):t.clientX+l.right>=s-PA&&(n=LA(t.clientX-s)),t.clientY-l.top<=a+PA?r=-LA(a-t.clientY):t.clientY+l.bottom>=o-PA&&(r=LA(t.clientY-o)),this.setScrollSpeed(n,r)}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(){let{x:t,y:n}=this.scrollSpeed;t&&this.scrollParents.x&&(this.scrollParents.x.scrollLeft+=t,t=0),n&&this.scrollParents.y&&(this.scrollParents.y.scrollTop+=n,n=0),(t||n)&&this.view.win.scrollBy(t,n),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rn.isUserEvent("input.type"))?this.destroy():this.style.update(t)&&setTimeout(()=>this.select(this.lastEvent),20)}}function cWe(e,t){let n=e.state.facet(Sde);return n.length?n[0](t):un.mac?t.metaKey:t.ctrlKey}function dWe(e,t){let n=e.state.facet(Ede);return n.length?n[0](t):un.mac?!t.altKey:!t.ctrlKey}function fWe(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=Rw(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function hWe(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=Oi.get(n))&&r.ignoreEvent(t))return!1;return!0}const Id=Object.create(null),_c=Object.create(null),zde=un.ie&&un.ie_version<15||un.ios&&un.webkit_version<604;function pWe(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(),jde(e,n.value)},50)}function jde(e,t){let{state:n}=e,r,i=1,a=n.toText(t),s=a.lines==n.selection.ranges.length;if(fL!=null&&n.selection.ranges.every(l=>l.empty)&&fL==a.toString()){let l=-1;r=n.changeByRange(u=>{let d=n.doc.lineAt(u.from);if(d.from==l)return{range:u};l=d.from;let f=n.toText((s?a.line(i++).text:t)+n.lineBreak);return{changes:{from:d.from,insert:f},range:dt.cursor(u.from+f.length)}})}else s?r=n.changeByRange(l=>{let u=a.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:dt.cursor(l.from+u.length)}}):r=n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}_c.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Id.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&e.inputState.tabFocusMode!=0&&(e.inputState.tabFocusMode=Date.now()+2e3),!1);_c.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};_c.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Id.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(wde))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=bWe(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new uWe(e,t,n,r)),r&&e.observer.ignore(()=>{nde(e.contentDOM);let a=e.root.activeElement;a&&!a.contains(e.contentDOM)&&a.blur()});let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function IX(e,t,n,r){if(r==1)return dt.cursor(t,n);if(r==2)return QQe(e.state,t,n);{let i=ja.find(e.docView,t),a=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return ot>=n.top&&t<=n.bottom&&e>=n.left&&e<=n.right;function mWe(e,t,n,r){let i=ja.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&NX(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&NX(n,r,o)?1:s&&s.bottom>=r?-1:1}function DX(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:mWe(e,n,t.clientX,t.clientY)}}const gWe=un.ie&&un.ie_version<=11;let PX=null,LX=0,MX=0;function Hde(e){if(!gWe)return e.detail;let t=PX,n=MX;return PX=e,MX=Date.now(),LX=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(LX+1)%3:1}function bWe(e,t){let n=DX(e,t),r=Hde(t),i=e.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let l=DX(e,a),u,d=IX(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let f=IX(e,n.pos,n.bias,r),p=Math.min(f.from,d.from),g=Math.max(f.to,d.to);d=p1&&(u=yWe(i,l.pos))?u:o?i.addRange(d):dt.create([d])}}}function yWe(e,t){for(let n=0;n=t)return dt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Id.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=dt.range(a,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Id.dragend=e=>(e.inputState.draggedContent=null,!1);function $X(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&dWe(e,t)?{from:a.from,to:a.to}:null,o={from:i,insert:n},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Id.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&$X(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return $X(e,t,r,!0),!0}return!1};Id.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=zde?null:t.clipboardData;return n?(jde(e,n.getData("text/plain")||n.getData("text/uri-list")),!0):(pWe(e),!1)};function vWe(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 OWe(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:a}of e.selection.ranges){let s=e.doc.lineAt(a);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let fL=null;Id.copy=Id.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=OWe(e.state);if(!n&&!i)return!1;fL=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=zde?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(vWe(e,n),!1)};const Qde=Ld.define();function Wde(e,t){let n=[];for(let r of e.facet(kde)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:Qde.of(!0)}):null}function Vde(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=Wde(e.state,t);n?e.dispatch(n):e.update([])}},10)}_c.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),Vde(e)};_c.blur=e=>{e.observer.clearSelectionRange(),Vde(e)};_c.compositionstart=_c.compositionupdate=e=>{e.observer.editContext||(e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0))};_c.compositionend=e=>{e.observer.editContext||(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,un.chrome&&un.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50))};_c.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Id.beforeinput=(e,t)=>{var n,r;if(t.inputType=="insertReplacementText"&&e.observer.editContext){let a=(n=t.dataTransfer)===null||n===void 0?void 0:n.getData("text/plain"),s=t.getTargetRanges();if(a&&s.length){let o=s[0],l=e.posAtDOM(o.startContainer,o.startOffset),u=e.posAtDOM(o.endContainer,o.endOffset);return bB(e,{from:l,to:u,insert:e.state.toText(a)},null),!0}}let i;if(un.chrome&&un.android&&(i=Bde.find(a=>a.inputType==t.inputType))&&(e.observer.delayAndroidKey(i.key,i.keyCode),i.key=="Backspace"||i.key=="Delete")){let a=((r=window.visualViewport)===null||r===void 0?void 0:r.height)||0;setTimeout(()=>{var s;(((s=window.visualViewport)===null||s===void 0?void 0:s.height)||0)>a+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return un.ios&&t.inputType=="deleteContentForward"&&e.observer.flushSoon(),un.safari&&t.inputType=="insertText"&&e.inputState.composing>=0&&setTimeout(()=>_c.compositionend(e,t),20),!1};const FX=new Set;function SWe(e){FX.has(e)||(FX.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const BX=["pre-wrap","normal","pre-line","break-spaces"];let Dv=!1;function UX(){Dv=!1}class EWe{constructor(t){this.lineWrapping=t,this.doc=yr.empty,this.heightSamples={},this.lineHeight=14,this.charWidth=7,this.textHeight=14,this.lineLength=30}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 BX.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t){this.height!=t&&(Math.abs(this.height-t)>c_&&(Dv=!0),this.height=t)}replace(t,n,r){return Xo.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:l,toA:u,fromB:d,toB:f}=i[o],p=a.lineAt(l,$i.ByPosNoHeight,r.setDoc(n),0,0),g=p.to>=u?p:a.lineAt(u,$i.ByPosNoHeight,r,0,0);for(f+=g.to-u,u=g.to;o>0&&p.from<=i[o-1].toA;)l=i[o-1].fromA,d=i[o-1].fromB,o--,la*2){let o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=t[r];o.break?t.splice(r,1,o.left,null,o.right):t.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i=a&&s(this.blockAt(0,r,i,a))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class au extends qde{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new vf(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof au||i instanceof Us&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof Us?i=new au(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Xo.of(r)}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more?this.setHeight(i.heights[i.index++]):(r||this.outdated)&&this.setHeight(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 Us extends Xo{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*a);s=l/a,this.length>a+1&&(o=(this.height-l)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(t,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+(t0){let a=r[r.length-1];a instanceof Us?r[r.length-1]=new Us(a.length+i):r.push(null,new Us(i-1))}if(t>0){let a=r[0];a instanceof Us?r[0]=new Us(t+a.length):r.unshift(new Us(t-1),null)}return Xo.of(r)}decomposeLeft(t,n){n.push(new Us(t-1),null)}decomposeRight(t,n){n.push(null,new Us(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),l=-1;for(i.from>n&&s.push(new Us(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let d=t.doc.lineAt(o).length;s.length&&s.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=c_&&(l=-2);let p=new au(d,f);p.outdated=!1,s.push(p),o+=d+1}o<=a&&s.push(null,new Us(a-o).updateHeight(t,o));let u=Xo.of(s);return(l<0||Math.abs(u.height-this.height)>=c_||Math.abs(l-this.heightMetrics(t,n).perLine)>=c_)&&(Dv=!0),Z3(this,u)}else(r||this.outdated)&&(this.setHeight(t.heightForGap(n,n+this.length)),this.outdated=!1);return this}toString(){return`gap(${this.length})`}}class TWe extends Xo{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let a=r+this.left.height;return to))return u;let d=n==$i.ByPosNoHeight?$i.ByPosNoHeight:$i.ByPos;return l?u.join(this.right.lineAt(o,d,r,s,o)):this.left.lineAt(o,d,r,i,a).join(u)}forEachLine(t,n,r,i,a,s){let o=i+this.left.height,l=a+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,o,l,s);else{let u=this.lineAt(l,$i.ByPos,r,i,a);t=t&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,o,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let a=[];t>0&&this.decomposeLeft(t,a);let s=a.length;for(let o of r)a.push(o);if(t>0&&zX(a,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?Xo.of(this.break?[t,null,n]:[t,n]):(this.left=Z3(this.left,t),this.right=Z3(this.right,n),this.setHeight(t.height+n.height),this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(t,n,r,i):a.updateHeight(t,n,r),i&&i.from<=o+s.length&&i.more?l=s=s.updateHeight(t,o,r,i):s.updateHeight(t,o,r),l?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function zX(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof Us&&(r=e[t+1])instanceof Us&&e.splice(t-1,3,new Us(n.length+1+r.length))}const xWe=5;class yB{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 au?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new au(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=xWe)&&this.addLineDeco(i,a,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new au(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new Us(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 au)return t;let n=new au(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 au)&&!this.isCovered?this.nodes.push(new au(0,-1)):(this.writtenTod.clientHeight||d.scrollWidth>d.clientWidth)&&f.overflow!="visible"){let p=d.getBoundingClientRect();a=Math.max(a,p.left),s=Math.min(s,p.right),o=Math.max(o,p.top),l=Math.min(u==e.parentNode?i.innerHeight:l,p.bottom)}u=f.position=="absolute"||f.position=="fixed"?d.offsetParent:d.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+t),bottom:Math.max(o,l)-(n.top+t)}}function CWe(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class mD{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 EWe(n),this.stateDeco=t.facet(Nw).filter(r=>typeof r!="function"),this.heightMap=Xo.empty().applyChanges(this.stateDeco,yr.empty,this.heightOracle.setDoc(t.doc),[new Oc(0,0,0,t.doc.length)]);for(let r=0;r<2&&(this.viewport=this.getViewport(0,null),!!this.updateForViewport());r++);this.updateViewportLines(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=bn.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);t.push(new MA(a,s))}}return this.viewports=t.sort((r,i)=>r.from-i.from),this.updateScaler()}updateScaler(){let t=this.scaler;return this.scaler=this.heightMap.height<=7e6?HX:new vB(this.heightOracle,this.heightMap,this.viewports),t.eq(this.scaler)?0:2}updateViewportLines(){this.viewportLines=[],this.heightMap.forEachLine(this.viewport.from,this.viewport.to,this.heightOracle.setDoc(this.state.doc),0,0,t=>{this.viewportLines.push(WE(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(Nw).filter(d=>typeof d!="function");let i=t.changedRanges,a=Oc.extendWithRanges(i,kWe(r,this.stateDeco,t?t.changes:ts.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);UX(),this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),a),(this.heightMap.height!=s||Dv)&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,t.flags|=this.updateForViewport(),(u||!t.changes.empty||t.flags&2)&&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(_de)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Bi.RTL:Bi.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let u=0,d=0;if(o.width&&o.height){let{scaleX:_,scaleY:I}=tde(n,o);(_>.005&&Math.abs(this.scaleX-_)>.005||I>.005&&Math.abs(this.scaleY-I)>.005)&&(this.scaleX=_,this.scaleY=I,u|=8,s=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,p=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=p)&&(this.paddingTop=f,this.paddingBottom=p,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let g=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=ide(t.scrollDOM);let O=(this.printing?CWe:_We)(n,this.paddingTop),S=O.top-this.pixelViewport.top,T=O.bottom-this.pixelViewport.bottom;this.pixelViewport=O;let w=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(w!=this.inView&&(this.inView=w,w&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let _=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(_)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:I,charWidth:N,textHeight:D}=t.docView.measureTextSize();s=I>0&&i.refresh(a,I,N,D,x/N,_),s&&(t.docView.minWidth=0,u|=8)}S>0&&T>0?d=Math.max(S,T):S<0&&T<0&&(d=Math.min(S,T)),UX();for(let I of this.viewports){let N=I.from==this.viewport.from?_:t.docView.measureVisibleLineHeights(I);this.heightMap=(s?Xo.empty().applyChanges(this.stateDeco,yr.empty,this.heightOracle,[new Oc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new wWe(I.from,N))}Dv&&(u|=2)}let k=!this.viewportIsAppropriate(this.viewport,d)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return k&&(u&2&&(u|=this.updateScaler()),this.viewport=this.getViewport(d,this.scrollTarget),u|=this.updateForViewport()),(u&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,l=new MA(i.lineAt(s-r*1e3,$i.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,$i.ByHeight,a,0,0).to);if(n){let{head:u}=n.range;if(ul.to){let d=Math.min(this.editorHeight,this.pixelViewport.bottom-this.pixelViewport.top),f=i.lineAt(u,$i.ByPos,a,0,0),p;n.y=="center"?p=(f.top+f.bottom)/2-d/2:n.y=="start"||n.y=="nearest"&&u=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a>1,s=i<<1;if(this.defaultTextDirection!=Bi.LTR&&!r)return[];let o=[],l=(d,f,p,g)=>{if(f-dd&&ww.from>=p.from&&w.to<=p.to&&Math.abs(w.from-d)w.fromx));if(!T){if(fw.from<=f&&w.to>=f)){let w=n.moveToLineBoundary(dt.cursor(f),!1,!0).head;w>d&&(f=w)}T=new mD(d,f,this.gapSize(p,d,f,g))}o.push(T)},u=d=>{if(d.lengthd.from&&l(d.from,g,d,f),On.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];_r.spans(t,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||WE(this.heightMap.lineAt(t,$i.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return t>=this.viewportLines[0].top&&t<=this.viewportLines[this.viewportLines.length-1].bottom&&this.viewportLines.find(n=>n.top<=t&&n.bottom>=t)||WE(this.heightMap.lineAt(this.scaler.fromDOM(t),$i.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 WE(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 MA{constructor(t,n){this.from=t,this.to=n}}function IWe(e,t,n){let r=[],i=e,a=0;return _r.spans(n,e,t,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:a,to:s}=t[i],o=s-a;if(r<=o)return a+r;r-=o}}function FA(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 NWe(e,t){for(let n of e)if(t(n))return n}const HX={toDOM(e){return e},fromDOM(e){return e},scale:1,eq(e){return e==this}};class vB{constructor(t,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:l})=>{let u=n.lineAt(o,$i.ByPos,t,0,0).top,d=n.lineAt(l,$i.ByPos,t,0,0).bottom;return i+=d-u,{from:o,to:l,top:u,bottom:d,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let a=nn.from==t.viewports[r].from&&n.to==t.viewports[r].to):!1}}function WE(e,t){if(t.scale==1)return e;let n=t.toDOM(e.top),r=t.toDOM(e.bottom);return new vf(e.from,e.length,n,r-n,Array.isArray(e._content)?e._content.map(i=>WE(i,t)):e._content)}const BA=sn.define({combine:e=>e.join(" ")}),hL=sn.define({combine:e=>e.indexOf(!0)>-1}),pL=am.newName(),Gde=am.newName(),Yde=am.newName(),Zde={"&light":"."+Gde,"&dark":"."+Yde};function mL(e,t,n){return new am(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 DWe=mL("."+pL,{"&":{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,overflowAnchor:"none"},".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,zIndex:300},"&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"}},Zde),PWe={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},gD=un.ie&&un.ie_version<=11;class LWe{constructor(t){this.view=t,this.active=!1,this.editContext=null,this.selectionRange=new vQe,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.printQuery=null,this.parentCheck=-1,this.dom=t.contentDOM,this.observer=new MutationObserver(n=>{for(let r of n)this.queue.push(r);(un.ie&&un.ie_version<=11||un.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()}),window.EditContext&&t.constructor.EDIT_CONTEXT!==!1&&!(un.chrome&&un.chrome_version<126)&&(this.editContext=new $We(t),t.state.facet(m0)&&(t.contentDOM.editContext=this.editContext.editContext)),gD&&(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),window.matchMedia&&(this.printQuery=window.matchMedia("print")),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.editContext&&this.view.requestMeasure(this.editContext.measureReq),this.onScrollChanged(t)}onResize(){this.resizeTimeout<0&&(this.resizeTimeout=setTimeout(()=>{this.resizeTimeout=-1,this.view.requestMeasure()},50))}onPrint(t){(t.type=="change"||!t.type)&&!t.matches||(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(m0)?r.root.activeElement!=this.dom:!l_(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(un.ie&&un.ie_version<=11||un.android&&un.chrome)&&!r.state.selection.main.empty&&i.focusNode&&E2(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=Rw(t.root);if(!n)return!1;let r=un.safari&&t.root.nodeType==11&&mQe(this.dom.ownerDocument)==this.dom&&MWe(this.view,n)||n;if(!r||this.selectionRange.eq(r))return!1;let i=l_(this.dom,r);return i&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&Hy(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of t){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&l_(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new eWe(this.view,t,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Fde(this.view,n);return this.view.state==r&&(n.domChanged||n.newSel&&!n.newSel.main.eq(this.view.state.selection.main))&&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=QX(n,t.previousSibling||t.target.previousSibling,-1),i=QX(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),this.printQuery?this.printQuery.addEventListener?this.printQuery.addEventListener("change",this.onPrint):this.printQuery.addListener(this.onPrint):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),this.printQuery?this.printQuery.removeEventListener?this.printQuery.removeEventListener("change",this.onPrint):this.printQuery.removeListener(this.onPrint):t.removeEventListener("beforeprint",this.onPrint),t.document.removeEventListener("selectionchange",this.onSelectionChange)}update(t){this.editContext&&(this.editContext.update(t),t.startState.facet(m0)!=t.state.facet(m0)&&(t.view.contentDOM.editContext=t.state.facet(m0)?this.editContext.editContext:null))}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),this.editContext&&(this.view.contentDOM.editContext=null,this.editContext.destroy())}}function QX(e,t,n){for(;t;){let r=Oi.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 WX(e,t){let n=t.startContainer,r=t.startOffset,i=t.endContainer,a=t.endOffset,s=e.docView.domAtPos(e.state.selection.main.anchor);return E2(s.node,s.offset,i,a)&&([n,r,i,a]=[i,a,n,r]),{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}}function MWe(e,t){if(t.getComposedRanges){let i=t.getComposedRanges(e.root)[0];if(i)return WX(e,i)}let n=null;function r(i){i.preventDefault(),i.stopImmediatePropagation(),n=i.getTargetRanges()[0]}return e.contentDOM.addEventListener("beforeinput",r,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",r,!0),n?WX(e,n):null}class $We{constructor(t){this.from=0,this.to=0,this.pendingContextChange=null,this.handlers=Object.create(null),this.resetRange(t.state);let n=this.editContext=new window.EditContext({text:t.state.doc.sliceString(this.from,this.to),selectionStart:this.toContextPos(Math.max(this.from,Math.min(this.to,t.state.selection.main.anchor))),selectionEnd:this.toContextPos(t.state.selection.main.head)});this.handlers.textupdate=r=>{let{anchor:i}=t.state.selection.main,a={from:this.toEditorPos(r.updateRangeStart),to:this.toEditorPos(r.updateRangeEnd),insert:yr.of(r.text.split(` +`))};a.from==this.from&&ithis.to&&(a.to=i),!(a.from==a.to&&!a.insert.length)&&(this.pendingContextChange=a,t.state.readOnly||bB(t,a,dt.single(this.toEditorPos(r.selectionStart),this.toEditorPos(r.selectionEnd))),this.pendingContextChange&&(this.revertPending(t.state),this.setSelection(t.state)))},this.handlers.characterboundsupdate=r=>{let i=[],a=null;for(let s=this.toEditorPos(r.rangeStart),o=this.toEditorPos(r.rangeEnd);s{let i=[];for(let a of r.getTextFormats()){let s=a.underlineStyle,o=a.underlineThickness;if(s!="None"&&o!="None"){let l=`text-decoration: underline ${s=="Dashed"?"dashed ":s=="Squiggle"?"wavy ":""}${o=="Thin"?1:2}px`;i.push(bn.mark({attributes:{style:l}}).range(this.toEditorPos(a.rangeStart),this.toEditorPos(a.rangeEnd)))}}t.dispatch({effects:Rde.of(bn.set(i))})},this.handlers.compositionstart=()=>{t.inputState.composing<0&&(t.inputState.composing=0,t.inputState.compositionFirstChange=!0)},this.handlers.compositionend=()=>{t.inputState.composing=-1,t.inputState.compositionFirstChange=null};for(let r in this.handlers)n.addEventListener(r,this.handlers[r]);this.measureReq={read:r=>{this.editContext.updateControlBounds(r.contentDOM.getBoundingClientRect());let i=Rw(r.root);i&&i.rangeCount&&this.editContext.updateSelectionBounds(i.getRangeAt(0).getBoundingClientRect())}}}applyEdits(t){let n=0,r=!1,i=this.pendingContextChange;return t.changes.iterChanges((a,s,o,l,u)=>{if(r)return;let d=u.length-(s-a);if(i&&s>=i.to)if(i.from==a&&i.to==s&&i.insert.eq(u)){i=this.pendingContextChange=null,n+=d,this.to+=d;return}else i=null,this.revertPending(t.state);if(a+=n,s+=n,s<=this.from)this.from+=d,this.to+=d;else if(athis.to||this.to-this.from+u.length>3e4){r=!0;return}this.editContext.updateText(this.toContextPos(a),this.toContextPos(s),u.toString()),this.to+=d}n+=d}),i&&!r&&this.revertPending(t.state),!r}update(t){let n=this.pendingContextChange;!this.applyEdits(t)||!this.rangeIsValid(t.state)?(this.pendingContextChange=null,this.resetRange(t.state),this.editContext.updateText(0,this.editContext.text.length,t.state.doc.sliceString(this.from,this.to)),this.setSelection(t.state)):(t.docChanged||t.selectionSet||n)&&this.setSelection(t.state),(t.geometryChanged||t.docChanged||t.selectionSet)&&t.view.requestMeasure(this.measureReq)}resetRange(t){let{head:n}=t.selection.main;this.from=Math.max(0,n-1e4),this.to=Math.min(t.doc.length,n+1e4)}revertPending(t){let n=this.pendingContextChange;this.pendingContextChange=null,this.editContext.updateText(this.toContextPos(n.from),this.toContextPos(n.from+n.insert.length),t.doc.sliceString(n.from,n.to))}setSelection(t){let{main:n}=t.selection,r=this.toContextPos(Math.max(this.from,Math.min(this.to,n.anchor))),i=this.toContextPos(n.head);(this.editContext.selectionStart!=r||this.editContext.selectionEnd!=i)&&this.editContext.updateSelection(r,i)}rangeIsValid(t){let{head:n}=t.selection.main;return!(this.from>0&&n-this.from<500||this.to1e4*3)}toEditorPos(t){return t+this.from}toContextPos(t){return t-this.from}destroy(){for(let t in this.handlers)this.editContext.removeEventListener(t,this.handlers[t])}}class Jt{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={}){var n;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:r}=t;this.dispatchTransactions=t.dispatchTransactions||r&&(i=>i.forEach(a=>r(a,this)))||(i=>this.update(i)),this.dispatch=this.dispatch.bind(this),this._root=t.root||OQe(t.parent)||document,this.viewState=new jX(t.state||Dr.create(t)),t.scrollTo&&t.scrollTo.is(DA)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(jE).map(i=>new fD(i));for(let i of this.plugins)i.update(this);this.observer=new LWe(this),this.inputState=new aWe(this),this.inputState.ensureHandlers(this.plugins),this.docView=new wX(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure(),!((n=document.fonts)===null||n===void 0)&&n.ready&&document.fonts.ready.then(()=>this.requestMeasure())}dispatch(...t){let n=t.length==1&&t[0]instanceof os?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let p of t){if(p.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=p.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,l=null;t.some(p=>p.annotation(Qde))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=Wde(a,s),l||(o=1));let u=this.observer.delayedAndroidKey,d=null;if(u?(this.observer.clearDelayedAndroidKey(),d=this.observer.readChange(),(d&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(d=null)):this.observer.clear(),a.facet(Dr.phrases)!=this.state.facet(Dr.phrases))return this.setState(a);i=Y3.create(this,a,t),i.flags|=o;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let p of t){if(f&&(f=f.map(p.changes)),p.scrollIntoView){let{main:g}=p.state.selection;f=new Qy(g.empty?g:dt.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of p.effects)g.is(DA)&&(f=g.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=X3.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(HE)!=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(BA)!=i.state.facet(BA)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),n&&this.docViewUpdate(),!i.empty)for(let p of this.state.facet(uL))try{p(i)}catch(g){kl(this.state,g,"update listener")}(l||d)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),d&&!Fde(this,d)&&u.force&&Hy(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 jX(t),this.plugins=t.facet(jE).map(r=>new fD(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new wX(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(jE),r=t.state.facet(jE);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new fD(a));else{let o=this.plugins[s];o.mustUpdate=t,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=t&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(ide(r))a=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(i);a=g.from,s=g.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let d=u.map(g=>{try{return g.read(this)}catch(O){return kl(this.state,O),VX}}),f=Y3.create(this,this.state,[]),p=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),p=this.docView.update(f),p&&this.docViewUpdate());for(let g=0;g1||O<-1){i=i+O,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(uL))o(n)}get themeClasses(){return pL+" "+(this.state.facet(hL)?Yde:Gde)+" "+this.state.facet(BA)}updateAttrs(){let t=qX(this,Ide,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(m0)?"true":"false",class:"cm-content",style:`${un.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),qX(this,mB,n);let r=this.observer.ignore(()=>{let i=rL(this.contentDOM,this.contentAttrs,n),a=rL(this.dom,this.editorAttrs,t);return i||a});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(Jt.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(HE);let t=this.state.facet(Jt.cspNonce);am.mount(this.root,this.styleModules.concat(DWe).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 pD(this,t,_X(this,t,n,r))}moveByGroup(t,n){return pD(this,t,_X(this,t,n,r=>ZQe(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),a=r[n?r.length-1:0];return dt.cursor(a.side(n,i)+t.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return YQe(this,t,n,r)}moveVertically(t,n,r){return pD(this,t,XQe(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(),$de(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),a=this.bidiSpans(i),s=a[L0.find(a,t-i.from,-1,n)];return MR(r,s.dir==Bi.LTR==n>0)}coordsForChar(t){return this.readMeasured(),this.docView.coordsForChar(t)}get defaultCharacterWidth(){return this.viewState.heightOracle.charWidth}get defaultLineHeight(){return this.viewState.heightOracle.lineHeight}get textDirection(){return this.viewState.defaultTextDirection}textDirectionAt(t){return!this.state.facet(Ade)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>FWe)return vde(t.length);let n=this.textDirectionAt(t.from),r;for(let a of this.bidiCache)if(a.from==t.from&&a.dir==n&&(a.fresh||yde(a.isolates,r=EX(this,t))))return a.order;r||(r=EX(this,t));let i=DQe(t.text,n,r);return this.bidiCache.push(new X3(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||un.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{nde(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(){this.root.activeElement==this.contentDOM&&this.contentDOM.blur();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 DA.of(new Qy(typeof t=="number"?dt.cursor(t):t,n.y,n.x,n.yMargin,n.xMargin))}scrollSnapshot(){let{scrollTop:t,scrollLeft:n}=this.scrollDOM,r=this.viewState.scrollAnchorAt(t);return DA.of(new Qy(dt.cursor(r.from),"start","start",r.top-t,n,!0))}setTabFocusMode(t){t==null?this.inputState.tabFocusMode=this.inputState.tabFocusMode<0?0:-1:typeof t=="boolean"?this.inputState.tabFocusMode=t?0:-1:this.inputState.tabFocusMode!=0&&(this.inputState.tabFocusMode=Date.now()+t)}static domEventHandlers(t){return da.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return da.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=am.newName(),i=[BA.of(r),HE.of(mL(`.${r}`,t))];return n&&n.dark&&i.push(hL.of(!0)),i}static baseTheme(t){return wp.lowest(HE.of(mL("."+pL,t,Zde)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&Oi.get(r)||Oi.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}Jt.styleModule=HE;Jt.inputHandler=xde;Jt.scrollHandler=Cde;Jt.focusChangeEffect=kde;Jt.perLineTextDirection=Ade;Jt.exceptionSink=Tde;Jt.updateListener=uL;Jt.editable=m0;Jt.mouseSelectionStyle=wde;Jt.dragMovesSelection=Ede;Jt.clickAddsSelectionRange=Sde;Jt.decorations=Nw;Jt.outerDecorations=Nde;Jt.atomicRanges=gB;Jt.bidiIsolatedRanges=Dde;Jt.scrollMargins=Pde;Jt.darkTheme=hL;Jt.cspNonce=sn.define({combine:e=>e.length?e[0]:""});Jt.contentAttributes=mB;Jt.editorAttributes=Ide;Jt.lineWrapping=Jt.contentAttributes.of({class:"cm-lineWrapping"});Jt.announce=Zn.define();const FWe=4096,VX={};class X3{constructor(t,n,r,i,a,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(t,n){if(n.empty&&!t.some(a=>a.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Bi.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let a=r[i],s=typeof a=="function"?a(e):a;s&&nL(s,n)}return n}const BWe=un.mac?"mac":un.windows?"win":un.linux?"linux":"key";function UWe(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let l=0;lr.concat(i),[]))),n}function jWe(e,t,n){return Kde(Xde(e.state),t,e,n)}let g0=null;const HWe=4e3;function QWe(e,t=BWe){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let l=r[s];if(l==null)r[s]=o;else if(l!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,l,u,d)=>{var f,p;let g=n[s]||(n[s]=Object.create(null)),O=o.split(/ (?!$)/).map(w=>UWe(w,t));for(let w=1;w{let _=g0={view:k,prefix:x,scope:s};return setTimeout(()=>{g0==_&&(g0=null)},HWe),!0}]})}let S=O.join(" ");i(S,!1);let T=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((p=(f=g._any)===null||f===void 0?void 0:f.run)===null||p===void 0?void 0:p.slice())||[]});l&&T.run.push(l),u&&(T.preventDefault=!0),d&&(T.stopPropagation=!0)};for(let s of e){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of o){let d=n[u]||(n[u]=Object.create(null));d._any||(d._any={preventDefault:!1,stopPropagation:!1,run:[]});let{any:f}=s;for(let p in d)d[p].run.push(g=>f(g,gL))}let l=s[t]||s.key;if(l)for(let u of o)a(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}let gL=null;function Kde(e,t,n,r){gL=t;let i=pQe(t),a=js(i,0),s=uc(a)==i.length&&i!=" ",o="",l=!1,u=!1,d=!1;g0&&g0.view==n&&g0.scope==r&&(o=g0.prefix+" ",Ude.indexOf(t.keyCode)<0&&(u=!0,g0=null));let f=new Set,p=T=>{if(T){for(let w of T.run)if(!f.has(w)&&(f.add(w),w(n)))return T.stopPropagation&&(d=!0),!0;T.preventDefault&&(T.stopPropagation&&(d=!0),u=!0)}return!1},g=e[r],O,S;return g&&(p(g[o+UA(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(un.windows&&t.ctrlKey&&t.altKey)&&(O=sm[t.keyCode])&&O!=i?(p(g[o+UA(O,t,!0)])||t.shiftKey&&(S=Cw[t.keyCode])!=i&&S!=O&&p(g[o+UA(S,t,!1)]))&&(l=!0):s&&t.shiftKey&&p(g[o+UA(i,t,!0)])&&(l=!0),!l&&p(g._any)&&(l=!0)),u&&(l=!0),l&&d&&t.stopPropagation(),gL=null,l}class qT{constructor(t,n,r,i,a){this.className=t,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=Jde(t);return[new qT(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return WWe(t,n,r)}}function Jde(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Bi.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function YX(e,t,n,r){let i=e.coordsAtPos(t,n*2);if(!i)return r;let a=e.dom.getBoundingClientRect(),s=(i.top+i.bottom)/2,o=e.posAtCoords({x:a.left+1,y:s}),l=e.posAtCoords({x:a.right-1,y:s});return o==null||l==null?r:{from:Math.max(r.from,Math.min(o,l)),to:Math.min(r.to,Math.max(o,l))}}function WWe(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==Bi.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=Jde(e),u=s.querySelector(".cm-line"),d=u&&window.getComputedStyle(u),f=o.left+(d?parseInt(d.paddingLeft)+Math.min(0,parseInt(d.textIndent)):0),p=o.right-(d?parseInt(d.paddingRight):0),g=dL(e,r),O=dL(e,i),S=g.type==Zo.Text?g:null,T=O.type==Zo.Text?O:null;if(S&&(e.lineWrapping||g.widgetLineBreaks)&&(S=YX(e,r,1,S)),T&&(e.lineWrapping||O.widgetLineBreaks)&&(T=YX(e,i,-1,T)),S&&T&&S.from==T.from&&S.to==T.to)return x(k(n.from,n.to,S));{let I=S?k(n.from,null,S):_(g,!1),N=T?k(null,n.to,T):_(O,!0),D=[];return(S||g).to<(T||O).from-(S&&T?1:0)||g.widgetLineBreaks>1&&I.bottom+e.defaultLineHeight/2V&&ee.from=ne)break;H>q&&W(Math.max(ie,q),I==null&&ie<=V,Math.min(H,ne),N==null&&H>=re,G.dir)}if(q=K.to+1,q>=ne)break}return B.length==0&&W(V,I==null,re,N==null,e.textDirection),{top:L,bottom:U,horizontal:B}}function _(I,N){let D=o.top+(N?I.top:I.bottom);return{top:D,bottom:D,horizontal:[]}}}function VWe(e,t){return e.constructor==t.constructor&&e.eq(t)}class qWe{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(d_)!=t.state.facet(d_)&&this.setOrder(t.state),(this.layer.update(t,this.dom)||t.geometryChanged)&&(this.scale(),t.view.requestMeasure(this.measureReq))}docViewUpdate(t){this.layer.updateOnDocViewUpdate!==!1&&t.requestMeasure(this.measureReq)}setOrder(t){let n=0,r=t.facet(d_);for(;n!VWe(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 d_=sn.define();function efe(e){return[da.define(t=>new qWe(t,e)),d_.of(e)]}const tfe=!un.ios,Dw=sn.define({combine(e){return Gf(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function GWe(e={}){return[Dw.of(e),YWe,ZWe,XWe,_de.of(!0)]}function nfe(e){return e.startState.facet(Dw)!=e.state.facet(Dw)}const YWe=efe({above:!0,markers(e){let{state:t}=e,n=t.facet(Dw),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty?!a||tfe:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:dt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of qT.forRange(e,s,o))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=nfe(e);return n&&ZX(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){ZX(t.state,e)},class:"cm-cursorLayer"});function ZX(e,t){t.style.animationDuration=e.facet(Dw).cursorBlinkRate+"ms"}const ZWe=efe({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:qT.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||nfe(e)},class:"cm-selectionLayer"}),bL={".cm-line":{"& ::selection, &::selection":{backgroundColor:"transparent !important"}},".cm-content":{"& :focus":{caretColor:"initial !important","&::selection, & ::selection":{backgroundColor:"Highlight !important"}}}};tfe&&(bL[".cm-line"].caretColor=bL[".cm-content"].caretColor="transparent !important");const XWe=wp.highest(Jt.theme(bL)),rfe=Zn.define({map(e,t){return e==null?null:t.mapPos(e)}}),VE=As.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(rfe)?r.value:n,e)}}),KWe=da.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(VE);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(VE)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(VE),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(VE)!=e&&this.view.dispatch({effects:rfe.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 JWe(){return[VE,KWe]}function XX(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}function eVe(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class tVe{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,l,u,d)=>i(d,u,u+o[0].length,o,l);else if(typeof r=="function")this.addMatch=(o,l,u,d)=>{let f=r(o,l,u);f&&d(u,u+o[0].length,f)};else if(r)this.addMatch=(o,l,u,d)=>d(u,u+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(t){let n=new im,r=n.add.bind(n);for(let{from:i,to:a}of eVe(t,this.maxLength))XX(t.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((a,s,o,l)=>{l>t.view.viewport.from&&o1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let a of t.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let l=t.state.doc.lineAt(s),u=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){d=s;break}for(;op.push(w.range(S,T));if(l==u)for(this.regexp.lastIndex=d-l.from;(g=this.regexp.exec(l.text))&&g.indexthis.addMatch(T,t,S,O));n=n.update({filterFrom:d,filterTo:f,filter:(S,T)=>Sf,add:p})}}return n}}const yL=/x/.unicode!=null?"gu":"g",nVe=new RegExp(`[\0-\b +--Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,yL),rVe={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 bD=null;function iVe(){var e;if(bD==null&&typeof document<"u"&&document.body){let t=document.body.style;bD=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return bD||!1}const f_=sn.define({combine(e){let t=Gf(e,{render:null,specialChars:nVe,addSpecialChars:null});return(t.replaceTabs=!iVe())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,yL)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,yL)),t}});function aVe(e={}){return[f_.of(e),sVe()]}let KX=null;function sVe(){return KX||(KX=da.fromClass(class{constructor(e){this.view=e,this.decorations=bn.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(f_)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new tVe({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=js(t[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,l=Cd(s.text,o,r-s.from);return bn.replace({widget:new cVe((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=bn.replace({widget:new uVe(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(f_);e.startState.facet(f_)!=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 oVe="•";function lVe(e){return e>=32?oVe:e==10?"␤":String.fromCharCode(9216+e)}class uVe extends Md{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=lVe(this.code),r=t.state.phrase("Control character")+" "+(rVe[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class cVe extends Md{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 dVe(){return hVe}const fVe=bn.line({class:"cm-activeLine"}),hVe=da.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(fVe.range(i.from)),t=i.from)}return bn.set(n)}},{decorations:e=>e.decorations}),vL=2e3;function pVe(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>vL||n.off>vL||t.col<0||n.col<0){let s=Math.min(t.off,n.off),o=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=o&&a.push(dt.range(u.from+s,u.to+o))}}else{let s=Math.min(t.col,n.col),o=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),d=Y8(u.text,s,e.tabSize,!0);if(d<0)a.push(dt.cursor(u.to));else{let f=Y8(u.text,o,e.tabSize);a.push(dt.range(u.from+d,u.from+f))}}}return a}function mVe(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function JX(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>vL?-1:i==r.length?mVe(e,t.clientX):Cd(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function gVe(e,t){let n=JX(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=JX(e,i);if(!o)return r;let l=pVe(e.state,n,o);return l.length?s?dt.create(l.concat(r.ranges)):dt.create(l):r}}:null}function bVe(e){let t=n=>n.altKey&&n.button==0;return Jt.mouseSelectionStyle.of((n,r)=>t(r)?gVe(n,r):null)}const yVe={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},vVe={style:"cursor: crosshair"};function OVe(e={}){let[t,n]=yVe[e.key||"Alt"],r=da.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,Jt.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?vVe:null})]}const mE="-10000px";class ife{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(s=>s);let a=null;this.tooltipViews=this.tooltips.map(s=>a=r(s,a))}update(t,n){var r;let i=t.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],o=n?[]:null;for(let l=0;ln[u]=l),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function SVe(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const yD=sn.define({combine:e=>{var t,n,r;return{position:un.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)||SVe}}}),eK=new WeakMap,OB=da.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(yD);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new ife(e,SB,(n,r)=>this.createTooltip(n,r),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(yD);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,t){let n=e.create(this.view),r=t?t.dom:null;if(n.dom.classList.add("cm-tooltip"),e.arrow&&!n.dom.querySelector(".cm-tooltip > .cm-tooltip-arrow")){let i=document.createElement("div");i.className="cm-tooltip-arrow",n.dom.appendChild(i)}return n.dom.style.position=this.position,n.dom.style.top=mE,n.dom.style.left="0px",this.container.insertBefore(n.dom,r),n.mount&&n.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(n.dom),n}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(un.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==mE&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,a)=>{let s=this.manager.tooltipViews[a];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(yD).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:a}=e,s=[];for(let o=0;o=Math.min(n.bottom,r.bottom)||f.rightMath.min(n.right,r.right)+.1){d.style.top=mE;continue}let g=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,O=g?7:0,S=p.right-p.left,T=(t=eK.get(u))!==null&&t!==void 0?t:p.bottom-p.top,w=u.offset||wVe,x=this.view.textDirection==Bi.LTR,k=p.width>r.right-r.left?x?r.left:r.right-p.width:x?Math.max(r.left,Math.min(f.left-(g?14:0)+w.x,r.right-S)):Math.min(Math.max(r.left,f.left-S+(g?14:0)-w.x),r.right-S),_=this.above[o];!l.strictSide&&(_?f.top-(p.bottom-p.top)-w.yr.bottom)&&_==r.bottom-f.bottom>f.top-r.top&&(_=this.above[o]=!_);let I=(_?f.top-r.top:r.bottom-f.bottom)-O;if(Ik&&L.topN&&(N=_?L.top-T-2-O:L.bottom+O+2);if(this.position=="absolute"?(d.style.top=(N-e.parent.top)/a+"px",d.style.left=(k-e.parent.left)/i+"px"):(d.style.top=N/a+"px",d.style.left=k/i+"px"),g){let L=f.left+(x?w.x:-w.x)-(k+14-7);g.style.left=L/i+"px"}u.overlap!==!0&&s.push({left:k,top:N,right:D,bottom:N+T}),d.classList.toggle("cm-tooltip-above",_),d.classList.toggle("cm-tooltip-below",!_),u.positioned&&u.positioned(e.space)}}maybeMeasure(){if(this.manager.tooltips.length&&(this.view.inView&&this.view.requestMeasure(this.measureReq),this.inView!=this.view.inView&&(this.inView=this.view.inView,!this.inView)))for(let e of this.manager.tooltipViews)e.dom.style.top=mE}},{eventObservers:{scroll(){this.maybeMeasure()}}}),EVe=Jt.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"}}}),wVe={x:0,y:0},SB=sn.define({enables:[OB,EVe]}),K3=sn.define({combine:e=>e.reduce((t,n)=>t.concat(n),[])});class FR{static create(t){return new FR(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new ife(t,K3,(n,r)=>this.createHostedView(n,r),n=>n.dom.remove())}createHostedView(t,n){let r=t.create(this.view);return r.dom.classList.add("cm-tooltip-section"),this.dom.insertBefore(r.dom,n?n.dom.nextSibling:this.dom.firstChild),this.mounted&&r.mount&&r.mount(this.view),r}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 TVe=SB.compute([K3],e=>{let t=e.facet(K3);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:FR.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class xVe{constructor(t,n,r,i,a){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active.length)return;let t=Date.now()-this.lastMove.time;to.bottom||n.xo.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(d=>d.from<=i&&d.to>=i),u=l&&l.dir==Bi.RTL?-1:1;a=n.x{this.pending==o&&(this.pending=null,l&&!(Array.isArray(l)&&!l.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(l)?l:[l])}))},l=>kl(t.state,l,"hover tooltip"))}else s&&!(Array.isArray(s)&&!s.length)&&t.dispatch({effects:this.setHover.of(Array.isArray(s)?s:[s])})}get tooltip(){let t=this.view.plugin(OB),n=t?t.manager.tooltips.findIndex(r=>r.create==FR.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n,r;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:i,tooltip:a}=this;if(i.length&&a&&!kVe(a.dom,t)||this.pending){let{pos:s}=i[0]||this.pending,o=(r=(n=i[0])===null||n===void 0?void 0:n.end)!==null&&r!==void 0?r:s;(s==o?this.view.posAtCoords(this.lastMove)!=s:!AVe(this.view,s,o,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of([])}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n.length){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of([])})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active.length&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of([])})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const zA=4;function kVe(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-zA&&t.clientX<=n.right+zA&&t.clientY>=n.top-zA&&t.clientY<=n.bottom+zA}function AVe(e,t,n,r,i,a){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,o)=t&&l<=n}function _Ve(e,t={}){let n=Zn.define(),r=As.define({create(){return[]},update(i,a){if(i.length&&(t.hideOnChange&&(a.docChanged||a.selection)?i=[]:t.hideOn&&(i=i.filter(s=>!t.hideOn(a,s))),a.docChanged)){let s=[];for(let o of i){let l=a.changes.mapPos(o.pos,-1,Qs.TrackDel);if(l!=null){let u=Object.assign(Object.create(null),o);u.pos=l,u.end!=null&&(u.end=a.changes.mapPos(u.end)),s.push(u)}}i=s}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(CVe)&&(i=[]);return i},provide:i=>K3.from(i)});return{active:r,extension:[r,da.define(i=>new xVe(i,e,r,n,t.hoverTime||300)),TVe]}}function afe(e,t){let n=e.plugin(OB);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const CVe=Zn.define(),tK=sn.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 Pw(e,t){let n=e.plugin(sfe),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const sfe=da.fromClass(class{constructor(e){this.input=e.state.facet(Lw),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(tK);this.top=new jA(e,!0,t.topContainer),this.bottom=new jA(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(tK);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new jA(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new jA(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(Lw);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],s=[],o=[];for(let l of r){let u=this.specs.indexOf(l),d;u<0?(d=l(e.view),o.push(d)):(d=this.panels[u],d.update&&d.update(e)),i.push(d),(d.top?a:s).push(d)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>Jt.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class jA{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=nK(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=nK(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 nK(e){let t=e.nextSibling;return e.remove(),t}const Lw=sn.define({enables:sfe});class cp extends E1{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}cp.prototype.elementClass="";cp.prototype.toDOM=void 0;cp.prototype.mapMode=Qs.TrackBefore;cp.prototype.startSide=cp.prototype.endSide=-1;cp.prototype.point=!0;const h_=sn.define(),RVe=sn.define(),IVe={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>_r.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},T2=sn.define();function NVe(e){return[ofe(),T2.of(Object.assign(Object.assign({},IVe),e))]}const rK=sn.define({combine:e=>e.some(t=>t)});function ofe(e){return[DVe]}const DVe=da.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(T2).map(t=>new aK(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(rK),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/this.view.scaleY+"px"),this.view.state.facet(rK)!=!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=_r.iter(this.view.state.facet(h_),this.view.viewport.from),r=[],i=this.gutters.map(a=>new PVe(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==Zo.Text&&s){OL(n,r,o.from);for(let l of i)l.line(this.view,o,r);s=!1}else if(o.widget)for(let l of i)l.widget(this.view,o)}else if(a.type==Zo.Text){OL(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(T2),n=e.state.facet(T2),r=e.docChanged||e.heightChanged||e.viewportChanged||!_r.eq(e.startState.facet(h_),e.state.facet(h_),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=t.indexOf(a);s<0?i.push(new aK(this.view,a)):(this.gutters[s].update(e),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>Jt.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Bi.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function iK(e){return Array.isArray(e)?e:[e]}function OL(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class PVe{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=_r.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,a=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let o=new lfe(t,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(t,s,a,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];OL(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(t,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n),i=r?[r]:null;for(let a of t.state.facet(RVe)){let s=a(t,n.widget,n);s&&(i||(i=[])).push(s)}i&&this.addElement(t,n,i)}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class aK{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let l=a.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,o,i)&&i.preventDefault()});this.markers=iK(n.markers(t)),n.initialSpacer&&(this.spacer=new lfe(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=iK(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!_r.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 lfe{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":""),LVe(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,l=aa(o,l,u)||s(o,l,u):s}return r}})}});class vD extends cp{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function OD(e,t){return e.state.facet(vy).formatNumber(t,e.state)}const FVe=T2.compute([vy],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(MVe)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new vD(OD(t,t.state.doc.lineAt(n.from).number))},widgetMarker:(t,n,r)=>{for(let i of t.state.facet($Ve)){let a=i(t,n,r);if(a)return a}return null},lineMarkerChange:t=>t.startState.facet(vy)!=t.state.facet(vy),initialSpacer(t){return new vD(OD(t,sK(t.state.doc.lines)))},updateSpacer(t,n){let r=OD(n.view,sK(n.view.state.doc.lines));return r==t.number?t:new vD(r)},domEventHandlers:e.facet(vy).domEventHandlers}));function BVe(e={}){return[vy.of(e),ofe(),FVe]}function sK(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(UVe.range(i)))}return _r.of(t)});function jVe(){return zVe}const ufe=1024;let HVe=0;class hc{constructor(t,n){this.from=t,this.to=n}}class Wn{constructor(t={}){this.id=HVe++,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=us.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}Wn.closedBy=new Wn({deserialize:e=>e.split(" ")});Wn.openedBy=new Wn({deserialize:e=>e.split(" ")});Wn.group=new Wn({deserialize:e=>e.split(" ")});Wn.isolate=new Wn({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});Wn.contextHash=new Wn({perNode:!0});Wn.lookAhead=new Wn({perNode:!0});Wn.mounted=new Wn({perNode:!0});class Mw{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[Wn.mounted.id]}}const QVe=Object.create(null);class us{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):QVe,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new us(t.name||"",n,t.id,r);if(t.props){for(let a of t.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(Wn.group);return n?n.indexOf(t)>-1:!1}return this.id==t}static match(t){let n=Object.create(null);for(let r in t)for(let i of r.split(" "))n[i]=t[r];return r=>{for(let i=r.prop(Wn.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}us.none=new us("",Object.create(null),0,8);class GT{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|_i.IncludeAnonymous);;){let u=!1;if(l.from<=a&&l.to>=i&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(o||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:TB(us.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new Jr(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new Jr(us.none,n,r,i)))}static build(t){return GVe(t)}}Jr.empty=new Jr(us.none,[],[],0);class EB{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 EB(this.buffer,this.index)}}class lm{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return us.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),s=0;for(let o=t,l=0;o=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function $w(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;t!=u;t+=n){let d=o[t],f=l[t]+s.from;if(cfe(i,r,f,f+d.length)){if(d instanceof lm){if(a&_i.ExcludeBuffers)continue;let p=d.findChild(0,d.buffer.length,n,r-f,i);if(p>-1)return new Ef(new WVe(s,d,t,f),null,p)}else if(a&_i.IncludeAnonymous||!d.type.isAnonymous||wB(d)){let p;if(!(a&_i.IgnoreMounts)&&(p=Mw.get(d))&&!p.overlay)return new bo(p.tree,f,t,s);let g=new bo(d,f,t,s);return a&_i.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?d.children.length-1:0,n,r,i)}}}if(a&_i.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&_i.IgnoreOverlays)&&(i=Mw.get(this._tree))&&i.overlay){let a=t-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s=a:o>a))return new bo(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 lK(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function SL(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 WVe{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Ef extends dfe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new Ef(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&_i.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new Ef(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Ef(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 Ef(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];t.push(r.slice(i,a,s)),n.push(0)}return new Jr(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function ffe(e){if(!e.length)return null;let t=0,n=e[0];for(let a=1;an.from||s.to=t){let o=new bo(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push($w(o,t,n,!1))}}return i?ffe(i):r}class J3{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 bo)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 bo?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&_i.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&_i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&_i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let a=n+t,s=t<0?-1:r._tree.children.length;a!=s;a+=t){let o=r._tree.children[a];if(this.mode&_i.IncludeAnonymous||o instanceof lm||!o.type.isAnonymous||wB(o))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i=0;a--){if(a<0)return SL(this.node,t,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function wB(e){return e.children.some(t=>t instanceof lm||!t.type.isAnonymous||wB(t))}function GVe(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=ufe,reused:a=[],minRepeatType:s=r.types.length}=e,o=Array.isArray(n)?new EB(n,n.length):n,l=r.types,u=0,d=0;function f(I,N,D,L,U,B){let{id:W,start:V,end:re,size:ee}=o,q=d;for(;ee<0;)if(o.next(),ee==-1){let H=a[W];D.push(H),L.push(V-I);return}else if(ee==-3){u=W;return}else if(ee==-4){d=W;return}else throw new RangeError(`Unrecognized record size: ${ee}`);let ne=l[W],K,G,ie=V-I;if(re-V<=i&&(G=T(o.pos-N,U))){let H=new Uint16Array(G.size-G.skip),Re=o.pos-G.size,Se=H.length;for(;o.pos>Re;)Se=w(G.start,H,Se);K=new lm(H,re-G.start,r),ie=G.start-I}else{let H=o.pos-ee;o.next();let Re=[],Se=[],Z=W>=s?W:-1,ke=0,$e=re;for(;o.pos>H;)Z>=0&&o.id==Z&&o.size>=0?(o.end<=$e-i&&(O(Re,Se,V,ke,o.end,$e,Z,q),ke=Re.length,$e=o.end),o.next()):B>2500?p(V,H,Re,Se):f(V,H,Re,Se,Z,B+1);if(Z>=0&&ke>0&&ke-1&&ke>0){let ae=g(ne);K=TB(ne,Re,Se,0,Re.length,0,re-V,ae,ae)}else K=S(ne,Re,Se,re-V,q-re)}D.push(K),L.push(ie)}function p(I,N,D,L){let U=[],B=0,W=-1;for(;o.pos>N;){let{id:V,start:re,end:ee,size:q}=o;if(q>4)o.next();else{if(W>-1&&re=0;ee-=3)V[q++]=U[ee],V[q++]=U[ee+1]-re,V[q++]=U[ee+2]-re,V[q++]=q;D.push(new lm(V,U[2]-re,r)),L.push(re-I)}}function g(I){return(N,D,L)=>{let U=0,B=N.length-1,W,V;if(B>=0&&(W=N[B])instanceof Jr){if(!B&&W.type==I&&W.length==L)return W;(V=W.prop(Wn.lookAhead))&&(U=D[B]+W.length+V)}return S(I,N,D,L,U)}}function O(I,N,D,L,U,B,W,V){let re=[],ee=[];for(;I.length>L;)re.push(I.pop()),ee.push(N.pop()+D-U);I.push(S(r.types[W],re,ee,B-U,V-B)),N.push(U-D)}function S(I,N,D,L,U=0,B){if(u){let W=[Wn.contextHash,u];B=B?[W].concat(B):[W]}if(U>25){let W=[Wn.lookAhead,U];B=B?[W].concat(B):[W]}return new Jr(I,N,D,L,B)}function T(I,N){let D=o.fork(),L=0,U=0,B=0,W=D.end-i,V={size:0,start:0,skip:0};e:for(let re=D.pos-I;D.pos>re;){let ee=D.size;if(D.id==N&&ee>=0){V.size=L,V.start=U,V.skip=B,B+=4,L+=4,D.next();continue}let q=D.pos-ee;if(ee<0||q=s?4:0,K=D.start;for(D.next();D.pos>q;){if(D.size<0)if(D.size==-3)ne+=4;else break e;else D.id>=s&&(ne+=4);D.next()}U=K,L+=ee,B+=ne}return(N<0||L==I)&&(V.size=L,V.start=U,V.skip=B),V.size>4?V:void 0}function w(I,N,D){let{id:L,start:U,end:B,size:W}=o;if(o.next(),W>=0&&L4){let re=o.pos-(W-4);for(;o.pos>re;)D=w(I,N,D)}N[--D]=V,N[--D]=B-I,N[--D]=U-I,N[--D]=L}else W==-3?u=L:W==-4&&(d=L);return D}let x=[],k=[];for(;o.pos>0;)f(e.start||0,e.bufferStart||0,x,k,-1,0);let _=(t=e.length)!==null&&t!==void 0?t:x.length?k[0]+x[0].length:0;return new Jr(l[e.topID],x.reverse(),k.reverse(),_)}const uK=new WeakMap;function p_(e,t){if(!e.isAnonymous||t instanceof lm||t.type!=e)return 1;let n=uK.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof Jr)){n=1;break}n+=p_(e,r)}uK.set(t,n)}return n}function TB(e,t,n,r,i,a,s,o,l){let u=0;for(let O=r;O=d)break;N+=D}if(k==_+1){if(N>d){let D=O[_];g(D.children,D.positions,0,D.children.length,S[_]+x);continue}f.push(O[_])}else{let D=S[k-1]+O[k-1].length-I;f.push(TB(e,O,S,_,k,I,D,null,l))}p.push(I+x-a)}}return g(t,n,r,i,0),(o||l)(f,p,s)}class hfe{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 Ef?this.setBuffer(t.context.buffer,t.index,n):t instanceof bo&&this.map.set(t.tree,n)}get(t){return t instanceof Ef?this.getBuffer(t.context.buffer,t.index):t instanceof bo?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 Zh{constructor(t,n,r,i,a=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new Zh(0,t.length,t,0,!1,r)];for(let a of n)a.to>t.length&&i.push(a);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,s=t.length?t[0]:null;for(let o=0,l=0,u=0;;o++){let d=o=r)for(;s&&s.from=p.from||f<=p.to||u){let g=Math.max(p.from,l)-u,O=Math.min(p.to,f)-u;p=g>=O?null:new Zh(g,O,p.tree,p.offset+u,o>0,!!d)}if(p&&i.push(p),s.to>f)break;s=anew hc(i.from,i.to)):[new hc(0,0)]:[new hc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let a=i.advance();if(a)return a}}};class YVe{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 pfe(e){return(t,n,r,i)=>new XVe(t,e,n,r,i)}class cK{constructor(t,n,r,i,a){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=a}}function dK(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class ZVe{constructor(t,n,r,i,a,s,o){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const EL=new Wn({perNode:!0});class XVe{constructor(t,n,r,i,a){this.nest=n,this.input=r,this.fragments=i,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new Jr(r.type,r.children,r.positions,r.length,r.propValues.concat([[EL,this.stoppedAt]]))),r}let t=this.inner[this.innerDone],n=t.parse.advance();if(n){this.innerDone++;let r=Object.assign(Object.create(null),t.target.props);r[Wn.mounted.id]=new Mw(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)o=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(d=>d.frag.from<=i.from&&d.frag.to>=i.to&&d.mount.overlay);if(u)for(let d of u.mount.overlay){let f=d.from+u.pos,p=d.to+u.pos;f>=i.from&&p<=i.to&&!n.ranges.some(g=>g.fromf)&&n.ranges.push({from:f,to:p})}}o=!1}else if(r&&(s=KVe(r.ranges,i.from,i.to)))o=s!=2;else if(!i.type.isAnonymous&&(a=this.nest(i,this.input))&&(i.fromnew hc(f.from-i.from,f.to-i.from)):null,i.tree,d.length?d[0].from:i.from)),a.overlay?d.length&&(r={ranges:d,depth:0,prev:r}):o=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new hc(i.from,i.to)),l.fromnew hc(d.from-n.start,d.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function KVe(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 fK(e,t,n,r,i,a){if(t=t&&n.enter(r,1,_i.IgnoreOverlays|_i.ExcludeBuffers)||n.next(!1)||(this.done=!0)}hasNode(t){if(this.moveTo(t.from),!this.done&&this.cursor.from+this.offset==t.from&&this.cursor.tree)for(let n=this.cursor.tree;;){if(n==t.tree)return!0;if(n.children.length&&n.positions[0]==0&&n.children[0]instanceof Jr)n=n.children[0];else break}return!1}}let eqe=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(EL))!==null&&n!==void 0?n:r.to,this.inner=new hK(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(EL))!==null&&t!==void 0?t:n.to,this.inner=new hK(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let a=this.inner.cursor.node;a;a=a.parent){let s=(r=a.tree)===null||r===void 0?void 0:r.prop(Wn.mounted);if(s&&s.parser==n)for(let o=this.fragI;o=a.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:a.from-l.offset,mount:s})}}}return i}};function pK(e,t){let n=null,r=t;for(let i=1,a=0;i=o)break;l.to<=s||(n||(r=n=t.slice()),l.fromo&&n.splice(a+1,0,new hc(o,l.to))):l.to>o?n[a--]=new hc(o,l.to):n.splice(a--,1))}}return r}function tqe(e,t,n,r){let i=0,a=0,s=!1,o=!1,l=-1e9,u=[];for(;;){let d=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:o?t[a].to:t[a].from;if(s!=o){let p=Math.max(l,n),g=Math.min(d,f,r);pnew hc(p.from+r,p.to+r)),f=tqe(t,d,l,u);for(let p=0,g=l;;p++){let O=p==f.length,S=O?u:f[p].from;if(S>g&&n.push(new Zh(g,S,i.tree,-s,a.from>=g||a.openStart,a.to<=S||a.openEnd)),O)break;g=f[p].to}}else n.push(new Zh(l,u,i.tree,-s,a.from>=s||a.openStart,a.to<=o||a.openEnd))}return n}let nqe=0;class du{constructor(t,n,r,i){this.name=t,this.set=n,this.base=r,this.modified=i,this.id=nqe++}toString(){let{name:t}=this;for(let n of this.modified)n.name&&(t=`${n.name}(${t})`);return t}static define(t,n){let r=typeof t=="string"?t:"?";if(t instanceof du&&(n=t),n!=null&&n.base)throw new Error("Can not derive from a modified tag");let i=new du(r,[],null,[]);if(i.set.push(i),n)for(let a of n.set)i.set.push(a);return i}static defineModifier(t){let n=new eC(t);return r=>r.modified.indexOf(n)>-1?r:eC.get(r.base||r,r.modified.concat(n).sort((i,a)=>i.id-a.id))}}let rqe=0;class eC{constructor(t){this.name=t,this.instances=[],this.id=rqe++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(o=>o.base==t&&iqe(n,o.modified));if(r)return r;let i=[],a=new du(t.name,i,t,n);for(let o of n)o.instances.push(a);let s=aqe(n);for(let o of t.set)if(!o.modified.length)for(let l of s)i.push(eC.get(o,l));return a}}function iqe(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function aqe(e){let t=[[]];for(let n=0;nr.length-n.length)}function OO(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){s=1;break}let p=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!p)throw new RangeError("Invalid path: "+i);if(a.push(p[0]=="*"?"":p[0][0]=='"'?JSON.parse(p[0]):p[0]),f+=p[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let l=a.length-1,u=a[l];if(!u)throw new RangeError("Invalid path: "+i);let d=new tC(r,s,l>0?a.slice(0,l):null);t[u]=d.sort(t[u])}}return mfe.add(t)}const mfe=new Wn;class tC{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let o of a)for(let l of o.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function sqe(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function oqe(e,t,n,r=0,i=e.length){let a=new lqe(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}class lqe{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,a){let{type:s,from:o,to:l}=t;if(o>=r||l<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let u=i,d=uqe(t)||tC.empty,f=sqe(a,d.tags);if(f&&(u&&(u+=" "),u+=f,d.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,o),u),d.opaque)return;let p=t.tree&&t.tree.prop(Wn.mounted);if(p&&p.overlay){let g=t.node.enter(p.overlay[0].from+o,1),O=this.highlighters.filter(T=>!T.scope||T.scope(p.tree.type)),S=t.firstChild();for(let T=0,w=o;;T++){let x=T=k||!t.nextSibling())););if(!x||k>r)break;w=x.to+o,w>n&&(this.highlightRange(g.cursor(),Math.max(n,x.from+o),Math.min(r,w),"",O),this.startSpan(Math.min(r,w),u))}S&&t.parent()}else if(t.firstChild()){p&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,a),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function uqe(e){let t=e.type.prop(mfe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const Yt=du.define,QA=Yt(),l0=Yt(),gK=Yt(l0),bK=Yt(l0),u0=Yt(),WA=Yt(u0),SD=Yt(u0),nf=Yt(),mg=Yt(nf),Jd=Yt(),ef=Yt(),wL=Yt(),gE=Yt(wL),VA=Yt(),ge={comment:QA,lineComment:Yt(QA),blockComment:Yt(QA),docComment:Yt(QA),name:l0,variableName:Yt(l0),typeName:gK,tagName:Yt(gK),propertyName:bK,attributeName:Yt(bK),className:Yt(l0),labelName:Yt(l0),namespace:Yt(l0),macroName:Yt(l0),literal:u0,string:WA,docString:Yt(WA),character:Yt(WA),attributeValue:Yt(WA),number:SD,integer:Yt(SD),float:Yt(SD),bool:Yt(u0),regexp:Yt(u0),escape:Yt(u0),color:Yt(u0),url:Yt(u0),keyword:Jd,self:Yt(Jd),null:Yt(Jd),atom:Yt(Jd),unit:Yt(Jd),modifier:Yt(Jd),operatorKeyword:Yt(Jd),controlKeyword:Yt(Jd),definitionKeyword:Yt(Jd),moduleKeyword:Yt(Jd),operator:ef,derefOperator:Yt(ef),arithmeticOperator:Yt(ef),logicOperator:Yt(ef),bitwiseOperator:Yt(ef),compareOperator:Yt(ef),updateOperator:Yt(ef),definitionOperator:Yt(ef),typeOperator:Yt(ef),controlOperator:Yt(ef),punctuation:wL,separator:Yt(wL),bracket:gE,angleBracket:Yt(gE),squareBracket:Yt(gE),paren:Yt(gE),brace:Yt(gE),content:nf,heading:mg,heading1:Yt(mg),heading2:Yt(mg),heading3:Yt(mg),heading4:Yt(mg),heading5:Yt(mg),heading6:Yt(mg),contentSeparator:Yt(nf),list:Yt(nf),quote:Yt(nf),emphasis:Yt(nf),strong:Yt(nf),link:Yt(nf),monospace:Yt(nf),strikethrough:Yt(nf),inserted:Yt(),deleted:Yt(),changed:Yt(),invalid:Yt(),meta:VA,documentMeta:Yt(VA),annotation:Yt(VA),processingInstruction:Yt(VA),definition:du.defineModifier("definition"),constant:du.defineModifier("constant"),function:du.defineModifier("function"),standard:du.defineModifier("standard"),local:du.defineModifier("local"),special:du.defineModifier("special")};for(let e in ge){let t=ge[e];t instanceof du&&(t.name=e)}gfe([{tag:ge.link,class:"tok-link"},{tag:ge.heading,class:"tok-heading"},{tag:ge.emphasis,class:"tok-emphasis"},{tag:ge.strong,class:"tok-strong"},{tag:ge.keyword,class:"tok-keyword"},{tag:ge.atom,class:"tok-atom"},{tag:ge.bool,class:"tok-bool"},{tag:ge.url,class:"tok-url"},{tag:ge.labelName,class:"tok-labelName"},{tag:ge.inserted,class:"tok-inserted"},{tag:ge.deleted,class:"tok-deleted"},{tag:ge.literal,class:"tok-literal"},{tag:ge.string,class:"tok-string"},{tag:ge.number,class:"tok-number"},{tag:[ge.regexp,ge.escape,ge.special(ge.string)],class:"tok-string2"},{tag:ge.variableName,class:"tok-variableName"},{tag:ge.local(ge.variableName),class:"tok-variableName tok-local"},{tag:ge.definition(ge.variableName),class:"tok-variableName tok-definition"},{tag:ge.special(ge.variableName),class:"tok-variableName2"},{tag:ge.definition(ge.propertyName),class:"tok-propertyName tok-definition"},{tag:ge.typeName,class:"tok-typeName"},{tag:ge.namespace,class:"tok-namespace"},{tag:ge.className,class:"tok-className"},{tag:ge.macroName,class:"tok-macroName"},{tag:ge.propertyName,class:"tok-propertyName"},{tag:ge.operator,class:"tok-operator"},{tag:ge.comment,class:"tok-comment"},{tag:ge.meta,class:"tok-meta"},{tag:ge.invalid,class:"tok-invalid"},{tag:ge.punctuation,class:"tok-punctuation"}]);var ED;const Hg=new Wn;function kB(e){return sn.define({combine:e?t=>t.concat(e):void 0})}const AB=new Wn;class pc{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Dr.prototype.hasOwnProperty("tree")||Object.defineProperty(Dr.prototype,"tree",{get(){return Ii(this)}}),this.parser=n,this.extension=[um.of(this),Dr.languageData.of((a,s,o)=>{let l=yK(a,s,o),u=l.type.prop(Hg);if(!u)return[];let d=a.facet(u),f=l.type.prop(AB);if(f){let p=l.resolve(s-l.from,o);for(let g of f)if(g.test(p,a)){let O=a.facet(g.facet);return g.type=="replace"?O:O.concat(d)}}return d})].concat(r)}isActiveAt(t,n,r=-1){return yK(t,n,r).type.prop(Hg)==this.data}findRegions(t){let n=t.facet(um);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(Hg)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(Wn.mounted);if(o){if(o.tree.prop(Hg)==this.data){if(o.overlay)for(let l of o.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let l=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new Pv(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Ii(e){let t=e.field(pc.state,!1);return t?t.tree:Jr.empty}class cqe{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 bE=null;class Fw{constructor(t,n,r=[],i,a,s,o,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new Fw(t,n,[],Jr.empty,0,r,[],null)}startParse(){return this.parser.startParse(new cqe(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=Jr.empty&&this.isDone(n??this.state.doc.length)?(this.takeTree(),!0):this.withContext(()=>{var r;if(typeof t=="number"){let i=Date.now()+t;t=()=>Date.now()>i}for(this.parse||(this.parse=this.startParse()),n!=null&&(this.parse.stoppedAt==null||this.parse.stoppedAt>n)&&n=this.treeLen&&((this.parse.stoppedAt==null||this.parse.stoppedAt>t)&&this.parse.stopAt(t),this.withContext(()=>{for(;!(n=this.parse.advance()););}),this.treeLen=t,this.tree=n,this.fragments=this.withoutTempSkipped(Zh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=bE;bE=this;try{return t()}finally{bE=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=vK(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,d,f,p)=>l.push({fromA:u,toA:d,fromB:f,toB:p})),r=Zh.applyChanges(r,l),i=Jr.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){o=[];for(let u of this.skipped){let d=t.mapPos(u.from,1),f=t.mapPos(u.to,-1);dt.from&&(this.fragments=vK(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends xB{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let l=bE;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new Jr(us.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return bE}}function vK(e,t,n){return Zh.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class Lv{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 Lv(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=Fw.create(t.facet(um).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new Lv(r)}}pc.state=As.define({create:Lv.init,update(e,t){for(let n of t.effects)if(n.is(pc.setState))return n.value;return t.startState.facet(um)!=t.state.facet(um)?Lv.init(t.state):e.apply(t)}});let bfe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(bfe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const wD=typeof navigator<"u"&&(!((ED=navigator.scheduling)===null||ED===void 0)&&ED.isInputPending)?()=>navigator.scheduling.isInputPending():null,dqe=da.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(pc.state).context;(n.updateViewport(t.view.viewport)||this.view.viewport.to>n.treeLen)&&this.scheduleWork(),(t.docChanged||t.selectionSet)&&(this.view.hasFocus&&(this.chunkBudget+=50),this.scheduleWork()),this.checkAsyncSchedule(n)}scheduleWork(){if(this.working)return;let{state:t}=this.view,n=t.field(pc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=bfe(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=a.context.work(()=>wD&&wD()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:pc.setState.of(new Lv(a.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>kl(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()}}}),um=sn.define({combine(e){return e.length?e[0]:null},enables:e=>[pc.state,dqe,Jt.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class Bw{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class nC{constructor(t,n,r,i,a,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=a,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new nC(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(a=>a==n))return i;if(r)for(let i of t)for(let a of i.alias){let s=n.indexOf(a);if(s>-1&&(a.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+a.length])))return i}return null}}const fqe=sn.define(),YT=sn.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 rC(e){let t=e.facet(YT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function Uw(e,t){let n="",r=e.tabSize,i=e.facet(YT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let a=0;a=t?hqe(e,n,t):null}class BR{constructor(t,n={}){this.state=t,this.options=n,this.unit=rC(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(t,n=t.length){return Cd(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const ZT=new Wn;function hqe(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s!=r.node;s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return yfe(r,e,n)}function yfe(e,t,n){for(let r=e;r;r=r.next){let i=mqe(r.node);if(i)return i(CB.create(t,n,r))}return 0}function pqe(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function mqe(e){let t=e.type.prop(ZT);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(Wn.closedBy))){let i=e.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>vfe(s,!0,1,void 0,a&&!pqe(s)?i.from:void 0)}return e.parent==null?gqe:null}function gqe(){return 0}class CB extends BR{constructor(t,n,r){super(t.state,t.options),this.base=t,this.pos=n,this.context=r}get node(){return this.context.node}static create(t,n,r){return new CB(t,n,r)}get textAfter(){return this.textAfterPos(this.pos)}get baseIndent(){return this.baseIndentFor(this.node)}baseIndentFor(t){let n=this.state.doc.lineAt(t.from);for(;;){let r=t.resolve(n.from);for(;r.parent&&r.parent.from==r.from;)r=r.parent;if(bqe(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return yfe(this.context.next,this.base,this.pos)}}function bqe(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function yqe(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let l=t.childAfter(o);if(!l||l==r)return null;if(!l.type.isSkipped)return l.fromvfe(r,t,n,e)}function vfe(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?yqe(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}const Oqe=e=>e.baseIndent;function m_({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Sqe=200;function Eqe(){return Dr.transactionFilter.of(e=>{if(!e.docChanged||!e.isUserEvent("input.type")&&!e.isUserEvent("input.complete"))return e;let t=e.startState.languageDataAt("indentOnInput",e.startState.selection.main.head);if(!t.length)return e;let n=e.newDoc,{head:r}=e.newSelection.main,i=n.lineAt(r);if(r>i.from+Sqe)return e;let a=n.sliceString(i.from,r);if(!t.some(u=>u.test(a)))return e;let{state:s}=e,o=-1,l=[];for(let{head:u}of s.selection.ranges){let d=s.doc.lineAt(u);if(d.from==o)continue;o=d.from;let f=_B(s,d.from);if(f==null)continue;let p=/^\s*/.exec(d.text)[0],g=Uw(s,f);p!=g&&l.push({from:d.from,to:d.from+p.length,insert:g})}return l.length?[e,{changes:l,sequential:!0}]:e})}const Ofe=sn.define(),SO=new Wn;function Sfe(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(a&&o.from=t&&u.to>n&&(a=u)}}return a}function Tqe(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function iC(e,t,n){for(let r of e.facet(Ofe)){let i=r(e,t,n);if(i)return i}return wqe(e,t,n)}function Efe(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 UR=Zn.define({map:Efe}),XT=Zn.define({map:Efe});function wfe(e){let t=[];for(let{head:n}of e.state.selection.ranges)t.some(r=>r.from<=n&&r.to>=n)||t.push(e.lineBlockAt(n));return t}const k1=As.define({create(){return bn.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(UR)&&!xqe(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(kfe),i=r?bn.replace({widget:new Nqe(r(t.state,n.value))}):OK;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(XT)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,a)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return e},provide:e=>Jt.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>a)&&(i={from:a,to:s})}),i}function xqe(e,t,n){let r=!1;return e.between(t,t,(i,a)=>{i==t&&a==n&&(r=!0)}),r}function Tfe(e,t){return e.field(k1,!1)?t:t.concat(Zn.appendConfig.of(Afe()))}const kqe=e=>{for(let t of wfe(e)){let n=iC(e.state,t.from,t.to);if(n)return e.dispatch({effects:Tfe(e.state,[UR.of(n),xfe(e,n)])}),!0}return!1},Aqe=e=>{if(!e.state.field(k1,!1))return!1;let t=[];for(let n of wfe(e)){let r=aC(e.state,n.from,n.to);r&&t.push(XT.of(r),xfe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function xfe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return Jt.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const _qe=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(k1,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(XT.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},Rqe=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:kqe},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Aqe},{key:"Ctrl-Alt-[",run:_qe},{key:"Ctrl-Alt-]",run:Cqe}],Iqe={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},kfe=sn.define({combine(e){return Gf(e,Iqe)}});function Afe(e){return[k1,Lqe]}function _fe(e,t){let{state:n}=e,r=n.facet(kfe),i=s=>{let o=e.lineBlockAt(e.posAtDOM(s.target)),l=aC(e.state,o.from,o.to);l&&e.dispatch({effects:XT.of(l)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const OK=bn.replace({widget:new class extends Md{toDOM(e){return _fe(e,null)}}});class Nqe extends Md{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return _fe(t,this.value)}}const Dqe={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class TD extends cp{constructor(t,n){super(),this.config=t,this.open=n}eq(t){return this.config==t.config&&this.open==t.open}toDOM(t){if(this.config.markerDOM)return this.config.markerDOM(this.open);let n=document.createElement("span");return n.textContent=this.open?this.config.openText:this.config.closedText,n.title=t.state.phrase(this.open?"Fold line":"Unfold line"),n}}function Pqe(e={}){let t=Object.assign(Object.assign({},Dqe),e),n=new TD(t,!0),r=new TD(t,!1),i=da.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(um)!=s.state.facet(um)||s.startState.field(k1,!1)!=s.state.field(k1,!1)||Ii(s.startState)!=Ii(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new im;for(let l of s.viewportLineBlocks){let u=aC(s.state,l.from,l.to)?r:iC(s.state,l.from,l.to)?n:null;u&&o.add(l.from,l.from,u)}return o.finish()}}),{domEventHandlers:a}=t;return[i,NVe({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||_r.empty},initialSpacer(){return new TD(t,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,l)=>{if(a.click&&a.click(s,o,l))return!0;let u=aC(s.state,o.from,o.to);if(u)return s.dispatch({effects:XT.of(u)}),!0;let d=iC(s.state,o.from,o.to);return d?(s.dispatch({effects:UR.of(d)}),!0):!1}})}),Afe()]}const Lqe=Jt.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 KT{constructor(t,n){this.specs=t;let r;function i(o){let l=am.newName();return(r||(r=Object.create(null)))["."+l]=o,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof pc?o=>o.prop(Hg)==s.data:s?o=>o==s:void 0,this.style=gfe(t.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new am(r):null,this.themeType=n.themeType}static define(t,n){return new KT(t,n||{})}}const TL=sn.define(),Cfe=sn.define({combine(e){return e.length?[e[0]]:null}});function xD(e){let t=e.facet(TL);return t.length?t:e.facet(Cfe)}function Rfe(e,t){let n=[$qe],r;return e instanceof KT&&(e.module&&n.push(Jt.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(Cfe.of(e)):r?n.push(TL.computeN([Jt.darkTheme],i=>i.facet(Jt.darkTheme)==(r=="dark")?[e]:[])):n.push(TL.of(e)),n}class Mqe{constructor(t){this.markCache=Object.create(null),this.tree=Ii(t.state),this.decorations=this.buildDeco(t,xD(t.state)),this.decoratedTo=t.viewport.to}update(t){let n=Ii(t.state),r=xD(t.state),i=r!=xD(t.startState),{viewport:a}=t.view,s=t.changes.mapPos(this.decoratedTo,1);n.length=a.to?(this.decorations=this.decorations.map(t.changes),this.decoratedTo=s):(n!=this.tree||t.viewportChanged||i)&&(this.tree=n,this.decorations=this.buildDeco(t.view,r),this.decoratedTo=a.to)}buildDeco(t,n){if(!n||!this.tree.length)return bn.none;let r=new im;for(let{from:i,to:a}of t.visibleRanges)oqe(this.tree,n,(s,o,l)=>{r.add(s,o,this.markCache[l]||(this.markCache[l]=bn.mark({class:l})))},i,a);return r.finish()}}const $qe=wp.high(da.fromClass(Mqe,{decorations:e=>e.decorations})),Fqe=KT.define([{tag:ge.meta,color:"#404740"},{tag:ge.link,textDecoration:"underline"},{tag:ge.heading,textDecoration:"underline",fontWeight:"bold"},{tag:ge.emphasis,fontStyle:"italic"},{tag:ge.strong,fontWeight:"bold"},{tag:ge.strikethrough,textDecoration:"line-through"},{tag:ge.keyword,color:"#708"},{tag:[ge.atom,ge.bool,ge.url,ge.contentSeparator,ge.labelName],color:"#219"},{tag:[ge.literal,ge.inserted],color:"#164"},{tag:[ge.string,ge.deleted],color:"#a11"},{tag:[ge.regexp,ge.escape,ge.special(ge.string)],color:"#e40"},{tag:ge.definition(ge.variableName),color:"#00f"},{tag:ge.local(ge.variableName),color:"#30a"},{tag:[ge.typeName,ge.namespace],color:"#085"},{tag:ge.className,color:"#167"},{tag:[ge.special(ge.variableName),ge.macroName],color:"#256"},{tag:ge.definition(ge.propertyName),color:"#00c"},{tag:ge.comment,color:"#940"},{tag:ge.invalid,color:"#f00"}]),Bqe=Jt.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ife=1e4,Nfe="()[]{}",Dfe=sn.define({combine(e){return Gf(e,{afterCursor:!0,brackets:Nfe,maxScanDistance:Ife,renderMatch:jqe})}}),Uqe=bn.mark({class:"cm-matchingBracket"}),zqe=bn.mark({class:"cm-nonmatchingBracket"});function jqe(e){let t=[],n=e.matched?Uqe:zqe;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 Hqe=As.define({create(){return bn.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Dfe);for(let i of t.state.selection.ranges){if(!i.empty)continue;let a=wf(t.state,i.head,-1,r)||i.head>0&&wf(t.state,i.head-1,1,r)||r.afterCursor&&(wf(t.state,i.head,1,r)||i.headJt.decorations.from(e)}),Qqe=[Hqe,Bqe];function Wqe(e={}){return[Dfe.of(e),Qqe]}const Pfe=new Wn;function xL(e,t,n){let r=e.prop(t<0?Wn.openedBy:Wn.closedBy);if(r)return r;if(e.name.length==1){let i=n.indexOf(e.name);if(i>-1&&i%2==(t<0?1:0))return[n[i+t]]}return null}function kL(e){let t=e.type.prop(Pfe);return t?t(e.node):e}function wf(e,t,n,r={}){let i=r.maxScanDistance||Ife,a=r.brackets||Nfe,s=Ii(e),o=s.resolveInner(t,n);for(let l=o;l;l=l.parent){let u=xL(l.type,n,a);if(u&&l.from0?t>=d.from&&td.from&&t<=d.to))return Vqe(e,t,n,l,d,u,a)}}return qqe(e,t,n,s,o.type,i,a)}function Vqe(e,t,n,r,i,a,s){let o=r.parent,l={from:i.from,to:i.to},u=0,d=o==null?void 0:o.cursor();if(d&&(n<0?d.childBefore(r.from):d.childAfter(r.to)))do if(n<0?d.to<=r.from:d.from>=r.to){if(u==0&&a.indexOf(d.type.name)>-1&&d.from0)return null;let u={from:n<0?t-1:t,to:n>0?t+1:t},d=e.doc.iterRange(t,n>0?e.doc.length:0),f=0;for(let p=0;!d.next().done&&p<=a;){let g=d.value;n<0&&(p+=g.length);let O=t+p*n;for(let S=n>0?0:g.length-1,T=n>0?g.length:-1;S!=T;S+=n){let w=s.indexOf(g[S]);if(!(w<0||r.resolveInner(O+S,1).type!=i))if(w%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:O+S,to:O+S+1},matched:w>>1==l>>1};f--}}n>0&&(p+=g.length)}return d.done?{start:u,matched:!1}:null}const Gqe=Object.create(null),SK=[us.none],EK=[],wK=Object.create(null),Yqe=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"]])Yqe[e]=Zqe(Gqe,t);function kD(e,t){EK.indexOf(e)>-1||(EK.push(e),console.warn(t))}function Zqe(e,t){let n=[];for(let o of t.split(" ")){let l=[];for(let u of o.split(".")){let d=e[u]||ge[u];d?typeof d=="function"?l.length?l=l.map(d):kD(u,`Modifier ${u} used at start of tag`):l.length?kD(u,`Tag ${u} used as modifier`):l=Array.isArray(d)?d:[d]:kD(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=wK[i];if(a)return a.id;let s=wK[i]=us.define({id:SK.length,name:r,props:[OO({[r]:n})]});return SK.push(s),s.id}Bi.RTL,Bi.LTR;const Xqe=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=IB(e.state,n.from);return r.line?Kqe(e):r.block?eGe(e):!1};function RB(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 Kqe=RB(rGe,0),Jqe=RB(Lfe,0),eGe=RB((e,t)=>Lfe(e,t,nGe(t)),0);function IB(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const yE=50;function tGe(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-yE,r),s=e.sliceDoc(i,i+yE),o=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(s)[0].length,u=a.length-o;if(a.slice(u-t.length,u)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+l,margin:l&&1}};let d,f;i-r<=2*yE?d=f=e.sliceDoc(r,i):(d=e.sliceDoc(r,r+yE),f=e.sliceDoc(i-yE,i));let p=/^\s*/.exec(d)[0].length,g=/\s*$/.exec(f)[0].length,O=f.length-g-n.length;return d.slice(p,p+t.length)==t&&f.slice(O,O+n.length)==n?{open:{pos:r+p+t.length,margin:/\s/.test(d.charAt(p+t.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(f.charAt(O-1))?1:0}}:null}function nGe(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function Lfe(e,t,n=t.selection.ranges){let r=n.map(a=>IB(t,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>tGe(t,r[s],a.from,a.to));if(e!=2&&!i.every(a=>a))return{changes:t.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(a=>a)){let a=[];for(let s=0,o;si&&(a==s||s>f.from)){i=f.from;let p=/^\s*/.exec(f.text)[0].length,g=p==f.length,O=f.text.slice(p,p+u.length)==u?p:-1;pa.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:l,indent:u,empty:d,single:f}of r)(f||!d)&&a.push({from:o.from+u,insert:l+" "});let s=t.changes(a);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:l}of r)if(o>=0){let u=s.from+o,d=u+l.length;s.text[d-s.from]==" "&&d++,a.push({from:u,to:d})}return{changes:a}}return null}const AL=Ld.define(),iGe=Ld.define(),aGe=sn.define(),Mfe=sn.define({combine(e){return Gf(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)})}}),$fe=As.define({create(){return Tf.empty},update(e,t){let n=t.state.facet(Mfe),r=t.annotation(AL);if(r){let l=Al.fromTransaction(t,r.selection),u=r.side,d=u==0?e.undone:e.done;return l?d=sC(d,d.length,n.minDepth,l):d=Ufe(d,t.startState.selection),new Tf(u==0?r.rest:d,u==0?d:r.rest)}let i=t.annotation(iGe);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(os.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=Al.fromTransaction(t),s=t.annotation(os.time),o=t.annotation(os.userEvent);return a?e=e.addChanges(a,s,o,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new Tf(e.done.map(Al.fromJSON),e.undone.map(Al.fromJSON))}});function sGe(e={}){return[$fe,Mfe.of(e),Jt.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?Ffe:t.inputType=="historyRedo"?_L:null;return r?(t.preventDefault(),r(n)):!1}})]}function zR(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field($fe,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}const Ffe=zR(0,!1),_L=zR(1,!1),oGe=zR(0,!0),lGe=zR(1,!0);class Al{constructor(t,n,r,i,a){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(t){return new Al(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 Al(t.changes&&ts.fromJSON(t.changes),[],t.mapped&&Lf.fromJSON(t.mapped),t.startSelection&&dt.fromJSON(t.startSelection),t.selectionsAfter.map(dt.fromJSON))}static fromTransaction(t,n){let r=mc;for(let i of t.startState.facet(aGe)){let a=i(t);a.length&&(r=r.concat(a))}return!r.length&&t.changes.empty?null:new Al(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,mc)}static selection(t){return new Al(void 0,mc,void 0,void 0,t)}}function sC(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function uGe(e,t){let n=[],r=!1;return e.iterChangedRanges((i,a)=>n.push(i,a)),t.iterChangedRanges((i,a,s,o)=>{for(let l=0;l=u&&s<=d&&(r=!0)}}),r}function cGe(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function Bfe(e,t){return e.length?t.length?e.concat(t):e:t}const mc=[],dGe=200;function Ufe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-dGe));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),sC(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Al.selection([t])]}function fGe(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 AD(e,t){if(!e.length)return e;let n=e.length,r=mc;for(;n;){let i=hGe(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=e.slice(0,n);return a[n-1]=i,a}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Al.selection(r)]:mc}function hGe(e,t,n){let r=Bfe(e.selectionsAfter.length?e.selectionsAfter.map(o=>o.map(t)):mc,n);if(!e.changes)return Al.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new Al(i,Zn.mapEffects(e.effects,t),s,e.startSelection.map(a),r)}const pGe=/^(input\.type|delete)($|\.)/;class Tf{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 Tf(this.done,this.undone):this}addChanges(t,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!r||pGe.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):jR(n,t))}function So(e){return e.textDirectionAt(e.state.selection.main.head)==Bi.LTR}const jfe=e=>zfe(e,!So(e)),Hfe=e=>zfe(e,So(e));function Qfe(e,t){return $d(e,n=>n.empty?e.moveByGroup(n,t):jR(n,t))}const gGe=e=>Qfe(e,!So(e)),bGe=e=>Qfe(e,So(e));function yGe(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 HR(e,t,n){let r=Ii(e).resolveInner(t.head),i=n?Wn.closedBy:Wn.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;yGe(e,u,i)?r=u:l=n?u.to:u.from}let a=r.type.prop(i),s,o;return a&&(s=n?wf(e,r.from,1):wf(e,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,dt.cursor(o,n?-1:1)}const vGe=e=>$d(e,t=>HR(e.state,t,!So(e))),OGe=e=>$d(e,t=>HR(e.state,t,So(e)));function Wfe(e,t){return $d(e,n=>{if(!n.empty)return jR(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const Vfe=e=>Wfe(e,!1),qfe=e=>Wfe(e,!0);function Gfe(e){let t=e.scrollDOM.clientHeights.empty?e.moveVertically(s,t,n.height):jR(s,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let s=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),l=o.top+n.marginTop,u=o.bottom-n.marginBottom;s&&s.top>l&&s.bottomYfe(e,!1),CL=e=>Yfe(e,!0);function Em(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&t.head!=r.from+a&&(i=dt.cursor(r.from+a))}return i}const SGe=e=>$d(e,t=>Em(e,t,!0)),EGe=e=>$d(e,t=>Em(e,t,!1)),wGe=e=>$d(e,t=>Em(e,t,!So(e))),TGe=e=>$d(e,t=>Em(e,t,So(e))),xGe=e=>$d(e,t=>dt.cursor(e.lineBlockAt(t.head).from,1)),kGe=e=>$d(e,t=>dt.cursor(e.lineBlockAt(t.head).to,-1));function AGe(e,t,n){let r=!1,i=EO(e.selection,a=>{let s=wf(e,a.head,-1)||wf(e,a.head,1)||a.head>0&&wf(e,a.head-1,1)||a.headAGe(e,t);function Bc(e,t){let n=EO(e.state.selection,r=>{let i=t(r);return dt.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(Yf(e.state,n)),!0)}function Zfe(e,t){return Bc(e,n=>e.moveByChar(n,t))}const Xfe=e=>Zfe(e,!So(e)),Kfe=e=>Zfe(e,So(e));function Jfe(e,t){return Bc(e,n=>e.moveByGroup(n,t))}const CGe=e=>Jfe(e,!So(e)),RGe=e=>Jfe(e,So(e)),IGe=e=>Bc(e,t=>HR(e.state,t,!So(e))),NGe=e=>Bc(e,t=>HR(e.state,t,So(e)));function ehe(e,t){return Bc(e,n=>e.moveVertically(n,t))}const the=e=>ehe(e,!1),nhe=e=>ehe(e,!0);function rhe(e,t){return Bc(e,n=>e.moveVertically(n,t,Gfe(e).height))}const xK=e=>rhe(e,!1),kK=e=>rhe(e,!0),DGe=e=>Bc(e,t=>Em(e,t,!0)),PGe=e=>Bc(e,t=>Em(e,t,!1)),LGe=e=>Bc(e,t=>Em(e,t,!So(e))),MGe=e=>Bc(e,t=>Em(e,t,So(e))),$Ge=e=>Bc(e,t=>dt.cursor(e.lineBlockAt(t.head).from)),FGe=e=>Bc(e,t=>dt.cursor(e.lineBlockAt(t.head).to)),AK=({state:e,dispatch:t})=>(t(Yf(e,{anchor:0})),!0),_K=({state:e,dispatch:t})=>(t(Yf(e,{anchor:e.doc.length})),!0),CK=({state:e,dispatch:t})=>(t(Yf(e,{anchor:e.selection.main.anchor,head:0})),!0),RK=({state:e,dispatch:t})=>(t(Yf(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),BGe=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),UGe=({state:e,dispatch:t})=>{let n=QR(e).map(({from:r,to:i})=>dt.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:dt.create(n),userEvent:"select"})),!0},zGe=({state:e,dispatch:t})=>{let n=EO(e.selection,r=>{var i;let a=Ii(e).resolveStack(r.from,1);for(let s=a;s;s=s.next){let{node:o}=s;if((o.from=r.to||o.to>r.to&&o.from<=r.from)&&(!((i=o.parent)===null||i===void 0)&&i.parent))return dt.range(o.to,o.from)}return r});return t(Yf(e,n)),!0},jGe=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=dt.create([n.main]):n.main.empty||(r=dt.create([dt.cursor(n.main.head)])),r?(t(Yf(e,r)),!0):!1};function JT(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let l=t(a);ls&&(n="delete.forward",l=qA(e,l,!0)),s=Math.min(s,l),o=Math.max(o,l)}else s=qA(e,s,!1),o=qA(e,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:dt.cursor(s,si(e)))r.between(t,t,(i,a)=>{it&&(t=n?a:i)});return t}const ihe=(e,t,n)=>JT(e,r=>{let i=r.from,{state:a}=e,s=a.doc.lineAt(i),o,l;if(n&&!t&&i>s.from&&iihe(e,!1,!0),ahe=e=>ihe(e,!0,!1),she=(e,t)=>JT(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=qs(a.text,r-a.from,t)+a.from,u=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),d=s(u);if(o!=null&&d!=o)break;(u!=" "||r!=n.head)&&(o=d),r=l}return r}),ohe=e=>she(e,!1),HGe=e=>she(e,!0),QGe=e=>JT(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headJT(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),VGe=e=>JT(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:yr.of(["",""])},range:dt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},GGe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,a=e.doc.lineAt(i),s=i==a.from?i-1:qs(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:qs(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:e.doc.slice(i,o).append(e.doc.slice(s,i))},range:dt.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function QR(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=a.to,s.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function lhe(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let a of QR(e)){if(n?a.to==e.doc.length:a.from==0)continue;let s=e.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+e.lineBreak});for(let l of a.ranges)i.push(dt.range(Math.min(e.doc.length,l.anchor+o),Math.min(e.doc.length,l.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:e.lineBreak+s.text});for(let l of a.ranges)i.push(dt.range(l.anchor-o,l.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:dt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const YGe=({state:e,dispatch:t})=>lhe(e,t,!1),ZGe=({state:e,dispatch:t})=>lhe(e,t,!0);function uhe(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of QR(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 XGe=({state:e,dispatch:t})=>uhe(e,t,!1),KGe=({state:e,dispatch:t})=>uhe(e,t,!0),JGe=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(QR(t).map(({from:i,to:a})=>(i>0?i--:a{let a;if(e.lineWrapping){let s=e.lineBlockAt(i.head),o=e.coordsAtPos(i.head,i.assoc||1);o&&(a=s.bottom+e.documentTop-o.bottom+e.defaultLineHeight/2)}return e.moveVertically(i,!0,a)}).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function eYe(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Ii(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(Wn.closedBy))&&a.indexOf(i.name)>-1&&e.doc.lineAt(r.to).from==e.doc.lineAt(i.from).from&&!/\S/.test(e.sliceDoc(r.to,i.from))?{from:r.to,to:i.from}:null}const tYe=che(!1),nYe=che(!0);function che(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:a,to:s}=i,o=t.doc.lineAt(a),l=!e&&a==s&&eYe(t,a);e&&(a=s=(s<=o.to?o:t.doc.lineAt(s)).to);let u=new BR(t,{simulateBreak:a,simulateDoubleBreak:!!l}),d=_B(u,a);for(d==null&&(d=Cd(/^\s*/.exec(t.doc.lineAt(a).text)[0],t.tabSize));so.from&&a{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let a=e.changes(i);return{changes:i,range:dt.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const rYe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new BR(e,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=NB(e,(a,s,o)=>{let l=_B(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let u=/^\s*/.exec(a.text)[0],d=Uw(e,l);(u!=d||o.frome.readOnly?!1:(t(e.update(NB(e,(n,r)=>{r.push({from:n.from,insert:e.facet(YT)})}),{userEvent:"input.indent"})),!0),fhe=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(NB(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=Cd(i,e.tabSize),s=0,o=Uw(e,Math.max(0,a-rC(e)));for(;s(e.setTabFocusMode(),!0),aYe=[{key:"Ctrl-b",run:jfe,shift:Xfe,preventDefault:!0},{key:"Ctrl-f",run:Hfe,shift:Kfe},{key:"Ctrl-p",run:Vfe,shift:the},{key:"Ctrl-n",run:qfe,shift:nhe},{key:"Ctrl-a",run:xGe,shift:$Ge},{key:"Ctrl-e",run:kGe,shift:FGe},{key:"Ctrl-d",run:ahe},{key:"Ctrl-h",run:RL},{key:"Ctrl-k",run:QGe},{key:"Ctrl-Alt-h",run:ohe},{key:"Ctrl-o",run:qGe},{key:"Ctrl-t",run:GGe},{key:"Ctrl-v",run:CL}],sYe=[{key:"ArrowLeft",run:jfe,shift:Xfe,preventDefault:!0},{key:"Mod-ArrowLeft",mac:"Alt-ArrowLeft",run:gGe,shift:CGe,preventDefault:!0},{mac:"Cmd-ArrowLeft",run:wGe,shift:LGe,preventDefault:!0},{key:"ArrowRight",run:Hfe,shift:Kfe,preventDefault:!0},{key:"Mod-ArrowRight",mac:"Alt-ArrowRight",run:bGe,shift:RGe,preventDefault:!0},{mac:"Cmd-ArrowRight",run:TGe,shift:MGe,preventDefault:!0},{key:"ArrowUp",run:Vfe,shift:the,preventDefault:!0},{mac:"Cmd-ArrowUp",run:AK,shift:CK},{mac:"Ctrl-ArrowUp",run:TK,shift:xK},{key:"ArrowDown",run:qfe,shift:nhe,preventDefault:!0},{mac:"Cmd-ArrowDown",run:_K,shift:RK},{mac:"Ctrl-ArrowDown",run:CL,shift:kK},{key:"PageUp",run:TK,shift:xK},{key:"PageDown",run:CL,shift:kK},{key:"Home",run:EGe,shift:PGe,preventDefault:!0},{key:"Mod-Home",run:AK,shift:CK},{key:"End",run:SGe,shift:DGe,preventDefault:!0},{key:"Mod-End",run:_K,shift:RK},{key:"Enter",run:tYe},{key:"Mod-a",run:BGe},{key:"Backspace",run:RL,shift:RL},{key:"Delete",run:ahe},{key:"Mod-Backspace",mac:"Alt-Backspace",run:ohe},{key:"Mod-Delete",mac:"Alt-Delete",run:HGe},{mac:"Mod-Backspace",run:WGe},{mac:"Mod-Delete",run:VGe}].concat(aYe.map(e=>({mac:e.key,run:e.run,shift:e.shift}))),oYe=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:vGe,shift:IGe},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:OGe,shift:NGe},{key:"Alt-ArrowUp",run:YGe},{key:"Shift-Alt-ArrowUp",run:XGe},{key:"Alt-ArrowDown",run:ZGe},{key:"Shift-Alt-ArrowDown",run:KGe},{key:"Escape",run:jGe},{key:"Mod-Enter",run:nYe},{key:"Alt-l",mac:"Ctrl-l",run:UGe},{key:"Mod-i",run:zGe,preventDefault:!0},{key:"Mod-[",run:fhe},{key:"Mod-]",run:dhe},{key:"Mod-Alt-\\",run:rYe},{key:"Shift-Mod-k",run:JGe},{key:"Shift-Mod-\\",run:_Ge},{key:"Mod-/",run:Xqe},{key:"Alt-A",run:Jqe},{key:"Ctrl-m",mac:"Shift-Alt-m",run:iYe}].concat(sYe),lYe={key:"Tab",run:dhe,shift:fhe};function ki(){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 Mv{constructor(t,n,r=0,i=t.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(IK(o)):IK,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 js(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=uB(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=uc(t);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),l=this.match(o,s,this.bufferPos+this.bufferStart);if(a==i.length-1){if(l)return this.value=l,this;break}s==r&&athis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=oC(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let o=new Wy(n,t.sliceString(n,r));return _D.set(t,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=oC(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=Wy.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(mhe.prototype[Symbol.iterator]=ghe.prototype[Symbol.iterator]=function(){return this});function uYe(e){try{return new RegExp(e,DB),!0}catch{return!1}}function oC(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function IL(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=ki("input",{class:"cm-textfield",name:"line",value:t}),r=ki("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),e.dispatch({effects:lC.of(!1)}),e.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},ki("label",e.state.phrase("Go to line"),": ",n)," ",ki("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,l,u,d,f]=a,p=d?+d.slice(1):0,g=u?+u:o.number;if(u&&f){let T=g/100;l&&(T=T*(l=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*T)}else u&&l&&(g=g*(l=="-"?-1:1)+o.number);let O=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=dt.cursor(O.from+Math.max(0,Math.min(p,O.length)));e.dispatch({effects:[lC.of(!1),Jt.scrollIntoView(S.from,{y:"center"})],selection:S}),e.focus()}return{dom:r}}const lC=Zn.define(),NK=As.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(lC)&&(e=n.value);return e},provide:e=>Lw.from(e,t=>t?IL:null)}),cYe=e=>{let t=Pw(e,IL);if(!t){let n=[lC.of(!0)];e.state.field(NK,!1)==null&&n.push(Zn.appendConfig.of([NK,dYe])),e.dispatch({effects:n}),t=Pw(e,IL)}return t&&t.dom.querySelector("input").select(),!0},dYe=Jt.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),fYe={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},hYe=sn.define({combine(e){return Gf(e,fYe,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function pYe(e){return[vYe,yYe]}const mYe=bn.mark({class:"cm-selectionMatch"}),gYe=bn.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function DK(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Ji.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Ji.Word)}function bYe(e,t,n,r){return e(t.sliceDoc(n,n+1))==Ji.Word&&e(t.sliceDoc(r-1,r))==Ji.Word}const yYe=da.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(hYe),{state:n}=e,r=n.selection;if(r.ranges.length>1)return bn.none;let i=r.main,a,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return bn.none;let l=n.wordAt(i.head);if(!l)return bn.none;s=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return bn.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(DK(s,n,i.from,i.to)&&bYe(s,n,i.from,i.to)))return bn.none}else if(a=n.sliceDoc(i.from,i.to),!a)return bn.none}let o=[];for(let l of e.visibleRanges){let u=new Mv(n.doc,a,l.from,l.to);for(;!u.next().done;){let{from:d,to:f}=u.value;if((!s||DK(s,n,d,f))&&(i.empty&&d<=i.from&&f>=i.to?o.push(gYe.range(d,f)):(d>=i.to||f<=i.from)&&o.push(mYe.range(d,f)),o.length>t.maxMatches))return bn.none}}return bn.set(o)}},{decorations:e=>e.decorations}),vYe=Jt.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),OYe=({state:e,dispatch:t})=>{let{selection:n}=e,r=dt.create(n.ranges.map(i=>e.wordAt(i.head)||dt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function SYe(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new Mv(e.doc,t,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new Mv(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==o.value.from))continue;if(a){let l=e.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const EYe=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(a=>a.from===a.to))return OYe({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(a=>e.sliceDoc(a.from,a.to)!=r))return!1;let i=SYe(e,r);return i?(t(e.update({selection:e.selection.addRange(dt.range(i.from,i.to),!1),effects:Jt.scrollIntoView(i.to)})),!0):!1},wO=sn.define({combine(e){return Gf(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new PYe(t),scrollToMatch:t=>Jt.scrollIntoView(t)})}});class bhe{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||uYe(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 kYe(this):new TYe(this)}getCursor(t,n=0,r){let i=t.doc?t:Dr.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?Gb(this,i,n,r):qb(this,i,n,r)}}class yhe{constructor(t){this.spec=t}}function qb(e,t,n,r){return new Mv(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?wYe(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function wYe(e,t){return(n,r,i,a)=>((a>n||a+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=qb(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function Gb(e,t,n,r){return new mhe(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?xYe(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function uC(e,t){return e.slice(qs(e,t,!1),t)}function cC(e,t){return e.slice(t,qs(e,t))}function xYe(e){return(t,n,r)=>!r[0].length||(e(uC(r.input,r.index))!=Ji.Word||e(cC(r.input,r.index))!=Ji.Word)&&(e(cC(r.input,r.index+r[0].length))!=Ji.Word||e(uC(r.input,r.index+r[0].length))!=Ji.Word)}class kYe extends yhe{nextMatch(t,n,r){let i=Gb(this.spec,t,r,t.doc.length).next();return i.done&&(i=Gb(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=Gb(this.spec,t,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=Gb(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const zw=Zn.define(),PB=Zn.define(),G0=As.define({create(e){return new CD(NL(e).create(),null)},update(e,t){for(let n of t.effects)n.is(zw)?e=new CD(n.value.create(),e.panel):n.is(PB)&&(e=new CD(e.query,n.value?LB:null));return e},provide:e=>Lw.from(e,t=>t.panel)});class CD{constructor(t,n){this.query=t,this.panel=n}}const AYe=bn.mark({class:"cm-searchMatch"}),_Ye=bn.mark({class:"cm-searchMatch cm-searchMatch-selected"}),CYe=da.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(G0))}update(e){let t=e.state.field(G0);(t!=e.startState.field(G0)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return bn.none;let{view:n}=this,r=new im;for(let i=0,a=n.visibleRanges,s=a.length;ia[i+1].from-2*250;)l=a[++i].to;e.highlight(n.state,o,l,(u,d)=>{let f=n.state.selection.ranges.some(p=>p.from==u&&p.to==d);r.add(u,d,f?_Ye:AYe)})}return r.finish()}},{decorations:e=>e.decorations});function ex(e){return t=>{let n=t.state.field(G0,!1);return n&&n.query.spec.valid?e(t,n):She(t)}}const dC=ex((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=dt.single(r.from,r.to),a=e.state.facet(wO);return e.dispatch({selection:i,effects:[MB(e,r),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),Ohe(e),!0}),fC=ex((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=dt.single(i.from,i.to),s=e.state.facet(wO);return e.dispatch({selection:a,effects:[MB(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),Ohe(e),!0}),RYe=ex((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:dt.create(n.map(r=>dt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),IYe=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new Mv(e.doc,e.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(dt.range(o.value.from,o.value.to))}return t(e.update({selection:dt.create(a,s),userEvent:"select.search.matches"})),!0},PK=ex((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let s=[],o,l,u=[];if(a.from==r&&a.to==i&&(l=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:l}),a=t.nextMatch(n,a.from,a.to),u.push(Jt.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let d=s.length==0||s[0].from>=a.to?0:a.to-a.from-l.length;o=dt.single(a.from-d,a.to-d),u.push(MB(e,a)),u.push(n.facet(wO).scrollToMatch(o.main,e))}return e.dispatch({changes:s,selection:o,effects:u,userEvent:"input.replace"}),!0}),NYe=ex((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:Jt.announce.of(r),userEvent:"input.replace.all"}),!0});function LB(e){return e.state.facet(wO).createPanel(e)}function NL(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let u=e.facet(wO);return new bhe({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:u.literal,regexp:(a=t==null?void 0:t.regexp)!==null&&a!==void 0?a:u.regexp,wholeWord:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function vhe(e){let t=Pw(e,LB);return t&&t.dom.querySelector("[main-field]")}function Ohe(e){let t=vhe(e);t&&t==e.root.activeElement&&t.select()}const She=e=>{let t=e.state.field(G0,!1);if(t&&t.panel){let n=vhe(e);if(n&&n!=e.root.activeElement){let r=NL(e.state,t.query.spec);r.valid&&e.dispatch({effects:zw.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[PB.of(!0),t?zw.of(NL(e.state,t.query.spec)):Zn.appendConfig.of(MYe)]});return!0},Ehe=e=>{let t=e.state.field(G0,!1);if(!t||!t.panel)return!1;let n=Pw(e,LB);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:PB.of(!1)}),!0},DYe=[{key:"Mod-f",run:She,scope:"editor search-panel"},{key:"F3",run:dC,shift:fC,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:dC,shift:fC,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ehe,scope:"editor search-panel"},{key:"Mod-Shift-l",run:IYe},{key:"Mod-Alt-g",run:cYe},{key:"Mod-d",run:EYe,preventDefault:!0}];class PYe{constructor(t){this.view=t;let n=this.query=t.state.field(G0).query.spec;this.commit=this.commit.bind(this),this.searchField=ki("input",{value:n.search,placeholder:Jl(t,"Find"),"aria-label":Jl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=ki("input",{value:n.replace,placeholder:Jl(t,"Replace"),"aria-label":Jl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=ki("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=ki("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=ki("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return ki("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=ki("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>dC(t),[Jl(t,"next")]),r("prev",()=>fC(t),[Jl(t,"previous")]),r("select",()=>RYe(t),[Jl(t,"all")]),ki("label",null,[this.caseField,Jl(t,"match case")]),ki("label",null,[this.reField,Jl(t,"regexp")]),ki("label",null,[this.wordField,Jl(t,"by word")]),...t.state.readOnly?[]:[ki("br"),this.replaceField,r("replace",()=>PK(t),[Jl(t,"replace")]),r("replaceAll",()=>NYe(t),[Jl(t,"replace all")])],ki("button",{name:"close",onclick:()=>Ehe(t),"aria-label":Jl(t,"close"),type:"button"},["×"])])}commit(){let t=new bhe({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:zw.of(t)}))}keydown(t){jWe(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?fC:dC)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),PK(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(zw)&&!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(wO).top}}function Jl(e,t){return e.state.phrase(t)}const GA=30,YA=/[\s\.,:;?!]/;function MB(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-GA),s=Math.min(i,n+GA),o=e.state.sliceDoc(a,s);if(a!=r.from){for(let l=0;lo.length-GA;l--)if(!YA.test(o[l-1])&&YA.test(o[l])){o=o.slice(0,l);break}}return Jt.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${r.number}.`)}const LYe=Jt.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"}}),MYe=[G0,wp.low(CYe),LYe];class $B{constructor(t,n,r,i){this.state=t,this.pos=n,this.explicit=r,this.view=i,this.abortListeners=[],this.abortOnDocChange=!1}tokenBefore(t){let n=Ii(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search(The(t,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(t,n,r){t=="abort"&&this.abortListeners&&(this.abortListeners.push(n),r&&r.onDocChange&&(this.abortOnDocChange=!0))}}function LK(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 $Ye(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let a=1;atypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:$Ye(t);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:t,validFor:n}:null}}function FYe(e,t){return n=>{for(let r=Ii(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 MK{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function Y0(e){return e.selection.main.from}function The(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?e:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const FB=Ld.define();function BYe(e,t,n,r){let{main:i}=e.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(o=>o!=i&&n!=r&&e.sliceDoc(o.from+a,o.from+s)!=e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:t},range:dt.cursor(o.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const $K=new WeakMap;function UYe(e){if(!Array.isArray(e))return e;let t=$K.get(e);return t||$K.set(e,t=whe(e)),t}const hC=Zn.define(),jw=Zn.define();class zYe{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&&I<=57||I>=97&&I<=122?2:I>=65&&I<=90?1:0:(N=uB(I))!=N.toLowerCase()?1:N!=N.toUpperCase()?2:0;(!x||D==1&&T||_==0&&D!=0)&&(n[f]==I||r[f]==I&&(p=!0)?s[f++]=x:s.length&&(w=!1)),_=D,x+=uc(I)}return f==l&&s[0]==0&&w?this.result(-100+(p?-200:0),s,t):g==l&&O==0?this.ret(-200-t.length+(S==t.length?0:-100),[0,S]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):g==l?this.ret(-900-t.length,[O,S]):f==l?this.result(-100+(p?-200:0)+-700+(w?0:-1100),s,t):n.length==2?null:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?uc(js(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(t-r.length,i)}}class jYe{constructor(t){this.pattern=t,this.matched=[],this.score=0,this.folded=t.toLowerCase()}match(t){if(t.length!1,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:HYe,filterStrict:!1,compareCompletions:(t,n)=>t.label.localeCompare(n.label),interactionDelay:75,updateSyncTime:100},{defaultKeymap:(t,n)=>t&&n,closeOnBlur:(t,n)=>t&&n,icons:(t,n)=>t&&n,tooltipClass:(t,n)=>r=>FK(t(r),n(r)),optionClass:(t,n)=>r=>FK(t(r),n(r)),addToOptions:(t,n)=>t.concat(n),filterStrict:(t,n)=>t||n})}});function FK(e,t){return e?t?e+" "+t:e:t}function HYe(e,t,n,r,i,a){let s=e.textDirection==Bi.RTL,o=s,l=!1,u="top",d,f,p=t.left-i.left,g=i.right-t.right,O=r.right-r.left,S=r.bottom-r.top;if(o&&p=S||x>t.top?d=n.bottom-t.top:(u="bottom",d=t.bottom-n.top)}let T=(t.bottom-t.top)/a.offsetHeight,w=(t.right-t.left)/a.offsetWidth;return{style:`${u}: ${d/T}px; max-width: ${f/w}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":o?"left":"right")}}function QYe(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let u=0;ul&&s.appendChild(document.createTextNode(o.slice(l,d)));let p=s.appendChild(document.createElement("span"));p.appendChild(document.createTextNode(o.slice(d,f))),p.className="cm-completionMatchedText",l=f}return ln.position-r.position).map(n=>n.render)}function RD(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 WYe{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:a,selected:s}=i.open,o=t.state.facet(Ws);this.optionContent=QYe(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=RD(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let d=l.target,f;d&&d!=this.dom;d=d.parentNode)if(d.nodeName=="LI"&&(f=/-(\d+)$/.exec(d.id))&&+f[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(Ws).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:jw.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=RD(a.length,s,t.state.facet(Ws).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=RD(n.options.length,n.selected,this.view.state.facet(Ws).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,r)}).catch(s=>kl(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:a}=t;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&qYe(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(a=p,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=p}}const d=i.appendChild(document.createElement("li"));d.id=n+"-"+s,d.setAttribute("role","option");let f=this.optionClass(o);f&&(d.className=f);for(let p of this.optionContent){let g=p(o,this.view.state,this.view,l);g&&d.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew WYe(n,e,t)}function qYe(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 BK(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function GYe(e,t){let n=[],r=null,i=u=>{n.push(u);let{section:d}=u.completion;if(d){r||(r=[]);let f=typeof d=="string"?d:d.name;r.some(p=>p.name==f)||r.push(typeof d=="string"?{name:f}:d)}},a=t.facet(Ws);for(let u of e)if(u.hasResult()){let d=u.result.getMatch;if(u.result.filter===!1)for(let f of u.result.options)i(new MK(f,u.source,d?d(f):[],1e9-n.length));else{let f=t.sliceDoc(u.from,u.to),p,g=a.filterStrict?new jYe(f):new zYe(f);for(let O of u.result.options)if(p=g.match(O.label)){let S=O.displayLabel?d?d(O,p.matched):[]:p.matched;i(new MK(O,u.source,S,p.score+(O.boost||0)))}}}if(r){let u=Object.create(null),d=0,f=(p,g)=>{var O,S;return((O=p.rank)!==null&&O!==void 0?O:1e9)-((S=g.rank)!==null&&S!==void 0?S:1e9)||(p.namef.score-d.score||l(d.completion,f.completion))){let d=u.completion;!o||o.label!=d.label||o.detail!=d.detail||o.type!=null&&d.type!=null&&o.type!=d.type||o.apply!=d.apply||o.boost!=d.boost?s.push(u):BK(u.completion)>BK(o)&&(s[s.length-1]=u),o=u.completion}return s}class Oy{constructor(t,n,r,i,a,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new Oy(this.options,UK(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a){let s=GYe(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new Oy(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=n.facet(Ws).selectOnOpen?0:-1;if(i&&i.selected!=o&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:eZe,above:a.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new Oy(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class pC{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new pC(KYe,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(Ws),a=(r.override||n.languageDataAt("autocomplete",Y0(n)).map(UYe)).map(o=>(this.active.find(u=>u.source==o)||new mu(o,this.active.some(u=>u.state!=0)?1:0)).update(t,r));a.length==this.active.length&&a.every((o,l)=>o==this.active[l])&&(a=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||a.some(o=>o.hasResult()&&t.changes.touchesRange(o.from,o.to))||!YYe(a,this.active)?s=Oy.build(a,n,this.id,s,r):s&&s.disabled&&!a.some(o=>o.state==1)&&(s=null),!s&&a.every(o=>o.state!=1)&&a.some(o=>o.hasResult())&&(a=a.map(o=>o.hasResult()?new mu(o.source,0):o));for(let o of t.effects)o.is(Ahe)&&(s=s&&s.setSelected(o.value,this.id));return a==this.active&&s==this.open?this:new pC(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:this.active.length?ZYe:XYe}}function YYe(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const KYe=[];function xhe(e,t){if(e.isUserEvent("input.complete")){let r=e.annotation(FB);if(r&&t.activateOnCompletion(r))return 12}let n=e.isUserEvent("input.type");return n&&t.activateOnTyping?5:n?1:e.isUserEvent("delete.backward")?2:e.selection?8:e.docChanged?16:0}class mu{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=xhe(t,n),i=this;(r&8||r&16&&this.touches(t))&&(i=new mu(i.source,0)),r&4&&i.state==0&&(i=new mu(this.source,1)),i=i.updateFor(t,r);for(let a of t.effects)if(a.is(hC))i=new mu(i.source,1,a.value?Y0(t.state):-1);else if(a.is(jw))i=new mu(i.source,0);else if(a.is(khe))for(let s of a.value)s.source==i.source&&(i=s);return i}updateFor(t,n){return this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new mu(this.source,this.state,t.mapPos(this.explicitPos))}touches(t){return t.changes.touchesRange(Y0(t.state))}}class Vy extends mu{constructor(t,n,r,i,a){super(t,2,n),this.result=r,this.from=i,this.to=a}hasResult(){return!0}updateFor(t,n){var r;if(!(n&3))return this.map(t.changes);let i=this.result;i.map&&!t.changes.empty&&(i=i.map(i,t.changes));let a=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),o=Y0(t.state);if((this.explicitPos<0?o<=a:os||!i||n&2&&Y0(t.startState)==this.from)return new mu(this.source,n&4?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos);return JYe(i.validFor,t.state,a,s)?new Vy(this.source,l,i,a,s):i.update&&(i=i.update(i,a,s,new $B(t.state,o,l>=0)))?new Vy(this.source,l,i,i.from,(r=i.to)!==null&&r!==void 0?r:Y0(t.state)):new mu(this.source,1,l)}map(t){return t.empty?this:(this.result.map?this.result.map(this.result,t):this.result)?new Vy(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1)):new mu(this.source,0)}touches(t){return t.changes.touchesRange(this.from,this.to)}}function JYe(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):The(e,!0).test(i)}const khe=Zn.define({map(e,t){return e.map(n=>n.map(t))}}),Ahe=Zn.define(),Tl=As.define({create(){return pC.start()},update(e,t){return e.update(t)},provide:e=>[SB.from(e,t=>t.tooltip),Jt.contentAttributes.from(e,t=>t.attrs)]});function BB(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(Tl).active.find(i=>i.source==t.source);return r instanceof Vy?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},BYe(e.state,n,r.from,r.to)),{annotations:FB.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const eZe=VYe(Tl,BB);function ZA(e,t="option"){return n=>{let r=n.state.field(Tl,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return o<0?o=t=="page"?0:s-1:o>=s&&(o=t=="page"?s-1:0),n.dispatch({effects:Ahe.of(o)}),!0}}const tZe=e=>{let t=e.state.field(Tl,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(Tl,!1)?(e.dispatch({effects:hC.of(!0)}),!0):!1,rZe=e=>{let t=e.state.field(Tl,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:jw.of(null)}),!0)};class iZe{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const aZe=50,sZe=1e3,oZe=da.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(Tl).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(Tl),n=e.state.facet(Ws);if(!e.selectionSet&&!e.docChanged&&e.startState.field(Tl)==t)return;let r=e.transactions.some(a=>{let s=xhe(a,n);return s&8||(a.selection||a.docChanged)&&!(s&3)});for(let a=0;aaZe&&Date.now()-s.time>sZe){for(let o of s.context.abortListeners)try{o()}catch(l){kl(this.view.state,l)}s.context.abortListeners=null,this.running.splice(a--,1)}else s.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(a=>a.effects.some(s=>s.is(hC)))&&(this.pendingStart=!0);let i=this.pendingStart?50:n.activateOnTypingDelay;if(this.debounceUpdate=t.active.some(a=>a.state==1&&!this.running.some(s=>s.active.source==a.source))?setTimeout(()=>this.startUpdate(),i):-1,this.composing!=0)for(let a of e.transactions)a.isUserEvent("input.type")?this.composing=2:this.composing==2&&a.selection&&(this.composing=3)}startUpdate(){this.debounceUpdate=-1,this.pendingStart=!1;let{state:e}=this.view,t=e.field(Tl);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=Y0(t),r=new $B(t,n,e.explicitPos==n,this.view),i=new iZe(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:jw.of(null)}),kl(this.view.state,a)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Ws).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Ws);for(let r=0;rs.source==i.active.source);if(a&&a.state==1)if(i.done==null){let s=new mu(i.active.source,0);for(let o of i.updates)s=s.update(o,n);s.state!=1&&t.push(s)}else this.startQuery(a)}t.length&&this.view.dispatch({effects:khe.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(Tl,!1);if(t&&t.tooltip&&this.view.state.facet(Ws).closeOnBlur){let n=t.open&&afe(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:jw.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:hC.of(!1)}),20),this.composing=0}}}),lZe=typeof navigator=="object"&&/Win/.test(navigator.platform),uZe=wp.highest(Jt.domEventHandlers({keydown(e,t){let n=t.state.field(Tl,!1);if(!n||!n.open||n.open.disabled||n.open.selected<0||e.key.length>1||e.ctrlKey&&!(lZe&&e.altKey)||e.metaKey)return!1;let r=n.open.options[n.open.selected],i=n.active.find(s=>s.source==r.source),a=r.completion.commitCharacters||i.result.commitCharacters;return a&&a.indexOf(e.key)>-1&&BB(t,r),!1}})),_he=Jt.baseTheme({".cm-tooltip.cm-tooltip-autocomplete":{"& > ul":{fontFamily:"monospace",whiteSpace:"nowrap",overflow:"hidden auto",maxWidth_fallback:"700px",maxWidth:"min(700px, 95vw)",minWidth:"250px",maxHeight:"10em",height:"100%",listStyle:"none",margin:0,padding:0,"& > li, & > completion-section":{padding:"1px 3px",lineHeight:1.2},"& > li":{overflowX:"hidden",textOverflow:"ellipsis",cursor:"pointer"},"& > completion-section":{display:"list-item",borderBottom:"1px solid silver",paddingLeft:"0.5em",opacity:.7}}},"&light .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#17c",color:"white"},"&light .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#777"},"&dark .cm-tooltip-autocomplete ul li[aria-selected]":{background:"#347",color:"white"},"&dark .cm-tooltip-autocomplete-disabled ul li[aria-selected]":{background:"#444"},".cm-completionListIncompleteTop:before, .cm-completionListIncompleteBottom:after":{content:'"···"',opacity:.5,display:"block",textAlign:"center"},".cm-tooltip.cm-completionInfo":{position:"absolute",padding:"3px 9px",width:"max-content",maxWidth:"400px",boxSizing:"border-box",whiteSpace:"pre-line"},".cm-completionInfo.cm-completionInfo-left":{right:"100%"},".cm-completionInfo.cm-completionInfo-right":{left:"100%"},".cm-completionInfo.cm-completionInfo-left-narrow":{right:"30px"},".cm-completionInfo.cm-completionInfo-right-narrow":{left:"30px"},"&light .cm-snippetField":{backgroundColor:"#00000022"},"&dark .cm-snippetField":{backgroundColor:"#ffffff22"},".cm-snippetFieldPosition":{verticalAlign:"text-top",width:0,height:"1.15em",display:"inline-block",margin:"0 -0.7px -.7em",borderLeft:"1.4px dotted #888"},".cm-completionMatchedText":{textDecoration:"underline"},".cm-completionDetail":{marginLeft:"0.5em",fontStyle:"italic"},".cm-completionIcon":{fontSize:"90%",width:".8em",display:"inline-block",textAlign:"center",paddingRight:".6em",opacity:"0.6",boxSizing:"content-box"},".cm-completionIcon-function, .cm-completionIcon-method":{"&:after":{content:"'ƒ'"}},".cm-completionIcon-class":{"&:after":{content:"'○'"}},".cm-completionIcon-interface":{"&:after":{content:"'◌'"}},".cm-completionIcon-variable":{"&:after":{content:"'𝑥'"}},".cm-completionIcon-constant":{"&:after":{content:"'𝐶'"}},".cm-completionIcon-type":{"&:after":{content:"'𝑡'"}},".cm-completionIcon-enum":{"&:after":{content:"'∪'"}},".cm-completionIcon-property":{"&:after":{content:"'□'"}},".cm-completionIcon-keyword":{"&:after":{content:"'🔑︎'"}},".cm-completionIcon-namespace":{"&:after":{content:"'▢'"}},".cm-completionIcon-text":{"&:after":{content:"'abc'",fontSize:"50%",verticalAlign:"middle"}}});class cZe{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class UB{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Qs.TrackDel),r=t.mapPos(this.to,1,Qs.TrackDel);return n==null||r==null?null:new UB(this.field,n,r)}}class zB{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],a=t.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let u=s,d=/^\t*/.exec(l)[0].length;for(let f=0;fnew UB(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:o}}static parse(t){let n=[],r=[],i=[],a;for(let s of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|((?:\\[{}]|[^}])*))\}/.exec(s);){let o=a[1]?+a[1]:null,l=a[2]||a[3]||"",u=-1,d=l.replace(/\\[{}]/g,f=>f[1]);for(let f=0;f=u&&p.field++}i.push(new cZe(u,r.length,a.index,a.index+d.length)),s=s.slice(0,a.index)+l+s.slice(a.index+a[0].length)}s=s.replace(/\\([{}])/g,(o,l,u)=>{for(let d of i)d.line==r.length&&d.from>u&&(d.from--,d.to--);return l}),r.push(s)}return new zB(r,i)}}let dZe=bn.widget({widget:new class extends Md{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),fZe=bn.mark({class:"cm-snippetField"});class TO{constructor(t,n){this.ranges=t,this.active=n,this.deco=bn.set(t.map(r=>(r.from==r.to?dZe:fZe).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 TO(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 tx=Zn.define({map(e,t){return e&&e.map(t)}}),hZe=Zn.define(),Hw=As.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(tx))return n.value;if(n.is(hZe)&&e)return new TO(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=>Jt.decorations.from(e,t=>t?t.deco:bn.none)});function jB(e,t){return dt.create(e.filter(n=>n.field==t).map(n=>dt.range(n.from,n.to)))}function pZe(e){let t=zB.parse(e);return(n,r,i,a)=>{let{text:s,ranges:o}=t.instantiate(n.state,i),l={changes:{from:i,to:a,insert:yr.of(s)},scrollIntoView:!0,annotations:r?[FB.of(r),os.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=jB(o,0)),o.some(u=>u.field>0)){let u=new TO(o,0),d=l.effects=[tx.of(u)];n.state.field(Hw,!1)===void 0&&d.push(Zn.appendConfig.of([Hw,vZe,OZe,_he]))}n.dispatch(n.state.update(l))}}function Che(e){return({state:t,dispatch:n})=>{let r=t.field(Hw,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:jB(r.ranges,i),effects:tx.of(a?null:new TO(r.ranges,i)),scrollIntoView:!0})),!0}}const mZe=({state:e,dispatch:t})=>e.field(Hw,!1)?(t(e.update({effects:tx.of(null)})),!0):!1,gZe=Che(1),bZe=Che(-1),yZe=[{key:"Tab",run:gZe,shift:bZe},{key:"Escape",run:mZe}],zK=sn.define({combine(e){return e.length?e[0]:yZe}}),vZe=wp.highest(vO.compute([zK],e=>e.facet(zK)));function gl(e,t){return Object.assign(Object.assign({},t),{apply:pZe(e)})}const OZe=Jt.domEventHandlers({mousedown(e,t){let n=t.state.field(Hw,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:jB(n.ranges,i.field),effects:tx.of(n.ranges.some(a=>a.field>i.field)?new TO(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),Qw={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},Qg=Zn.define({map(e,t){let n=t.mapPos(e,-1,Qs.TrackAfter);return n??void 0}}),HB=new class extends E1{};HB.startSide=1;HB.endSide=-1;const Rhe=As.define({create(){return _r.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(Qg)&&(e=e.update({add:[HB.range(n.value,n.value+1)]}));return e}});function SZe(){return[wZe,Rhe]}const ID="()[]{}<>";function Ihe(e){for(let t=0;t{if((EZe?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&uc(js(r,0))==1||t!=i.from||n!=i.to)return!1;let a=kZe(e.state,r);return a?(e.dispatch(a),!0):!1}),TZe=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=Nhe(e,e.selection.main.head).brackets||Qw.brackets,i=null,a=e.changeByRange(s=>{if(s.empty){let o=AZe(e.doc,s.head);for(let l of r)if(l==o&&WR(e.doc,s.head)==Ihe(js(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:dt.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},xZe=[{key:"Backspace",run:TZe}];function kZe(e,t){let n=Nhe(e,e.selection.main.head),r=n.brackets||Qw.brackets;for(let i of r){let a=Ihe(js(i,0));if(t==i)return a==i?RZe(e,i,r.indexOf(i+i+i)>-1,n):_Ze(e,i,a,n.before||Qw.before);if(t==a&&Dhe(e,e.selection.main.from))return CZe(e,i,a)}return null}function Dhe(e,t){let n=!1;return e.field(Rhe).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function WR(e,t){let n=e.sliceString(t,t+2);return n.slice(0,uc(js(n,0)))}function AZe(e,t){let n=e.sliceString(t-2,t);return uc(js(n,0))==n.length?n:n.slice(1)}function _Ze(e,t,n,r){let i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:Qg.of(s.to+t.length),range:dt.range(s.anchor+t.length,s.head+t.length)};let o=WR(e.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:s.head},effects:Qg.of(s.head+t.length),range:dt.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function CZe(e,t,n){let r=null,i=e.changeByRange(a=>a.empty&&WR(e.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:dt.cursor(a.head+n.length)}:r={range:a});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function RZe(e,t,n,r){let i=r.stringPrefixes||Qw.stringPrefixes,a=null,s=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:Qg.of(o.to+t.length),range:dt.range(o.anchor+t.length,o.head+t.length)};let l=o.head,u=WR(e.doc,l),d;if(u==t){if(jK(e,l))return{changes:{insert:t+t,from:l},effects:Qg.of(l+t.length),range:dt.cursor(l+t.length)};if(Dhe(e,l)){let p=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+p.length,insert:p},range:dt.cursor(l+p.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(d=HK(e,l-2*t.length,i))>-1&&jK(e,d))return{changes:{insert:t+t+t+t,from:l},effects:Qg.of(l+t.length),range:dt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Ji.Word&&HK(e,l,i)>-1&&!IZe(e,l,t,i))return{changes:{insert:t+t,from:l},effects:Qg.of(l+t.length),range:dt.cursor(l+t.length)}}return{range:a=o}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function jK(e,t){let n=Ii(e).resolveInner(t+1);return n.parent&&n.from==t}function IZe(e,t,n,r){let i=Ii(e).resolveInner(t,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),l=o.indexOf(n);if(!l||l>-1&&r.indexOf(o.slice(0,l))>-1){let d=i.firstChild;for(;d&&d.from==i.from&&d.to-d.from>n.length+l;){if(e.sliceDoc(d.to-n.length,d.to)==n)return!1;d=d.firstChild}return!0}let u=i.to==t&&i.parent;if(!u)break;i=u}return!1}function HK(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Ji.Word)return t;for(let i of n){let a=t-i.length;if(e.sliceDoc(a,t)==i&&r(e.sliceDoc(a-1,a))!=Ji.Word)return a}return-1}function NZe(e={}){return[uZe,Tl,Ws.of(e),oZe,DZe,_he]}const Phe=[{key:"Ctrl-Space",run:nZe},{key:"Escape",run:rZe},{key:"ArrowDown",run:ZA(!0)},{key:"ArrowUp",run:ZA(!1)},{key:"PageDown",run:ZA(!0,"page")},{key:"PageUp",run:ZA(!1,"page")},{key:"Enter",run:tZe}],DZe=wp.highest(vO.computeN([Ws],e=>e.facet(Ws).defaultKeymap?[Phe]:[]));class PZe{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class _g{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,a=r.facet(Ww).markerFilter;a&&(i=a(i,r));let s=bn.set(i.map(o=>o.from==o.to||o.from==o.to-1&&r.doc.lineAt(o.from).to==o.from?bn.widget({widget:new HZe(o),diagnostic:o}).range(o.from):bn.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o}).range(o.from,o.to)),!0);return new _g(s,n,$v(s))}}function $v(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,a,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new PZe(i,a,s.diagnostic),!1}),r}function LZe(e,t){let n=t.pos,r=t.end||n,i=e.state.facet(Ww).hideOn(e,n,r);if(i!=null)return i;let a=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(s=>s.is(Lhe))||e.changes.touchesRange(a.from,Math.max(a.to,r)))}function MZe(e,t){return e.field(vu,!1)?t:t.concat(Zn.appendConfig.of(VZe))}const Lhe=Zn.define(),QB=Zn.define(),Mhe=Zn.define(),vu=As.define({create(){return new _g(bn.none,null,null)},update(e,t){if(t.docChanged&&e.diagnostics.size){let n=e.diagnostics.map(t.changes),r=null,i=e.panel;if(e.selected){let a=t.changes.mapPos(e.selected.from,1);r=$v(n,e.selected.diagnostic,a)||$v(n,null,a)}!n.size&&i&&t.state.facet(Ww).autoPanel&&(i=null),e=new _g(n,i,r)}for(let n of t.effects)if(n.is(Lhe)){let r=t.state.facet(Ww).autoPanel?n.value.length?Vw.open:null:e.panel;e=_g.init(n.value,r,t.state)}else n.is(QB)?e=new _g(e.diagnostics,n.value?Vw.open:null,e.selected):n.is(Mhe)&&(e=new _g(e.diagnostics,e.panel,n.value));return e},provide:e=>[Lw.from(e,t=>t.panel),Jt.decorations.from(e,t=>t.diagnostics)]}),$Ze=bn.mark({class:"cm-lintRange cm-lintRange-active"});function FZe(e,t,n){let{diagnostics:r}=e.state.field(vu),i=[],a=2e8,s=0;r.between(t-(n<0?1:0),t+(n>0?1:0),(l,u,{spec:d})=>{t>=l&&t<=u&&(l==u||(t>l||n>0)&&(tFhe(e,n,!1)))}const UZe=e=>{let t=e.state.field(vu,!1);(!t||!t.panel)&&e.dispatch({effects:MZe(e.state,[QB.of(!0)])});let n=Pw(e,Vw.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},QK=e=>{let t=e.state.field(vu,!1);return!t||!t.panel?!1:(e.dispatch({effects:QB.of(!1)}),!0)},zZe=e=>{let t=e.state.field(vu,!1);if(!t)return!1;let n=e.state.selection.main,r=t.diagnostics.iter(n.to+1);return!r.value&&(r=t.diagnostics.iter(0),!r.value||r.from==n.from&&r.to==n.to)?!1:(e.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0}),!0)},jZe=[{key:"Mod-Shift-m",run:UZe,preventDefault:!0},{key:"F8",run:zZe}],Ww=sn.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},Gf(e.map(t=>t.config),{delay:750,markerFilter:null,tooltipFilter:null,needsRefresh:null,hideOn:()=>null},{needsRefresh:(t,n)=>t?n?r=>t(r)||n(r):t:n}))}});function $he(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ra.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function Fhe(e,t,n){var r;let i=n?$he(t.actions):[];return ki("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},ki("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage(e):t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,l=p=>{if(p.preventDefault(),o)return;o=!0;let g=$v(e.state.field(vu).diagnostics,t);g&&a.apply(e,g.from,g.to)},{name:u}=a,d=i[s]?u.indexOf(i[s]):-1,f=d<0?u:[u.slice(0,d),ki("u",u.slice(d,d+1)),u.slice(d+1)];return ki("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${d<0?"":` (access key "${i[s]})"`}.`},f)}),t.source&&ki("div",{class:"cm-diagnosticSource"},t.source))}class HZe extends Md{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return ki("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class WK{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Fhe(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class Vw{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)QK(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=$he(a.actions);for(let o=0;o{for(let a=0;aQK(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(vu).selected;if(!t)return-1;for(let n=0;n{let u=-1,d;for(let f=r;fr&&(this.items.splice(r,u-r),i=!0)),n&&d.diagnostic==n.diagnostic?d.dom.hasAttribute("aria-selected")||(d.dom.setAttribute("aria-selected","true"),a=d):d.dom.hasAttribute("aria-selected")&&d.dom.removeAttribute("aria-selected"),r++});r({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:o})=>{let l=o.height/this.list.offsetHeight;s.topo.bottom&&(this.list.scrollTop+=(s.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(vu),r=$v(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Mhe.of(r)})}static open(t){return new Vw(t)}}function QZe(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function XA(e){return QZe(``,'width="6" height="3"')}const WZe=Jt.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:XA("#d11")},".cm-lintRange-warning":{backgroundImage:XA("orange")},".cm-lintRange-info":{backgroundImage:XA("#999")},".cm-lintRange-hint":{backgroundImage:XA("#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}}}),VZe=[vu,Jt.decorations.compute([vu],e=>{let{selected:t,panel:n}=e.field(vu);return!t||!n||t.from==t.to?bn.none:bn.set([$Ze.range(t.from,t.to)])}),_Ve(FZe,{hideOn:LZe}),WZe],qZe=[BVe(),jVe(),aVe(),sGe(),Pqe(),GWe(),JWe(),Dr.allowMultipleSelections.of(!0),Eqe(),Rfe(Fqe,{fallback:!0}),Wqe(),SZe(),NZe(),bVe(),OVe(),dVe(),pYe(),vO.of([...xZe,...oYe,...DYe,...mGe,...Rqe,...Phe,...jZe])];class mC{static create(t,n,r,i,a){let s=i+(i<<8)+t+(n<<4)|0;return new mC(t,n,r,s,a,[],[])}constructor(t,n,r,i,a,s,o){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=a,this.children=s,this.positions=o,this.hashProp=[[Wn.contextHash,i]]}addChild(t,n){t.prop(Wn.contextHash)!=this.hash&&(t=new Jr(t.type,t.children,t.positions,t.length,this.hashProp)),this.children.push(t),this.positions.push(n)}toTree(t,n=this.end){let r=this.children.length-1;return r>=0&&(n=Math.max(n,this.positions[r]+this.children[r].length+this.from)),new Jr(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,a,s)=>new Jr(us.none,i,a,s,this.hashProp)})}}var Bt;(function(e){e[e.Document=1]="Document",e[e.CodeBlock=2]="CodeBlock",e[e.FencedCode=3]="FencedCode",e[e.Blockquote=4]="Blockquote",e[e.HorizontalRule=5]="HorizontalRule",e[e.BulletList=6]="BulletList",e[e.OrderedList=7]="OrderedList",e[e.ListItem=8]="ListItem",e[e.ATXHeading1=9]="ATXHeading1",e[e.ATXHeading2=10]="ATXHeading2",e[e.ATXHeading3=11]="ATXHeading3",e[e.ATXHeading4=12]="ATXHeading4",e[e.ATXHeading5=13]="ATXHeading5",e[e.ATXHeading6=14]="ATXHeading6",e[e.SetextHeading1=15]="SetextHeading1",e[e.SetextHeading2=16]="SetextHeading2",e[e.HTMLBlock=17]="HTMLBlock",e[e.LinkReference=18]="LinkReference",e[e.Paragraph=19]="Paragraph",e[e.CommentBlock=20]="CommentBlock",e[e.ProcessingInstructionBlock=21]="ProcessingInstructionBlock",e[e.Escape=22]="Escape",e[e.Entity=23]="Entity",e[e.HardBreak=24]="HardBreak",e[e.Emphasis=25]="Emphasis",e[e.StrongEmphasis=26]="StrongEmphasis",e[e.Link=27]="Link",e[e.Image=28]="Image",e[e.InlineCode=29]="InlineCode",e[e.HTMLTag=30]="HTMLTag",e[e.Comment=31]="Comment",e[e.ProcessingInstruction=32]="ProcessingInstruction",e[e.Autolink=33]="Autolink",e[e.HeaderMark=34]="HeaderMark",e[e.QuoteMark=35]="QuoteMark",e[e.ListMark=36]="ListMark",e[e.LinkMark=37]="LinkMark",e[e.EmphasisMark=38]="EmphasisMark",e[e.CodeMark=39]="CodeMark",e[e.CodeText=40]="CodeText",e[e.CodeInfo=41]="CodeInfo",e[e.LinkTitle=42]="LinkTitle",e[e.LinkLabel=43]="LinkLabel",e[e.URL=44]="URL"})(Bt||(Bt={}));class GZe{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class YZe{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 x2(this.text,t)}reset(t){for(this.text=t,this.baseIndent=this.basePos=this.pos=this.indent=0,this.forwardInner(),this.depth=1;this.markers.length;)this.markers.pop()}moveBase(t){this.basePos=t,this.baseIndent=this.countIndent(t,this.pos,this.indent)}moveBaseColumn(t){this.baseIndent=t,this.basePos=this.findColumn(t)}addMarker(t){this.markers.push(t)}countIndent(t,n=0,r=0){for(let i=n;i=t.stack[n.depth+1].value+n.baseIndent)return!0;if(n.indent>=n.baseIndent+4)return!1;let r=(e.type==Bt.OrderedList?qB:VB)(n,t,!1);return r>0&&(e.type!=Bt.BulletList||WB(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Bhe={[Bt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(Nr(Bt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Uc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Bt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Bt.OrderedList]:VK,[Bt.BulletList]:VK,[Bt.Document](){return!0}};function Uc(e){return e==32||e==9||e==10||e==13}function x2(e,t=0){for(;tn&&Uc(e.charCodeAt(t-1));)t--;return t}function Uhe(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 jhe(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function VB(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Uc(e.text.charCodeAt(e.pos+1)))&&(!n||jhe(t,Bt.BulletList)||e.skipSpace(e.pos+2)=48&&i<=57;){r++;if(r==e.text.length)return-1;i=e.text.charCodeAt(r)}return r==e.pos||r>e.pos+9||i!=46&&i!=41||re.pos+1||e.next!=49)?-1:r+1-e.pos}function Hhe(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function Qhe(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Vhe=/\?>/,PL=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(Nr(Bt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(Nr(Bt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(Nr(Bt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=Gw.test(i),o=Gw.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),d=!u&&(!o||l||s),f=!l&&(!s||u||o),p=d&&(t==42||!f||s),g=f&&(t==42||!d||o);return e.append(new rc(t==95?Khe:Jhe,n,r,(p?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Nr(Bt.HardBreak,n,n+2));if(t==32){let r=n+1;for(;e.char(r)==32;)r++;if(e.char(r)==10&&r>=n+2)return e.append(Nr(Bt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new rc(Yb,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new rc(ML,n,n+2,1)):-1},LinkEnd(e,t,n){if(t!=93)return-1;for(let r=e.parts.length-1;r>=0;r--){let i=e.parts[r];if(i instanceof rc&&(i.type==Yb||i.type==ML)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=nXe(e,a,i.type==Yb?Bt.Link:Bt.Image,i.from,n+1);if(i.type==Yb)for(let o=0;ot?Nr(Bt.URL,t+n,a+n):a==e.length?null:!1}}function tpe(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new rc(t,n,r,(i?1:0)|(a?2:0)))}get hasOpenLink(){for(let t=this.parts.length-1;t>=0;t--){let n=this.parts[t];if(n instanceof rc&&(n.type==Yb||n.type==ML))return!0}return!1}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof rc&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,d=[],f=o.from,p=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,p=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&d.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof rc&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return x2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Nr(this.parser.getNodeType(t),n,r,i):new Xhe(t,n)}}function $L(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` +`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(Wn.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let d=rpe(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,d);else{let f=new Jr(t.parser.nodeSet.types[Bt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,d)}if(n.type.is("Block")&&(iXe.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function rpe(e,t){let n=e;for(let r=1;rKA[e]),Object.keys(KA).map(e=>KZe[e]),Object.keys(KA),JZe,Bhe,Object.keys(DD).map(e=>DD[e]),Object.keys(DD),[]);function lXe(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function uXe(e){let{codeParser:t,htmlParser:n}=e;return{wrap:pfe((i,a)=>{let s=i.type.id;if(t&&(s==Bt.CodeBlock||s==Bt.FencedCode)){let o="";if(s==Bt.FencedCode){let u=i.node.getChild(Bt.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Bt.CodeText}}else if(n&&(s==Bt.HTMLBlock||s==Bt.HTMLTag))return{parser:n,overlay:lXe(i.node,i.from,i.to)};return null})}}const cXe={resolve:"Strikethrough",mark:"StrikethroughMark"},dXe={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":ge.strikethrough}},{name:"StrikethroughMark",style:ge.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=Gw.test(r),l=Gw.test(i);return e.addDelimiter(cXe,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function k2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,d=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&d(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||p!=32&&p!=9)&&(o<0&&(o=f),l=f+1),u=!u&&p==92}return o>-1&&(a++,r&&d()),a}function ZK(e,t){for(let n=t;ni instanceof XK)||!ZK(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return ipe.test(r)&&k2(e,t.text,t.basePos)==k2(e,r,t.basePos)},before:"SetextHeading"}]};class hXe{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 pXe={defineNodes:[{name:"Task",block:!0,style:ge.list},{name:"TaskMarker",style:ge.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new hXe:null},after:"SetextHeading"}]},KK=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,JK=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,mXe=/[\w-]+\.[\w-]+($|\/)/,eJ=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,tJ=/\/[a-zA-Z\d@.]+/gy;function nJ(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&nJ(e,t,r,")")>nJ(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function rJ(e,t){eJ.lastIndex=t;let n=eJ.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 bXe={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;KK.lastIndex=r;let i=KK.exec(e.text),a=-1;if(!i)return-1;if(i[1]||i[2]){if(a=gXe(e.text,r+i[0].length),a>-1&&e.hasOpenLink){let s=/([^\[\]]|\[[^\]]*\])*/.exec(e.text.slice(r,a));a=r+s[0].length}}else i[3]?a=rJ(e.text,r):(a=rJ(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(tJ.lastIndex=a,i=tJ.exec(e.text),i&&(a=i.index+i[0].length)));return a<0?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},yXe=[fXe,pXe,dXe,bXe];function ape(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new gC(t,[],n,r,r,0,[],0,i?new aJ(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=this.reducePos=2e3&&!(!((n=this.p.parser.nodeSet.types[i])===null||n===void 0)&&n.isAnonymous)&&(u==this.p.lastBigReductionStart?(this.p.bigReductionCount++,this.p.lastBigReductionSize=d):this.p.lastBigReductionSizel;)this.stack.pop();this.reduceContext(i,u)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0){let o=!1;for(let l=s;l>0&&this.buffer[l-2]>r;l-=4)if(this.buffer[l-1]>=0){o=!0;break}if(o)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4)}this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new gC(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 EXe(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class aJ{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class EXe{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 bC{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 bC(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 bC(this.stack,this.pos,this.index)}}function qE(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class g_{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const sJ=new g_;class wXe{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=sJ,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=sJ,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 qy{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;spe(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}qy.prototype.contextual=qy.prototype.fallback=qy.prototype.extend=!1;class yC{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?qE(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(spe(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}yC.prototype.contextual=qy.prototype.fallback=qy.prototype.extend=!1;class Fd{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function spe(e,t,n,r,i,a){let s=0,o=1<0){let O=e[g];if(l.allows(O)&&(t.token.value==-1||t.token.value==O||TXe(O,t.token.value,i,a))){t.acceptToken(O);break}}let d=t.next,f=0,p=e[s+2];if(t.next<0&&p>f&&e[u+p*3-3]==65535){s=e[u+p*3-1];continue e}for(;f>1,O=u+g+(g<<1),S=e[O],T=e[O+1]||65536;if(d=T)f=g+1;else{s=e[O+2],t.advance();continue e}}break}}function oJ(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function TXe(e,t,n,r){let i=oJ(n,r,t);return i<0||oJ(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 xXe{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?lJ(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?lJ(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof Jr){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class kXe{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new g_)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let p=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!d.extend&&(r=f,n>p))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new g_,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 g_,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new xXe(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&CXe(i);if(s)return eu&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw eu&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return eu&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,d=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let p=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(p>-1&&f.length&&(!u||(f.prop(Wn.contextHash)||0)==d))return t.useNode(f,p),eu&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof Jr)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof Jr&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),eu&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(O):r.push(O)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return uJ(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),eu&&console.log(d+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),p=d;for(let g=0;f.forceReduce()&&g<10&&(eu&&console.log(p+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)eu&&(p=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))eu&&console.log(d+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),eu&&console.log(d+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),uJ(o,r)):(!i||i.scoree;class ope{constructor(t){this.start=t.start,this.shift=t.shift||LD,this.reduce=t.reduce||LD,this.reuse=t.reuse||LD,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class Bv extends xB{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(d,l,o[u++]);else{let f=o[u+-d];for(let p=-d;p>0;p--)a(o[u++],l,f);u++}}}this.nodeSet=new GT(n.map((o,l)=>us.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=ufe;let s=qE(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new qy(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new AXe(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=Lh(this.data,a+2);else break;i=n(Lh(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=Lh(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(Bv.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=cJ(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const RXe=54,IXe=1,NXe=55,DXe=2,PXe=56,LXe=3,dJ=4,MXe=5,vC=6,lpe=7,upe=8,cpe=9,dpe=10,$Xe=11,FXe=12,BXe=13,MD=57,UXe=14,fJ=58,fpe=20,zXe=22,hpe=23,jXe=24,FL=26,ppe=27,HXe=28,QXe=31,WXe=34,VXe=36,qXe=37,GXe=0,YXe=1,ZXe={area:!0,base:!0,br:!0,col:!0,command:!0,embed:!0,frame:!0,hr:!0,img:!0,input:!0,keygen:!0,link:!0,meta:!0,param:!0,source:!0,track:!0,wbr:!0,menuitem:!0},XXe={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},hJ={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 KXe(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function mpe(e){return e==9||e==10||e==13||e==32}let pJ=null,mJ=null,gJ=0;function BL(e,t){let n=e.pos+t;if(gJ==n&&mJ==e)return pJ;let r=e.peek(t);for(;mpe(r);)r=e.peek(++t);let i="";for(;KXe(r);)i+=String.fromCharCode(r),r=e.peek(++t);return mJ=e,gJ=n,pJ=i?i.toLowerCase():r==JXe||r==eKe?void 0:null}const gpe=60,OC=62,GB=47,JXe=63,eKe=33,tKe=45;function bJ(e,t){this.name=e,this.parent=t}const nKe=[vC,dpe,lpe,upe,cpe],rKe=new ope({start:null,shift(e,t,n,r){return nKe.indexOf(t)>-1?new bJ(BL(r,1)||"",e):e},reduce(e,t){return t==fpe&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==vC||i==VXe?new bJ(BL(r,1)||"",e):e},strict:!1}),iKe=new Fd((e,t)=>{if(e.next!=gpe){e.next<0&&t.context&&e.acceptToken(MD);return}e.advance();let n=e.next==GB;n&&e.advance();let r=BL(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?UXe:vC);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken($Xe);if(i&&XXe[i])return e.acceptToken(MD,-2);if(t.dialectEnabled(GXe))return e.acceptToken(FXe);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(BXe)}else{if(r=="script")return e.acceptToken(lpe);if(r=="style")return e.acceptToken(upe);if(r=="textarea")return e.acceptToken(cpe);if(ZXe.hasOwnProperty(r))return e.acceptToken(dpe);i&&hJ[i]&&hJ[i][r]?e.acceptToken(MD,-1):e.acceptToken(vC)}},{contextual:!0}),aKe=new Fd(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(fJ);break}if(e.next==tKe)t++;else if(e.next==OC&&t>=2){n>=3&&e.acceptToken(fJ,-2);break}else t=0;e.advance()}});function sKe(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const oKe=new Fd((e,t)=>{if(e.next==GB&&e.peek(1)==OC){let n=t.dialectEnabled(YXe)||sKe(t.context);e.acceptToken(n?MXe:dJ,2)}else e.next==OC&&e.acceptToken(dJ,1)});function YB(e,t,n){let r=2+e.length;return new Fd(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==gpe||a==1&&i.next==GB||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const lKe=YB("script",RXe,IXe),uKe=YB("style",NXe,DXe),cKe=YB("textarea",PXe,LXe),dKe=OO({"Text RawText":ge.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":ge.angleBracket,TagName:ge.tagName,"MismatchedCloseTag/TagName":[ge.tagName,ge.invalid],AttributeName:ge.attributeName,"AttributeValue UnquotedAttributeValue":ge.attributeValue,Is:ge.definitionOperator,"EntityReference CharacterReference":ge.character,Comment:ge.blockComment,ProcessingInst:ge.processingInstruction,DoctypeDecl:ge.documentMeta}),fKe=Bv.deserialize({version:14,states:",xOVO!rOOO!WQ#tO'#CqO!]Q#tO'#CzO!bQ#tO'#C}O!gQ#tO'#DQO!lQ#tO'#DSO!qOaO'#CpO!|ObO'#CpO#XOdO'#CpO$eO!rO'#CpOOO`'#Cp'#CpO$lO$fO'#DTO$tQ#tO'#DVO$yQ#tO'#DWOOO`'#Dk'#DkOOO`'#DY'#DYQVO!rOOO%OQ&rO,59]O%ZQ&rO,59fO%fQ&rO,59iO%qQ&rO,59lO%|Q&rO,59nOOOa'#D^'#D^O&XOaO'#CxO&dOaO,59[OOOb'#D_'#D_O&lObO'#C{O&wObO,59[OOOd'#D`'#D`O'POdO'#DOO'[OdO,59[OOO`'#Da'#DaO'dO!rO,59[O'kQ#tO'#DROOO`,59[,59[OOOp'#Db'#DbO'pO$fO,59oOOO`,59o,59oO'xQ#|O,59qO'}Q#|O,59rOOO`-E7W-E7WO(SQ&rO'#CsOOQW'#DZ'#DZO(bQ&rO1G.wOOOa1G.w1G.wOOO`1G/Y1G/YO(mQ&rO1G/QOOOb1G/Q1G/QO(xQ&rO1G/TOOOd1G/T1G/TO)TQ&rO1G/WOOO`1G/W1G/WO)`Q&rO1G/YOOOa-E7[-E7[O)kQ#tO'#CyOOO`1G.v1G.vOOOb-E7]-E7]O)pQ#tO'#C|OOOd-E7^-E7^O)uQ#tO'#DPOOO`-E7_-E7_O)zQ#|O,59mOOOp-E7`-E7`OOO`1G/Z1G/ZOOO`1G/]1G/]OOO`1G/^1G/^O*PQ,UO,59_OOQW-E7X-E7XOOOa7+$c7+$cOOO`7+$t7+$tOOOb7+$l7+$lOOOd7+$o7+$oOOO`7+$r7+$rO*[Q#|O,59eO*aQ#|O,59hO*fQ#|O,59kOOO`1G/X1G/XO*kO7[O'#CvO*|OMhO'#CvOOQW1G.y1G.yOOO`1G/P1G/POOO`1G/S1G/SOOO`1G/V1G/VOOOO'#D['#D[O+_O7[O,59bOOQW,59b,59bOOOO'#D]'#D]O+pOMhO,59bOOOO-E7Y-E7YOOQW1G.|1G.|OOOO-E7Z-E7Z",stateData:",]~O!^OS~OUSOVPOWQOXROYTO[]O][O^^O`^Oa^Ob^Oc^Ox^O{_O!dZO~OfaO~OfbO~OfcO~OfdO~OfeO~O!WfOPlP!ZlP~O!XiOQoP!ZoP~O!YlORrP!ZrP~OUSOVPOWQOXROYTOZqO[]O][O^^O`^Oa^Ob^Oc^Ox^O!dZO~O!ZrO~P#dO![sO!euO~OfvO~OfwO~OS|OT}OhyO~OS!POT}OhyO~OS!ROT}OhyO~OS!TOT}OhyO~OS}OT}OhyO~O!WfOPlX!ZlX~OP!WO!Z!XO~O!XiOQoX!ZoX~OQ!ZO!Z!XO~O!YlORrX!ZrX~OR!]O!Z!XO~O!Z!XO~P#dOf!_O~O![sO!e!aO~OS!bO~OS!cO~Oi!dOSgXTgXhgX~OS!fOT!gOhyO~OS!hOT!gOhyO~OS!iOT!gOhyO~OS!jOT!gOhyO~OS!gOT!gOhyO~Of!kO~Of!lO~Of!mO~OS!nO~Ok!qO!`!oO!b!pO~OS!rO~OS!sO~OS!tO~Oa!uOb!uOc!uO!`!wO!a!uO~Oa!xOb!xOc!xO!b!wO!c!xO~Oa!uOb!uOc!uO!`!{O!a!uO~Oa!xOb!xOc!xO!b!{O!c!xO~OT~bac!dx{!d~",goto:"%p!`PPPPPPPPPPPPPPPPPPPP!a!gP!mPP!yP!|#P#S#Y#]#`#f#i#l#r#x!aP!a!aP$O$U$l$r$x%O%U%[%bPPPPPPPP%hX^OX`pXUOX`pezabcde{!O!Q!S!UR!q!dRhUR!XhXVOX`pRkVR!XkXWOX`pRnWR!XnXXOX`pQrXR!XpXYOX`pQ`ORx`Q{aQ!ObQ!QcQ!SdQ!UeZ!e{!O!Q!S!UQ!v!oR!z!vQ!y!pR!|!yQgUR!VgQjVR!YjQmWR![mQpXR!^pQtZR!`tS_O`ToXp",nodeNames:"⚠ StartCloseTag StartCloseTag StartCloseTag EndTag SelfClosingEndTag StartTag StartTag StartTag StartTag StartTag StartCloseTag StartCloseTag StartCloseTag IncompleteCloseTag Document Text EntityReference CharacterReference InvalidEntity Element OpenTag TagName Attribute AttributeName Is AttributeValue UnquotedAttributeValue ScriptText CloseTag OpenTag StyleText CloseTag OpenTag TextareaText CloseTag OpenTag CloseTag SelfClosingTag Comment ProcessingInst MismatchedCloseTag CloseTag DoctypeDecl",maxTerm:67,context:rKe,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:[dKe],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=o.type.id;if(u==HXe)return $D(o,l,n);if(u==QXe)return $D(o,l,r);if(u==WXe)return $D(o,l,i);if(u==fpe&&a.length){let d=o.node,f=d.firstChild,p=f&&yJ(f,l),g;if(p){for(let O of a)if(O.tag==p&&(!O.attrs||O.attrs(g||(g=bpe(f,l))))){let S=d.lastChild,T=S.type.id==qXe?S.from:d.to;if(T>f.to)return{parser:O.parser,overlay:[{from:f.to,to:T}]}}}}if(s&&u==hpe){let d=o.node,f;if(f=d.firstChild){let p=s[l.read(f.from,f.to)];if(p)for(let g of p){if(g.tagName&&g.tagName!=yJ(d.parent,l))continue;let O=d.lastChild;if(O.type.id==FL){let S=O.from+1,T=O.lastChild,w=O.to-(T&&T.isError?0:1);if(w>S)return{parser:g.parser,overlay:[{from:S,to:w}]}}else if(O.type.id==ppe)return{parser:g.parser,overlay:[{from:O.from,to:O.to}]}}}}return null})}const hKe=99,vJ=1,pKe=100,mKe=101,OJ=2,vpe=[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],gKe=58,bKe=40,Ope=95,yKe=91,b_=45,vKe=46,OKe=35,SKe=37,EKe=38,wKe=92,TKe=10;function Yw(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function Spe(e){return e>=48&&e<=57}const xKe=new Fd((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(Yw(a)||a==b_||a==Ope||n&&Spe(a))!n&&(a!=b_||i>0)&&(n=!0),r===i&&a==b_&&r++,e.advance();else if(a==wKe&&e.peek(1)!=TKe)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==bKe?pKe:r==2&&t.canShift(OJ)?OJ:mKe);break}}}),kKe=new Fd(e=>{if(vpe.includes(e.peek(-1))){let{next:t}=e;(Yw(t)||t==Ope||t==OKe||t==vKe||t==yKe||t==gKe&&Yw(e.peek(1))||t==b_||t==EKe)&&e.acceptToken(hKe)}}),AKe=new Fd(e=>{if(!vpe.includes(e.peek(-1))){let{next:t}=e;if(t==SKe&&(e.advance(),e.acceptToken(vJ)),Yw(t)){do e.advance();while(Yw(e.next)||Spe(e.next));e.acceptToken(vJ)}}}),_Ke=OO({"AtKeyword import charset namespace keyframes media supports":ge.definitionKeyword,"from to selector":ge.keyword,NamespaceName:ge.namespace,KeyframeName:ge.labelName,KeyframeRangeName:ge.operatorKeyword,TagName:ge.tagName,ClassName:ge.className,PseudoClassName:ge.constant(ge.className),IdName:ge.labelName,"FeatureName PropertyName":ge.propertyName,AttributeName:ge.attributeName,NumberLiteral:ge.number,KeywordQuery:ge.keyword,UnaryQueryOp:ge.operatorKeyword,"CallTag ValueName":ge.atom,VariableName:ge.variableName,Callee:ge.operatorKeyword,Unit:ge.unit,"UniversalSelector NestingSelector":ge.definitionOperator,MatchOp:ge.compareOperator,"ChildOp SiblingOp, LogicOp":ge.logicOperator,BinOp:ge.arithmeticOperator,Important:ge.modifier,Comment:ge.blockComment,ColorLiteral:ge.color,"ParenthesizedContent StringLiteral":ge.string,":":ge.punctuation,"PseudoOp #":ge.derefOperator,"; ,":ge.separator,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace}),CKe={__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},RKe={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},IKe={__proto__:null,not:132,only:132},NKe=Bv.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:[kKe,AKe,xKe,1,2,3,4,new yC("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>CKe[e]||-1},{term:58,get:e=>RKe[e]||-1},{term:101,get:e=>IKe[e]||-1}],tokenPrec:1200});let FD=null;function BD(){if(!FD&&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)));FD=t.sort().map(r=>({type:"property",label:r}))}return FD||[]}const SJ=["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})),EJ=["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}))),DKe=["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})),Kp=/^(\w[\w-]*|-\w[\w-]*|)$/,PKe=/^-(-[\w-]*)?$/;function LKe(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 wJ=new hfe,MKe=["Declaration"];function $Ke(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function Epe(e,t,n){if(t.to-t.from>4096){let r=wJ.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(_i.IncludeAnonymous);if(s.firstChild())do for(let o of Epe(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return wJ.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(MKe)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const FKe=e=>t=>{let{state:n,pos:r}=t,i=Ii(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:BD(),validFor:Kp};if(i.name=="ValueName")return{from:i.from,options:EJ,validFor:Kp};if(i.name=="PseudoClassName")return{from:i.from,options:SJ,validFor:Kp};if(e(i)||(t.explicit||a)&&LKe(i,n.doc))return{from:e(i)||a?i.from:r,options:Epe(n.doc,$Ke(i),e),validFor:PKe};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:BD(),validFor:Kp};return{from:i.from,options:DKe,validFor:Kp}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:SJ,validFor:Kp}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:EJ,validFor:Kp}:s.name=="Block"||s.name=="Styles"?{from:r,options:BD(),validFor:Kp}:null},BKe=FKe(e=>e.name=="VariableName"),SC=Pv.define({name:"css",parser:NKe.configure({props:[ZT.add({Declaration:m_()}),SO.add({"Block KeyframeList":Sfe})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function UKe(){return new Bw(SC,SC.data.of({autocomplete:BKe}))}const zKe=312,TJ=1,jKe=2,HKe=3,QKe=4,WKe=313,VKe=315,qKe=316,GKe=5,YKe=6,ZKe=0,UL=[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],wpe=125,XKe=59,zL=47,KKe=42,JKe=43,eJe=45,tJe=60,nJe=44,rJe=63,iJe=46,aJe=new ope({start:!1,shift(e,t){return t==GKe||t==YKe||t==VKe?e:t==qKe},strict:!1}),sJe=new Fd((e,t)=>{let{next:n}=e;(n==wpe||n==-1||t.context)&&e.acceptToken(WKe)},{contextual:!0,fallback:!0}),oJe=new Fd((e,t)=>{let{next:n}=e,r;UL.indexOf(n)>-1||n==zL&&((r=e.peek(1))==zL||r==KKe)||n!=wpe&&n!=XKe&&n!=-1&&!t.context&&e.acceptToken(zKe)},{contextual:!0}),lJe=new Fd((e,t)=>{let{next:n}=e;if(n==JKe||n==eJe){if(e.advance(),n==e.next){e.advance();let r=!t.context&&t.canShift(TJ);e.acceptToken(r?TJ:jKe)}}else n==rJe&&e.peek(1)==iJe&&(e.advance(),e.advance(),(e.next<48||e.next>57)&&e.acceptToken(HKe))},{contextual:!0});function UD(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const uJe=new Fd((e,t)=>{if(e.next!=tJe||!t.dialectEnabled(ZKe)||(e.advance(),e.next==zL))return;let n=0;for(;UL.indexOf(e.next)>-1;)e.advance(),n++;if(UD(e.next,!0)){for(e.advance(),n++;UD(e.next,!1);)e.advance(),n++;for(;UL.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==nJe)return;for(let r=0;;r++){if(r==7){if(!UD(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(QKe,-n)}),cJe=OO({"get set async static":ge.modifier,"for while do if else switch try catch finally return throw break continue default case":ge.controlKeyword,"in of await yield void typeof delete instanceof":ge.operatorKeyword,"let var const using function class extends":ge.definitionKeyword,"import export from":ge.moduleKeyword,"with debugger as new":ge.keyword,TemplateString:ge.special(ge.string),super:ge.atom,BooleanLiteral:ge.bool,this:ge.self,null:ge.null,Star:ge.modifier,VariableName:ge.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":ge.function(ge.variableName),VariableDefinition:ge.definition(ge.variableName),Label:ge.labelName,PropertyName:ge.propertyName,PrivatePropertyName:ge.special(ge.propertyName),"CallExpression/MemberExpression/PropertyName":ge.function(ge.propertyName),"FunctionDeclaration/VariableDefinition":ge.function(ge.definition(ge.variableName)),"ClassDeclaration/VariableDefinition":ge.definition(ge.className),PropertyDefinition:ge.definition(ge.propertyName),PrivatePropertyDefinition:ge.definition(ge.special(ge.propertyName)),UpdateOp:ge.updateOperator,"LineComment Hashbang":ge.lineComment,BlockComment:ge.blockComment,Number:ge.number,String:ge.string,Escape:ge.escape,ArithOp:ge.arithmeticOperator,LogicOp:ge.logicOperator,BitOp:ge.bitwiseOperator,CompareOp:ge.compareOperator,RegExp:ge.regexp,Equals:ge.definitionOperator,Arrow:ge.function(ge.punctuation),": Spread":ge.punctuation,"( )":ge.paren,"[ ]":ge.squareBracket,"{ }":ge.brace,"InterpolationStart InterpolationEnd":ge.special(ge.brace),".":ge.derefOperator,", ;":ge.separator,"@":ge.meta,TypeName:ge.typeName,TypeDefinition:ge.definition(ge.typeName),"type enum interface implements namespace module declare":ge.definitionKeyword,"abstract global Privacy readonly override":ge.modifier,"is keyof unique infer":ge.operatorKeyword,JSXAttributeValue:ge.attributeValue,JSXText:ge.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":ge.angleBracket,"JSXIdentifier JSXNameSpacedName":ge.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":ge.attributeName,"JSXBuiltin/JSXIdentifier":ge.standard(ge.tagName)}),dJe={__proto__:null,export:20,as:25,from:33,default:36,async:41,function:42,extends:54,this:58,true:66,false:66,null:78,void:82,typeof:86,super:102,new:136,delete:148,yield:157,await:161,class:166,public:229,private:229,protected:229,readonly:231,instanceof:250,satisfies:253,in:254,const:256,import:290,keyof:345,unique:349,infer:355,is:391,abstract:411,implements:413,type:415,let:418,var:420,using:423,interface:429,enum:433,namespace:439,module:441,declare:445,global:449,for:468,of:477,while:480,with:484,do:488,if:492,else:494,switch:498,case:504,try:510,catch:514,finally:518,return:522,throw:526,break:530,continue:534,debugger:538},fJe={__proto__:null,async:123,get:125,set:127,declare:189,public:191,private:191,protected:191,static:193,abstract:195,override:197,readonly:203,accessor:205,new:395},hJe={__proto__:null,"<":187},pJe=Bv.deserialize({version:14,states:"$@QO%TQ^OOO%[Q^OOO'_Q`OOP(lOWOOO*zQ?NdO'#CiO+RO!bO'#CjO+aO#tO'#CjO+oO!0LbO'#D^O.QQ^O'#DdO.bQ^O'#DoO%[Q^O'#DwO0fQ^O'#EPOOQ?Mr'#EX'#EXO1PQWO'#EUOOQO'#Em'#EmOOQO'#Ih'#IhO1XQWO'#GpO1dQWO'#ElO1iQWO'#ElO3hQ?NdO'#JmO6[Q?NdO'#JnO6uQWO'#F[O6zQ&jO'#FsOOQ?Mr'#Fe'#FeO7VO,YO'#FeO7eQ7[O'#FzO9RQWO'#FyOOQ?Mr'#Jn'#JnOOQ?Mp'#Jm'#JmO9WQWO'#GtOOQU'#KZ'#KZO9cQWO'#IUO9hQ?MxO'#IVOOQU'#JZ'#JZOOQU'#IZ'#IZQ`Q^OOO`Q^OOO9pQMnO'#DsO9wQ^O'#D{O:OQ^O'#D}O9^QWO'#GpO:VQ7[O'#CoO:eQWO'#EkO:pQWO'#EvO:uQ7[O'#FdO;dQWO'#GpOOQO'#K['#K[O;iQWO'#K[O;wQWO'#GxO;wQWO'#GyO;wQWO'#G{O9^QWO'#HOOVQWO'#CeO>gQWO'#H_O>oQWO'#HeO>oQWO'#HgO`Q^O'#HiO>oQWO'#HkO>oQWO'#HnO>tQWO'#HtO>yQ?MyO'#HzO%[Q^O'#H|O?UQ?MyO'#IOO?aQ?MyO'#IQO9hQ?MxO'#ISO?lQ?NdO'#CiO@nQ`O'#DiQOQWOOO%[Q^O'#D}OAUQWO'#EQO:VQ7[O'#EkOAaQWO'#EkOAlQpO'#FdOOQU'#Cg'#CgOOQ?Mp'#Dn'#DnOOQ?Mp'#Jq'#JqO%[Q^O'#JqOOQO'#Jt'#JtOOQO'#Id'#IdOBlQ`O'#EdOOQ?Mp'#Ec'#EcOOQ?Mp'#Jx'#JxOChQ?NQO'#EdOCrQ`O'#ETOOQO'#Js'#JsODWQ`O'#JtOEeQ`O'#ETOCrQ`O'#EdPErO#@ItO'#CbPOOO)CDx)CDxOOOO'#I['#I[OE}O!bO,59UOOQ?Mr,59U,59UOOOO'#I]'#I]OF]O#tO,59UO%[Q^O'#D`OOOO'#I_'#I_OFkO!0LbO,59xOOQ?Mr,59x,59xOFyQ^O'#I`OG^QWO'#JoOI]QrO'#JoO+}Q^O'#JoOIdQWO,5:OOIzQWO'#EmOJXQWO'#KOOJdQWO'#J}OJdQWO'#J}OJlQWO,5;ZOJqQWO'#J|OOQ?Mv,5:Z,5:ZOJxQ^O,5:ZOLvQ?NdO,5:cOMgQWO,5:kONQQ?MxO'#J{ONXQWO'#JzO9WQWO'#JzONmQWO'#JzONuQWO,5;YONzQWO'#JzO!#PQrO'#JnOOQ?Mr'#Ci'#CiO%[Q^O'#EPO!#oQrO,5:pOOQQ'#Ju'#JuOOQO-EpOOQU'#Jc'#JcOOQU,5>q,5>qOOQU-EtQWO'#HTO9^QWO'#HVO!DgQWO'#HVO:VQ7[O'#HXO!DlQWO'#HXOOQU,5=m,5=mO!DqQWO'#HYO!ESQWO'#CoO!EXQWO,59PO!EcQWO,59PO!GhQ^O,59POOQU,59P,59PO!GxQ?MxO,59PO%[Q^O,59PO!JTQ^O'#HaOOQU'#Hb'#HbOOQU'#Hc'#HcO`Q^O,5=yO!JkQWO,5=yO`Q^O,5>PO`Q^O,5>RO!JpQWO,5>TO`Q^O,5>VO!JuQWO,5>YO!JzQ^O,5>`OOQU,5>f,5>fO%[Q^O,5>fO9hQ?MxO,5>hOOQU,5>j,5>jO# UQWO,5>jOOQU,5>l,5>lO# UQWO,5>lOOQU,5>n,5>nO# rQ`O'#D[O%[Q^O'#JqO# |Q`O'#JqO#!kQ`O'#DjO#!|Q`O'#DjO#%_Q^O'#DjO#%fQWO'#JpO#%nQWO,5:TO#%sQWO'#EqO#&RQWO'#KPO#&ZQWO,5;[O#&`Q`O'#DjO#&mQ`O'#ESOOQ?Mr,5:l,5:lO%[Q^O,5:lO#&tQWO,5:lO>tQWO,5;VO!A}Q`O,5;VO!BVQ7[O,5;VO:VQ7[O,5;VO#&|QWO,5@]O#'RQ(CYO,5:pOOQO-EzO+}Q^O,5>zOOQO,5?Q,5?QO#*ZQ^O'#I`OOQO-E<^-E<^O#*hQWO,5@ZO#*pQrO,5@ZO#*wQWO,5@iOOQ?Mr1G/j1G/jO%[Q^O,5@jO#+PQWO'#IfOOQO-EuQ?NdO1G0|O#>|Q?NdO1G0|O#AZQ07bO'#CiO#CUQ07bO1G1_O#C]Q07bO'#JnO#CpQ?NdO,5?WOOQ?Mp-EoQWO1G3oO$3VQ^O1G3qO$7ZQ^O'#HpOOQU1G3t1G3tO$7hQWO'#HvO>tQWO'#HxOOQU1G3z1G3zO$7pQ^O1G3zO9hQ?MxO1G4QOOQU1G4S1G4SOOQ?Mp'#G]'#G]O9hQ?MxO1G4UO9hQ?MxO1G4WO$;wQWO,5@]O!(oQ^O,5;]O9WQWO,5;]O>tQWO,5:UO!(oQ^O,5:UO!A}Q`O,5:UO$;|Q07bO,5:UOOQO,5;],5;]O$tQWO1G0qO!A}Q`O1G0qO!BVQ7[O1G0qOOQ?Mp1G5w1G5wO!ArQ?MxO1G0ZOOQO1G0j1G0jO%[Q^O1G0jO$=aQ?MxO1G0jO$=lQ?MxO1G0jO!A}Q`O1G0ZOCrQ`O1G0ZO$=zQ?MxO1G0jOOQO1G0Z1G0ZO$>`Q?NdO1G0jPOOO-EjQpO,5rQrO1G4fOOQO1G4l1G4lO%[Q^O,5>zO$>|QWO1G5uO$?UQWO1G6TO$?^QrO1G6UO9WQWO,5?QO$?hQ?NdO1G6RO%[Q^O1G6RO$?xQ?MxO1G6RO$@ZQWO1G6QO$@ZQWO1G6QO9WQWO1G6QO$@cQWO,5?TO9WQWO,5?TOOQO,5?T,5?TO$@wQWO,5?TO$(PQWO,5?TOOQO-E[OOQU,5>[,5>[O%[Q^O'#HqO%8mQWO'#HsOOQU,5>b,5>bO9WQWO,5>bOOQU,5>d,5>dOOQU7+)f7+)fOOQU7+)l7+)lOOQU7+)p7+)pOOQU7+)r7+)rO%8rQ`O1G5wO%9WQ07bO1G0wO%9bQWO1G0wOOQO1G/p1G/pO%9mQ07bO1G/pO>tQWO1G/pO!(oQ^O'#DjOOQO,5>{,5>{OOQO-E<_-E<_OOQO,5?R,5?ROOQO-EtQWO7+&]O!A}Q`O7+&]OOQO7+%u7+%uO$>`Q?NdO7+&UOOQO7+&U7+&UO%[Q^O7+&UO%9wQ?MxO7+&UO!ArQ?MxO7+%uO!A}Q`O7+%uO%:SQ?MxO7+&UO%:bQ?NdO7++mO%[Q^O7++mO%:rQWO7++lO%:rQWO7++lOOQO1G4o1G4oO9WQWO1G4oO%:zQWO1G4oOOQQ7+%z7+%zO#&wQWO<|O%[Q^O,5>|OOQO-E<`-E<`O%FwQWO1G5xOOQ?Mr<]OOQU,5>_,5>_O&8uQWO1G3|O9WQWO7+&cO!(oQ^O7+&cOOQO7+%[7+%[O&8zQ07bO1G6UO>tQWO7+%[OOQ?Mr<tQWO<`Q?NdO<pQ?NdO,5?_O&@xQ?NdO7+'zO&CWQrO1G4hO&CbQ07bO7+&^O&EcQ07bO,5=UO&GgQ07bO,5=WO&GwQ07bO,5=UO&HXQ07bO,5=WO&HiQ07bO,59rO&JlQ07bO,5tQWO7+)hO'(OQWO<`Q?NdOAN?[OOQOAN>{AN>{O%[Q^OAN?[OOQO<`Q?NdOG24vO#&wQWOLD,nOOQULD,nLD,nO!&_Q7[OLD,nO'5TQrOLD,nO'5[Q07bO7+'xO'6}Q07bO,5?]O'8}Q07bO,5?_O':}Q07bO7+'zO'kOh%VOk+aO![']O%f+`O~O!d+cOa(WX![(WX'u(WX!Y(WX~Oa%lO![XO'u%lO~Oh%VO!i%cO~Oh%VO!i%cO(O%eO~O!d#vO#h(tO~Ob+nO%g+oO(O+kO(QTO(TUO!Z)TP~O!Y+pO`)SX~O[+tO~O`+uO~O![%}O(O%eO(P!lO`)SP~Oh%VO#]+zO~Oh%VOk+}O![$|O~O![,PO~O},RO![XO~O%k%tO~O!u,WO~Oe,]O~Ob,^O(O#nO(QTO(TUO!Z)RP~Oe%{O~O%g!QO(O&WO~P=RO[,cO`,bO~OPYOQYOSfOdzOeyOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO!fuO!iZO!lYO!mYO!nYO!pvO!uxO!y]O%e}O(QTO(TUO([VO(j[O(yiO~O![!eO!r!gO$V!kO(O!dO~P!EkO`,bOa%lO'u%lO~OPYOQYOSfOd!jOe!iOmkOoYOpkOqkOwkOyYO{YO!PWO!TkO!UkO![!eO!fuO!iZO!lYO!mYO!nYO!pvO!u!hO$V!kO(O!dO(QTO(TUO([VO(j[O(yiO~Oa,hO!rwO#t!OO%i!OO%j!OO%k!OO~P!HTO!i&lO~O&Y,nO~O![,pO~O&k,rO&m,sOP&haQ&haS&haY&haa&had&hae&ham&hao&hap&haq&haw&hay&ha{&ha!P&ha!T&ha!U&ha![&ha!f&ha!i&ha!l&ha!m&ha!n&ha!p&ha!r&ha!u&ha!y&ha#t&ha$V&ha%e&ha%g&ha%i&ha%j&ha%k&ha%n&ha%p&ha%s&ha%t&ha%v&ha&S&ha&Y&ha&[&ha&^&ha&`&ha&c&ha&i&ha&o&ha&q&ha&s&ha&u&ha&w&ha's&ha(O&ha(Q&ha(T&ha([&ha(j&ha(y&ha!Z&ha&a&hab&ha&f&ha~O(O,xO~Oh!bX!Y!OX!Z!OX!d!OX!d!bX!i!bX#]!OX~O!Y!bX!Z!bX~P# ZO!d,}O#],|Oh(eX!Y#eX!Y(eX!Z#eX!Z(eX!d(eX!i(eX~Oh%VO!d-PO!i%cO!Y!^X!Z!^X~Op!nO!P!oO(QTO(TUO(`!mO~OP;POQ;POSfOdkOg'XX!Y'XX~P!+hO!Y.wOg(ka~OSfO![3uO$c3vO~O!Z3zO~Os3{O~P#.aOa$lq!Y$lq'u$lq's$lq!V$lq!h$lqs$lq![$lq%f$lq!d$lq~P!9mO!V3|O~P#.aO})zO!P){O(u%POk'ea(t'ea!Y'ea#]'ea~Og'ea#}'ea~P%)nO})zO!P){Ok'ga(t'ga(u'ga!Y'ga#]'ga~Og'ga#}'ga~P%*aO(m$YO~P#.aO!VfX!V$xX!YfX!Y$xX!d%PX#]fX~P!/gO(OQ#>g#@V#@e#@l#BR#Ba#C|#D[#Db#Dh#Dn#Dx#EO#EU#E`#Er#ExPPPPPPPPPP#FOPPPPPPP#Fs#Iz#KZ#Kb#KjPPP$!sP$!|$%t$,^$,a$,d$-P$-S$-Z$-cP$-i$-lP$.Y$.^$/U$0d$0i$1PPP$1U$1[$1`P$1c$1g$1k$2a$2x$3a$3e$3h$3k$3q$3t$3x$3|R!|RoqOXst!Z#d%k&o&q&r&t,k,p1|2PY!vQ']-]1a5eQ%rvQ%zyQ&R|Q&g!VS'T!e-TQ'c!iS'i!r!yU*e$|*V*jQ+i%{Q+v&TQ,[&aQ-Z'[Q-e'dQ-m'jQ0R*lQ1k,]R;v;T%QdOPWXYZstuvw!Z!`!g!o#S#W#Z#d#o#u#x#{$O$P$Q$R$S$T$U$V$W$X$_$a$e%k%r&P&h&k&o&q&r&t&x'Q'_'o(P(R(X(`(t(v(z)y+R+V,h,k,p-a-i-w-}.l.s/f0a0g0v1d1t1u1w1y1|2P2R2r2x3^5b5m5}6O6R6f8R8X8h8rS#q];Q!r)Z$Z$n'U)o,|-P.}2b3u5`6]9h9y;P;S;T;W;X;Y;Z;[;];^;_;`;a;b;c;d;f;i;v;x;y;{ < TypeParamList TypeDefinition extends ThisType this LiteralType ArithOp Number BooleanLiteral TemplateType InterpolationEnd Interpolation InterpolationStart NullType null VoidType void TypeofType typeof MemberExpression . PropertyName [ TemplateString Escape Interpolation super RegExp ] ArrayExpression Spread , } { ObjectExpression Property async get set PropertyDefinition Block : NewTarget new NewExpression ) ( ArgList UnaryExpression delete LogicOp BitOp YieldExpression yield AwaitExpression await ParenthesizedExpression ClassExpression class ClassBody MethodDeclaration Decorator @ MemberExpression PrivatePropertyName CallExpression TypeArgList CompareOp < declare Privacy static abstract override PrivatePropertyDefinition PropertyDeclaration readonly accessor Optional TypeAnnotation Equals StaticBlock FunctionExpression ArrowFunction ParamList ParamList ArrayPattern ObjectPattern PatternProperty Privacy readonly Arrow MemberExpression BinaryExpression ArithOp ArithOp ArithOp ArithOp BitOp CompareOp instanceof satisfies in const CompareOp BitOp BitOp BitOp LogicOp LogicOp ConditionalExpression LogicOp LogicOp AssignmentExpression UpdateOp PostfixExpression CallExpression InstantiationExpression TaggedTemplateExpression DynamicImport import ImportMeta JSXElement JSXSelfCloseEndTag JSXSelfClosingTag JSXIdentifier JSXBuiltin JSXIdentifier JSXNamespacedName JSXMemberExpression JSXSpreadAttribute JSXAttribute JSXAttributeValue JSXEscape JSXEndTag JSXOpenTag JSXFragmentTag JSXText JSXEscape JSXStartCloseTag JSXCloseTag PrefixCast ArrowFunction TypeParamList SequenceExpression InstantiationExpression KeyofType keyof UniqueType unique ImportType InferredType infer TypeName ParenthesizedType FunctionSignature ParamList NewSignature IndexedType TupleType Label ArrayType ReadonlyType ObjectType MethodType PropertyType IndexSignature PropertyDefinition CallSignature TypePredicate is NewSignature new UnionType LogicOp IntersectionType LogicOp ConditionalType ParameterizedType ClassDeclaration abstract implements type VariableDeclaration let var using TypeAliasDeclaration InterfaceDeclaration interface EnumDeclaration enum EnumBody NamespaceDeclaration namespace module AmbientDeclaration declare GlobalDeclaration global ClassDeclaration ClassBody AmbientFunctionDeclaration ExportGroup VariableName VariableName ImportDeclaration ImportGroup ForStatement for ForSpec ForInSpec ForOfSpec of WhileStatement while WithStatement with DoStatement do IfStatement if else SwitchStatement switch SwitchBody CaseLabel case DefaultLabel TryStatement try CatchClause catch FinallyClause finally ReturnStatement return ThrowStatement throw BreakStatement break ContinueStatement continue DebuggerStatement debugger LabeledStatement ExpressionStatement SingleExpression SingleClassItem",maxTerm:376,context:aJe,nodeProps:[["isolate",-8,5,6,14,34,36,48,50,52,""],["group",-26,9,17,19,65,204,208,212,213,215,218,221,231,233,239,241,243,245,248,254,260,262,264,266,268,270,271,"Statement",-34,13,14,29,32,33,39,48,51,52,54,59,67,69,73,77,79,81,82,107,108,117,118,135,138,140,141,142,143,144,146,147,166,167,169,"Expression",-23,28,30,34,38,40,42,171,173,175,176,178,179,180,182,183,184,186,187,188,198,200,202,203,"Type",-3,85,100,106,"ClassItem"],["openedBy",23,"<",35,"InterpolationStart",53,"[",57,"{",70,"(",159,"JSXStartCloseTag"],["closedBy",24,">",37,"InterpolationEnd",47,"]",58,"}",71,")",164,"JSXEndTag"]],propSources:[cJe],skippedNodes:[0,5,6,274],repeatNodeCount:37,tokenData:"$Fq07[R!bOX%ZXY+gYZ-yZ[+g[]%Z]^.c^p%Zpq+gqr/mrs3cst:_tuEruvJSvwLkwx! Yxy!'iyz!(sz{!)}{|!,q|}!.O}!O!,q!O!P!/Y!P!Q!9j!Q!R#:O!R![#<_![!]#I_!]!^#Jk!^!_#Ku!_!`$![!`!a$$v!a!b$*T!b!c$,r!c!}Er!}#O$-|#O#P$/W#P#Q$4o#Q#R$5y#R#SEr#S#T$7W#T#o$8b#o#p$x#r#s$@U#s$f%Z$f$g+g$g#BYEr#BY#BZ$A`#BZ$ISEr$IS$I_$A`$I_$I|Er$I|$I}$Dk$I}$JO$Dk$JO$JTEr$JT$JU$A`$JU$KVEr$KV$KW$A`$KW&FUEr&FU&FV$A`&FV;'SEr;'S;=`I|<%l?HTEr?HT?HU$A`?HUOEr(n%d_$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z&j&hT$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c&j&zP;=`<%l&c'|'U]$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!b(SU(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!b(iP;=`<%l'}'|(oP;=`<%l&}'[(y]$h&j(RpOY(rYZ&cZr(rrs&cs!^(r!^!_)r!_#O(r#O#P&c#P#o(r#o#p)r#p;'S(r;'S;=`*a<%lO(rp)wU(RpOY)rZr)rs#O)r#P;'S)r;'S;=`*Z<%lO)rp*^P;=`<%l)r'[*dP;=`<%l(r#S*nX(Rp(U!bOY*gZr*grs'}sw*gwx)rx#O*g#P;'S*g;'S;=`+Z<%lO*g#S+^P;=`<%l*g(n+dP;=`<%l%Z07[+rq$h&j(Rp(U!b'w0/lOX%ZXY+gYZ&cZ[+g[p%Zpq+gqr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p$f%Z$f$g+g$g#BY%Z#BY#BZ+g#BZ$IS%Z$IS$I_+g$I_$JT%Z$JT$JU+g$JU$KV%Z$KV$KW+g$KW&FU%Z&FU&FV+g&FV;'S%Z;'S;=`+a<%l?HT%Z?HT?HU+g?HUO%Z07[.ST(S#S$h&j'x0/lO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c07[.n_$h&j(Rp(U!b'x0/lOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)3p/x`$h&j!m),Q(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`0z!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW1V`#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_!`2X!`#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z(KW2d_#u(Ch$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'At3l_(Q':f$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k(^4r_$h&j(U!bOY4kYZ5qZr4krs7nsw4kwx5qx!^4k!^!_8p!_#O4k#O#P5q#P#o4k#o#p8p#p;'S4k;'S;=`:X<%lO4k&z5vX$h&jOr5qrs6cs!^5q!^!_6y!_#o5q#o#p6y#p;'S5q;'S;=`7h<%lO5q&z6jT$c`$h&jO!^&c!_#o&c#p;'S&c;'S;=`&w<%lO&c`6|TOr6yrs7]s;'S6y;'S;=`7b<%lO6y`7bO$c``7eP;=`<%l6y&z7kP;=`<%l5q(^7w]$c`$h&j(U!bOY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}!r8uZ(U!bOY8pYZ6yZr8prs9hsw8pwx6yx#O8p#O#P6y#P;'S8p;'S;=`:R<%lO8p!r9oU$c`(U!bOY'}Zw'}x#O'}#P;'S'};'S;=`(f<%lO'}!r:UP;=`<%l8p(^:[P;=`<%l4k%9[:hh$h&j(Rp(U!bOY%ZYZ&cZq%Zqr`#P#o`x!^=^!^!_?q!_#O=^#O#P>`#P#o=^#o#p?q#p;'S=^;'S;=`@h<%lO=^&n>gXWS$h&jOY>`YZ&cZ!^>`!^!_?S!_#o>`#o#p?S#p;'S>`;'S;=`?k<%lO>`S?XSWSOY?SZ;'S?S;'S;=`?e<%lO?SS?hP;=`<%l?S&n?nP;=`<%l>`!f?xWWS(U!bOY?qZw?qwx?Sx#O?q#O#P?S#P;'S?q;'S;=`@b<%lO?q!f@eP;=`<%l?q(Q@kP;=`<%l=^'`@w]WS$h&j(RpOY@nYZ&cZr@nrs>`s!^@n!^!_Ap!_#O@n#O#P>`#P#o@n#o#pAp#p;'S@n;'S;=`Bg<%lO@ntAwWWS(RpOYApZrAprs?Ss#OAp#O#P?S#P;'SAp;'S;=`Ba<%lOAptBdP;=`<%lAp'`BjP;=`<%l@n#WBvYWS(Rp(U!bOYBmZrBmrs?qswBmwxApx#OBm#O#P?S#P;'SBm;'S;=`Cf<%lOBm#WCiP;=`<%lBm(rCoP;=`<%l^!Q^$h&j!U7`OY!=yYZ&cZ!P!=y!P!Q!>|!Q!^!=y!^!_!@c!_!}!=y!}#O!CW#O#P!Dy#P#o!=y#o#p!@c#p;'S!=y;'S;=`!Ek<%lO!=y|#X#Z&c#Z#[!>|#[#]&c#]#^!>|#^#a&c#a#b!>|#b#g&c#g#h!>|#h#i&c#i#j!>|#j#k!>|#k#m&c#m#n!>|#n#o&c#p;'S&c;'S;=`&w<%lO&c7`!@hX!U7`OY!@cZ!P!@c!P!Q!AT!Q!}!@c!}#O!Ar#O#P!Bq#P;'S!@c;'S;=`!CQ<%lO!@c7`!AYW!U7`#W#X!AT#Z#[!AT#]#^!AT#a#b!AT#g#h!AT#i#j!AT#j#k!AT#m#n!AT7`!AuVOY!ArZ#O!Ar#O#P!B[#P#Q!@c#Q;'S!Ar;'S;=`!Bk<%lO!Ar7`!B_SOY!ArZ;'S!Ar;'S;=`!Bk<%lO!Ar7`!BnP;=`<%l!Ar7`!BtSOY!@cZ;'S!@c;'S;=`!CQ<%lO!@c7`!CTP;=`<%l!@c^!Ezl$h&j(U!b!U7`OY&}YZ&cZw&}wx&cx!^&}!^!_'}!_#O&}#O#P&c#P#W&}#W#X!Eq#X#Z&}#Z#[!Eq#[#]&}#]#^!Eq#^#a&}#a#b!Eq#b#g&}#g#h!Eq#h#i&}#i#j!Eq#j#k!Eq#k#m&}#m#n!Eq#n#o&}#o#p'}#p;'S&};'S;=`(l<%lO&}8r!GyZ(U!b!U7`OY!GrZw!Grwx!@cx!P!Gr!P!Q!Hl!Q!}!Gr!}#O!JU#O#P!Bq#P;'S!Gr;'S;=`!J|<%lO!Gr8r!Hse(U!b!U7`OY'}Zw'}x#O'}#P#W'}#W#X!Hl#X#Z'}#Z#[!Hl#[#]'}#]#^!Hl#^#a'}#a#b!Hl#b#g'}#g#h!Hl#h#i'}#i#j!Hl#j#k!Hl#k#m'}#m#n!Hl#n;'S'};'S;=`(f<%lO'}8r!JZX(U!bOY!JUZw!JUwx!Arx#O!JU#O#P!B[#P#Q!Gr#Q;'S!JU;'S;=`!Jv<%lO!JU8r!JyP;=`<%l!JU8r!KPP;=`<%l!Gr>^!KZ^$h&j(U!bOY!KSYZ&cZw!KSwx!CWx!^!KS!^!_!JU!_#O!KS#O#P!DR#P#Q!^!LYP;=`<%l!KS>^!L`P;=`<%l!_#c#d#Bq#d#l%Z#l#m#Es#m#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#>j_$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#?rd$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#A]f$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!R#AQ!R!S#AQ!S!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#AQ#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Bzc$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Dbe$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q!Y#DV!Y!^%Z!^!_*g!_#O%Z#O#P&c#P#R%Z#R#S#DV#S#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#E|g$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z'Ad#Gpi$h&j(Rp(U!bp'9tOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!Q%Z!Q![#Ge![!^%Z!^!_*g!_!c%Z!c!i#Ge!i#O%Z#O#P&c#P#R%Z#R#S#Ge#S#T%Z#T#Z#Ge#Z#b%Z#b#c#>_#c#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z*)x#Il_!d$b$h&j#})Lv(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z)[#Jv_al$h&j(Rp(U!bOY%ZYZ&cZr%Zrs&}sw%Zwx(rx!^%Z!^!_*g!_#O%Z#O#P&c#P#o%Z#o#p*g#p;'S%Z;'S;=`+a<%lO%Z04f#LS^h#)`#O-dJe[e]||-1},{term:338,get:e=>fJe[e]||-1},{term:92,get:e=>hJe[e]||-1}],tokenPrec:14749}),Tpe=[gl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),gl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),gl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),gl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),gl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),gl(`try { + \${} +} catch (\${error}) { + \${} +}`,{label:"try",detail:"/ catch block",type:"keyword"}),gl("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),gl(`if (\${}) { + \${} +} else { + \${} +}`,{label:"if",detail:"/ else block",type:"keyword"}),gl(`class \${name} { + constructor(\${params}) { + \${} + } +}`,{label:"class",detail:"definition",type:"keyword"}),gl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),gl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],mJe=Tpe.concat([gl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),gl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),gl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),xJ=new hfe,xpe=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function OE(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const gJe=["FunctionDeclaration"],bJe={FunctionDeclaration:OE("function"),ClassDeclaration:OE("class"),ClassExpression:()=>!0,EnumDeclaration:OE("constant"),TypeAliasDeclaration:OE("type"),NamespaceDeclaration:OE("namespace"),VariableDefinition(e,t){e.matchContext(gJe)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function kpe(e,t){let n=xJ.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(_i.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=bJe[s.name];if(o&&o(s,a)||xpe.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of kpe(e,s.node))r.push(o);return!1}}),xJ.set(t,r),r}const kJ=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,Ape=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function yJe(e){let t=Ii(e.state).resolveInner(e.pos,-1);if(Ape.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&kJ.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)xpe.has(i.name)&&(r=r.concat(kpe(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:kJ}}const Mf=Pv.define({name:"javascript",parser:pJe.configure({props:[ZT.add({IfStatement:m_({except:/^\s*({|else\b)/}),TryStatement:m_({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Oqe,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:vqe({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":m_({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}}),SO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":Sfe,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),_pe={test:e=>/^JSX/.test(e.name),facet:kB({commentTokens:{block:{open:"{/*",close:"*/}"}}})},Cpe=Mf.configure({dialect:"ts"},"typescript"),Rpe=Mf.configure({dialect:"jsx",props:[AB.add(e=>e.isTop?[_pe]:void 0)]}),Ipe=Mf.configure({dialect:"jsx ts",props:[AB.add(e=>e.isTop?[_pe]:void 0)]},"typescript");let Npe=e=>({label:e,type:"keyword"});const Dpe="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(Npe),vJe=Dpe.concat(["declare","implements","private","protected","public"].map(Npe));function OJe(e={}){let t=e.jsx?e.typescript?Ipe:Rpe:e.typescript?Cpe:Mf,n=e.typescript?mJe.concat(vJe):Tpe.concat(Dpe);return new Bw(t,[Mf.data.of({autocomplete:FYe(Ape,whe(n))}),Mf.data.of({autocomplete:yJe}),e.jsx?wJe:[]])}function SJe(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 EJe=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),wJe=Jt.inputHandler.of((e,t,n,r,i)=>{if((EJe?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!Mf.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:d}=l,f=Ii(s).resolveInner(d-1,-1),p;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(d-1,d)!=r||f.name=="JSXAttributeValue"&&f.to>d)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:d,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,O=g.parent;if(O&&g.from==d-2&&((p=AJ(s.doc,O.firstChild,d))||((u=O.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${p}>`;return{range:dt.cursor(d+S.length,-1),changes:{from:d,insert:S}}}}else if(r==">"){let g=SJe(f);if(g&&g.name=="JSXOpenTag"&&!/^\/?>|^<\//.test(s.doc.sliceString(d,d+2))&&(p=AJ(s.doc,g,d)))return{range:l,changes:{from:d,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),SE=["_blank","_self","_top","_parent"],zD=["ascii","utf-8","utf-16","latin1","latin1"],jD=["get","post","put","delete"],HD=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],tu=["true","false"],Tn={},TJe={a:{attrs:{href:null,ping:null,type:null,media:null,target:SE,hreflang:null}},abbr:Tn,address:Tn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Tn,aside:Tn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Tn,base:{attrs:{href:null,target:SE}},bdi:Tn,bdo:Tn,blockquote:{attrs:{cite:null}},body:Tn,br:Tn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:HD,formmethod:jD,formnovalidate:["novalidate"],formtarget:SE,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Tn,center:Tn,cite:Tn,code:Tn,col:{attrs:{span:null}},colgroup:{attrs:{span:null}},command:{attrs:{type:["command","checkbox","radio"],label:null,icon:null,radiogroup:null,command:null,title:null,disabled:["disabled"],checked:["checked"]}},data:{attrs:{value:null}},datagrid:{attrs:{disabled:["disabled"],multiple:["multiple"]}},datalist:{attrs:{data:null}},dd:Tn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Tn,div:Tn,dl:Tn,dt:Tn,em:Tn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Tn,figure:Tn,footer:Tn,form:{attrs:{action:null,name:null,"accept-charset":zD,autocomplete:["on","off"],enctype:HD,method:jD,novalidate:["novalidate"],target:SE}},h1:Tn,h2:Tn,h3:Tn,h4:Tn,h5:Tn,h6:Tn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Tn,hgroup:Tn,hr:Tn,html:{attrs:{manifest:null}},i:Tn,iframe:{attrs:{src:null,srcdoc:null,name:null,width:null,height:null,sandbox:["allow-top-navigation","allow-same-origin","allow-forms","allow-scripts"],seamless:["seamless"]}},img:{attrs:{alt:null,src:null,ismap:null,usemap:null,width:null,height:null,crossorigin:["anonymous","use-credentials"]}},input:{attrs:{alt:null,dirname:null,form:null,formaction:null,height:null,list:null,max:null,maxlength:null,min:null,name:null,pattern:null,placeholder:null,size:null,src:null,step:null,value:null,width:null,accept:["audio/*","video/*","image/*"],autocomplete:["on","off"],autofocus:["autofocus"],checked:["checked"],disabled:["disabled"],formenctype:HD,formmethod:jD,formnovalidate:["novalidate"],formtarget:SE,multiple:["multiple"],readonly:["readonly"],required:["required"],type:["hidden","text","search","tel","url","email","password","datetime","date","month","week","time","datetime-local","number","range","color","checkbox","radio","file","submit","image","reset","button"]}},ins:{attrs:{cite:null,datetime:null}},kbd:Tn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Tn,li:{attrs:{value:null}},link:{attrs:{href:null,type:null,hreflang:null,media:null,sizes:["all","16x16","16x16 32x32","16x16 32x32 64x64"]}},map:{attrs:{name:null}},mark:Tn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:zD,name:["viewport","application-name","author","description","generator","keywords"],"http-equiv":["content-language","content-type","default-style","refresh"]}},meter:{attrs:{value:null,min:null,low:null,high:null,max:null,optimum:null}},nav:Tn,noscript:Tn,object:{attrs:{data:null,type:null,name:null,usemap:null,form:null,width:null,height:null,typemustmatch:["typemustmatch"]}},ol:{attrs:{reversed:["reversed"],start:null,type:["1","a","A","i","I"]},children:["li","script","template","ul","ol"]},optgroup:{attrs:{disabled:["disabled"],label:null}},option:{attrs:{disabled:["disabled"],label:null,selected:["selected"],value:null}},output:{attrs:{for:null,form:null,name:null}},p:Tn,param:{attrs:{name:null,value:null}},pre:Tn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Tn,rt:Tn,ruby:Tn,samp:Tn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:zD}},section:Tn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Tn,source:{attrs:{src:null,type:null,media:null}},span:Tn,strong:Tn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Tn,summary:Tn,sup:Tn,table:Tn,tbody:Tn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Tn,textarea:{attrs:{dirname:null,form:null,maxlength:null,name:null,placeholder:null,rows:null,cols:null,autofocus:["autofocus"],disabled:["disabled"],readonly:["readonly"],required:["required"],wrap:["soft","hard"]}},tfoot:Tn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Tn,time:{attrs:{datetime:null}},title:Tn,tr:Tn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Tn,video:{attrs:{src:null,poster:null,width:null,height:null,crossorigin:["anonymous","use-credentials"],preload:["auto","metadata","none"],autoplay:["autoplay"],mediagroup:["movie"],muted:["muted"],controls:["controls"]}},wbr:Tn},Ppe={accesskey:null,class:null,contenteditable:tu,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:tu,autocorrect:tu,autocapitalize:tu,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":tu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":tu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":tu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":tu,"aria-hidden":tu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":tu,"aria-multiselectable":tu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":tu,"aria-relevant":null,"aria-required":tu,"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},Lpe="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 Lpe)Ppe[e]=null;let Zw=class{constructor(t,n){this.tags=Object.assign(Object.assign({},TJe),t),this.globalAttrs=Object.assign(Object.assign({},Ppe),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};Zw.default=new Zw;function Uv(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 zv(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function Mpe(e,t,n){let r=n.tags[Uv(e,zv(t))];return(r==null?void 0:r.children)||n.allTags}function ZB(e,t){let n=[];for(let r=zv(t);r&&!r.type.isTop;r=zv(r.parent)){let i=Uv(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 $pe=/^[:\-\.\w\u00b7-\uffff]*$/;function _J(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=zv(n,!0);return{from:r,to:i,options:Mpe(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(ZB(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function CJ(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:ZB(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:$pe}}function xJe(e,t,n,r){let i=[],a=0;for(let s of Mpe(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of ZB(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function kJe(e,t,n,r,i){let a=zv(n),s=a?t.tags[Uv(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:$pe}}function AJe(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),d=t.globalAttrs[u];if(!d){let f=zv(n),p=f?t.tags[Uv(e.doc,f)]:null;d=(p==null?void 0:p.attrs)&&p.attrs[u]}if(d){let f=e.sliceDoc(r,i).toLowerCase(),p='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,p="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let O of d)o.push({label:O,apply:p+O+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function Fpe(e,t){let{state:n,pos:r}=t,i=Ii(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.fromFpe(r,i)}const RJe=Mf.parser.configure({top:"SingleExpression"}),Bpe=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:Cpe.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:Rpe.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:Ipe.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:RJe},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:Mf.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:SC.parser}],Upe=[{name:"style",parser:SC.parser.configure({top:"Styles"})}].concat(Lpe.map(e=>({name:e,parser:Mf.parser}))),zpe=Pv.define({name:"html",parser:fKe.configure({props:[ZT.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:"-._"}}),y_=zpe.configure({wrap:ype(Bpe,Upe)});function IJe(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=ype((e.nestedLanguages||[]).concat(Bpe),(e.nestedAttributes||[]).concat(Upe)));let r=n?zpe.configure({wrap:n,dialect:t}):t?y_.configure({dialect:t}):y_;return new Bw(r,[y_.data.of({autocomplete:CJe(e)}),e.autoCloseTags!==!1?NJe:[],OJe().support,UKe().support])}const RJ=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),NJe=Jt.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!y_.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,d,f;let p=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,O=Ii(s).resolveInner(g,-1),S;if(p&&r==">"&&O.name=="EndTag"){let T=O.parent;if(((d=(u=T.parent)===null||u===void 0?void 0:u.lastChild)===null||d===void 0?void 0:d.name)!="CloseTag"&&(S=Uv(s.doc,T.parent,g))&&!RJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=``;return{range:l,changes:{from:g,to:w,insert:x}}}}else if(p&&r=="/"&&O.name=="IncompleteCloseTag"){let T=O.parent;if(O.from==g-2&&((f=T.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=Uv(s.doc,T,g))&&!RJ.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:dt.cursor(g+x.length,-1),changes:{from:g,to:w,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),jpe=kB({commentTokens:{block:{open:""}}}),Hpe=new Wn,Qpe=oXe.configure({props:[SO.add(e=>!e.is("Block")||e.is("Document")||jL(e)!=null||DJe(e)?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),Hpe.add(jL),ZT.add({Document:()=>null}),Hg.add({Document:jpe})]});function jL(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function DJe(e){return e.name=="OrderedList"||e.name=="BulletList"}function PJe(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=jL(r.type))!=null&&i<=t)break;n=r}return n.to}const LJe=Ofe.of((e,t,n)=>{for(let r=Ii(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function XB(e){return new pc(jpe,e,[LJe],"markdown")}const MJe=XB(Qpe),$Je=Qpe.configure([yXe,OXe,vXe,SXe,{props:[SO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),Wpe=XB($Je);function FJe(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=nC.matchLanguageName(e,n,!0),r instanceof nC)return r.support?r.support.language.parser:Fw.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class e4{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+qpe(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function Vpe(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new e4(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new e4(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],d=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),d-=4),r.push(new e4(a.parent,l,l+d,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],d=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),d-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new e4(a.parent,l,l+d,s[1],u,f,a))}}return r}function qpe(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function QD(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=qpe(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function KB(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(YT)!=" ")return e;let r=Cd(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const BJe=({state:e,dispatch:t})=>{let n=Ii(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!Wpe.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=Vpe(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let d=u[u.length-1];if(d.to-d.spaceAfter.length>o-l.from)return i={range:s};let f=o>=d.to-d.spaceAfter.length&&!/\S/.test(l.text.slice(d.to));if(d.item&&f){let T=d.node.firstChild,w=d.node.getChild("ListItem","ListItem");if(T.to>=o||w&&w.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,_="";x&&x.item?(k=l.from+x.from,_=x.marker(r,1)):k=l.from+(x?x.to:0);let I=[{from:k,to:o,insert:_}];return d.node.name=="OrderedList"&&QD(d.item,r,I,-2),x&&x.node.name=="OrderedList"&&QD(x.item,r,I),{range:dt.cursor(k+_.length),changes:I}}else{let x=NJ(u,e,l);return{range:dt.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(d.node.name=="Blockquote"&&f&&l.from){let T=r.lineAt(l.from-1),w=/>\s*$/.exec(T.text);if(w&&w.index==d.from){let x=e.changes([{from:T.from+w.index,to:T.to},{from:l.from+d.from,to:l.to}]);return{range:s.map(x),changes:x}}}let p=[];d.node.name=="OrderedList"&&QD(d.item,r,p);let g=d.item&&d.item.from]*/.exec(l.text)[0].length>=d.to)for(let T=0,w=u.length-1;T<=w;T++)O+=T==w&&!g?u[T].marker(r,1):u[T].blank(Tl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return O=KB(O,e),UJe(d.node,e.doc)&&(O=NJ(u,e,l)+e.lineBreak+O),p.push({from:S,to:o,insert:e.lineBreak+O}),{range:dt.cursor(S+O.length+1),changes:p}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function IJ(e){return e.name=="QuoteMark"||e.name=="ListMark"}function UJe(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Ii(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&Wpe.isActiveAt(e,a.from)){let l=o.lineAt(s),u=Vpe(zJe(n,s),o);if(u.length){let d=u[u.length-1],f=d.to-d.spaceAfter.length+(d.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:dt.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!d.item||l.from<=d.item.from||!/\S/.test(l.text.slice(0,d.to)))){let p=l.from+d.from;if(d.item&&d.node.fromc in v?i(v,c,{enumerable:!0,configurable:!0,writable:!0,value:h}):v[c]=h,s=(v,c,h)=>(a(v,typeof c!="symbol"?c+"":c,h),h),o;(function(v){v[v.Canceled=1]="Canceled",v[v.Unknown=2]="Unknown",v[v.InvalidArgument=3]="InvalidArgument",v[v.DeadlineExceeded=4]="DeadlineExceeded",v[v.NotFound=5]="NotFound",v[v.AlreadyExists=6]="AlreadyExists",v[v.PermissionDenied=7]="PermissionDenied",v[v.ResourceExhausted=8]="ResourceExhausted",v[v.FailedPrecondition=9]="FailedPrecondition",v[v.Aborted=10]="Aborted",v[v.OutOfRange=11]="OutOfRange",v[v.Unimplemented=12]="Unimplemented",v[v.Internal=13]="Internal",v[v.Unavailable=14]="Unavailable",v[v.DataLoss=15]="DataLoss",v[v.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(v){const c=o[v];return typeof c!="string"?v.toString():c[0].toLowerCase()+c.substring(1).replace(/[A-Z]/g,h=>"_"+h.toLowerCase())}class u extends Error{constructor(c,h=o.Unknown,b,E,P){super(d(c,h)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=c,this.code=h,this.metadata=new Headers(b??{}),this.details=E??[],this.cause=P}static from(c,h=o.Unknown){return c instanceof u?c:c instanceof Error?c.name=="AbortError"?new u(c.message,o.Canceled):new u(c.message,h,void 0,void 0,c):new u(String(c),h,void 0,void 0,c)}static[Symbol.hasInstance](c){return c instanceof Error?Object.getPrototypeOf(c)===u.prototype?!0:c.name==="ConnectError"&&"code"in c&&typeof c.code=="number"&&"metadata"in c&&"details"in c&&Array.isArray(c.details)&&"rawMessage"in c&&typeof c.rawMessage=="string"&&"cause"in c:!1}findDetails(c){const h="typeName"in c?{findMessage:E=>E===c.typeName?c:void 0}:c,b=[];for(const E of this.details){if("getType"in E){h.findMessage(E.getType().typeName)&&b.push(E);continue}const P=h.findMessage(E.type);if(P)try{b.push(P.fromBinary(E.value))}catch{}}return b}}function d(v,c){return v.length?`[${l(c)}] ${v}`:`[${l(c)}]`}function f(v,c){if(!v)throw new Error(c)}const p=34028234663852886e22,g=-34028234663852886e22,O=4294967295,S=2147483647,T=-2147483648;function w(v){if(typeof v!="number")throw new Error("invalid int 32: "+typeof v);if(!Number.isInteger(v)||v>S||vO||v<0)throw new Error("invalid uint 32: "+v)}function k(v){if(typeof v!="number")throw new Error("invalid float 32: "+typeof v);if(Number.isFinite(v)&&(v>p||v({no:E.no,name:E.name,localName:v[E.no]})))}function D(v,c,h){const b=Object.create(null),E=Object.create(null),P=[];for(const z of c){const Y=U(z);P.push(Y),b[z.name]=Y,E[z.no]=Y}return{typeName:v,values:P,findName(z){return b[z]},findNumber(z){return E[z]}}}function L(v,c,h){const b={};for(const E of c){const P=U(E);b[P.localName]=P.no,b[P.no]=P.localName}return N(b,v,c),b}function U(v){return"localName"in v?v:Object.assign(Object.assign({},v),{localName:v.name})}class B{equals(c){return this.getType().runtime.util.equals(this.getType(),this,c)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(c,h){const b=this.getType(),E=b.runtime.bin,P=E.makeReadOptions(h);return E.readMessage(this,P.readerFactory(c),c.byteLength,P),this}fromJson(c,h){const b=this.getType(),E=b.runtime.json,P=E.makeReadOptions(h);return E.readMessage(b,c,P,this),this}fromJsonString(c,h){let b;try{b=JSON.parse(c)}catch(E){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${E instanceof Error?E.message:String(E)}`)}return this.fromJson(b,h)}toBinary(c){const h=this.getType(),b=h.runtime.bin,E=b.makeWriteOptions(c),P=E.writerFactory();return b.writeMessage(this,P,E),P.finish()}toJson(c){const h=this.getType(),b=h.runtime.json,E=b.makeWriteOptions(c);return b.writeMessage(this,E)}toJsonString(c){var h;const b=this.toJson(c);return JSON.stringify(b,null,(h=c==null?void 0:c.prettySpaces)!==null&&h!==void 0?h:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function W(v,c,h,b){var E;const P=(E=b==null?void 0:b.localName)!==null&&E!==void 0?E:c.substring(c.lastIndexOf(".")+1),z={[P]:function(Y){v.util.initFields(this),v.util.initPartial(Y,this)}}[P];return Object.setPrototypeOf(z.prototype,new B),Object.assign(z,{runtime:v,typeName:c,fields:v.util.newFieldList(h),fromBinary(Y,fe){return new z().fromBinary(Y,fe)},fromJson(Y,fe){return new z().fromJson(Y,fe)},fromJsonString(Y,fe){return new z().fromJsonString(Y,fe)},equals(Y,fe){return v.util.equals(z,Y,fe)}}),z}function V(){let v=0,c=0;for(let b=0;b<28;b+=7){let E=this.buf[this.pos++];if(v|=(E&127)<>4,!(h&128))return this.assertBounds(),[v,c];for(let b=3;b<=31;b+=7){let E=this.buf[this.pos++];if(c|=(E&127)<>>P,Y=!(!(z>>>7)&&c==0),fe=(Y?z|128:z)&255;if(h.push(fe),!Y)return}const b=v>>>28&15|(c&7)<<4,E=!!(c>>3);if(h.push((E?b|128:b)&255),!!E){for(let P=3;P<31;P=P+7){const z=c>>>P,Y=!!(z>>>7),fe=(Y?z|128:z)&255;if(h.push(fe),!Y)return}h.push(c>>>31&1)}}const ee=4294967296;function q(v){const c=v[0]==="-";c&&(v=v.slice(1));const h=1e6;let b=0,E=0;function P(z,Y){const fe=Number(v.slice(z,Y));E*=h,b=b*h+fe,b>=ee&&(E=E+(b/ee|0),b=b%ee)}return P(-24,-18),P(-18,-12),P(-12,-6),P(-6),c?H(b,E):ie(b,E)}function ne(v,c){let h=ie(v,c);const b=h.hi&2147483648;b&&(h=H(h.lo,h.hi));const E=K(h.lo,h.hi);return b?"-"+E:E}function K(v,c){if({lo:v,hi:c}=G(v,c),c<=2097151)return String(ee*c+v);const h=v&16777215,b=(v>>>24|c<<8)&16777215,E=c>>16&65535;let P=h+b*6777216+E*6710656,z=b+E*8147497,Y=E*2;const fe=1e7;return P>=fe&&(z+=Math.floor(P/fe),P%=fe),z>=fe&&(Y+=Math.floor(z/fe),z%=fe),Y.toString()+Re(z)+Re(P)}function G(v,c){return{lo:v>>>0,hi:c>>>0}}function ie(v,c){return{lo:v|0,hi:c|0}}function H(v,c){return c=~c,v?v=~v+1:c+=1,ie(v,c)}const Re=v=>{const c=String(v);return"0000000".slice(c.length)+c};function Se(v,c){if(v>=0){for(;v>127;)c.push(v&127|128),v=v>>>7;c.push(v)}else{for(let h=0;h<9;h++)c.push(v&127|128),v=v>>7;c.push(1)}}function Z(){let v=this.buf[this.pos++],c=v&127;if(!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<7,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<14,!(v&128))return this.assertBounds(),c;if(v=this.buf[this.pos++],c|=(v&127)<<21,!(v&128))return this.assertBounds(),c;v=this.buf[this.pos++],c|=(v&15)<<28;for(let h=5;v&128&&h<10;h++)v=this.buf[this.pos++];if(v&128)throw new Error("invalid varint");return this.assertBounds(),c>>>0}function ke(){const v=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof v.getBigInt64=="function"&&typeof v.getBigUint64=="function"&&typeof v.setBigInt64=="function"&&typeof v.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const E=BigInt("-9223372036854775808"),P=BigInt("9223372036854775807"),z=BigInt("0"),Y=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(fe){const me=typeof fe=="bigint"?fe:BigInt(fe);if(me>P||meY||mef(/^-?[0-9]+$/.test(E),`int64 invalid: ${E}`),b=E=>f(/^[0-9]+$/.test(E),`uint64 invalid: ${E}`);return{zero:"0",supported:!1,parse(E){return typeof E!="string"&&(E=E.toString()),h(E),E},uParse(E){return typeof E!="string"&&(E=E.toString()),b(E),E},enc(E){return typeof E!="string"&&(E=E.toString()),h(E),q(E)},uEnc(E){return typeof E!="string"&&(E=E.toString()),b(E),q(E)},dec(E,P){return ne(E,P)},uDec(E,P){return K(E,P)}}}const $e=ke();var ae;(function(v){v[v.DOUBLE=1]="DOUBLE",v[v.FLOAT=2]="FLOAT",v[v.INT64=3]="INT64",v[v.UINT64=4]="UINT64",v[v.INT32=5]="INT32",v[v.FIXED64=6]="FIXED64",v[v.FIXED32=7]="FIXED32",v[v.BOOL=8]="BOOL",v[v.STRING=9]="STRING",v[v.BYTES=12]="BYTES",v[v.UINT32=13]="UINT32",v[v.SFIXED32=15]="SFIXED32",v[v.SFIXED64=16]="SFIXED64",v[v.SINT32=17]="SINT32",v[v.SINT64=18]="SINT64"})(ae||(ae={}));var Xe;(function(v){v[v.BIGINT=0]="BIGINT",v[v.STRING=1]="STRING"})(Xe||(Xe={}));function We(v,c,h){if(c===h)return!0;if(v==ae.BYTES){if(!(c instanceof Uint8Array)||!(h instanceof Uint8Array)||c.length!==h.length)return!1;for(let b=0;b>>0)}raw(c){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(c),this}uint32(c){for(x(c);c>127;)this.buf.push(c&127|128),c=c>>>7;return this.buf.push(c),this}int32(c){return w(c),Se(c,this.buf),this}bool(c){return this.buf.push(c?1:0),this}bytes(c){return this.uint32(c.byteLength),this.raw(c)}string(c){let h=this.textEncoder.encode(c);return this.uint32(h.byteLength),this.raw(h)}float(c){k(c);let h=new Uint8Array(4);return new DataView(h.buffer).setFloat32(0,c,!0),this.raw(h)}double(c){let h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),this.raw(h)}fixed32(c){x(c);let h=new Uint8Array(4);return new DataView(h.buffer).setUint32(0,c,!0),this.raw(h)}sfixed32(c){w(c);let h=new Uint8Array(4);return new DataView(h.buffer).setInt32(0,c,!0),this.raw(h)}sint32(c){return w(c),c=(c<<1^c>>31)>>>0,Se(c,this.buf),this}sfixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.enc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}fixed64(c){let h=new Uint8Array(8),b=new DataView(h.buffer),E=$e.uEnc(c);return b.setInt32(0,E.lo,!0),b.setInt32(4,E.hi,!0),this.raw(h)}int64(c){let h=$e.enc(c);return re(h.lo,h.hi,this.buf),this}sint64(c){let h=$e.enc(c),b=h.hi>>31,E=h.lo<<1^b,P=(h.hi<<1|h.lo>>>31)^b;return re(E,P,this.buf),this}uint64(c){let h=$e.uEnc(c);return re(h.lo,h.hi,this.buf),this}}class jt{constructor(c,h){this.varint64=V,this.uint32=Z,this.buf=c,this.len=c.length,this.pos=0,this.view=new DataView(c.buffer,c.byteOffset,c.byteLength),this.textDecoder=h??new TextDecoder}tag(){let c=this.uint32(),h=c>>>3,b=c&7;if(h<=0||b<0||b>5)throw new Error("illegal tag: field no "+h+" wire type "+b);return[h,b]}skip(c,h){let b=this.pos;switch(c){case st.Varint:for(;this.buf[this.pos++]&128;);break;case st.Bit64:this.pos+=4;case st.Bit32:this.pos+=4;break;case st.LengthDelimited:let E=this.uint32();this.pos+=E;break;case st.StartGroup:for(;;){const[P,z]=this.tag();if(z===st.EndGroup){if(h!==void 0&&P!==h)throw new Error("invalid end group tag");break}this.skip(z,P)}break;default:throw new Error("cant skip wire type "+c)}return this.assertBounds(),this.buf.subarray(b,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let c=this.uint32();return c>>>1^-(c&1)}int64(){return $e.dec(...this.varint64())}uint64(){return $e.uDec(...this.varint64())}sint64(){let[c,h]=this.varint64(),b=-(c&1);return c=(c>>>1|(h&1)<<31)^b,h=h>>>1^b,$e.dec(c,h)}bool(){let[c,h]=this.varint64();return c!==0||h!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return $e.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return $e.dec(this.sfixed32(),this.sfixed32())}float(){return this.view.getFloat32((this.pos+=4)-4,!0)}double(){return this.view.getFloat64((this.pos+=8)-8,!0)}bytes(){let c=this.uint32(),h=this.pos;return this.pos+=c,this.assertBounds(),this.buf.subarray(h,h+c)}string(){return this.textDecoder.decode(this.bytes())}}function ut(v,c,h,b){let E;return{typeName:c,extendee:h,get field(){if(!E){const P=typeof b=="function"?b():b;P.name=c.split(".").pop(),P.jsonName=`[${c}]`,E=v.util.newFieldList([P]).list()[0]}return E},runtime:v}}function Ot(v){const c=v.field.localName,h=Object.create(null);return h[c]=yt(v),[h,()=>h[c]]}function yt(v){const c=v.field;if(c.repeated)return[];if(c.default!==void 0)return c.default;switch(c.kind){case"enum":return c.T.values[0].no;case"scalar":return Ye(c.T,c.L);case"message":const h=c.T,b=new h;return h.fieldWrapper?h.fieldWrapper.unwrapField(b):b;case"map":throw"map fields are not allowed to be extensions"}}function Ut(v,c){if(!c.repeated&&(c.kind=="enum"||c.kind=="scalar")){for(let h=v.length-1;h>=0;--h)if(v[h].no==c.no)return[v[h]];return[]}return v.filter(h=>h.no===c.no)}let de="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),Ce=[];for(let v=0;v>4,z=P,E=2;break;case 2:h[b++]=(z&15)<<4|(P&60)>>2,z=P,E=3;break;case 3:h[b++]=(z&3)<<6|P,E=0;break}}if(E==1)throw Error("invalid base64 string.");return h.subarray(0,b)},enc(v){let c="",h=0,b,E=0;for(let P=0;P>2],E=(b&3)<<4,h=1;break;case 1:c+=de[E|b>>4],E=(b&15)<<2,h=2;break;case 2:c+=de[E|b>>6],c+=de[b&63],h=0;break}return h&&(c+=de[E],c+="=",h==1&&(c+="=")),c}};function Ke(v,c,h){gt(c,v);const b=c.runtime.bin.makeReadOptions(h),E=Ut(v.getType().runtime.bin.listUnknownFields(v),c.field),[P,z]=Ot(c);for(const Y of E)c.runtime.bin.readField(P,b.readerFactory(Y.data),c.field,Y.wireType,b);return z()}function ct(v,c,h,b){gt(c,v);const E=c.runtime.bin.makeReadOptions(b),P=c.runtime.bin.makeWriteOptions(b);if(Je(v,c)){const me=v.getType().runtime.bin.listUnknownFields(v).filter(Pe=>Pe.no!=c.field.no);v.getType().runtime.bin.discardUnknownFields(v);for(const Pe of me)v.getType().runtime.bin.onUnknownField(v,Pe.no,Pe.wireType,Pe.data)}const z=P.writerFactory();let Y=c.field;!Y.opt&&!Y.repeated&&(Y.kind=="enum"||Y.kind=="scalar")&&(Y=Object.assign(Object.assign({},c.field),{opt:!0})),c.runtime.bin.writeField(Y,h,z,P);const fe=E.readerFactory(z.finish());for(;fe.posb.no==c.field.no)}function gt(v,c){f(v.extendee.typeName==c.getType().typeName,`extension ${v.typeName} can only be applied to message ${v.extendee.typeName}`)}function en(v,c){const h=v.localName;if(v.repeated)return c[h].length>0;if(v.oneof)return c[v.oneof.localName].case===h;switch(v.kind){case"enum":case"scalar":return v.opt||v.req?c[h]!==void 0:v.kind=="enum"?c[h]!==v.T.values[0].no:!xt(v.T,c[h]);case"message":return c[h]!==void 0;case"map":return Object.keys(c[h]).length>0}}function Fe(v,c){const h=v.localName,b=!v.opt&&!v.req;if(v.repeated)c[h]=[];else if(v.oneof)c[v.oneof.localName]={case:void 0};else switch(v.kind){case"map":c[h]={};break;case"enum":c[h]=b?v.T.values[0].no:void 0;break;case"scalar":c[h]=b?Ye(v.T,v.L):void 0;break;case"message":c[h]=void 0;break}}function Te(v,c){if(v===null||typeof v!="object"||!Object.getOwnPropertyNames(B.prototype).every(b=>b in v&&typeof v[b]=="function"))return!1;const h=v.getType();return h===null||typeof h!="function"||!("typeName"in h)||typeof h.typeName!="string"?!1:c===void 0?!0:h.typeName==c.typeName}function ye(v,c){return Te(c)||!v.fieldWrapper?c:v.fieldWrapper.wrapField(c)}ae.DOUBLE,ae.FLOAT,ae.INT64,ae.UINT64,ae.INT32,ae.UINT32,ae.BOOL,ae.STRING,ae.BYTES;const xe={ignoreUnknownFields:!1},Ue={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Ct(v){return v?Object.assign(Object.assign({},xe),v):xe}function qt(v){return v?Object.assign(Object.assign({},Ue),v):Ue}const tt=Symbol(),Wt=Symbol();function Ht(){return{makeReadOptions:Ct,makeWriteOptions:qt,readMessage(v,c,h,b){if(c==null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message ${v.typeName} from JSON: ${zt(c)}`);b=b??new v;const E=new Map,P=h.typeRegistry;for(const[z,Y]of Object.entries(c)){const fe=v.fields.findJsonName(z);if(fe){if(fe.oneof){if(Y===null&&fe.kind=="scalar")continue;const me=E.get(fe.oneof);if(me!==void 0)throw new Error(`cannot decode message ${v.typeName} from JSON: multiple keys for oneof "${fe.oneof.name}" present: "${me}", "${z}"`);E.set(fe.oneof,z)}Sn(b,Y,fe,h,v)}else{let me=!1;if(P!=null&&P.findExtension&&z.startsWith("[")&&z.endsWith("]")){const Pe=P.findExtension(z.substring(1,z.length-1));if(Pe&&Pe.extendee.typeName==v.typeName){me=!0;const[vt,ft]=Ot(Pe);Sn(vt,Y,Pe.field,h,Pe),ct(b,Pe,ft(),h)}}if(!me&&!h.ignoreUnknownFields)throw new Error(`cannot decode message ${v.typeName} from JSON: key "${z}" is unknown`)}}return b},writeMessage(v,c){const h=v.getType(),b={};let E;try{for(E of h.fields.byNumber()){if(!en(E,v)){if(E.req)throw"required field not set";if(!c.emitDefaultValues||!Yr(E))continue}const z=E.oneof?v[E.oneof.localName].value:v[E.localName],Y=Di(E,z,c);Y!==void 0&&(b[c.useProtoFieldName?E.name:E.jsonName]=Y)}const P=c.typeRegistry;if(P!=null&&P.findExtensionFor)for(const z of h.runtime.bin.listUnknownFields(v)){const Y=P.findExtensionFor(h.typeName,z.no);if(Y&&Je(v,Y)){const fe=Ke(v,Y,c),me=Di(Y.field,fe,c);me!==void 0&&(b[Y.field.jsonName]=me)}}}catch(P){const z=E?`cannot encode field ${h.typeName}.${E.name} to JSON`:`cannot encode message ${h.typeName} to JSON`,Y=P instanceof Error?P.message:String(P);throw new Error(z+(Y.length>0?`: ${Y}`:""))}return b},readScalar(v,c,h){return Mr(v,c,h??Xe.BIGINT,!0)},writeScalar(v,c,h){if(c!==void 0&&(h||xt(v,c)))return ji(v,c)},debug:zt}}function zt(v){if(v===null)return"null";switch(typeof v){case"object":return Array.isArray(v)?"array":"object";case"string":return v.length>100?"string":`"${v.split('"').join('\\"')}"`;default:return String(v)}}function Sn(v,c,h,b,E){let P=h.localName;if(h.repeated){if(f(h.kind!="map"),c===null)return;if(!Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`);const z=v[P];for(const Y of c){if(Y===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(Y)}`);switch(h.kind){case"message":z.push(h.T.fromJson(Y,b));break;case"enum":const fe=Rr(h.T,Y,b.ignoreUnknownFields,!0);fe!==Wt&&z.push(fe);break;case"scalar":try{z.push(Mr(h.T,Y,h.L,!0))}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(Y)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}}else if(h.kind=="map"){if(c===null)return;if(typeof c!="object"||Array.isArray(c))throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`);const z=v[P];for(const[Y,fe]of Object.entries(c)){if(fe===null)throw new Error(`cannot decode field ${E.typeName}.${h.name} from JSON: map value null`);let me;try{me=pr(h.K,Y)}catch(Pe){let vt=`cannot decode map key for field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw Pe instanceof Error&&Pe.message.length>0&&(vt+=`: ${Pe.message}`),new Error(vt)}switch(h.V.kind){case"message":z[me]=h.V.T.fromJson(fe,b);break;case"enum":const Pe=Rr(h.V.T,fe,b.ignoreUnknownFields,!0);Pe!==Wt&&(z[me]=Pe);break;case"scalar":try{z[me]=Mr(h.V.T,fe,Xe.BIGINT,!0)}catch(vt){let ft=`cannot decode map value for field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw vt instanceof Error&&vt.message.length>0&&(ft+=`: ${vt.message}`),new Error(ft)}break}}}else switch(h.oneof&&(v=v[h.oneof.localName]={case:P},P="value"),h.kind){case"message":const z=h.T;if(c===null&&z.typeName!="google.protobuf.Value")return;let Y=v[P];Te(Y)?Y.fromJson(c,b):(v[P]=Y=z.fromJson(c,b),z.fieldWrapper&&!h.oneof&&(v[P]=z.fieldWrapper.unwrapField(Y)));break;case"enum":const fe=Rr(h.T,c,b.ignoreUnknownFields,!1);switch(fe){case tt:Fe(h,v);break;case Wt:break;default:v[P]=fe;break}break;case"scalar":try{const me=Mr(h.T,c,h.L,!1);switch(me){case tt:Fe(h,v);break;default:v[P]=me;break}}catch(me){let Pe=`cannot decode field ${E.typeName}.${h.name} from JSON: ${zt(c)}`;throw me instanceof Error&&me.message.length>0&&(Pe+=`: ${me.message}`),new Error(Pe)}break}}function pr(v,c){if(v===ae.BOOL)switch(c){case"true":c=!0;break;case"false":c=!1;break}return Mr(v,c,Xe.BIGINT,!0).toString()}function Mr(v,c,h,b){if(c===null)return b?Ye(v,h):tt;switch(v){case ae.DOUBLE:case ae.FLOAT:if(c==="NaN")return Number.NaN;if(c==="Infinity")return Number.POSITIVE_INFINITY;if(c==="-Infinity")return Number.NEGATIVE_INFINITY;if(c===""||typeof c=="string"&&c.trim().length!==c.length||typeof c!="string"&&typeof c!="number")break;const E=Number(c);if(Number.isNaN(E)||!Number.isFinite(E))break;return v==ae.FLOAT&&k(E),E;case ae.INT32:case ae.FIXED32:case ae.SFIXED32:case ae.SINT32:case ae.UINT32:let P;if(typeof c=="number"?P=c:typeof c=="string"&&c.length>0&&c.trim().length===c.length&&(P=Number(c)),P===void 0)break;return v==ae.UINT32||v==ae.FIXED32?x(P):w(P),P;case ae.INT64:case ae.SFIXED64:case ae.SINT64:if(typeof c!="number"&&typeof c!="string")break;const z=$e.parse(c);return h?z.toString():z;case ae.FIXED64:case ae.UINT64:if(typeof c!="number"&&typeof c!="string")break;const Y=$e.uParse(c);return h?Y.toString():Y;case ae.BOOL:if(typeof c!="boolean")break;return c;case ae.STRING:if(typeof c!="string")break;try{encodeURIComponent(c)}catch{throw new Error("invalid UTF8")}return c;case ae.BYTES:if(c==="")return new Uint8Array(0);if(typeof c!="string")break;return Ne.dec(c)}throw new Error}function Rr(v,c,h,b){if(c===null)return v.typeName=="google.protobuf.NullValue"?0:b?v.values[0].no:tt;switch(typeof c){case"number":if(Number.isInteger(c))return c;break;case"string":const E=v.findName(c);if(E!==void 0)return E.no;if(h)return Wt;break}throw new Error(`cannot decode enum ${v.typeName} from JSON: ${zt(c)}`)}function Yr(v){return v.repeated||v.kind=="map"?!0:!(v.oneof||v.kind=="message"||v.opt||v.req)}function Di(v,c,h){if(v.kind=="map"){f(typeof c=="object"&&c!=null);const b={},E=Object.entries(c);switch(v.V.kind){case"scalar":for(const[z,Y]of E)b[z.toString()]=ji(v.V.T,Y);break;case"message":for(const[z,Y]of E)b[z.toString()]=Y.toJson(h);break;case"enum":const P=v.V.T;for(const[z,Y]of E)b[z.toString()]=hi(P,Y,h.enumAsInteger);break}return h.emitDefaultValues||E.length>0?b:void 0}if(v.repeated){f(Array.isArray(c));const b=[];switch(v.kind){case"scalar":for(let E=0;E0?b:void 0}switch(v.kind){case"scalar":return ji(v.T,c);case"enum":return hi(v.T,c,h.enumAsInteger);case"message":return ye(v.T,c).toJson(h)}}function hi(v,c,h){var b;if(f(typeof c=="number"),v.typeName=="google.protobuf.NullValue")return null;if(h)return c;const E=v.findNumber(c);return(b=E==null?void 0:E.name)!==null&&b!==void 0?b:c}function ji(v,c){switch(v){case ae.INT32:case ae.SFIXED32:case ae.SINT32:case ae.FIXED32:case ae.UINT32:return f(typeof c=="number"),c;case ae.FLOAT:case ae.DOUBLE:return f(typeof c=="number"),Number.isNaN(c)?"NaN":c===Number.POSITIVE_INFINITY?"Infinity":c===Number.NEGATIVE_INFINITY?"-Infinity":c;case ae.STRING:return f(typeof c=="string"),c;case ae.BOOL:return f(typeof c=="boolean"),c;case ae.UINT64:case ae.FIXED64:case ae.INT64:case ae.SFIXED64:case ae.SINT64:return f(typeof c=="bigint"||typeof c=="string"||typeof c=="number"),c.toString();case ae.BYTES:return f(c instanceof Uint8Array),Ne.enc(c)}}const pi=Symbol("@bufbuild/protobuf/unknown-fields"),fs={readUnknownFields:!0,readerFactory:v=>new jt(v)},Hi={writeUnknownFields:!0,writerFactory:()=>new Pt};function Js(v){return v?Object.assign(Object.assign({},fs),v):fs}function Qi(v){return v?Object.assign(Object.assign({},Hi),v):Hi}function Ur(){return{makeReadOptions:Js,makeWriteOptions:Qi,listUnknownFields(v){var c;return(c=v[pi])!==null&&c!==void 0?c:[]},discardUnknownFields(v){delete v[pi]},writeUnknownFields(v,c){const b=v[pi];if(b)for(const E of b)c.tag(E.no,E.wireType).raw(E.data)},onUnknownField(v,c,h,b){const E=v;Array.isArray(E[pi])||(E[pi]=[]),E[pi].push({no:c,wireType:h,data:b})},readMessage(v,c,h,b,E){const P=v.getType(),z=E?c.len:c.pos+h;let Y,fe;for(;c.pos0&&(fe=nt),P){let ft=v[z];if(b==st.LengthDelimited&&Y!=ae.STRING&&Y!=ae.BYTES){let Xt=c.uint32()+c.pos;for(;c.posTe(ft,vt)?ft:new vt(ft));else{const ft=z[E];vt.fieldWrapper?vt.typeName==="google.protobuf.BytesValue"?P[E]=qe(ft):P[E]=ft:P[E]=Te(ft,vt)?ft:new vt(ft)}break}}},equals(v,c,h){return c===h?!0:!c||!h?!1:v.fields.byMember().every(b=>{const E=c[b.localName],P=h[b.localName];if(b.repeated){if(E.length!==P.length)return!1;switch(b.kind){case"message":return E.every((z,Y)=>b.T.equals(z,P[Y]));case"scalar":return E.every((z,Y)=>We(b.T,z,P[Y]));case"enum":return E.every((z,Y)=>We(ae.INT32,z,P[Y]))}throw new Error(`repeated cannot contain ${b.kind}`)}switch(b.kind){case"message":return b.T.equals(E,P);case"enum":return We(ae.INT32,E,P);case"scalar":return We(b.T,E,P);case"oneof":if(E.case!==P.case)return!1;const z=b.findField(E.case);if(z===void 0)return!0;switch(z.kind){case"message":return z.T.equals(E.value,P.value);case"enum":return We(ae.INT32,E.value,P.value);case"scalar":return We(z.T,E.value,P.value)}throw new Error(`oneof cannot contain ${z.kind}`);case"map":const Y=Object.keys(E).concat(Object.keys(P));switch(b.V.kind){case"message":const fe=b.V.T;return Y.every(Pe=>fe.equals(E[Pe],P[Pe]));case"enum":return Y.every(Pe=>We(ae.INT32,E[Pe],P[Pe]));case"scalar":const me=b.V.T;return Y.every(Pe=>We(me,E[Pe],P[Pe]))}break}})},clone(v){const c=v.getType(),h=new c,b=h;for(const E of c.fields.byMember()){const P=v[E.localName];let z;if(E.repeated)z=P.map(ot);else if(E.kind=="map"){z=b[E.localName];for(const[Y,fe]of Object.entries(P))z[Y]=ot(fe)}else E.kind=="oneof"?z=E.findField(P.case)?{case:P.case,value:ot(P.value)}:{case:void 0}:z=ot(P);b[E.localName]=z}for(const E of c.runtime.bin.listUnknownFields(v))c.runtime.bin.onUnknownField(b,E.no,E.wireType,E.data);return h}}}function ot(v){if(v===void 0)return v;if(Te(v))return v.clone();if(v instanceof Uint8Array){const c=new Uint8Array(v.byteLength);return c.set(v),c}return v}function qe(v){return v instanceof Uint8Array?v:new Uint8Array(v)}function Et(v,c,h){return{syntax:v,json:Ht(),bin:Ur(),util:Object.assign(Object.assign({},we()),{newFieldList:c,initFields:h}),makeMessageType(b,E,P){return W(this,b,E,P)},makeEnum:L,makeEnumType:D,getEnumType:I,makeExtension(b,E,P){return ut(this,b,E,P)}}}class _t{constructor(c,h){this._fields=c,this._normalizer=h}findJsonName(c){if(!this.jsonNames){const h={};for(const b of this.list())h[b.jsonName]=h[b.name]=b;this.jsonNames=h}return this.jsonNames[c]}find(c){if(!this.numbers){const h={};for(const b of this.list())h[b.no]=b;this.numbers=h}return this.numbers[c]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((c,h)=>c.no-h.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const c=this.members;let h;for(const b of this.list())b.oneof?b.oneof!==h&&(h=b.oneof,c.push(h)):c.push(b)}return this.members}}function Gt(v,c){const h=Wi(v);return c?h:Fl($l(h))}function jn(v){return Gt(v,!1)}const qn=Wi;function Wi(v){let c=!1;const h=[];for(let b=0;b`${v}$`,$l=v=>Fu.has(v)?To(v):v,Fl=v=>ti.has(v)?To(v):v;class Bl{constructor(c){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=c,this.localName=jn(c)}addField(c){f(c.oneof===this,`field ${c.name} not one of ${this.name}`),this.fields.push(c)}findField(c){if(!this._lookup){this._lookup=Object.create(null);for(let h=0;hnew _t(v,c=>Cs(c)),v=>{for(const c of v.getType().fields.byMember()){if(c.opt)continue;const h=c.localName,b=v;if(c.repeated){b[h]=[];continue}switch(c.kind){case"oneof":b[h]={case:void 0};break;case"enum":b[h]=0;break;case"map":b[h]={};break;case"scalar":b[h]=Ye(c.T,c.L);break}}});var fa;(function(v){v[v.Unary=0]="Unary",v[v.ServerStreaming=1]="ServerStreaming",v[v.ClientStreaming=2]="ClientStreaming",v[v.BiDiStreaming=3]="BiDiStreaming"})(fa||(fa={}));var ih;(function(v){v[v.NoSideEffects=1]="NoSideEffects",v[v.Idempotent=2]="Idempotent"})(ih||(ih={}));class En extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${je.json.debug(c)}`);const b=c.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!b)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const E=Date.parse(b[1]+"-"+b[2]+"-"+b[3]+"T"+b[4]+":"+b[5]+":"+b[6]+(b[8]?b[8]:"Z"));if(Number.isNaN(E))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(EDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=$e.parse(E/1e3),this.nanos=0,b[7]&&(this.nanos=parseInt("1"+b[7]+"0".repeat(9-b[7].length))-1e9),this}toJson(c){const h=Number(this.seconds)*1e3;if(hDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let b="Z";if(this.nanos>0){const E=(this.nanos+1e9).toString().substring(1);E.substring(3)==="000000"?b="."+E.substring(0,3)+"Z":E.substring(6)==="000"?b="."+E.substring(0,6)+"Z":b="."+E+"Z"}return new Date(h).toISOString().replace(".000Z",b)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return En.fromDate(new Date)}static fromDate(c){const h=c.getTime();return new En({seconds:$e.parse(Math.floor(h/1e3)),nanos:h%1e3*1e6})}static fromBinary(c,h){return new En().fromBinary(c,h)}static fromJson(c,h){return new En().fromJson(c,h)}static fromJsonString(c,h){return new En().fromJsonString(c,h)}static equals(c,h){return je.util.equals(En,c,h)}}En.runtime=je,En.typeName="google.protobuf.Timestamp",En.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Tr extends B{constructor(c){super(),this.seconds=$e.zero,this.nanos=0,je.util.initPartial(c,this)}fromJson(c,h){if(typeof c!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const b=c.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(b===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);const E=Number(b[1]);if(E>315576e6||E<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${je.json.debug(c)}`);if(this.seconds=$e.parse(E),typeof b[2]=="string"){const P=b[2]+"0".repeat(9-b[2].length);this.nanos=parseInt(P),(E<0||Object.is(E,-0))&&(this.nanos=-this.nanos)}return this}toJson(c){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let h=this.seconds.toString();if(this.nanos!==0){let b=Math.abs(this.nanos).toString();b="0".repeat(9-b.length)+b,b.substring(3)==="000000"?b=b.substring(0,3):b.substring(6)==="000"&&(b=b.substring(0,6)),h+="."+b,this.nanos<0&&Number(this.seconds)==0&&(h="-"+h)}return h+"s"}static fromBinary(c,h){return new Tr().fromBinary(c,h)}static fromJson(c,h){return new Tr().fromJson(c,h)}static fromJsonString(c,h){return new Tr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Tr,c,h)}}Tr.runtime=je,Tr.typeName="google.protobuf.Duration",Tr.fields=je.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class mi extends B{constructor(c){super(),this.typeUrl="",this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){var h;if(this.typeUrl==="")return{};const b=this.typeUrlToName(this.typeUrl),E=(h=c==null?void 0:c.typeRegistry)===null||h===void 0?void 0:h.findMessage(b);if(!E)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let z=E.fromBinary(this.value).toJson(c);return(b.startsWith("google.protobuf.")||z===null||Array.isArray(z)||typeof z!="object")&&(z={value:z}),z["@type"]=this.typeUrl,z}fromJson(c,h){var b;if(c===null||Array.isArray(c)||typeof c!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${c===null?"null":Array.isArray(c)?"array":typeof c}`);if(Object.keys(c).length==0)return this;const E=c["@type"];if(typeof E!="string"||E=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const P=this.typeUrlToName(E),z=(b=h==null?void 0:h.typeRegistry)===null||b===void 0?void 0:b.findMessage(P);if(!z)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${E} is not in the type registry`);let Y;if(P.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(c,"value"))Y=z.fromJson(c.value,h);else{const fe=Object.assign({},c);delete fe["@type"],Y=z.fromJson(fe,h)}return this.packFrom(Y),this}packFrom(c){this.value=c.toBinary(),this.typeUrl=this.typeNameToUrl(c.getType().typeName)}unpackTo(c){return this.is(c.getType())?(c.fromBinary(this.value),!0):!1}unpack(c){if(this.typeUrl==="")return;const h=c.findMessage(this.typeUrlToName(this.typeUrl));if(h)return h.fromBinary(this.value)}is(c){if(this.typeUrl==="")return!1;const h=this.typeUrlToName(this.typeUrl);let b="";return typeof c=="string"?b=c:b=c.typeName,h===b}typeNameToUrl(c){return`type.googleapis.com/${c}`}typeUrlToName(c){if(!c.length)throw new Error(`invalid type url: ${c}`);const h=c.lastIndexOf("/"),b=h>=0?c.substring(h+1):c;if(!b.length)throw new Error(`invalid type url: ${c}`);return b}static pack(c){const h=new mi;return h.packFrom(c),h}static fromBinary(c,h){return new mi().fromBinary(c,h)}static fromJson(c,h){return new mi().fromJson(c,h)}static fromJsonString(c,h){return new mi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(mi,c,h)}}mi.runtime=je,mi.typeName="google.protobuf.Any",mi.fields=je.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class dr extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.DOUBLE,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.DOUBLE,c)}catch(b){let E='cannot decode message google.protobuf.DoubleValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new dr().fromBinary(c,h)}static fromJson(c,h){return new dr().fromJson(c,h)}static fromJsonString(c,h){return new dr().fromJsonString(c,h)}static equals(c,h){return je.util.equals(dr,c,h)}}dr.runtime=je,dr.typeName="google.protobuf.DoubleValue",dr.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),dr.fieldWrapper={wrapField(v){return new dr({value:v})},unwrapField(v){return v.value}};class Vi extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.FLOAT,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.FLOAT,c)}catch(b){let E='cannot decode message google.protobuf.FloatValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Vi().fromBinary(c,h)}static fromJson(c,h){return new Vi().fromJson(c,h)}static fromJsonString(c,h){return new Vi().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Vi,c,h)}}Vi.runtime=je,Vi.typeName="google.protobuf.FloatValue",Vi.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),Vi.fieldWrapper={wrapField(v){return new Vi({value:v})},unwrapField(v){return v.value}};class xo extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT64,c)}catch(b){let E='cannot decode message google.protobuf.Int64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new xo().fromBinary(c,h)}static fromJson(c,h){return new xo().fromJson(c,h)}static fromJsonString(c,h){return new xo().fromJsonString(c,h)}static equals(c,h){return je.util.equals(xo,c,h)}}xo.runtime=je,xo.typeName="google.protobuf.Int64Value",xo.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),xo.fieldWrapper={wrapField(v){return new xo({value:v})},unwrapField(v){return v.value}};class ko extends B{constructor(c){super(),this.value=$e.zero,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT64,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT64,c)}catch(b){let E='cannot decode message google.protobuf.UInt64Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new ko().fromBinary(c,h)}static fromJson(c,h){return new ko().fromJson(c,h)}static fromJsonString(c,h){return new ko().fromJsonString(c,h)}static equals(c,h){return je.util.equals(ko,c,h)}}ko.runtime=je,ko.typeName="google.protobuf.UInt64Value",ko.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),ko.fieldWrapper={wrapField(v){return new ko({value:v})},unwrapField(v){return v.value}};class Ao extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.INT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.INT32,c)}catch(b){let E='cannot decode message google.protobuf.Int32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ao().fromBinary(c,h)}static fromJson(c,h){return new Ao().fromJson(c,h)}static fromJsonString(c,h){return new Ao().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ao,c,h)}}Ao.runtime=je,Ao.typeName="google.protobuf.Int32Value",Ao.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),Ao.fieldWrapper={wrapField(v){return new Ao({value:v})},unwrapField(v){return v.value}};class Ul extends B{constructor(c){super(),this.value=0,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.UINT32,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.UINT32,c)}catch(b){let E='cannot decode message google.protobuf.UInt32Value from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Ul().fromBinary(c,h)}static fromJson(c,h){return new Ul().fromJson(c,h)}static fromJsonString(c,h){return new Ul().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Ul,c,h)}}Ul.runtime=je,Ul.typeName="google.protobuf.UInt32Value",Ul.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Ul.fieldWrapper={wrapField(v){return new Ul({value:v})},unwrapField(v){return v.value}};class Bu extends B{constructor(c){super(),this.value=!1,je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BOOL,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BOOL,c)}catch(b){let E='cannot decode message google.protobuf.BoolValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new Bu().fromBinary(c,h)}static fromJson(c,h){return new Bu().fromJson(c,h)}static fromJsonString(c,h){return new Bu().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Bu,c,h)}}Bu.runtime=je,Bu.typeName="google.protobuf.BoolValue",Bu.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),Bu.fieldWrapper={wrapField(v){return new Bu({value:v})},unwrapField(v){return v.value}};class eo extends B{constructor(c){super(),this.value="",je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.STRING,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.STRING,c)}catch(b){let E='cannot decode message google.protobuf.StringValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new eo().fromBinary(c,h)}static fromJson(c,h){return new eo().fromJson(c,h)}static fromJsonString(c,h){return new eo().fromJsonString(c,h)}static equals(c,h){return je.util.equals(eo,c,h)}}eo.runtime=je,eo.typeName="google.protobuf.StringValue",eo.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),eo.fieldWrapper={wrapField(v){return new eo({value:v})},unwrapField(v){return v.value}};class zl extends B{constructor(c){super(),this.value=new Uint8Array(0),je.util.initPartial(c,this)}toJson(c){return je.json.writeScalar(ae.BYTES,this.value,!0)}fromJson(c,h){try{this.value=je.json.readScalar(ae.BYTES,c)}catch(b){let E='cannot decode message google.protobuf.BytesValue from JSON"';throw b instanceof Error&&b.message.length>0&&(E+=`: ${b.message}`),new Error(E)}return this}static fromBinary(c,h){return new zl().fromBinary(c,h)}static fromJson(c,h){return new zl().fromJson(c,h)}static fromJsonString(c,h){return new zl().fromJsonString(c,h)}static equals(c,h){return je.util.equals(zl,c,h)}}zl.runtime=je,zl.typeName="google.protobuf.BytesValue",zl.fields=je.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),zl.fieldWrapper={wrapField(v){return new zl({value:v})},unwrapField(v){return v.value}};function WO(v,c,h){try{const b=Ne.dec(v);return c?c.fromBinary(b,h):b}catch(b){throw u.from(b,o.DataLoss)}}function zI(v,c){const h={};for(const[b,E]of Object.entries(v.methods)){const P=c(Object.assign(Object.assign({},E),{localName:b,service:v}));P!=null&&(h[b]=P)}return h}function VO(v){let c,h=new Uint8Array(0);function b(E){const P=new Uint8Array(h.length+E.length);P.set(h),P.set(E,h.length),h=P}return new ReadableStream({start(){c=v.getReader()},async pull(E){let P;for(;;){if(P===void 0&&h.byteLength>=5){let fe=0;for(let me=1;me<5;me++)fe=(fe<<8)+h[me];P={flags:h[0],length:fe}}if(P!==void 0&&h.byteLength>=P.length+5)break;const Y=await c.read();if(Y.done)break;b(Y.value)}if(P===void 0){if(h.byteLength==0){E.close();return}E.error(new u("premature end of stream",o.DataLoss));return}const z=h.subarray(5,5+P.length);h=h.subarray(5+P.length),E.enqueue({flags:P.flags,data:z})}})}function J1(v,c){const h=new Uint8Array(c.length+5);h.set(c,5);const b=new DataView(h.buffer,h.byteOffset,h.byteLength);return b.setUint8(0,v),b.setUint32(1,c.length),h}var qO=globalThis&&globalThis.__asyncValues||function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(P){h[P]=v[P]&&function(z){return new Promise(function(Y,fe){z=v[P](z),E(Y,fe,z.done,z.value)})}}function E(P,z,Y,fe){Promise.resolve(fe).then(function(me){P({value:me,done:Y})},z)}},Uu=globalThis&&globalThis.__await||function(v){return this instanceof Uu?(this.v=v,this):new Uu(v)},Cx=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,P=[];return E={},Y("next"),Y("throw"),Y("return",z),E[Symbol.asyncIterator]=function(){return this},E;function z(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){P.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(P[0][3],_n)}}function me(et){et.value instanceof Uu?Promise.resolve(et.value.v).then(Pe,vt):ft(P[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),P.shift(),P.length&&fe(P[0][0],P[0][1])}},Rx=globalThis&&globalThis.__asyncDelegator||function(v){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,P){c[E]=v[E]?function(z){return(h=!h)?{value:Uu(v[E](z)),done:!1}:P?P(z):z}:P}};function jI(v){return Cx(this,arguments,function*(){yield Uu(yield*Rx(qO(v)))})}var GO=globalThis&&globalThis.__asyncValues||function(v){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var c=v[Symbol.asyncIterator],h;return c?c.call(v):(v=typeof __values=="function"?__values(v):v[Symbol.iterator](),h={},b("next"),b("throw"),b("return"),h[Symbol.asyncIterator]=function(){return this},h);function b(P){h[P]=v[P]&&function(z){return new Promise(function(Y,fe){z=v[P](z),E(Y,fe,z.done,z.value)})}}function E(P,z,Y,fe){Promise.resolve(fe).then(function(me){P({value:me,done:Y})},z)}},ah=globalThis&&globalThis.__await||function(v){return this instanceof ah?(this.v=v,this):new ah(v)},Ix=globalThis&&globalThis.__asyncDelegator||function(v){var c,h;return c={},b("next"),b("throw",function(E){throw E}),b("return"),c[Symbol.iterator]=function(){return this},c;function b(E,P){c[E]=v[E]?function(z){return(h=!h)?{value:ah(v[E](z)),done:!1}:P?P(z):z}:P}},Nx=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,P=[];return E={},Y("next"),Y("throw"),Y("return",z),E[Symbol.asyncIterator]=function(){return this},E;function z(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){P.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(P[0][3],_n)}}function me(et){et.value instanceof ah?Promise.resolve(et.value.v).then(Pe,vt):ft(P[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),P.shift(),P.length&&fe(P[0][0],P[0][1])}};function HI(v,c){return zI(v,h=>{switch(h.kind){case fa.Unary:return QI(c,v,h);case fa.ServerStreaming:return WI(c,v,h);case fa.ClientStreaming:return Dx(c,v,h);case fa.BiDiStreaming:return VI(c,v,h);default:return null}})}function QI(v,c,h){return async function(b,E){var P,z;const Y=await v.unary(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);return(P=E==null?void 0:E.onHeader)===null||P===void 0||P.call(E,Y.header),(z=E==null?void 0:E.onTrailer)===null||z===void 0||z.call(E,Y.trailer),Y.message}}function WI(v,c,h){return function(b,E){return Px(v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,jI([b]),E==null?void 0:E.contextValues),E)}}function Dx(v,c,h){return async function(b,E){var P,z,Y,fe,me,Pe;const vt=await v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues);(me=E==null?void 0:E.onHeader)===null||me===void 0||me.call(E,vt.header);let ft;try{for(var et=!0,Xt=GO(vt.message),_n;_n=await Xt.next(),P=_n.done,!P;et=!0)fe=_n.value,et=!1,ft=fe}catch(An){z={error:An}}finally{try{!et&&!P&&(Y=Xt.return)&&await Y.call(Xt)}finally{if(z)throw z.error}}if(!ft)throw new u("protocol error: missing response message",o.Internal);return(Pe=E==null?void 0:E.onTrailer)===null||Pe===void 0||Pe.call(E,vt.trailer),ft}}function VI(v,c,h){return function(b,E){return Px(v.stream(c,h,E==null?void 0:E.signal,E==null?void 0:E.timeoutMs,E==null?void 0:E.headers,b,E==null?void 0:E.contextValues),E)}}function Px(v,c){const h=function(){var b,E;return Nx(this,arguments,function*(){const P=yield ah(v);(b=c==null?void 0:c.onHeader)===null||b===void 0||b.call(c,P.header),yield ah(yield*Ix(GO(P.message))),(E=c==null?void 0:c.onTrailer)===null||E===void 0||E.call(c,P.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>h.next()})}}function qI(...v){const c=new AbortController,h=v.filter(E=>E!==void 0).concat(c.signal);for(const E of h){if(E.aborted){b.apply(E);break}E.addEventListener("abort",b)}function b(){c.signal.aborted||c.abort(eb(this));for(const E of h)E.removeEventListener("abort",b)}return c}function GI(v){const c=new AbortController,h=()=>{c.abort(new u("the operation timed out",o.DeadlineExceeded))};let b;return v!==void 0&&(v<=0?h():b=setTimeout(h,v)),{signal:c.signal,cleanup:()=>clearTimeout(b)}}function eb(v){if(!v.aborted)return;if(v.reason!==void 0)return v.reason;const c=new Error("This operation was aborted");return c.name="AbortError",c}function Lx(){return{get(v){return v.id in this?this[v.id]:v.defaultValue},set(v,c){return this[v.id]=c,this},delete(v){return delete this[v.id],this}}}const YO=128;function Mx(v){const c=new Headers,h=new TextDecoder().decode(v).split(`\r +`);for(const b of h){if(b==="")continue;const E=b.indexOf(":");if(E>0){const P=b.substring(0,E).trim(),z=b.substring(E+1).trim();c.append(P,z)}}return c}const YI="Content-Type",ZI="Grpc-Timeout",ui="Grpc-Status",ni="Grpc-Message",XI="Grpc-Status-Details-Bin",KI="X-User-Agent",JI="X-Grpc-Web",e6="application/grpc-web+proto",t6="application/grpc-web+json";class Hc extends B{constructor(c){super(),this.code=0,this.message="",this.details=[],je.util.initPartial(c,this)}static fromBinary(c,h){return new Hc().fromBinary(c,h)}static fromJson(c,h){return new Hc().fromJson(c,h)}static fromJsonString(c,h){return new Hc().fromJsonString(c,h)}static equals(c,h){return je.util.equals(Hc,c,h)}}Hc.runtime=je,Hc.typeName="google.rpc.Status",Hc.fields=je.util.newFieldList(()=>[{no:1,name:"code",kind:"scalar",T:5},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"details",kind:"message",T:mi,repeated:!0}]);const $x="0";function Fx(v){var c;const h=v.get(XI);if(h!=null){const E=WO(h,Hc);if(E.code==0)return;const P=new u(E.message,E.code,v);return P.details=E.details.map(z=>({type:z.typeUrl.substring(z.typeUrl.lastIndexOf("/")+1),value:z.value})),P}const b=v.get(ui);if(b!=null){if(b===$x)return;const E=parseInt(b,10);return E in o?new u(decodeURIComponent((c=v.get(ni))!==null&&c!==void 0?c:""),E,v):new u(`invalid grpc-status: ${b}`,o.Internal,v)}}function Fa(v,c,h){const b=typeof c=="string"?c:c.typeName,E=typeof h=="string"?h:h.name;return v.toString().replace(/\/?$/,`/${b}/${E}`)}function tb(v,c){return c instanceof v?c:new v(c)}function sh(v,c){function h(b){return b.done===!0?b:{done:b.done,value:tb(v,b.value)}}return{[Symbol.asyncIterator](){const b=c[Symbol.asyncIterator](),E={next:()=>b.next().then(h)};return b.throw!==void 0&&(E.throw=P=>b.throw(P).then(h)),b.return!==void 0&&(E.return=P=>b.return(P).then(h)),E}}}function ZO(v,c){var h;return(h=c==null?void 0:c.concat().reverse().reduce((b,E)=>E(b),v))!==null&&h!==void 0?h:v}function XO(v){var c;const h=Object.assign({},v);return(c=h.ignoreUnknownFields)!==null&&c!==void 0||(h.ignoreUnknownFields=!0),h}function _o(v,c,h,b){const E=c?KO(v.I,b):JO(v.I,h);return{parse:(c?KO(v.O,b):JO(v.O,h)).parse,serialize:E.serialize}}function KO(v,c){return{parse(h){try{return v.fromBinary(h,c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`parse binary: ${E}`,o.InvalidArgument)}},serialize(h){try{return h.toBinary(c)}catch(b){const E=b instanceof Error?b.message:String(b);throw new u(`serialize binary: ${E}`,o.Internal)}}}}function JO(v,c){var h,b;const E=(h=c==null?void 0:c.textEncoder)!==null&&h!==void 0?h:new TextEncoder,P=(b=c==null?void 0:c.textDecoder)!==null&&b!==void 0?b:new TextDecoder,z=XO(c);return{parse(Y){try{const fe=P.decode(Y);return v.fromJsonString(fe,z)}catch(fe){throw u.from(fe,o.InvalidArgument)}},serialize(Y){try{const fe=Y.toJsonString(z);return E.encode(fe)}catch(fe){throw u.from(fe,o.Internal)}}}}function Bx(v){const c=ZO(v.next,v.interceptors),[h,b,E]=eS(v),P=Object.assign(Object.assign({},v.req),{message:tb(v.req.method.I,v.req.message),signal:h});return c(P).then(z=>(E(),z),b)}function Ux(v){const c=ZO(v.next,v.interceptors),[h,b,E]=eS(v),P=Object.assign(Object.assign({},v.req),{message:sh(v.req.method.I,v.req.message),signal:h});let z=!1;return h.addEventListener("abort",function(){var Y,fe;const me=v.req.message[Symbol.asyncIterator]();z||(Y=me.throw)===null||Y===void 0||Y.call(me,this.reason).catch(()=>{}),(fe=me.return)===null||fe===void 0||fe.call(me).catch(()=>{})}),c(P).then(Y=>Object.assign(Object.assign({},Y),{message:{[Symbol.asyncIterator](){const fe=Y.message[Symbol.asyncIterator]();return{next(){return fe.next().then(me=>(me.done==!0&&(z=!0,E()),me),b)}}}}}),b)}function eS(v){const{signal:c,cleanup:h}=GI(v.timeoutMs),b=qI(v.signal,c);return[b.signal,function(P){const z=u.from(c.aborted?eb(c):P);return b.abort(z),h(),Promise.reject(z)},function(){h(),b.abort()}]}function zx(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function to(v,c){const h=Fx(v);if(h)throw c.forEach((b,E)=>{h.metadata.append(E,b)}),h}function jx(v,c,h,b){const E=new Headers(h??{});return E.set(YI,v?e6:t6),E.set(JI,"1"),E.set(KI,"connect-es/1.4.0"),c!==void 0&&E.set(ZI,`${c}m`),E}function rl(v){switch(v){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function Hx(v,c){var h;if(v>=200&&v<300){const b=Fx(c);if(b)throw b;return{foundStatus:c.has(ui)}}throw new u(decodeURIComponent((h=c.get(ni))!==null&&h!==void 0?h:`HTTP ${v}`),rl(v),c)}var zd=globalThis&&globalThis.__await||function(v){return this instanceof zd?(this.v=v,this):new zd(v)},jd=globalThis&&globalThis.__asyncGenerator||function(v,c,h){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var b=h.apply(v,c||[]),E,P=[];return E={},Y("next"),Y("throw"),Y("return",z),E[Symbol.asyncIterator]=function(){return this},E;function z(et){return function(Xt){return Promise.resolve(Xt).then(et,vt)}}function Y(et,Xt){b[et]&&(E[et]=function(_n){return new Promise(function(An,Gn){P.push([et,_n,An,Gn])>1||fe(et,_n)})},Xt&&(E[et]=Xt(E[et])))}function fe(et,Xt){try{me(b[et](Xt))}catch(_n){ft(P[0][3],_n)}}function me(et){et.value instanceof zd?Promise.resolve(et.value.v).then(Pe,vt):ft(P[0][2],et)}function Pe(et){fe("next",et)}function vt(et){fe("throw",et)}function ft(et,Xt){et(Xt),P.shift(),P.length&&fe(P[0][0],P[0][1])}};function nb(v){var c;zx();const h=(c=v.useBinaryFormat)!==null&&c!==void 0?c:!0;return{async unary(b,E,P,z,Y,fe,me){var Pe;const{serialize:vt,parse:ft}=_o(E,h,v.jsonOptions,v.binaryOptions);return z=z===void 0?v.defaultTimeoutMs:z<=0?void 0:z,await Bx({interceptors:v.interceptors,signal:P,timeoutMs:z,req:{stream:!1,service:b,method:E,url:Fa(v.baseUrl,b,E),init:{method:"POST",credentials:(Pe=v.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:jx(h,z,Y),contextValues:me??Lx(),message:fe},next:async et=>{var Xt;const An=await((Xt=v.fetch)!==null&&Xt!==void 0?Xt:globalThis.fetch)(et.url,Object.assign(Object.assign({},et.init),{headers:et.header,signal:et.signal,body:J1(0,vt(et.message))}));if(Hx(An.status,An.headers),!An.body)throw"missing response body";const Gn=VO(An.body).getReader();let ci,gr;for(;;){const Wr=await Gn.read();if(Wr.done)break;const{flags:zr,data:gi}=Wr.value;if(zr===YO){if(ci!==void 0)throw"extra trailer";ci=Mx(gi);continue}if(gr!==void 0)throw"extra message";gr=ft(gi)}if(ci===void 0)throw"missing trailer";if(to(ci,An.headers),gr===void 0)throw"missing message";return{stream:!1,service:b,method:E,header:An.headers,message:gr,trailer:ci}}})},async stream(b,E,P,z,Y,fe,me){var Pe;const{serialize:vt,parse:ft}=_o(E,h,v.jsonOptions,v.binaryOptions);function et(_n,An,Gn,ci){return jd(this,arguments,function*(){const Wr=VO(_n).getReader();if(An){if(!(yield zd(Wr.read())).done)throw"extra data for trailers-only";return yield zd(void 0)}let zr=!1;for(;;){const gi=yield zd(Wr.read());if(gi.done)break;const{flags:bs,data:Do}=gi.value;if((bs&YO)===YO){if(zr)throw"extra trailer";zr=!0;const dg=Mx(Do);to(dg,ci),dg.forEach((Pk,F6)=>Gn.set(F6,Pk));continue}if(zr)throw"extra message";yield yield zd(ft(Do))}if(!zr)throw"missing trailer"})}async function Xt(_n){if(E.kind!=fa.ServerStreaming)throw"The fetch API does not support streaming request bodies";const An=await _n[Symbol.asyncIterator]().next();if(An.done==!0)throw"missing request message";return J1(0,vt(An.value))}return z=z===void 0?v.defaultTimeoutMs:z<=0?void 0:z,Ux({interceptors:v.interceptors,signal:P,timeoutMs:z,req:{stream:!0,service:b,method:E,url:Fa(v.baseUrl,b,E),init:{method:"POST",credentials:(Pe=v.credentials)!==null&&Pe!==void 0?Pe:"same-origin",redirect:"error",mode:"cors"},header:jx(h,z,Y),contextValues:me??Lx(),message:fe},next:async _n=>{var An;const ci=await((An=v.fetch)!==null&&An!==void 0?An:globalThis.fetch)(_n.url,Object.assign(Object.assign({},_n.init),{headers:_n.header,signal:_n.signal,body:await Xt(_n.message)})),{foundStatus:gr}=Hx(ci.status,ci.headers);if(!ci.body)throw"missing response body";const Wr=new Headers;return Object.assign(Object.assign({},_n),{header:ci.headers,trailer:Wr,message:et(ci.body,gr,Wr,ci.headers)})}})}}}const Vn=je.makeEnum("yorkie.v1.ValueType",[{no:0,name:"VALUE_TYPE_NULL",localName:"NULL"},{no:1,name:"VALUE_TYPE_BOOLEAN",localName:"BOOLEAN"},{no:2,name:"VALUE_TYPE_INTEGER",localName:"INTEGER"},{no:3,name:"VALUE_TYPE_LONG",localName:"LONG"},{no:4,name:"VALUE_TYPE_DOUBLE",localName:"DOUBLE"},{no:5,name:"VALUE_TYPE_STRING",localName:"STRING"},{no:6,name:"VALUE_TYPE_BYTES",localName:"BYTES"},{no:7,name:"VALUE_TYPE_DATE",localName:"DATE"},{no:8,name:"VALUE_TYPE_JSON_OBJECT",localName:"JSON_OBJECT"},{no:9,name:"VALUE_TYPE_JSON_ARRAY",localName:"JSON_ARRAY"},{no:10,name:"VALUE_TYPE_TEXT",localName:"TEXT"},{no:11,name:"VALUE_TYPE_INTEGER_CNT",localName:"INTEGER_CNT"},{no:12,name:"VALUE_TYPE_LONG_CNT",localName:"LONG_CNT"},{no:13,name:"VALUE_TYPE_TREE",localName:"TREE"}]),ri=je.makeEnum("yorkie.v1.DocEventType",[{no:0,name:"DOC_EVENT_TYPE_DOCUMENT_CHANGED",localName:"DOCUMENT_CHANGED"},{no:1,name:"DOC_EVENT_TYPE_DOCUMENT_WATCHED",localName:"DOCUMENT_WATCHED"},{no:2,name:"DOC_EVENT_TYPE_DOCUMENT_UNWATCHED",localName:"DOCUMENT_UNWATCHED"},{no:3,name:"DOC_EVENT_TYPE_DOCUMENT_BROADCAST",localName:"DOCUMENT_BROADCAST"}]),Hd=je.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:il},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:ub}}]),jl=je.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:Qc},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:Qx,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:wn},{no:6,name:"is_removed",kind:"scalar",T:8}]),Qx=je.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:_p},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:tS,repeated:!0},{no:4,name:"presence_change",kind:"message",T:lS}]),_p=je.makeMessageType("yorkie.v1.ChangeID",()=>[{no:1,name:"client_seq",kind:"scalar",T:13},{no:2,name:"server_seq",kind:"scalar",T:3,L:1},{no:3,name:"lamport",kind:"scalar",T:3,L:1},{no:4,name:"actor_id",kind:"scalar",T:12}]),tS=je.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:Wx,oneof:"body"},{no:2,name:"add",kind:"message",T:Vx,oneof:"body"},{no:3,name:"move",kind:"message",T:nS,oneof:"body"},{no:4,name:"remove",kind:"message",T:Am,oneof:"body"},{no:5,name:"edit",kind:"message",T:oh,oneof:"body"},{no:6,name:"select",kind:"message",T:n6,oneof:"body"},{no:7,name:"style",kind:"message",T:rS,oneof:"body"},{no:8,name:"increase",kind:"message",T:iS,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:rb,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:ib,oneof:"body"}]),Wx=je.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:zu},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Set"}),Vx=je.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"prev_created_at",kind:"message",T:wn},{no:3,name:"value",kind:"message",T:zu},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Add"}),nS=je.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"prev_created_at",kind:"message",T:wn},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Move"}),Am=je.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Remove"}),oh=je.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:Hu},{no:3,name:"to",kind:"message",T:Hu},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:wn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),n6=je.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:Hu},{no:3,name:"to",kind:"message",T:Hu},{no:4,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Select"}),rS=je.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:Hu},{no:3,name:"to",kind:"message",T:Hu},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:wn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}}],{localName:"Operation_Style"}),iS=je.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"value",kind:"message",T:zu},{no:3,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_Increase"}),rb=je.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}},{no:5,name:"contents",kind:"message",T:Yx,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:wn}],{localName:"Operation_TreeEdit"}),ib=je.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:wn},{no:2,name:"from",kind:"message",T:ju},{no:3,name:"to",kind:"message",T:ju},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:wn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:wn}}],{localName:"Operation_TreeStyle"}),zu=je.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"moved_at",kind:"message",T:wn},{no:3,name:"removed_at",kind:"message",T:wn},{no:4,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:5,name:"value",kind:"scalar",T:12}]),il=je.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:ab,oneof:"body"},{no:2,name:"json_array",kind:"message",T:sb,oneof:"body"},{no:3,name:"primitive",kind:"message",T:qx,oneof:"body"},{no:5,name:"text",kind:"message",T:aS,oneof:"body"},{no:6,name:"counter",kind:"message",T:no,oneof:"body"},{no:7,name:"tree",kind:"message",T:ob,oneof:"body"}]),ab=je.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:Cp,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_JSONObject"}),sb=je.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:lb,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_JSONArray"}),qx=je.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"moved_at",kind:"message",T:wn},{no:5,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Primitive"}),aS=je.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:Gx,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Text"}),no=je.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(Vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:wn},{no:4,name:"moved_at",kind:"message",T:wn},{no:5,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Counter"}),ob=je.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:oS,repeated:!0},{no:2,name:"created_at",kind:"message",T:wn},{no:3,name:"moved_at",kind:"message",T:wn},{no:4,name:"removed_at",kind:"message",T:wn}],{localName:"JSONElement_Tree"}),Cp=je.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:il}]),lb=je.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:lb},{no:2,name:"element",kind:"message",T:il}]),_m=je.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:wn},{no:3,name:"is_removed",kind:"scalar",T:8}]),Gx=je.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:sS},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:wn},{no:4,name:"ins_prev_id",kind:"message",T:sS},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:_m}}]),sS=je.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5}]),oS=je.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Rp},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:wn},{no:5,name:"ins_prev_id",kind:"message",T:Rp},{no:6,name:"ins_next_id",kind:"message",T:Rp},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:_m}}]),Yx=je.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:oS,repeated:!0}]),Rp=je.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5}]),ju=je.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Rp},{no:2,name:"left_sibling_id",kind:"message",T:Rp}]);je.makeMessageType("yorkie.v1.User",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"username",kind:"scalar",T:9},{no:3,name:"created_at",kind:"message",T:En}]),je.makeMessageType("yorkie.v1.Project",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"name",kind:"scalar",T:9},{no:3,name:"public_key",kind:"scalar",T:9},{no:4,name:"secret_key",kind:"scalar",T:9},{no:5,name:"auth_webhook_url",kind:"scalar",T:9},{no:6,name:"auth_webhook_methods",kind:"scalar",T:9,repeated:!0},{no:7,name:"client_deactivate_threshold",kind:"scalar",T:9},{no:8,name:"created_at",kind:"message",T:En},{no:9,name:"updated_at",kind:"message",T:En}]),je.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:eo},{no:2,name:"auth_webhook_url",kind:"message",T:eo},{no:3,name:"auth_webhook_methods",kind:"message",T:r6},{no:4,name:"client_deactivate_threshold",kind:"message",T:eo}]);const r6=je.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});je.makeMessageType("yorkie.v1.DocumentSummary",()=>[{no:1,name:"id",kind:"scalar",T:9},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"snapshot",kind:"scalar",T:9},{no:4,name:"created_at",kind:"message",T:En},{no:5,name:"accessed_at",kind:"message",T:En},{no:6,name:"updated_at",kind:"message",T:En}]);const lS=je.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(lh)},{no:2,name:"presence",kind:"message",T:ub}]),lh=je.makeEnum("yorkie.v1.PresenceChange.ChangeType",[{no:0,name:"CHANGE_TYPE_UNSPECIFIED",localName:"UNSPECIFIED"},{no:1,name:"CHANGE_TYPE_PUT",localName:"PUT"},{no:2,name:"CHANGE_TYPE_DELETE",localName:"DELETE"},{no:3,name:"CHANGE_TYPE_CLEAR",localName:"CLEAR"}]),ub=je.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),Qc=je.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),Hu=je.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:wn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),wn=je.makeMessageType("yorkie.v1.TimeTicket",()=>[{no:1,name:"lamport",kind:"scalar",T:3,L:1},{no:2,name:"delimiter",kind:"scalar",T:13},{no:3,name:"actor_id",kind:"scalar",T:12}]),i6=je.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),a6=je.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:je.getEnumType(ri)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:i6}]),Ip=je.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),Hl=je.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),Zx=je.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),s6=je.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),o6=je.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:jl}]),l6=je.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:jl}]),u6=je.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:jl},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),c6=je.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:jl}]),Np=je.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),Me=je.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:lt,oneof:"body"},{no:2,name:"event",kind:"message",T:a6,oneof:"body"}]),lt=je.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),Ge=je.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:jl}]),an=je.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:jl}]),Hn=je.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:jl},{no:4,name:"push_only",kind:"scalar",T:8}]),$r=je.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:jl}]),Ta=je.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),ii=je.makeMessageType("yorkie.v1.BroadcastResponse",[]),uS={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Ip,O:Hl,kind:fa.Unary},deactivateClient:{name:"DeactivateClient",I:Zx,O:s6,kind:fa.Unary},attachDocument:{name:"AttachDocument",I:o6,O:l6,kind:fa.Unary},detachDocument:{name:"DetachDocument",I:u6,O:c6,kind:fa.Unary},removeDocument:{name:"RemoveDocument",I:Ge,O:an,kind:fa.Unary},pushPullChanges:{name:"PushPullChanges",I:Hn,O:$r,kind:fa.Unary},watchDocument:{name:"WatchDocument",I:Np,O:Me,kind:fa.ServerStreaming},broadcast:{name:"Broadcast",I:Ta,O:ii,kind:fa.Unary}}};/** + * @license + * Copyright 2009 The Closure Library Authors + * Copyright 2020 Daniel Wirtz / The long.js Authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + * + * SPDX-License-Identifier: Apache-2.0 + */var al=null;try{al=new WebAssembly.Instance(new WebAssembly.Module(new Uint8Array([0,97,115,109,1,0,0,0,1,13,2,96,0,1,127,96,4,127,127,127,127,1,127,3,7,6,0,1,1,1,1,1,6,6,1,127,1,65,0,11,7,50,6,3,109,117,108,0,1,5,100,105,118,95,115,0,2,5,100,105,118,95,117,0,3,5,114,101,109,95,115,0,4,5,114,101,109,95,117,0,5,8,103,101,116,95,104,105,103,104,0,0,10,191,1,6,4,0,35,0,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,126,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,127,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,128,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,129,34,4,66,32,135,167,36,0,32,4,167,11,36,1,1,126,32,0,173,32,1,173,66,32,134,132,32,2,173,32,3,173,66,32,134,132,130,34,4,66,32,135,167,36,0,32,4,167,11])),{}).exports}catch{}function kn(v,c,h){this.low=v|0,this.high=c|0,this.unsigned=!!h}kn.prototype.__isLong__,Object.defineProperty(kn.prototype,"__isLong__",{value:!0});function xa(v){return(v&&v.__isLong__)===!0}function Xx(v){var c=Math.clz32(v&-v);return v?31-c:c}kn.isLong=xa;var uh={},Cm={};function Qu(v,c){var h,b,E;return c?(v>>>=0,(E=0<=v&&v<256)&&(b=Cm[v],b)?b:(h=Ir(v,0,!0),E&&(Cm[v]=h),h)):(v|=0,(E=-128<=v&&v<128)&&(b=uh[v],b)?b:(h=Ir(v,v<0?-1:0,!1),E&&(uh[v]=h),h))}kn.fromInt=Qu;function Xn(v,c){if(isNaN(v))return c?Wu:ro;if(c){if(v<0)return Wu;if(v>=Vc)return Qd}else{if(v<=-Im)return qa;if(v+1>=Im)return Pp}return v<0?Xn(-v,c).neg():Ir(v%Wc|0,v/Wc|0,c)}kn.fromNumber=Xn;function Ir(v,c,h){return new kn(v,c,h)}kn.fromBits=Ir;var Rm=Math.pow;function Dp(v,c,h){if(v.length===0)throw Error("empty string");if(typeof c=="number"?(h=c,c=!1):c=!!c,v==="NaN"||v==="Infinity"||v==="+Infinity"||v==="-Infinity")return c?Wu:ro;if(h=h||10,h<2||360)throw Error("interior hyphen");if(b===0)return Dp(v.substring(1),c,h).neg();for(var E=Xn(Rm(h,8)),P=ro,z=0;z>>0:this.low},Dt.toNumber=function(){return this.unsigned?(this.high>>>0)*Wc+(this.low>>>0):this.high*Wc+(this.low>>>0)},Dt.toString=function(c){if(c=c||10,c<2||36>>0,Pe=me.toString(c);if(z=fe,z.isZero())return Pe+Y;for(;Pe.length<6;)Pe="0"+Pe;Y=""+Pe+Y}},Dt.getHighBits=function(){return this.high},Dt.getHighBitsUnsigned=function(){return this.high>>>0},Dt.getLowBits=function(){return this.low},Dt.getLowBitsUnsigned=function(){return this.low>>>0},Dt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(qa)?64:this.neg().getNumBitsAbs();for(var c=this.high!=0?this.high:this.low,h=31;h>0&&!(c&1<=0},Dt.isOdd=function(){return(this.low&1)===1},Dt.isEven=function(){return(this.low&1)===0},Dt.equals=function(c){return xa(c)||(c=Ql(c)),this.unsigned!==c.unsigned&&this.high>>>31===1&&c.high>>>31===1?!1:this.high===c.high&&this.low===c.low},Dt.eq=Dt.equals,Dt.notEquals=function(c){return!this.eq(c)},Dt.neq=Dt.notEquals,Dt.ne=Dt.notEquals,Dt.lessThan=function(c){return this.comp(c)<0},Dt.lt=Dt.lessThan,Dt.lessThanOrEqual=function(c){return this.comp(c)<=0},Dt.lte=Dt.lessThanOrEqual,Dt.le=Dt.lessThanOrEqual,Dt.greaterThan=function(c){return this.comp(c)>0},Dt.gt=Dt.greaterThan,Dt.greaterThanOrEqual=function(c){return this.comp(c)>=0},Dt.gte=Dt.greaterThanOrEqual,Dt.ge=Dt.greaterThanOrEqual,Dt.compare=function(c){if(xa(c)||(c=Ql(c)),this.eq(c))return 0;var h=this.isNegative(),b=c.isNegative();return h&&!b?-1:!h&&b?1:this.unsigned?c.high>>>0>this.high>>>0||c.high===this.high&&c.low>>>0>this.low>>>0?-1:1:this.sub(c).isNegative()?-1:1},Dt.comp=Dt.compare,Dt.negate=function(){return!this.unsigned&&this.eq(qa)?qa:this.not().add(ch)},Dt.neg=Dt.negate,Dt.add=function(c){xa(c)||(c=Ql(c));var h=this.high>>>16,b=this.high&65535,E=this.low>>>16,P=this.low&65535,z=c.high>>>16,Y=c.high&65535,fe=c.low>>>16,me=c.low&65535,Pe=0,vt=0,ft=0,et=0;return et+=P+me,ft+=et>>>16,et&=65535,ft+=E+fe,vt+=ft>>>16,ft&=65535,vt+=b+Y,Pe+=vt>>>16,vt&=65535,Pe+=h+z,Pe&=65535,Ir(ft<<16|et,Pe<<16|vt,this.unsigned)},Dt.subtract=function(c){return xa(c)||(c=Ql(c)),this.add(c.neg())},Dt.sub=Dt.subtract,Dt.multiply=function(c){if(this.isZero())return this;if(xa(c)||(c=Ql(c)),al){var h=al.mul(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}if(c.isZero())return this.unsigned?Wu:ro;if(this.eq(qa))return c.isOdd()?qa:ro;if(c.eq(qa))return this.isOdd()?qa:ro;if(this.isNegative())return c.isNegative()?this.neg().mul(c.neg()):this.neg().mul(c).neg();if(c.isNegative())return this.mul(c.neg()).neg();if(this.lt(cS)&&c.lt(cS))return Xn(this.toNumber()*c.toNumber(),this.unsigned);var b=this.high>>>16,E=this.high&65535,P=this.low>>>16,z=this.low&65535,Y=c.high>>>16,fe=c.high&65535,me=c.low>>>16,Pe=c.low&65535,vt=0,ft=0,et=0,Xt=0;return Xt+=z*Pe,et+=Xt>>>16,Xt&=65535,et+=P*Pe,ft+=et>>>16,et&=65535,et+=z*me,ft+=et>>>16,et&=65535,ft+=E*Pe,vt+=ft>>>16,ft&=65535,ft+=P*me,vt+=ft>>>16,ft&=65535,ft+=z*fe,vt+=ft>>>16,ft&=65535,vt+=b*Pe+E*me+P*fe+z*Y,vt&=65535,Ir(et<<16|Xt,vt<<16|ft,this.unsigned)},Dt.mul=Dt.multiply,Dt.divide=function(c){if(xa(c)||(c=Ql(c)),c.isZero())throw Error("division by zero");if(al){if(!this.unsigned&&this.high===-2147483648&&c.low===-1&&c.high===-1)return this;var h=(this.unsigned?al.div_u:al.div_s)(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Wu:ro;var b,E,P;if(this.unsigned){if(c.unsigned||(c=c.toUnsigned()),c.gt(this))return Wu;if(c.gt(this.shru(1)))return Nm;P=Wu}else{if(this.eq(qa)){if(c.eq(ch)||c.eq(cb))return qa;if(c.eq(qa))return ch;var z=this.shr(1);return b=z.div(c).shl(1),b.eq(ro)?c.isNegative()?ch:cb:(E=this.sub(c.mul(b)),P=b.add(E.div(c)),P)}else if(c.eq(qa))return this.unsigned?Wu:ro;if(this.isNegative())return c.isNegative()?this.neg().div(c.neg()):this.neg().div(c).neg();if(c.isNegative())return this.div(c.neg()).neg();P=ro}for(E=this;E.gte(c);){b=Math.max(1,Math.floor(E.toNumber()/c.toNumber()));for(var Y=Math.ceil(Math.log(b)/Math.LN2),fe=Y<=48?1:Rm(2,Y-48),me=Xn(b),Pe=me.mul(c);Pe.isNegative()||Pe.gt(E);)b-=fe,me=Xn(b,this.unsigned),Pe=me.mul(c);me.isZero()&&(me=ch),P=P.add(me),E=E.sub(Pe)}return P},Dt.div=Dt.divide,Dt.modulo=function(c){if(xa(c)||(c=Ql(c)),al){var h=(this.unsigned?al.rem_u:al.rem_s)(this.low,this.high,c.low,c.high);return Ir(h,al.get_high(),this.unsigned)}return this.sub(this.div(c).mul(c))},Dt.mod=Dt.modulo,Dt.rem=Dt.modulo,Dt.not=function(){return Ir(~this.low,~this.high,this.unsigned)},Dt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},Dt.clz=Dt.countLeadingZeros,Dt.countTrailingZeros=function(){return this.low?Xx(this.low):Xx(this.high)+32},Dt.ctz=Dt.countTrailingZeros,Dt.and=function(c){return xa(c)||(c=Ql(c)),Ir(this.low&c.low,this.high&c.high,this.unsigned)},Dt.or=function(c){return xa(c)||(c=Ql(c)),Ir(this.low|c.low,this.high|c.high,this.unsigned)},Dt.xor=function(c){return xa(c)||(c=Ql(c)),Ir(this.low^c.low,this.high^c.high,this.unsigned)},Dt.shiftLeft=function(c){return xa(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low<>>32-c,this.unsigned):Ir(0,this.low<>>c|this.high<<32-c,this.high>>c,this.unsigned):Ir(this.high>>c-32,this.high>=0?0:-1,this.unsigned)},Dt.shr=Dt.shiftRight,Dt.shiftRightUnsigned=function(c){return xa(c)&&(c=c.toInt()),(c&=63)===0?this:c<32?Ir(this.low>>>c|this.high<<32-c,this.high>>>c,this.unsigned):c===32?Ir(this.high,0,this.unsigned):Ir(this.high>>>c-32,0,this.unsigned)},Dt.shru=Dt.shiftRightUnsigned,Dt.shr_u=Dt.shiftRightUnsigned,Dt.rotateLeft=function(c){var h;return xa(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.low<>>h,this.high<>>h,this.unsigned)):(c-=32,h=32-c,Ir(this.high<>>h,this.low<>>h,this.unsigned))},Dt.rotl=Dt.rotateLeft,Dt.rotateRight=function(c){var h;return xa(c)&&(c=c.toInt()),(c&=63)===0?this:c===32?Ir(this.high,this.low,this.unsigned):c<32?(h=32-c,Ir(this.high<>>c,this.low<>>c,this.unsigned)):(c-=32,h=32-c,Ir(this.low<>>c,this.high<>>c,this.unsigned))},Dt.rotr=Dt.rotateRight,Dt.toSigned=function(){return this.unsigned?Ir(this.low,this.high,!1):this},Dt.toUnsigned=function(){return this.unsigned?this:Ir(this.low,this.high,!0)},Dt.toBytes=function(c){return c?this.toBytesLE():this.toBytesBE()},Dt.toBytesLE=function(){var c=this.high,h=this.low;return[h&255,h>>>8&255,h>>>16&255,h>>>24,c&255,c>>>8&255,c>>>16&255,c>>>24]},Dt.toBytesBE=function(){var c=this.high,h=this.low;return[c>>>24,c>>>16&255,c>>>8&255,c&255,h>>>24,h>>>16&255,h>>>8&255,h&255]},kn.fromBytes=function(c,h,b){return b?kn.fromBytesLE(c,h):kn.fromBytesBE(c,h)},kn.fromBytesLE=function(c,h){return new kn(c[0]|c[1]<<8|c[2]<<16|c[3]<<24,c[4]|c[5]<<8|c[6]<<16|c[7]<<24,h)},kn.fromBytesBE=function(c,h){return new kn(c[4]<<24|c[5]<<16|c[6]<<8|c[7],c[0]<<24|c[1]<<16|c[2]<<8|c[3],h)};const f6=je.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);je.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:Tr}]),je.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:h6,repeated:!0}]);const h6=je.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});je.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:db,repeated:!0}]);const db=je.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});je.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:fb,repeated:!0}]);const fb=je.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});je.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),je.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:dS,repeated:!0}]);const dS=je.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});je.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var mr=(v=>(v.Ok="ok",v.ErrClientNotActivated="ErrClientNotActivated",v.ErrClientNotFound="ErrClientNotFound",v.ErrUnimplemented="ErrUnimplemented",v.Unsupported="unsupported",v.ErrDocumentNotAttached="ErrDocumentNotAttached",v.ErrDocumentNotDetached="ErrDocumentNotDetached",v.ErrDocumentRemoved="ErrDocumentRemoved",v.ErrInvalidObjectKey="ErrInvalidObjectKey",v.ErrInvalidArgument="ErrInvalidArgument",v))(mr||{});class xr extends Error{constructor(c,h){super(h),s(this,"name","YorkieError"),s(this,"stack"),this.code=c,this.message=h,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function Wl(v){if(v instanceof Map){const c=Array.from(v);return new Map(JSON.parse(JSON.stringify(c)))}return JSON.parse(JSON.stringify(v))}const Jx=v=>v?Object.entries(v).length===0:!0,wi=v=>{const c={};for(const[h,b]of Object.entries(v))c[h]=JSON.stringify(b);return c},na=v=>{const c={};for(const[h,b]of Object.entries(v))c[h]=JSON.parse(b);return c};var Wd=(v=>(v.Put="put",v.Clear="clear",v))(Wd||{});class fS{constructor(c,h){s(this,"context"),s(this,"presence"),this.context=c,this.presence=h}set(c,h){for(const b of Object.keys(c))this.presence[b]=c[b];this.context.setPresenceChange({type:"put",presence:Wl(this.presence)}),this.context.setReversePresence(c,h)}get(c){return this.presence[c]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const Dm="000000000000000000000000",p6="FFFFFFFFFFFFFFFFFFFFFFFF";class Ga{constructor(c,h,b){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=c,this.delimiter=h,this.actorID=b}static of(c,h,b){return new Ga(c,h,b)}static fromStruct(c){return Ga.of(kn.fromString(c.lamport,!0),c.delimiter,c.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(c){return new Ga(this.lamport,this.delimiter,c)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(c){return this.compare(c)>0}equals(c){return this.compare(c)===0}compare(c){if(this.lamport.greaterThan(c.lamport))return 1;if(c.lamport.greaterThan(this.lamport))return-1;const h=this.actorID.localeCompare(c.actorID);return h!==0?h:this.delimiter>c.delimiter?1:c.delimiter>this.delimiter?-1:0}}const dh=0,hS=4294967295,Lp=kn.MAX_VALUE,Rs=new Ga(kn.fromNumber(0),dh,Dm);new Ga(kn.fromNumber(1),dh+1,Dm);const qc=new Ga(Lp,hS,p6);var ka=(v=>(v[v.Trivial=0]="Trivial",v[v.Debug=1]="Debug",v[v.Info=2]="Info",v[v.Warn=3]="Warn",v[v.Error=4]="Error",v[v.Fatal=5]="Fatal",v))(ka||{});let sl=3;function pS(v){sl=v}const Rt={trivial:(...v)=>{sl>0||typeof console<"u"&&console.log("YORKIE T:",...v)},debug:(...v)=>{sl>1||typeof console<"u"&&console.log("YORKIE D:",...v)},info:(...v)=>{sl>2||typeof console<"u"&&console.log("YORKIE I:",...v)},warn:(...v)=>{sl>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...v):console.log("YORKIE W:",...v))},error:(...v)=>{sl>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...v):console.log("YORKIE E:",...v))},fatal:(v,...c)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...c):console.log("YORKIE F:",...c)),new Error(`YORKIE F: ${v}`)},isEnabled:v=>sl<=v};function Vu(v){return v.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(c){switch(c){case'"':case"\\":return"\\"+c;case` +`:return"\\n";case"\r":return"\\r";case"\f":return"\\f";case"\b":return"\\b";case" ":return"\\t";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:return c}})}class Pm{constructor(c){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=c}getCreatedAt(){return this.createdAt}getID(){return this.createdAt}getMovedAt(){return this.movedAt}getRemovedAt(){return this.removedAt}getPositionedAt(){return this.movedAt?this.movedAt:this.createdAt}setMovedAt(c){return!this.movedAt||c&&c.after(this.movedAt)?(this.movedAt=c,!0):!1}setRemovedAt(c){this.removedAt=c}remove(c){return c&&c.after(this.getPositionedAt())&&(!this.removedAt||c.after(this.removedAt))?(this.removedAt=c,!0):!1}isRemoved(){return!!this.removedAt}}class Vd extends Pm{constructor(c){super(c)}}class Mp{constructor(c,h){s(this,"strKey"),s(this,"value"),this.strKey=c,this.value=h}static of(c,h){return new Mp(c,h)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(c){return this.value.remove(c)}}class Gc{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Gc}set(c,h,b){let E;const P=this.nodeMapByKey.get(c);P!=null&&!P.isRemoved()&&P.remove(b)&&(E=P.getValue());const z=Mp.of(c,h);return this.nodeMapByCreatedAt.set(h.getCreatedAt().toIDString(),z),(P==null||b.after(P.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(c,z),h.setMovedAt(b)),E}delete(c,h){this.nodeMapByCreatedAt.has(c.toIDString())||Rt.fatal(`fail to find ${c.toIDString()}`);const b=this.nodeMapByCreatedAt.get(c.toIDString());return b.remove(h),b.getValue()}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return h.getStrKey()}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());if(!h){Rt.fatal(`fail to find ${c.getCreatedAt().toIDString()}`);return}const b=this.nodeMapByKey.get(h.getStrKey());h===b&&this.nodeMapByKey.delete(b.getStrKey()),this.nodeMapByCreatedAt.delete(h.getValue().getCreatedAt().toIDString())}deleteByKey(c,h){const b=this.nodeMapByKey.get(c);if(b!=null&&b.remove(h))return b.getValue()}has(c){const h=this.nodeMapByKey.get(c);return h==null?!1:!h.isRemoved()}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}get(c){const h=this.nodeMapByKey.get(c);if(!(!h||h.isRemoved()))return h}*[Symbol.iterator](){for(const[,c]of this.nodeMapByKey)yield c}}class Is extends Vd{constructor(c,h){super(c),s(this,"memberNodes"),this.memberNodes=h}static create(c,h){if(!h)return new Is(c,Gc.create());const b=Gc.create();for(const[E,P]of Object.entries(h))b.set(E,P.deepcopy(),P.getCreatedAt());return new Is(c,b)}subPathOf(c){return this.memberNodes.subPathOf(c)}purge(c){this.memberNodes.purge(c)}set(c,h,b){return this.memberNodes.set(c,h,b)}delete(c,h){return this.memberNodes.delete(c,h)}deleteByKey(c,h){return this.memberNodes.deleteByKey(c,h)}get(c){const h=this.memberNodes.get(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.memberNodes.getByID(c);return h==null?void 0:h.getValue()}has(c){return this.memberNodes.has(c)}toJSON(){const c=[];for(const[h,b]of this)c.push(`"${Vu(h)}":${b.toJSON()}`);return`{${c.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(const[h,b]of this){const{createdAt:E,value:P,type:z}=b.toJSForTest();c[h]={key:h,createdAt:E,value:P,type:z}}return{createdAt:this.getCreatedAt().toTestString(),value:c,type:"YORKIE_OBJECT"}}getKeys(){const c=Array();for(const[h]of this)c.push(h);return c}toSortedJSON(){var c;const h=Array();for(const[E]of this)h.push(E);const b=[];for(const E of h.sort()){const P=(c=this.memberNodes.get(E))==null?void 0:c.getValue();b.push(`"${Vu(E)}":${P.toSortedJSON()}`)}return`{${b.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const c=Is.create(this.getCreatedAt());for(const h of this.memberNodes)c.memberNodes.set(h.getStrKey(),h.getValue().deepcopy(),this.getPositionedAt());return c.remove(this.getRemovedAt()),c}getDescendants(c){for(const h of this.memberNodes){const b=h.getValue();if(c(b,this))return;b instanceof Vd&&b.getDescendants(c)}}*[Symbol.iterator](){const c=new Set;for(const h of this.memberNodes)c.has(h.getStrKey())||(c.add(h.getStrKey()),h.isRemoved()||(yield[h.getStrKey(),h.getValue()]))}}var te=(v=>(v.Local="local",v.Remote="remote",v.UndoRedo="undoredo",v))(te||{});class hs{constructor(c,h){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=c,this.executedAt=h}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(c){this.executedAt&&(this.executedAt=this.executedAt.setActor(c))}setExecutedAt(c){this.executedAt=c}}class Lm{constructor(c){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=c,this.initWeight()}getNodeString(){return`${this.weight}${this.value}`}getValue(){return this.value}getLeftWeight(){return this.hasLeft()?this.left.getWeight():0}getRightWeight(){return this.hasRight()?this.right.getWeight():0}getWeight(){return this.weight}getLeft(){return this.left}getRight(){return this.right}getParent(){return this.parent}hasLeft(){return!!this.left}hasRight(){return!!this.right}hasParent(){return!!this.parent}setLeft(c){this.left=c}setRight(c){this.right=c}setParent(c){this.parent=c}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(c){this.weight+=c}initWeight(){this.weight=this.getLength()}}class ps{constructor(c){s(this,"root"),this.root=c}get length(){return this.root?this.root.getWeight():0}find(c){if(!this.root||c<0)return[void 0,0];let h=this.root;for(;;)if(h.hasLeft()&&c<=h.getLeftWeight())h=h.getLeft();else if(h.hasRight()&&h.getLeftWeight()+h.getLength()h.getLength()&&Rt.fatal(`out of index range: pos: ${c} > node.length: ${h.getLength()}`),[h,c]}indexOf(c){if(!c||c!==this.root&&!c.hasLinks())return-1;let h=0,b=c,E;for(;b;)(!E||E===b.getRight())&&(h+=b.getLength()+(b.hasLeft()?b.getLeftWeight():0)),E=b,b=b.getParent();return h-c.getLength()}getRoot(){return this.root}insert(c){return this.insertAfter(this.root,c)}insertAfter(c,h){return c?(this.splayNode(c),this.root=h,h.setRight(c.getRight()),c.hasRight()&&c.getRight().setParent(h),h.setLeft(c),c.setParent(h),c.setRight(),this.updateWeight(c),this.updateWeight(h),h):(this.root=h,h)}updateWeight(c){c.initWeight(),c.hasLeft()&&c.increaseWeight(c.getLeftWeight()),c.hasRight()&&c.increaseWeight(c.getRightWeight())}updateTreeWeight(c){for(;c;)this.updateWeight(c),c=c.getParent()}splayNode(c){if(c)for(;;)if(this.isLeftChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c),this.rotateLeft(c);else if(this.isLeftChild(c.getParent())&&this.isLeftChild(c))this.rotateRight(c.getParent()),this.rotateRight(c);else if(this.isRightChild(c.getParent())&&this.isRightChild(c))this.rotateLeft(c.getParent()),this.rotateLeft(c);else{this.isLeftChild(c)?this.rotateRight(c):this.isRightChild(c)&&this.rotateLeft(c),this.updateWeight(c);return}}delete(c){this.splayNode(c);const h=new ps(c.getLeft());h.root&&h.root.setParent();const b=new ps(c.getRight());if(b.root&&b.root.setParent(),h.root){const E=h.getRightmost();h.splayNode(E),h.root.setRight(b.root),b.root&&b.root.setParent(h.root),this.root=h.root}else this.root=b.root;c.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(c,h){if(!h){this.splayNode(c),this.cutOffRight(c);return}this.splayNode(c),this.splayNode(h),h.getLeft()!=c&&this.rotateRight(c),this.cutOffRight(c)}cutOffRight(c){const h=[];this.traversePostorder(c.getRight(),h);for(const b of h)b.initWeight();this.updateTreeWeight(c)}toTestString(){const c=[];return this.traverseInorder(this.root,c),c.map(h=>`[${h.getWeight()},${h.getLength()}]${h.getValue()||""}`).join("")}checkWeight(){const c=[];this.traverseInorder(this.root,c);for(const h of c)if(h.getWeight()!=h.getLength()+h.getLeftWeight()+h.getRightWeight())return!1;return!0}getRightmost(){let c=this.root;for(;c.hasRight();)c=c.getRight();return c}traverseInorder(c,h){c&&(this.traverseInorder(c.getLeft(),h),h.push(c),this.traverseInorder(c.getRight(),h))}traversePostorder(c,h){c&&(this.traversePostorder(c.getLeft(),h),this.traversePostorder(c.getRight(),h),h.push(c))}rotateLeft(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setRight(c.getLeft()),h.hasRight()&&h.getRight().setParent(h),c.setLeft(h),c.getLeft().setParent(c),this.updateWeight(h),this.updateWeight(c)}rotateRight(c){const h=c.getParent();h.hasParent()?h===h.getParent().getLeft()?h.getParent().setLeft(c):h.getParent().setRight(c):this.root=c,c.setParent(h.getParent()),h.setLeft(c.getRight()),h.hasLeft()&&h.getLeft().setParent(h),c.setRight(h),c.getRight().setParent(c),this.updateWeight(h),this.updateWeight(c)}isLeftChild(c){return c&&c.hasParent()?c.getParent().getLeft()===c:!1}isRightChild(c){return c&&c.hasParent()?c.getParent().getRight()===c:!1}}var Cn=(v=>(v[v.Null=0]="Null",v[v.Boolean=1]="Boolean",v[v.Integer=2]="Integer",v[v.Long=3]="Long",v[v.Double=4]="Double",v[v.String=5]="String",v[v.Bytes=6]="Bytes",v[v.Date=7]="Date",v))(Cn||{});class Ti extends Pm{constructor(c,h){super(h),s(this,"valueType"),s(this,"value"),this.valueType=Ti.getPrimitiveType(c),this.value=c===void 0?null:c}static of(c,h){return new Ti(c,h)}static valueFromBytes(c,h){switch(c){case 0:return null;case 1:return!!h[0];case 2:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 4:{const b=new DataView(h.buffer);return h.forEach(function(E,P){b.setUint8(P,E)}),b.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(h);case 3:return kn.fromBytesLE(Array.from(h));case 6:return h;case 7:return new Date(kn.fromBytesLE(Array.from(h),!0).toNumber());default:throw new xr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return this.valueType===5?`"${Vu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const c=Ti.of(this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c.setRemovedAt(this.getRemovedAt()),c}getType(){return this.valueType}static getPrimitiveType(c){switch(typeof c){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(c)?2:4;case"string":return 5;case"object":if(c===null)return 0;if(c instanceof kn)return 3;if(c instanceof Uint8Array)return 6;if(c instanceof Date)return 7}}static isSupport(c){return Ti.getPrimitiveType(c)!==void 0}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===2||c===3||c===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 4:{const c=this.value,h=new Uint8Array(8);return new DataView(h.buffer).setFloat64(0,c,!0),h}case 5:return new TextEncoder().encode(this.value);case 3:{const h=this.value.toBytesLE();return Uint8Array.from(h)}case 6:return this.value;case 7:{const c=this.value,h=kn.fromNumber(c.getTime(),!0).toBytesLE();return Uint8Array.from(h)}default:throw new xr(mr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class hb extends Lm{constructor(c){super(c),s(this,"prev"),s(this,"next"),this.value=c}static createAfter(c,h){const b=new hb(h),E=c.next;return c.next=b,b.prev=c,b.next=E,E&&(E.prev=b),b}remove(c){return this.value.remove(c)}getCreatedAt(){return this.value.getCreatedAt()}getPositionedAt(){return this.value.getPositionedAt()}release(){this.prev&&(this.prev.next=this.next),this.next&&(this.next.prev=this.prev),this.prev=void 0,this.next=void 0}getLength(){return this.value.isRemoved()?0:1}getPrev(){return this.prev}getNext(){return this.next}getValue(){return this.value}isRemoved(){return this.value.isRemoved()}}class Mm{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const c=Ti.of(0,Rs);c.setRemovedAt(Rs),this.dummyHead=new hb(c),this.last=this.dummyHead,this.nodeMapByIndex=new ps,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new Mm}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(c,h){let b=this.nodeMapByCreatedAt.get(c.toIDString());for(b||Rt.fatal(`cant find the given node: ${c.toIDString()}`);b.getNext()&&b.getNext().getPositionedAt().after(h);)b=b.getNext();return b}release(c){this.last===c&&(this.last=c.getPrev()),c.release(),this.nodeMapByIndex.delete(c),this.nodeMapByCreatedAt.delete(c.getValue().getCreatedAt().toIDString())}insertAfter(c,h,b=h.getCreatedAt()){const E=this.findNextBeforeExecutedAt(c,b),P=hb.createAfter(E,h);E===this.last&&(this.last=P),this.nodeMapByIndex.insertAfter(E,P),this.nodeMapByCreatedAt.set(P.getCreatedAt().toIDString(),P)}moveAfter(c,h,b){const E=this.nodeMapByCreatedAt.get(c.toIDString());E||Rt.fatal(`cant find the given node: ${c.toIDString()}`);const P=this.nodeMapByCreatedAt.get(h.toIDString());P||Rt.fatal(`cant find the given node: ${h.toIDString()}`),E!==P&&(!P.getValue().getMovedAt()||b.after(P.getValue().getMovedAt()))&&(this.release(P),this.insertAfter(E.getCreatedAt(),P.getValue(),b),P.getValue().setMovedAt(b))}insert(c){this.insertAfter(this.last.getCreatedAt(),c)}getByID(c){return this.nodeMapByCreatedAt.get(c.toIDString())}subPathOf(c){const h=this.nodeMapByCreatedAt.get(c.toIDString());if(h)return String(this.nodeMapByIndex.indexOf(h))}purge(c){const h=this.nodeMapByCreatedAt.get(c.getCreatedAt().toIDString());h||Rt.fatal(`fail to find the given createdAt: ${c.getCreatedAt().toIDString()}`),this.release(h)}getByIndex(c){if(c>=this.length)return;const[h,b]=this.nodeMapByIndex.find(c);let E=h;if(c===0&&h===this.dummyHead||b>0)do E&&(E=E.getNext());while(E&&E.isRemoved());return E}getPrevCreatedAt(c){let h=this.nodeMapByCreatedAt.get(c.toIDString());do h=h.getPrev();while(this.dummyHead!==h&&h.isRemoved());return h.getValue().getCreatedAt()}delete(c,h){const b=this.nodeMapByCreatedAt.get(c.toIDString()),E=b.isRemoved();return b.remove(h)&&!E&&this.nodeMapByIndex.splayNode(b),b.getValue()}deleteByIndex(c,h){const b=this.getByIndex(c);if(b)return b.remove(h)&&this.nodeMapByIndex.splayNode(b),b.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const c=[];for(const h of this){const b=`${h.getCreatedAt().toIDString()}:${h.getValue().toJSON()}`;h.isRemoved()?c.push(`{${b}}`):c.push(`[${b}]`)}return c.join("")}*[Symbol.iterator](){let c=this.dummyHead.getNext();for(;c;)yield c,c=c.getNext()}}class Aa extends Vd{constructor(c,h){super(c),s(this,"elements"),this.elements=h}static create(c,h){if(!h)return new Aa(c,Mm.create());const b=Mm.create();for(const E of h)b.insertAfter(b.getLastCreatedAt(),E.deepcopy());return new Aa(c,b)}subPathOf(c){return this.elements.subPathOf(c)}purge(c){this.elements.purge(c)}insertAfter(c,h){this.elements.insertAfter(c,h)}moveAfter(c,h,b){this.elements.moveAfter(c,h,b)}get(c){const h=this.elements.getByIndex(c);return h==null?void 0:h.getValue()}getByID(c){const h=this.elements.getByID(c);return h==null?void 0:h.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(c){return this.elements.getPrevCreatedAt(c)}delete(c,h){return this.elements.delete(c,h)}deleteByIndex(c,h){return this.elements.deleteByIndex(c,h)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const c of this.elements)c.isRemoved()||(yield c.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(c){for(const h of this.elements){const b=h.getValue();if(c(b,this))return;b instanceof Vd&&b.getDescendants(c)}}toJSON(){const c=[];for(const h of this)c.push(h.toJSON());return`[${c.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const c={};for(let h=0;h({...ft,value:ft.value?{attributes:na(ft.value.getAttributes()),content:ft.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[fe,vt,me,[Y,Y]]}setStyle(c,h,b,E){const[,P]=this.rgaTreeSplit.findNodeWithSplit(c[1],b),[,z]=this.rgaTreeSplit.findNodeWithSplit(c[0],b),Y=[],fe=this.rgaTreeSplit.findBetween(z,P),me=new Map,Pe=[];for(const ft of fe){const et=ft.getCreatedAt().getActorID(),Xt=E!=null&&E.size?E.has(et)?E.get(et):Rs:qc;if(ft.canStyle(b,Xt)){const _n=me.get(et),An=ft.getCreatedAt();(!_n||An.after(_n))&&me.set(et,An),Pe.push(ft)}}const vt=[];for(const ft of Pe){if(ft.isRemoved())continue;const[et,Xt]=this.rgaTreeSplit.findIndexesFromRange(ft.createPosRange());Y.push({type:"style",actor:b.getActorID(),from:et,to:Xt,value:{attributes:na(h)}});for(const[_n,An]of Object.entries(h)){const[Gn]=ft.getValue().setAttr(_n,An,b);Gn!==void 0&&vt.push({parent:ft.getValue(),child:Gn})}}return[me,vt,Y]}indexRangeToPosRange(c,h){const b=this.rgaTreeSplit.indexToPos(c);return c===h?[b,b]:[b,this.rgaTreeSplit.indexToPos(h)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const c=[];for(const h of this.rgaTreeSplit)h.isRemoved()||c.push(h.getValue().toJSON());return`[${c.join(",")}]`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TEXT"}}toString(){return this.rgaTreeSplit.toString()}values(){const c=[];for(const h of this.rgaTreeSplit)if(!h.isRemoved()){const b=h.getValue();c.push({attributes:na(b.getAttributes()),content:b.getContent()})}return c}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const c=new ol(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return c.remove(this.getRemovedAt()),c}findIndexesFromRange(c){return this.rgaTreeSplit.findIndexesFromRange(c)}getGCPairs(){const c=[];for(const h of this.rgaTreeSplit){h.getRemovedAt()&&c.push({parent:this.rgaTreeSplit,child:h});for(const b of h.getValue().getGCPairs())c.push(b)}return c}}class Bm extends hs{constructor(c,h,b,E,P,z,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.content=P,this.attributes=z}static create(c,h,b,E,P,z,Y){return new Bm(c,h,b,E,P,z,Y)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ol||Rt.fatal("fail to execute, only Text can execute edit");const b=h,[,E,P]=b.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const z of P)c.registerGCPair(z);return{opInfos:E.map(({from:z,to:Y,value:fe})=>({type:"edit",from:z,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.content;return`${c}.EDIT(${h},${b},${E})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class Um extends hs{constructor(c,h,b,E,P,z){super(c,z),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=P}static create(c,h,b,E,P,z){return new Um(c,h,b,E,P,z)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof ol||Rt.fatal("fail to execute, only Text can execute edit");const b=h,[,E,P]=b.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const z of E)c.registerGCPair(z);return{opInfos:P.map(({from:z,to:Y,value:fe})=>({type:"style",from:z,to:Y,value:fe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=this.fromPos.toTestString(),b=this.toPos.toTestString(),E=this.attributes;return`${c}.STYL(${h},${b},${JSON.stringify(E)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const m6=2,Yc="root",Zc="text";function zm(v,c){let h=0;const b=v.children;for(let E=0;E0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let c=this.parent;const h=this.isRemoved?-1:1;for(;c&&(c.size+=this.paddedSize*h,!c.isRemoved);)c=c.parent}updateDescendantsSize(){let c=0;for(const h of this._children){const b=h.updateDescendantsSize();h.isRemoved||(c+=b)}return this.size+=c,this.paddedSize}get isText(){return this.type===Zc}get paddedSize(){return this.size+(this.isText?0:m6)}isAncestorOf(c){return b6(this,c)}get nextSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c+1];if(h)return h}get prevSibling(){const c=this.parent.findOffset(this),h=this.parent.children[c-1];if(h)return h}splitText(c,h){if(c===0||c===this.size)return;const b=this.value.slice(0,c),E=this.value.slice(c);if(!E.length)return;this.value=b;const P=this.cloneText(c+h);return P.value=E,this.parent.insertAfterInternal(P,this),P}get children(){return this._children.filter(c=>!c.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(c=>c.isText)}append(...c){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...c);for(const h of c)h.parent=this,h.updateAncestorsSize()}prepend(...c){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...c);for(const h of c)h.parent=this}insertBefore(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b),c.updateAncestorsSize()}insertAfter(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b+1),c.updateAncestorsSize()}insertAt(c,h){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(c,h),c.updateAncestorsSize()}removeChild(c){if(this.isText)throw new Error("Text node cannot have children");const h=this._children.indexOf(c);if(h===-1)throw new Error("child not found");this._children.splice(h,1),c.parent=void 0}splitElement(c,h){const b=this.cloneElement(h);this.parent.insertAfterInternal(b,this),b.updateAncestorsSize();const E=this.children.slice(0,c),P=this.children.slice(c);this._children=E,b._children=P,this.size=this._children.reduce((z,Y)=>z+Y.paddedSize,0),b.size=b._children.reduce((z,Y)=>z+Y.paddedSize,0);for(const z of b._children)z.parent=b;return b}insertAfterInternal(c,h){if(this.isText)throw new Error("Text node cannot have children");const b=this._children.indexOf(h);if(b===-1)throw new Error("child not found");this.insertAtInternal(c,b+1)}insertAtInternal(c,h){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(h,0,c),c.parent=this}findOffset(c){if(this.isText)throw new Error("Text node cannot have children");if(c.isRemoved){const h=this._children.indexOf(c);return this.allChildren.splice(0,h).filter(E=>!E.isRemoved).length}return this.children.indexOf(c)}findBranchOffset(c){if(this.isText)throw new Error("Text node cannot have children");let h=c;for(;h;){const b=this._children.indexOf(h);if(b!==-1)return b;h=h.parent}return-1}}function b6(v,c){if(v===c)return!1;for(;c.parent;){if(c.parent===v)return!0;c=c.parent}return!1}var ha=(v=>(v.Start="Start",v.End="End",v.Text="Text",v))(ha||{});function Yd(v,c,h,b){if(c>h)throw new Error(`from is greater than to: ${c} > ${h}`);if(c>v.size)throw new Error(`from is out of range: ${c} > ${v.size}`);if(h>v.size)throw new Error(`to is out of range: ${h} > ${v.size}`);if(c===h)return;let E=0;for(const P of v.children){if(c-P.paddedSizeP.size;(P.isText||fe)&&b([P,P.isText?"Text":"Start"],me),Yd(P,Math.max(0,z),Math.min(Y,P.size),b),me&&b([P,"End"],me)}E+=P.paddedSize}}function ek(v,c,h=0){for(const b of v.children)ek(b,c,h+1);c(v,h)}function pb(v,c,h=0){for(const b of v._children)pb(b,c,h+1);c(v,h)}function Co(v,c,h=!0){if(c>v.size)throw new Error(`index is out of range: ${c} > ${v.size}`);if(v.isText)return{node:v,offset:c};let b=0,E=0;for(const P of v.children){if(h&&P.isText&&P.size>=c-E)return Co(P,c-E,h);if(c===E)return{node:v,offset:b};if(!h&&P.paddedSize===c-E)return{node:v,offset:b+1};if(P.paddedSize>c-E)return Co(P,c-E-1,h);E+=P.paddedSize,b+=1}return{node:v,offset:b}}function tk(v){return v.isText||v.children.length===0?v:tk(v.children[0])}function y6(v,c){if(v.sizev===c?0:v0)if(h.right)h.right.parent=h,h=h.right;else return h;else if(b<0)if(h.left)h.left.parent=h,h=h.left;else{let E=h.parent,P=h;for(;E&&P===E.left;)P=E,E=E.parent;return E}else return h}}lastEntry(){if(!this.root)return this.root;let c=this.root;for(;c.right;)c=c.right;return c}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(c,h){for(;h;){const b=this.comparator(c,h.key);if(b===0)return h;b<0?h=h.left:b>0&&(h=h.right)}}putInternal(c,h,b){if(!b)return this.counter+=1,new S6(c,h,!0);const E=this.comparator(c,b.key);return E<0?b.left=this.putInternal(c,h,b.left):E>0?b.right=this.putInternal(c,h,b.right):b.value=h,this.isRed(b.right)&&!this.isRed(b.left)&&(b=this.rotateLeft(b)),this.isRed(b.left)&&this.isRed(b.left.left)&&(b=this.rotateRight(b)),this.isRed(b.left)&&this.isRed(b.right)&&this.flipColors(b),b}removeInternal(c,h){if(this.comparator(h,c.key)<0)!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeInternal(c.left,h);else{if(this.isRed(c.left)&&(c=this.rotateRight(c)),this.comparator(h,c.key)===0&&!c.right){this.counter-=1;return}if(!this.isRed(c.right)&&!this.isRed(c.right.left)&&(c=this.moveRedRight(c)),this.comparator(h,c.key)===0){this.counter-=1;const b=this.min(c.right);c.value=b.value,c.key=b.key,c.right=this.removeMin(c.right)}else c.right=this.removeInternal(c.right,h)}return this.fixUp(c)}min(c){return c.left?this.min(c.left):c}removeMin(c){if(c.left)return!this.isRed(c.left)&&!this.isRed(c.left.left)&&(c=this.moveRedLeft(c)),c.left=this.removeMin(c.left),this.fixUp(c)}fixUp(c){return this.isRed(c.right)&&(c=this.rotateLeft(c)),this.isRed(c.left)&&this.isRed(c.left.left)&&(c=this.rotateRight(c)),this.isRed(c.left)&&this.isRed(c.right)&&this.flipColors(c),c}moveRedLeft(c){return this.flipColors(c),this.isRed(c.right.left)&&(c.right=this.rotateRight(c.right),c=this.rotateLeft(c),this.flipColors(c)),c}moveRedRight(c){return this.flipColors(c),this.isRed(c.left.left)&&(c=this.rotateRight(c),this.flipColors(c)),c}isRed(c){return c&&c.isRed}rotateLeft(c){const h=c.right;return c.right=h.left,h.left=c,h.isRed=h.left.isRed,h.left.isRed=!0,h}rotateRight(c){const h=c.left;return c.left=h.right,h.right=c,h.isRed=h.right.isRed,h.right.isRed=!0,h}flipColors(c){c.isRed=!c.isRed,c.left.isRed=!c.left.isRed,c.right.isRed=!c.right.isRed}}class Vl{constructor(c,h){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=c,this.leftSiblingID=h}static of(c,h){return new Vl(c,h)}static fromTreePos(c){const{offset:h}=c;let{node:b}=c,E;return b.isText?(b.parent.children[0]===b&&h===0?E=b.parent:E=b,b=b.parent):h===0?E=b:E=b.children[h-1],Vl.of(b.id,Za.of(E.getCreatedAt(),E.getOffset()+h))}getParentID(){return this.parentID}static fromStruct(c){return Vl.of(Za.of(Ga.fromStruct(c.parentID.createdAt),c.parentID.offset),Za.of(Ga.fromStruct(c.leftSiblingID.createdAt),c.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(c){const h=this.getParentID(),b=this.getLeftSiblingID(),E=c.findFloorNode(h);let P=c.findFloorNode(b);if(!E||!P)throw new Error(`cannot find node of CRDTTreePos(${h.toTestString()}, ${b.toTestString()})`);return!b.equals(h)&&b.getOffset()>0&&b.getOffset()===P.id.getOffset()&&P.insPrevID&&(P=c.findFloorNode(P.insPrevID)),[E,P]}getLeftSiblingID(){return this.leftSiblingID}equals(c){return this.getParentID().getCreatedAt().equals(c.getParentID().getCreatedAt())&&this.getParentID().getOffset()===c.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(c.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===c.getLeftSiblingID().getOffset()}}class Za{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new Za(c,h)}static fromStruct(c){return Za.of(Ga.fromStruct(c.createdAt),c.offset)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset(){const E=b.deepcopy();return E.parent=h,E}),h.insPrevID=this.insPrevID,h.insNextID=this.insNextID,h}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(c){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=c,this.size=c.length}get isRemoved(){return!!this.removedAt}remove(c){const h=!this.removedAt;(!this.removedAt||this.removedAt.compare(c)>0)&&(this.removedAt=c),h&&this.updateAncestorsSize()}cloneText(c){return new Ns(Za.of(this.id.getCreatedAt(),c),this.type,void 0,void 0,this.removedAt)}cloneElement(c){return new Ns(Za.of(c(),0),this.type,void 0,void 0,this.removedAt)}split(c,h,b){const E=this.isText?this.splitText(h,this.id.getOffset()):this.splitElement(h,b);if(E){if(E.insPrevID=this.id,this.insNextID){const P=c.findFloorNode(this.insNextID);P.insPrevID=E.id,E.insNextID=this.insNextID}this.insNextID=E.id,c.registerNode(E)}return E}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(c,h){return!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}canStyle(c,h){return this.isText?!1:!this.getCreatedAt().after(h)&&(!this.removedAt||c.after(this.removedAt))}setAttrs(c,h){this.attrs||(this.attrs=new Ya);const b=new Array;for(const[E,P]of Object.entries(c))b.push(this.attrs.set(E,P,h));return b}purge(c){this.attrs&&this.attrs.purge(c)}getGCPairs(){const c=[];if(!this.attrs)return c;for(const h of this.attrs)h.getRemovedAt()&&c.push({parent:this,child:h});return c}}function ph(v){var c;if(v.isText){const b=v;return{type:b.type,value:b.value}}const h={type:v.type,children:v.children.map(ph)};return v.attrs&&(h.attributes=na((c=v.attrs)==null?void 0:c.toObject())),h}function $p(v){if(v.isText)return v.value;let c="";return v.attrs&&v.attrs.size()&&(c=" "+Array.from(v.attrs).filter(h=>!h.isRemoved()).sort((h,b)=>h.getKey().localeCompare(b.getKey())).map(h=>{const b=JSON.parse(h.getValue());return typeof b=="string"?`${h.getKey()}="${b}"`:`${h.getKey()}="${Vu(h.getValue())}"`}).join(" ")),`<${v.type}${c}>${v.children.map(h=>$p(h)).join("")}`}function rk(v){if(v.isText){const c=v;return{type:c.type,value:c.value,size:c.size,isRemoved:c.isRemoved}}return{type:v.type,children:v.children.map(rk),size:v.size,isRemoved:v.isRemoved}}class Ro extends Pm{constructor(c,h){super(h),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new v6(c),this.nodeMapByID=new mS(Za.createComparator()),this.indexTree.traverseAll(b=>{this.nodeMapByID.put(b.id,b)})}static create(c,h){return new Ro(c,h)}findFloorNode(c){const h=this.nodeMapByID.floorEntry(c);if(!(!h||!h.key.getCreatedAt().equals(c.getCreatedAt())))return h.value}registerNode(c){this.nodeMapByID.put(c.id,c)}findNodesAndSplitText(c,h){const[b,E]=c.toTreeNodePair(this);let P=E;const z=b===P,Y=P.parent&&!z?P.parent:b;if(P.isText&&P.split(this,c.getLeftSiblingID().getOffset()-P.id.getOffset()),h){const fe=Y.allChildren,me=z?0:fe.indexOf(P)+1;for(let Pe=me;Pe{const Xt=et.getCreatedAt().getActorID(),_n=E?E.has(Xt)?E.get(Xt):Rs:qc;if(et.canStyle(b,_n)&&h){const An=vt.get(Xt),Gn=et.getCreatedAt();(!An||Gn.after(An))&&vt.set(Xt,Gn);const ci=et.setAttrs(h,b),gr=ci.reduce((gi,[,bs])=>(bs&&(gi[bs.getKey()]=Pe[bs.getKey()]),gi),{}),Wr=et.parent,zr=et.prevSibling||et.parent;Object.keys(gr).length>0&&me.push({type:"style",from:this.toIndex(Wr,zr),to:this.toIndex(et,et),fromPath:this.toPath(Wr,zr),toPath:this.toPath(et,et),actor:b.getActorID(),value:gr});for(const[gi]of ci)gi&&ft.push({parent:et,child:gi})}}),[vt,ft,me]}removeStyle(c,h,b,E){const[P,z]=this.findNodesAndSplitText(c[0],b),[Y,fe]=this.findNodesAndSplitText(c[1],b),me=[],Pe=new Map,vt=[];return this.traverseInPosRange(P,z,Y,fe,([ft])=>{const et=ft.getCreatedAt().getActorID(),Xt=E?E.has(et)?E.get(et):Rs:qc;if(ft.canStyle(b,Xt)&&h){const _n=Pe.get(et),An=ft.getCreatedAt();(!_n||An.after(_n))&&Pe.set(et,An),ft.attrs||(ft.attrs=new Ya);for(const gr of h){const Wr=ft.attrs.remove(gr,b);for(const zr of Wr)vt.push({parent:ft,child:zr})}const Gn=ft.parent,ci=ft.prevSibling||ft.parent;me.push({actor:b.getActorID(),type:"removeStyle",from:this.toIndex(Gn,ci),to:this.toIndex(ft,ft),fromPath:this.toPath(Gn,ci),toPath:this.toPath(ft,ft),value:h})}}),[Pe,vt,me]}edit(c,h,b,E,P,z){const[Y,fe]=this.findNodesAndSplitText(c[0],E),[me,Pe]=this.findNodesAndSplitText(c[1],E),vt=this.toIndex(Y,fe),ft=this.toPath(Y,fe),et=[],Xt=[],_n=[],An=new Map;this.traverseInPosRange(Y,fe,me,Pe,([gr,Wr],zr)=>{if(Wr===ha.Start&&!zr)for(const Do of gr.children)_n.push(Do);const gi=gr.getCreatedAt().getActorID(),bs=z?z.has(gi)?z.get(gi):Rs:qc;if(gr.canDelete(E,bs)||et.includes(gr.parent)){const Do=An.get(gi),dg=gr.getCreatedAt();(!Do||dg.after(Do))&&An.set(gi,dg),(Wr===ha.Text||Wr===ha.Start)&&et.push(gr),Xt.push([gr,Wr])}});const Gn=this.makeDeletionChanges(Xt,E),ci=[];for(const gr of et)gr.remove(E),gr.isRemoved&&ci.push({parent:this,child:gr});for(const gr of _n)gr.removedAt||Y.append(gr);if(b>0){let gr=0,Wr=Y,zr=fe;for(;gr{Y.isRemoved&&(gi.remove(E),ci.push({parent:this,child:gi})),this.nodeMapByID.put(gi.id,gi)}),zr.isRemoved||gr.push(zr);if(gr.length){const zr=gr.map(gi=>ph(gi));Gn.length&&Gn[Gn.length-1].from===vt?Gn[Gn.length-1].value=zr:Gn.push({type:"content",from:vt,to:vt,fromPath:ft,toPath:ft,actor:E.getActorID(),value:zr})}}return[Gn,ci,An]}editT(c,h,b,E,P){const z=this.findPos(c[0]),Y=this.findPos(c[1]);this.edit([z,Y],h,b,E,P)}move(c,h,b){throw new Error(`not implemented: ${c}, ${h}, ${b}`)}purge(c){var h;(h=c.parent)==null||h.removeChild(c),this.nodeMapByID.remove(c.id);const b=c.insPrevID,E=c.insNextID;if(b){const P=this.findFloorNode(b);P.insNextID=E}if(E){const P=this.findFloorNode(E);P.insPrevID=b}c.insPrevID=void 0,c.insNextID=void 0}getGCPairs(){const c=[];return this.indexTree.traverse(h=>{h.getRemovedAt()&&c.push({parent:this,child:h});for(const b of h.getGCPairs())c.push(b)}),c}findPos(c,h=!0){const b=this.indexTree.findTreePos(c,h);return Vl.fromTreePos(b)}pathToPosRange(c){const h=this.pathToIndex(c);return[this.findPos(h),this.findPos(h+1)]}pathToPos(c){const h=this.indexTree.pathToIndex(c);return this.findPos(h)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return $p(this.indexTree.getRoot())}toJSON(){return JSON.stringify(this.getRootTreeNode())}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:JSON.parse(this.toJSON()),type:"YORKIE_TREE"}}toJSInfoForTest(){const c=this.indexTree.getRoot(),h=(b,E=void 0,P=void 0,z=0)=>{var Y,fe,me,Pe;let vt,ft,et;const Xt=b.isText?{node:b,offset:0}:E&&P?this.toTreePos(E,P):null;Xt&&(vt=this.indexTree.indexOf(Xt),ft=this.indexTree.treePosToPath(Xt),et=Vl.fromTreePos(Xt).toStruct());const _n={type:b.type,parent:E==null?void 0:E.id.toTestString(),size:b.size,id:b.id.toTestString(),removedAt:(Y=b.removedAt)==null?void 0:Y.toTestString(),insPrev:(fe=b.insPrevID)==null?void 0:fe.toTestString(),insNext:(me=b.insNextID)==null?void 0:me.toTestString(),value:b.isText?b.value:void 0,isRemoved:b.isRemoved,children:[],depth:z,attributes:b.attrs?na((Pe=b.attrs)==null?void 0:Pe.toObject()):void 0,index:vt,path:ft,pos:et};for(let An=0;An0&&An===b[b.length-1].to?(b[b.length-1].to=Gn,b[b.length-1].toPath=this.toPath(_n,ft)):b.push({type:"content",from:An,to:Gn,fromPath:this.toPath(Xt,Pe),toPath:this.toPath(_n,ft),actor:h.getActorID()}))}return b.reverse()}findRightToken([c,h]){if(h===ha.Start){const Y=c.allChildren;return Y.length>0?[Y[0],Y[0].isText?ha.Text:ha.Start]:[c,ha.End]}const b=c.parent,E=b.allChildren,P=E.indexOf(c);if(b&&P===E.length-1)return[b,ha.End];const z=E[P+1];return[z,z.isText?ha.Text:ha.Start]}findLeftToken([c,h]){if(h===ha.End){const Y=c.allChildren;if(Y.length>0){const fe=Y[Y.length-1];return[fe,fe.isText?ha.Text:ha.End]}return[c,ha.Start]}const b=c.parent,E=b.allChildren,P=E.indexOf(c);if(b&&P===0)return[b,ha.Start];const z=E[P-1];return[z,z.isText?ha.Text:ha.End]}}class jm extends hs{constructor(c,h,b,E,P,z,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=h,this.toPos=b,this.contents=E,this.splitLevel=P,this.maxCreatedAtMapByActor=z}static create(c,h,b,E,P,z,Y){return new jm(c,h,b,E,P,z,Y)}execute(c){var h;const b=c.findByCreatedAt(this.getParentCreatedAt());b||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),b instanceof Ro||Rt.fatal("fail to execute, only Tree can execute edit");const E=this.getExecutedAt(),P=b,[z,Y]=P.edit([this.fromPos,this.toPos],(h=this.contents)==null?void 0:h.map(fe=>fe.deepcopy()),this.splitLevel,E,(()=>{let fe=E.getDelimiter();return this.contents!==void 0&&(fe+=this.contents.length),()=>Ga.of(E.getLamport(),++fe,E.getActorID())})(),this.maxCreatedAtMapByActor);for(const fe of Y)c.registerGCPair(fe);return{opInfos:z.map(({from:fe,to:me,value:Pe,splitLevel:vt,fromPath:ft,toPath:et})=>({type:"tree-edit",path:c.createPath(this.getParentCreatedAt()),from:fe,to:me,value:Pe,splitLevel:vt,fromPath:ft,toPath:et}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,E=this.contents||[];return`${c}.EDIT(${h},${b},${E.map(P=>$p(P)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class ms{constructor(c,h,b,E){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=c,this.serverSeq=E,this.lamport=h,this.actor=b}static of(c,h,b,E){return new ms(c,h,b,E)}next(){return new ms(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(c){return c.greaterThan(this.lamport)?new ms(this.clientSeq,c,this.actor):new ms(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(c){return Ga.of(this.lamport,c,this.actor)}setActor(c){return new ms(this.clientSeq,this.lamport,c,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const gS=new ms(0,kn.fromInt(0,!0),Dm);class Io{constructor({id:c,operations:h,presenceChange:b,message:E}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=c,this.operations=h||[],this.presenceChange=b,this.message=E}static create({id:c,operations:h,presenceChange:b,message:E}){return new Io({id:c,operations:h,presenceChange:b,message:E})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(c){for(const h of this.operations)h.setActor(c);this.id=this.id.setActor(c)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(c,h,b){const E=[],P=[];for(const z of this.operations){const Y=z.execute(c,b);if(!Y)continue;const{opInfos:fe,reverseOp:me}=Y;E.push(...fe),me&&P.unshift(me)}return this.presenceChange&&(this.presenceChange.type===Wd.Put?h.set(this.id.getActorID(),Wl(this.presenceChange.presence)):h.delete(this.id.getActorID())),{opInfos:E,reverseOps:P}}toTestString(){return`${this.operations.map(c=>c.toTestString()).join(",")}`}toStruct(){return{changeID:pa.bytesToHex(pa.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(c=>pa.bytesToHex(pa.toOperation(c).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(c){const{changeID:h,operations:b,presenceChange:E,message:P}=c;return Io.create({id:pa.bytesToChangeID(pa.hexToBytes(h)),operations:b==null?void 0:b.map(z=>pa.bytesToOperation(pa.hexToBytes(z))),presenceChange:E,message:P})}}class Ds{constructor(c,h,b,E,P,z){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=c,this.checkpoint=h,this.isRemoved=b,this.changes=E,this.snapshot=P,this.minSyncedTicket=z}static create(c,h,b,E,P,z){return new Ds(c,h,b,E,P,z)}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 Fp{constructor(c,h){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=c,this.clientSeq=h}static of(c,h){return new Fp(c,h)}increaseClientSeq(c){return c===0?this:new Fp(this.serverSeq,this.clientSeq+c)}forward(c){if(this.equals(c))return this;const h=this.serverSeq.greaterThan(c.serverSeq)?this.serverSeq:c.serverSeq,b=Math.max(this.clientSeq,c.clientSeq);return Fp.of(h,b)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(c){return this.clientSeq===c.clientSeq&&this.serverSeq.equals(c.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const ik=new Fp(kn.fromInt(0,!0),0);class ql{constructor(c,h){s(this,"createdAt"),s(this,"offset"),this.createdAt=c,this.offset=h}static of(c,h){return new ql(c,h)}static fromStruct(c){return ql.of(Ga.fromStruct(c.createdAt),c.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(c){return this.createdAt.compare(c.createdAt)===0&&this.offset===c.offset}hasSameCreatedAt(c){return this.createdAt.compare(c.createdAt)===0}split(c){return new ql(this.createdAt,this.offset+c)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Hm=ql.of(Rs,0);class Ba{constructor(c,h){s(this,"id"),s(this,"relativeOffset"),this.id=c,this.relativeOffset=h}static of(c,h){return new Ba(c,h)}static fromStruct(c){const h=ql.fromStruct(c.id);return Ba.of(h,c.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(c){return this.id.equals(c.id)?this.relativeOffset===c.relativeOffset:!1}}class Xc extends Lm{constructor(c,h,b){super(h),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=c,this.removedAt=b}static create(c,h){return new Xc(c,h)}static createComparator(){return(c,h)=>{const b=c.getCreatedAt().compare(h.getCreatedAt());return b!==0?b:c.getOffset()>h.getOffset()?1:c.getOffset()0&&h.getID().getOffset()==c.getOffset()){if(!h.hasInsPrev())return h;h=h.getInsPrev()}return h}findFloorNode(c){const h=this.treeByID.floorEntry(c);if(h&&!(!h.key.equals(c)&&!h.key.hasSameCreatedAt(c)))return h.value}findBetween(c,h){const b=[];let E=c;for(;E&&E!==h;)b.push(E),E=E.getNext();return b}splitNode(c,h){if(h>c.getContentLength()&&Rt.fatal("offset should be less than or equal to length"),h===0)return c;if(h===c.getContentLength())return c.getNext();const b=c.split(h);this.treeByIndex.updateWeight(b),this.insertAfter(c,b);const E=c.getInsNext();return E&&E.setInsPrev(b),b.setInsPrev(c),b}deleteNodes(c,h,b){if(!c.length)return[[],new Map,new Map];const[E,P]=this.filterNodes(c,h,b),z=new Map,Y=new Map,fe=this.makeChanges(P,h);for(const me of E){const Pe=me.getCreatedAt().getActorID();(!z.has(Pe)||me.getID().getCreatedAt().after(z.get(Pe)))&&z.set(Pe,me.getID().getCreatedAt()),Y.set(me.getID().toIDString(),me),me.remove(h)}return this.deleteIndexNodes(P),[fe,z,Y]}filterNodes(c,h,b){const E=!!b,P=[],z=[],[Y,fe]=this.findEdgesOfCandidates(c);z.push(Y);for(const me of c){const Pe=me.getCreatedAt().getActorID(),vt=E?b.has(Pe)?b.get(Pe):Rs:qc;me.canDelete(h,vt)?P.push(me):z.push(me)}return z.push(fe),[P,z]}findEdgesOfCandidates(c){return[c[0].getPrev(),c[c.length-1].getNext()]}makeChanges(c,h){const b=[];let E,P;for(let z=0;zv<0?Math.ceil(v):Math.floor(v);var qu=(v=>(v[v.IntegerCnt=0]="IntegerCnt",v[v.LongCnt=1]="LongCnt",v))(qu||{});class io extends Pm{constructor(c,h,b){switch(super(b),s(this,"valueType"),s(this,"value"),this.valueType=c,c){case 0:typeof h=="number"?h>Math.pow(2,31)-1||h<-Math.pow(2,31)?this.value=kn.fromNumber(h).toInt():this.value=Qm(h):this.value=h.toInt();break;case 1:typeof h=="number"?this.value=kn.fromNumber(h):this.value=h;break;default:throw new xr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}static create(c,h,b){return new io(c,h,b)}static valueFromBytes(c,h){switch(c){case 0:return h[0]|h[1]<<8|h[2]<<16|h[3]<<24;case 1:return kn.fromBytesLE(Array.from(h));default:throw new xr(mr.ErrUnimplemented,`unimplemented type: ${c}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const c=io.create(this.valueType,this.value,this.getCreatedAt());return c.setMovedAt(this.getMovedAt()),c}getType(){return this.valueType}static getCounterType(c){switch(typeof c){case"object":return c instanceof kn?1:void 0;case"number":return c>Math.pow(2,31)-1||c<-Math.pow(2,31)?1:0;default:return}}static isSupport(c){return!!io.getCounterType(c)}static isInteger(c){return c%1===0}isNumericType(){const c=this.valueType;return c===0||c===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const c=this.value;return new Uint8Array([c&255,c>>8&255,c>>16&255,c>>24&255])}case 1:{const h=this.value.toBytesLE();return Uint8Array.from(h)}default:throw new xr(mr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(c){function h(b){if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`)}return h(this),h(c),this.valueType===1?this.value=this.value.add(c.getValue()):c.getType()===Cn.Long?this.value=this.value+c.getValue().toInt():this.value=kn.fromNumber(this.value+Qm(c.getValue())).toInt(),this}}class qi extends hs{constructor(c,h,b){super(c,b),s(this,"value"),this.value=h}static create(c,h,b){return new qi(c,h,b)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof io||Rt.fatal("fail to execute, only Counter can execute increase");const b=h,E=this.value.deepcopy();return b.increase(E),{opInfos:[{type:"increase",path:c.createPath(this.getParentCreatedAt()),value:E.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const c=this.value.deepcopy(),b=c.getType()===Cn.Long?c.getValue().multiply(-1):c.getValue()*-1;return qi.create(this.getParentCreatedAt(),Ti.of(b,c.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Gl extends hs{constructor(c,h,b,E,P,z,Y){super(c,Y),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=h,this.toPos=b,this.maxCreatedAtMapByActor=E,this.attributes=P,this.attributesToRemove=z}static create(c,h,b,E,P,z){return new Gl(c,h,b,E,P,new Array,z)}static createTreeRemoveStyleOperation(c,h,b,E,P,z){return new Gl(c,h,b,E,new Map,P,z)}execute(c){const h=c.findByCreatedAt(this.getParentCreatedAt());h||Rt.fatal(`fail to find ${this.getParentCreatedAt()}`),h instanceof Ro||Rt.fatal("fail to execute, only Tree can execute edit");const b=h;let E,P;if(this.attributes.size){const z={};[...this.attributes].forEach(([Y,fe])=>z[Y]=fe),[,P,E]=b.style([this.fromPos,this.toPos],z,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const z=this.attributesToRemove;[,P,E]=b.removeStyle([this.fromPos,this.toPos],z,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const z of P)c.registerGCPair(z);return{opInfos:E.map(({from:z,to:Y,value:fe,fromPath:me,toPath:Pe})=>({type:"tree-style",from:z,to:Y,value:this.attributes.size?{attributes:fe}:{attributesToRemove:fe},fromPath:me,toPath:Pe,path:c.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const c=this.getParentCreatedAt().toTestString(),h=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,b=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${c}.STYLE(${h},${b},${Object.entries(this.attributes||{}).map(([E,P])=>`${E}:"${P}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function ak(v){const c=new ub,h=c.data;for(const[b,E]of Object.entries(v))h[b]=JSON.stringify(E);return c}function Gu(v){if(v.type===Wd.Put)return new lS({type:lh.PUT,presence:ak(v.presence)});if(v.type===Wd.Clear)return new lS({type:lh.CLEAR});throw new xr(mr.ErrUnimplemented,"unimplemented type")}function bS(v){return new Qc({serverSeq:v.getServerSeqAsString(),clientSeq:v.getClientSeq()})}function Wm(v){return new _p({clientSeq:v.getClientSeq(),lamport:v.getLamportAsString(),actorId:vb(v.getActorID())})}function fn(v){if(v)return new wn({lamport:v.getLamportAsString(),delimiter:v.getDelimiter(),actorId:vb(v.getActorID())})}function yS(v){switch(v){case Cn.Null:return Vn.NULL;case Cn.Boolean:return Vn.BOOLEAN;case Cn.Integer:return Vn.INTEGER;case Cn.Long:return Vn.LONG;case Cn.Double:return Vn.DOUBLE;case Cn.String:return Vn.STRING;case Cn.Bytes:return Vn.BYTES;case Cn.Date:return Vn.DATE;default:throw new xr(mr.Unsupported,`unsupported type: ${v}`)}}function gs(v){switch(v){case qu.IntegerCnt:return Vn.INTEGER_CNT;case qu.LongCnt:return Vn.LONG_CNT;default:throw new xr(mr.Unsupported,`unsupported type: ${v}`)}}function Vm(v){if(v instanceof Is)return new zu({type:Vn.JSON_OBJECT,createdAt:fn(v.getCreatedAt()),value:CS(v)});if(v instanceof Aa)return new zu({type:Vn.JSON_ARRAY,createdAt:fn(v.getCreatedAt()),value:vk(v)});if(v instanceof ol)return new zu({type:Vn.TEXT,createdAt:fn(v.getCreatedAt())});if(v instanceof Ti)return new zu({type:yS(v.getType()),createdAt:fn(v.getCreatedAt()),value:v.toBytes()});if(v instanceof io)return new zu({type:gs(v.getType()),createdAt:fn(v.getCreatedAt()),value:v.toBytes()});if(v instanceof Ro)return new zu({type:Vn.TREE,createdAt:fn(v.getCreatedAt()),value:NS(v)});throw new xr(mr.ErrUnimplemented,"unimplemented element")}function E6(v){return new sS({createdAt:fn(v.getCreatedAt()),offset:v.getOffset()})}function mb(v){return new Hu({createdAt:fn(v.getID().getCreatedAt()),offset:v.getID().getOffset(),relativeOffset:v.getRelativeOffset()})}function gb(v){return new ju({parentId:mh(v.getParentID()),leftSiblingId:mh(v.getLeftSiblingID())})}function mh(v){return new Rp({createdAt:fn(v.getCreatedAt()),offset:v.getOffset()})}function sk(v){const c=new tS;if(v instanceof fh){const h=v,b=new Wx;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.key=h.getKey(),b.value=Vm(h.getValue()),b.executedAt=fn(h.getExecutedAt()),c.body.case="set",c.body.value=b}else if(v instanceof $m){const h=v,b=new Vx;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.prevCreatedAt=fn(h.getPrevCreatedAt()),b.value=Vm(h.getValue()),b.executedAt=fn(h.getExecutedAt()),c.body.case="add",c.body.value=b}else if(v instanceof Gd){const h=v,b=new nS;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.prevCreatedAt=fn(h.getPrevCreatedAt()),b.createdAt=fn(h.getCreatedAt()),b.executedAt=fn(h.getExecutedAt()),c.body.case="move",c.body.value=b}else if(v instanceof qd){const h=v,b=new Am;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.createdAt=fn(h.getCreatedAt()),b.executedAt=fn(h.getExecutedAt()),c.body.case="remove",c.body.value=b}else if(v instanceof Bm){const h=v,b=new oh;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.from=mb(h.getFromPos()),b.to=mb(h.getToPos());const E=b.createdAtMapByActor;for(const[z,Y]of h.getMaxCreatedAtMapByActor())E[z]=fn(Y);b.content=h.getContent();const P=b.attributes;for(const[z,Y]of h.getAttributes())P[z]=Y;b.executedAt=fn(h.getExecutedAt()),c.body.case="edit",c.body.value=b}else if(v instanceof Um){const h=v,b=new rS;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.from=mb(h.getFromPos()),b.to=mb(h.getToPos());const E=b.createdAtMapByActor;for(const[z,Y]of h.getMaxCreatedAtMapByActor())E[z]=fn(Y);const P=b.attributes;for(const[z,Y]of h.getAttributes())P[z]=Y;b.executedAt=fn(h.getExecutedAt()),c.body.case="style",c.body.value=b}else if(v instanceof qi){const h=v,b=new iS;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.value=Vm(h.getValue()),b.executedAt=fn(h.getExecutedAt()),c.body.case="increase",c.body.value=b}else if(v instanceof jm){const h=v,b=new rb,E=b.createdAtMapByActor;for(const[P,z]of h.getMaxCreatedAtMapByActor())E[P]=fn(z);b.parentCreatedAt=fn(h.getParentCreatedAt()),b.from=gb(h.getFromPos()),b.to=gb(h.getToPos()),b.contents=k6(h.getContents()),b.splitLevel=h.getSplitLevel(),b.executedAt=fn(h.getExecutedAt()),c.body.case="treeEdit",c.body.value=b}else if(v instanceof Gl){const h=v,b=new ib;b.parentCreatedAt=fn(h.getParentCreatedAt()),b.from=gb(h.getFromPos()),b.to=gb(h.getToPos());const E=b.createdAtMapByActor;for(const[z,Y]of h.getMaxCreatedAtMapByActor())E[z]=fn(Y);const P=h.getAttributesToRemove();if(P.length>0)b.attributesToRemove=P;else{const z=b.attributes;for(const[Y,fe]of h.getAttributes())z[Y]=fe}b.executedAt=fn(h.getExecutedAt()),c.body.case="treeStyle",c.body.value=b}else throw new xr(mr.ErrUnimplemented,"unimplemented operation");return c}function qm(v){const c=[];for(const h of v)c.push(sk(h));return c}function ok(v){const c=new Qx({id:Wm(v.getID()),message:v.getMessage()});return v.hasOperations()&&(c.operations=qm(v.getOperations())),v.hasPresenceChange()&&(c.presenceChange=Gu(v.getPresenceChange())),c}function w6(v){const c=[];for(const h of v)c.push(ok(h));return c}function T6(v){const c=[];for(const h of v)c.push(new Cp({key:h.getStrKey(),element:Ym(h.getValue())}));return c}function Gm(v){const c=[];for(const h of v)c.push(new lb({element:Ym(h.getValue())}));return c}function x6(v){const c=[];for(const h of v){const b=new Gx;b.id=E6(h.getID()),b.value=h.getValue().getContent(),b.removedAt=fn(h.getRemovedAt());const E=b.attributes,P=h.getValue().getAttrs();for(const z of P){const Y=new _m;Y.value=z.getValue(),Y.updatedAt=fn(z.getUpdatedAt()),E[z.getKey()]=Y}c.push(b)}return c}function k6(v){const c=[];if(!v||!v.length)return c;for(const h of v)c.push(new Yx({content:bb(h)}));return c}function vS(v){const c={};for(const h of v)c[h.getKey()]=new _m({value:h.getValue(),updatedAt:fn(h.getUpdatedAt()),isRemoved:h.isRemoved()});return c}function bb(v){if(!v)return[];const c=[];return pb(v,(h,b)=>{const E=new oS({id:mh(h.id),type:h.type,removedAt:fn(h.removedAt),depth:b});h.isText&&(E.value=h.value),h.insPrevID&&(E.insPrevId=mh(h.insPrevID)),h.insNextID&&(E.insNextId=mh(h.insNextID)),h.attrs&&(E.attributes=vS(h.attrs)),c.push(E)}),c}function A6(v){const c=new il;return c.body.case="jsonObject",c.body.value=new ab({nodes:T6(v.getRHT()),createdAt:fn(v.getCreatedAt()),movedAt:fn(v.getMovedAt()),removedAt:fn(v.getRemovedAt())}),c}function lk(v){const c=new il;return c.body.case="jsonArray",c.body.value=new sb({nodes:Gm(v.getElements()),createdAt:fn(v.getCreatedAt()),movedAt:fn(v.getMovedAt()),removedAt:fn(v.getRemovedAt())}),c}function _6(v){const c=new il;return c.body.case="primitive",c.body.value=new qx({type:yS(v.getType()),value:v.toBytes(),createdAt:fn(v.getCreatedAt()),movedAt:fn(v.getMovedAt()),removedAt:fn(v.getRemovedAt())}),c}function uk(v){const c=new il;return c.body.case="text",c.body.value=new aS({nodes:x6(v.getRGATreeSplit()),createdAt:fn(v.getCreatedAt()),movedAt:fn(v.getMovedAt()),removedAt:fn(v.getRemovedAt())}),c}function OS(v){const c=new il;return c.body.case="counter",c.body.value=new no({type:gs(v.getType()),value:v.toBytes(),createdAt:fn(v.getCreatedAt()),movedAt:fn(v.getMovedAt()),removedAt:fn(v.getRemovedAt())}),c}function ck(v){const c=new il;return c.body.case="tree",c.body.value=new ob({nodes:bb(v.getRoot()),createdAt:fn(v.getCreatedAt()),movedAt:fn(v.getMovedAt()),removedAt:fn(v.getRemovedAt())}),c}function Ym(v){if(v instanceof Is)return A6(v);if(v instanceof Aa)return lk(v);if(v instanceof Ti)return _6(v);if(v instanceof ol)return uk(v);if(v instanceof io)return OS(v);if(v instanceof Ro)return ck(v);throw new xr(mr.ErrUnimplemented,"unimplemented element")}function dk(v){return new jl({documentKey:v.getDocumentKey(),checkpoint:bS(v.getCheckpoint()),isRemoved:v.getIsRemoved(),changes:w6(v.getChanges()),snapshot:v.getSnapshot(),minSyncedTicket:fn(v.getMinSyncedTicket())})}function SS(v){const c=v.findDetails(f6);for(const h of c)if(h.metadata.code)return h.metadata.code;return""}function ES(v){let c;return v.serverSeq&&(c=kn.fromString(v.serverSeq,!0)),ms.of(v.clientSeq,kn.fromString(v.lamport,!0),DS(v.actorId),c)}function yn(v){if(v)return Ga.of(kn.fromString(v.lamport,!0),v.delimiter,DS(v.actorId))}function wS(v){const c={};return Object.entries(v.data).forEach(([h,b])=>{c[h]=JSON.parse(b)}),c}function fk(v){const c=v.type;if(c===lh.PUT){const h=wS(v.presence);return{type:Wd.Put,presence:h}}if(c===lh.CLEAR)return{type:Wd.Clear};throw new xr(mr.Unsupported,`unsupported type: ${c}`)}function hk(v){const c=new Map;return Object.entries(v).forEach(([h,b])=>{c.set(h,wS(b))}),c}function pk(v){switch(v){case Vn.NULL:return Cn.Null;case Vn.BOOLEAN:return Cn.Boolean;case Vn.INTEGER:return Cn.Integer;case Vn.LONG:return Cn.Long;case Vn.DOUBLE:return Cn.Double;case Vn.STRING:return Cn.String;case Vn.BYTES:return Cn.Bytes;case Vn.DATE:return Cn.Date}throw new xr(mr.ErrUnimplemented,`unimplemented value type: ${v}`)}function Zm(v){switch(v){case Vn.INTEGER_CNT:return qu.IntegerCnt;case Vn.LONG_CNT:return qu.LongCnt}throw new xr(mr.ErrUnimplemented,`unimplemented value type: ${v}`)}function TS(v){switch(v.type){case Vn.JSON_OBJECT:return v.value?eg(v.value):Is.create(yn(v.createdAt));case Vn.JSON_ARRAY:return v.value?RS(v.value):Aa.create(yn(v.createdAt));case Vn.TEXT:return ol.create(Bp.create(),yn(v.createdAt));case Vn.TREE:return IS(v.value);case Vn.NULL:case Vn.BOOLEAN:case Vn.INTEGER:case Vn.LONG:case Vn.DOUBLE:case Vn.STRING:case Vn.BYTES:case Vn.DATE:return Ti.of(Ti.valueFromBytes(pk(v.type),v.value),yn(v.createdAt));case Vn.INTEGER_CNT:case Vn.LONG_CNT:return io.create(Zm(v.type),io.valueFromBytes(Zm(v.type),v.value),yn(v.createdAt))}}function Up(v){return Ba.of(ql.of(yn(v.createdAt),v.offset),v.relativeOffset)}function xS(v){return ql.of(yn(v.createdAt),v.offset)}function kS(v){const c=Fm.create(v.value);Object.entries(v.attributes).forEach(([b,E])=>{c.setAttr(b,E.value,yn(E.updatedAt))});const h=Xc.create(xS(v.id),c);return h.remove(yn(v.removedAt)),h}function zp(v){return Vl.of(gh(v.parentId),gh(v.leftSiblingId))}function gh(v){return Za.of(yn(v.createdAt),v.offset)}function nr(v){if(!v.length)return;const c=[];return v.forEach(h=>{const b=AS(h.content);c.push(b)}),c}function AS(v){if(v.length===0)return;const c=[];for(const E of v)c.push(Xm(E));const h=c[c.length-1],b=new Map;b.set(v[c.length-1].depth,c[c.length-1]);for(let E=c.length-2;E>=0;E--)b.get(v[E].depth-1).prepend(c[E]),b.set(v[E].depth,c[E]);return h.updateDescendantsSize(),Ro.create(h,Rs).getRoot()}function C6(v){const c=Ya.create();for(const[h,b]of Object.entries(v))c.setInternal(h,b.value,yn(b.updatedAt),b.isRemoved);return c}function Xm(v){const c=gh(v.id),h=Ns.create(c,v.type),b=Object.entries(v.attributes);return h.isText?h.value=v.value:b.length&&(h.attrs=C6(v.attributes)),v.insPrevId&&(h.insPrevID=gh(v.insPrevId)),v.insNextId&&(h.insNextID=gh(v.insNextId)),h.removedAt=yn(v.removedAt),h}function _S(v){if(v.body.case==="set"){const c=v.body.value;return fh.create(c.key,TS(c.value),yn(c.parentCreatedAt),yn(c.executedAt))}else if(v.body.case==="add"){const c=v.body.value;return $m.create(yn(c.parentCreatedAt),yn(c.prevCreatedAt),TS(c.value),yn(c.executedAt))}else if(v.body.case==="move"){const c=v.body.value;return Gd.create(yn(c.parentCreatedAt),yn(c.prevCreatedAt),yn(c.createdAt),yn(c.executedAt))}else if(v.body.case==="remove"){const c=v.body.value;return qd.create(yn(c.parentCreatedAt),yn(c.createdAt),yn(c.executedAt))}else if(v.body.case==="edit"){const c=v.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([E,P])=>{h.set(E,yn(P))});const b=new Map;return Object.entries(c.attributes).forEach(([E,P])=>{b.set(E,P)}),Bm.create(yn(c.parentCreatedAt),Up(c.from),Up(c.to),h,c.content,b,yn(c.executedAt))}else if(v.body.case==="style"){const c=v.body.value,h=new Map;Object.entries(c.createdAtMapByActor).forEach(([E,P])=>{h.set(E,yn(P))});const b=new Map;return Object.entries(c.attributes).forEach(([E,P])=>{b.set(E,P)}),Um.create(yn(c.parentCreatedAt),Up(c.from),Up(c.to),h,b,yn(c.executedAt))}else{if(v.body.case==="select")return;if(v.body.case==="increase"){const c=v.body.value;return qi.create(yn(c.parentCreatedAt),TS(c.value),yn(c.executedAt))}else if(v.body.case==="treeEdit"){const c=v.body.value,h=new Map;return Object.entries(c.createdAtMapByActor).forEach(([b,E])=>{h.set(b,yn(E))}),jm.create(yn(c.parentCreatedAt),zp(c.from),zp(c.to),nr(c.contents),c.splitLevel,h,yn(c.executedAt))}else if(v.body.case==="treeStyle"){const c=v.body.value,h=new Map,b=c.attributesToRemove,E=new Map;return c!=null&&c.createdAtMapByActor&&Object.entries(c.createdAtMapByActor).forEach(([P,z])=>{E.set(P,yn(z))}),(b==null?void 0:b.length)>0?Gl.createTreeRemoveStyleOperation(yn(c.parentCreatedAt),zp(c.from),zp(c.to),E,b,yn(c.executedAt)):(Object.entries(c.attributes).forEach(([P,z])=>{h.set(P,z)}),Gl.create(yn(c.parentCreatedAt),zp(c.from),zp(c.to),E,h,yn(c.executedAt)))}else throw new xr(mr.ErrUnimplemented,"unimplemented operation")}}function R6(v){const c=[];for(const h of v){const b=_S(h);b&&c.push(b)}return c}function mk(v){const c=[];for(const h of v)c.push(Io.create({id:ES(h.id),operations:R6(h.operations),presenceChange:h.presenceChange?fk(h.presenceChange):void 0,message:h.message}));return c}function ll(v){return Fp.of(kn.fromString(v.serverSeq,!0),v.clientSeq)}function I6(v){return Ds.create(v.documentKey,ll(v.checkpoint),v.isRemoved,mk(v.changes),v.snapshot,yn(v.minSyncedTicket))}function Km(v){const c=new Gc;for(const b of v.nodes){const E=Jm(b.element);c.set(b.key,E,E.getPositionedAt())}const h=new Is(yn(v.createdAt),c);return h.setMovedAt(yn(v.movedAt)),h.setRemovedAt(yn(v.removedAt)),h}function yb(v){const c=new Mm;for(const b of v.nodes)c.insert(Jm(b.element));const h=new Aa(yn(v.createdAt),c);return h.setMovedAt(yn(v.movedAt)),h.setRemovedAt(yn(v.removedAt)),h}function gk(v){const c=Ti.of(Ti.valueFromBytes(pk(v.type),v.value),yn(v.createdAt));return c.setMovedAt(yn(v.movedAt)),c.setRemovedAt(yn(v.removedAt)),c}function bk(v){const c=new Bp;let h=c.getHead();for(const E of v.nodes){const P=c.insertAfter(h,kS(E));E.insPrevId&&P.setInsPrev(c.findNode(xS(E.insPrevId))),h=P}const b=new ol(c,yn(v.createdAt));return b.setMovedAt(yn(v.movedAt)),b.setRemovedAt(yn(v.removedAt)),b}function No(v){const c=io.create(Zm(v.type),io.valueFromBytes(Zm(v.type),v.value),yn(v.createdAt));return c.setMovedAt(yn(v.movedAt)),c.setRemovedAt(yn(v.removedAt)),c}function Kc(v){const c=AS(v.nodes);return Ro.create(c,yn(v.createdAt))}function Jm(v){if(v.body.case==="jsonObject")return Km(v.body.value);if(v.body.case==="jsonArray")return yb(v.body.value);if(v.body.case==="primitive")return gk(v.body.value);if(v.body.case==="text")return bk(v.body.value);if(v.body.case==="counter")return No(v.body.value);if(v.body.case==="tree")return Kc(v.body.value);throw new xr(mr.ErrUnimplemented,"unimplemented element")}function yk(v){if(!v)return{root:Is.create(Rs),presences:new Map};const c=Hd.fromBinary(v);return{root:Jm(c.root),presences:hk(c.presences)}}function eg(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return Km(c.body.value)}function CS(v){return Ym(v).toBinary()}function RS(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return yb(c.body.value)}function vk(v){return lk(v).toBinary()}function IS(v){if(!v)throw new Error("bytes is empty");const c=il.fromBinary(v);return Kc(c.body.value)}function NS(v){return ck(v).toBinary()}function Jc(v){return v?Array.from(v).map(c=>c.toString(16).padStart(2,"0")).join(""):""}function DS(v){return Jc(v)}function ed(v){return new Uint8Array(v.match(/.{1,2}/g).map(c=>parseInt(c,16)))}function vb(v){return ed(v)}function Ok(v){const c=_p.fromBinary(v);return ES(c)}function PS(v){const c=tS.fromBinary(v);return _S(c)}const pa={fromPresence:wS,toChangePack:dk,fromChangePack:I6,fromChanges:mk,toTreeNodes:bb,fromTreeNodes:AS,objectToBytes:CS,bytesToObject:eg,bytesToSnapshot:yk,bytesToHex:Jc,hexToBytes:ed,toHexString:DS,toUint8Array:vb,toOperation:sk,toChangeID:Wm,PbChangeID:_p,bytesToChangeID:Ok,bytesToOperation:PS};function Sk(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,v=>{const c=Math.random()*16|0;return(v==="x"?c:c&3|8).toString(16)})}class N6{constructor(c,h,b,E){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=c,this.doc=h,this.docID=b,this.syncMode=E,this.remoteChangeEventReceived=!1}changeSyncMode(c){this.syncMode=c}needRealtimeSync(){return this.syncMode===cg.RealtimeSyncOff?!1:this.syncMode===cg.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==cg.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(c){const h=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await c(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(h,this.reconnectStreamDelay)})}catch{}};await h()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const Ob=()=>{};class Ek{constructor(c){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{c(this)}catch(h){this.error(h)}}next(c){this.forEachObserver(h=>{h.next(c)})}error(c){this.forEachObserver(h=>{h.error(c)}),this.close(c)}complete(){this.forEachObserver(c=>{c.complete()}),this.close()}subscribe(c,h,b){let E;c||Rt.fatal("missing observer"),this.finalized&&Rt.fatal("observable is finalized due to previous error"),typeof c=="object"?E=c:E={next:c,error:h,complete:b},E.next===void 0&&(E.next=Ob),E.error===void 0&&(E.error=Ob),E.complete===void 0&&(E.complete=Ob);const P=Sk(),z=this.unsubscribeOne.bind(this,P);if(this.observers.push({subscriptionID:P,observer:E}),this.finalized)try{this.finalError?E.error(this.finalError):E.complete()}catch(Y){Rt.warn(Y)}return z}unsubscribeOne(c){var h;this.observers=(h=this.observers)==null?void 0:h.filter(b=>b.subscriptionID!==c)}forEachObserver(c){if(!this.finalized)for(let h=0;hc}}class bh{constructor(c,h,b,E){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=c,this.delimiter=dh,this.root=h,this.operations=[],this.previousPresence=Wl(b),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=E}static create(c,h,b,E){return new bh(c,h,b,E)}push(c){this.operations.push(c)}registerElement(c,h){this.root.registerElement(c,h)}registerRemovedElement(c){this.root.registerRemovedElement(c)}registerGCPair(c){this.root.registerGCPair(c)}getChange(){return Io.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(c){this.presenceChange=c}setReversePresence(c,h){for(const b of Object.keys(c))h!=null&&h.addToHistory?this.reversePresenceKeys.add(b):this.reversePresenceKeys.delete(b)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const c={};for(const h of this.reversePresenceKeys)c[h]=this.previousPresence[h];return c}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class jp{constructor(c){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=c,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(c,void 0),c.getDescendants(h=>{if(h.getRemovedAt()&&this.registerRemovedElement(h),h instanceof ol||h instanceof Ro)for(const b of h.getGCPairs())this.registerGCPair(b);return!1})}static create(){return new jp(Is.create(Rs))}findByCreatedAt(c){const h=this.elementPairMapByCreatedAt.get(c.toIDString());if(h)return h.element}findElementPairByCreatedAt(c){return this.elementPairMapByCreatedAt.get(c.toIDString())}createSubPaths(c){let h=this.elementPairMapByCreatedAt.get(c.toIDString());if(!h)return[];const b=[];for(;h.parent;){const E=h.element.getCreatedAt(),P=h.parent.subPathOf(E);P===void 0&&Rt.fatal(`cant find the given element: ${E.toIDString()}`),b.unshift(P),h=this.elementPairMapByCreatedAt.get(h.parent.getCreatedAt().toIDString())}return b.unshift("$"),b}createPath(c){return this.createSubPaths(c).join(".")}registerElement(c,h){this.elementPairMapByCreatedAt.set(c.getCreatedAt().toIDString(),{parent:h,element:c}),c instanceof Vd&&c.getDescendants((b,E)=>(this.registerElement(b,E),!1))}deregisterElement(c){let h=0;const b=E=>{const P=E.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete(P),this.gcElementSetByCreatedAt.delete(P),h++};return b(c),c instanceof Vd&&c.getDescendants(E=>(b(E),!1)),h}registerRemovedElement(c){this.gcElementSetByCreatedAt.add(c.getCreatedAt().toIDString())}registerGCPair(c){if(this.gcPairMap.get(c.child.toIDString())){this.gcPairMap.delete(c.child.toIDString());return}this.gcPairMap.set(c.child.toIDString(),c)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const c=new Set;for(const h of this.gcElementSetByCreatedAt){c.add(h);const b=this.elementPairMapByCreatedAt.get(h);b.element instanceof Vd&&b.element.getDescendants(E=>(c.add(E.getCreatedAt().toIDString()),!1))}return c.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new jp(this.rootObject.deepcopy())}garbageCollect(c){let h=0;for(const b of this.gcElementSetByCreatedAt){const E=this.elementPairMapByCreatedAt.get(b);E.element.getRemovedAt()&&c.compare(E.element.getRemovedAt())>=0&&(E.parent.purge(E.element),h+=this.deregisterElement(E.element))}for(const[,b]of this.gcPairMap){const E=b.child.getRemovedAt();E!==void 0&&c.compare(E)>=0&&(b.parent.purge(b.child),this.gcPairMap.delete(b.child.toIDString()),h+=1)}return h}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function Ps(v,c){const h=new ao(v);return new Proxy(c,h.getHandlers())}class ao{constructor(c){s(this,"context"),s(this,"handlers"),this.context=c,this.handlers={set:(h,b,E)=>(Rt.isEnabled(ka.Trivial)&&Rt.trivial(`obj[${b}]=${JSON.stringify(E)}`),ao.setInternal(c,h,b,E),!0),get:(h,b)=>(Rt.isEnabled(ka.Trivial)&&Rt.trivial(`obj[${b}]`),b==="getID"?()=>h.getCreatedAt():b==="toJSON"||b==="toString"?()=>h.toJSON():b==="toJS"?()=>h.toJS():b==="toJSForTest"?()=>h.toJSForTest():Yu(c,h.get(b))),ownKeys:h=>h.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(h,b)=>(Rt.isEnabled(ka.Trivial)&&Rt.trivial(`obj[${b}]`),ao.deleteInternal(c,h,b),!0)}}static setInternal(c,h,b,E){if(b.includes("."))throw new xr(mr.ErrInvalidObjectKey,"key must not contain the '.'.");const P=c.issueTimeTicket(),z=ng(c,E,P),Y=h.set(b,z,P);c.registerElement(z,h),Y&&c.registerRemovedElement(Y),c.push(fh.create(b,z.deepcopy(),h.getCreatedAt(),P))}static buildObjectMembers(c,h){const b={};for(const[E,P]of Object.entries(h)){if(E.includes("."))throw new xr(mr.ErrInvalidObjectKey,"key must not contain the '.'.");const z=c.issueTimeTicket(),Y=ng(c,P,z);b[E]=Y}return b}static deleteInternal(c,h,b){const E=c.issueTimeTicket(),P=h.deleteByKey(b,E);P&&(c.push(qd.create(h.getCreatedAt(),P.getCreatedAt(),E)),c.registerRemovedElement(P))}getHandlers(){return this.handlers}}function P6(v,c){const h=new ai(v,c);return new Proxy(c,h.getHandlers())}function L6(v){return typeof v=="string"||v instanceof String?!isNaN(v):!1}function Sb(v){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(v)}class ai{constructor(c,h){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=c,this.array=h,this.handlers={get:(b,E,P)=>E==="getID"?()=>b.getCreatedAt():E==="getElementByID"?z=>{const Y=b.getByID(z);if(!(!Y||Y.isRemoved()))return td(c,Y)}:E==="getElementByIndex"?z=>{const Y=b.get(z);return td(c,Y)}:E==="getLast"?()=>td(c,b.getLast()):E==="deleteByID"?z=>{const Y=ai.deleteInternalByID(c,b,z);return td(c,Y)}:E==="insertAfter"?(z,Y)=>{const fe=ai.insertAfterInternal(c,b,z,Y);return td(c,fe)}:E==="insertBefore"?(z,Y)=>{const fe=ai.insertBeforeInternal(c,b,z,Y);return td(c,fe)}:E==="moveBefore"?(z,Y)=>{ai.moveBeforeInternal(c,b,z,Y)}:E==="moveAfter"?(z,Y)=>{ai.moveAfterInternal(c,b,z,Y)}:E==="moveFront"?z=>{ai.moveFrontInternal(c,b,z)}:E==="moveLast"?z=>{ai.moveLastInternal(c,b,z)}:L6(E)?Yu(c,b.get(Number(E))):E==="push"?z=>ai.pushInternal(c,b,z):E==="splice"?(z,Y,...fe)=>ai.splice(c,b,z,Y,...fe):E==="length"?b.length:typeof E=="symbol"&&E===Symbol.iterator?ai.iteratorInternal.bind(this,c,b):E==="includes"?(z,Y)=>ai.includes(c,b,z,Y):E==="indexOf"?(z,Y)=>ai.indexOf(c,b,z,Y):E==="lastIndexOf"?(z,Y)=>ai.lastIndexOf(c,b,z,Y):E==="toJSForTest"?()=>b.toJSForTest():E==="toTestString"?()=>ai.toTestString(b):typeof E=="string"&&Sb(E)?(...z)=>{const Y=Array.from(b).map(fe=>Yu(c,fe));return Array.prototype[E].apply(Y,z)}:Reflect.get(b,E,P),deleteProperty:(b,E)=>(Rt.isEnabled(ka.Trivial)&&Rt.trivial(`array[${E}]`),ai.deleteInternalByIndex(c,b,Number.parseInt(E)),!0)}}static*iteratorInternal(c,h){for(const b of h)yield td(c,b)}static buildArrayElements(c,h){const b=[];for(const E of h){const P=c.issueTimeTicket(),z=ng(c,E,P);b.push(z)}return b}static pushInternal(c,h,b){return ai.insertAfterInternal(c,h,h.getLastCreatedAt(),b),h.length}static moveBeforeInternal(c,h,b,E){const P=c.issueTimeTicket(),z=h.getPrevCreatedAt(b);h.moveAfter(z,E,P),c.push(Gd.create(h.getCreatedAt(),z,E,P))}static moveAfterInternal(c,h,b,E){const P=c.issueTimeTicket();h.moveAfter(b,E,P),c.push(Gd.create(h.getCreatedAt(),b,E,P))}static moveFrontInternal(c,h,b){const E=c.issueTimeTicket(),P=h.getHead();h.moveAfter(P.getCreatedAt(),b,E),c.push(Gd.create(h.getCreatedAt(),P.getCreatedAt(),b,E))}static moveLastInternal(c,h,b){const E=c.issueTimeTicket(),P=h.getLastCreatedAt();h.moveAfter(P,b,E),c.push(Gd.create(h.getCreatedAt(),P,b,E))}static insertAfterInternal(c,h,b,E){const P=c.issueTimeTicket(),z=ng(c,E,P);return h.insertAfter(b,z),c.registerElement(z,h),c.push($m.create(h.getCreatedAt(),b,z.deepcopy(),P)),z}static insertBeforeInternal(c,h,b,E){return ai.insertAfterInternal(c,h,h.getPrevCreatedAt(b),E)}static deleteInternalByIndex(c,h,b){const E=c.issueTimeTicket(),P=h.deleteByIndex(b,E);if(P)return c.push(qd.create(h.getCreatedAt(),P.getCreatedAt(),E)),c.registerRemovedElement(P),P}static deleteInternalByID(c,h,b){const E=c.issueTimeTicket(),P=h.delete(b,E);return c.push(qd.create(h.getCreatedAt(),P.getCreatedAt(),E)),c.registerRemovedElement(P),P}static splice(c,h,b,E,...P){const z=h.length,Y=b>=0?Math.min(b,z):Math.max(z+b,0),fe=E===void 0?z:E<0?Y:Math.min(Y+E,z),me=[];for(let Pe=Y;Pe=z)return!1;if(Ti.isSupport(b))return Array.from(h).map(me=>Yu(c,me)).includes(b,Y);for(let fe=Y;fe=z)return-1;if(Ti.isSupport(b))return Array.from(h).map(me=>Yu(c,me)).indexOf(b,Y);for(let fe=Y;fe=z?z-1:E<0?E+z:E;if(Y<0)return-1;if(Ti.isSupport(b))return Array.from(h).map(me=>Yu(c,me)).lastIndexOf(b,Y);for(let fe=Y;fe>0;fe--)if(((P=h.get(fe))==null?void 0:P.getID())===b.getID())return fe;return-1}static toTestString(c){return c.toTestString()}getHandlers(){return this.handlers}}class Hp{constructor(c,h){s(this,"context"),s(this,"text"),this.context=c,this.text=h}initialize(c,h){this.context=c,this.text=h}getID(){return this.text.getID()}edit(c,h,b,E){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}if(c>h){Rt.fatal("from should be less than or equal to to");return}const P=this.text.indexRangeToPosRange(c,h);Rt.isEnabled(ka.Debug)&&Rt.debug(`EDIT: f:${c}->${P[0].toTestString()}, t:${h}->${P[1].toTestString()} c:${b}`);const z=E?wi(E):void 0,Y=this.context.issueTimeTicket(),[fe,,me,Pe]=this.text.edit(P,b,Y,z);for(const vt of me)this.context.registerGCPair(vt);return this.context.push(new Bm(this.text.getCreatedAt(),P[0],P[1],fe,b,z?new Map(Object.entries(z)):new Map,Y)),this.text.findIndexesFromRange(Pe)}delete(c,h){return this.edit(c,h,"")}empty(){return this.edit(0,this.length,"")}setStyle(c,h,b){if(!this.context||!this.text)return Rt.fatal("it is not initialized yet"),!1;if(c>h)return Rt.fatal("from should be less than or equal to to"),!1;const E=this.text.indexRangeToPosRange(c,h);Rt.isEnabled(ka.Debug)&&Rt.debug(`STYL: f:${c}->${E[0].toTestString()}, t:${h}->${E[1].toTestString()} a:${JSON.stringify(b)}`);const P=wi(b),z=this.context.issueTimeTicket(),[Y,fe]=this.text.setStyle(E,P,z);for(const me of fe)this.context.registerGCPair(me);return this.context.push(new Um(this.text.getCreatedAt(),E[0],E[1],Y,new Map(Object.entries(P)),z)),!0}indexRangeToPosRange(c){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}const h=this.text.indexRangeToPosRange(c[0],c[1]);return[h[0].toStruct(),h[1].toStruct()]}posRangeToIndexRange(c){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}const h=this.text.findIndexesFromRange([Ba.fromStruct(c[0]),Ba.fromStruct(c[1])]);return[h[0],h[1]]}toTestString(){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){return!this.context||!this.text?(Rt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(c,h){if(!this.context||!this.text){Rt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(c,h)}}class Qp{constructor(c,h){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=c,this.value=h}initialize(c,h){this.valueType=h.getValueType(),this.context=c,this.counter=h,this.value=h.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(c){if(!this.context||!this.counter){Rt.fatal("it is not initialized yet");return}const h=this.context.issueTimeTicket(),b=Ti.of(c,h);if(!b.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof b.getValue()}`);return this.counter.increase(b),this.context.push(qi.create(this.counter.getCreatedAt(),b,h)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function LS(v,c,h){const{type:b}=v,E=h.issueTimeTicket();if(b===Zc){yh(v);const{value:P}=v,z=Ns.create(Za.of(E,0),b,P);c.append(z)}else{const{children:P=[]}=v;let{attributes:z}=v,Y;if(typeof z=="object"&&!Jx(z)){z=wi(z),Y=new Ya;for(const[me,Pe]of Object.entries(z))Y.set(me,Pe,E)}const fe=Ns.create(Za.of(E,0),b,void 0,Y);c.append(fe);for(const me of P)LS(me,fe,h)}}function wk(v,c){const{type:h}=c,b=v.issueTimeTicket();let E;if(c.type===Zc){const{value:P}=c;E=Ns.create(Za.of(b,0),h,P)}else if(c){const{children:P=[]}=c;let{attributes:z}=c,Y;if(typeof z=="object"&&!Jx(z)){z=wi(z),Y=new Ya;for(const[fe,me]of Object.entries(z))Y.set(fe,me,b)}E=Ns.create(Za.of(v.issueTimeTicket(),0),h,void 0,Y);for(const fe of P)LS(fe,E,v)}return E}function yh(v){if(!v.value.length)throw new Error("text node cannot have empty value");return!0}function Wp(v){if(!v.length)return!0;if(v[0].type===Zc)for(const h of v){const{type:b}=h;if(b!==Zc)throw new Error("element node and text node cannot be passed together");yh(h)}else for(const h of v){const{type:b}=h;if(b===Zc)throw new Error("element node and text node cannot be passed together")}return!0}class tg{constructor(c){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=c}initialize(c,h){this.context=c,this.tree=h}getID(){return this.tree.getID()}buildRoot(c){if(!this.initialRoot)return Ns.create(Za.of(c.issueTimeTicket(),0),Yc);const h=Ns.create(Za.of(c.issueTimeTicket(),0),this.initialRoot.type);for(const b of this.initialRoot.children)LS(b,h,c);return h}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(c,h){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!c.length)throw new Error("path should not be empty");const[b,E]=this.tree.pathToPosRange(c),P=this.context.issueTimeTicket(),z=h?wi(h):void 0,[Y]=this.tree.style([b,E],z,P);this.context.push(Gl.create(this.tree.getCreatedAt(),b,E,Y,z?new Map(Object.entries(z)):new Map,P))}style(c,h,b){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(c),P=this.tree.findPos(h),z=this.context.issueTimeTicket(),Y=b?wi(b):void 0,[fe,me]=this.tree.style([E,P],Y,z);for(const Pe of me)this.context.registerGCPair(Pe);this.context.push(Gl.create(this.tree.getCreatedAt(),E,P,fe,Y?new Map(Object.entries(Y)):new Map,z))}removeStyle(c,h,b){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const E=this.tree.findPos(c),P=this.tree.findPos(h),z=this.context.issueTimeTicket(),[Y,fe]=this.tree.removeStyle([E,P],b,z);for(const me of fe)this.context.registerGCPair(me);this.context.push(Gl.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),E,P,Y,b,z))}editInternal(c,h,b,E=0){var P;if(b.length!==0&&b[0]&&(Wp(b),b[0].type!==Zc))for(const Pe of b){const{children:vt=[]}=Pe;Wp(vt)}const z=this.context.getLastTimeTicket();let Y=new Array;if(((P=b[0])==null?void 0:P.type)===Zc){let Pe="";for(const vt of b){const{value:ft}=vt;Pe+=ft}Y.push(Ns.create(Za.of(this.context.issueTimeTicket(),0),Zc,Pe))}else Y=b.map(Pe=>Pe&&wk(this.context,Pe)).filter(Pe=>Pe);const[,fe,me]=this.tree.edit([c,h],Y.length?Y.map(Pe=>Pe==null?void 0:Pe.deepcopy()):void 0,E,z,()=>this.context.issueTimeTicket());for(const Pe of fe)this.context.registerGCPair(Pe);return this.context.push(jm.create(this.tree.getCreatedAt(),c,h,Y.length?Y:void 0,E,me,z)),!0}editByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c.length!==h.length)throw new Error("path length should be equal");if(!c.length||!h.length)throw new Error("path should not be empty");const P=this.tree.pathToPos(c),z=this.tree.pathToPos(h);return this.editInternal(P,z,b?[b]:[],E)}editBulkByPath(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c.length!==h.length)throw new Error("path length should be equal");if(!c.length||!h.length)throw new Error("path should not be empty");const P=this.tree.pathToPos(c),z=this.tree.pathToPos(h);return this.editInternal(P,z,b,E)}edit(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const P=this.tree.findPos(c),z=this.tree.findPos(h);return this.editInternal(P,z,b?[b]:[],E)}editBulk(c,h,b,E=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(c>h)throw new Error("from should be less than or equal to to");const P=this.tree.findPos(c),z=this.tree.findPos(h);return this.editInternal(P,z,b,E)}toXML(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toXML()}toJSON(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSON()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(c){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(c)}pathToIndex(c){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(c)}pathRangeToPosRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[this.tree.pathToIndex(c[0]),this.tree.pathToIndex(c[1])],b=this.tree.indexRangeToPosRange(h);return[b[0].toStruct(),b[1].toStruct()]}indexRangeToPosRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(c)}posRangeToIndexRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[Vl.fromStruct(c[0]),Vl.fromStruct(c[1])];return this.tree.posRangeToIndexRange(h)}posRangeToPathRange(c){if(!this.context||!this.tree){Rt.fatal("it is not initialized yet");return}const h=[Vl.fromStruct(c[0]),Vl.fromStruct(c[1])];return this.tree.posRangeToPathRange(h)}}function MS(v,c){return Ps(v,c)}function td(v,c){if(c){if(c instanceof Ti)return c;if(c instanceof Is)return Ps(v,c);if(c instanceof Aa)return P6(v,c);if(c instanceof ol)return new Hp(v,c);if(c instanceof io){const h=new Qp(qu.IntegerCnt,0);return h.initialize(v,c),h}else if(c instanceof Ro){const h=new tg;return h.initialize(v,c),h}}else return;throw new TypeError(`Unsupported type of element: ${typeof c}`)}function Yu(v,c){const h=td(v,c);return h instanceof Ti?h.getValue():h}function ng(v,c,h){let b;if(Ti.isSupport(c))b=Ti.of(c,h);else if(Array.isArray(c))b=Aa.create(h,ai.buildArrayElements(v,c));else if(typeof c=="object")c instanceof Hp?(b=ol.create(Bp.create(),h),c.initialize(v,b)):c instanceof Qp?(b=io.create(c.getValueType(),c.getValue(),h),c.initialize(v,b)):c instanceof tg?(b=Ro.create(c.buildRoot(v),h),c.initialize(v,b)):b=Is.create(h,ao.buildObjectMembers(v,c));else throw new TypeError(`Unsupported type of value: ${typeof c}`);return b}const rg=50;class $S{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(c){this.undoStack.length>=rg&&this.undoStack.shift(),this.undoStack.push(c)}popUndo(){return this.undoStack.pop()}pushRedo(c){this.redoStack.length>=rg&&this.redoStack.shift(),this.redoStack.push(c)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const ig="yorkie-devtools-panel",Tk="yorkie-devtools-sdk";let vh="disconnected";const ag=new Map,sg=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=sg);function Vp(v,c){(c!=null&&c.force||vh!=="disconnected")&&window.postMessage({source:Tk,...v},"*")}function M6(v){if(!v.isEnableDevtools()||typeof window>"u"||ag.has(v.getKey()))return;sg.set(v.getKey(),[]);const c=v.subscribe("all",h=>{h.some(b=>b.type!==Pi.StatusChanged&&b.type!==Pi.Snapshot&&b.type!==Pi.LocalChange&&b.type!==Pi.RemoteChange&&b.type!==Pi.Initialized&&b.type!==Pi.Watched&&b.type!==Pi.Unwatched&&b.type!==Pi.PresenceChanged)||(sg.get(v.getKey()).push(h),vh==="synced"&&Vp({msg:"doc::sync::partial",docKey:v.getKey(),event:h}))});ag.set(v.getKey(),[c]),Vp({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",h=>{var b;if(((b=h.data)==null?void 0:b.source)!==ig)return;switch(h.data.msg){case"devtools::connect":if(vh!=="disconnected")break;vh="connected",Vp({msg:"doc::available",docKey:v.getKey()}),Rt.info(`[YD] Devtools connected. Doc: ${v.getKey()}`);break;case"devtools::disconnect":vh="disconnected",Rt.info(`[YD] Devtools disconnected. Doc: ${v.getKey()}`);break;case"devtools::subscribe":vh="synced",Vp({msg:"doc::sync::full",docKey:v.getKey(),events:sg.get(v.getKey())}),Rt.info(`[YD] Devtools subscribed. Doc: ${v.getKey()}`);break}})}var Zu=(v=>(v.Detached="detached",v.Attached="attached",v.Removed="removed",v))(Zu||{}),Pi=(v=>(v.StatusChanged="status-changed",v.ConnectionChanged="connection-changed",v.SyncStatusChanged="sync-status-changed",v.Snapshot="snapshot",v.LocalChange="local-change",v.RemoteChange="remote-change",v.Initialized="initialized",v.Watched="watched",v.Unwatched="unwatched",v.PresenceChanged="presence-changed",v))(Pi||{}),og=(v=>(v.Connected="connected",v.Disconnected="disconnected",v))(og||{}),lg=(v=>(v.Synced="synced",v.SyncFailed="sync-failed",v))(lg||{});class FS{constructor(c,h){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=h||{},this.key=c,this.status="detached",this.root=jp.create(),this.changeID=gS,this.checkpoint=ik,this.localChanges=[],this.eventStream=D6(b=>{this.eventStreamObserver=b}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new $S,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},M6(this)}update(c,h){if(this.getStatus()==="removed")throw new xr(mr.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const b=this.changeID.getActorID(),E=bh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(b)||{},h);try{const P=MS(E,this.clone.root.getObject());this.presences.has(b)||this.clone.presences.set(b,{}),this.isUpdating=!0,c(P,new fS(E,this.clone.presences.get(b)))}catch(P){throw this.clone=void 0,Rt.error(P),P}finally{this.isUpdating=!1}if(E.hasChange()){Rt.isEnabled(ka.Trivial)&&Rt.trivial(`trying to update a local change: ${this.toJSON()}`);const P=E.getChange(),{opInfos:z,reverseOps:Y}=P.execute(this.root,this.presences,te.Local),fe=E.getReversePresence();fe&&Y.push({type:"presence",value:fe}),this.localChanges.push(P),Y.length>0&&this.internalHistory.pushUndo(Y),z.length>0&&this.internalHistory.clearRedo(),this.changeID=P.getID();const me=[];z.length>0&&me.push({type:"local-change",source:te.Local,value:{message:P.getMessage()||"",operations:z,actor:b,clientSeq:P.getID().getClientSeq(),serverSeq:P.getID().getServerSeq()},rawChange:this.isEnableDevtools()?P.toStruct():void 0}),P.hasPresenceChange()&&me.push({type:"presence-changed",source:te.Local,value:{clientID:b,presence:this.getPresence(b)}}),this.publish(me),Rt.isEnabled(ka.Trivial)&&Rt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(c,h,b,E){if(typeof c=="string"){if(typeof h!="function")throw new Error("Second argument must be a callback function");if(c==="presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||Y(me)},b,E)}if(c==="my-presence"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="initialized"&&me.type!=="presence-changed"||me.type==="presence-changed"&&me.value.clientID!==this.changeID.getActorID()||Y(me)},b,E)}if(c==="others"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="watched"&&me.type!=="unwatched"&&me.type!=="presence-changed"||me.value.clientID!==this.changeID.getActorID()&&Y(me)},b,E)}if(c==="connection"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="connection-changed"&&Y(me)},b,E)}if(c==="status"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="status-changed"&&Y(me)},b,E)}if(c==="sync"){const Y=h;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type==="sync-status-changed"&&Y(me)},b,E)}if(c==="all"){const Y=h;return this.eventStream.subscribe(Y,b,E)}const P=c,z=h;return this.eventStream.subscribe(Y=>{for(const fe of Y){if(fe.type!=="local-change"&&fe.type!=="remote-change")continue;const me=[];for(const Pe of fe.value.operations)this.isSameElementOrChildOf(Pe.path,P)&&me.push(Pe);me.length&&z({...fe,value:{...fe.value,operations:me}})}},b,E)}if(typeof c=="function"){const P=c,z=h,Y=b;return this.eventStream.subscribe(fe=>{for(const me of fe)me.type!=="snapshot"&&me.type!=="local-change"&&me.type!=="remote-change"||P(me)},z,Y)}throw new Error(`"${c}" is not a valid`)}publish(c){this.eventStreamObserver&&this.eventStreamObserver.next(c)}isSameElementOrChildOf(c,h){if(h===c)return!0;const b=c.split(".");return h.split(".").every((P,z)=>P===b[z])}applyChangePack(c){for(c.hasSnapshot()?this.applySnapshot(c.getCheckpoint().getServerSeq(),c.getSnapshot()):c.hasChanges()&&this.applyChanges(c.getChanges(),te.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>c.getCheckpoint().getClientSeq());)this.localChanges.shift();c.hasSnapshot()&&this.applyChanges(this.localChanges,te.Remote),this.checkpoint=this.checkpoint.forward(c.getCheckpoint()),this.garbageCollect(c.getMinSyncedTicket()),c.getIsRemoved()&&this.applyStatus("removed"),Rt.isEnabled(ka.Trivial)&&Rt.trivial(`${this.root.toJSON()}`)}getCheckpoint(){return this.checkpoint}getChangeID(){return this.changeID}hasLocalChanges(){return this.localChanges.length>0}ensureClone(){this.clone||(this.clone={root:this.root.deepcopy(),presences:Wl(this.presences)})}createChangePack(){const c=Array.from(this.localChanges),h=this.checkpoint.increaseClientSeq(c.length);return Ds.create(this.key,h,!1,c)}setActor(c){for(const h of this.localChanges)h.setActor(c);this.changeID=this.changeID.setActor(c)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const c=bh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return MS(c,this.clone.root.getObject())}garbageCollect(c){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(c),this.root.garbageCollect(c))}getRootObject(){return this.root.getObject()}getGarbageLen(){return this.root.getGarbageLen()}getGarbageLenFromClone(){return this.clone.root.getGarbageLen()}toJSON(){return this.root.toJSON()}toSortedJSON(){return this.root.toSortedJSON()}toJSForTest(){return{...this.getRoot().toJSForTest(),key:"root"}}applySnapshot(c,h){const{root:b,presences:E}=pa.bytesToSnapshot(h);this.root=new jp(b),this.presences=E,this.changeID=this.changeID.syncLamport(c),this.clone=void 0,this.publish([{type:"snapshot",source:te.Remote,value:{snapshot:this.isEnableDevtools()?pa.bytesToHex(h):void 0,serverSeq:c.toString()}}])}applyChanges(c,h){Rt.isEnabled(ka.Debug)&&Rt.debug(`trying to apply ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Rt.isEnabled(ka.Trivial)&&Rt.trivial(c.map(b=>`${b.getID().toTestString()} ${b.toTestString()}`).join(` +`));for(const b of c)this.applyChange(b,h);Rt.isEnabled(ka.Debug)&&Rt.debug(`after appling ${c.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(c,h){this.ensureClone(),c.execute(this.clone.root,this.clone.presences,h);const b=[],E=c.getID().getActorID();if(c.hasPresenceChange()&&this.onlineClients.has(E)){const z=c.getPresenceChange();switch(z.type){case Wd.Put:b.push(this.presences.has(E)?{type:"presence-changed",source:h,value:{clientID:E,presence:z.presence}}:{type:"watched",source:te.Remote,value:{clientID:E,presence:z.presence}});break;case Wd.Clear:b.push({type:"unwatched",source:te.Remote,value:{clientID:E,presence:this.getPresence(E)}}),this.removeOnlineClient(E);break}}const{opInfos:P}=c.execute(this.root,this.presences,h);if(this.changeID=this.changeID.syncLamport(c.getID().getLamport()),P.length>0){const z=this.isEnableDevtools()?c.toStruct():void 0;b.push(h===te.Remote?{type:"remote-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:P},rawChange:z}:{type:"local-change",source:h,value:{actor:E,clientSeq:c.getID().getClientSeq(),serverSeq:c.getID().getServerSeq(),message:c.getMessage()||"",operations:P},rawChange:z})}b.length>0&&this.publish(b)}applyWatchStream(c){if(c.body.case==="initialization"){const h=c.body.value.clientIds,b=new Set;for(const E of h)E!==this.changeID.getActorID()&&b.add(E);this.setOnlineClients(b),this.publish([{type:"initialized",source:te.Local,value:this.getPresences()}]);return}if(c.body.case==="event"){const{type:h,publisher:b}=c.body.value,E=[];if(h===ri.DOCUMENT_WATCHED)this.addOnlineClient(b),this.hasPresence(b)&&E.push({type:"watched",source:te.Remote,value:{clientID:b,presence:this.getPresence(b)}});else if(h===ri.DOCUMENT_UNWATCHED){const P=this.getPresence(b);this.removeOnlineClient(b),P&&E.push({type:"unwatched",source:te.Remote,value:{clientID:b,presence:P}})}E.length>0&&this.publish(E)}}applyStatus(c){this.status=c,c==="detached"&&this.setActor(Dm),this.publish([{source:c==="removed"?te.Remote:te.Local,type:"status-changed",value:c==="attached"?{status:c,actorID:this.changeID.getActorID()}:{status:c}}])}applyDocEvent(c){if(c.type==="status-changed"){this.applyStatus(c.value.status),c.value.status==="attached"&&this.setActor(c.value.actorID);return}if(c.type==="snapshot"){const{snapshot:h,serverSeq:b}=c.value;if(!h)return;this.applySnapshot(kn.fromString(b),pa.hexToBytes(h));return}if(c.type==="local-change"||c.type==="remote-change"){if(!c.rawChange)return;const h=Io.fromStruct(c.rawChange);this.applyChange(h,c.source)}if(c.type==="initialized"){const h=new Set;for(const{clientID:b,presence:E}of c.value)h.add(b),this.presences.set(b,E);this.setOnlineClients(h);return}if(c.type==="watched"){const{clientID:h,presence:b}=c.value;this.addOnlineClient(h),this.presences.set(h,b);return}if(c.type==="unwatched"){const{clientID:h}=c.value;this.removeOnlineClient(h),this.presences.delete(h)}if(c.type==="presence-changed"){const{clientID:h,presence:b}=c.value;this.presences.set(h,b)}}applyTransactionEvent(c){for(const h of c)this.applyDocEvent(h)}getValueByPath(c){if(!c.startsWith("$"))throw new xr(mr.ErrInvalidArgument,'path must start with "$"');const h=c.split(".");h.shift();let b=this.getRoot();for(const E of h)if(b=b[E],b===void 0)return;return b}setOnlineClients(c){this.onlineClients=c}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(c){this.onlineClients.add(c)}removeOnlineClient(c){this.onlineClients.delete(c)}hasPresence(c){return this.presences.has(c)}getMyPresence(){if(this.status!=="attached")return{};const c=this.presences.get(this.changeID.getActorID());return c?Wl(c):{}}getPresence(c){if(c===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(c))return;const h=this.presences.get(c);return h?Wl(h):void 0}getPresenceForTest(c){const h=this.presences.get(c);return h?Wl(h):void 0}getPresences(){const c=[];c.push({clientID:this.changeID.getActorID(),presence:Wl(this.getMyPresence())});for(const h of this.onlineClients)this.presences.has(h)&&c.push({clientID:h,presence:Wl(this.presences.get(h))});return c}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const c=this.getChangeID().getActorID();return this.getPresences().filter(h=>h.clientID!==c).sort((h,b)=>h.clientID>b.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const c=this.internalHistory.popUndo();if(c===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const h=bh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof hs)){new fS(h,Wl(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,te.UndoRedo);const{opInfos:E,reverseOps:P}=b.execute(this.root,this.presences,te.UndoRedo),z=h.getReversePresence();if(z&&P.push({type:"presence",value:z}),P.length>0&&this.internalHistory.pushRedo(P),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:te.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:te.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const c=this.internalHistory.popRedo();if(c===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const h=bh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const me of c){if(!(me instanceof hs)){new fS(h,Wl(this.clone.presences.get(this.changeID.getActorID()))).set(me.value,{addToHistory:!0});continue}const Pe=h.issueTimeTicket();me.setExecutedAt(Pe),h.push(me)}const b=h.getChange();b.execute(this.clone.root,this.clone.presences,te.UndoRedo);const{opInfos:E,reverseOps:P}=b.execute(this.root,this.presences,te.UndoRedo),z=h.getReversePresence();if(z&&P.push({type:"presence",value:z}),P.length>0&&this.internalHistory.pushUndo(P),!b.hasPresenceChange()&&E.length===0)return;this.localChanges.push(b),this.changeID=b.getID();const Y=this.changeID.getActorID(),fe=[];E.length>0&&fe.push({type:"local-change",source:te.UndoRedo,value:{message:b.getMessage()||"",operations:E,actor:Y,clientSeq:b.getID().getClientSeq(),serverSeq:b.getID().getServerSeq()},rawChange:this.isEnableDevtools()?b.toStruct():void 0}),b.hasPresenceChange()&&fe.push({type:"presence-changed",source:te.UndoRedo,value:{clientID:Y,presence:this.getPresence(Y)}}),this.publish(fe)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function xk(v,c){return h=>async b=>(v&&b.header.set("x-api-key",v),c&&b.header.set("authorization",c),await h(b))}const Ik={name:"yorkie-js-sdk",version:"0.4.28",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.connectrpc_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function Nk(){return v=>async c=>(c.header.set("x-yorkie-user-agent",Ik.name+"/"+Ik.version),await v(c))}var cg=(v=>(v.Manual="manual",v.Realtime="realtime",v.RealtimePushOnly="realtime-pushonly",v.RealtimeSyncOff="realtime-syncoff",v))(cg||{}),zS=(v=>(v.Deactivated="deactivated",v.Activated="activated",v))(zS||{}),Dk=(v=>(v.SyncLoop="SyncLoop",v.WatchLoop="WatchLoop",v))(Dk||{});const Eb={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class jS{constructor(c,h){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),h=h||Eb,this.key=h.key?h.key:Sk(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=h.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=h.syncLoopDuration||Eb.syncLoopDuration,this.reconnectStreamDelay=h.reconnectStreamDelay||Eb.reconnectStreamDelay,this.retrySyncLoopDelay=h.retrySyncLoopDelay||Eb.retrySyncLoopDelay,this.rpcClient=HI(uS,nb({baseUrl:c,interceptors:[xk(h.apiKey,h.token),Nk()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(c=>{this.id=c.clientId,this.status="activated",this.runSyncLoop(),Rt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(c=>{throw Rt.error(`[AC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Rt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(c=>{throw Rt.error(`[DC] c:"${this.getKey()}" err :`,c),this.handleConnectError(c),c}))}attach(c,h={}){if(!this.isActive())throw new xr(mr.ErrClientNotActivated,`${this.key} is not active`);if(c.getStatus()!==Zu.Detached)throw new xr(mr.ErrDocumentNotDetached,`${c.getKey()} is not detached`);c.setActor(this.id),c.update((E,P)=>P.set(h.initialPresence||{}));const b=h.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:pa.toChangePack(c.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(async E=>{const P=pa.fromChangePack(E.changePack);return c.applyChangePack(P),c.getStatus()===Zu.Removed||(c.applyStatus(Zu.Attached),this.attachmentMap.set(c.getKey(),new N6(this.reconnectStreamDelay,c,E.documentId,b)),b!=="manual"&&await this.runWatchLoop(c.getKey()),Rt.info(`[AD] c:"${this.getKey()}" attaches d:"${c.getKey()}"`)),c}).catch(E=>{throw Rt.error(`[AD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}detach(c,h={}){if(!this.isActive())throw new xr(mr.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new xr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return c.update((E,P)=>P.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:b.docID,changePack:pa.toChangePack(c.createChangePack()),removeIfNotAttached:h.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const P=pa.fromChangePack(E.changePack);return c.applyChangePack(P),c.getStatus()!==Zu.Removed&&c.applyStatus(Zu.Detached),this.detachInternal(c.getKey()),Rt.info(`[DD] c:"${this.getKey()}" detaches d:"${c.getKey()}"`),c}).catch(E=>{throw Rt.error(`[DD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}async changeSyncMode(c,h){if(!this.isActive())throw new xr(mr.ErrClientNotActivated,`${this.key} is not active`);const b=this.attachmentMap.get(c.getKey());if(!b)throw new xr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);const E=b.syncMode;return E===h?c:(b.changeSyncMode(h),h==="manual"?(b.cancelWatchStream(),c):(h==="realtime"&&(b.remoteChangeEventReceived=!0),E==="manual"&&await this.runWatchLoop(c.getKey()),c))}sync(c){if(!this.isActive())throw new xr(mr.ErrClientNotActivated,`${this.key} is not active`);if(c){const h=this.attachmentMap.get(c.getKey());if(!h)throw new xr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(h,"realtime").catch(b=>{throw Rt.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b}))}return this.enqueueTask(async()=>{const h=[];for(const[,b]of this.attachmentMap)h.push(this.syncInternal(b,b.syncMode));return Promise.all(h).catch(b=>{throw Rt.error(`[SY] c:"${this.getKey()}" err :`,b),this.handleConnectError(b),b})})}remove(c){if(!this.isActive())throw new xr(mr.ErrClientNotActivated,`${this.key} is not active`);const h=this.attachmentMap.get(c.getKey());if(!h)throw new xr(mr.ErrDocumentNotAttached,`${c.getKey()} is not attached`);c.setActor(this.id);const b=pa.toChangePack(c.createChangePack());return b.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:h.docID,changePack:b},{headers:{"x-shard-key":`${this.apiKey}/${c.getKey()}`}}).then(E=>{const P=pa.fromChangePack(E.changePack);c.applyChangePack(P),this.detachInternal(c.getKey()),Rt.info(`[RD] c:"${this.getKey()}" removes d:"${c.getKey()}"`)}).catch(E=>{throw Rt.error(`[RD] c:"${this.getKey()}" err :`,E),this.handleConnectError(E),E}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(c){return this.conditions[c]}runSyncLoop(){const c=()=>{if(!this.isActive()){Rt.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const h=[];for(const[,b]of this.attachmentMap)b.needRealtimeSync()&&(b.remoteChangeEventReceived=!1,h.push(this.syncInternal(b,b.syncMode)));Promise.all(h).then(()=>setTimeout(c,this.syncLoopDuration)).catch(b=>{Rt.error(`[SL] c:"${this.getKey()}" sync failed:`,b),this.handleConnectError(b)?setTimeout(c,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Rt.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,c()}async runWatchLoop(c){const h=this.attachmentMap.get(c);if(!h)throw new xr(mr.ErrDocumentNotAttached,`${c} is not attached`);return this.conditions.WatchLoop=!0,h.runWatchLoop(b=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new xr(mr.ErrClientNotActivated,`${this.key} is not active`));const E=new AbortController,P=this.rpcClient.watchDocument({clientId:this.id,documentId:h.docID},{headers:{"x-shard-key":`${this.apiKey}/${c}`},signal:E.signal});return h.doc.publish([{type:Pi.ConnectionChanged,value:og.Connected}]),Rt.info(`[WD] c:"${this.getKey()}" watches d:"${c}"`),new Promise((z,Y)=>{(async()=>{try{for await(const me of P)this.handleWatchDocumentsResponse(h,me),me.body.case==="initialization"&&z([P,E])}catch(me){h.doc.resetOnlineClients(),h.doc.publish([{type:Pi.Initialized,source:te.Local,value:h.doc.getPresences()}]),h.doc.publish([{type:Pi.ConnectionChanged,value:og.Disconnected}]),Rt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(me)?b():this.conditions.WatchLoop=!1,Y(me)}})()})})}handleWatchDocumentsResponse(c,h){if(h.body.case==="event"&&h.body.value.type===ri.DOCUMENT_CHANGED){c.remoteChangeEventReceived=!0;return}c.doc.applyWatchStream(h)}deactivateInternal(){this.status="deactivated";for(const[c,h]of this.attachmentMap)this.detachInternal(c),h.doc.applyStatus(Zu.Detached)}detachInternal(c){const h=this.attachmentMap.get(c);h&&(h.cancelWatchStream(),this.attachmentMap.delete(c))}syncInternal(c,h){const{doc:b,docID:E}=c,P=b.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:E,changePack:pa.toChangePack(P),pushOnly:h==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${b.getKey()}`}}).then(z=>{const Y=pa.fromChangePack(z.changePack);if(Y.hasChanges()&&(c.syncMode==="realtime-pushonly"||c.syncMode==="realtime-syncoff"))return b;b.applyChangePack(Y),c.doc.publish([{type:Pi.SyncStatusChanged,value:lg.Synced}]),b.getStatus()===Zu.Removed&&this.detachInternal(b.getKey());const fe=b.getKey(),me=Y.getChangeSize();return Rt.info(`[PP] c:"${this.getKey()}" sync d:"${fe}", push:${P.getChangeSize()} pull:${me} cp:${Y.getCheckpoint().toTestString()}`),b}).catch(z=>{throw b.publish([{type:Pi.SyncStatusChanged,value:lg.SyncFailed}]),Rt.error(`[PP] c:"${this.getKey()}" err :`,z),z})}handleConnectError(c){return c instanceof u?c.code===o.Canceled||c.code===o.Unknown||c.code===o.ResourceExhausted||c.code===o.Unavailable?!0:((SS(c)===mr.ErrClientNotActivated||SS(c)===mr.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(c){return new Promise((h,b)=>{this.taskQueue.push(()=>c().then(h).catch(b)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Rt.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const nd=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),Ms={Client:jS,Document:FS,Primitive:Ti,Text:Hp,Counter:Qp,Tree:tg,LogLevel:ka,setLogLevel:pS,IntType:qu.IntegerCnt,LongType:qu.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:jS,Document:FS,Primitive:Ti,Text:Hp,Counter:Qp,Tree:tg,LogLevel:ka,setLogLevel:pS,IntType:qu.IntegerCnt,LongType:qu.LongCnt}),r.Change=Io,r.Client=jS,r.ClientCondition=Dk,r.ClientStatus=zS,r.Counter=Qp,r.Devtools=nd,r.DocEventType=Pi,r.Document=FS,r.DocumentStatus=Zu,r.DocumentSyncStatus=lg,r.EventSourceDevPanel=ig,r.EventSourceSDK=Tk,r.LogLevel=ka,r.OpSource=te,r.Primitive=Ti,r.StreamConnectionStatus=og,r.SyncMode=cg,r.Text=Hp,r.TimeTicket=Ga,r.Tree=tg,r.converter=pa,r.default=Ms,r.setLogLevel=pS,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(QL,QL.exports);var EC=QL.exports;class qJe{constructor(t,n){$s(this,"doc");$s(this,"client");this.doc=t,this.client=n}}const JB=sn.define({combine(e){return e[e.length-1]}});Ld.define();class GJe{constructor(t){$s(this,"view");$s(this,"conf");$s(this,"_doc");this.view=t,this.conf=t.state.facet(JB),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[os.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new EC.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[os.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(os.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,d)=>{const f=d.toJSON().join(` +`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const YJe=da.fromClass(GJe);class ZJe{constructor(t,n){this.left=t,this.right=n}}const Wg=(e,t)=>new ZJe(e,t),XJe=(e,t)=>e.forEach(n=>t(n.left,n.right)),Zf=typeof document<"u"?document:{},KJe=e=>Zf.createElement(e),JJe=()=>Zf.createDocumentFragment(),eet=e=>Zf.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const tet=(e,t)=>(XJe(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),net=e=>{const t=JJe();for(let n=0;n(Gpe(e,net(t)),e),v_=(e,t=[],n=[])=>ret(tet(KJe(e),t),n),t4=eet,Gpe=(e,t)=>e.appendChild(t);Zf.ELEMENT_NODE;Zf.TEXT_NODE;Zf.CDATA_SECTION_NODE;Zf.COMMENT_NODE;Zf.DOCUMENT_NODE;Zf.DOCUMENT_TYPE_NODE;Zf.DOCUMENT_FRAGMENT_NODE;var wC={exports:{}};/** + * @license + * Lodash + * Copyright OpenJS Foundation and other contributors + * Released under MIT license + * Based on Underscore.js 1.8.3 + * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors + */wC.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,d="__lodash_placeholder__",f=1,p=2,g=4,O=1,S=2,T=1,w=2,x=4,k=8,_=16,I=32,N=64,D=128,L=256,U=512,B=30,W="...",V=800,re=16,ee=1,q=2,ne=3,K=1/0,G=9007199254740991,ie=17976931348623157e292,H=NaN,Re=4294967295,Se=Re-1,Z=Re>>>1,ke=[["ary",D],["bind",T],["bindKey",w],["curry",k],["curryRight",_],["flip",U],["partial",I],["partialRight",N],["rearg",L]],$e="[object Arguments]",ae="[object Array]",Xe="[object AsyncFunction]",We="[object Boolean]",Ye="[object Date]",xt="[object DOMException]",st="[object Error]",Pt="[object Function]",jt="[object GeneratorFunction]",ut="[object Map]",Ot="[object Number]",yt="[object Null]",Ut="[object Object]",de="[object Promise]",Ce="[object Proxy]",Ne="[object RegExp]",Ke="[object Set]",ct="[object String]",Je="[object Symbol]",gt="[object Undefined]",en="[object WeakMap]",Fe="[object WeakSet]",Te="[object ArrayBuffer]",ye="[object DataView]",xe="[object Float32Array]",Ue="[object Float64Array]",Ct="[object Int8Array]",qt="[object Int16Array]",tt="[object Int32Array]",Wt="[object Uint8Array]",Ht="[object Uint8ClampedArray]",zt="[object Uint16Array]",Sn="[object Uint32Array]",pr=/\b__p \+= '';/g,Mr=/\b(__p \+=) '' \+/g,Rr=/(__e\(.*?\)|\b__t\)) \+\n'';/g,Yr=/&(?:amp|lt|gt|quot|#39);/g,Di=/[&<>"']/g,hi=RegExp(Yr.source),ji=RegExp(Di.source),pi=/<%-([\s\S]+?)%>/g,fs=/<%([\s\S]+?)%>/g,Hi=/<%=([\s\S]+?)%>/g,Js=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Qi=/^\w*$/,Ur=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,tr=/[\\^$.*+?()[\]{}|]/g,Zr=RegExp(tr.source),ze=/^\s+/,nt=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,he=/\{\n\/\* \[wrapped with (.+)\] \*/,Le=/,? & /,Ve=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,pt=/[()=,{}\[\]\/\s]/,Vt=/\\(\\)?/g,Ie=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,we=/\w*$/,ot=/^[-+]0x[0-9a-f]+$/i,qe=/^0b[01]+$/i,Et=/^\[object .+?Constructor\]$/,_t=/^0o[0-7]+$/i,Gt=/^(?:0|[1-9]\d*)$/,jn=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,qn=/($^)/,Wi=/['\n\r\u2028\u2029\\]/g,ti="\\ud800-\\udfff",Fu="\\u0300-\\u036f",To="\\ufe20-\\ufe2f",$l="\\u20d0-\\u20ff",Fl=Fu+To+$l,Bl="\\u2700-\\u27bf",Cs="a-z\\xdf-\\xf6\\xf8-\\xff",je="\\xac\\xb1\\xd7\\xf7",fa="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",ih="\\u2000-\\u206f",En=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Tr="A-Z\\xc0-\\xd6\\xd8-\\xde",mi="\\ufe0e\\ufe0f",dr=je+fa+ih+En,Vi="['’]",xo="["+ti+"]",ko="["+dr+"]",Ao="["+Fl+"]",Ul="\\d+",Bu="["+Bl+"]",eo="["+Cs+"]",zl="[^"+ti+dr+Ul+Bl+Cs+Tr+"]",WO="\\ud83c[\\udffb-\\udfff]",zI="(?:"+Ao+"|"+WO+")",VO="[^"+ti+"]",J1="(?:\\ud83c[\\udde6-\\uddff]){2}",qO="[\\ud800-\\udbff][\\udc00-\\udfff]",Uu="["+Tr+"]",Cx="\\u200d",Rx="(?:"+eo+"|"+zl+")",jI="(?:"+Uu+"|"+zl+")",GO="(?:"+Vi+"(?:d|ll|m|re|s|t|ve))?",ah="(?:"+Vi+"(?:D|LL|M|RE|S|T|VE))?",Ix=zI+"?",Nx="["+mi+"]?",HI="(?:"+Cx+"(?:"+[VO,J1,qO].join("|")+")"+Nx+Ix+")*",QI="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",WI="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Dx=Nx+Ix+HI,VI="(?:"+[Bu,J1,qO].join("|")+")"+Dx,Px="(?:"+[VO+Ao+"?",Ao,J1,qO,xo].join("|")+")",qI=RegExp(Vi,"g"),GI=RegExp(Ao,"g"),eb=RegExp(WO+"(?="+WO+")|"+Px+Dx,"g"),Lx=RegExp([Uu+"?"+eo+"+"+GO+"(?="+[ko,Uu,"$"].join("|")+")",jI+"+"+ah+"(?="+[ko,Uu+Rx,"$"].join("|")+")",Uu+"?"+Rx+"+"+GO,Uu+"+"+ah,WI,QI,Ul,VI].join("|"),"g"),YO=RegExp("["+Cx+ti+Fl+mi+"]"),Mx=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,YI=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],ZI=-1,ui={};ui[xe]=ui[Ue]=ui[Ct]=ui[qt]=ui[tt]=ui[Wt]=ui[Ht]=ui[zt]=ui[Sn]=!0,ui[$e]=ui[ae]=ui[Te]=ui[We]=ui[ye]=ui[Ye]=ui[st]=ui[Pt]=ui[ut]=ui[Ot]=ui[Ut]=ui[Ne]=ui[Ke]=ui[ct]=ui[en]=!1;var ni={};ni[$e]=ni[ae]=ni[Te]=ni[ye]=ni[We]=ni[Ye]=ni[xe]=ni[Ue]=ni[Ct]=ni[qt]=ni[tt]=ni[ut]=ni[Ot]=ni[Ut]=ni[Ne]=ni[Ke]=ni[ct]=ni[Je]=ni[Wt]=ni[Ht]=ni[zt]=ni[Sn]=!0,ni[st]=ni[Pt]=ni[en]=!1;var XI={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},KI={"&":"&","<":"<",">":">",'"':""","'":"'"},JI={"&":"&","<":"<",">":">",""":'"',"'":"'"},e6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},t6=parseFloat,Hc=parseInt,$x=typeof mf=="object"&&mf&&mf.Object===Object&&mf,Fx=typeof self=="object"&&self&&self.Object===Object&&self,Fa=$x||Fx||Function("return this")(),tb=t&&!t.nodeType&&t,sh=tb&&!0&&e&&!e.nodeType&&e,ZO=sh&&sh.exports===tb,XO=ZO&&$x.process,_o=function(){try{var Me=sh&&sh.require&&sh.require("util").types;return Me||XO&&XO.binding&&XO.binding("util")}catch{}}(),KO=_o&&_o.isArrayBuffer,JO=_o&&_o.isDate,Bx=_o&&_o.isMap,Ux=_o&&_o.isRegExp,eS=_o&&_o.isSet,zx=_o&&_o.isTypedArray;function to(Me,lt,Ge){switch(Ge.length){case 0:return Me.call(lt);case 1:return Me.call(lt,Ge[0]);case 2:return Me.call(lt,Ge[0],Ge[1]);case 3:return Me.call(lt,Ge[0],Ge[1],Ge[2])}return Me.apply(lt,Ge)}function jx(Me,lt,Ge,an){for(var Hn=-1,$r=Me==null?0:Me.length;++Hn<$r;){var Ta=Me[Hn];lt(an,Ta,Ge(Ta),Me)}return an}function rl(Me,lt){for(var Ge=-1,an=Me==null?0:Me.length;++Ge-1}function Vn(Me,lt,Ge){for(var an=-1,Hn=Me==null?0:Me.length;++an-1;);return Ge}function _m(Me,lt){for(var Ge=Me.length;Ge--&&oh(lt,Me[Ge],0)>-1;);return Ge}function Gx(Me,lt){for(var Ge=Me.length,an=0;Ge--;)Me[Ge]===lt&&++an;return an}var sS=ib(XI),oS=ib(KI);function Yx(Me){return"\\"+e6[Me]}function Rp(Me,lt){return Me==null?n:Me[lt]}function ju(Me){return YO.test(Me)}function r6(Me){return Mx.test(Me)}function lS(Me){for(var lt,Ge=[];!(lt=Me.next()).done;)Ge.push(lt.value);return Ge}function lh(Me){var lt=-1,Ge=Array(Me.size);return Me.forEach(function(an,Hn){Ge[++lt]=[Hn,an]}),Ge}function ub(Me,lt){return function(Ge){return Me(lt(Ge))}}function Qc(Me,lt){for(var Ge=-1,an=Me.length,Hn=0,$r=[];++Ge-1}function m6(m,y){var A=this.__data__,F=$p(A,m);return F<0?(++this.size,A.push([m,y])):A[F][1]=y,this}Ya.prototype.clear=Fm,Ya.prototype.delete=ol,Ya.prototype.get=Bm,Ya.prototype.has=Um,Ya.prototype.set=m6;function Yc(m){var y=-1,A=m==null?0:m.length;for(this.clear();++y=y?m:y)),m}function Ds(m,y,A,F,X,ue){var ve,Ae=y&f,Be=y&p,mt=y&g;if(A&&(ve=X?A(m,F,X,ue):A(m)),ve!==n)return ve;if(!ra(m))return m;var bt=Yn(m);if(bt){if(ve=cg(m),!Ae)return Ps(m,ve)}else{var Tt=Ls(m),Kt=Tt==Pt||Tt==jt;if(Gp(m))return Ok(m,Ae);if(Tt==Ut||Tt==$e||Kt&&!X){if(ve=Be||Kt?{}:zS(m),!Ae)return Be?L6(m,jm(ve,m)):P6(m,Ro(ve,m))}else{if(!ni[Tt])return X?m:{};ve=Dk(m,Tt,Ae)}}ue||(ue=new Co);var On=ue.get(m);if(On)return On;ue.set(m,ve),xV(m)?m.forEach(function($n){ve.add(Ds($n,y,A,$n,m,ue))}):wV(m)&&m.forEach(function($n,br){ve.set(br,Ds($n,y,A,br,m,ue))});var Mn=mt?Be?Ak:kk:Be?cl:ys,or=bt?n:Mn(m);return rl(or||m,function($n,br){or&&(br=$n,$n=m[br]),ph(ve,br,Ds($n,y,A,br,m,ue))}),ve}function Fp(m){var y=ys(m);return function(A){return ik(A,m,y)}}function ik(m,y,A){var F=A.length;if(m==null)return!F;for(m=ii(m);F--;){var X=A[F],ue=y[X],ve=m[X];if(ve===n&&!(X in m)||!ue(ve))return!1}return!0}function ql(m,y,A){if(typeof m!="function")throw new kn(s);return Gn(function(){m.apply(n,A)},y)}function Hm(m,y,A,F){var X=-1,ue=nb,ve=!0,Ae=m.length,Be=[],mt=y.length;if(!Ae)return Be;A&&(y=ri(y,no(A))),F?(ue=Vn,ve=!1):y.length>=i&&(ue=Cp,ve=!1,y=new Yd(y));e:for(;++XX?0:X+A),F=F===n||F>X?X:rr(F),F<0&&(F+=X),F=A>F?0:AV(F);A0&&A(Ae)?y>1?qi(Ae,y-1,A,F,X):Hd(X,Ae):F||(X[X.length]=Ae)}return X}var Gl=Qp(),ak=Qp(!0);function Gu(m,y){return m&&Gl(m,y,ys)}function bS(m,y){return m&&ak(m,y,ys)}function Wm(m,y){return jd(y,function(A){return Oh(m[A])})}function fn(m,y){y=Jc(y,m);for(var A=0,F=y.length;m!=null&&Ay}function E6(m,y){return m!=null&&Xn.call(m,y)}function mb(m,y){return m!=null&&y in ii(m)}function gb(m,y,A){return m>=na(y,A)&&m=120&&bt.length>=120)?new Yd(ve&&bt):n}bt=m[0];var Tt=-1,Kt=Ae[0];e:for(;++Tt-1;)Ae!==m&&Nm.call(Ae,Be,1),Nm.call(m,Be,1);return m}function xS(m,y){for(var A=m?y.length:0,F=A-1;A--;){var X=y[A];if(A==F||X!==ue){var ue=X;nd(X)?Nm.call(m,X,1):Jm(m,X)}}return m}function kS(m,y){return m+fb(Dm()*(y-m+1))}function zp(m,y,A,F){for(var X=-1,ue=wi(db((y-m)/(A||1)),0),ve=Ge(ue);ue--;)ve[F?ue:++X]=m,m+=A;return ve}function gh(m,y){var A="";if(!m||y<1||y>G)return A;do y%2&&(A+=m),y=fb(y/2),y&&(m+=m);while(y);return A}function nr(m,y){return ci(ft(m,y,dl),m+"")}function AS(m){return mS(Tb(m))}function C6(m,y){var A=Tb(m);return zr(A,Io(y,0,A.length))}function Xm(m,y,A,F){if(!ra(m))return m;y=Jc(y,m);for(var X=-1,ue=y.length,ve=ue-1,Ae=m;Ae!=null&&++XX?0:X+y),A=A>X?X:A,A<0&&(A+=X),X=y>A?0:A-y>>>0,y>>>=0;for(var ue=Ge(X);++F>>1,ve=m[ue];ve!==null&&!Yl(ve)&&(A?ve<=y:ve=i){var mt=y?null:M6(m);if(mt)return Hu(mt);ve=!1,X=Cp,Be=new Yd}else Be=y?[]:Ae;e:for(;++F=F?m:ll(m,y,A)}var vb=Dt||function(m){return Fa.clearTimeout(m)};function Ok(m,y){if(y)return m.slice();var A=m.length,F=cS?cS(A):new m.constructor(A);return m.copy(F),F}function PS(m){var y=new m.constructor(m.byteLength);return new Im(y).set(new Im(m)),y}function pa(m,y){var A=y?PS(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.byteLength)}function Sk(m){var y=new m.constructor(m.source,we.exec(m));return y.lastIndex=m.lastIndex,y}function N6(m){return Gc?ii(Gc.call(m)):{}}function Ob(m,y){var A=y?PS(m.buffer):m.buffer;return new m.constructor(A,m.byteOffset,m.length)}function Ek(m,y){if(m!==y){var A=m!==n,F=m===null,X=m===m,ue=Yl(m),ve=y!==n,Ae=y===null,Be=y===y,mt=Yl(y);if(!Ae&&!mt&&!ue&&m>y||ue&&ve&&Be&&!Ae&&!mt||F&&ve&&Be||!A&&Be||!X)return 1;if(!F&&!ue&&!mt&&m=Ae)return Be;var mt=A[F];return Be*(mt=="desc"?-1:1)}}return m.index-y.index}function bh(m,y,A,F){for(var X=-1,ue=m.length,ve=A.length,Ae=-1,Be=y.length,mt=wi(ue-ve,0),bt=Ge(Be+mt),Tt=!F;++Ae1?A[X-1]:n,ve=X>2?A[2]:n;for(ue=m.length>3&&typeof ue=="function"?(X--,ue):n,ve&&Ms(A[0],A[1],ve)&&(ue=X<3?n:ue,X=1),y=ii(y);++F-1?X[ue?y[ve]:ve]:n}}function td(m){return Zd(function(y){var A=y.length,F=A,X=ps.prototype.thru;for(m&&y.reverse();F--;){var ue=y[F];if(typeof ue!="function")throw new kn(s);if(X&&!ve&&BS(ue)=="wrapper")var ve=new ps([],!0)}for(F=ve?F:A;++F1&&kr.reverse(),bt&&BeAe))return!1;var mt=ue.get(m),bt=ue.get(y);if(mt&&bt)return mt==y&&bt==m;var Tt=-1,Kt=!0,On=A&S?new Yd:n;for(ue.set(m,y),ue.set(y,m);++Tt1?"& ":"")+y[F],y=y.join(A>2?", ":" "),m.replace(le,`{ +/* [wrapped with `+y+`] */ +`)}function jS(m){return Yn(m)||fg(m)||!!(cb&&m&&m[cb])}function nd(m,y){var A=typeof m;return y=y??G,!!y&&(A=="number"||A!="symbol"&&Gt.test(m))&&m>-1&&m%1==0&&m0){if(++y>=V)return arguments[0]}else y=0;return m.apply(n,arguments)}}function zr(m,y){var A=-1,F=m.length,X=F-1;for(y=y===n?F:y;++A1?m[y-1]:n;return A=typeof A=="function"?(m.pop(),A):n,dV(m,A)});function fV(m){var y=te(m);return y.__chain__=!0,y}function gve(m,y){return y(m),m}function Lk(m,y){return y(m)}var bve=Zd(function(m){var y=m.length,A=y?m[0]:0,F=this.__wrapped__,X=function(ue){return gS(ue,m)};return y>1||this.__actions__.length||!(F instanceof Cn)||!nd(A)?this.thru(X):(F=F.slice(A,+A+(y?1:0)),F.__actions__.push({func:Lk,args:[X],thisArg:n}),new ps(F,this.__chain__).thru(function(ue){return y&&!ue.length&&ue.push(n),ue}))});function yve(){return fV(this)}function vve(){return new ps(this.value(),this.__chain__)}function Ove(){this.__values__===n&&(this.__values__=kV(this.value()));var m=this.__index__>=this.__values__.length,y=m?n:this.__values__[this.__index__++];return{done:m,value:y}}function Sve(){return this}function Eve(m){for(var y,A=this;A instanceof Lm;){var F=Pk(A);F.__index__=0,F.__values__=n,y?X.__wrapped__=F:y=F;var X=F;A=A.__wrapped__}return X.__wrapped__=m,y}function wve(){var m=this.__wrapped__;if(m instanceof Cn){var y=m;return this.__actions__.length&&(y=new Cn(this)),y=y.reverse(),y.__actions__.push({func:Lk,args:[B6],thisArg:n}),new ps(y,this.__chain__)}return this.thru(B6)}function Tve(){return CS(this.__wrapped__,this.__actions__)}var xve=Sb(function(m,y,A){Xn.call(m,A)?++m[A]:ms(m,A,1)});function kve(m,y,A){var F=Yn(m)?zd:Bp;return A&&Ms(m,y,A)&&(y=n),F(m,Dn(y,3))}function Ave(m,y){var A=Yn(m)?jd:io;return A(m,Dn(y,3))}var _ve=MS(sV),Cve=MS(oV);function Rve(m,y){return qi(Mk(m,y),1)}function Ive(m,y){return qi(Mk(m,y),K)}function Nve(m,y,A){return A=A===n?1:rr(A),qi(Mk(m,y),A)}function hV(m,y){var A=Yn(m)?rl:Ba;return A(m,Dn(y,3))}function pV(m,y){var A=Yn(m)?Hx:Xc;return A(m,Dn(y,3))}var Dve=Sb(function(m,y,A){Xn.call(m,A)?m[A].push(y):ms(m,A,[y])});function Pve(m,y,A,F){m=ul(m)?m:Tb(m),A=A&&!F?rr(A):0;var X=m.length;return A<0&&(A=wi(X+A,0)),zk(m)?A<=X&&m.indexOf(y,A)>-1:!!X&&oh(m,y,A)>-1}var Lve=nr(function(m,y,A){var F=-1,X=typeof y=="function",ue=ul(m)?Ge(m.length):[];return Ba(m,function(ve){ue[++F]=X?to(y,ve,A):qm(ve,y,A)}),ue}),Mve=Sb(function(m,y,A){ms(m,A,y)});function Mk(m,y){var A=Yn(m)?ri:dk;return A(m,Dn(y,3))}function $ve(m,y,A,F){return m==null?[]:(Yn(y)||(y=y==null?[]:[y]),A=F?n:A,Yn(A)||(A=A==null?[]:[A]),hk(m,y,A))}var Fve=Sb(function(m,y,A){m[A?0:1].push(y)},function(){return[[],[]]});function Bve(m,y,A){var F=Yn(m)?jl:zu,X=arguments.length<3;return F(m,Dn(y,4),A,X,Ba)}function Uve(m,y,A){var F=Yn(m)?Qx:zu,X=arguments.length<3;return F(m,Dn(y,4),A,X,Xc)}function zve(m,y){var A=Yn(m)?jd:io;return A(m,Bk(Dn(y,3)))}function jve(m){var y=Yn(m)?mS:AS;return y(m)}function Hve(m,y,A){(A?Ms(m,y,A):y===n)?y=1:y=rr(y);var F=Yn(m)?Vl:C6;return F(m,y)}function Qve(m){var y=Yn(m)?Za:mk;return y(m)}function Wve(m){if(m==null)return 0;if(ul(m))return zk(m)?Ip(m):m.length;var y=Ls(m);return y==ut||y==Ke?m.size:OS(m).length}function Vve(m,y,A){var F=Yn(m)?_p:I6;return A&&Ms(m,y,A)&&(y=n),F(m,Dn(y,3))}var qve=nr(function(m,y){if(m==null)return[];var A=y.length;return A>1&&Ms(m,y[0],y[1])?y=[]:A>2&&Ms(y[0],y[1],y[2])&&(y=[y[0]]),hk(m,qi(y,1),[])}),$k=f6||function(){return Fa.Date.now()};function Gve(m,y){if(typeof y!="function")throw new kn(s);return m=rr(m),function(){if(--m<1)return y.apply(this,arguments)}}function mV(m,y,A){return y=A?n:y,y=m&&y==null?m.length:y,Pi(m,D,n,n,n,n,y)}function gV(m,y){var A;if(typeof y!="function")throw new kn(s);return m=rr(m),function(){return--m>0&&(A=y.apply(this,arguments)),m<=1&&(y=n),A}}var z6=nr(function(m,y,A){var F=T;if(A.length){var X=Qc(A,ug(z6));F|=I}return Pi(m,F,y,A,X)}),bV=nr(function(m,y,A){var F=T|w;if(A.length){var X=Qc(A,ug(bV));F|=I}return Pi(y,F,m,A,X)});function yV(m,y,A){y=A?n:y;var F=Pi(m,k,n,n,n,n,n,y);return F.placeholder=yV.placeholder,F}function vV(m,y,A){y=A?n:y;var F=Pi(m,_,n,n,n,n,n,y);return F.placeholder=vV.placeholder,F}function OV(m,y,A){var F,X,ue,ve,Ae,Be,mt=0,bt=!1,Tt=!1,Kt=!0;if(typeof m!="function")throw new kn(s);y=Ku(y)||0,ra(A)&&(bt=!!A.leading,Tt="maxWait"in A,ue=Tt?wi(Ku(A.maxWait)||0,y):ue,Kt="trailing"in A?!!A.trailing:Kt);function On(Ca){var id=F,Eh=X;return F=X=n,mt=Ca,ve=m.apply(Eh,id),ve}function Mn(Ca){return mt=Ca,Ae=Gn(br,y),bt?On(Ca):ve}function or(Ca){var id=Ca-Be,Eh=Ca-mt,BV=y-id;return Tt?na(BV,ue-Eh):BV}function $n(Ca){var id=Ca-Be,Eh=Ca-mt;return Be===n||id>=y||id<0||Tt&&Eh>=ue}function br(){var Ca=$k();if($n(Ca))return kr(Ca);Ae=Gn(br,or(Ca))}function kr(Ca){return Ae=n,Kt&&F?On(Ca):(F=X=n,ve)}function Zl(){Ae!==n&&vb(Ae),mt=0,F=Be=X=Ae=n}function Po(){return Ae===n?ve:kr($k())}function Xl(){var Ca=$k(),id=$n(Ca);if(F=arguments,X=this,Be=Ca,id){if(Ae===n)return Mn(Be);if(Tt)return vb(Ae),Ae=Gn(br,y),On(Be)}return Ae===n&&(Ae=Gn(br,y)),ve}return Xl.cancel=Zl,Xl.flush=Po,Xl}var Yve=nr(function(m,y){return ql(m,1,y)}),Zve=nr(function(m,y,A){return ql(m,Ku(y)||0,A)});function Xve(m){return Pi(m,U)}function Fk(m,y){if(typeof m!="function"||y!=null&&typeof y!="function")throw new kn(s);var A=function(){var F=arguments,X=y?y.apply(this,F):F[0],ue=A.cache;if(ue.has(X))return ue.get(X);var ve=m.apply(this,F);return A.cache=ue.set(X,ve)||ue,ve};return A.cache=new(Fk.Cache||Yc),A}Fk.Cache=Yc;function Bk(m){if(typeof m!="function")throw new kn(s);return function(){var y=arguments;switch(y.length){case 0:return!m.call(this);case 1:return!m.call(this,y[0]);case 2:return!m.call(this,y[0],y[1]);case 3:return!m.call(this,y[0],y[1],y[2])}return!m.apply(this,y)}}function Kve(m){return gV(2,m)}var Jve=DS(function(m,y){y=y.length==1&&Yn(y[0])?ri(y[0],no(Dn())):ri(qi(y,1),no(Dn()));var A=y.length;return nr(function(F){for(var X=-1,ue=na(F.length,A);++X=y}),fg=ok(function(){return arguments}())?ok:function(m){return ma(m)&&Xn.call(m,"callee")&&!ch.call(m,"callee")},Yn=Ge.isArray,pOe=KO?no(KO):w6;function ul(m){return m!=null&&Uk(m.length)&&!Oh(m)}function _a(m){return ma(m)&&ul(m)}function mOe(m){return m===!0||m===!1||ma(m)&&gs(m)==We}var Gp=mr||J6,gOe=JO?no(JO):T6;function bOe(m){return ma(m)&&m.nodeType===1&&!HS(m)}function yOe(m){if(m==null)return!0;if(ul(m)&&(Yn(m)||typeof m=="string"||typeof m.splice=="function"||Gp(m)||wb(m)||fg(m)))return!m.length;var y=Ls(m);if(y==ut||y==Ke)return!m.size;if(P(m))return!OS(m).length;for(var A in m)if(Xn.call(m,A))return!1;return!0}function vOe(m,y){return Gm(m,y)}function OOe(m,y,A){A=typeof A=="function"?A:n;var F=A?A(m,y):n;return F===n?Gm(m,y,n,A):!!F}function H6(m){if(!ma(m))return!1;var y=gs(m);return y==st||y==xt||typeof m.message=="string"&&typeof m.name=="string"&&!HS(m)}function SOe(m){return typeof m=="number"&&xr(m)}function Oh(m){if(!ra(m))return!1;var y=gs(m);return y==Pt||y==jt||y==Xe||y==Ce}function EV(m){return typeof m=="number"&&m==rr(m)}function Uk(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=G}function ra(m){var y=typeof m;return m!=null&&(y=="object"||y=="function")}function ma(m){return m!=null&&typeof m=="object"}var wV=Bx?no(Bx):k6;function EOe(m,y){return m===y||vS(m,y,Ck(y))}function wOe(m,y,A){return A=typeof A=="function"?A:n,vS(m,y,Ck(y),A)}function TOe(m){return TV(m)&&m!=+m}function xOe(m){if(E(m))throw new Hn(a);return bb(m)}function kOe(m){return m===null}function AOe(m){return m==null}function TV(m){return typeof m=="number"||ma(m)&&gs(m)==Ot}function HS(m){if(!ma(m)||gs(m)!=Ut)return!1;var y=ro(m);if(y===null)return!0;var A=Xn.call(y,"constructor")&&y.constructor;return typeof A=="function"&&A instanceof A&&Qu.call(A)==Ql}var Q6=Ux?no(Ux):A6;function _Oe(m){return EV(m)&&m>=-G&&m<=G}var xV=eS?no(eS):lk;function zk(m){return typeof m=="string"||!Yn(m)&&ma(m)&&gs(m)==ct}function Yl(m){return typeof m=="symbol"||ma(m)&&gs(m)==Je}var wb=zx?no(zx):_6;function COe(m){return m===n}function ROe(m){return ma(m)&&Ls(m)==en}function IOe(m){return ma(m)&&gs(m)==Fe}var NOe=ag(Ym),DOe=ag(function(m,y){return m<=y});function kV(m){if(!m)return[];if(ul(m))return zk(m)?Hl(m):Ps(m);if(Pp&&m[Pp])return lS(m[Pp]());var y=Ls(m),A=y==ut?lh:y==Ke?Hu:Tb;return A(m)}function Sh(m){if(!m)return m===0?m:0;if(m=Ku(m),m===K||m===-K){var y=m<0?-1:1;return y*ie}return m===m?m:0}function rr(m){var y=Sh(m),A=y%1;return y===y?A?y-A:y:0}function AV(m){return m?Io(rr(m),0,Re):0}function Ku(m){if(typeof m=="number")return m;if(Yl(m))return H;if(ra(m)){var y=typeof m.valueOf=="function"?m.valueOf():m;m=ra(y)?y+"":y}if(typeof m!="string")return m===0?m:+m;m=aS(m);var A=qe.test(m);return A||_t.test(m)?Hc(m.slice(2),A?2:8):ot.test(m)?H:+m}function _V(m){return ao(m,cl(m))}function POe(m){return m?Io(rr(m),-G,G):m===0?m:0}function Xr(m){return m==null?"":No(m)}var LOe=ai(function(m,y){if(P(y)||ul(y)){ao(y,ys(y),m);return}for(var A in y)Xn.call(y,A)&&ph(m,A,y[A])}),CV=ai(function(m,y){ao(y,cl(y),m)}),jk=ai(function(m,y,A,F){ao(y,cl(y),m,F)}),MOe=ai(function(m,y,A,F){ao(y,ys(y),m,F)}),$Oe=Zd(gS);function FOe(m,y){var A=hs(m);return y==null?A:Ro(A,y)}var BOe=nr(function(m,y){m=ii(m);var A=-1,F=y.length,X=F>2?y[2]:n;for(X&&Ms(y[0],y[1],X)&&(F=1);++A1),ue}),ao(m,Ak(m),A),F&&(A=Ds(A,f|p|g,FS));for(var X=y.length;X--;)Jm(A,y[X]);return A});function rSe(m,y){return IV(m,Bk(Dn(y)))}var iSe=Zd(function(m,y){return m==null?{}:pk(m,y)});function IV(m,y){if(m==null)return{};var A=ri(Ak(m),function(F){return[F]});return y=Dn(y),Zm(m,A,function(F,X){return y(F,X[0])})}function aSe(m,y,A){y=Jc(y,m);var F=-1,X=y.length;for(X||(X=1,m=n);++Fy){var F=m;m=y,y=F}if(A||m%1||y%1){var X=Dm();return na(m+X*(y-m+t6("1e-"+((X+"").length-1))),y)}return kS(m,y)}var gSe=yh(function(m,y,A){return y=y.toLowerCase(),m+(A?PV(y):y)});function PV(m){return q6(Xr(m).toLowerCase())}function LV(m){return m=Xr(m),m&&m.replace(jn,sS).replace(GI,"")}function bSe(m,y,A){m=Xr(m),y=No(y);var F=m.length;A=A===n?F:Io(rr(A),0,F);var X=A;return A-=y.length,A>=0&&m.slice(A,X)==y}function ySe(m){return m=Xr(m),m&&ji.test(m)?m.replace(Di,oS):m}function vSe(m){return m=Xr(m),m&&Zr.test(m)?m.replace(tr,"\\$&"):m}var OSe=yh(function(m,y,A){return m+(A?"-":"")+y.toLowerCase()}),SSe=yh(function(m,y,A){return m+(A?" ":"")+y.toLowerCase()}),ESe=wk("toLowerCase");function wSe(m,y,A){m=Xr(m),y=rr(y);var F=y?Ip(m):0;if(!y||F>=y)return m;var X=(y-F)/2;return ig(fb(X),A)+m+ig(db(X),A)}function TSe(m,y,A){m=Xr(m),y=rr(y);var F=y?Ip(m):0;return y&&F>>0,A?(m=Xr(m),m&&(typeof y=="string"||y!=null&&!Q6(y))&&(y=No(y),!y&&ju(m))?ed(Hl(m),0,A):m.split(y,A)):[]}var ISe=yh(function(m,y,A){return m+(A?" ":"")+q6(y)});function NSe(m,y,A){return m=Xr(m),A=A==null?0:Io(rr(A),0,m.length),y=No(y),m.slice(A,A+y.length)==y}function DSe(m,y,A){var F=te.templateSettings;A&&Ms(m,y,A)&&(y=n),m=Xr(m),y=jk({},y,F,og);var X=jk({},y.imports,F.imports,og),ue=ys(X),ve=ob(X,ue),Ae,Be,mt=0,bt=y.interpolate||qn,Tt="__p += '",Kt=uS((y.escape||qn).source+"|"+bt.source+"|"+(bt===Hi?Ie:qn).source+"|"+(y.evaluate||qn).source+"|$","g"),On="//# sourceURL="+(Xn.call(y,"sourceURL")?(y.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++ZI+"]")+` +`;m.replace(Kt,function($n,br,kr,Zl,Po,Xl){return kr||(kr=Zl),Tt+=m.slice(mt,Xl).replace(Wi,Yx),br&&(Ae=!0,Tt+=`' + +__e(`+br+`) + +'`),Po&&(Be=!0,Tt+=`'; +`+Po+`; +__p += '`),kr&&(Tt+=`' + +((__t = (`+kr+`)) == null ? '' : __t) + +'`),mt=Xl+$n.length,$n}),Tt+=`'; +`;var Mn=Xn.call(y,"variable")&&y.variable;if(!Mn)Tt=`with (obj) { +`+Tt+` +} +`;else if(pt.test(Mn))throw new Hn(o);Tt=(Be?Tt.replace(pr,""):Tt).replace(Mr,"$1").replace(Rr,"$1;"),Tt="function("+(Mn||"obj")+`) { +`+(Mn?"":`obj || (obj = {}); +`)+"var __t, __p = ''"+(Ae?", __e = _.escape":"")+(Be?`, __j = Array.prototype.join; +function print() { __p += __j.call(arguments, '') } +`:`; +`)+Tt+`return __p +}`;var or=$V(function(){return $r(ue,On+"return "+Tt).apply(n,ve)});if(or.source=Tt,H6(or))throw or;return or}function PSe(m){return Xr(m).toLowerCase()}function LSe(m){return Xr(m).toUpperCase()}function MSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return aS(m);if(!m||!(y=No(y)))return m;var F=Hl(m),X=Hl(y),ue=lb(F,X),ve=_m(F,X)+1;return ed(F,ue,ve).join("")}function $Se(m,y,A){if(m=Xr(m),m&&(A||y===n))return m.slice(0,Zx(m)+1);if(!m||!(y=No(y)))return m;var F=Hl(m),X=_m(F,Hl(y))+1;return ed(F,0,X).join("")}function FSe(m,y,A){if(m=Xr(m),m&&(A||y===n))return m.replace(ze,"");if(!m||!(y=No(y)))return m;var F=Hl(m),X=lb(F,Hl(y));return ed(F,X).join("")}function BSe(m,y){var A=B,F=W;if(ra(y)){var X="separator"in y?y.separator:X;A="length"in y?rr(y.length):A,F="omission"in y?No(y.omission):F}m=Xr(m);var ue=m.length;if(ju(m)){var ve=Hl(m);ue=ve.length}if(A>=ue)return m;var Ae=A-Ip(F);if(Ae<1)return F;var Be=ve?ed(ve,0,Ae).join(""):m.slice(0,Ae);if(X===n)return Be+F;if(ve&&(Ae+=Be.length-Ae),Q6(X)){if(m.slice(Ae).search(X)){var mt,bt=Be;for(X.global||(X=uS(X.source,Xr(we.exec(X))+"g")),X.lastIndex=0;mt=X.exec(bt);)var Tt=mt.index;Be=Be.slice(0,Tt===n?Ae:Tt)}}else if(m.indexOf(No(X),Ae)!=Ae){var Kt=Be.lastIndexOf(X);Kt>-1&&(Be=Be.slice(0,Kt))}return Be+F}function USe(m){return m=Xr(m),m&&hi.test(m)?m.replace(Yr,s6):m}var zSe=yh(function(m,y,A){return m+(A?" ":"")+y.toUpperCase()}),q6=wk("toUpperCase");function MV(m,y,A){return m=Xr(m),y=A?n:y,y===n?r6(m)?u6(m):Vx(m):m.match(y)||[]}var $V=nr(function(m,y){try{return to(m,n,y)}catch(A){return H6(A)?A:new Hn(A)}}),jSe=Zd(function(m,y){return rl(y,function(A){A=bs(A),ms(m,A,z6(m[A],m))}),m});function HSe(m){var y=m==null?0:m.length,A=Dn();return m=y?ri(m,function(F){if(typeof F[1]!="function")throw new kn(s);return[A(F[0]),F[1]]}):[],nr(function(F){for(var X=-1;++XG)return[];var A=Re,F=na(m,Re);y=Dn(y),m-=Re;for(var X=sb(F,y);++A0||y<0)?new Cn(A):(m<0?A=A.takeRight(-m):m&&(A=A.drop(m)),y!==n&&(y=rr(y),A=y<0?A.dropRight(-y):A.take(y-m)),A)},Cn.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},Cn.prototype.toArray=function(){return this.take(Re)},Gu(Cn.prototype,function(m,y){var A=/^(?:filter|find|map|reject)|While$/.test(y),F=/^(?:head|last)$/.test(y),X=te[F?"take"+(y=="last"?"Right":""):y],ue=F||/^find/.test(y);X&&(te.prototype[y]=function(){var ve=this.__wrapped__,Ae=F?[1]:arguments,Be=ve instanceof Cn,mt=Ae[0],bt=Be||Yn(ve),Tt=function(br){var kr=X.apply(te,Hd([br],Ae));return F&&Kt?kr[0]:kr};bt&&A&&typeof mt=="function"&&mt.length!=1&&(Be=bt=!1);var Kt=this.__chain__,On=!!this.__actions__.length,Mn=ue&&!Kt,or=Be&&!On;if(!ue&&bt){ve=or?ve:new Cn(this);var $n=m.apply(ve,Ae);return $n.__actions__.push({func:Lk,args:[Tt],thisArg:n}),new ps($n,Kt)}return Mn&&or?m.apply(this,Ae):($n=this.thru(Tt),Mn?F?$n.value()[0]:$n.value():$n)})}),rl(["pop","push","shift","sort","splice","unshift"],function(m){var y=xa[m],A=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",F=/^(?:pop|shift)$/.test(m);te.prototype[m]=function(){var X=arguments;if(F&&!this.__chain__){var ue=this.value();return y.apply(Yn(ue)?ue:[],X)}return this[A](function(ve){return y.apply(Yn(ve)?ve:[],X)})}}),Gu(Cn.prototype,function(m,y){var A=te[y];if(A){var F=A.name+"";Xn.call(sl,F)||(sl[F]=[]),sl[F].push({name:y,func:A})}}),sl[Yu(n,w).name]=[{name:"wrapper",func:n}],Cn.prototype.clone=Ti,Cn.prototype.reverse=hb,Cn.prototype.value=Mm,te.prototype.at=bve,te.prototype.chain=yve,te.prototype.commit=vve,te.prototype.next=Ove,te.prototype.plant=Eve,te.prototype.reverse=wve,te.prototype.toJSON=te.prototype.valueOf=te.prototype.value=Tve,te.prototype.first=te.prototype.head,Pp&&(te.prototype[Pp]=Sve),te},Np=c6();sh?((sh.exports=Np)._=Np,tb._=Np):Fa._=Np}).call(mf)})(wC,wC.exports);var iet=wC.exports;const aet=Cu(iet),set=Jt.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"}}),oet=Ld.define();class uet extends Md{constructor(n,r){super();$s(this,"color");$s(this,"name");this.color=n,this.name=r}toDOM(){return v_("span",[Wg("class","cm-ySelectionCaret"),Wg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[t4("⁠"),v_("div",[Wg("class","cm-ySelectionCaretDot")]),t4("⁠"),v_("div",[Wg("class","cm-ySelectionInfo")],[t4(this.name)]),t4("⁠")])}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 cet{constructor(t){$s(this,"conf");$s(this,"decorations");$s(this,"unsubscribe");this.conf=t.state.facet(JB),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[oet.of([])]})}),this.decorations=_r.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]);aet.isEqual(o,i.get("selection"))||i.set({selection:o})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),d=t.view.state.doc.lineAt(l);if(u.number===d.number)n.push({from:o,to:l,value:bn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:bn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:d.from,to:l,value:bn.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new uet(a,s)})})}),this.decorations=bn.set(n,!0)}}const det=da.fromClass(cet,{decorations:e=>e.decorations});function fet(e,t){const n=new qJe(e,t),r=[JB.of(n),YJe];return t&&r.push(set,det),r}var Ype=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),n.fontSize&&(a.fontSize=n.fontSize),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=Jt.theme(i,{dark:t==="dark"}),l=KT.define(r),u=[o,Rfe(l)];return u},het={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"},pet=[{tag:[ge.comment,ge.quote],color:"#707F8D"},{tag:[ge.typeName,ge.typeOperator],color:"#aa0d91"},{tag:[ge.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#D23423"},{tag:[ge.name],color:"#032f62"},{tag:[ge.typeName],color:"#522BB2"},{tag:[ge.variableName],color:"#23575C"},{tag:[ge.definition(ge.variableName)],color:"#327A9E"},{tag:[ge.regexp,ge.link],color:"#0e0eff"}];function met(e){var{theme:t="light",settings:n={},styles:r=[]}={};return Ype({theme:t,settings:jh({},het,n),styles:[...pet,...r]})}var get=met(),bet={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},yet=[{tag:[ge.comment,ge.quote],color:"#7F8C98"},{tag:[ge.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[ge.string,ge.meta],color:"#FF8170"},{tag:[ge.typeName],color:"#DABAFF"},{tag:[ge.definition(ge.variableName)],color:"#6BDFFF"},{tag:[ge.name],color:"#6BAA9F"},{tag:[ge.variableName],color:"#ACF2E4"},{tag:[ge.regexp,ge.link],color:"#FF8170"}],vet=e=>{var{theme:t="dark",settings:n={},styles:r=[]}={};return Ype({theme:t,settings:jh({},bet,n),styles:[...yet,...r]})},Oet=vet();const Eet="yorkie-intelligence-header",TC="yorkie-intelligence-footer";class DJ extends Md{constructor(n,r,i){super();$s(this,"id");$s(this,"content");$s(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return v_("span",[Wg("id",this.id),Wg("content",this.content),Wg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class wet{constructor(){$s(this,"decorations");this.decorations=_r.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:bn.widget({side:1,block:!1,widget:new DJ(Eet,a,r)})}),n.push({from:r.to,to:r.to,value:bn.widget({side:1,block:!1,widget:new DJ(TC,a,r)})})}this.decorations=bn.set(n,!0)}}const Tet=da.fromClass(wet,{decorations:e=>e.decorations}),PJ=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),LJ=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` +![image](${e}) +`,o=a+s.length;n.update((l,u)=>{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},xet=(e,t)=>Jt.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||PJ(n.clipboardData.files,e).then(s=>s.forEach(o=>LJ(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||PJ(n.dataTransfer.files,e).then(s=>s.forEach(o=>LJ(o,r,t)))}});var Zpe={exports:{}};(function(e,t){(function(r,i){e.exports=i(M)})(mf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function d(_){if(s===setTimeout)return setTimeout(_,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(_,0);try{return s(_,0)}catch{try{return s.call(null,_,0)}catch{return s.call(this,_,0)}}}function f(_){if(o===clearTimeout)return clearTimeout(_);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(_);try{return o(_)}catch{try{return o.call(null,_)}catch{return o.call(this,_)}}}var p=[],g=!1,O,S=-1;function T(){!g||!O||(g=!1,O.length?p=O.concat(p):S=-1,p.length&&w())}function w(){if(!g){var _=d(T);g=!0;for(var I=p.length;I;){for(O=p,p=[];++S1)for(var N=1;N1?p-1:0),O=1;O2?g-2:0),S=2;S0&&N.syncScrollPosition(N.panes[re][0],W),N.panes[re].push(W))}),N.addEvents(W,V)},N.unregisterPane=function(W,V){V.forEach(function(re){N.findPane(W,re)&&(N.removeEvents(W),N.panes[re].splice(N.panes[re].indexOf(W),1))})},N.addEvents=function(W,V){W.onscroll=N.handlePaneScroll.bind(N,W,V)},N.removeEvents=function(W){W.onscroll=null},N.findPane=function(W,V){return N.panes[V]?N.panes[V].find(function(re){return re===W}):!1},N.handlePaneScroll=function(W,V){N.props.enabled&&window.requestAnimationFrame(function(){N.syncScrollPositions(W,V)})},N.syncScrollPositions=function(W,V){V.forEach(function(re){N.panes[re].forEach(function(ee){W!==ee&&(N.removeEvents(ee,re),N.syncScrollPosition(W,ee),window.requestAnimationFrame(function(){N.addEvents(ee,V)}))})}),N.props.onSync&&N.props.onSync(W)},I),S(N,D)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(I,N){var D=I.scrollTop,L=I.scrollHeight,U=I.clientHeight,B=I.scrollLeft,W=I.scrollWidth,V=I.clientWidth,re=L-U,ee=W-V,q=this.props,ne=q.proportional,K=q.vertical,G=q.horizontal,ie=N.scrollHeight-U,H=N.scrollWidth-V;K&&re>0&&(N.scrollTop=ne?ie*D/re:D),G&&ee>0&&(N.scrollLeft=ne?H*B/ee:B)}},{key:"render",value:function(){return l.default.createElement(p.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);w.propTypes={onSync:d.default.func,children:d.default.element.isRequired,proportional:d.default.bool,vertical:d.default.bool,horizontal:d.default.bool,enabled:d.default.bool},w.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=w,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function w(x,k){for(var _=0;_"u"||Se===null)return""+Se;var Z=G(Se);if(Z==="object"){if(Se instanceof Date)return"date";if(Se instanceof RegExp)return"regexp"}return Z}function H(Se){var Z=ie(Se);switch(Z){case"array":case"object":return"an "+Z;case"boolean":case"date":case"regexp":return"a "+Z;default:return Z}}function Re(Se){return!Se.constructor||!Se.constructor.name?w:Se.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(Zpe);var WL=Zpe.exports;const ket={yorkieIntelligence:null,fileUpload:null},Xpe=$1({name:"setting",initialState:ket,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:Aet,setFileUpload:_et}=Xpe.actions,qR=e=>e.setting,Cet=Xpe.reducer;var su=(e=>(e.BOLD="bold",e.ITALIC="italic",e.CODE="code",e.STRIKETHROUGH="strikeThrough",e))(su||{});const Kpe=()=>{const{cmView:e}=Pr(Sm),t=M.useCallback(s=>{switch(s){case"bold":return"**";case"italic":return"_";case"code":return"`";case"strikeThrough":return"~~"}},[]),n=M.useCallback((s,o)=>{const u=new Set(["*","_","`","~"]);return[...s.sliceDoc(Math.max(0,o-10),o)].reduce((f,p)=>u.has(p)?f+1:f,0)},[]),r=M.useCallback(s=>{const o=t(s),l=o.length;return({state:u,dispatch:d})=>{const f=u.changeByRange(p=>{const g=n(u,p.from),O=u.sliceDoc(p.from-g<0?0:p.from-g,p.from).indexOf(o),S=u.sliceDoc(p.to,p.to+g).indexOf(o),T=[O===-1?{from:p.from,insert:yr.of([o])}:{from:p.from-g+O,to:p.from-g+O+l,insert:yr.of([""])},S===-1?{from:p.to,insert:yr.of([o])}:{from:p.to+S,to:p.to+S+l,insert:yr.of([""])}],w=O===-1?l:-l,x=S===-1?l:-l;return{changes:T,range:dt.range(p.from+w,p.to+x)}});return d(u.update(f,{scrollIntoView:!0,annotations:os.userEvent.of("input")})),!0}},[t,n]),i=M.useCallback(()=>[lYe,{key:"Mod-b",run:r("bold")},{key:"Mod-i",run:r("italic")},{key:"Mod-e",run:r("code")},{key:"Mod-Shift-x",run:r("strikeThrough")}],[r]),a=M.useCallback((s,o)=>(l,u)=>{if(!e)return;const d=new Set(s);d.has(u)?d.delete(u):d.add(u),o(f=>({...f,selectedFormats:d})),r(u)(e)},[e,r]);return{getFormatMarkerLength:n,applyFormat:r,setKeymapConfig:i,toggleButtonChangeHandler:a}},Ret={toggleButton:{width:"25px",height:"25px",border:"none",fontWeight:"bold"}};function n4({title:e,children:t,...n}){return R.jsx(C0,{title:e,placement:"top",children:R.jsx(Y4,{sx:Ret.toggleButton,...n,children:t})})}var GR={exports:{}},Jpe={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},e0e=Object.keys(Jpe).join("|"),Iet=new RegExp(e0e,"g"),Net=new RegExp(e0e,"");function Det(e){return Jpe[e]}var t0e=function(e){return e.replace(Iet,Det)},Pet=function(e){return!!e.match(Net)};GR.exports=t0e;GR.exports.has=Pet;GR.exports.remove=t0e;var Let=GR.exports;const Met=Cu(Let);/** + * @name match-sorter + * @license MIT license. + * @copyright (c) 2020 Kent C. Dodds + * @author Kent C. Dodds (https://kentcdodds.com) + */const Qo={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},$et=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function n0e(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Qo.MATCHES,baseSort:a=$et,sorter:s=u=>u.sort((d,f)=>zet(d,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:d}=u;return d});function l(u,d,f){const p=Fet(d,r,t,n),{rank:g,keyThreshold:O=i}=p;return g>=O&&u.push({...p,item:d,index:f}),u}}n0e.rankings=Qo;function Fet(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:MJ(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return Qet(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:d,keyThreshold:f}=a,{itemValue:p,attributes:g}=s,O=MJ(p,n,r),S=u;const{minRanking:T,maxRanking:w,threshold:x}=g;return O=Qo.MATCHES?O=T:O>w&&(O=w),O>l&&(l=O,d=o,f=x,S=p),{rankedValue:S,rank:l,keyIndex:d,keyThreshold:f}},{rankedValue:e,rank:Qo.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function MJ(e,t,n){return e=$J(e,n),t=$J(t,n),t.length>e.length?Qo.NO_MATCH:e===t?Qo.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Qo.EQUAL:e.startsWith(t)?Qo.STARTS_WITH:e.includes(` ${t}`)?Qo.WORD_STARTS_WITH:e.includes(t)?Qo.CONTAINS:t.length===1?Qo.NO_MATCH:Bet(e).includes(t)?Qo.ACRONYM:Uet(e,t))}function Bet(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function Uet(e,t){let n=0,r=0;function i(l,u,d){for(let f=d,p=u.length;f-1))return Qo.NO_MATCH}const o=r-s;return a(o)}function zet(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function $J(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=Met(e)),e}function jet(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwnProperty.call(e,t))n=e[t];else{if(t.includes("."))return Het(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function Het(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return n0e(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return R.jsxs(zn,{children:[R.jsx(TT,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),R.jsx(aR,{children:a.map(l=>R.jsxs(Od,{onClick:()=>t(l.feature,l.title),children:[R.jsx(Py,{children:R.jsx(soe,{children:R.jsx("img",{src:l.icon,alt:l.title})})}),R.jsx(Pf,{children:l.title})]},l.feature))})]})}var eU={},qet=Ni;Object.defineProperty(eU,"__esModule",{value:!0});var r0e=eU.default=void 0,Get=qet(ea()),Yet=R;r0e=eU.default=(0,Get.default)((0,Yet.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var tU={},Zet=Ni;Object.defineProperty(tU,"__esModule",{value:!0});var i0e=tU.default=void 0,Xet=Zet(ea()),Ket=R;i0e=tU.default=(0,Xet.default)((0,Ket.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const Jet=e=>{var p;const t=Pr(QT),n=Pr(vR),[r,i]=M.useState(null),[a,s]=M.useState(null),[o,l]=M.useState(!1),[u,d]=M.useState(!1),f=M.useCallback(async g=>{var x,k;l(!0),d(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let T=!0,w="";for(;S;){const{done:_,value:I}=await S.read();if(l(!1),_)break;let N=new TextDecoder().decode(I);if(T){const D=N.split(` +`);s(D[0]),T=!1,N=D.slice(1).join(` +`)}w+=N,i(w)}d(!0)},[t.accessToken,(p=n.data)==null?void 0:p.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},ett=e=>{var d;const t=Pr(QT),n=Pr(vR),[r,i]=M.useState(null),[a,s]=M.useState(!1),[o,l]=M.useState(!1),u=M.useCallback(async f=>{var S,T;if(!e)return;s(!0),l(!1),i(null);const g=(T=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:T.getReader();let O="";for(;g;){const{done:w,value:x}=await g.read();if(s(!1),w)break;const k=new TextDecoder().decode(x);O+=k,i(O)}l(!0)},[t.accessToken,(d=n.data)==null?void 0:d.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}},xO=function(e){if(e==null)return itt;if(typeof e=="function")return YR(e);if(typeof e=="object")return Array.isArray(e)?ttt(e):ntt(e);if(typeof e=="string")return rtt(e);throw new Error("Expected function, string, or object as test")};function ttt(e){const t=[];let n=-1;for(;++n":""))+")"})}return p;function p(){let g=a0e,O,S,T;if((!t||a(l,u,d[d.length-1]||void 0))&&(g=ott(n(l,d)),g[0]===xC))return g;if("children"in l&&l.children){const w=l;if(w.children&&g[0]!==Gy)for(S=(r?w.children.length:-1)+s,T=d.concat(w);S>-1&&S0&&d.length===0)return}const f={};let p;for(p in o)utt.call(o,p)&&(f[p]=p==="children"?d:o[p]);return f}}function dtt(e){return"children"in e&&e.children!==void 0}var VL={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,d]=a;if(l&&d){l=parseInt(l),d=parseInt(d);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Bd.displayName="c";Bd.aliases=[];function Bd(e){e.register(Er),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}U1.displayName="cpp";U1.aliases=[];function U1(e){e.register(Bd),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)}ZR.displayName="arduino";ZR.aliases=["ino"];function ZR(e){e.register(U1),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}nx.displayName="bash";nx.aliases=["sh","shell"];function nx(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(Se,Z){return"(?:"+Re[+Z]+")"})}function r(H,Re,Se){return RegExp(n(H,Re),"")}function i(H,Re){for(var Se=0;Se>/g,function(){return"(?:"+H+")"});return H.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(H){return"\\b(?:"+H.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),d=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),p=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,O=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,O]),T=/\[\s*(?:,\s*)*\]/.source,w=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,T]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,p,T]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),_=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,T]),I={keyword:l,punctuation:/[<>()?,.:[\]]/},N=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,L=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[L]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,_]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,O]),lookbehind:!0,inside:I},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[w]),lookbehind:!0,inside:I},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[_,d,g]),inside:I}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[p]),lookbehind:!0,alias:"class-name",inside:I},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[_,S]),inside:I,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[_]),lookbehind:!0,inside:I,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:I}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,O,g,_,l.source,p,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[O,p]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(_),greedy:!0,inside:I},punctuation:/[,()]/}},preprocessor:{pattern:/(^[\t ]*)#.*/m,lookbehind:!0,alias:"property",inside:{directive:{pattern:/(#)\b(?:define|elif|else|endif|endregion|error|if|line|nullable|pragma|region|undef|warning)\b/,lookbehind:!0,alias:"keyword"}}}});var U=D+"|"+N,B=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[U]),W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,re=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,W]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,re]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[W]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var ee=/:[^}\r\n]+/.source,q=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[B]),2),ne=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[q,ee]),K=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[U]),2),G=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,ee]);function ie(H,Re){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[H]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Re,ee]),lookbehind:!0,inside:{punctuation:/^:/}},punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-csharp",inside:t.languages.csharp}}},string:/[\s\S]+/}}t.languages.insertBefore("csharp","string",{"interpolation-string":[{pattern:r(/(^|[^\\])(?:\$@|@\$)"(?:""|\\[\s\S]|\{\{|<<0>>|[^\\{"])*"/.source,[ne]),lookbehind:!0,greedy:!0,inside:ie(ne,q)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[G]),lookbehind:!0,greedy:!0,inside:ie(G,K)}],char:{pattern:RegExp(N),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}_s.displayName="markup";_s.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function _s(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}wm.displayName="css";wm.aliases=[];function wm(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)}XR.displayName="diff";XR.aliases=[];function XR(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r +?| +|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}KR.displayName="go";KR.aliases=[];function KR(e){e.register(Er),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"]}JR.displayName="ini";JR.aliases=[];function JR(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:/=/}}j1.displayName="java";j1.aliases=[];function j1(e){e.register(Er),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)}eI.displayName="regex";eI.aliases=[];function eI(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}kO.displayName="json";kO.aliases=["webmanifest"];function kO(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}tI.displayName="kotlin";tI.aliases=["kt","kts"];function tI(e){e.register(Er),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)}nI.displayName="less";nI.aliases=[];function nI(e){e.register(wm),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"}})}rx.displayName="lua";rx.aliases=[];function rx(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:/[\[\](){},;]|\.+|:+/}}rI.displayName="makefile";rI.aliases=[];function rI(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:/[:;(){}]/}}ix.displayName="yaml";ix.aliases=["yml"];function ix(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var d=/([:\-,[{]\s*(?:\s<>[ \t]+)?)(?:<>)(?=[ \t]*(?:$|,|\]|\}|(?:[\r\n]\s*)?#))/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return l});return RegExp(d,u)}t.languages.yaml={scalar:{pattern:RegExp(/([\-:]\s*(?:\s<>[ \t]+)?[|>])[ \t]*(?:((?:\r?\n|\r)[ \t]+)\S[^\r\n]*(?:\2[^\r\n]+)*)/.source.replace(/<>/g,function(){return i})),lookbehind:!0,alias:"string"},comment:/#.*/,key:{pattern:RegExp(/((?:^|[:\-,[{\r\n?])[ \t]*(?:<>[ \t]+)?)<>(?=\s*:\s)/.source.replace(/<>/g,function(){return i}).replace(/<>/g,function(){return"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}iI.displayName="markdown";iI.aliases=["md"];function iI(e){e.register(_s),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var d=0,f=u.length;d]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}sI.displayName="perl";sI.aliases=[];function sI(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)}Ks.displayName="markup-templating";Ks.aliases=[];function Ks(e){e.register(_s),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,d;r.code.indexOf(d=n(i,u))!==-1;)++u;return o[u]=l,d}),r.grammar=t.languages.markup}}},tokenizePlaceholders:{value:function(r,i){if(r.language!==i||!r.tokenStack)return;r.grammar=t.languages[i];var a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var d=l[u];if(typeof d=="string"||d.content&&typeof d.content=="string"){var f=s[a],p=r.tokenStack[f],g=typeof d=="string"?d:d.content,O=n(i,f),S=g.indexOf(O);if(S>-1){++a;var T=g.substring(0,S),w=new t.Token(i,t.tokenize(p,r.grammar),"language-"+i,p),x=g.substring(S+O.length),k=[];T&&k.push.apply(k,o([T])),k.push(w),x&&k.push.apply(k,o([x])),typeof d=="string"?l.splice.apply(l,[u,1].concat(k)):d.content=k}}else d.content&&o(d.content)}return l}o(r.tokens)}}})}(e)}H1.displayName="php";H1.aliases=[];function H1(e){e.register(Ks),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var d=/<\?(?:[^"'/#]|\/(?![*/])|("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|(?:\/\/|#(?!\[))(?:[^?\n\r]|\?(?!>))*(?=$|\?>|[\r\n])|#\[|\/\*(?:[^*]|\*(?!\/))*(?:\*\/|$))*?(?:\?>|$)/g;t.languages["markup-templating"].buildPlaceholders(u,"php",d)}}),t.hooks.add("after-tokenize",function(u){t.languages["markup-templating"].tokenizePlaceholders(u,"php")})}(e)}ax.displayName="python";ax.aliases=["py"];function ax(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}oI.displayName="r";oI.aliases=[];function oI(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:/[(){}\[\],;]/}}Q1.displayName="ruby";Q1.aliases=["rb"];function Q1(e){e.register(Er),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)}lI.displayName="rust";lI.aliases=[];function lI(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)}uI.displayName="sass";uI.aliases=[];function uI(e){e.register(wm),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)}cI.displayName="scss";cI.aliases=[];function cI(e){e.register(wm),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}AO.displayName="sql";AO.aliases=[];function AO(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:/[;[\]()`,.]/}}dI.displayName="swift";dI.aliases=[];function dI(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})}_O.displayName="typescript";_O.aliases=["ts"];function _O(e){e.register(Xs),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)}sx.displayName="basic";sx.aliases=[];function sx(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:/[,;:()]/}}ox.displayName="vbnet";ox.aliases=[];function ox(e){e.register(sx),e.languages.vbnet=e.languages.extend("basic",{comment:[{pattern:/(?:!|REM\b).+/i,inside:{keyword:/^REM/i}},{pattern:/(^|[^\\:])'.*/,lookbehind:!0,greedy:!0}],string:{pattern:/(^|[^"])"(?:""|[^"])*"(?!")/,lookbehind:!0,greedy:!0},keyword:/(?:\b(?:ADDHANDLER|ADDRESSOF|ALIAS|AND|ANDALSO|AS|BEEP|BLOAD|BOOLEAN|BSAVE|BYREF|BYTE|BYVAL|CALL(?: ABSOLUTE)?|CASE|CATCH|CBOOL|CBYTE|CCHAR|CDATE|CDBL|CDEC|CHAIN|CHAR|CHDIR|CINT|CLASS|CLEAR|CLNG|CLOSE|CLS|COBJ|COM|COMMON|CONST|CONTINUE|CSBYTE|CSHORT|CSNG|CSTR|CTYPE|CUINT|CULNG|CUSHORT|DATA|DATE|DECIMAL|DECLARE|DEF(?: FN| SEG|DBL|INT|LNG|SNG|STR)|DEFAULT|DELEGATE|DIM|DIRECTCAST|DO|DOUBLE|ELSE|ELSEIF|END|ENUM|ENVIRON|ERASE|ERROR|EVENT|EXIT|FALSE|FIELD|FILES|FINALLY|FOR(?: EACH)?|FRIEND|FUNCTION|GET|GETTYPE|GETXMLNAMESPACE|GLOBAL|GOSUB|GOTO|HANDLES|IF|IMPLEMENTS|IMPORTS|IN|INHERITS|INPUT|INTEGER|INTERFACE|IOCTL|IS|ISNOT|KEY|KILL|LET|LIB|LIKE|LINE INPUT|LOCATE|LOCK|LONG|LOOP|LSET|ME|MKDIR|MOD|MODULE|MUSTINHERIT|MUSTOVERRIDE|MYBASE|MYCLASS|NAME|NAMESPACE|NARROWING|NEW|NEXT|NOT|NOTHING|NOTINHERITABLE|NOTOVERRIDABLE|OBJECT|OF|OFF|ON(?: COM| ERROR| KEY| TIMER)?|OPEN|OPERATOR|OPTION(?: BASE)?|OPTIONAL|OR|ORELSE|OUT|OVERLOADS|OVERRIDABLE|OVERRIDES|PARAMARRAY|PARTIAL|POKE|PRIVATE|PROPERTY|PROTECTED|PUBLIC|PUT|RAISEEVENT|READ|READONLY|REDIM|REM|REMOVEHANDLER|RESTORE|RESUME|RETURN|RMDIR|RSET|RUN|SBYTE|SELECT(?: CASE)?|SET|SHADOWS|SHARED|SHELL|SHORT|SINGLE|SLEEP|STATIC|STEP|STOP|STRING|STRUCTURE|SUB|SWAP|SYNCLOCK|SYSTEM|THEN|THROW|TIMER|TO|TROFF|TRON|TRUE|TRY|TRYCAST|TYPE|TYPEOF|UINTEGER|ULONG|UNLOCK|UNTIL|USHORT|USING|VIEW PRINT|WAIT|WEND|WHEN|WHILE|WIDENING|WITH|WITHEVENTS|WRITE|WRITEONLY|XOR)|\B(?:#CONST|#ELSE|#ELSEIF|#END|#IF))(?:\$|\b)/i,punctuation:/[,;:(){}]/})}class lx{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}lx.prototype.property={};lx.prototype.normal={};lx.prototype.space=null;function o0e(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&ytt.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(UJ,Stt);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!UJ.test(a)){let s=a.replace(vtt,Ott);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=rU}return new i(r,t)}function Ott(e){return"-"+e.toLowerCase()}function Stt(e){return e.charAt(1).toUpperCase()}const Ett={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"},V1=o0e([c0e,u0e,h0e,p0e,gtt],"html"),Tp=o0e([c0e,u0e,h0e,p0e,btt],"svg"),zJ=/[#.]/g;function wtt(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function Itt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Ntt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function QJ(e){return Ntt(e)||g0e(e)}const WJ=document.createElement("i");function Kw(e){const t="&"+e+";";WJ.innerHTML=t;const n=WJ.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}const $b=String.fromCharCode,Dtt=["","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 Ptt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,d=(o?o.column:0)||1,f=g(),p;for(i--;++i<=e.length;)if(p===10&&(d=(l?l[a]:0)||1),p=e.charCodeAt(i),p===38){const T=e.charCodeAt(i+1);if(T===9||T===10||T===12||T===32||T===38||T===60||Number.isNaN(T)||n&&T===n){s+=$b(p),d++;continue}const w=i+1;let x=w,k=w,_;if(T===35){k=++x;const V=e.charCodeAt(k);V===88||V===120?(_="hexadecimal",k=++x):_="decimal"}else _="named";let I="",N="",D="";const L=_==="named"?QJ:_==="decimal"?g0e:Itt;for(k--;++k<=e.length;){const V=e.charCodeAt(k);if(!L(V))break;D+=$b(V),_==="named"&&Rtt.includes(D)&&(I=D,N=Kw(D))}let U=e.charCodeAt(k)===59;if(U){k++;const V=_==="named"?Kw(D):!1;V&&(I=D,N=V)}let B=1+k-w,W="";if(!(!U&&t.nonTerminated===!1))if(!D)_!=="named"&&O(4,B);else if(_==="named"){if(U&&!N)O(5,1);else if(I!==D&&(k=x+I.length,B=1+k-x,U=!1),!U){const V=I?1:3;if(t.attribute){const re=e.charCodeAt(k);re===61?(O(V,B),N=""):QJ(re)?N="":O(V,B)}else O(V,B)}W=N}else{U||O(2,B);let V=Number.parseInt(D,_==="hexadecimal"?16:10);if(Ltt(V))O(7,B),W=$b(65533);else if(V in HJ)O(6,B),W=HJ[V];else{let re="";Mtt(V)&&O(6,B),V>65535&&(V-=65536,re+=$b(V>>>10|55296),V=56320|V&1023),W=re+$b(V)}}if(W){S(),f=g(),i=k-1,d+=k-w+1,r.push(W);const V=g();V.offset++,t.reference&&t.reference.call(t.referenceContext,W,{start:f,end:V},e.slice(w-1,k)),f=V}else D=e.slice(w-1,k),s+=D,d+=D.length,i=k-1}else p===10&&(u++,a++,d=0),Number.isNaN(p)?S():(s+=$b(p),d++);return r.join("");function g(){return{line:u,column:d,offset:i+((o?o.offset:0)||0)}}function O(T,w){let x;t.warning&&(x=g(),x.column+=w,x.offset+=w,t.warning.call(t.warningContext,Dtt[T],x,T))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function Ltt(e){return e>=55296&&e<=57343||e>1114111}function Mtt(e){return e>=1&&e<=8||e===11||e>=13&&e<=31||e>=127&&e<=159||e>=64976&&e<=65007||(e&65535)===65535||(e&65535)===65534}var $tt=0,r4={},vs={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++$tt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(vs.util.type(t)){case"Object":if(i=vs.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=vs.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:r4,plaintext:r4,text:r4,txt:r4,extend:function(e,t){var n=vs.util.clone(vs.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||vs.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,vs.languages.DFS(vs.languages,function(u,d){d===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=vs.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=vs.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(vs.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=vs.tokenize(r.code,r.grammar),vs.hooks.run("after-tokenize",r),A2.stringify(vs.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 Ftt;return O_(i,i.head,e),b0e(e,i,t,i.head,0),Utt(i)},hooks:{all:{},add:function(e,t){var n=vs.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=vs.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:A2};function A2(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function VJ(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function b0e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);w+=T.value.length,T=T.next){var x=T.value;if(t.length>e.length)return;if(!(x instanceof A2)){var k=1,_;if(p){if(_=VJ(S,w,e,f),!_||_.index>=e.length)break;var L=_.index,I=_.index+_[0].length,N=w;for(N+=T.value.length;L>=N;)T=T.next,N+=T.value.length;if(N-=T.value.length,w=N,T.value instanceof A2)continue;for(var D=T;D!==t.tail&&(Na.reach&&(a.reach=V);var re=T.prev;B&&(re=O_(t,re,B),w+=B.length),Btt(t,re,k);var ee=new A2(s,d?vs.tokenize(U,d):U,g,U);if(T=O_(t,re,ee),W&&O_(t,T,W),k>1){var q={cause:s+","+l,reach:V};b0e(e,t,n,T.prev,w,q),a&&q.reach>a.reach&&(a.reach=q.reach)}}}}}}function Ftt(){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 O_(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 Btt(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:/[,.:()]/}}oU.displayName="abnf";oU.aliases=[];function oU(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)}lU.displayName="actionscript";lU.aliases=[];function lU(e){e.register(Xs),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}})}uU.displayName="ada";uU.aliases=[];function uU(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}}cU.displayName="agda";cU.aliases=[];function cU(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)}dU.displayName="al";dU.aliases=[];function dU(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:/[()\[\]{}:.;,]/}}fU.displayName="antlr4";fU.aliases=["g4"];function fU(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}hU.displayName="apacheconf";hU.aliases=[];function hU(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:/\^?.*\$|\^.*\$?/}}pU.displayName="apex";pU.aliases=[];function pU(e){e.register(Er),e.register(AO),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}mU.displayName="apl";mU.aliases=[];function mU(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"}}}gU.displayName="applescript";gU.aliases=[];function gU(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:/[{}():,¬«»《》]/}}bU.displayName="aql";bU.aliases=[];function bU(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:/::|[?.:,;()[\]{}]/}}yU.displayName="arff";yU.aliases=[];function yU(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:/[{},]/}}vU.displayName="armasm";vU.aliases=["arm-asm"];function vU(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}OU.displayName="arturo";OU.aliases=["art"];function OU(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)}SU.displayName="asciidoc";SU.aliases=["adoc"];function SU(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}wU.displayName="asm6502";wU.aliases=[];function wU(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:/[(),:]/}}TU.displayName="asmatmel";TU.aliases=[];function TU(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:/[(),:]/}}xU.displayName="autohotkey";xU.aliases=[];function xU(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:/[{}[\]():,]/}}kU.displayName="autoit";kU.aliases=[];function kU(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:/[\[\]().,:]/}}AU.displayName="avisynth";AU.aliases=["avs"];function AU(e){(function(t){function n(u,d){return u.replace(/<<(\d+)>>/g,function(f,p){return d[+p]})}function r(u,d,f){return RegExp(n(u,d),f)}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}_U.displayName="avro-idl";_U.aliases=["avdl"];function _U(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"]}CU.displayName="awk";CU.aliases=["gawk"];function CU(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}RU.displayName="batch";RU.aliases=[];function RU(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}IU.displayName="bbcode";IU.aliases=["shortcode"];function IU(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}NU.displayName="bbj";NU.aliases=[];function NU(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)}DU.displayName="bicep";DU.aliases=[];function DU(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}PU.displayName="birb";PU.aliases=[];function PU(e){e.register(Er),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"}})}LU.displayName="bison";LU.aliases=[];function LU(e){e.register(Bd),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:/%[%?]|[|:;\[\]<>]/}}})}MU.displayName="bnf";MU.aliases=["rbnf"];function MU(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}$U.displayName="bqn";$U.aliases=[];function $U(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}FU.displayName="brainfuck";FU.aliases=[];function FU(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}BU.displayName="brightscript";BU.aliases=[];function BU(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}UU.displayName="bro";UU.aliases=[];function UU(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:/[{}[\];(),.:]/}}zU.displayName="bsl";zU.aliases=["oscript"];function zU(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}jU.displayName="cfscript";jU.aliases=["cfc"];function jU(e){e.register(Er),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}HU.displayName="chaiscript";HU.aliases=[];function HU(e){e.register(Er),e.register(U1),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]+/}}})}QU.displayName="cil";QU.aliases=[];function QU(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]+/}}WU.displayName="cilkc";WU.aliases=["cilk-c"];function WU(e){e.register(Bd),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}VU.displayName="cilkcpp";VU.aliases=["cilk","cilk-cpp"];function VU(e){e.register(U1),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}qU.displayName="clojure";qU.aliases=[];function qU(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:/[{}\[\](),]/}}GU.displayName="cmake";GU.aliases=[];function GU(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:/[()>}]|\$[<{]/}}YU.displayName="cobol";YU.aliases=[];function YU(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:/[.:,()]/}}ZU.displayName="coffeescript";ZU.aliases=["coffee"];function ZU(e){e.register(Xs),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)}XU.displayName="concurnas";XU.aliases=["conc"];function XU(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}KU.displayName="csp";KU.aliases=[];function KU(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)}JU.displayName="cooklang";JU.aliases=[];function JU(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}ez.displayName="coq";ez.aliases=[];function ez(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)}tz.displayName="crystal";tz.aliases=[];function tz(e){e.register(Q1),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)}nz.displayName="css-extras";nz.aliases=[];function nz(e){e.register(wm),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}rz.displayName="csv";rz.aliases=[];function rz(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}iz.displayName="cue";iz.aliases=[];function iz(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)}az.displayName="cypher";az.aliases=[];function az(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:/[()[\]{},;.]/}}sz.displayName="d";sz.aliases=[];function sz(e){e.register(Er),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"}})}oz.displayName="dart";oz.aliases=[];function oz(e){e.register(Er),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)}lz.displayName="dataweave";lz.aliases=[];function lz(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)}uz.displayName="dax";uz.aliases=[];function uz(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:/[;\[\](){}`,.]/}}cz.displayName="dhall";cz.aliases=[];function cz(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}dz.displayName="django";dz.aliases=["jinja2"];function dz(e){e.register(Ks),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)}fz.displayName="dns-zone-file";fz.aliases=["dns-zone"];function fz(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"]}hz.displayName="docker";hz.aliases=["dockerfile"];function hz(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,d){return u=u.replace(//g,function(){return a}).replace(//g,function(){return r}),RegExp(u,d)}t.languages.docker={instruction:{pattern:/(^[ \t]*)(?:ADD|ARG|CMD|COPY|ENTRYPOINT|ENV|EXPOSE|FROM|HEALTHCHECK|LABEL|MAINTAINER|ONBUILD|RUN|SHELL|STOPSIGNAL|USER|VOLUME|WORKDIR)(?=\s)(?:\\.|[^\r\n\\])*(?:\\$(?:\s|#.*$)*(?![\s#])(?:\\.|[^\r\n\\])*)*/im,lookbehind:!0,greedy:!0,inside:{options:{pattern:l(/(^(?:ONBUILD)?\w+)(?:)*/.source,"i"),lookbehind:!0,greedy:!0,inside:{property:{pattern:/(^|\s)--[\w-]+/,lookbehind:!0},string:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}pz.displayName="dot";pz.aliases=["gv"];function pz(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}mz.displayName="ebnf";mz.aliases=[];function mz(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:/[-=|*/!]/}}gz.displayName="editorconfig";gz.aliases=[];function gz(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:/^=/}}}}bz.displayName="eiffel";bz.aliases=[];function bz(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}yz.displayName="ejs";yz.aliases=["eta"];function yz(e){e.register(Xs),e.register(Ks),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)}vz.displayName="elixir";vz.aliases=[];function vz(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}}}})}Oz.displayName="elm";Oz.aliases=[];function Oz(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:/[{}[\]|(),.:]/}}Sz.displayName="etlua";Sz.aliases=[];function Sz(e){e.register(rx),e.register(Ks),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)}Ez.displayName="erb";Ez.aliases=[];function Ez(e){e.register(Ks),e.register(Q1),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)}wz.displayName="erlang";wz.aliases=[];function wz(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:/[()[\]{}:;,.#|]|<<|>>/}}Tz.displayName="excel-formula";Tz.aliases=["xls","xlsx"];function Tz(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"]}xz.displayName="fsharp";xz.aliases=[];function xz(e){e.register(Er),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}})}kz.displayName="factor";kz.aliases=[];function kz(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}Az.displayName="false";Az.aliases=[];function Az(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:/,/}}})}Cz.displayName="flow";Cz.aliases=[];function Cz(e){e.register(Xs),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)}Rz.displayName="fortran";Rz.aliases=[];function Rz(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:/\(\/|\/\)|[(),;:&]/}}Iz.displayName="ftl";Iz.aliases=[];function Iz(e){e.register(Ks),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}Nz.displayName="gml";Nz.aliases=["gamemakerlanguage"];function Nz(e){e.register(Er),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/})}Dz.displayName="gap";Dz.aliases=[];function Dz(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}Pz.displayName="gcode";Pz.aliases=[];function Pz(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:/[:*]/}}Lz.displayName="gdscript";Lz.aliases=[];function Lz(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:/[.:,;()[\]{}]/}}Mz.displayName="gedcom";Mz.aliases=[];function Mz(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"}}}$z.displayName="gettext";$z.aliases=["po"];function $z(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}Fz.displayName="gherkin";Fz.aliases=[];function Fz(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)}Bz.displayName="git";Bz.aliases=[];function Bz(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}}Uz.displayName="glsl";Uz.aliases=[];function Uz(e){e.register(Bd),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/})}zz.displayName="gn";zz.aliases=["gni"];function zz(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}jz.displayName="linker-script";jz.aliases=["ld"];function jz(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"]}Hz.displayName="go-module";Hz.aliases=["go-mod"];function Hz(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:/[()[\],]/}}Qz.displayName="gradle";Qz.aliases=[];function Qz(e){e.register(Er),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)}Wz.displayName="graphql";Wz.aliases=[];function Wz(e){e.languages.graphql={comment:/#.*/,description:{pattern:/(?:"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*")(?=\s*[a-z_])/i,greedy:!0,alias:"string",inside:{"language-markdown":{pattern:/(^"(?:"")?)(?!\1)[\s\S]+(?=\1$)/,lookbehind:!0,inside:e.languages.markdown}}},string:{pattern:/"""(?:[^"]|(?!""")")*"""|"(?:\\.|[^\\"\r\n])*"/,greedy:!0},number:/(?:\B-|\b)\d+(?:\.\d+)?(?:e[+-]?\d+)?\b/i,boolean:/\b(?:false|true)\b/,variable:/\$[a-z_]\w*/i,directive:{pattern:/@[a-z_]\w*/i,alias:"function"},"attr-name":{pattern:/\b[a-z_]\w*(?=\s*(?:\((?:[^()"]|"(?:\\.|[^\\"\r\n])*")*\))?:)/i,greedy:!0},"atom-input":{pattern:/\b[A-Z]\w*Input\b/,alias:"class-name"},scalar:/\b(?:Boolean|Float|ID|Int|String)\b/,constant:/\b[A-Z][A-Z_\d]*\b/,"class-name":{pattern:/(\b(?:enum|implements|interface|on|scalar|type|union)\s+|&\s*|:\s*|\[)[A-Z_]\w*/,lookbehind:!0},fragment:{pattern:/(\bfragment\s+|\.{3}\s*(?!on\b))[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-mutation":{pattern:/(\bmutation\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},"definition-query":{pattern:/(\bquery\s+)[a-zA-Z_]\w*/,lookbehind:!0,alias:"function"},keyword:/\b(?:directive|enum|extend|fragment|implements|input|interface|mutation|on|query|repeatable|scalar|schema|subscription|type|union)\b/,operator:/[!=|&]|\.{3}/,"property-query":/\w+(?=\s*\()/,object:/\w+(?=\s*\{)/,punctuation:/[!(){}\[\]:=,]/,property:/\w+/},e.hooks.add("after-tokenize",function(n){if(n.language!=="graphql")return;var r=n.tokens.filter(function(T){return typeof T!="string"&&T.type!=="comment"&&T.type!=="scalar"}),i=0;function a(T){return r[i+T]}function s(T,w){w=w||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var O=i;O=0&&l(S,"variable-input")}}}}})}Vz.displayName="groovy";Vz.aliases=[];function Vz(e){e.register(Er),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)}qz.displayName="textile";qz.aliases=[];function qz(e){e.register(_s),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,p){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),p||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var d=o.table.inside;d.inline=l.inline,d.link=l.link,d.image=l.image,d.footnote=l.footnote,d.acronym=l.acronym,d.mark=l.mark}(e)}Gz.displayName="haml";Gz.aliases=[];function Gz(e){e.register(Q1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}ux.displayName="haskell";ux.aliases=["hs"];function ux(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}Zz.displayName="haxe";Zz.aliases=[];function Zz(e){e.register(Er),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"}})}Xz.displayName="hcl";Xz.aliases=[];function Xz(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:/[=\[\]{}]/}}Kz.displayName="hlsl";Kz.aliases=[];function Kz(e){e.register(Bd),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/})}Jz.displayName="hoon";Jz.aliases=[];function Jz(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}ej.displayName="hpkp";ej.aliases=[];function ej(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}tj.displayName="hsts";tj.aliases=[];function tj(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}nj.displayName="uri";nj.aliases=["url"];function nj(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}rj.displayName="http";rj.aliases=[];function rj(e){(function(t){function n(d){return RegExp("(^(?:"+d+"):[ ]*(?![ ]))[^]+","i")}t.languages.http={"request-line":{pattern:/^(?:CONNECT|DELETE|GET|HEAD|OPTIONS|PATCH|POST|PRI|PUT|SEARCH|TRACE)\s(?:https?:\/\/|\/)\S*\sHTTP\/[\d.]+/m,inside:{method:{pattern:/^[A-Z]+\b/,alias:"property"},"request-target":{pattern:/^(\s)(?:https?:\/\/|\/)\S*(?=\s)/,lookbehind:!0,alias:"url",inside:t.languages.uri},"http-version":{pattern:/^(\s)HTTP\/[\d.]+/,lookbehind:!0,alias:"property"}}},"response-status":{pattern:/^HTTP\/[\d.]+ \d+ .+/m,inside:{"http-version":{pattern:/^HTTP\/[\d.]+/,alias:"property"},"status-code":{pattern:/^(\s)\d+(?=\s)/,lookbehind:!0,alias:"number"},"reason-phrase":{pattern:/^(\s).+/,lookbehind:!0,alias:"string"}}},header:{pattern:/^[\w-]+:.+(?:(?:\r\n?|\n)[ \t].+)*/m,inside:{"header-value":[{pattern:n(/Content-Security-Policy/.source),lookbehind:!0,alias:["csp","languages-csp"],inside:t.languages.csp},{pattern:n(/Public-Key-Pins(?:-Report-Only)?/.source),lookbehind:!0,alias:["hpkp","languages-hpkp"],inside:t.languages.hpkp},{pattern:n(/Strict-Transport-Security/.source),lookbehind:!0,alias:["hsts","languages-hsts"],inside:t.languages.hsts},{pattern:n(/[^:]+/.source),lookbehind:!0}],"header-name":{pattern:/^[^:]+/,alias:"keyword"},punctuation:/^:/}}};var r=t.languages,i={"application/javascript":r.javascript,"application/json":r.json||r.javascript,"application/xml":r.xml,"text/xml":r.xml,"text/html":r.html,"text/css":r.css,"text/plain":r.plain},a={"application/json":!0,"application/xml":!0};function s(d){var f=d.replace(/^[a-z]+\//,""),p="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+d+"|"+p+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}ij.displayName="ichigojam";ij.aliases=[];function ij(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:/[\[,;:()\]]/}}aj.displayName="icon";aj.aliases=[];function aj(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:/[\[\](){},;]/}}sj.displayName="icu-message-format";sj.aliases=[];function sj(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}oj.displayName="idris";oj.aliases=["idr"];function oj(e){e.register(ux),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}lj.displayName="ignore";lj.aliases=["gitignore","hgignore","npmignore"];function lj(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)}uj.displayName="inform7";uj.aliases=[];function uj(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"}}cj.displayName="io";cj.aliases=[];function cj(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:/[()]/}}NO.displayName="javadoclike";NO.aliases=[];function NO(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var d={};d[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",d),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,p=u.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}hj.displayName="javadoc";hj.aliases=[];function hj(e){e.register(j1),e.register(NO),e.register(_s),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)}pj.displayName="javastacktrace";pj.aliases=[];function pj(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/}}}}mj.displayName="jexl";mj.aliases=[];function mj(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:/[{}[\](),.]/}}gj.displayName="jolie";gj.aliases=[];function gj(e){e.register(Er),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]*:)/}})}bj.displayName="jq";bj.aliases=[];function bj(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}yj.displayName="js-templates";yj.aliases=[];function yj(e){e.register(Xs),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(O,S){if(t.languages[O])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:O}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(O,S){return"___"+S.toUpperCase()+"_"+O+"___"}function u(O,S,T){var w={code:O,grammar:S,language:T};return t.hooks.run("before-tokenize",w),w.tokens=t.tokenize(w.code,w.grammar),t.hooks.run("after-tokenize",w),w.tokens}function d(O){var S={};S["interpolation-punctuation"]=a;var T=t.tokenize(O,S);if(T.length===3){var w=[1,1];w.push.apply(w,u(T[1],t.languages.javascript,"javascript")),T.splice.apply(T,w)}return new t.Token("interpolation",T,i.alias,O)}function f(O,S,T){var w=t.tokenize(O,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},_=w.map(function(L){if(typeof L=="string")return L;for(var U=L.content,B;O.indexOf(B=l(x++,T))!==-1;);return k[B]=U,B}).join(""),I=u(_,S,T),N=Object.keys(k);x=0;function D(L){for(var U=0;U=N.length)return;var B=L[U];if(typeof B=="string"||typeof B.content=="string"){var W=N[x],V=typeof B=="string"?B:B.content,re=V.indexOf(W);if(re!==-1){++x;var ee=V.substring(0,re),q=d(k[W]),ne=V.substring(re+W.length),K=[];if(ee&&K.push(ee),K.push(q),ne){var G=[ne];D(G),K.push.apply(K,G)}typeof B=="string"?(L.splice.apply(L,[U,1].concat(K)),U+=K.length-1):B.content=K}}else{var ie=B.content;Array.isArray(ie)?D(ie):D([ie])}}}return D(I),new t.Token(T,I,"language-"+T,O)}var p={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(O){if(!(O.language in p))return;function S(T){for(var w=0,x=T.length;w\s+)?)[A-Z]\w*(?:\.[A-Z]\w*)*/.source.replace(//g,function(){return r})),lookbehind:!0,inside:{punctuation:/\./}},{pattern:RegExp("(@[a-z]+\\s+)"+r),lookbehind:!0,inside:{string:n.string,number:n.number,boolean:n.boolean,keyword:t.languages.typescript.keyword,operator:/=>|\.\.\.|[&|?:*]/,punctuation:/[.,;=<>{}()[\]]/}}],example:{pattern:/(@example\s+(?!\s))(?:[^@\s]|\s+(?!\s))+?(?=\s*(?:\*\s*)?(?:@\w|\*\/))/,lookbehind:!0,inside:{code:{pattern:/^([\t ]*(?:\*\s*)?)\S.*$/m,lookbehind:!0,inside:n,alias:"language-javascript"}}}}),t.languages.javadoclike.addSupport("javascript",t.languages.jsdoc)}(e)}Oj.displayName="n4js";Oj.aliases=["n4jsd"];function Oj(e){e.register(Xs),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}Sj.displayName="js-extras";Sj.aliases=[];function Sj(e){e.register(Xs),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:/:/}}}}}}xj.displayName="julia";xj.aliases=[];function xj(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|[πℯ]/}}kj.displayName="keepalived";kj.aliases=[];function kj(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:/[\{\}]/}}Aj.displayName="keyman";Aj.aliases=[];function Aj(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:/[()=,]/}}_j.displayName="kumir";_j.aliases=["kum"];function _j(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}Cj.displayName="kusto";Cj.aliases=[];function Cj(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:/[()\[\]{},;.:]/}}Rj.displayName="latex";Rj.aliases=["context","tex"];function Rj(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)}Ij.displayName="latte";Ij.aliases=[];function Ij(e){e.register(Er),e.register(Ks),e.register(H1),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)}cx.displayName="scheme";cx.aliases=[];function cx(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}Nj.displayName="lilypond";Nj.aliases=["ly"];function Nj(e){e.register(cx),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}Dj.displayName="liquid";Dj.aliases=[];function Dj(e){e.register(Ks),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}Pj.displayName="lisp";Pj.aliases=["elisp","emacs","emacs-lisp"];function Pj(e){(function(t){function n(O){return RegExp(/(\()/.source+"(?:"+O+")"+/(?=[\s\)])/.source)}function r(O){return RegExp(/([\s([])/.source+"(?:"+O+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,d={heading:{pattern:/;;;.*/,alias:["comment","title"]},comment:/;.*/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0,inside:{argument:/[-A-Z]+(?=[.,\s])/,symbol:RegExp("`"+i+"'")}},"quoted-symbol":{pattern:RegExp("#?'"+i),alias:["variable","symbol"]},"lisp-property":{pattern:RegExp(":"+i),alias:"property"},splice:{pattern:RegExp(",@?"+i),alias:["symbol","variable"]},keyword:[{pattern:RegExp(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:d},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:d},p="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+p),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+p),inside:f},keys:{pattern:RegExp("&key\\s+"+p+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};d.lambda.inside.arguments=g,d.defun.inside.arguments=t.util.clone(g),d.defun.inside.arguments.inside.sublist=g,t.languages.lisp=d,t.languages.elisp=d,t.languages.emacs=d,t.languages["emacs-lisp"]=d})(e)}Lj.displayName="livescript";Lj.aliases=[];function Lj(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}Mj.displayName="llvm";Mj.aliases=[];function Mj(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)}$j.displayName="log";$j.aliases=[];function $j(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:/[\[\].,]/}}Fj.displayName="lolcode";Fj.aliases=[];function Fj(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}|…|,|!/}}Bj.displayName="magma";Bj.aliases=[];function Bj(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:/[()[\]{}<>,;.:]/}}fI.displayName="mata";fI.aliases=[];function fI(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)}Uj.displayName="matlab";Uj.aliases=[];function Uj(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}|[.,;\[\](){}!]/}}zj.displayName="maxscript";zj.aliases=[];function zj(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)}jj.displayName="mel";jj.aliases=[];function jj(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}Hj.displayName="mermaid";Hj.aliases=[];function Hj(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:/[(){};]/}}Qj.displayName="metafont";Qj.aliases=[];function Qj(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}}}Wj.displayName="mizar";Wj.aliases=[];function Wj(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:/\(#|#\)|[,:;\[\](){}]/}}Vj.displayName="mongodb";Vj.aliases=[];function Vj(e){e.register(Xs),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}qj.displayName="monkey";qj.aliases=[];function qj(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:/[.,:;()\[\]]/}}Gj.displayName="moonscript";Gj.aliases=["moon"];function Gj(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}Yj.displayName="n1ql";Yj.aliases=[];function Yj(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:/[;[\](),.{}:]/}}Zj.displayName="nand2tetris-hdl";Zj.aliases=[];function Zj(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:/[{}[\];(),:]/}}Xj.displayName="naniscript";Xj.aliases=["nani"];function Xj(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}Jj.displayName="neon";Jj.aliases=[];function Jj(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:/[,:=[\]{}()-]/}}eH.displayName="nevod";eH.aliases=[];function eH(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\-.]+/}}tH.displayName="nginx";tH.aliases=[];function tH(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)}nH.displayName="nim";nH.aliases=[];function nH(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}rH.displayName="nix";rH.aliases=[];function rH(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}iH.displayName="nsis";iH.aliases=[];function iH(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}}}aH.displayName="ocaml";aH.aliases=[];function aH(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/}}sH.displayName="odin";sH.aliases=[];function sH(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)}oH.displayName="opencl";oH.aliases=[];function oH(e){e.register(Bd),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)}lH.displayName="openqasm";lH.aliases=["qasm"];function lH(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}uH.displayName="oz";uH.aliases=[];function uH(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:/[\[\](){}.:;?]/}}cH.displayName="parigp";cH.aliases=[];function cH(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:/[\[\]{}().,:;|]/}}dH.displayName="parser";dH.aliases=[];function dH(e){e.register(_s),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)}fH.displayName="pascal";fH.aliases=["objectpascal"];function fH(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}hH.displayName="pascaligo";hH.aliases=[];function hH(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}pH.displayName="psl";pH.aliases=[];function pH(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:/[(){}\[\];,]/}}mH.displayName="pcaxis";mH.aliases=["px"];function mH(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}gH.displayName="peoplecode";gH.aliases=["pcode"];function gH(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}bH.displayName="phpdoc";bH.aliases=[];function bH(e){e.register(NO),e.register(H1),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)}yH.displayName="php-extras";yH.aliases=[];function yH(e){e.register(H1),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:/::|\\/}}})}vH.displayName="plant-uml";vH.aliases=["plantuml"];function vH(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,d=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+d+/(?![-.<>?|\\\]ox])/.source),lookbehind:!0,greedy:!0,alias:"operator",inside:{expression:{pattern:/(\[)[^[\]]+(?=\])/,lookbehind:!0,inside:null},punctuation:/\[(?=$|\])|^\]/}},string:{pattern:/"[^"]*"/,greedy:!0},text:{pattern:/(\[[ \t]*[\r\n]+(?![\r\n]))[^\]]*(?=\])/,lookbehind:!0,greedy:!0,alias:"string"},keyword:[{pattern:/^([ \t]*)(?:abstract\s+class|end\s+(?:box|fork|group|merge|note|ref|split|title)|(?:fork|split)(?:\s+again)?|activate|actor|agent|alt|annotation|artifact|autoactivate|autonumber|backward|binary|boundary|box|break|caption|card|case|circle|class|clock|cloud|collections|component|concise|control|create|critical|database|deactivate|destroy|detach|diamond|else|elseif|end|end[hr]note|endif|endswitch|endwhile|entity|enum|file|folder|footer|frame|group|[hr]?note|header|hexagon|hide|if|interface|label|legend|loop|map|namespace|network|newpage|node|nwdiag|object|opt|package|page|par|participant|person|queue|rectangle|ref|remove|repeat|restore|return|robust|scale|set|show|skinparam|stack|start|state|stop|storage|switch|title|together|usecase|usecase\/|while)(?=\s|$)/m,lookbehind:!0,greedy:!0},/\b(?:elseif|equals|not|while)(?=\s*\()/,/\b(?:as|is|then)\b/],divider:{pattern:/^==.+==$/m,greedy:!0,alias:"important"},time:{pattern:/@(?:\d+(?:[:/]\d+){2}|[+-]?\d+|:[a-z]\w*(?:[+-]\d+)?)\b/i,greedy:!0,alias:"number"},color:{pattern:/#(?:[a-z_]+|[a-fA-F0-9]+)\b/,alias:"symbol"},variable:n,punctuation:/[:,;()[\]{}]|\.{3}/},t.languages["plant-uml"].arrow.inside.expression.inside=t.languages["plant-uml"],t.languages.plantuml=t.languages["plant-uml"]})(e)}OH.displayName="plsql";OH.aliases=[];function OH(e){e.register(AO),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"}})}SH.displayName="powerquery";SH.aliases=["mscript","pq"];function SH(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}EH.displayName="powershell";EH.aliases=[];function EH(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)}wH.displayName="processing";wH.aliases=[];function wH(e){e.register(Er),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"}})}TH.displayName="prolog";TH.aliases=[];function TH(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:/[(){}\[\],]/}}xH.displayName="promql";xH.aliases=[];function xH(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}kH.displayName="properties";kH.aliases=[];function kH(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:/[=:]/}}AH.displayName="protobuf";AH.aliases=[];function AH(e){e.register(Er),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)}_H.displayName="stylus";_H.aliases=[];function _H(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)}CH.displayName="twig";CH.aliases=[];function CH(e){e.register(Ks),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")})}RH.displayName="pug";RH.aliases=[];function RH(e){e.register(Xs),e.register(_s),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}IH.displayName="puppet";IH.aliases=[];function IH(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)}NH.displayName="pure";NH.aliases=[];function NH(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}DH.displayName="purebasic";DH.aliases=["pbfasm"];function DH(e){e.register(Er),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}PH.displayName="purescript";PH.aliases=["purs"];function PH(e){e.register(ux),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}LH.displayName="qsharp";LH.aliases=["qs"];function LH(e){e.register(Er),function(t){function n(g,O){return g.replace(/<<(\d+)>>/g,function(S,T){return"(?:"+O[+T]+")"})}function r(g,O,S){return RegExp(n(g,O),"")}function i(g,O){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),d={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:d},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:d}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var p=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[p]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[p]),lookbehind:!0,inside:{punctuation:/^\{|\}$/,expression:{pattern:/[\s\S]+/,alias:"language-qsharp",inside:t.languages.qsharp}}},string:/[\s\S]+/}}})}(e),e.languages.qs=e.languages.qsharp}MH.displayName="q";MH.aliases=[];function MH(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:/[(){}\[\];.]/}}$H.displayName="qml";$H.aliases=[];function $H(e){e.register(Xs),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}FH.displayName="qore";FH.aliases=[];function FH(e){e.register(Er),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/})}BH.displayName="racket";BH.aliases=["rkt"];function BH(e){e.register(cx),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}UH.displayName="cshtml";UH.aliases=["razor"];function UH(e){e.register(z1),e.register(_s),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var _=0;_/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,d=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+d+`)[^"'@]*)+["'])`,p=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+p+/\s*\/?>/.source,O=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+p+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,d){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,d)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var d=[],f=0;f0&&d[d.length-1].tagName===o(p.content[0].content[1])&&d.pop():p.content[p.content.length-1].content==="/>"||d.push({tagName:o(p.content[0].content[1]),openedBraces:0}):d.length>0&&p.type==="punctuation"&&p.content==="{"?d[d.length-1].openedBraces++:d.length>0&&d[d.length-1].openedBraces>0&&p.type==="punctuation"&&p.content==="}"?d[d.length-1].openedBraces--:g=!0),(g||typeof p=="string")&&d.length>0&&d[d.length-1].openedBraces===0){var O=o(p);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(O=o(u[f-1])+O,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",O,null,O)}p.content&&typeof p.content!="string"&&l(p.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}zH.displayName="tsx";zH.aliases=[];function zH(e){e.register(hI),e.register(_O),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)}jH.displayName="reason";jH.aliases=[];function jH(e){e.register(Er),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}HH.displayName="rego";HH.aliases=[];function HH(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:/[,;.\[\]{}()]/}}QH.displayName="renpy";QH.aliases=["rpy"];function QH(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}WH.displayName="rescript";WH.aliases=["res"];function WH(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}VH.displayName="rest";VH.aliases=[];function VH(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}}}qH.displayName="rip";qH.aliases=[];function qH(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`'",.:;#\/\\()<>\[\]{}]*/}}GH.displayName="roboconf";GH.aliases=[];function GH(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:/[{},.;:=]/}}YH.displayName="robotframework";YH.aliases=["robot"];function YH(e){(function(t){var n={pattern:/(^[ \t]*| {2}|\t)#.*/m,lookbehind:!0,greedy:!0},r={pattern:/((?:^|[^\\])(?:\\{2})*)[$@&%]\{(?:[^{}\r\n]|\{[^{}\r\n]*\})*\}/,lookbehind:!0,inside:{punctuation:/^[$@&%]\{|\}$/}};function i(l,u){var d={};d["section-header"]={pattern:/^ ?\*{3}.+?\*{3}/,alias:"keyword"};for(var f in u)d[f]=u[f];return d.tag={pattern:/([\r\n](?: {2}|\t)[ \t]*)\[[-\w]+\]/,lookbehind:!0,inside:{punctuation:/\[|\]/}},d.variable=r,d.comment=n,{pattern:RegExp(/^ ?\*{3}[ \t]*[ \t]*\*{3}(?:.|[\r\n](?!\*{3}))*/.source.replace(//g,function(){return l}),"im"),alias:"section",inside:d}}var a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}ZH.displayName="sas";ZH.aliases=[];function ZH(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},d=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},p={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},O={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},T={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},w=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return w}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return w}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":p["arg-value"],operator:p.operator,argument:p.arg,number:r,"numeric-constant":i,punctuation:d,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-groovy":{pattern:/(^proc\s+groovy(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,groovy:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-groovy",inside:t.languages.groovy},keyword:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-lua":{pattern:/(^proc\s+lua(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,lua:{pattern:RegExp(/(^[ \t]*submit(?:\s+(?:load|norun|parseonly))?)(?:|[^"'])+?(?=endsubmit;)/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,alias:"language-lua",inside:t.languages.lua},keyword:k,"submit-statement":T,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-cas":{pattern:/(^proc\s+cas(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|quit|data);|(?![\s\S]))/im,lookbehind:!0,inside:{comment:l,"statement-var":{pattern:/((?:^|\s)=?)saveresult\s[^;]+/im,lookbehind:!0,inside:{statement:{pattern:/^saveresult\s+\S+/i,inside:{keyword:/^(?:saveresult)/i}},rest:p}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:p},step:o,keyword:k,function:f,format:g,altformat:O,"global-statements":S,number:r,"numeric-constant":i,punctuation:d,string:u}},"proc-args":{pattern:RegExp(/(^proc\s+\w+\s+)(?!\s)(?:[^;"']|)+;/.source.replace(//g,function(){return n}),"im"),lookbehind:!0,inside:p},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation:d}},"macro-declaration":{pattern:/^%macro[^;]+(?=;)/im,inside:{keyword:/%macro/i}},"macro-end":{pattern:/^%mend[^;]+(?=;)/im,inside:{keyword:/%mend/i}},macro:{pattern:/%_\w+(?=\()/,alias:"keyword"},input:{pattern:/\binput\s[-\w\s/*.$&]+;/i,inside:{input:{alias:"keyword",pattern:/^input/i},comment:l,number:r,"numeric-constant":i}},"options-args":{pattern:/(^options)[-'"|/\\<>*+=:()\w\s]*(?=;)/im,lookbehind:!0,inside:p},"cas-actions":x,comment:l,function:f,format:g,altformat:O,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:d}})(e)}XH.displayName="shell-session";XH.aliases=["sh-session","shellsession"];function XH(e){e.register(nx),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)}KH.displayName="smali";KH.aliases=[];function KH(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:/[{}(),;:]/}}JH.displayName="smalltalk";JH.aliases=[];function JH(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:/[.;:?\[\](){}]/}}eQ.displayName="smarty";eQ.aliases=[];function eQ(e){e.register(Ks),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}tQ.displayName="sml";tQ.aliases=["smlnj"];function tQ(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)}nQ.displayName="solidity";nQ.aliases=["sol"];function nQ(e){e.register(Er),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}rQ.displayName="solution-file";rQ.aliases=["sln"];function rQ(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)}iQ.displayName="soy";iQ.aliases=[];function iQ(e){e.register(Ks),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}pI.displayName="turtle";pI.aliases=["trig"];function pI(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}aQ.displayName="sparql";aQ.aliases=["rq"];function aQ(e){e.register(pI),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}sQ.displayName="splunk-spl";sQ.aliases=[];function sQ(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:/[()[\],]/}}oQ.displayName="sqf";oQ.aliases=[];function oQ(e){e.register(Er),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"]}lQ.displayName="squirrel";lQ.aliases=[];function lQ(e){e.register(Er),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"}})}uQ.displayName="stan";uQ.aliases=[];function uQ(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)}cQ.displayName="stata";cQ.aliases=[];function cQ(e){e.register(j1),e.register(fI),e.register(ax),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}dQ.displayName="iecst";dQ.aliases=[];function dQ(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:/[()[\].,;]/}}fQ.displayName="supercollider";fQ.aliases=["sclang"];function fQ(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}hQ.displayName="systemd";hQ.aliases=[];function hQ(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)}dx.displayName="t4-templating";dx.aliases=[];function dx(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}pQ.displayName="t4-cs";pQ.aliases=["t4"];function pQ(e){e.register(z1),e.register(dx),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}mQ.displayName="t4-vb";mQ.aliases=[];function mQ(e){e.register(dx),e.register(ox),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}gQ.displayName="tap";gQ.aliases=[];function gQ(e){e.register(ix),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"}}}bQ.displayName="tcl";bQ.aliases=[];function bQ(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:/[{}()\[\]]/}}yQ.displayName="tt2";yQ.aliases=[];function yQ(e){e.register(Er),e.register(Ks),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)}vQ.displayName="toml";vQ.aliases=[];function vQ(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)}OQ.displayName="tremor";OQ.aliases=["trickle","troy"];function OQ(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)}SQ.displayName="typoscript";SQ.aliases=["tsconfig"];function SQ(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)}EQ.displayName="unrealscript";EQ.aliases=["uc","uscript"];function EQ(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}wQ.displayName="uorazor";wQ.aliases=[];function wQ(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:/[()\[\]{}:.,]/}}TQ.displayName="v";TQ.aliases=[];function TQ(e){e.register(Er),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)}xQ.displayName="vala";xQ.aliases=[];function xQ(e){e.register(Er),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]+$/}}})}kQ.displayName="velocity";kQ.aliases=[];function kQ(e){e.register(_s),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)}AQ.displayName="verilog";AQ.aliases=[];function AQ(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:/[[\];(),.:]/}}_Q.displayName="vhdl";_Q.aliases=[];function _Q(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:/[{}[\];(),.:]/}}CQ.displayName="vim";CQ.aliases=[];function CQ(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:/[{}[\](),;:]/}}RQ.displayName="visual-basic";RQ.aliases=["vb","vba"];function RQ(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"]}IQ.displayName="warpscript";IQ.aliases=[];function IQ(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/}}NQ.displayName="wasm";NQ.aliases=[];function NQ(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:/[()]/}}DQ.displayName="web-idl";DQ.aliases=["webidl"];function DQ(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}PQ.displayName="wgsl";PQ.aliases=[];function PQ(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:/[@(){}[\],;<>:.]/}}LQ.displayName="wiki";LQ.aliases=[];function LQ(e){e.register(_s),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}}}})}MQ.displayName="wolfram";MQ.aliases=["mathematica","nb","wl"];function MQ(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}$Q.displayName="wren";$Q.aliases=[];function $Q(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]+/}}}FQ.displayName="xeora";FQ.aliases=["xeoracube"];function FQ(e){e.register(_s),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)}BQ.displayName="xml-doc";BQ.aliases=[];function BQ(e){e.register(_s),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}UQ.displayName="xojo";UQ.aliases=[];function UQ(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:/[.,;:()]/}}zQ.displayName="xquery";zQ.aliases=[];function zQ(e){e.register(_s),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}jQ.displayName="yang";jQ.aliases=[];function jQ(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:/[{};:]/}}HQ.displayName="zig";HQ.aliases=[];function HQ(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}se.register(_s);se.register(wm);se.register(Er);se.register(eI);se.register(Xs);se.register(sU);se.register(oU);se.register(lU);se.register(uU);se.register(cU);se.register(dU);se.register(fU);se.register(hU);se.register(AO);se.register(pU);se.register(mU);se.register(gU);se.register(bU);se.register(Bd);se.register(U1);se.register(ZR);se.register(yU);se.register(vU);se.register(nx);se.register(ix);se.register(iI);se.register(OU);se.register(SU);se.register(z1);se.register(EU);se.register(wU);se.register(TU);se.register(xU);se.register(kU);se.register(AU);se.register(_U);se.register(CU);se.register(sx);se.register(RU);se.register(IU);se.register(NU);se.register(DU);se.register(PU);se.register(LU);se.register(MU);se.register($U);se.register(FU);se.register(BU);se.register(UU);se.register(zU);se.register(jU);se.register(HU);se.register(QU);se.register(WU);se.register(VU);se.register(qU);se.register(GU);se.register(YU);se.register(ZU);se.register(XU);se.register(KU);se.register(JU);se.register(ez);se.register(Q1);se.register(tz);se.register(nz);se.register(rz);se.register(iz);se.register(az);se.register(sz);se.register(oz);se.register(lz);se.register(uz);se.register(cz);se.register(XR);se.register(Ks);se.register(dz);se.register(fz);se.register(hz);se.register(pz);se.register(mz);se.register(gz);se.register(bz);se.register(yz);se.register(vz);se.register(Oz);se.register(rx);se.register(Sz);se.register(Ez);se.register(wz);se.register(Tz);se.register(xz);se.register(kz);se.register(Az);se.register(_z);se.register(Cz);se.register(Rz);se.register(Iz);se.register(Nz);se.register(Dz);se.register(Pz);se.register(Lz);se.register(Mz);se.register($z);se.register(Fz);se.register(Bz);se.register(Uz);se.register(zz);se.register(jz);se.register(KR);se.register(Hz);se.register(Qz);se.register(Wz);se.register(Vz);se.register(nI);se.register(cI);se.register(qz);se.register(Gz);se.register(Yz);se.register(ux);se.register(Zz);se.register(Xz);se.register(Kz);se.register(Jz);se.register(ej);se.register(tj);se.register(kO);se.register(nj);se.register(rj);se.register(ij);se.register(aj);se.register(sj);se.register(oj);se.register(lj);se.register(uj);se.register(JR);se.register(cj);se.register(dj);se.register(j1);se.register(H1);se.register(NO);se.register(fj);se.register(hj);se.register(pj);se.register(mj);se.register(gj);se.register(bj);se.register(yj);se.register(_O);se.register(vj);se.register(Oj);se.register(Sj);se.register(Ej);se.register(wj);se.register(Tj);se.register(xj);se.register(kj);se.register(Aj);se.register(tI);se.register(_j);se.register(Cj);se.register(Rj);se.register(Ij);se.register(cx);se.register(Nj);se.register(Dj);se.register(Pj);se.register(Lj);se.register(Mj);se.register($j);se.register(Fj);se.register(Bj);se.register(rI);se.register(fI);se.register(Uj);se.register(zj);se.register(jj);se.register(Hj);se.register(Qj);se.register(Wj);se.register(Vj);se.register(qj);se.register(Gj);se.register(Yj);se.register(Zj);se.register(Xj);se.register(Kj);se.register(Jj);se.register(eH);se.register(tH);se.register(nH);se.register(rH);se.register(iH);se.register(aI);se.register(aH);se.register(sH);se.register(oH);se.register(lH);se.register(uH);se.register(cH);se.register(dH);se.register(fH);se.register(hH);se.register(pH);se.register(mH);se.register(gH);se.register(sI);se.register(bH);se.register(yH);se.register(vH);se.register(OH);se.register(SH);se.register(EH);se.register(wH);se.register(TH);se.register(xH);se.register(kH);se.register(AH);se.register(_H);se.register(CH);se.register(RH);se.register(IH);se.register(NH);se.register(DH);se.register(PH);se.register(ax);se.register(LH);se.register(MH);se.register($H);se.register(FH);se.register(oI);se.register(BH);se.register(UH);se.register(hI);se.register(zH);se.register(jH);se.register(HH);se.register(QH);se.register(WH);se.register(VH);se.register(qH);se.register(GH);se.register(YH);se.register(lI);se.register(ZH);se.register(uI);se.register(XH);se.register(KH);se.register(JH);se.register(eQ);se.register(tQ);se.register(nQ);se.register(rQ);se.register(iQ);se.register(pI);se.register(aQ);se.register(sQ);se.register(oQ);se.register(lQ);se.register(uQ);se.register(cQ);se.register(dQ);se.register(fQ);se.register(dI);se.register(hQ);se.register(dx);se.register(pQ);se.register(ox);se.register(mQ);se.register(gQ);se.register(bQ);se.register(yQ);se.register(vQ);se.register(OQ);se.register(SQ);se.register(EQ);se.register(wQ);se.register(TQ);se.register(xQ);se.register(kQ);se.register(AQ);se.register(_Q);se.register(CQ);se.register(RQ);se.register(IQ);se.register(NQ);se.register(DQ);se.register(PQ);se.register(LQ);se.register(MQ);se.register($Q);se.register(FQ);se.register(BQ);se.register(UQ);se.register(zQ);se.register(jQ);se.register(HQ);function ZL(){ZL=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),kC(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var d=0;i[u[d]]===void 0&&d+1]+)>/g,function(l,u){var d=s[u];return"$"+(Array.isArray(d)?d.join("$"):d)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},ZL.apply(this,arguments)}function kC(e,t){return kC=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},kC(e,t)}function qJ(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError(`Invalid attempt to iterate non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var Gtt=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){vo(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,d,f=function(I){for(var N,D=qD(I.properties.className);!(N=D()).done;){var L=N.value;if(L.slice(0,9)==="language-")return L.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var p,g;g=(p=f)!=null&&p.includes("diff-")?f.split("-")[1]:f,u=e.highlight(Sy(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(I){if(!t.ignoreMissing||!/Unknown language/.test(I.message))throw I;u=r}else u=r;u.children=(d=1,function I(N){return N.reduce(function(D,L){if(L.type==="text"){var U=L.value,B=(U.match(/\n/g)||"").length;if(B===0)L.position={start:{line:d,column:1},end:{line:d,column:1}},D.push(L);else for(var W,V=U.split(` +`),re=qD(V.entries());!(W=re()).done;){var ee=W.value,q=ee[0],ne=ee[1];D.push({type:"text",value:q===V.length-1?ne:ne+` +`,position:{start:{line:d+q,column:1},end:{line:d+q,column:1}}})}return d+=B,D}if(Object.prototype.hasOwnProperty.call(L,"children")){var K=d;return L.children=I(L.children),D.push(L),L.position={start:{line:K,column:1},end:{line:d,column:1}},D}return D.push(L),D},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var O,S=function(I){var N=/{([\d,-]+)}/,D=I.split(",").map(function(B){return B.trim()}).join();if(N.test(D)){var L=N.exec(D)[1],U=htt(L);return function(B){return U.includes(B+1)}}return function(){return!1}}(l),T=function(I){var N=ZL(/showLineNumbers=(\d+)/i,{lines:1});if(N.test(I)){var D=N.exec(I);return Number(D.groups.lines)}return 1}(l),w=function(I){for(var N=new Array(I),D=0;D=L+1});U.children=B.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(W){return l.toLowerCase().includes(W)})||(U.properties.line=[(L+T).toString()],U.properties.className.push("line-number")),S(L)&&U.properties.className.push("highlight-line"),(f==="diff"||(I=f)!=null&&I.includes("diff-"))&&Sy(U).substring(0,1)==="-"?U.properties.className.push("deleted"):(f==="diff"||(N=f)!=null&&N.includes("diff-"))&&Sy(U).substring(0,1)==="+"&&U.properties.className.push("inserted")},_=qD(w.entries());!(O=_()).done;)k();w.length>0&&Sy(w[w.length-1]).trim()===""&&w.pop(),r.children=w}}}},Ytt=Gtt(se),S_={},XL={};function Ztt(e,t){for(var n=t,r=0;r","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),JL=fx(S0e,{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"]}}}),eM=fx(JL,{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"]}}}),int=fx(eM,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),JJ={css1:O0e,css2:S0e,css3:JL,"selectors-3":JL,"selectors-4":eM,latest:eM,progressive:int};function EE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function eee(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function wE(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var ant={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},snt={'"':!0,"'":!0},YD={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},ont=6,ZD="css-selector-parser parse error: ";function lnt(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:JJ[n];s.baseSyntax&&(s=fx(JJ[s.baseSyntax],s));var o=s.tag?[!0,!!tnt(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],d=!!s.ids,f=!!s.classNames,p=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(p&&!l)throw new Error("".concat(ZD,"Namespaces cannot be enabled while tags are disabled."));var O=!!r,S=s.combinators?GJ(s.combinators):S_,T=s.attributes?[!0,s.attributes.operators?GJ(s.attributes.operators):S_,s.attributes.caseSensitivityModifiers?Xtt(s.attributes.caseSensitivityModifiers):XL,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,S_,XL,!1],w=T[0],x=T[1],k=T[2],_=T[3],I=_||Object.keys(k).length>0,N=s.pseudoClasses?[!0,s.pseudoClasses.definitions?ZJ(s.pseudoClasses.definitions):i4,s.pseudoClasses.unknown==="accept"]:[!1,i4,!1],D=N[0],L=N[1],U=N[2],B=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?ZJ(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):i4,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,i4,!1],W=B[0],V=B[1],re=B[2],ee=B[3],q=B[4],ne="",K=ne.length,G=0,ie="",H=function(Te){return ie===Te},Re=function(){return H("*")||EE(ie)},Se=function(Te){G=Te,ie=ne.charAt(G)},Z=function(){G++,ie=ne.charAt(G)},ke=function(){var Te=ie;return G++,ie=ne.charAt(G),Te};function $e(Te){var ye=Math.min(K-1,G),xe=new Error("".concat(ZD).concat(Te," Pos: ").concat(ye,"."));throw xe.position=ye,xe.name="ParserError",xe}function ae(Te,ye){if(!Te)return $e(ye)}var Xe=function(){ae(G=K},Ye=function(Te){ae(G=2&&$e("Identifiers cannot start with two hyphens with strict mode on."),YD[ie]&&$e("Identifiers cannot start with hyphens followed by digits.");G0)return(t.commaSeparated?aU:iU)(e)}else return String(e)}const bnt=[];function ynt(e,t){return(t.properties.className||bnt).includes(e.name)}function vnt(e,t){return t.properties.id===e.name}function Ont(e,t){return e.name===t.tagName}function Snt(e,t){return function(n,r){let i=nee(n,"tag");const a=nee(r??"*","range"),s=[];let o=-1;for(;++o=iee&&e.charCodeAt(t)<=knt;)u=u*10+(e.charCodeAt(t)-iee),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?aee.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function see(e){return Cnt(Ant(e))}const oee={}.hasOwnProperty;function QQ(e,t){const n=t||{};function r(i,...a){let s=r.invalid;const o=r.handlers;if(i&&oee.call(i,e)){const l=String(i[e]);s=oee.call(o,l)?o[l]:r.unknown}if(s)return s.call(this,i,...a)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}const Rnt=see.default||see,Int=QQ("name",{handlers:{"any-link":Nnt,blank:Dnt,checked:Pnt,dir:Lnt,disabled:x0e,empty:Mnt,enabled:$nt,"first-child":Fnt,"first-of-type":Bnt,has:Unt,is:k0e,lang:jnt,"last-child":Hnt,"last-of-type":Qnt,not:Wnt,"nth-child":Vnt,"nth-last-child":qnt,"nth-last-of-type":Gnt,"nth-of-type":Ynt,"only-child":Znt,"only-of-type":Xnt,optional:Knt,"read-only":Jnt,"read-write":A0e,required:_0e,root:ert,scope:trt},invalid:znt,unknown:nrt});function Nnt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&_1(t,"href")}function Xf(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function Dnt(e,t){return!C0e(t,n);function n(r){return r.type==="element"||r.type==="text"&&!T0e(r)}}function Pnt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&_1(t,"checked")):t.tagName==="option"?_1(t,"selected"):!1}function Lnt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function x0e(e,t){return(t.tagName==="button"||t.tagName==="input"||t.tagName==="select"||t.tagName==="textarea"||t.tagName==="optgroup"||t.tagName==="option"||t.tagName==="menuitem"||t.tagName==="fieldset")&&_1(t,"disabled")}function Mnt(e,t){return!C0e(t,n);function n(r){return r.type==="element"||r.type==="text"}}function $nt(e,t){return!x0e(e,t)}function Fnt(e,t,n,r,i){return Xf(i,e),i.elementIndex===0}function Bnt(e,t,n,r,i){return Xf(i,e),i.typeIndex===0}function mI(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=Rnt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Unt(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return WQ(a,{type:"root",children:t.children}),a.results.length>0}function znt(){}function k0e(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return WQ(a,t),a.results[0]===t}function jnt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&Ent(i.language,Xw(e.argument.value)).length>0}function Hnt(e,t,n,r,i){return Xf(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function Qnt(e,t,n,r,i){return Xf(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function Wnt(e,t,n,r,i){return!k0e(e,t,n,r,i)}function Vnt(e,t,n,r,i){const a=mI(e);return Xf(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function qnt(e,t,n,r,i){const a=mI(e);return Xf(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function Gnt(e,t,n,r,i){const a=mI(e);return Xf(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function Ynt(e,t,n,r,i){const a=mI(e);return Xf(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function Znt(e,t,n,r,i){return Xf(i,e),i.elementCount===1}function Xnt(e,t,n,r,i){return Xf(i,e),i.typeCount===1}function Knt(e,t){return!_0e(e,t)}function Jnt(e,t,n,r,i){return!A0e(e,t,n,r,i)}function A0e(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!_1(t,"readOnly")&&!_1(t,"disabled"):!!i.editableOrEditingHost}function _0e(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&_1(t,"required")}function ert(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 trt(e,t,n,r,i){return i.scopeElements.includes(t)}function C0e(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";KD(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?KD(a,"descendant",o):o.combinator==="~"&&KD(a,"generalSibling",o)}return a}function E_(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:irt}function lee(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 R0e(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=pnt(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=srt(e,E_(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&art(e,s,n,a),o(),s}function ort(e,t,n){const r=lrt(e,t);return WQ(r,t||void 0),r.results}function lrt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:cnt(e),schema:V1,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const VQ=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=VQ(n.children))}),t),urt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=ort(t,r);i&&i.length>0&&vo(r,i,(a,s,o)=>{n(a,s,o)});return}vo(r,(i,a,s)=>{n(i,a,s)})}}},crt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),drt=(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]}},I0e=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?I0e(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},uee=({value:e=""})=>{const t=crt(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},cee=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},frt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{vo(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=drt(s.children,a);if(l){const u=uee(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=cee(o.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=I0e(s.children,a,"",n);if(o){const l=uee(o);Object.keys(l).length>0&&(i.properties=cee(i.properties,l,t))}}})}},N0e=-1,gI=0,_C=1,CC=2,qQ=3,GQ=4,YQ=5,ZQ=6,D0e=7,P0e=8,dee=typeof self=="object"?self:globalThis,hrt=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case gI:case N0e:return n(s,i);case _C:{const o=n([],i);for(const l of s)o.push(r(l));return o}case CC:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case qQ:return n(new Date(s),i);case GQ:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case YQ:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case ZQ:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case D0e:{const{name:o,message:l}=s;return n(new dee[o](l),i)}case P0e:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new dee[a](s),i)};return r},fee=e=>hrt(new Map,e)(0),Bb="",{toString:prt}={},{keys:mrt}=Object,TE=e=>{const t=typeof e;if(t!=="object"||!e)return[gI,t];const n=prt.call(e).slice(8,-1);switch(n){case"Array":return[_C,Bb];case"Object":return[CC,Bb];case"Date":return[qQ,Bb];case"RegExp":return[GQ,Bb];case"Map":return[YQ,Bb];case"Set":return[ZQ,Bb]}return n.includes("Array")?[_C,n]:n.includes("Error")?[D0e,n]:[CC,n]},a4=([e,t])=>e===gI&&(t==="function"||t==="symbol"),grt=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=TE(s);switch(o){case gI:{let d=s;switch(l){case"bigint":o=P0e,d=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);d=null;break;case"undefined":return i([N0e],s)}return i([o,d],s)}case _C:{if(l)return i([l,[...s]],s);const d=[],f=i([o,d],s);for(const p of s)d.push(a(p));return f}case CC:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const d=[],f=i([o,d],s);for(const p of mrt(s))(e||!a4(TE(s[p])))&&d.push([a(p),a(s[p])]);return f}case qQ:return i([o,s.toISOString()],s);case GQ:{const{source:d,flags:f}=s;return i([o,{source:d,flags:f}],s)}case YQ:{const d=[],f=i([o,d],s);for(const[p,g]of s)(e||!(a4(TE(p))||a4(TE(g))))&&d.push([a(p),a(g)]);return f}case ZQ:{const d=[],f=i([o,d],s);for(const p of s)(e||!a4(TE(p)))&&d.push(a(p));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},hee=(e,{json:t,lossy:n}={})=>{const r=[];return grt(!(t||n),!!t,new Map,r)(e),r},$f=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?fee(hee(e,t)):structuredClone(e):(e,t)=>fee(hee(e,t)),pee=/[#.]/g;function brt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&a<=t.length){let s=0;for(;;){let o=n[s];if(o===void 0){const l=gee(t,n[s-1]);o=l===-1?t.length+1:l+1,n[s]=o}if(o>a)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a};s++}}}function i(a){if(a&&typeof a.line=="number"&&typeof a.column=="number"&&!Number.isNaN(a.line)&&!Number.isNaN(a.column)){for(;n.length1?n[a.line-2]:0)+a.column-1;if(s=55296&&e<=57343}function zrt(e){return e>=56320&&e<=57343}function jrt(e,t){return(e-55296)*1024+9216+t}function j0e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function H0e(e){return e>=64976&&e<=65007||Urt.has(e)}var Ze;(function(e){e.controlCharacterInInputStream="control-character-in-input-stream",e.noncharacterInInputStream="noncharacter-in-input-stream",e.surrogateInInputStream="surrogate-in-input-stream",e.nonVoidHtmlElementStartTagWithTrailingSolidus="non-void-html-element-start-tag-with-trailing-solidus",e.endTagWithAttributes="end-tag-with-attributes",e.endTagWithTrailingSolidus="end-tag-with-trailing-solidus",e.unexpectedSolidusInTag="unexpected-solidus-in-tag",e.unexpectedNullCharacter="unexpected-null-character",e.unexpectedQuestionMarkInsteadOfTagName="unexpected-question-mark-instead-of-tag-name",e.invalidFirstCharacterOfTagName="invalid-first-character-of-tag-name",e.unexpectedEqualsSignBeforeAttributeName="unexpected-equals-sign-before-attribute-name",e.missingEndTagName="missing-end-tag-name",e.unexpectedCharacterInAttributeName="unexpected-character-in-attribute-name",e.unknownNamedCharacterReference="unknown-named-character-reference",e.missingSemicolonAfterCharacterReference="missing-semicolon-after-character-reference",e.unexpectedCharacterAfterDoctypeSystemIdentifier="unexpected-character-after-doctype-system-identifier",e.unexpectedCharacterInUnquotedAttributeValue="unexpected-character-in-unquoted-attribute-value",e.eofBeforeTagName="eof-before-tag-name",e.eofInTag="eof-in-tag",e.missingAttributeValue="missing-attribute-value",e.missingWhitespaceBetweenAttributes="missing-whitespace-between-attributes",e.missingWhitespaceAfterDoctypePublicKeyword="missing-whitespace-after-doctype-public-keyword",e.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers="missing-whitespace-between-doctype-public-and-system-identifiers",e.missingWhitespaceAfterDoctypeSystemKeyword="missing-whitespace-after-doctype-system-keyword",e.missingQuoteBeforeDoctypePublicIdentifier="missing-quote-before-doctype-public-identifier",e.missingQuoteBeforeDoctypeSystemIdentifier="missing-quote-before-doctype-system-identifier",e.missingDoctypePublicIdentifier="missing-doctype-public-identifier",e.missingDoctypeSystemIdentifier="missing-doctype-system-identifier",e.abruptDoctypePublicIdentifier="abrupt-doctype-public-identifier",e.abruptDoctypeSystemIdentifier="abrupt-doctype-system-identifier",e.cdataInHtmlContent="cdata-in-html-content",e.incorrectlyOpenedComment="incorrectly-opened-comment",e.eofInScriptHtmlCommentLikeText="eof-in-script-html-comment-like-text",e.eofInDoctype="eof-in-doctype",e.nestedComment="nested-comment",e.abruptClosingOfEmptyComment="abrupt-closing-of-empty-comment",e.eofInComment="eof-in-comment",e.incorrectlyClosedComment="incorrectly-closed-comment",e.eofInCdata="eof-in-cdata",e.absenceOfDigitsInNumericCharacterReference="absence-of-digits-in-numeric-character-reference",e.nullCharacterReference="null-character-reference",e.surrogateCharacterReference="surrogate-character-reference",e.characterReferenceOutsideUnicodeRange="character-reference-outside-unicode-range",e.controlCharacterReference="control-character-reference",e.noncharacterCharacterReference="noncharacter-character-reference",e.missingWhitespaceBeforeDoctypeName="missing-whitespace-before-doctype-name",e.missingDoctypeName="missing-doctype-name",e.invalidCharacterSequenceAfterDoctypeName="invalid-character-sequence-after-doctype-name",e.duplicateAttribute="duplicate-attribute",e.nonConformingDoctype="non-conforming-doctype",e.missingDoctype="missing-doctype",e.misplacedDoctype="misplaced-doctype",e.endTagWithoutMatchingOpenElement="end-tag-without-matching-open-element",e.closingOfElementWithOpenChildElements="closing-of-element-with-open-child-elements",e.disallowedContentInNoscriptInHead="disallowed-content-in-noscript-in-head",e.openElementsLeftAfterEof="open-elements-left-after-eof",e.abandonedHeadElementChild="abandoned-head-element-child",e.misplacedStartTagForHeadElement="misplaced-start-tag-for-head-element",e.nestedNoscriptInHead="nested-noscript-in-head",e.eofInElementThatCanContainOnlyText="eof-in-element-that-can-contain-only-text"})(Ze=Ze||(Ze={}));const Hrt=65536;class Qrt{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=Hrt,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(zrt(n))return this.pos++,this._addGap(),jrt(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,ce.EOF;return this._err(Ze.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ce.EOF;const r=this.html.charCodeAt(n);return r===ce.CARRIAGE_RETURN?ce.LINE_FEED:r}advance(){if(this.pos++,this.isEol&&(this.isEol=!1,this.line++,this.lineStartPos=this.pos),this.pos>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,ce.EOF;let t=this.html.charCodeAt(this.pos);return t===ce.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,ce.LINE_FEED):t===ce.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,z0e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===ce.LINE_FEED||t===ce.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){j0e(t)?this._err(Ze.controlCharacterInInputStream):H0e(t)&&this._err(Ze.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const i0=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))),Wrt=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var JD;const Vrt=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]]),qrt=(JD=String.fromCodePoint)!==null&&JD!==void 0?JD: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 Grt(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=Vrt.get(e))!==null&&t!==void 0?t:e}var ws;(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"})(ws||(ws={}));const Yrt=32;var kf;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(kf||(kf={}));function rM(e){return e>=ws.ZERO&&e<=ws.NINE}function Zrt(e){return e>=ws.UPPER_A&&e<=ws.UPPER_F||e>=ws.LOWER_A&&e<=ws.LOWER_F}function Xrt(e){return e>=ws.UPPER_A&&e<=ws.UPPER_Z||e>=ws.LOWER_A&&e<=ws.LOWER_Z||rM(e)}function Krt(e){return e===ws.EQUALS||Xrt(e)}var Os;(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"})(Os||(Os={}));var Cg;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Cg||(Cg={}));class Jrt{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Os.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Cg.Strict}startEntity(t){this.decodeMode=t,this.state=Os.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Os.EntityStart:return t.charCodeAt(n)===ws.NUM?(this.state=Os.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Os.NamedEntity,this.stateNamedEntity(t,n));case Os.NumericStart:return this.stateNumericStart(t,n);case Os.NumericDecimal:return this.stateNumericDecimal(t,n);case Os.NumericHex:return this.stateNumericHex(t,n);case Os.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|Yrt)===ws.LOWER_X?(this.state=Os.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Os.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===ws.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==Cg.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]&kf.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]&~kf.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Os.NamedEntity:return this.result!==0&&(this.decodeMode!==Cg.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Os.NumericDecimal:return this.emitNumericEntity(0,2);case Os.NumericHex:return this.emitNumericEntity(0,3);case Os.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Os.EntityStart:return 0}}}function W0e(e){let t="";const n=new Jrt(e,r=>t+=qrt(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function V0e(e,t,n,r){const i=(t&kf.BRANCH_LENGTH)>>7,a=t&kf.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(ur)o=l-1;else return e[l+i]}return-1}W0e(i0);W0e(Wrt);var ht;(function(e){e.HTML="http://www.w3.org/1999/xhtml",e.MATHML="http://www.w3.org/1998/Math/MathML",e.SVG="http://www.w3.org/2000/svg",e.XLINK="http://www.w3.org/1999/xlink",e.XML="http://www.w3.org/XML/1998/namespace",e.XMLNS="http://www.w3.org/2000/xmlns/"})(ht=ht||(ht={}));var Z0;(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"})(Z0=Z0||(Z0={}));var fu;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(fu=fu||(fu={}));var He;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(He=He||(He={}));var C;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SECTION=94]="SECTION",e[e.SELECT=95]="SELECT",e[e.SOURCE=96]="SOURCE",e[e.SMALL=97]="SMALL",e[e.SPAN=98]="SPAN",e[e.STRIKE=99]="STRIKE",e[e.STRONG=100]="STRONG",e[e.STYLE=101]="STYLE",e[e.SUB=102]="SUB",e[e.SUMMARY=103]="SUMMARY",e[e.SUP=104]="SUP",e[e.TABLE=105]="TABLE",e[e.TBODY=106]="TBODY",e[e.TEMPLATE=107]="TEMPLATE",e[e.TEXTAREA=108]="TEXTAREA",e[e.TFOOT=109]="TFOOT",e[e.TD=110]="TD",e[e.TH=111]="TH",e[e.THEAD=112]="THEAD",e[e.TITLE=113]="TITLE",e[e.TR=114]="TR",e[e.TRACK=115]="TRACK",e[e.TT=116]="TT",e[e.U=117]="U",e[e.UL=118]="UL",e[e.SVG=119]="SVG",e[e.VAR=120]="VAR",e[e.WBR=121]="WBR",e[e.XMP=122]="XMP"})(C=C||(C={}));const eit=new Map([[He.A,C.A],[He.ADDRESS,C.ADDRESS],[He.ANNOTATION_XML,C.ANNOTATION_XML],[He.APPLET,C.APPLET],[He.AREA,C.AREA],[He.ARTICLE,C.ARTICLE],[He.ASIDE,C.ASIDE],[He.B,C.B],[He.BASE,C.BASE],[He.BASEFONT,C.BASEFONT],[He.BGSOUND,C.BGSOUND],[He.BIG,C.BIG],[He.BLOCKQUOTE,C.BLOCKQUOTE],[He.BODY,C.BODY],[He.BR,C.BR],[He.BUTTON,C.BUTTON],[He.CAPTION,C.CAPTION],[He.CENTER,C.CENTER],[He.CODE,C.CODE],[He.COL,C.COL],[He.COLGROUP,C.COLGROUP],[He.DD,C.DD],[He.DESC,C.DESC],[He.DETAILS,C.DETAILS],[He.DIALOG,C.DIALOG],[He.DIR,C.DIR],[He.DIV,C.DIV],[He.DL,C.DL],[He.DT,C.DT],[He.EM,C.EM],[He.EMBED,C.EMBED],[He.FIELDSET,C.FIELDSET],[He.FIGCAPTION,C.FIGCAPTION],[He.FIGURE,C.FIGURE],[He.FONT,C.FONT],[He.FOOTER,C.FOOTER],[He.FOREIGN_OBJECT,C.FOREIGN_OBJECT],[He.FORM,C.FORM],[He.FRAME,C.FRAME],[He.FRAMESET,C.FRAMESET],[He.H1,C.H1],[He.H2,C.H2],[He.H3,C.H3],[He.H4,C.H4],[He.H5,C.H5],[He.H6,C.H6],[He.HEAD,C.HEAD],[He.HEADER,C.HEADER],[He.HGROUP,C.HGROUP],[He.HR,C.HR],[He.HTML,C.HTML],[He.I,C.I],[He.IMG,C.IMG],[He.IMAGE,C.IMAGE],[He.INPUT,C.INPUT],[He.IFRAME,C.IFRAME],[He.KEYGEN,C.KEYGEN],[He.LABEL,C.LABEL],[He.LI,C.LI],[He.LINK,C.LINK],[He.LISTING,C.LISTING],[He.MAIN,C.MAIN],[He.MALIGNMARK,C.MALIGNMARK],[He.MARQUEE,C.MARQUEE],[He.MATH,C.MATH],[He.MENU,C.MENU],[He.META,C.META],[He.MGLYPH,C.MGLYPH],[He.MI,C.MI],[He.MO,C.MO],[He.MN,C.MN],[He.MS,C.MS],[He.MTEXT,C.MTEXT],[He.NAV,C.NAV],[He.NOBR,C.NOBR],[He.NOFRAMES,C.NOFRAMES],[He.NOEMBED,C.NOEMBED],[He.NOSCRIPT,C.NOSCRIPT],[He.OBJECT,C.OBJECT],[He.OL,C.OL],[He.OPTGROUP,C.OPTGROUP],[He.OPTION,C.OPTION],[He.P,C.P],[He.PARAM,C.PARAM],[He.PLAINTEXT,C.PLAINTEXT],[He.PRE,C.PRE],[He.RB,C.RB],[He.RP,C.RP],[He.RT,C.RT],[He.RTC,C.RTC],[He.RUBY,C.RUBY],[He.S,C.S],[He.SCRIPT,C.SCRIPT],[He.SECTION,C.SECTION],[He.SELECT,C.SELECT],[He.SOURCE,C.SOURCE],[He.SMALL,C.SMALL],[He.SPAN,C.SPAN],[He.STRIKE,C.STRIKE],[He.STRONG,C.STRONG],[He.STYLE,C.STYLE],[He.SUB,C.SUB],[He.SUMMARY,C.SUMMARY],[He.SUP,C.SUP],[He.TABLE,C.TABLE],[He.TBODY,C.TBODY],[He.TEMPLATE,C.TEMPLATE],[He.TEXTAREA,C.TEXTAREA],[He.TFOOT,C.TFOOT],[He.TD,C.TD],[He.TH,C.TH],[He.THEAD,C.THEAD],[He.TITLE,C.TITLE],[He.TR,C.TR],[He.TRACK,C.TRACK],[He.TT,C.TT],[He.U,C.U],[He.UL,C.UL],[He.SVG,C.SVG],[He.VAR,C.VAR],[He.WBR,C.WBR],[He.XMP,C.XMP]]);function PO(e){var t;return(t=eit.get(e))!==null&&t!==void 0?t:C.UNKNOWN}const It=C,tit={[ht.HTML]:new Set([It.ADDRESS,It.APPLET,It.AREA,It.ARTICLE,It.ASIDE,It.BASE,It.BASEFONT,It.BGSOUND,It.BLOCKQUOTE,It.BODY,It.BR,It.BUTTON,It.CAPTION,It.CENTER,It.COL,It.COLGROUP,It.DD,It.DETAILS,It.DIR,It.DIV,It.DL,It.DT,It.EMBED,It.FIELDSET,It.FIGCAPTION,It.FIGURE,It.FOOTER,It.FORM,It.FRAME,It.FRAMESET,It.H1,It.H2,It.H3,It.H4,It.H5,It.H6,It.HEAD,It.HEADER,It.HGROUP,It.HR,It.HTML,It.IFRAME,It.IMG,It.INPUT,It.LI,It.LINK,It.LISTING,It.MAIN,It.MARQUEE,It.MENU,It.META,It.NAV,It.NOEMBED,It.NOFRAMES,It.NOSCRIPT,It.OBJECT,It.OL,It.P,It.PARAM,It.PLAINTEXT,It.PRE,It.SCRIPT,It.SECTION,It.SELECT,It.SOURCE,It.STYLE,It.SUMMARY,It.TABLE,It.TBODY,It.TD,It.TEMPLATE,It.TEXTAREA,It.TFOOT,It.TH,It.THEAD,It.TITLE,It.TR,It.TRACK,It.UL,It.WBR,It.XMP]),[ht.MATHML]:new Set([It.MI,It.MO,It.MN,It.MS,It.MTEXT,It.ANNOTATION_XML]),[ht.SVG]:new Set([It.TITLE,It.FOREIGN_OBJECT,It.DESC]),[ht.XLINK]:new Set,[ht.XML]:new Set,[ht.XMLNS]:new Set};function q0e(e){return e===It.H1||e===It.H2||e===It.H3||e===It.H4||e===It.H5||e===It.H6}He.STYLE,He.SCRIPT,He.XMP,He.IFRAME,He.NOEMBED,He.NOFRAMES,He.PLAINTEXT;const nit=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var pe;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(pe||(pe={}));const Da={DATA:pe.DATA,RCDATA:pe.RCDATA,RAWTEXT:pe.RAWTEXT,SCRIPT_DATA:pe.SCRIPT_DATA,PLAINTEXT:pe.PLAINTEXT,CDATA_SECTION:pe.CDATA_SECTION};function _2(e){return e>=ce.DIGIT_0&&e<=ce.DIGIT_9}function GE(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_Z}function rit(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_Z}function a0(e){return rit(e)||GE(e)}function iM(e){return a0(e)||_2(e)}function G0e(e){return e>=ce.LATIN_CAPITAL_A&&e<=ce.LATIN_CAPITAL_F}function Y0e(e){return e>=ce.LATIN_SMALL_A&&e<=ce.LATIN_SMALL_F}function iit(e){return _2(e)||G0e(e)||Y0e(e)}function s4(e){return e+32}function Z0e(e){return e===ce.SPACE||e===ce.LINE_FEED||e===ce.TABULATION||e===ce.FORM_FEED}function ait(e){return e===ce.EQUALS_SIGN||iM(e)}function yee(e){return Z0e(e)||e===ce.SOLIDUS||e===ce.GREATER_THAN_SIGN}class sit{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=pe.DATA,this.returnState=pe.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new Qrt(n),this.currentLocation=this.getCurrentLocation(-1)}_err(t){var n,r;(r=(n=this.handler).onParseError)===null||r===void 0||r.call(n,this.preprocessor.getError(t))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t==null||t())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r==null||r()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this._unconsume(this.consumedAfterSnapshot),this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_unconsume(t){this.consumedAfterSnapshot-=t,this.preprocessor.retreat(t)}_reconsumeInState(t,n){this.state=t,this._callState(n)}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n0&&this._err(Ze.endTagWithAttributes),t.selfClosing&&this._err(Ze.endTagWithTrailingSolidus),this.handler.onEndTag(t)),this.preprocessor.dropParsedChunk()}emitCurrentComment(t){this.prepareToken(t),this.handler.onComment(t),this.preprocessor.dropParsedChunk()}emitCurrentDoctype(t){this.prepareToken(t),this.handler.onDoctype(t),this.preprocessor.dropParsedChunk()}_emitCurrentCharacterToken(t){if(this.currentCharacterToken){switch(t&&this.currentCharacterToken.location&&(this.currentCharacterToken.location.endLine=t.startLine,this.currentCharacterToken.location.endCol=t.startCol,this.currentCharacterToken.location.endOffset=t.startOffset),this.currentCharacterToken.type){case cr.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case cr.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case cr.WHITESPACE_CHARACTER:{this.handler.onWhitespaceCharacter(this.currentCharacterToken);break}}this.currentCharacterToken=null}}_emitEOFToken(){const t=this.getCurrentLocation(0);t&&(t.endLine=t.startLine,t.endCol=t.startCol,t.endOffset=t.startOffset),this._emitCurrentCharacterToken(t),this.handler.onEof({type:cr.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type!==t)this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();else{this.currentCharacterToken.chars+=n;return}this._createCharacterToken(t,n)}_emitCodePoint(t){const n=Z0e(t)?cr.WHITESPACE_CHARACTER:t===ce.NULL?cr.NULL_CHARACTER:cr.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(cr.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=i0[0];a>=0&&(a=V0e(i0,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=i0[a];const o=s&kf.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==ce.SEMICOLON&&this._isCharacterReferenceInAttribute()&&ait(this.preprocessor.peek(1))?(n=[ce.AMPERSAND],a+=l):(n=l===0?[i0[a]&~kf.VALUE_LENGTH]:l===1?[i0[++a]]:[i0[++a],i0[++a]],r=0,i=t!==ce.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(Ze.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===pe.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case pe.DATA:{this._stateData(t);break}case pe.RCDATA:{this._stateRcdata(t);break}case pe.RAWTEXT:{this._stateRawtext(t);break}case pe.SCRIPT_DATA:{this._stateScriptData(t);break}case pe.PLAINTEXT:{this._statePlaintext(t);break}case pe.TAG_OPEN:{this._stateTagOpen(t);break}case pe.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case pe.TAG_NAME:{this._stateTagName(t);break}case pe.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case pe.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case pe.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case pe.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case pe.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case pe.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case pe.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case pe.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case pe.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case pe.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case pe.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case pe.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case pe.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case pe.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case pe.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case pe.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case pe.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case pe.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case pe.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case pe.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case pe.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case pe.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case pe.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case pe.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case pe.BOGUS_COMMENT:{this._stateBogusComment(t);break}case pe.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case pe.COMMENT_START:{this._stateCommentStart(t);break}case pe.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case pe.COMMENT:{this._stateComment(t);break}case pe.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case pe.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case pe.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case pe.COMMENT_END:{this._stateCommentEnd(t);break}case pe.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case pe.DOCTYPE:{this._stateDoctype(t);break}case pe.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case pe.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case pe.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case pe.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case pe.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case pe.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case pe.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case pe.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case pe.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case pe.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case pe.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case pe.CDATA_SECTION:{this._stateCdataSection(t);break}case pe.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case pe.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case pe.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case pe.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case pe.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case pe.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case pe.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case pe.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case pe.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.TAG_OPEN;break}case ce.AMPERSAND:{this.returnState=pe.DATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitCodePoint(t);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case ce.AMPERSAND:{this.returnState=pe.RCDATA,this.state=pe.CHARACTER_REFERENCE;break}case ce.LESS_THAN_SIGN:{this.state=pe.RCDATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.RAWTEXT_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case ce.LESS_THAN_SIGN:{this.state=pe.SCRIPT_DATA_LESS_THAN_SIGN;break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this._emitChars(Zi);break}case ce.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(a0(t))this._createStartTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.EXCLAMATION_MARK:{this.state=pe.MARKUP_DECLARATION_OPEN;break}case ce.SOLIDUS:{this.state=pe.END_TAG_OPEN;break}case ce.QUESTION_MARK:{this._err(Ze.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=pe.BOGUS_COMMENT,this._stateBogusComment(t);break}case ce.EOF:{this._err(Ze.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(Ze.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=pe.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(a0(t))this._createEndTagToken(),this.state=pe.TAG_NAME,this._stateTagName(t);else switch(t){case ce.GREATER_THAN_SIGN:{this._err(Ze.missingEndTagName),this.state=pe.DATA;break}case ce.EOF:{this._err(Ze.eofBeforeTagName),this._emitChars("");break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_ESCAPED,this._emitChars(Zi);break}case ce.EOF:{this._err(Ze.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===ce.SOLIDUS?this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:a0(t)?(this._emitChars("<"),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=pe.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){a0(t)?(this.state=pe.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case ce.NULL:{this._err(Ze.unexpectedNullCharacter),this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Zi);break}case ce.EOF:{this._err(Ze.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===ce.SOLIDUS?(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=pe.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(fl.SCRIPT,!1)&&yee(this.preprocessor.peek(fl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(Ze.characterReferenceOutsideUnicodeRange),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if(z0e(this.charRefCode))this._err(Ze.surrogateCharacterReference),this.charRefCode=ce.REPLACEMENT_CHARACTER;else if(H0e(this.charRefCode))this._err(Ze.noncharacterCharacterReference);else if(j0e(this.charRefCode)||this.charRefCode===ce.CARRIAGE_RETURN){this._err(Ze.controlCharacterReference);const n=nit.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const X0e=new Set([C.DD,C.DT,C.LI,C.OPTGROUP,C.OPTION,C.P,C.RB,C.RP,C.RT,C.RTC]),vee=new Set([...X0e,C.CAPTION,C.COLGROUP,C.TBODY,C.TD,C.TFOOT,C.TH,C.THEAD,C.TR]),o4=new Map([[C.APPLET,ht.HTML],[C.CAPTION,ht.HTML],[C.HTML,ht.HTML],[C.MARQUEE,ht.HTML],[C.OBJECT,ht.HTML],[C.TABLE,ht.HTML],[C.TD,ht.HTML],[C.TEMPLATE,ht.HTML],[C.TH,ht.HTML],[C.ANNOTATION_XML,ht.MATHML],[C.MI,ht.MATHML],[C.MN,ht.MATHML],[C.MO,ht.MATHML],[C.MS,ht.MATHML],[C.MTEXT,ht.MATHML],[C.DESC,ht.SVG],[C.FOREIGN_OBJECT,ht.SVG],[C.TITLE,ht.SVG]]),oit=[C.H1,C.H2,C.H3,C.H4,C.H5,C.H6],lit=[C.TR,C.TEMPLATE,C.HTML],uit=[C.TBODY,C.TFOOT,C.THEAD,C.TEMPLATE,C.HTML],cit=[C.TABLE,C.TEMPLATE,C.HTML],dit=[C.TD,C.TH];class fit{get currentTmplContentOrNode(){return this._isInTemplate()?this.treeAdapter.getTemplateContent(this.current):this.current}constructor(t,n,r){this.treeAdapter=n,this.handler=r,this.items=[],this.tagIDs=[],this.stackTop=-1,this.tmplCount=0,this.currentTagId=C.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===C.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===ht.HTML}_updateCurrentElement(){this.current=this.items[this.stackTop],this.currentTagId=this.tagIDs[this.stackTop]}push(t,n){this.stackTop++,this.items[this.stackTop]=t,this.current=t,this.tagIDs[this.stackTop]=n,this.currentTagId=n,this._isInTemplate()&&this.tmplCount++,this.handler.onItemPush(t,n,!0)}pop(){const t=this.current;this.tmplCount>0&&this._isInTemplate()&&this.tmplCount--,this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!0)}replace(t,n){const r=this._indexOf(t);this.items[r]=n,r===this.stackTop&&(this.current=n)}insertAfter(t,n,r){const i=this._indexOf(t)+1;this.items.splice(i,0,n),this.tagIDs.splice(i,0,r),this.stackTop++,i===this.stackTop&&this._updateCurrentElement(),this.handler.onItemPush(this.current,this.currentTagId,i===this.stackTop)}popUntilTagNamePopped(t){let n=this.stackTop+1;do n=this.tagIDs.lastIndexOf(t,n-1);while(n>0&&this.treeAdapter.getNamespaceURI(this.items[n])!==ht.HTML);this.shortenToLength(n<0?0:n)}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop=0;r--)if(t.includes(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(cit,ht.HTML)}clearBackToTableBodyContext(){this.clearBackTo(uit,ht.HTML)}clearBackToTableRowContext(){this.clearBackTo(lit,ht.HTML)}remove(t){const n=this._indexOf(t);n>=0&&(n===this.stackTop?this.pop():(this.items.splice(n,1),this.tagIDs.splice(n,1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(t,!1)))}tryPeekProperlyNestedBodyElement(){return this.stackTop>=1&&this.tagIDs[1]===C.BODY?this.items[1]:null}contains(t){return this._indexOf(t)>-1}getCommonAncestor(t){const n=this._indexOf(t)-1;return n>=0?this.items[n]:null}isRootHtmlElementCurrent(){return this.stackTop===0&&this.tagIDs[0]===C.HTML}hasInScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===ht.HTML)return!0;if(o4.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(q0e(n)&&r===ht.HTML)return!0;if(o4.get(n)===r)return!1}return!0}hasInListItemScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===ht.HTML)return!0;if((r===C.UL||r===C.OL)&&i===ht.HTML||o4.get(r)===i)return!1}return!0}hasInButtonScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n],i=this.treeAdapter.getNamespaceURI(this.items[n]);if(r===t&&i===ht.HTML)return!0;if(r===C.BUTTON&&i===ht.HTML||o4.get(r)===i)return!1}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===ht.HTML){if(r===t)return!0;if(r===C.TABLE||r===C.TEMPLATE||r===C.HTML)return!1}}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];if(this.treeAdapter.getNamespaceURI(this.items[t])===ht.HTML){if(n===C.TBODY||n===C.THEAD||n===C.TFOOT)return!0;if(n===C.TABLE||n===C.HTML)return!1}}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--){const r=this.tagIDs[n];if(this.treeAdapter.getNamespaceURI(this.items[n])===ht.HTML){if(r===t)return!0;if(r!==C.OPTION&&r!==C.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;X0e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;vee.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&vee.has(this.currentTagId);)this.pop()}}const e7=3;var pd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(pd=pd||(pd={}));const Oee={type:pd.Marker};class hit{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=e7&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(Oee)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:pd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:pd.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n>=0&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Oee);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===pd.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===pd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===pd.Element&&n.element===t)}}function See(e){return{nodeName:"#text",value:e,parentNode:null}}const Zb={createDocument(){return{nodeName:"#document",mode:fu.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Zb.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Zb.isTextNode(n)){n.value+=t;return}}Zb.appendChild(e,See(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Zb.isTextNode(r)?r.value+=t:Zb.insertBefore(e,See(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function vit(e){return e.name===K0e&&e.publicId===null&&(e.systemId===null||e.systemId===pit)}function Oit(e){if(e.name!==K0e)return fu.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===mit)return fu.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),bit.has(n))return fu.QUIRKS;let r=t===null?git:J0e;if(Eee(n,r))return fu.QUIRKS;if(r=t===null?eme:yit,Eee(n,r))return fu.LIMITED_QUIRKS}return fu.NO_QUIRKS}const wee={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},Sit="definitionurl",Eit="definitionURL",wit=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])),Tit=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:ht.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:ht.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:ht.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:ht.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:ht.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:ht.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:ht.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:ht.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:ht.XML}],["xml:space",{prefix:"xml",name:"space",namespace:ht.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:ht.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:ht.XMLNS}]]),xit=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])),kit=new Set([C.B,C.BIG,C.BLOCKQUOTE,C.BODY,C.BR,C.CENTER,C.CODE,C.DD,C.DIV,C.DL,C.DT,C.EM,C.EMBED,C.H1,C.H2,C.H3,C.H4,C.H5,C.H6,C.HEAD,C.HR,C.I,C.IMG,C.LI,C.LISTING,C.MENU,C.META,C.NOBR,C.OL,C.P,C.PRE,C.RUBY,C.S,C.SMALL,C.SPAN,C.STRONG,C.STRIKE,C.SUB,C.SUP,C.TABLE,C.TT,C.U,C.UL,C.VAR]);function Ait(e){const t=e.tagID;return t===C.FONT&&e.attrs.some(({name:r})=>r===Z0.COLOR||r===Z0.SIZE||r===Z0.FACE)||kit.has(t)}function tme(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===ht.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,ht.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ee.TEXT}switchToPlaintextParsing(){this.insertionMode=Ee.TEXT,this.originalInsertionMode=Ee.IN_BODY,this.tokenizer.state=Da.PLAINTEXT}_getAdjustedCurrentElement(){return this.openElements.stackTop===0&&this.fragmentContext?this.fragmentContext:this.openElements.current}_findFormInFragmentContext(){let t=this.fragmentContext;for(;t;){if(this.treeAdapter.getTagName(t)===He.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==ht.HTML))switch(this.fragmentContextID){case C.TITLE:case C.TEXTAREA:{this.tokenizer.state=Da.RCDATA;break}case C.STYLE:case C.XMP:case C.IFRAME:case C.NOEMBED:case C.NOFRAMES:case C.NOSCRIPT:{this.tokenizer.state=Da.RAWTEXT;break}case C.SCRIPT:{this.tokenizer.state=Da.SCRIPT_DATA;break}case C.PLAINTEXT:{this.tokenizer.state=Da.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,ht.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,ht.HTML,t.attrs),r=this.treeAdapter.createDocumentFragment();this.treeAdapter.setTemplateContent(n,r),this._attachElementToTree(n,t.location),this.openElements.push(n,t.tagID),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,null)}_insertFakeRootElement(){const t=this.treeAdapter.createElement(He.HTML,ht.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,C.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:d}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:d})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===cr.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===C.SVG&&this.treeAdapter.getTagName(n)===He.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===ht.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===C.MGLYPH||t.tagID===C.MALIGNMARK)&&!this._isIntegrationPoint(r,n,ht.HTML)}_processToken(t){switch(t.type){case cr.CHARACTER:{this.onCharacter(t);break}case cr.NULL_CHARACTER:{this.onNullCharacter(t);break}case cr.COMMENT:{this.onComment(t);break}case cr.DOCTYPE:{this.onDoctype(t);break}case cr.START_TAG:{this._processStartTag(t);break}case cr.END_TAG:{this.onEndTag(t);break}case cr.EOF:{this.onEof(t);break}case cr.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return Iit(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===pd.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ee.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(C.P),this.openElements.popUntilTagNamePopped(C.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case C.TR:{this.insertionMode=Ee.IN_ROW;return}case C.TBODY:case C.THEAD:case C.TFOOT:{this.insertionMode=Ee.IN_TABLE_BODY;return}case C.CAPTION:{this.insertionMode=Ee.IN_CAPTION;return}case C.COLGROUP:{this.insertionMode=Ee.IN_COLUMN_GROUP;return}case C.TABLE:{this.insertionMode=Ee.IN_TABLE;return}case C.BODY:{this.insertionMode=Ee.IN_BODY;return}case C.FRAMESET:{this.insertionMode=Ee.IN_FRAMESET;return}case C.SELECT:{this._resetInsertionModeForSelect(t);return}case C.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case C.HTML:{this.insertionMode=this.headElement?Ee.AFTER_HEAD:Ee.BEFORE_HEAD;return}case C.TD:case C.TH:{if(t>0){this.insertionMode=Ee.IN_CELL;return}break}case C.HEAD:{if(t>0){this.insertionMode=Ee.IN_HEAD;return}break}}this.insertionMode=Ee.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===C.TEMPLATE)break;if(r===C.TABLE){this.insertionMode=Ee.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ee.IN_SELECT}_isElementCausesFosterParenting(t){return rme.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case C.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===ht.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case C.TABLE:{const r=this.treeAdapter.getParentNode(n);return r?{parent:r,beforeElement:n}:{parent:this.openElements.items[t-1],beforeElement:null}}}}return{parent:this.openElements.items[0],beforeElement:null}}_fosterParentElement(t){const n=this._findFosterParentingLocation();n.beforeElement?this.treeAdapter.insertBefore(n.parent,t,n.beforeElement):this.treeAdapter.appendChild(n.parent,t)}_isSpecialElement(t,n){const r=this.treeAdapter.getNamespaceURI(t);return tit[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){dst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{xE(this,t);break}case Ee.BEFORE_HTML:{C2(this,t);break}case Ee.BEFORE_HEAD:{R2(this,t);break}case Ee.IN_HEAD:{I2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{N2(this,t);break}case Ee.AFTER_HEAD:{D2(this,t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:{ame(this,t);break}case Ee.TEXT:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{t7(this,t);break}case Ee.IN_TABLE_TEXT:{dme(this,t);break}case Ee.IN_COLUMN_GROUP:{RC(this,t);break}case Ee.AFTER_BODY:{IC(this,t);break}case Ee.AFTER_AFTER_BODY:{T_(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){cst(this,t);return}switch(this.insertionMode){case Ee.INITIAL:{xE(this,t);break}case Ee.BEFORE_HTML:{C2(this,t);break}case Ee.BEFORE_HEAD:{R2(this,t);break}case Ee.IN_HEAD:{I2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{N2(this,t);break}case Ee.AFTER_HEAD:{D2(this,t);break}case Ee.TEXT:{this._insertCharacters(t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{t7(this,t);break}case Ee.IN_COLUMN_GROUP:{RC(this,t);break}case Ee.AFTER_BODY:{IC(this,t);break}case Ee.AFTER_AFTER_BODY:{T_(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){aM(this,t);return}switch(this.insertionMode){case Ee.INITIAL:case Ee.BEFORE_HTML:case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_TEMPLATE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{aM(this,t);break}case Ee.IN_TABLE_TEXT:{kE(this,t);break}case Ee.AFTER_BODY:{jit(this,t);break}case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{Hit(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ee.INITIAL:{Qit(this,t);break}case Ee.BEFORE_HEAD:case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:{this._err(t,Ze.misplacedDoctype);break}case Ee.IN_TABLE_TEXT:{kE(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,Ze.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?fst(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{xE(this,t);break}case Ee.BEFORE_HTML:{Wit(this,t);break}case Ee.BEFORE_HEAD:{qit(this,t);break}case Ee.IN_HEAD:{Ud(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{Zit(this,t);break}case Ee.AFTER_HEAD:{Kit(this,t);break}case Ee.IN_BODY:{Eo(this,t);break}case Ee.IN_TABLE:{Hv(this,t);break}case Ee.IN_TABLE_TEXT:{kE(this,t);break}case Ee.IN_CAPTION:{Gat(this,t);break}case Ee.IN_COLUMN_GROUP:{nW(this,t);break}case Ee.IN_TABLE_BODY:{vI(this,t);break}case Ee.IN_ROW:{OI(this,t);break}case Ee.IN_CELL:{Xat(this,t);break}case Ee.IN_SELECT:{pme(this,t);break}case Ee.IN_SELECT_IN_TABLE:{Jat(this,t);break}case Ee.IN_TEMPLATE:{tst(this,t);break}case Ee.AFTER_BODY:{rst(this,t);break}case Ee.IN_FRAMESET:{ist(this,t);break}case Ee.AFTER_FRAMESET:{sst(this,t);break}case Ee.AFTER_AFTER_BODY:{lst(this,t);break}case Ee.AFTER_AFTER_FRAMESET:{ust(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?hst(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ee.INITIAL:{xE(this,t);break}case Ee.BEFORE_HTML:{Vit(this,t);break}case Ee.BEFORE_HEAD:{Git(this,t);break}case Ee.IN_HEAD:{Yit(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{Xit(this,t);break}case Ee.AFTER_HEAD:{Jit(this,t);break}case Ee.IN_BODY:{yI(this,t);break}case Ee.TEXT:{Fat(this,t);break}case Ee.IN_TABLE:{Jw(this,t);break}case Ee.IN_TABLE_TEXT:{kE(this,t);break}case Ee.IN_CAPTION:{Yat(this,t);break}case Ee.IN_COLUMN_GROUP:{Zat(this,t);break}case Ee.IN_TABLE_BODY:{sM(this,t);break}case Ee.IN_ROW:{hme(this,t);break}case Ee.IN_CELL:{Kat(this,t);break}case Ee.IN_SELECT:{mme(this,t);break}case Ee.IN_SELECT_IN_TABLE:{est(this,t);break}case Ee.IN_TEMPLATE:{nst(this,t);break}case Ee.AFTER_BODY:{bme(this,t);break}case Ee.IN_FRAMESET:{ast(this,t);break}case Ee.AFTER_FRAMESET:{ost(this,t);break}case Ee.AFTER_AFTER_BODY:{T_(this,t);break}}}onEof(t){switch(this.insertionMode){case Ee.INITIAL:{xE(this,t);break}case Ee.BEFORE_HTML:{C2(this,t);break}case Ee.BEFORE_HEAD:{R2(this,t);break}case Ee.IN_HEAD:{I2(this,t);break}case Ee.IN_HEAD_NO_SCRIPT:{N2(this,t);break}case Ee.AFTER_HEAD:{D2(this,t);break}case Ee.IN_BODY:case Ee.IN_TABLE:case Ee.IN_CAPTION:case Ee.IN_COLUMN_GROUP:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:case Ee.IN_CELL:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:{ume(this,t);break}case Ee.TEXT:{Bat(this,t);break}case Ee.IN_TABLE_TEXT:{kE(this,t);break}case Ee.IN_TEMPLATE:{gme(this,t);break}case Ee.AFTER_BODY:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{tW(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===ce.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Ee.IN_HEAD:case Ee.IN_HEAD_NO_SCRIPT:case Ee.AFTER_HEAD:case Ee.TEXT:case Ee.IN_COLUMN_GROUP:case Ee.IN_SELECT:case Ee.IN_SELECT_IN_TABLE:case Ee.IN_FRAMESET:case Ee.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ee.IN_BODY:case Ee.IN_CAPTION:case Ee.IN_CELL:case Ee.IN_TEMPLATE:case Ee.AFTER_BODY:case Ee.AFTER_AFTER_BODY:case Ee.AFTER_AFTER_FRAMESET:{ime(this,t);break}case Ee.IN_TABLE:case Ee.IN_TABLE_BODY:case Ee.IN_ROW:{t7(this,t);break}case Ee.IN_TABLE_TEXT:{cme(this,t);break}}}};function Mit(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):lme(e,t),n}function $it(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const i=e.openElements.items[r];if(i===t.element)break;e._isSpecialElement(i,e.openElements.tagIDs[r])&&(n=i)}return n||(e.openElements.shortenToLength(r<0?0:r),e.activeFormattingElements.removeEntry(t)),n}function Fit(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=Pit;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Bit(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Bit(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 Uit(e,t,n){const r=e.treeAdapter.getTagName(t),i=PO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===C.TEMPLATE&&a===ht.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function zit(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function eW(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Qit(e,t){e._setDocumentType(t);const n=t.forceQuirks?fu.QUIRKS:Oit(t);vit(t)||e._err(t,Ze.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ee.BEFORE_HTML}function xE(e,t){e._err(t,Ze.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,fu.QUIRKS),e.insertionMode=Ee.BEFORE_HTML,e._processToken(t)}function Wit(e,t){t.tagID===C.HTML?(e._insertElement(t,ht.HTML),e.insertionMode=Ee.BEFORE_HEAD):C2(e,t)}function Vit(e,t){const n=t.tagID;(n===C.HTML||n===C.HEAD||n===C.BODY||n===C.BR)&&C2(e,t)}function C2(e,t){e._insertFakeRootElement(),e.insertionMode=Ee.BEFORE_HEAD,e._processToken(t)}function qit(e,t){switch(t.tagID){case C.HTML:{Eo(e,t);break}case C.HEAD:{e._insertElement(t,ht.HTML),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD;break}default:R2(e,t)}}function Git(e,t){const n=t.tagID;n===C.HEAD||n===C.BODY||n===C.HTML||n===C.BR?R2(e,t):e._err(t,Ze.endTagWithoutMatchingOpenElement)}function R2(e,t){e._insertFakeElement(He.HEAD,C.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function Ud(e,t){switch(t.tagID){case C.HTML:{Eo(e,t);break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case C.TITLE:{e._switchToTextParsing(t,Da.RCDATA);break}case C.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Da.RAWTEXT):(e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_HEAD_NO_SCRIPT);break}case C.NOFRAMES:case C.STYLE:{e._switchToTextParsing(t,Da.RAWTEXT);break}case C.SCRIPT:{e._switchToTextParsing(t,Da.SCRIPT_DATA);break}case C.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ee.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ee.IN_TEMPLATE);break}case C.HEAD:{e._err(t,Ze.misplacedStartTagForHeadElement);break}default:I2(e,t)}}function Yit(e,t){switch(t.tagID){case C.HEAD:{e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD;break}case C.BODY:case C.BR:case C.HTML:{I2(e,t);break}case C.TEMPLATE:{q1(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function q1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==C.TEMPLATE&&e._err(t,Ze.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,Ze.endTagWithoutMatchingOpenElement)}function I2(e,t){e.openElements.pop(),e.insertionMode=Ee.AFTER_HEAD,e._processToken(t)}function Zit(e,t){switch(t.tagID){case C.HTML:{Eo(e,t);break}case C.BASEFONT:case C.BGSOUND:case C.HEAD:case C.LINK:case C.META:case C.NOFRAMES:case C.STYLE:{Ud(e,t);break}case C.NOSCRIPT:{e._err(t,Ze.nestedNoscriptInHead);break}default:N2(e,t)}}function Xit(e,t){switch(t.tagID){case C.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ee.IN_HEAD;break}case C.BR:{N2(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function N2(e,t){const n=t.type===cr.EOF?Ze.openElementsLeftAfterEof:Ze.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ee.IN_HEAD,e._processToken(t)}function Kit(e,t){switch(t.tagID){case C.HTML:{Eo(e,t);break}case C.BODY:{e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_BODY;break}case C.FRAMESET:{e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_FRAMESET;break}case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{e._err(t,Ze.abandonedHeadElementChild),e.openElements.push(e.headElement,C.HEAD),Ud(e,t),e.openElements.remove(e.headElement);break}case C.HEAD:{e._err(t,Ze.misplacedStartTagForHeadElement);break}default:D2(e,t)}}function Jit(e,t){switch(t.tagID){case C.BODY:case C.HTML:case C.BR:{D2(e,t);break}case C.TEMPLATE:{q1(e,t);break}default:e._err(t,Ze.endTagWithoutMatchingOpenElement)}}function D2(e,t){e._insertFakeElement(He.BODY,C.BODY),e.insertionMode=Ee.IN_BODY,bI(e,t)}function bI(e,t){switch(t.type){case cr.CHARACTER:{ame(e,t);break}case cr.WHITESPACE_CHARACTER:{ime(e,t);break}case cr.COMMENT:{aM(e,t);break}case cr.START_TAG:{Eo(e,t);break}case cr.END_TAG:{yI(e,t);break}case cr.EOF:{ume(e,t);break}}}function ime(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function ame(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function eat(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function tat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function nat(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_FRAMESET)}function rat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function iat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),q0e(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,ht.HTML)}function aat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function sat(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),n||(e.formElement=e.openElements.current))}function oat(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const i=e.openElements.tagIDs[r];if(n===C.LI&&i===C.LI||(n===C.DD||n===C.DT)&&(i===C.DD||i===C.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==C.ADDRESS&&i!==C.DIV&&i!==C.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML)}function lat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.tokenizer.state=Da.PLAINTEXT}function uat(e,t){e.openElements.hasInScope(C.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(C.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1}function cat(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(He.A);n&&(eW(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function dat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function fat(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(C.NOBR)&&(eW(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,ht.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function hat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function pat(e,t){e.treeAdapter.getDocumentMode(e.document)!==fu.QUIRKS&&e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=Ee.IN_TABLE}function sme(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function ome(e){const t=Q0e(e,Z0.TYPE);return t!=null&&t.toLowerCase()===Nit}function mat(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,ht.HTML),ome(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function gat(e,t){e._appendElement(t,ht.HTML),t.ackSelfClosing=!0}function bat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._appendElement(t,ht.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function yat(e,t){t.tagName=He.IMG,t.tagID=C.IMG,sme(e,t)}function vat(e,t){e._insertElement(t,ht.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Da.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ee.TEXT}function Oat(e,t){e.openElements.hasInButtonScope(C.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Da.RAWTEXT)}function Sat(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Da.RAWTEXT)}function kee(e,t){e._switchToTextParsing(t,Da.RAWTEXT)}function Eat(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ee.IN_TABLE||e.insertionMode===Ee.IN_CAPTION||e.insertionMode===Ee.IN_TABLE_BODY||e.insertionMode===Ee.IN_ROW||e.insertionMode===Ee.IN_CELL?Ee.IN_SELECT_IN_TABLE:Ee.IN_SELECT}function wat(e,t){e.openElements.currentTagId===C.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function Tat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,ht.HTML)}function xat(e,t){e.openElements.hasInScope(C.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(C.RTC),e._insertElement(t,ht.HTML)}function kat(e,t){e._reconstructActiveFormattingElements(),tme(t),JQ(t),t.selfClosing?e._appendElement(t,ht.MATHML):e._insertElement(t,ht.MATHML),t.ackSelfClosing=!0}function Aat(e,t){e._reconstructActiveFormattingElements(),nme(t),JQ(t),t.selfClosing?e._appendElement(t,ht.SVG):e._insertElement(t,ht.SVG),t.ackSelfClosing=!0}function Aee(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,ht.HTML)}function Eo(e,t){switch(t.tagID){case C.I:case C.S:case C.B:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.SMALL:case C.STRIKE:case C.STRONG:{dat(e,t);break}case C.A:{cat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{iat(e,t);break}case C.P:case C.DL:case C.OL:case C.UL:case C.DIV:case C.DIR:case C.NAV:case C.MAIN:case C.MENU:case C.ASIDE:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.DETAILS:case C.ADDRESS:case C.ARTICLE:case C.SECTION:case C.SUMMARY:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{rat(e,t);break}case C.LI:case C.DD:case C.DT:{oat(e,t);break}case C.BR:case C.IMG:case C.WBR:case C.AREA:case C.EMBED:case C.KEYGEN:{sme(e,t);break}case C.HR:{bat(e,t);break}case C.RB:case C.RTC:{Tat(e,t);break}case C.RT:case C.RP:{xat(e,t);break}case C.PRE:case C.LISTING:{aat(e,t);break}case C.XMP:{Oat(e,t);break}case C.SVG:{Aat(e,t);break}case C.HTML:{eat(e,t);break}case C.BASE:case C.LINK:case C.META:case C.STYLE:case C.TITLE:case C.SCRIPT:case C.BGSOUND:case C.BASEFONT:case C.TEMPLATE:{Ud(e,t);break}case C.BODY:{tat(e,t);break}case C.FORM:{sat(e,t);break}case C.NOBR:{fat(e,t);break}case C.MATH:{kat(e,t);break}case C.TABLE:{pat(e,t);break}case C.INPUT:{mat(e,t);break}case C.PARAM:case C.TRACK:case C.SOURCE:{gat(e,t);break}case C.IMAGE:{yat(e,t);break}case C.BUTTON:{uat(e,t);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{hat(e,t);break}case C.IFRAME:{Sat(e,t);break}case C.SELECT:{Eat(e,t);break}case C.OPTION:case C.OPTGROUP:{wat(e,t);break}case C.NOEMBED:{kee(e,t);break}case C.FRAMESET:{nat(e,t);break}case C.TEXTAREA:{vat(e,t);break}case C.NOSCRIPT:{e.options.scriptingEnabled?kee(e,t):Aee(e,t);break}case C.PLAINTEXT:{lat(e,t);break}case C.COL:case C.TH:case C.TD:case C.TR:case C.HEAD:case C.FRAME:case C.TBODY:case C.TFOOT:case C.THEAD:case C.CAPTION:case C.COLGROUP:break;default:Aee(e,t)}}function _at(e,t){if(e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function Cat(e,t){e.openElements.hasInScope(C.BODY)&&(e.insertionMode=Ee.AFTER_BODY,bme(e,t))}function Rat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function Iat(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(C.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(C.FORM):n&&e.openElements.remove(n))}function Nat(e){e.openElements.hasInButtonScope(C.P)||e._insertFakeElement(He.P,C.P),e._closePElement()}function Dat(e){e.openElements.hasInListItemScope(C.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(C.LI),e.openElements.popUntilTagNamePopped(C.LI))}function Pat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function Lat(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function Mat(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function $at(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(He.BR,C.BR),e.openElements.pop(),e.framesetOk=!1}function lme(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==C.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function yI(e,t){switch(t.tagID){case C.A:case C.B:case C.I:case C.S:case C.U:case C.EM:case C.TT:case C.BIG:case C.CODE:case C.FONT:case C.NOBR:case C.SMALL:case C.STRIKE:case C.STRONG:{eW(e,t);break}case C.P:{Nat(e);break}case C.DL:case C.UL:case C.OL:case C.DIR:case C.DIV:case C.NAV:case C.PRE:case C.MAIN:case C.MENU:case C.ASIDE:case C.BUTTON:case C.CENTER:case C.FIGURE:case C.FOOTER:case C.HEADER:case C.HGROUP:case C.DIALOG:case C.ADDRESS:case C.ARTICLE:case C.DETAILS:case C.SECTION:case C.SUMMARY:case C.LISTING:case C.FIELDSET:case C.BLOCKQUOTE:case C.FIGCAPTION:{Rat(e,t);break}case C.LI:{Dat(e);break}case C.DD:case C.DT:{Pat(e,t);break}case C.H1:case C.H2:case C.H3:case C.H4:case C.H5:case C.H6:{Lat(e);break}case C.BR:{$at(e);break}case C.BODY:{_at(e,t);break}case C.HTML:{Cat(e,t);break}case C.FORM:{Iat(e);break}case C.APPLET:case C.OBJECT:case C.MARQUEE:{Mat(e,t);break}case C.TEMPLATE:{q1(e,t);break}default:lme(e,t)}}function ume(e,t){e.tmplInsertionModeStack.length>0?gme(e,t):tW(e,t)}function Fat(e,t){var n;t.tagID===C.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function Bat(e,t){e._err(t,Ze.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function t7(e,t){if(rme.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ee.IN_TABLE_TEXT,t.type){case cr.CHARACTER:{dme(e,t);break}case cr.WHITESPACE_CHARACTER:{cme(e,t);break}}else hx(e,t)}function Uat(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_CAPTION}function zat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_COLUMN_GROUP}function jat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.COLGROUP,C.COLGROUP),e.insertionMode=Ee.IN_COLUMN_GROUP,nW(e,t)}function Hat(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,ht.HTML),e.insertionMode=Ee.IN_TABLE_BODY}function Qat(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(He.TBODY,C.TBODY),e.insertionMode=Ee.IN_TABLE_BODY,vI(e,t)}function Wat(e,t){e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function Vat(e,t){ome(t)?e._appendElement(t,ht.HTML):hx(e,t),t.ackSelfClosing=!0}function qat(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,ht.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Hv(e,t){switch(t.tagID){case C.TD:case C.TH:case C.TR:{Qat(e,t);break}case C.STYLE:case C.SCRIPT:case C.TEMPLATE:{Ud(e,t);break}case C.COL:{jat(e,t);break}case C.FORM:{qat(e,t);break}case C.TABLE:{Wat(e,t);break}case C.TBODY:case C.TFOOT:case C.THEAD:{Hat(e,t);break}case C.INPUT:{Vat(e,t);break}case C.CAPTION:{Uat(e,t);break}case C.COLGROUP:{zat(e,t);break}default:hx(e,t)}}function Jw(e,t){switch(t.tagID){case C.TABLE:{e.openElements.hasInTableScope(C.TABLE)&&(e.openElements.popUntilTagNamePopped(C.TABLE),e._resetInsertionMode());break}case C.TEMPLATE:{q1(e,t);break}case C.BODY:case C.CAPTION:case C.COL:case C.COLGROUP:case C.HTML:case C.TBODY:case C.TD:case C.TFOOT:case C.TH:case C.THEAD:case C.TR:break;default:hx(e,t)}}function hx(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,bI(e,t),e.fosterParentingEnabled=n}function cme(e,t){e.pendingCharacterTokens.push(t)}function dme(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function kE(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===C.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===C.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===C.OPTGROUP&&e.openElements.pop();break}case C.OPTION:{e.openElements.currentTagId===C.OPTION&&e.openElements.pop();break}case C.SELECT:{e.openElements.hasInSelectScope(C.SELECT)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode());break}case C.TEMPLATE:{q1(e,t);break}}}function Jat(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e._processStartTag(t)):pme(e,t)}function est(e,t){const n=t.tagID;n===C.CAPTION||n===C.TABLE||n===C.TBODY||n===C.TFOOT||n===C.THEAD||n===C.TR||n===C.TD||n===C.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(C.SELECT),e._resetInsertionMode(),e.onEndTag(t)):mme(e,t)}function tst(e,t){switch(t.tagID){case C.BASE:case C.BASEFONT:case C.BGSOUND:case C.LINK:case C.META:case C.NOFRAMES:case C.SCRIPT:case C.STYLE:case C.TEMPLATE:case C.TITLE:{Ud(e,t);break}case C.CAPTION:case C.COLGROUP:case C.TBODY:case C.TFOOT:case C.THEAD:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE,e.insertionMode=Ee.IN_TABLE,Hv(e,t);break}case C.COL:{e.tmplInsertionModeStack[0]=Ee.IN_COLUMN_GROUP,e.insertionMode=Ee.IN_COLUMN_GROUP,nW(e,t);break}case C.TR:{e.tmplInsertionModeStack[0]=Ee.IN_TABLE_BODY,e.insertionMode=Ee.IN_TABLE_BODY,vI(e,t);break}case C.TD:case C.TH:{e.tmplInsertionModeStack[0]=Ee.IN_ROW,e.insertionMode=Ee.IN_ROW,OI(e,t);break}default:e.tmplInsertionModeStack[0]=Ee.IN_BODY,e.insertionMode=Ee.IN_BODY,Eo(e,t)}}function nst(e,t){t.tagID===C.TEMPLATE&&q1(e,t)}function gme(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(C.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):tW(e,t)}function rst(e,t){t.tagID===C.HTML?Eo(e,t):IC(e,t)}function bme(e,t){var n;if(t.tagID===C.HTML){if(e.fragmentContext||(e.insertionMode=Ee.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===C.HTML){e._setEndLocation(e.openElements.items[0],t);const r=e.openElements.items[1];r&&!(!((n=e.treeAdapter.getNodeSourceCodeLocation(r))===null||n===void 0)&&n.endTag)&&e._setEndLocation(r,t)}}else IC(e,t)}function IC(e,t){e.insertionMode=Ee.IN_BODY,bI(e,t)}function ist(e,t){switch(t.tagID){case C.HTML:{Eo(e,t);break}case C.FRAMESET:{e._insertElement(t,ht.HTML);break}case C.FRAME:{e._appendElement(t,ht.HTML),t.ackSelfClosing=!0;break}case C.NOFRAMES:{Ud(e,t);break}}}function ast(e,t){t.tagID===C.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==C.FRAMESET&&(e.insertionMode=Ee.AFTER_FRAMESET))}function sst(e,t){switch(t.tagID){case C.HTML:{Eo(e,t);break}case C.NOFRAMES:{Ud(e,t);break}}}function ost(e,t){t.tagID===C.HTML&&(e.insertionMode=Ee.AFTER_AFTER_FRAMESET)}function lst(e,t){t.tagID===C.HTML?Eo(e,t):T_(e,t)}function T_(e,t){e.insertionMode=Ee.IN_BODY,bI(e,t)}function ust(e,t){switch(t.tagID){case C.HTML:{Eo(e,t);break}case C.NOFRAMES:{Ud(e,t);break}}}function cst(e,t){t.chars=Zi,e._insertCharacters(t)}function dst(e,t){e._insertCharacters(t),e.framesetOk=!1}function yme(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==ht.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function fst(e,t){if(Ait(t))yme(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===ht.MATHML?tme(t):r===ht.SVG&&(_it(t),nme(t)),JQ(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function hst(e,t){if(t.tagID===C.P||t.tagID===C.BR){yme(e),e._endTagOutsideForeignContent(t);return}for(let n=e.openElements.stackTop;n>0;n--){const r=e.openElements.items[n];if(e.treeAdapter.getNamespaceURI(r)===ht.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}He.AREA,He.BASE,He.BASEFONT,He.BGSOUND,He.BR,He.COL,He.EMBED,He.FRAME,He.HR,He.IMG,He.INPUT,He.KEYGEN,He.LINK,He.META,He.PARAM,He.SOURCE,He.TRACK,He.WBR;const SI=vme("end"),Kf=vme("start");function vme(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 pst(e){const t=Kf(e),n=SI(e);if(t&&n)return{start:t,end:n}}const mst=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),_ee={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function Ome(e,t){const n=xst(e),r=QQ("type",{handlers:{root:gst,element:bst,text:yst,comment:Eme,doctype:vst,raw:Sst},unknown:Est}),i={parser:n?new xee(_ee):xee.getFragmentParser(void 0,_ee),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),LO(i,Kf());const a=n?i.parser.document:i.parser.getFragment(),s=krt(a,{file:i.options.file});return i.stitches&&vo(s,"comment",function(o,l,u){const d=o;if(d.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=d.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function Sme(e,t){let n=-1;if(e)for(;++n4&&(t.parser.tokenizer.state=0);const n={type:cr.CHARACTER,chars:e.value,location:px(e)};LO(t,Kf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function vst(e,t){const n={type:cr.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:px(e)};LO(t,Kf(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function Ost(e,t){t.stitches=!0;const n=kst(e);if("children"in e&&"children"in n){const r=Ome({type:"root",children:e.children},t.options);n.children=r.children}Eme({type:"comment",value:{stitch:n}},t)}function Eme(e,t){const n=e.value,r={type:cr.COMMENT,data:n,location:px(e)};LO(t,Kf(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function Sst(e,t){if(t.parser.tokenizer.preprocessor.html="",t.parser.tokenizer.preprocessor.pos=-1,t.parser.tokenizer.preprocessor.lastGapPos=-2,t.parser.tokenizer.preprocessor.gapStack=[],t.parser.tokenizer.preprocessor.skipNextNewLine=!1,t.parser.tokenizer.preprocessor.lastChunkWritten=!1,t.parser.tokenizer.preprocessor.endOfChunkHit=!1,t.parser.tokenizer.preprocessor.isEol=!1,wme(t,Kf(e)),t.parser.tokenizer.write(e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function Est(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))Ost(n,t);else{let r="";throw mst.has(n.type)&&(r=". It looks like you are using MDX nodes with `hast-util-raw` (or `rehype-raw`). If you use this because you are using remark or rehype plugins that inject `'html'` nodes, then please raise an issue with that plugin, as its a bad and slow idea. If you use this because you are using markdown syntax, then you have to configure this utility (or plugin) to pass through these nodes (see `passThrough` in docs), but you can also migrate to use the MDX syntax"),new Error("Cannot compile `"+n.type+"` node"+r)}}function LO(e,t){wme(e,t);const n=e.parser.tokenizer.currentCharacterToken;n&&n.location&&(n.location.endLine=e.parser.tokenizer.preprocessor.line,n.location.endCol=e.parser.tokenizer.preprocessor.col+1,n.location.endOffset=e.parser.tokenizer.preprocessor.offset+1,e.parser.currentToken=n,e.parser._processToken(e.parser.currentToken)),e.parser.tokenizer.paused=!1,e.parser.tokenizer.inLoop=!1,e.parser.tokenizer.active=!1,e.parser.tokenizer.returnState=Da.DATA,e.parser.tokenizer.charRefCode=-1,e.parser.tokenizer.consumedAfterSnapshot=-1,e.parser.tokenizer.currentLocation=null,e.parser.tokenizer.currentCharacterToken=null,e.parser.tokenizer.currentToken=null,e.parser.tokenizer.currentAttr={name:"",value:""}}function wme(e,t){if(t&&t.offset!==void 0){const n={startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:-1,endCol:-1,endOffset:-1};e.parser.tokenizer.preprocessor.lineStartPos=-t.column+1,e.parser.tokenizer.preprocessor.droppedBufferSize=t.offset,e.parser.tokenizer.preprocessor.line=t.line,e.parser.tokenizer.currentLocation=n}}function wst(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===Da.PLAINTEXT)return;LO(t,Kf(e));const r=t.parser.openElements.current;let i="namespaceURI"in r?r.namespaceURI:xf.html;i===xf.html&&n==="svg"&&(i=xf.svg);const a=Irt({...e,children:[]},{space:i===xf.svg?"svg":"html"}),s={type:cr.START_TAG,tagName:n,tagID:PO(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in a?a.attrs:[],location:px(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function Tst(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&Brt.includes(n)||t.parser.tokenizer.state===Da.PLAINTEXT)return;LO(t,SI(e));const r={type:cr.END_TAG,tagName:n,tagID:PO(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:px(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===Da.RCDATA||t.parser.tokenizer.state===Da.RAWTEXT||t.parser.tokenizer.state===Da.SCRIPT_DATA)&&(t.parser.tokenizer.state=Da.DATA)}function xst(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function px(e){const t=Kf(e)||{line:void 0,column:void 0,offset:void 0},n=SI(e)||{line:void 0,column:void 0,offset:void 0};return{startLine:t.line,startCol:t.column,startOffset:t.offset,endLine:n.line,endCol:n.column,endOffset:n.offset}}function kst(e){return"children"in e?$f({...e,children:[]}):$f(e)}function Tme(e){return function(t,n){return Ome(t,{...e,file:n})}}var Ast=Ise();const _st=Cu(Ast),Cst=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Rst=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Ist={};function Cee(e,t){return(Ist.jsx?Rst:Cst).test(e)}var xme={},Ree=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Nst=/\n/g,Dst=/^\s*/,Pst=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,Lst=/^:\s*/,Mst=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,$st=/^[;\s]*/,Fst=/^\s+|\s+$/g,Bst=` +`,Iee="/",Nee="*",Rg="",Ust="comment",zst="declaration",jst=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(O){var S=O.match(Nst);S&&(n+=S.length);var T=O.lastIndexOf(Bst);r=~T?O.length-T:r+O.length}function a(){var O={line:n,column:r};return function(S){return S.position=new s(O),u(),S}}function s(O){this.start=O,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(O){var S=new Error(t.source+":"+n+":"+r+": "+O);if(S.reason=O,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(O){var S=O.exec(e);if(S){var T=S[0];return i(T),e=e.slice(T.length),S}}function u(){l(Dst)}function d(O){var S;for(O=O||[];S=f();)S!==!1&&O.push(S);return O}function f(){var O=a();if(!(Iee!=e.charAt(0)||Nee!=e.charAt(1))){for(var S=2;Rg!=e.charAt(S)&&(Nee!=e.charAt(S)||Iee!=e.charAt(S+1));)++S;if(S+=2,Rg===e.charAt(S-1))return o("End of comment missing");var T=e.slice(2,S-2);return r+=2,i(T),e=e.slice(S),r+=2,O({type:Ust,comment:T})}}function p(){var O=a(),S=l(Pst);if(S){if(f(),!l(Lst))return o("property missing ':'");var T=l(Mst),w=O({type:zst,property:Dee(S[0].replace(Ree,Rg)),value:T?Dee(T[0].replace(Ree,Rg)):Rg});return l($st),w}}function g(){var O=[];d(O);for(var S;S=p();)S!==!1&&(O.push(S),d(O));return O}return u(),g()};function Dee(e){return e?e.replace(Fst,Rg):Rg}var Hst=mf&&mf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(xme,"__esModule",{value:!0});var Qst=Hst(jst);function Wst(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Qst.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var Pee=xme.default=Wst;const Vst=Pee.default||Pee;function P2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?Lee(e.position):"start"in e||"end"in e?Lee(e):"line"in e||"column"in e?oM(e):""}function oM(e){return Mee(e&&e.line)+":"+Mee(e&&e.column)}function Lee(e){return oM(e&&e.start)+"-"+oM(e&&e.end)}function Mee(e){return e&&typeof e=="number"?e:1}class wo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=P2(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}wo.prototype.file="";wo.prototype.name="";wo.prototype.reason="";wo.prototype.message="";wo.prototype.stack="";wo.prototype.column=void 0;wo.prototype.line=void 0;wo.prototype.ancestors=void 0;wo.prototype.cause=void 0;wo.prototype.fatal=void 0;wo.prototype.place=void 0;wo.prototype.ruleId=void 0;wo.prototype.source=void 0;const rW={}.hasOwnProperty,qst=new Map,Gst=/[A-Z]/g,Yst=/-([a-z])/g,Zst=new Set(["table","tbody","thead","tfoot","tr"]),Xst=new Set(["td","th"]),kme="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function Kst(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=sot(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=aot(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"?Tp:V1,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=Ame(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function Ame(e,t,n){if(t.type==="element")return Jst(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return eot(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return not(e,t,n);if(t.type==="mdxjsEsm")return tot(e,t);if(t.type==="root")return rot(e,t,n);if(t.type==="text")return iot(e,t)}function Jst(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=Tp,e.schema=i),e.ancestors.push(t);const a=Cme(e,t.tagName,!1),s=oot(e,t);let o=aW(e,t);return Zst.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!T0e(l):!0})),_me(e,s,a,t),iW(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function eot(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)}eT(e,t.position)}function tot(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);eT(e,t.position)}function not(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=Tp,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:Cme(e,t.name,!0),s=lot(e,t),o=aW(e,t);return _me(e,s,a,t),iW(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function rot(e,t,n){const r={};return iW(r,aW(e,t)),e.create(t,e.Fragment,r,n)}function iot(e,t){return t.value}function _me(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function iW(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function aot(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function sot(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=Kf(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function oot(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&rW.call(t.properties,i)){const a=uot(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&Xst.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function lot(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else eT(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else eT(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function aW(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:qst;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(Sc(e,e.length,0,t),e):t}const Fee={}.hasOwnProperty;function Ime(e){const t={};let n=-1;for(;++n13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function wd(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Wo=Tm(/[A-Za-z]/),mo=Tm(/[\dA-Za-z]/),vot=Tm(/[#-'*+\--9=?A-Z^-~]/);function NC(e){return e!==null&&(e<32||e===127)}const lM=Tm(/\d/),Oot=Tm(/[\dA-Fa-f]/),Sot=Tm(/[!-/:-@[-`{-~]/);function xn(e){return e!==null&&e<-2}function Si(e){return e!==null&&(e<0||e===32)}function vr(e){return e===-2||e===-1||e===32}const EI=Tm(new RegExp("\\p{P}|\\p{S}","u")),C1=Tm(/\s/);function Tm(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function MO(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function hr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return vr(l)?(e.enter(n),o(l)):t(l)}function o(l){return vr(l)&&a++s))return;const D=t.events.length;let L=D,U,B;for(;L--;)if(t.events[L][0]==="exit"&&t.events[L][1].type==="chunkFlow"){if(U){B=t.events[L][1].end;break}U=!0}for(w(r),N=D;Nk;){const I=n[_];t.containerState=I[1],I[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function kot(e,t,n){return hr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function DC(e){if(e===null||Si(e)||C1(e))return 1;if(EI(e))return 2}function wI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),p=Object.assign({},e[n][1].start);Uee(f,-l),Uee(p,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:p},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=lc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=lc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=lc(u,wI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=lc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(d=2,u=lc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):d=0,Sc(e,r-1,n-r+3,u),n=r+u.length-d-2;break}}for(n=-1;++n0&&vr(N)?hr(e,x,"linePrefix",a+1)(N):x(N)}function x(N){return N===null||xn(N)?e.check(zee,S,_)(N):(e.enter("codeFlowValue"),k(N))}function k(N){return N===null||xn(N)?(e.exit("codeFlowValue"),x(N)):(e.consume(N),k)}function _(N){return e.exit("codeFenced"),t(N)}function I(N,D,L){let U=0;return B;function B(q){return N.enter("lineEnding"),N.consume(q),N.exit("lineEnding"),W}function W(q){return N.enter("codeFencedFence"),vr(q)?hr(N,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(q):V(q)}function V(q){return q===o?(N.enter("codeFencedFenceSequence"),re(q)):L(q)}function re(q){return q===o?(U++,N.consume(q),re):U>=s?(N.exit("codeFencedFenceSequence"),vr(q)?hr(N,ee,"whitespace")(q):ee(q)):L(q)}function ee(q){return q===null||xn(q)?(N.exit("codeFencedFence"),D(q)):L(q)}}}function Fot(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const r7={name:"codeIndented",tokenize:Uot},Bot={tokenize:zot,partial:!0};function Uot(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),hr(e,a,"linePrefix",5)(u)}function a(u){const d=r.events[r.events.length-1];return d&&d[1].type==="linePrefix"&&d[2].sliceSerialize(d[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):xn(u)?e.attempt(Bot,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||xn(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function zot(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):xn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):hr(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):xn(s)?i(s):n(s)}}const jot={name:"codeText",tokenize:Wot,resolve:Hot,previous:Qot};function Hot(e){let t=e.length-4,n=3,r,i;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return tthis.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const i=n||0;this.setCursor(Math.trunc(t));const a=this.right.splice(this.right.length-i,Number.POSITIVE_INFINITY);return r&&AE(this.left,r),a.reverse()}pop(){return this.setCursor(Number.POSITIVE_INFINITY),this.left.pop()}push(t){this.setCursor(Number.POSITIVE_INFINITY),this.left.push(t)}pushMany(t){this.setCursor(Number.POSITIVE_INFINITY),AE(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),AE(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function $me(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let d=0;return f;function f(w){return w===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(w),e.exit(a),p):w===null||w===32||w===41||NC(w)?n(w):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(w))}function p(w){return w===62?(e.enter(a),e.consume(w),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(w))}function g(w){return w===62?(e.exit("chunkString"),e.exit(o),p(w)):w===null||w===60||xn(w)?n(w):(e.consume(w),w===92?O:g)}function O(w){return w===60||w===62||w===92?(e.consume(w),g):g(w)}function S(w){return!d&&(w===null||w===41||Si(w))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(w)):d999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):xn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),d):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||xn(g)||o++>999?(e.exit("chunkString"),d(g)):(e.consume(g),l||(l=!vr(g)),g===92?p:f)}function p(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function Bme(e,t,n,r,i,a){let s;return o;function o(p){return p===34||p===39||p===40?(e.enter(r),e.enter(i),e.consume(p),e.exit(i),s=p===40?41:p,l):n(p)}function l(p){return p===s?(e.enter(i),e.consume(p),e.exit(i),e.exit(r),t):(e.enter(a),u(p))}function u(p){return p===s?(e.exit(a),l(s)):p===null?n(p):xn(p)?(e.enter("lineEnding"),e.consume(p),e.exit("lineEnding"),hr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),d(p))}function d(p){return p===s||p===null||xn(p)?(e.exit("chunkString"),u(p)):(e.consume(p),p===92?f:d)}function f(p){return p===s||p===92?(e.consume(p),d):d(p)}}function L2(e,t){let n;return r;function r(i){return xn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):vr(i)?hr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const Jot={name:"definition",tokenize:tlt},elt={tokenize:nlt,partial:!0};function tlt(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Fme.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=wd(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return Si(g)?L2(e,u)(g):u(g)}function u(g){return $me(e,d,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function d(g){return e.attempt(elt,f,f)(g)}function f(g){return vr(g)?hr(e,p,"whitespace")(g):p(g)}function p(g){return g===null||xn(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function nlt(e,t,n){return r;function r(o){return Si(o)?L2(e,i)(o):n(o)}function i(o){return Bme(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return vr(o)?hr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||xn(o)?t(o):n(o)}}const rlt={name:"hardBreakEscape",tokenize:ilt};function ilt(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return xn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const alt={name:"headingAtx",tokenize:olt,resolve:slt};function slt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Sc(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function olt(e,t,n){let r=0;return i;function i(d){return e.enter("atxHeading"),a(d)}function a(d){return e.enter("atxHeadingSequence"),s(d)}function s(d){return d===35&&r++<6?(e.consume(d),s):d===null||Si(d)?(e.exit("atxHeadingSequence"),o(d)):n(d)}function o(d){return d===35?(e.enter("atxHeadingSequence"),l(d)):d===null||xn(d)?(e.exit("atxHeading"),t(d)):vr(d)?hr(e,o,"whitespace")(d):(e.enter("atxHeadingText"),u(d))}function l(d){return d===35?(e.consume(d),l):(e.exit("atxHeadingSequence"),o(d))}function u(d){return d===null||d===35||Si(d)?(e.exit("atxHeadingText"),o(d)):(e.consume(d),u)}}const llt=["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"],Hee=["pre","script","style","textarea"],ult={name:"htmlFlow",tokenize:hlt,resolveTo:flt,concrete:!0},clt={tokenize:mlt,partial:!0},dlt={tokenize:plt,partial:!0};function flt(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 hlt(e,t,n){const r=this;let i,a,s,o,l;return u;function u(Z){return d(Z)}function d(Z){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(Z),f}function f(Z){return Z===33?(e.consume(Z),p):Z===47?(e.consume(Z),a=!0,S):Z===63?(e.consume(Z),i=3,r.interrupt?t:H):Wo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function p(Z){return Z===45?(e.consume(Z),i=2,g):Z===91?(e.consume(Z),i=5,o=0,O):Wo(Z)?(e.consume(Z),i=4,r.interrupt?t:H):n(Z)}function g(Z){return Z===45?(e.consume(Z),r.interrupt?t:H):n(Z)}function O(Z){const ke="CDATA[";return Z===ke.charCodeAt(o++)?(e.consume(Z),o===ke.length?r.interrupt?t:V:O):n(Z)}function S(Z){return Wo(Z)?(e.consume(Z),s=String.fromCharCode(Z),T):n(Z)}function T(Z){if(Z===null||Z===47||Z===62||Si(Z)){const ke=Z===47,$e=s.toLowerCase();return!ke&&!a&&Hee.includes($e)?(i=1,r.interrupt?t(Z):V(Z)):llt.includes(s.toLowerCase())?(i=6,ke?(e.consume(Z),w):r.interrupt?t(Z):V(Z)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(Z):a?x(Z):k(Z))}return Z===45||mo(Z)?(e.consume(Z),s+=String.fromCharCode(Z),T):n(Z)}function w(Z){return Z===62?(e.consume(Z),r.interrupt?t:V):n(Z)}function x(Z){return vr(Z)?(e.consume(Z),x):B(Z)}function k(Z){return Z===47?(e.consume(Z),B):Z===58||Z===95||Wo(Z)?(e.consume(Z),_):vr(Z)?(e.consume(Z),k):B(Z)}function _(Z){return Z===45||Z===46||Z===58||Z===95||mo(Z)?(e.consume(Z),_):I(Z)}function I(Z){return Z===61?(e.consume(Z),N):vr(Z)?(e.consume(Z),I):k(Z)}function N(Z){return Z===null||Z===60||Z===61||Z===62||Z===96?n(Z):Z===34||Z===39?(e.consume(Z),l=Z,D):vr(Z)?(e.consume(Z),N):L(Z)}function D(Z){return Z===l?(e.consume(Z),l=null,U):Z===null||xn(Z)?n(Z):(e.consume(Z),D)}function L(Z){return Z===null||Z===34||Z===39||Z===47||Z===60||Z===61||Z===62||Z===96||Si(Z)?I(Z):(e.consume(Z),L)}function U(Z){return Z===47||Z===62||vr(Z)?k(Z):n(Z)}function B(Z){return Z===62?(e.consume(Z),W):n(Z)}function W(Z){return Z===null||xn(Z)?V(Z):vr(Z)?(e.consume(Z),W):n(Z)}function V(Z){return Z===45&&i===2?(e.consume(Z),ne):Z===60&&i===1?(e.consume(Z),K):Z===62&&i===4?(e.consume(Z),Re):Z===63&&i===3?(e.consume(Z),H):Z===93&&i===5?(e.consume(Z),ie):xn(Z)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(clt,Se,re)(Z)):Z===null||xn(Z)?(e.exit("htmlFlowData"),re(Z)):(e.consume(Z),V)}function re(Z){return e.check(dlt,ee,Se)(Z)}function ee(Z){return e.enter("lineEnding"),e.consume(Z),e.exit("lineEnding"),q}function q(Z){return Z===null||xn(Z)?re(Z):(e.enter("htmlFlowData"),V(Z))}function ne(Z){return Z===45?(e.consume(Z),H):V(Z)}function K(Z){return Z===47?(e.consume(Z),s="",G):V(Z)}function G(Z){if(Z===62){const ke=s.toLowerCase();return Hee.includes(ke)?(e.consume(Z),Re):V(Z)}return Wo(Z)&&s.length<8?(e.consume(Z),s+=String.fromCharCode(Z),G):V(Z)}function ie(Z){return Z===93?(e.consume(Z),H):V(Z)}function H(Z){return Z===62?(e.consume(Z),Re):Z===45&&i===2?(e.consume(Z),H):V(Z)}function Re(Z){return Z===null||xn(Z)?(e.exit("htmlFlowData"),Se(Z)):(e.consume(Z),Re)}function Se(Z){return e.exit("htmlFlow"),t(Z)}}function plt(e,t,n){const r=this;return i;function i(s){return xn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function mlt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(mx,t,n)}}const glt={name:"htmlText",tokenize:blt};function blt(e,t,n){const r=this;let i,a,s;return o;function o(H){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(H),l}function l(H){return H===33?(e.consume(H),u):H===47?(e.consume(H),I):H===63?(e.consume(H),k):Wo(H)?(e.consume(H),L):n(H)}function u(H){return H===45?(e.consume(H),d):H===91?(e.consume(H),a=0,O):Wo(H)?(e.consume(H),x):n(H)}function d(H){return H===45?(e.consume(H),g):n(H)}function f(H){return H===null?n(H):H===45?(e.consume(H),p):xn(H)?(s=f,K(H)):(e.consume(H),f)}function p(H){return H===45?(e.consume(H),g):f(H)}function g(H){return H===62?ne(H):H===45?p(H):f(H)}function O(H){const Re="CDATA[";return H===Re.charCodeAt(a++)?(e.consume(H),a===Re.length?S:O):n(H)}function S(H){return H===null?n(H):H===93?(e.consume(H),T):xn(H)?(s=S,K(H)):(e.consume(H),S)}function T(H){return H===93?(e.consume(H),w):S(H)}function w(H){return H===62?ne(H):H===93?(e.consume(H),w):S(H)}function x(H){return H===null||H===62?ne(H):xn(H)?(s=x,K(H)):(e.consume(H),x)}function k(H){return H===null?n(H):H===63?(e.consume(H),_):xn(H)?(s=k,K(H)):(e.consume(H),k)}function _(H){return H===62?ne(H):k(H)}function I(H){return Wo(H)?(e.consume(H),N):n(H)}function N(H){return H===45||mo(H)?(e.consume(H),N):D(H)}function D(H){return xn(H)?(s=D,K(H)):vr(H)?(e.consume(H),D):ne(H)}function L(H){return H===45||mo(H)?(e.consume(H),L):H===47||H===62||Si(H)?U(H):n(H)}function U(H){return H===47?(e.consume(H),ne):H===58||H===95||Wo(H)?(e.consume(H),B):xn(H)?(s=U,K(H)):vr(H)?(e.consume(H),U):ne(H)}function B(H){return H===45||H===46||H===58||H===95||mo(H)?(e.consume(H),B):W(H)}function W(H){return H===61?(e.consume(H),V):xn(H)?(s=W,K(H)):vr(H)?(e.consume(H),W):U(H)}function V(H){return H===null||H===60||H===61||H===62||H===96?n(H):H===34||H===39?(e.consume(H),i=H,re):xn(H)?(s=V,K(H)):vr(H)?(e.consume(H),V):(e.consume(H),ee)}function re(H){return H===i?(e.consume(H),i=void 0,q):H===null?n(H):xn(H)?(s=re,K(H)):(e.consume(H),re)}function ee(H){return H===null||H===34||H===39||H===60||H===61||H===96?n(H):H===47||H===62||Si(H)?U(H):(e.consume(H),ee)}function q(H){return H===47||H===62||Si(H)?U(H):n(H)}function ne(H){return H===62?(e.consume(H),e.exit("htmlTextData"),e.exit("htmlText"),t):n(H)}function K(H){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(H),e.exit("lineEnding"),G}function G(H){return vr(H)?hr(e,ie,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):ie(H)}function ie(H){return e.enter("htmlTextData"),s(H)}}const oW={name:"labelEnd",tokenize:wlt,resolveTo:Elt,resolveAll:Slt},ylt={tokenize:Tlt},vlt={tokenize:xlt},Olt={tokenize:klt};function Slt(e){let t=-1;for(;++t=3&&(u===null||xn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),vr(u)?hr(e,o,"whitespace")(u):o(u))}}const hl={name:"list",tokenize:Llt,continuation:{tokenize:Mlt},exit:Flt},Dlt={tokenize:Blt,partial:!0},Plt={tokenize:$lt,partial:!0};function Llt(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(g){const O=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(O==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:lM(g)){if(r.containerState.type||(r.containerState.type=O,e.enter(O,{_container:!0})),O==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(x_,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return lM(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(mx,r.interrupt?n:d,e.attempt(Dlt,p,f))}function d(g){return r.containerState.initialBlankLine=!0,a++,p(g)}function f(g){return vr(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),p):n(g)}function p(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function Mlt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(mx,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,hr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!vr(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Plt,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,hr(e,e.attempt(hl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function $lt(e,t,n){const r=this;return hr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Flt(e){e.exit(this.containerState.type)}function Blt(e,t,n){const r=this;return hr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!vr(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const Qee={name:"setextUnderline",tokenize:zlt,resolveTo:Ult};function Ult(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function zlt(e,t,n){const r=this;let i;return a;function a(u){let d=r.events.length,f;for(;d--;)if(r.events[d][1].type!=="lineEnding"&&r.events[d][1].type!=="linePrefix"&&r.events[d][1].type!=="content"){f=r.events[d][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),vr(u)?hr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||xn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const jlt={tokenize:Hlt};function Hlt(e){const t=this,n=e.attempt(mx,r,e.attempt(this.parser.constructs.flowInitial,i,hr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(Got,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Qlt={resolveAll:zme()},Wlt=Ume("string"),Vlt=Ume("text");function Ume(e){return{tokenize:t,resolveAll:zme(e==="text"?qlt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(d){return u(d)?a(d):o(d)}function o(d){if(d===null){n.consume(d);return}return n.enter("data"),n.consume(d),l}function l(d){return u(d)?(n.exit("data"),a(d)):(n.consume(d),l)}function u(d){if(d===null)return!0;const f=i[d];let p=-1;if(f)for(;++p-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function Zlt(e,t){let n=-1;const r=[];let i;for(;++n0){const Ct=ye.tokenStack[ye.tokenStack.length-1];(Ct[1]||Vee).call(ye,void 0,Ct[0])}for(Te.position={start:Jp(Fe.length>0?Fe[0][1].start:{line:1,column:1,offset:0}),end:Jp(Fe.length>0?Fe[Fe.length-2][1].end:{line:1,column:1,offset:0})},Ue=-1;++Ue1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function wut(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 Tut(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Qme(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function xut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qme(e,t);const i={src:MO(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function kut(e,t){const n={src:MO(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 Aut(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 _ut(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Qme(e,t);const i={href:MO(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Cut(e,t){const n={href:MO(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 Rut(e,t,n){const r=e.all(t),i=n?Iut(n):Wme(t),a={},s=[];if(typeof t.checked=="boolean"){const d=r[0];let f;d&&d.type==="element"&&d.tagName==="p"?f=d:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function Nut(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=Kf(t.children[1]),l=SI(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function $ut(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Yee(t.slice(i),i>0,!1)),a.join("")}function Yee(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===qee||a===Gee;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===qee||a===Gee;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Uut(e,t){const n={type:"text",value:But(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function zut(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const jut={blockquote:but,break:yut,code:vut,delete:Out,emphasis:Sut,footnoteReference:Eut,heading:wut,html:Tut,imageReference:xut,image:kut,inlineCode:Aut,linkReference:_ut,link:Cut,listItem:Rut,list:Nut,paragraph:Dut,root:Put,strong:Lut,table:Mut,tableCell:Fut,tableRow:$ut,text:Uut,thematicBreak:zut,toml:l4,yaml:l4,definition:l4,footnoteDefinition:l4};function l4(){}function Hut(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 Qut(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function Wut(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Hut,r=e.options.footnoteBackLabel||Qut,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&O.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),O.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+p+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const T=d[d.length-1];if(T&&T.type==="element"&&T.tagName==="p"){const x=T.children[T.children.length-1];x&&x.type==="text"?x.value+=" ":T.children.push({type:"text",value:" "}),T.children.push(...O)}else d.push(...O);const w={type:"element",tagName:"li",properties:{id:t+"fn-"+p},children:e.wrap(d,!0)};e.patch(u,w),o.push(w)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...$f(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` +`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` +`}]}}const cM={}.hasOwnProperty,Vut={};function qut(e,t){const n=t||Vut,r=new Map,i=new Map,a=new Map,s={...jut,...n.handlers},o={all:u,applyData:Yut,definitionById:r,footnoteById:i,footnoteCounts:a,footnoteOrder:[],handlers:s,one:l,options:n,patch:Gut,wrap:Xut};return vo(e,function(d){if(d.type==="definition"||d.type==="footnoteDefinition"){const f=d.type==="definition"?r:i,p=String(d.identifier).toUpperCase();f.has(p)||f.set(p,d)}}),o;function l(d,f){const p=d.type,g=o.handlers[p];if(cM.call(o.handlers,p)&&g)return g(o,d,f);if(o.options.passThrough&&o.options.passThrough.includes(p)){if("children"in d){const{children:S,...T}=d,w=$f(T);return w.children=o.all(d),w}return $f(d)}return(o.options.unknownHandler||Zut)(o,d,f)}function u(d){const f=[];if("children"in d){const p=d.children;let g=-1;for(;++g0&&n.push({type:"text",value:` +`}),n}function Zee(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Xee(e,t){const n=qut(e,t),r=n.one(e,void 0),i=Wut(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` +`},i),a}function Kut(e,t){return e&&"run"in e?async function(n,r){const i=Xee(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Xee(n,{file:r,...t||e})}}function Kee(e){if(e)throw e}var k_=Object.prototype.hasOwnProperty,Vme=Object.prototype.toString,Jee=Object.defineProperty,ete=Object.getOwnPropertyDescriptor,tte=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Vme.call(t)==="[object Array]"},nte=function(t){if(!t||Vme.call(t)!=="[object Object]")return!1;var n=k_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&k_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||k_.call(t,i)},rte=function(t,n){Jee&&n.name==="__proto__"?Jee(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},ite=function(t,n){if(n==="__proto__")if(k_.call(t,n)){if(ete)return ete(t,n).value}else return;return t[n]},Jut=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,d=!1;for(typeof o=="boolean"&&(d=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const d=u;if(o&&n)throw d;return i(d)}o||(l&&l.then&&typeof l.then=="function"?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const sf={basename:nct,dirname:rct,extname:ict,join:act,sep:"/"};function nct(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');gx(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function rct(e){if(gx(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 ict(e){gx(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function act(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function oct(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function gx(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const lct={cwd:uct};function uct(){return"/"}function fM(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function cct(e){if(typeof e=="string")e=new URL(e);else if(!fM(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 dct(e)}function dct(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[g,...O]=d;const S=r[p][1];dM(S)&&dM(g)&&(g=a7(!0,S,g)),r[p]=[u,g,...O]}}}}const mct=new lW().freeze();function u7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function c7(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function d7(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 ste(e){if(!dM(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function ote(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function u4(e){return gct(e)?e:new qme(e)}function gct(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function bct(e){return typeof e=="string"||yct(e)}function yct(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const vct="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",lte=[],ute={allowDangerousHtml:!0},Oct=/^(https?|ircs?|mailto|xmpp)$/i,Sct=[{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 Ect(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||lte,l=e.remarkPlugins||lte,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...ute}:ute,d=e.skipHtml,f=e.unwrapDisallowed,p=e.urlTransform||wct,g=mct().use(gut).use(l).use(Kut,u).use(o),O=new qme;typeof r=="string"&&(O.value=r);for(const x of Sct)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+vct+x.id,void 0);const S=g.parse(O);let T=g.runSync(S,O);return i&&(T={type:"element",tagName:"div",properties:{className:i},children:T.type==="root"?T.children:[T]}),vo(T,w),Kst(T,{Fragment:R.Fragment,components:a,ignoreInvalidStyle:!0,jsx:R.jsx,jsxs:R.jsxs,passKeys:!0,passNode:!0});function w(x,k,_){if(x.type==="raw"&&_&&typeof k=="number")return d?_.children.splice(k,1):_.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let I;for(I in n7)if(Object.hasOwn(n7,I)&&Object.hasOwn(x.properties,I)){const N=x.properties[I],D=n7[I];(D===null||D.includes(x.tagName))&&(x.properties[I]=p(String(N||""),I,x))}}if(x.type==="element"){let I=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!I&&n&&typeof k=="number"&&(I=!n(x,k,_)),I&&_&&typeof k=="number")return f&&x.children?_.children.splice(k,1,...x.children):_.children.splice(k,1),k}}}function wct(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||Oct.test(e.slice(0,t))?e:""}function cte(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 Tct(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function xct(e,t,n){const i=xO((n||{}).ignore||[]),a=kct(t);let s=-1;for(;++s0?{type:"text",value:N}:void 0),N===!1?p.lastIndex=_+1:(O!==_&&x.push({type:"text",value:u.value.slice(O,_)}),Array.isArray(N)?x.push(...N):N&&x.push(N),O=_+k[0].length,w=!0),!p.global)break;k=p.exec(u.value)}return w?(O?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=cte(e,"(");let a=cte(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Gme(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||C1(n)||EI(n))&&(!t||n!==47)}Yme.peek=Xct;function zct(){return{enter:{gfmFootnoteDefinition:Hct,gfmFootnoteDefinitionLabelString:Qct,gfmFootnoteCall:qct,gfmFootnoteCallString:Gct},exit:{gfmFootnoteDefinition:Vct,gfmFootnoteDefinitionLabelString:Wct,gfmFootnoteCall:Zct,gfmFootnoteCallString:Yct}}}function jct(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:Kct,footnoteReference:Yme}}}function Hct(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function Qct(){this.buffer()}function Wct(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function Vct(e){this.exit(e)}function qct(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function Gct(){this.buffer()}function Yct(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=wd(this.sliceSerialize(e)).toLowerCase()}function Zct(e){this.exit(e)}function Yme(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function Xct(){return"["}function Kct(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),Jct)),s(),a}function Jct(e,t,n){return t===0?e:(n?"":" ")+e}const edt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Zme.peek=adt;function tdt(){return{canContainEols:["delete"],enter:{strikethrough:rdt},exit:{strikethrough:idt}}}function ndt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:edt}],handlers:{delete:Zme}}}function rdt(e){this.enter({type:"delete",children:[]},e)}function idt(e){this.exit(e)}function Zme(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function adt(){return"~"}function sdt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||ldt,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++To[T])&&(o[T]=x)}O.push(w)}a[u]=O,s[u]=S}let d=-1;if(typeof n=="object"&&"length"in n)for(;++do[d]&&(o[d]=w),p[d]=w),f[d]=x}a.splice(1,0,f),s.splice(1,0,p),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),cdt);return i(),s}function cdt(e,t,n){return">"+(n?"":" ")+e}function ddt(e,t){return fte(e,t.inConstruct,!0)&&!fte(e,t.notInConstruct,!1)}function fte(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function fdt(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 hdt(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 pdt(e,t,n,r){const i=hdt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(fdt(e,n)){const f=n.enter("codeIndented"),p=n.indentLines(a,mdt);return f(),p}const o=n.createTracker(r),l=i.repeat(Math.max(Xme(a,i)+1,3)),u=n.enter("codeFenced");let d=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);d+=o.move(n.safe(e.lang,{before:d,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);d+=o.move(" "),d+=o.move(n.safe(e.meta,{before:d,after:` +`,encode:["`"],...o.current()})),f()}return d+=o.move(` +`),a&&(d+=o.move(a+` +`)),d+=o.move(l),u(),d}function mdt(e,t,n){return(n?"":" ")+e}function uW(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 gdt(e,t,n,r){const i=uW(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` +`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function bdt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Kme.peek=ydt;function Kme(e,t,n,r){const i=bdt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function ydt(e,t,n){return n.options.emphasis||"*"}function vdt(e,t){let n=!1;return vo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,xC}),!!((!e.depth||e.depth<3)&&sW(e)&&(t.options.setext||n))}function Odt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(vdt(e,n)){const d=n.enter("headingSetext"),f=n.enter("phrasing"),p=n.containerPhrasing(e,{...a.current(),before:` +`,after:` +`});return f(),d(),p+` +`+(i===1?"=":"-").repeat(p.length-(Math.max(p.lastIndexOf("\r"),p.lastIndexOf(` +`))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:` +`,...a.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}Jme.peek=Sdt;function Jme(e){return e.value||""}function Sdt(){return"<"}ege.peek=Edt;function ege(e,t,n,r){const i=uW(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function Edt(){return"!"}tge.peek=wdt;function tge(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function wdt(){return"!"}nge.peek=Tdt;function nge(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}ige.peek=xdt;function ige(e,t,n,r){const i=uW(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(rge(e,n)){const d=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=d,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function xdt(e,t,n){return rge(e,n)?"<":"["}age.peek=kdt;function age(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const d=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=d,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function kdt(){return"["}function cW(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 Adt(e){const t=cW(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 _dt(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 sge(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 Cdt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?_dt(n):cW(n);const o=e.ordered?s==="."?")":".":Adt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const d=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&d&&(!d.children||!d.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),sge(n)===s&&d){let f=-1;for(;++f-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),d);return l(),u;function d(f,p,g){return p?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function Ndt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Ddt=xO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function Pdt(e,t,n,r){return(e.children.some(function(s){return Ddt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Ldt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}oge.peek=Mdt;function oge(e,t,n,r){const i=Ldt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function Mdt(e,t,n){return n.options.strong||"*"}function $dt(e,t,n,r){return n.safe(e.value,r)}function Fdt(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 Bdt(e,t,n){const r=(sge(n)+(n.options.ruleSpaces?" ":"")).repeat(Fdt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const lge={blockquote:udt,break:hte,code:pdt,definition:gdt,emphasis:Kme,hardBreak:hte,heading:Odt,html:Jme,image:ege,imageReference:tge,inlineCode:nge,link:ige,linkReference:age,list:Cdt,listItem:Idt,paragraph:Ndt,root:Pdt,strong:oge,text:$dt,thematicBreak:Bdt};function Udt(){return{enter:{table:zdt,tableData:pte,tableHeader:pte,tableRow:Hdt},exit:{codeText:Qdt,table:jdt,tableData:m7,tableHeader:m7,tableRow:m7}}}function zdt(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 jdt(e){this.exit(e),this.data.inTable=void 0}function Hdt(e){this.enter({type:"tableRow",children:[]},e)}function m7(e){this.exit(e)}function pte(e){this.enter({type:"tableCell",children:[]},e)}function Qdt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,Wdt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function Wdt(e,t){return t==="|"?t:e}function Vdt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` +`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:p,table:s,tableCell:l,tableRow:o}};function s(g,O,S,T){return u(d(g,S,T),g.align)}function o(g,O,S,T){const w=f(g,S,T),x=u([w]);return x.slice(0,x.indexOf(` +`))}function l(g,O,S,T){const w=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...T,before:a,after:a});return x(),w(),k}function u(g,O){return sdt(g,{align:O,alignDelimiters:r,padding:n,stringLength:i})}function d(g,O,S){const T=g.children;let w=-1;const x=[],k=O.enter("table");for(;++w0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const cft={tokenize:yft,partial:!0};function dft(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:mft,continuation:{tokenize:gft},exit:bft}},text:{91:{name:"gfmFootnoteCall",tokenize:pft},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:fft,resolveTo:hft}}}}function fft(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=wd(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function hft(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function pft(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||Si(f))return n(f);if(f===93){e.exit("chunkString");const p=e.exit("gfmFootnoteCallString");return i.includes(wd(r.sliceSerialize(p)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return Si(f)||(s=!0),a++,e.consume(f),f===92?d:u}function d(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function mft(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(O){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(O){return O===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",d):n(O)}function d(O){if(s>999||O===93&&!o||O===null||O===91||Si(O))return n(O);if(O===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=wd(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(O),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),p}return Si(O)||(o=!0),s++,e.consume(O),O===92?f:d}function f(O){return O===91||O===92||O===93?(e.consume(O),s++,d):d(O)}function p(O){return O===58?(e.enter("definitionMarker"),e.consume(O),e.exit("definitionMarker"),i.includes(a)||i.push(a),hr(e,g,"gfmFootnoteDefinitionWhitespace")):n(O)}function g(O){return t(O)}}function gft(e,t,n){return e.check(mx,t,e.attempt(cft,t,n))}function bft(e){e.exit("gfmFootnoteDefinition")}function yft(e,t,n){const r=this;return hr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function vft(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(O):(s.consume(O),f++,g);if(f<2&&!n)return l(O);const T=s.exit("strikethroughSequenceTemporary"),w=DC(O);return T._open=!w||w===2&&!!S,T._close=!S||S===2&&!!w,o(O)}}}class Oft{constructor(){this.map=[]}add(t,n,r){Sft(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Sft(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const ee=r.events[W][1].type;if(ee==="lineEnding"||ee==="linePrefix")W--;else break}const V=W>-1?r.events[W][1].type:null,re=V==="tableHead"||V==="tableRow"?N:l;return re===N&&r.parser.lazy[r.now().line]?n(B):re(B)}function l(B){return e.enter("tableHead"),e.enter("tableRow"),u(B)}function u(B){return B===124||(s=!0,a+=1),d(B)}function d(B){return B===null?n(B):xn(B)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(B),e.exit("lineEnding"),g):n(B):vr(B)?hr(e,d,"whitespace")(B):(a+=1,s&&(s=!1,i+=1),B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),s=!0,d):(e.enter("data"),f(B)))}function f(B){return B===null||B===124||Si(B)?(e.exit("data"),d(B)):(e.consume(B),B===92?p:f)}function p(B){return B===92||B===124?(e.consume(B),f):f(B)}function g(B){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(B):(e.enter("tableDelimiterRow"),s=!1,vr(B)?hr(e,O,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(B):O(B))}function O(B){return B===45||B===58?T(B):B===124?(s=!0,e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),S):I(B)}function S(B){return vr(B)?hr(e,T,"whitespace")(B):T(B)}function T(B){return B===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),w):B===45?(a+=1,w(B)):B===null||xn(B)?_(B):I(B)}function w(B){return B===45?(e.enter("tableDelimiterFiller"),x(B)):I(B)}function x(B){return B===45?(e.consume(B),x):B===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(B),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(B))}function k(B){return vr(B)?hr(e,_,"whitespace")(B):_(B)}function _(B){return B===124?O(B):B===null||xn(B)?!s||i!==a?I(B):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(B)):I(B)}function I(B){return n(B)}function N(B){return e.enter("tableRow"),D(B)}function D(B){return B===124?(e.enter("tableCellDivider"),e.consume(B),e.exit("tableCellDivider"),D):B===null||xn(B)?(e.exit("tableRow"),t(B)):vr(B)?hr(e,D,"whitespace")(B):(e.enter("data"),L(B))}function L(B){return B===null||B===124||Si(B)?(e.exit("data"),D(B)):(e.consume(B),B===92?U:L)}function U(B){return B===92||B===124?(e.consume(B),L):L(B)}}function xft(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,d,f;const p=new Oft;for(;++nn[2]+1){const O=n[2]+1,S=n[3]-n[2]-1;e.add(O,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},Xb(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function gte(e,t,n,r,i){const a=[],s=Xb(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function Xb(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const kft={name:"tasklistCheck",tokenize:_ft};function Aft(){return{text:{91:kft}}}function _ft(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return Si(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return xn(l)?t(l):vr(l)?e.check({tokenize:Cft},t,n)(l):n(l)}}function Cft(e,t,n){return hr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function Rft(e){return Ime([tft(),dft(),vft(e),wft(),Aft()])}const Ift={};function Nft(e){const t=this,n=e||Ift,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(Rft(n)),a.push(Xdt()),s.push(Kdt(n))}const Dft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,Pft=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,Lft=({legacyTitle:e=!1}={})=>t=>{vo(t,"blockquote",(n,r,i)=>{let a="",s="",o=!0,l=n.children.map(u=>{if(o&&u.type==="paragraph"){const d=u.children[0],f=d.type==="text"?d.value:"",p=e?Pft:Dft,g=f.match(p);if(g&&(o=!1,a=g[1].toLocaleLowerCase(),s=e&&g[2]||a.toLocaleUpperCase(),f.includes(` +`)&&(u.children[0]={type:"text",value:f.replace(p,"").replace(/^\n+/,"")}),!f.includes(` +`))){const O=[];u.children.forEach((S,T)=>{T!=0&&(T==1&&S.type==="break"||O.push(S))}),u.children=[...O]}}return u});a&&(n.data={hName:"div",hProperties:{class:`markdown-alert markdown-alert-${a}`,dir:"auto"}},l.unshift({type:"paragraph",children:[Mft(a),{type:"text",value:s.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),n.children=[...l]})};function Mft(e){let t=$ft[e]??"";return{type:"emphasis",data:{hName:"svg",hProperties:{class:"octicon",viewBox:"0 0 16 16",width:"16",height:"16",ariaHidden:"true"}},children:[{type:"emphasis",data:{hName:"path",hProperties:{d:t}},children:[]}]}}const $ft={note:"M0 8a8 8 0 1 1 16 0A8 8 0 0 1 0 8Zm8-6.5a6.5 6.5 0 1 0 0 13 6.5 6.5 0 0 0 0-13ZM6.5 7.75A.75.75 0 0 1 7.25 7h1a.75.75 0 0 1 .75.75v2.75h.25a.75.75 0 0 1 0 1.5h-2a.75.75 0 0 1 0-1.5h.25v-2h-.25a.75.75 0 0 1-.75-.75ZM8 6a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z",tip:"M8 1.5c-2.363 0-4 1.69-4 3.75 0 .984.424 1.625.984 2.304l.214.253c.223.264.47.556.673.848.284.411.537.896.621 1.49a.75.75 0 0 1-1.484.211c-.04-.282-.163-.547-.37-.847a8.456 8.456 0 0 0-.542-.68c-.084-.1-.173-.205-.268-.32C3.201 7.75 2.5 6.766 2.5 5.25 2.5 2.31 4.863 0 8 0s5.5 2.31 5.5 5.25c0 1.516-.701 2.5-1.328 3.259-.095.115-.184.22-.268.319-.207.245-.383.453-.541.681-.208.3-.33.565-.37.847a.751.751 0 0 1-1.485-.212c.084-.593.337-1.078.621-1.489.203-.292.45-.584.673-.848.075-.088.147-.173.213-.253.561-.679.985-1.32.985-2.304 0-2.06-1.637-3.75-4-3.75ZM5.75 12h4.5a.75.75 0 0 1 0 1.5h-4.5a.75.75 0 0 1 0-1.5ZM6 15.25a.75.75 0 0 1 .75-.75h2.5a.75.75 0 0 1 0 1.5h-2.5a.75.75 0 0 1-.75-.75Z",important:"M0 1.75C0 .784.784 0 1.75 0h12.5C15.216 0 16 .784 16 1.75v9.5A1.75 1.75 0 0 1 14.25 13H8.06l-2.573 2.573A1.458 1.458 0 0 1 3 14.543V13H1.75A1.75 1.75 0 0 1 0 11.25Zm1.75-.25a.25.25 0 0 0-.25.25v9.5c0 .138.112.25.25.25h2a.75.75 0 0 1 .75.75v2.19l2.72-2.72a.749.749 0 0 1 .53-.22h6.5a.25.25 0 0 0 .25-.25v-9.5a.25.25 0 0 0-.25-.25Zm7 2.25v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 9a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",warning:"M6.457 1.047c.659-1.234 2.427-1.234 3.086 0l6.082 11.378A1.75 1.75 0 0 1 14.082 15H1.918a1.75 1.75 0 0 1-1.543-2.575Zm1.763.707a.25.25 0 0 0-.44 0L1.698 13.132a.25.25 0 0 0 .22.368h12.164a.25.25 0 0 0 .22-.368Zm.53 3.996v2.5a.75.75 0 0 1-1.5 0v-2.5a.75.75 0 0 1 1.5 0ZM9 11a1 1 0 1 1-2 0 1 1 0 0 1 2 0Z",caution:"M4.47.22A.749.749 0 0 1 5 0h6c.199 0 .389.079.53.22l4.25 4.25c.141.14.22.331.22.53v6a.749.749 0 0 1-.22.53l-4.25 4.25A.749.749 0 0 1 11 16H5a.749.749 0 0 1-.53-.22L.22 11.53A.749.749 0 0 1 0 11V5c0-.199.079-.389.22-.53Zm.84 1.28L1.5 5.31v5.38l3.81 3.81h5.38l3.81-3.81V5.31L10.69 1.5ZM8 4a.75.75 0 0 1 .75.75v3.5a.75.75 0 0 1-1.5 0v-3.5A.75.75 0 0 1 8 4Zm0 8a1 1 0 1 1 0-2 1 1 0 0 1 0 2Z"};function Fft(e,t){if(typeof document>"u")return;const n=document.createElement("textarea");n.value=e,n.setAttribute("readonly",""),n.style={position:"absolute",left:"-9999px"},document.body.appendChild(n);const r=document.getSelection().rangeCount>0?document.getSelection().getRangeAt(0):!1;n.select();let i=!1;try{i=!!document.execCommand("copy")}catch{i=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(i)}function bge(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?bge(t.parentElement):null}function Bft(e){var t=n=>{var r=bge(n.target);r&&(r.classList.add("active"),Fft(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};M.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var i;(i=e.current)==null||i.removeEventListener("click",t,!1)}},[e])}var Uft=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],zft=e=>e;const jft=rn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:d,wrapperElement:f={},warpperElement:p={},urlTransform:g}=e,O=_st(e,Uft),S=rn.useRef(null);M.useImperativeHandle(t,()=>jh({},e,{mdp:S}),[S,e]);var T=(n||"")+" "+(r||"");Bft(S);var w=[...O.rehypePlugins||[]],x={allowElement:(I,N,D)=>O.allowElement?O.allowElement(I,N,D):/^[A-Za-z0-9]+$/.test(I.tagName)};o&&w.push(Tme);var k=[Lft,...O.remarkPlugins||[],Nft],_=jh({},p,f);return R.jsx("div",jh({ref:S,onScroll:l,onMouseOver:u},_,{className:T,style:a,children:R.jsx(Ect,jh({},x,O,{skipHtml:o,urlTransform:g||zft,rehypePlugins:d?d("rehype",w):w,remarkPlugins:d?d("remark",k):k,children:i||""}))}))});var Hft=function(t){return n=>{vo(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=jh({},r.properties,{"data-meta":String(r.data.meta)}))})}},Qft=function(t){return n=>{vo(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var i=r.properties.dataMeta;typeof i=="string"&&(r.data.meta=i),delete r.properties.dataMeta}})}};const Wft=/[\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,Vft=Object.hasOwnProperty;class qft{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=Gft(t,n===!0);const a=i;for(;Vft.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function Gft(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(Wft,"").replace(/ /g,"-"))}function yge(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 Yft={},bte=new qft;function Zft(e){const n=(e||Yft).prefix||"";return function(r){bte.reset(),vo(r,"element",function(i){yge(i)&&!i.properties.id&&(i.properties.id=n+bte.slug(Sy(i)))})}}const kp=function(e){if(e==null)return Jft;if(typeof e=="string")return Kft(e);if(typeof e=="object")return Xft(e);if(typeof e=="function")return fW(e);throw new Error("Expected function, string, or array as `test`")};function Xft(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{vo(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}};var iht={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 aht(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 sht=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=jh({class:"anchor"},a.properties),a.children=[iht])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=VQ(n.children);n.children.push(aht(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},oht=[Zft,nht,rht];const Oge=rn.forwardRef((e,t)=>{var n,r=[Hft,Tme,Qft,...oht,[urt,{rewrite:sht((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[frt,{properties:"attr"}],...e.rehypePlugins||[],[Ytt,{ignoreMissing:!0}]];return R.jsx(jft,jh({},e,{rehypePlugins:r,ref:t}))});function pM(e){return e.split(` +`).map(t=>t+" ").join(` +`)}function lht(e){const{title:t,feature:n,onClose:r}=e,i=Pc(),a=HT(),s=Pr(Sm),{data:o,memoryKey:l,isLoading:u,isComplete:d,mutateAsync:f}=Jet(n),{data:p,isLoading:g,isComplete:O,mutateAsync:S}=ett(l),[T,w]=M.useState(""),x=document.getElementById(TC),k=M.useMemo(()=>u||g,[u,g]),_=M.useMemo(()=>d||O,[d,O]),I=M.useMemo(()=>p||o,[o,p]),{enqueueSnackbar:N}=LT(),D=M.useRef(null),L=vue(),{reset:U,formState:B}=L;M.useEffect(()=>{B.isSubmitSuccessful&&U({content:""})},[B.isSubmitSuccessful,U]),M.useEffect(()=>{w((x==null?void 0:x.getAttribute("content"))??"")},[x]),M.useEffect(()=>{T&&f(T)},[T,f]),M.useEffect(()=>{I&&D.current&&D.current.scrollTo({behavior:"smooth",top:D.current.scrollHeight})},[I]);const W=async()=>{I&&(await B1.write(I),N("URL Copied!",{variant:"success"}))},V=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},re=q=>{S(q.content)},ee=(q=!1)=>{var Se,Z;if(!s.cmView)return;const ne=s.cmView.state.selection.main;let K=Math.min(ne.to,ne.from);const G=Math.max(ne.to,ne.from);let ie=I;q||(K=G,ie=` +${ie}`);const H=q?K:K+1,Re=K+ie.length;(Se=s.doc)==null||Se.update((ke,$e)=>{ke.content.edit(K,G,ie),$e.set({selection:ke.content.indexRangeToPosRange([H,Re])})}),(Z=s.cmView)==null||Z.dispatch({changes:{from:K,to:G,insert:ie},selection:{anchor:H,head:Re}}),r()};return R.jsxs(zn,{gap:4,children:[R.jsx(Wa,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:R.jsx(Cr,{children:t})}),k&&R.jsx(kd,{sx:{marginX:"auto"}}),R.jsx(Wa,{ref:D,sx:{height:350,overflow:"auto"},children:!k&&R.jsx(Oge,{source:pM(I||""),wrapperElement:{"data-color-mode":a}})}),R.jsxs(zn,{gap:2,children:[R.jsx(p3,{in:_,children:R.jsxs(zn,{direction:"row",justifyContent:"flex-end",gap:1,children:[R.jsx(Vo,{variant:"outlined",onClick:V,children:R.jsx(r0e,{fontSize:"small"})}),R.jsx(Vo,{variant:"outlined",onClick:W,children:R.jsx(NR,{fontSize:"small"})}),R.jsx(Vo,{variant:"outlined",onClick:()=>ee(),children:"Insert below"}),R.jsx(Vo,{variant:"contained",onClick:()=>ee(!0),children:"Replace"})]})}),R.jsx(Mc,{children:R.jsx(mO,{defaultValues:{content:""},formContext:L,onSuccess:re,children:R.jsx(zn,{gap:4,alignItems:"flex-end",children:R.jsx(FT,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!_,size:"small",InputProps:{startAdornment:R.jsx(qP,{position:"start",children:R.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:R.jsx(p3,{in:_,children:R.jsx(qP,{position:"end",children:R.jsx(ss,{type:"submit",edge:"end",children:R.jsx(i0e,{})})})})}})})})})]})]})}function uht(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return R.jsx(M1,{disableAutoFocus:!0,...n,children:R.jsx(Oo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:R.jsxs(zn,{gap:4,children:[R.jsxs(zn,{alignItems:"center",gap:1,children:[R.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),R.jsxs(Cr,{variant:"h6",align:"center",children:["Do you want to discard",R.jsx("br",{}),"the Yorkie response?"]})]}),R.jsxs(zn,{direction:"row",gap:1,justifyContent:"center",children:[R.jsx(Vo,{variant:"outlined",onClick:i,children:"Discard"}),R.jsx(Vo,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function cht(e){const{onClose:t}=e,n=Pc(),r=Pr(Sm),i=M.useRef(null),[a,s]=M.useState(null),[o,l]=M.useState(null),[u,d]=M.useState(),[f,p]=M.useState(!1),g=M.useRef(null),O=M.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);M.useEffect(()=>{if(i.current)return d(i.current),()=>{d(void 0)}},[]);const S=(w,x)=>{l(w),s(x)},T=()=>{p(w=>!w)};return R.jsxs(Wa,{sx:{position:"absolute",mt:1},children:[R.jsx("span",{ref:i,style:{marginTop:4}}),R.jsx(cO,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:T,children:R.jsx(toe,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:O,padding:2},children:o&&a?R.jsx(lht,{title:a,feature:o,onClose:t}):R.jsx(Vet,{onSelectFeature:S})})}),R.jsx(uht,{open:f,onCloseIntelligence:t,onClose:T})]})}function dht(){const[e,t]=M.useState(!1),[n,r]=M.useState(null),{yorkieIntelligence:i}=Pr(qR);M.useEffect(()=>{const s=document.getElementById(TC);r(s),document.addEventListener("selectionchange",function(){const o=document.getElementById(TC);r(o)})},[]);const a=()=>{t(s=>!s)};if(n)return R.jsxs(R.Fragment,{children:[R.jsxs(Vo,{onClick:a,sx:{padding:"3px 5px",border:"none","&:hover":{border:"none"}},disabled:!(i!=null&&i.enable),children:[R.jsx("img",{src:"/yorkie.png",height:20,alt:"yorkie_img",style:{filter:i!=null&&i.enable?"none":"grayscale(100%)"}}),R.jsx(Cr,{variant:"subtitle1",fontSize:14,children:"Yorkie Intelligence"})]}),e&&eO.createPortal(R.jsx(cht,{onClose:a}),n)]})}function fht({toolBarState:{show:e,position:t,selectedFormats:n},onChangeToolBarState:r}){const{toggleButtonChangeHandler:i}=Kpe(),[a,s]=M.useState(null);if(yR(()=>{s(e)},500,[e]),!!a)return R.jsx(cO,{open:a,anchorReference:"anchorPosition",anchorPosition:{top:t.top,left:t.left},onClose:()=>r(o=>({...o,show:!1})),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,TransitionComponent:p3,TransitionProps:{timeout:300},children:R.jsxs(zn,{direction:"row",margin:"5px 7px",children:[R.jsx(dht,{}),R.jsx(b1,{orientation:"vertical",flexItem:!0,sx:{height:"20px",alignSelf:"center",margin:"0 5px"}}),R.jsx(voe,{value:Array.from(n),onChange:i(n,r),exclusive:!0,"aria-label":"text formatting",children:R.jsxs(zn,{direction:"row",gap:"5px",alignItems:"center",children:[R.jsx(n4,{color:n.has(su.ITALIC)?"primary":"secondary",title:"Cmd+I / Ctrl+I",value:su.ITALIC,children:R.jsx("i",{children:"i"})}),R.jsx(n4,{color:n.has(su.BOLD)?"primary":"secondary",title:"Cmd+B / Ctrl+B",value:su.BOLD,children:R.jsx("strong",{children:"B"})}),R.jsx(n4,{color:n.has(su.STRIKETHROUGH)?"primary":"secondary",title:"Cmd+Shift+X / Ctrl+Shfit+X",value:su.STRIKETHROUGH,children:"~"}),R.jsx(n4,{color:n.has(su.CODE)?"primary":"secondary",title:"Cmd+E / Ctrl+E",value:su.CODE,children:""})]})})]})})}function Ote(){var T;const e=Du(),t=HT(),[n,r]=M.useState(),i=Pr(Sm),a=Pr(qR),s=Pr(PT),{mutateAsync:o}=g$e(),{mutateAsync:l}=b$e(),[u,d]=M.useState({show:!1,position:{top:0,left:0},selectedFormats:new Set}),{getFormatMarkerLength:f,applyFormat:p,setKeymapConfig:g}=Kpe(),O=M.useCallback(w=>{w&&r(w)},[]),S=M.useCallback(w=>{const x=w.state.selection.main;if(x.empty)d(k=>({...k,show:!1,selectedFormats:new Set}));else{const k=w.view.coordsAtPos(x.from);if(k){const _=f(w.view.state,x.from),I=w.state.sliceDoc(x.from-_,x.from),N=w.state.sliceDoc(x.to,x.to+_),D=new Set,L=(U,B)=>{I.includes(U)&&N.includes(U)&&D.add(B)};L("**",su.BOLD),L("_",su.ITALIC),L("`",su.CODE),L("~~",su.STRIKETHROUGH),d(U=>({...U,show:!0,position:{top:k.top-5,left:k.left},selectedFormats:D}))}}},[f]);return M.useEffect(()=>{var _,I;let w;if(!n||!i.doc||!i.client||typeof((_=a.fileUpload)==null?void 0:_.enable)!="boolean")return;const x=async N=>{if(!s.data)return"";const D=await o({workspaceId:s.data.id,contentLength:new Blob([N]).size,contentType:N.type});return await l({...D,file:N}),`https://codepair-api.yorkie.dev/files/${D.fileKey}`},k=Dr.create({doc:((I=i.doc.getRoot().content)==null?void 0:I.toString())??"",extensions:[vO.of(g()),qZe,QJe(),fet(i.doc,i.client),t=="light"?get:Oet,Jt.theme({"&":{width:"100%"}}),Jt.lineWrapping,Tet,...a.fileUpload.enable?[xet(x,i.doc)]:[],Jt.updateListener.of(N=>{N.selectionSet&&S(N)})]});return w=new Jt({state:k,parent:n}),e(l9e(w)),()=>{w==null||w.destroy()}},[e,i.client,i.doc,n,t,s.data,o,l,(T=a.fileUpload)==null?void 0:T.enable,p,S,g]),R.jsx(WL.ScrollSyncPane,{children:R.jsxs("div",{style:{height:"100%",overflow:"auto"},children:[R.jsx("div",{ref:O,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}}),!!u.show&&R.jsx(fht,{toolBarState:u,onChangeToolBarState:d})]})})}class cu{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new cu(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Ec{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Ec(n,cu.range(this,t))}}class Mt{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var d;a+15":">","<":"<",'"':""","'":"'"},yht=/[&><"']/g;function vht(e){return String(e).replace(yht,t=>bht[t])}var Sge=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Oht=function(t){var n=Sge(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Sht=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Eht=function(t){var n=/^[\x00-\x20]*([^\\/#?]*?)(:|�*58|�*3a|&colon)/i.exec(t);return n?n[2]!==":"||!/^[a-zA-Z][a-zA-Z0-9+\-.]*$/.test(n[1])?null:n[1].toLowerCase():"_relative"},Nn={contains:hht,deflt:pht,escape:vht,hyphenate:ght,getBaseElem:Sge,isCharacterBox:Oht,protocolFromUrl:Eht},A_={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function wht(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class pW{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in A_)if(A_.hasOwnProperty(n)){var r=A_[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:wht(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Mt("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){if(t.url&&!t.protocol){var n=Nn.protocolFromUrl(t.url);if(n==null)return!1;t.protocol=n}var r=typeof this.trust=="function"?this.trust(t):this.trust;return!!r}}class e0{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return pf[Tht[this.id]]}sub(){return pf[xht[this.id]]}fracNum(){return pf[kht[this.id]]}fracDen(){return pf[Aht[this.id]]}cramp(){return pf[_ht[this.id]]}text(){return pf[Cht[this.id]]}isTight(){return this.size>=2}}var mW=0,PC=1,Zy=2,Xh=3,tT=4,gc=5,Qv=6,qo=7,pf=[new e0(mW,0,!1),new e0(PC,0,!0),new e0(Zy,1,!1),new e0(Xh,1,!0),new e0(tT,2,!1),new e0(gc,2,!0),new e0(Qv,3,!1),new e0(qo,3,!0)],Tht=[tT,gc,tT,gc,Qv,qo,Qv,qo],xht=[gc,gc,gc,gc,qo,qo,qo,qo],kht=[Zy,Xh,tT,gc,Qv,qo,Qv,qo],Aht=[Xh,Xh,gc,gc,qo,qo,qo,qo],_ht=[PC,PC,Xh,Xh,gc,gc,qo,qo],Cht=[mW,PC,Zy,Xh,Zy,Xh,Zy,Xh],Ln={DISPLAY:pf[mW],TEXT:pf[Zy],SCRIPT:pf[tT],SCRIPTSCRIPT:pf[Qv]},mM=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Rht(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var __=[];mM.forEach(e=>e.blocks.forEach(t=>__.push(...t)));function Ege(e){for(var t=0;t<__.length;t+=2)if(e>=__[t]&&e<=__[t+1])return!0;return!1}var Ub=80,Iht=function(t,n){return"M95,"+(622+t+n)+` +c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 +c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 +c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 +s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 +c69,-144,104.5,-217.7,106.5,-221 +l`+t/2.075+" -"+t+` +c5.3,-9.3,12,-14,20,-14 +H400000v`+(40+t)+`H845.2724 +s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 +c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z +M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Nht=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 +c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 +c340,-704.7,510.7,-1060.3,512,-1067 +l`+t/2.084+" -"+t+` +c4.7,-7.3,11,-11,19,-11 +H40000v`+(40+t)+`H1012.3 +s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 +c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 +s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 +c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Dht=function(t,n){return"M983 "+(10+t+n)+` +l`+t/3.13+" -"+t+` +c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` +H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 +s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 +c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 +c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 +c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 +c53.7,-170.3,84.5,-266.8,92.5,-289.5z +M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Pht=function(t,n){return"M424,"+(2398+t+n)+` +c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 +c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 +s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 +s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 +l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 +v`+(40+t)+`H1014.6 +s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 +c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` +h400000v`+(40+t)+"h-400000z"},Lht=function(t,n){return"M473,"+(2713+t+n)+` +c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` +c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 +s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 +c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 +c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 +s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, +606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},Mht=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},$ht=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` +H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 +h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 +c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 +219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},Fht=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Iht(n,Ub);break;case"sqrtSize1":i=Nht(n,Ub);break;case"sqrtSize2":i=Dht(n,Ub);break;case"sqrtSize3":i=Pht(n,Ub);break;case"sqrtSize4":i=Lht(n,Ub);break;case"sqrtTall":i=$ht(n,Ub,r)}return i},Bht=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},Ste={doubleleftarrow:`M262 157 +l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 + 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 + 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 +c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 + 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 +-86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 +-2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z +m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l +-10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 + 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 +-33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 +-17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 +-13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 +c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 +-107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 + 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 +-5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 +c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 + 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 + 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 + l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 +-45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 + 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 + 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 + 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 +-331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 +H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 + 435 0h399565z`,leftgroupunder:`M400000 262 +H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 + 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 +-3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 +-18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 +-196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 + 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 +-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 +-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z +m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 + 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 + 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 +-152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 + 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 +-2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 +v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 +-83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 +-68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 + 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z +M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z +M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 +-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 +c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 + 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z +M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 +c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 +-53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 + 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 + 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 +c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 + 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 + 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 +-5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 +-320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z +m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 +60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 +-451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z +m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 +c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 +-480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z +m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 +85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 +-707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z +m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 +c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 +-16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 + 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 + 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 +-40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 + 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l +-6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 +s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 +c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 + 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 +-174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 + 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 + 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 +-3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 +-10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 + 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 +-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 + 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z +m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 + 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 +-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 +-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 + 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 + 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 +-64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z +m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 + 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 +-13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 + 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z +M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 + 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 +-52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 +-167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 + 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 +-70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 +-40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 +-37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 + 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 +c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 + 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 + 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 +-19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 + 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 +-2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 + 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 + 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 +-68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 +-8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 + 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 +c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 + 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 +-11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 + 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 + 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 + -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 +-11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 + 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 + 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 + -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 +3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 +10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 +-1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 +-7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 +H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 +c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 +c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 +-11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, +-5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, +-11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 +c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 +c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 +s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 +121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 +s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 +c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z +M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 +-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 +13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 +-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 +-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 +-12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 +151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 +c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 +c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 +c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z +M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 +c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, +1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, +-152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z +M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 +c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, +-231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 +c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z +M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},Uht=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 +H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z +M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z +M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 +c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 +c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z +MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z +MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z +M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z +M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 +c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, +-36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, +949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 +c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, +-544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 +l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, +-210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, +63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 +c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` +c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 +c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 +c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 +c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 +l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, +-470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let bx=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return Nn.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Af={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},f4={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Ete={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function zht(e,t){Af[e]=t}function gW(e,t,n){if(!Af[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Af[t][r];if(!i&&e[0]in Ete&&(r=Ete[e[0]].charCodeAt(0),i=Af[t][r]),!i&&n==="text"&&Ege(r)&&(i=Af[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var b7={};function jht(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!b7[t]){var n=b7[t]={cssEmPerMu:f4.quad[t]/18};for(var r in f4)f4.hasOwnProperty(r)&&(n[r]=f4[r][t])}return b7[t]}var Hht=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],wte=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Tte=function(t,n){return n.size<2?t:Hht[t-1][n.size-1]};class Mh{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Mh.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=wte[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Mh(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Tte(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:wte[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Tte(Mh.BASESIZE,t);return this.size===n&&this.textSize===Mh.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Mh.BASESIZE?["sizing","reset-size"+this.size,"size"+Mh.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=jht(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Mh.BASESIZE=6;var gM={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},Qht={ex:!0,em:!0,mu:!0},wge=function(t){return typeof t!="string"&&(t=t.unit),t in gM||t in Qht||t==="ex"},oa=function(t,n){var r;if(t.unit in gM)r=gM[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Mt("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Qt=function(t){return+t.toFixed(4)+"em"},cm=function(t){return t.filter(n=>n).join(" ")},Tge=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},xge=function(t){var n=document.createElement(t);n.className=cm(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let yx=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,Tge.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return xge.call(this,"span")}toMarkup(){return kge.call(this,"span")}};class bW{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,Tge.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return Nn.contains(this.classes,t)}toNode(){return xge.call(this,"a")}toMarkup(){return kge.call(this,"a")}}class Wht{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return Nn.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=''+Nn.escape(this.alt)+'0&&(n=document.createElement("span"),n.style.marginRight=Qt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=cm(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=Nn.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+Nn.escape(r)+'"');var a=Nn.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class dp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i':''}}class bM{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var Ght={bin:1,close:1,inner:1,open:1,punct:1,rel:1},Yht={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ri={math:{},text:{}};function $(e,t,n,r,i,a){Ri[e][i]={font:t,group:n,replace:r},a&&r&&(Ri[e][r]=Ri[e][i])}var j="math",At="text",J="main",be="ams",ta="accent-token",on="bin",nl="close",$O="inner",Pn="mathord",Va="op-token",$u="open",TI="punct",Oe="rel",Ap="spacing",De="textord";$(j,J,Oe,"≡","\\equiv",!0);$(j,J,Oe,"≺","\\prec",!0);$(j,J,Oe,"≻","\\succ",!0);$(j,J,Oe,"∼","\\sim",!0);$(j,J,Oe,"⊥","\\perp");$(j,J,Oe,"⪯","\\preceq",!0);$(j,J,Oe,"⪰","\\succeq",!0);$(j,J,Oe,"≃","\\simeq",!0);$(j,J,Oe,"∣","\\mid",!0);$(j,J,Oe,"≪","\\ll",!0);$(j,J,Oe,"≫","\\gg",!0);$(j,J,Oe,"≍","\\asymp",!0);$(j,J,Oe,"∥","\\parallel");$(j,J,Oe,"⋈","\\bowtie",!0);$(j,J,Oe,"⌣","\\smile",!0);$(j,J,Oe,"⊑","\\sqsubseteq",!0);$(j,J,Oe,"⊒","\\sqsupseteq",!0);$(j,J,Oe,"≐","\\doteq",!0);$(j,J,Oe,"⌢","\\frown",!0);$(j,J,Oe,"∋","\\ni",!0);$(j,J,Oe,"∝","\\propto",!0);$(j,J,Oe,"⊢","\\vdash",!0);$(j,J,Oe,"⊣","\\dashv",!0);$(j,J,Oe,"∋","\\owns");$(j,J,TI,".","\\ldotp");$(j,J,TI,"⋅","\\cdotp");$(j,J,De,"#","\\#");$(At,J,De,"#","\\#");$(j,J,De,"&","\\&");$(At,J,De,"&","\\&");$(j,J,De,"ℵ","\\aleph",!0);$(j,J,De,"∀","\\forall",!0);$(j,J,De,"ℏ","\\hbar",!0);$(j,J,De,"∃","\\exists",!0);$(j,J,De,"∇","\\nabla",!0);$(j,J,De,"♭","\\flat",!0);$(j,J,De,"ℓ","\\ell",!0);$(j,J,De,"♮","\\natural",!0);$(j,J,De,"♣","\\clubsuit",!0);$(j,J,De,"℘","\\wp",!0);$(j,J,De,"♯","\\sharp",!0);$(j,J,De,"♢","\\diamondsuit",!0);$(j,J,De,"ℜ","\\Re",!0);$(j,J,De,"♡","\\heartsuit",!0);$(j,J,De,"ℑ","\\Im",!0);$(j,J,De,"♠","\\spadesuit",!0);$(j,J,De,"§","\\S",!0);$(At,J,De,"§","\\S");$(j,J,De,"¶","\\P",!0);$(At,J,De,"¶","\\P");$(j,J,De,"†","\\dag");$(At,J,De,"†","\\dag");$(At,J,De,"†","\\textdagger");$(j,J,De,"‡","\\ddag");$(At,J,De,"‡","\\ddag");$(At,J,De,"‡","\\textdaggerdbl");$(j,J,nl,"⎱","\\rmoustache",!0);$(j,J,$u,"⎰","\\lmoustache",!0);$(j,J,nl,"⟯","\\rgroup",!0);$(j,J,$u,"⟮","\\lgroup",!0);$(j,J,on,"∓","\\mp",!0);$(j,J,on,"⊖","\\ominus",!0);$(j,J,on,"⊎","\\uplus",!0);$(j,J,on,"⊓","\\sqcap",!0);$(j,J,on,"∗","\\ast");$(j,J,on,"⊔","\\sqcup",!0);$(j,J,on,"◯","\\bigcirc",!0);$(j,J,on,"∙","\\bullet",!0);$(j,J,on,"‡","\\ddagger");$(j,J,on,"≀","\\wr",!0);$(j,J,on,"⨿","\\amalg");$(j,J,on,"&","\\And");$(j,J,Oe,"⟵","\\longleftarrow",!0);$(j,J,Oe,"⇐","\\Leftarrow",!0);$(j,J,Oe,"⟸","\\Longleftarrow",!0);$(j,J,Oe,"⟶","\\longrightarrow",!0);$(j,J,Oe,"⇒","\\Rightarrow",!0);$(j,J,Oe,"⟹","\\Longrightarrow",!0);$(j,J,Oe,"↔","\\leftrightarrow",!0);$(j,J,Oe,"⟷","\\longleftrightarrow",!0);$(j,J,Oe,"⇔","\\Leftrightarrow",!0);$(j,J,Oe,"⟺","\\Longleftrightarrow",!0);$(j,J,Oe,"↦","\\mapsto",!0);$(j,J,Oe,"⟼","\\longmapsto",!0);$(j,J,Oe,"↗","\\nearrow",!0);$(j,J,Oe,"↩","\\hookleftarrow",!0);$(j,J,Oe,"↪","\\hookrightarrow",!0);$(j,J,Oe,"↘","\\searrow",!0);$(j,J,Oe,"↼","\\leftharpoonup",!0);$(j,J,Oe,"⇀","\\rightharpoonup",!0);$(j,J,Oe,"↙","\\swarrow",!0);$(j,J,Oe,"↽","\\leftharpoondown",!0);$(j,J,Oe,"⇁","\\rightharpoondown",!0);$(j,J,Oe,"↖","\\nwarrow",!0);$(j,J,Oe,"⇌","\\rightleftharpoons",!0);$(j,be,Oe,"≮","\\nless",!0);$(j,be,Oe,"","\\@nleqslant");$(j,be,Oe,"","\\@nleqq");$(j,be,Oe,"⪇","\\lneq",!0);$(j,be,Oe,"≨","\\lneqq",!0);$(j,be,Oe,"","\\@lvertneqq");$(j,be,Oe,"⋦","\\lnsim",!0);$(j,be,Oe,"⪉","\\lnapprox",!0);$(j,be,Oe,"⊀","\\nprec",!0);$(j,be,Oe,"⋠","\\npreceq",!0);$(j,be,Oe,"⋨","\\precnsim",!0);$(j,be,Oe,"⪹","\\precnapprox",!0);$(j,be,Oe,"≁","\\nsim",!0);$(j,be,Oe,"","\\@nshortmid");$(j,be,Oe,"∤","\\nmid",!0);$(j,be,Oe,"⊬","\\nvdash",!0);$(j,be,Oe,"⊭","\\nvDash",!0);$(j,be,Oe,"⋪","\\ntriangleleft");$(j,be,Oe,"⋬","\\ntrianglelefteq",!0);$(j,be,Oe,"⊊","\\subsetneq",!0);$(j,be,Oe,"","\\@varsubsetneq");$(j,be,Oe,"⫋","\\subsetneqq",!0);$(j,be,Oe,"","\\@varsubsetneqq");$(j,be,Oe,"≯","\\ngtr",!0);$(j,be,Oe,"","\\@ngeqslant");$(j,be,Oe,"","\\@ngeqq");$(j,be,Oe,"⪈","\\gneq",!0);$(j,be,Oe,"≩","\\gneqq",!0);$(j,be,Oe,"","\\@gvertneqq");$(j,be,Oe,"⋧","\\gnsim",!0);$(j,be,Oe,"⪊","\\gnapprox",!0);$(j,be,Oe,"⊁","\\nsucc",!0);$(j,be,Oe,"⋡","\\nsucceq",!0);$(j,be,Oe,"⋩","\\succnsim",!0);$(j,be,Oe,"⪺","\\succnapprox",!0);$(j,be,Oe,"≆","\\ncong",!0);$(j,be,Oe,"","\\@nshortparallel");$(j,be,Oe,"∦","\\nparallel",!0);$(j,be,Oe,"⊯","\\nVDash",!0);$(j,be,Oe,"⋫","\\ntriangleright");$(j,be,Oe,"⋭","\\ntrianglerighteq",!0);$(j,be,Oe,"","\\@nsupseteqq");$(j,be,Oe,"⊋","\\supsetneq",!0);$(j,be,Oe,"","\\@varsupsetneq");$(j,be,Oe,"⫌","\\supsetneqq",!0);$(j,be,Oe,"","\\@varsupsetneqq");$(j,be,Oe,"⊮","\\nVdash",!0);$(j,be,Oe,"⪵","\\precneqq",!0);$(j,be,Oe,"⪶","\\succneqq",!0);$(j,be,Oe,"","\\@nsubseteqq");$(j,be,on,"⊴","\\unlhd");$(j,be,on,"⊵","\\unrhd");$(j,be,Oe,"↚","\\nleftarrow",!0);$(j,be,Oe,"↛","\\nrightarrow",!0);$(j,be,Oe,"⇍","\\nLeftarrow",!0);$(j,be,Oe,"⇏","\\nRightarrow",!0);$(j,be,Oe,"↮","\\nleftrightarrow",!0);$(j,be,Oe,"⇎","\\nLeftrightarrow",!0);$(j,be,Oe,"△","\\vartriangle");$(j,be,De,"ℏ","\\hslash");$(j,be,De,"▽","\\triangledown");$(j,be,De,"◊","\\lozenge");$(j,be,De,"Ⓢ","\\circledS");$(j,be,De,"®","\\circledR");$(At,be,De,"®","\\circledR");$(j,be,De,"∡","\\measuredangle",!0);$(j,be,De,"∄","\\nexists");$(j,be,De,"℧","\\mho");$(j,be,De,"Ⅎ","\\Finv",!0);$(j,be,De,"⅁","\\Game",!0);$(j,be,De,"‵","\\backprime");$(j,be,De,"▲","\\blacktriangle");$(j,be,De,"▼","\\blacktriangledown");$(j,be,De,"■","\\blacksquare");$(j,be,De,"⧫","\\blacklozenge");$(j,be,De,"★","\\bigstar");$(j,be,De,"∢","\\sphericalangle",!0);$(j,be,De,"∁","\\complement",!0);$(j,be,De,"ð","\\eth",!0);$(At,J,De,"ð","ð");$(j,be,De,"╱","\\diagup");$(j,be,De,"╲","\\diagdown");$(j,be,De,"□","\\square");$(j,be,De,"□","\\Box");$(j,be,De,"◊","\\Diamond");$(j,be,De,"¥","\\yen",!0);$(At,be,De,"¥","\\yen",!0);$(j,be,De,"✓","\\checkmark",!0);$(At,be,De,"✓","\\checkmark");$(j,be,De,"ℶ","\\beth",!0);$(j,be,De,"ℸ","\\daleth",!0);$(j,be,De,"ℷ","\\gimel",!0);$(j,be,De,"ϝ","\\digamma",!0);$(j,be,De,"ϰ","\\varkappa");$(j,be,$u,"┌","\\@ulcorner",!0);$(j,be,nl,"┐","\\@urcorner",!0);$(j,be,$u,"└","\\@llcorner",!0);$(j,be,nl,"┘","\\@lrcorner",!0);$(j,be,Oe,"≦","\\leqq",!0);$(j,be,Oe,"⩽","\\leqslant",!0);$(j,be,Oe,"⪕","\\eqslantless",!0);$(j,be,Oe,"≲","\\lesssim",!0);$(j,be,Oe,"⪅","\\lessapprox",!0);$(j,be,Oe,"≊","\\approxeq",!0);$(j,be,on,"⋖","\\lessdot");$(j,be,Oe,"⋘","\\lll",!0);$(j,be,Oe,"≶","\\lessgtr",!0);$(j,be,Oe,"⋚","\\lesseqgtr",!0);$(j,be,Oe,"⪋","\\lesseqqgtr",!0);$(j,be,Oe,"≑","\\doteqdot");$(j,be,Oe,"≓","\\risingdotseq",!0);$(j,be,Oe,"≒","\\fallingdotseq",!0);$(j,be,Oe,"∽","\\backsim",!0);$(j,be,Oe,"⋍","\\backsimeq",!0);$(j,be,Oe,"⫅","\\subseteqq",!0);$(j,be,Oe,"⋐","\\Subset",!0);$(j,be,Oe,"⊏","\\sqsubset",!0);$(j,be,Oe,"≼","\\preccurlyeq",!0);$(j,be,Oe,"⋞","\\curlyeqprec",!0);$(j,be,Oe,"≾","\\precsim",!0);$(j,be,Oe,"⪷","\\precapprox",!0);$(j,be,Oe,"⊲","\\vartriangleleft");$(j,be,Oe,"⊴","\\trianglelefteq");$(j,be,Oe,"⊨","\\vDash",!0);$(j,be,Oe,"⊪","\\Vvdash",!0);$(j,be,Oe,"⌣","\\smallsmile");$(j,be,Oe,"⌢","\\smallfrown");$(j,be,Oe,"≏","\\bumpeq",!0);$(j,be,Oe,"≎","\\Bumpeq",!0);$(j,be,Oe,"≧","\\geqq",!0);$(j,be,Oe,"⩾","\\geqslant",!0);$(j,be,Oe,"⪖","\\eqslantgtr",!0);$(j,be,Oe,"≳","\\gtrsim",!0);$(j,be,Oe,"⪆","\\gtrapprox",!0);$(j,be,on,"⋗","\\gtrdot");$(j,be,Oe,"⋙","\\ggg",!0);$(j,be,Oe,"≷","\\gtrless",!0);$(j,be,Oe,"⋛","\\gtreqless",!0);$(j,be,Oe,"⪌","\\gtreqqless",!0);$(j,be,Oe,"≖","\\eqcirc",!0);$(j,be,Oe,"≗","\\circeq",!0);$(j,be,Oe,"≜","\\triangleq",!0);$(j,be,Oe,"∼","\\thicksim");$(j,be,Oe,"≈","\\thickapprox");$(j,be,Oe,"⫆","\\supseteqq",!0);$(j,be,Oe,"⋑","\\Supset",!0);$(j,be,Oe,"⊐","\\sqsupset",!0);$(j,be,Oe,"≽","\\succcurlyeq",!0);$(j,be,Oe,"⋟","\\curlyeqsucc",!0);$(j,be,Oe,"≿","\\succsim",!0);$(j,be,Oe,"⪸","\\succapprox",!0);$(j,be,Oe,"⊳","\\vartriangleright");$(j,be,Oe,"⊵","\\trianglerighteq");$(j,be,Oe,"⊩","\\Vdash",!0);$(j,be,Oe,"∣","\\shortmid");$(j,be,Oe,"∥","\\shortparallel");$(j,be,Oe,"≬","\\between",!0);$(j,be,Oe,"⋔","\\pitchfork",!0);$(j,be,Oe,"∝","\\varpropto");$(j,be,Oe,"◀","\\blacktriangleleft");$(j,be,Oe,"∴","\\therefore",!0);$(j,be,Oe,"∍","\\backepsilon");$(j,be,Oe,"▶","\\blacktriangleright");$(j,be,Oe,"∵","\\because",!0);$(j,be,Oe,"⋘","\\llless");$(j,be,Oe,"⋙","\\gggtr");$(j,be,on,"⊲","\\lhd");$(j,be,on,"⊳","\\rhd");$(j,be,Oe,"≂","\\eqsim",!0);$(j,J,Oe,"⋈","\\Join");$(j,be,Oe,"≑","\\Doteq",!0);$(j,be,on,"∔","\\dotplus",!0);$(j,be,on,"∖","\\smallsetminus");$(j,be,on,"⋒","\\Cap",!0);$(j,be,on,"⋓","\\Cup",!0);$(j,be,on,"⩞","\\doublebarwedge",!0);$(j,be,on,"⊟","\\boxminus",!0);$(j,be,on,"⊞","\\boxplus",!0);$(j,be,on,"⋇","\\divideontimes",!0);$(j,be,on,"⋉","\\ltimes",!0);$(j,be,on,"⋊","\\rtimes",!0);$(j,be,on,"⋋","\\leftthreetimes",!0);$(j,be,on,"⋌","\\rightthreetimes",!0);$(j,be,on,"⋏","\\curlywedge",!0);$(j,be,on,"⋎","\\curlyvee",!0);$(j,be,on,"⊝","\\circleddash",!0);$(j,be,on,"⊛","\\circledast",!0);$(j,be,on,"⋅","\\centerdot");$(j,be,on,"⊺","\\intercal",!0);$(j,be,on,"⋒","\\doublecap");$(j,be,on,"⋓","\\doublecup");$(j,be,on,"⊠","\\boxtimes",!0);$(j,be,Oe,"⇢","\\dashrightarrow",!0);$(j,be,Oe,"⇠","\\dashleftarrow",!0);$(j,be,Oe,"⇇","\\leftleftarrows",!0);$(j,be,Oe,"⇆","\\leftrightarrows",!0);$(j,be,Oe,"⇚","\\Lleftarrow",!0);$(j,be,Oe,"↞","\\twoheadleftarrow",!0);$(j,be,Oe,"↢","\\leftarrowtail",!0);$(j,be,Oe,"↫","\\looparrowleft",!0);$(j,be,Oe,"⇋","\\leftrightharpoons",!0);$(j,be,Oe,"↶","\\curvearrowleft",!0);$(j,be,Oe,"↺","\\circlearrowleft",!0);$(j,be,Oe,"↰","\\Lsh",!0);$(j,be,Oe,"⇈","\\upuparrows",!0);$(j,be,Oe,"↿","\\upharpoonleft",!0);$(j,be,Oe,"⇃","\\downharpoonleft",!0);$(j,J,Oe,"⊶","\\origof",!0);$(j,J,Oe,"⊷","\\imageof",!0);$(j,be,Oe,"⊸","\\multimap",!0);$(j,be,Oe,"↭","\\leftrightsquigarrow",!0);$(j,be,Oe,"⇉","\\rightrightarrows",!0);$(j,be,Oe,"⇄","\\rightleftarrows",!0);$(j,be,Oe,"↠","\\twoheadrightarrow",!0);$(j,be,Oe,"↣","\\rightarrowtail",!0);$(j,be,Oe,"↬","\\looparrowright",!0);$(j,be,Oe,"↷","\\curvearrowright",!0);$(j,be,Oe,"↻","\\circlearrowright",!0);$(j,be,Oe,"↱","\\Rsh",!0);$(j,be,Oe,"⇊","\\downdownarrows",!0);$(j,be,Oe,"↾","\\upharpoonright",!0);$(j,be,Oe,"⇂","\\downharpoonright",!0);$(j,be,Oe,"⇝","\\rightsquigarrow",!0);$(j,be,Oe,"⇝","\\leadsto");$(j,be,Oe,"⇛","\\Rrightarrow",!0);$(j,be,Oe,"↾","\\restriction");$(j,J,De,"‘","`");$(j,J,De,"$","\\$");$(At,J,De,"$","\\$");$(At,J,De,"$","\\textdollar");$(j,J,De,"%","\\%");$(At,J,De,"%","\\%");$(j,J,De,"_","\\_");$(At,J,De,"_","\\_");$(At,J,De,"_","\\textunderscore");$(j,J,De,"∠","\\angle",!0);$(j,J,De,"∞","\\infty",!0);$(j,J,De,"′","\\prime");$(j,J,De,"△","\\triangle");$(j,J,De,"Γ","\\Gamma",!0);$(j,J,De,"Δ","\\Delta",!0);$(j,J,De,"Θ","\\Theta",!0);$(j,J,De,"Λ","\\Lambda",!0);$(j,J,De,"Ξ","\\Xi",!0);$(j,J,De,"Π","\\Pi",!0);$(j,J,De,"Σ","\\Sigma",!0);$(j,J,De,"Υ","\\Upsilon",!0);$(j,J,De,"Φ","\\Phi",!0);$(j,J,De,"Ψ","\\Psi",!0);$(j,J,De,"Ω","\\Omega",!0);$(j,J,De,"A","Α");$(j,J,De,"B","Β");$(j,J,De,"E","Ε");$(j,J,De,"Z","Ζ");$(j,J,De,"H","Η");$(j,J,De,"I","Ι");$(j,J,De,"K","Κ");$(j,J,De,"M","Μ");$(j,J,De,"N","Ν");$(j,J,De,"O","Ο");$(j,J,De,"P","Ρ");$(j,J,De,"T","Τ");$(j,J,De,"X","Χ");$(j,J,De,"¬","\\neg",!0);$(j,J,De,"¬","\\lnot");$(j,J,De,"⊤","\\top");$(j,J,De,"⊥","\\bot");$(j,J,De,"∅","\\emptyset");$(j,be,De,"∅","\\varnothing");$(j,J,Pn,"α","\\alpha",!0);$(j,J,Pn,"β","\\beta",!0);$(j,J,Pn,"γ","\\gamma",!0);$(j,J,Pn,"δ","\\delta",!0);$(j,J,Pn,"ϵ","\\epsilon",!0);$(j,J,Pn,"ζ","\\zeta",!0);$(j,J,Pn,"η","\\eta",!0);$(j,J,Pn,"θ","\\theta",!0);$(j,J,Pn,"ι","\\iota",!0);$(j,J,Pn,"κ","\\kappa",!0);$(j,J,Pn,"λ","\\lambda",!0);$(j,J,Pn,"μ","\\mu",!0);$(j,J,Pn,"ν","\\nu",!0);$(j,J,Pn,"ξ","\\xi",!0);$(j,J,Pn,"ο","\\omicron",!0);$(j,J,Pn,"π","\\pi",!0);$(j,J,Pn,"ρ","\\rho",!0);$(j,J,Pn,"σ","\\sigma",!0);$(j,J,Pn,"τ","\\tau",!0);$(j,J,Pn,"υ","\\upsilon",!0);$(j,J,Pn,"ϕ","\\phi",!0);$(j,J,Pn,"χ","\\chi",!0);$(j,J,Pn,"ψ","\\psi",!0);$(j,J,Pn,"ω","\\omega",!0);$(j,J,Pn,"ε","\\varepsilon",!0);$(j,J,Pn,"ϑ","\\vartheta",!0);$(j,J,Pn,"ϖ","\\varpi",!0);$(j,J,Pn,"ϱ","\\varrho",!0);$(j,J,Pn,"ς","\\varsigma",!0);$(j,J,Pn,"φ","\\varphi",!0);$(j,J,on,"∗","*",!0);$(j,J,on,"+","+");$(j,J,on,"−","-",!0);$(j,J,on,"⋅","\\cdot",!0);$(j,J,on,"∘","\\circ",!0);$(j,J,on,"÷","\\div",!0);$(j,J,on,"±","\\pm",!0);$(j,J,on,"×","\\times",!0);$(j,J,on,"∩","\\cap",!0);$(j,J,on,"∪","\\cup",!0);$(j,J,on,"∖","\\setminus",!0);$(j,J,on,"∧","\\land");$(j,J,on,"∨","\\lor");$(j,J,on,"∧","\\wedge",!0);$(j,J,on,"∨","\\vee",!0);$(j,J,De,"√","\\surd");$(j,J,$u,"⟨","\\langle",!0);$(j,J,$u,"∣","\\lvert");$(j,J,$u,"∥","\\lVert");$(j,J,nl,"?","?");$(j,J,nl,"!","!");$(j,J,nl,"⟩","\\rangle",!0);$(j,J,nl,"∣","\\rvert");$(j,J,nl,"∥","\\rVert");$(j,J,Oe,"=","=");$(j,J,Oe,":",":");$(j,J,Oe,"≈","\\approx",!0);$(j,J,Oe,"≅","\\cong",!0);$(j,J,Oe,"≥","\\ge");$(j,J,Oe,"≥","\\geq",!0);$(j,J,Oe,"←","\\gets");$(j,J,Oe,">","\\gt",!0);$(j,J,Oe,"∈","\\in",!0);$(j,J,Oe,"","\\@not");$(j,J,Oe,"⊂","\\subset",!0);$(j,J,Oe,"⊃","\\supset",!0);$(j,J,Oe,"⊆","\\subseteq",!0);$(j,J,Oe,"⊇","\\supseteq",!0);$(j,be,Oe,"⊈","\\nsubseteq",!0);$(j,be,Oe,"⊉","\\nsupseteq",!0);$(j,J,Oe,"⊨","\\models");$(j,J,Oe,"←","\\leftarrow",!0);$(j,J,Oe,"≤","\\le");$(j,J,Oe,"≤","\\leq",!0);$(j,J,Oe,"<","\\lt",!0);$(j,J,Oe,"→","\\rightarrow",!0);$(j,J,Oe,"→","\\to");$(j,be,Oe,"≱","\\ngeq",!0);$(j,be,Oe,"≰","\\nleq",!0);$(j,J,Ap," ","\\ ");$(j,J,Ap," ","\\space");$(j,J,Ap," ","\\nobreakspace");$(At,J,Ap," ","\\ ");$(At,J,Ap," "," ");$(At,J,Ap," ","\\space");$(At,J,Ap," ","\\nobreakspace");$(j,J,Ap,null,"\\nobreak");$(j,J,Ap,null,"\\allowbreak");$(j,J,TI,",",",");$(j,J,TI,";",";");$(j,be,on,"⊼","\\barwedge",!0);$(j,be,on,"⊻","\\veebar",!0);$(j,J,on,"⊙","\\odot",!0);$(j,J,on,"⊕","\\oplus",!0);$(j,J,on,"⊗","\\otimes",!0);$(j,J,De,"∂","\\partial",!0);$(j,J,on,"⊘","\\oslash",!0);$(j,be,on,"⊚","\\circledcirc",!0);$(j,be,on,"⊡","\\boxdot",!0);$(j,J,on,"△","\\bigtriangleup");$(j,J,on,"▽","\\bigtriangledown");$(j,J,on,"†","\\dagger");$(j,J,on,"⋄","\\diamond");$(j,J,on,"⋆","\\star");$(j,J,on,"◃","\\triangleleft");$(j,J,on,"▹","\\triangleright");$(j,J,$u,"{","\\{");$(At,J,De,"{","\\{");$(At,J,De,"{","\\textbraceleft");$(j,J,nl,"}","\\}");$(At,J,De,"}","\\}");$(At,J,De,"}","\\textbraceright");$(j,J,$u,"{","\\lbrace");$(j,J,nl,"}","\\rbrace");$(j,J,$u,"[","\\lbrack",!0);$(At,J,De,"[","\\lbrack",!0);$(j,J,nl,"]","\\rbrack",!0);$(At,J,De,"]","\\rbrack",!0);$(j,J,$u,"(","\\lparen",!0);$(j,J,nl,")","\\rparen",!0);$(At,J,De,"<","\\textless",!0);$(At,J,De,">","\\textgreater",!0);$(j,J,$u,"⌊","\\lfloor",!0);$(j,J,nl,"⌋","\\rfloor",!0);$(j,J,$u,"⌈","\\lceil",!0);$(j,J,nl,"⌉","\\rceil",!0);$(j,J,De,"\\","\\backslash");$(j,J,De,"∣","|");$(j,J,De,"∣","\\vert");$(At,J,De,"|","\\textbar",!0);$(j,J,De,"∥","\\|");$(j,J,De,"∥","\\Vert");$(At,J,De,"∥","\\textbardbl");$(At,J,De,"~","\\textasciitilde");$(At,J,De,"\\","\\textbackslash");$(At,J,De,"^","\\textasciicircum");$(j,J,Oe,"↑","\\uparrow",!0);$(j,J,Oe,"⇑","\\Uparrow",!0);$(j,J,Oe,"↓","\\downarrow",!0);$(j,J,Oe,"⇓","\\Downarrow",!0);$(j,J,Oe,"↕","\\updownarrow",!0);$(j,J,Oe,"⇕","\\Updownarrow",!0);$(j,J,Va,"∐","\\coprod");$(j,J,Va,"⋁","\\bigvee");$(j,J,Va,"⋀","\\bigwedge");$(j,J,Va,"⨄","\\biguplus");$(j,J,Va,"⋂","\\bigcap");$(j,J,Va,"⋃","\\bigcup");$(j,J,Va,"∫","\\int");$(j,J,Va,"∫","\\intop");$(j,J,Va,"∬","\\iint");$(j,J,Va,"∭","\\iiint");$(j,J,Va,"∏","\\prod");$(j,J,Va,"∑","\\sum");$(j,J,Va,"⨂","\\bigotimes");$(j,J,Va,"⨁","\\bigoplus");$(j,J,Va,"⨀","\\bigodot");$(j,J,Va,"∮","\\oint");$(j,J,Va,"∯","\\oiint");$(j,J,Va,"∰","\\oiiint");$(j,J,Va,"⨆","\\bigsqcup");$(j,J,Va,"∫","\\smallint");$(At,J,$O,"…","\\textellipsis");$(j,J,$O,"…","\\mathellipsis");$(At,J,$O,"…","\\ldots",!0);$(j,J,$O,"…","\\ldots",!0);$(j,J,$O,"⋯","\\@cdots",!0);$(j,J,$O,"⋱","\\ddots",!0);$(j,J,De,"⋮","\\varvdots");$(j,J,ta,"ˊ","\\acute");$(j,J,ta,"ˋ","\\grave");$(j,J,ta,"¨","\\ddot");$(j,J,ta,"~","\\tilde");$(j,J,ta,"ˉ","\\bar");$(j,J,ta,"˘","\\breve");$(j,J,ta,"ˇ","\\check");$(j,J,ta,"^","\\hat");$(j,J,ta,"⃗","\\vec");$(j,J,ta,"˙","\\dot");$(j,J,ta,"˚","\\mathring");$(j,J,Pn,"","\\@imath");$(j,J,Pn,"","\\@jmath");$(j,J,De,"ı","ı");$(j,J,De,"ȷ","ȷ");$(At,J,De,"ı","\\i",!0);$(At,J,De,"ȷ","\\j",!0);$(At,J,De,"ß","\\ss",!0);$(At,J,De,"æ","\\ae",!0);$(At,J,De,"œ","\\oe",!0);$(At,J,De,"ø","\\o",!0);$(At,J,De,"Æ","\\AE",!0);$(At,J,De,"Œ","\\OE",!0);$(At,J,De,"Ø","\\O",!0);$(At,J,ta,"ˊ","\\'");$(At,J,ta,"ˋ","\\`");$(At,J,ta,"ˆ","\\^");$(At,J,ta,"˜","\\~");$(At,J,ta,"ˉ","\\=");$(At,J,ta,"˘","\\u");$(At,J,ta,"˙","\\.");$(At,J,ta,"¸","\\c");$(At,J,ta,"˚","\\r");$(At,J,ta,"ˇ","\\v");$(At,J,ta,"¨",'\\"');$(At,J,ta,"˝","\\H");$(At,J,ta,"◯","\\textcircled");var Age={"--":!0,"---":!0,"``":!0,"''":!0};$(At,J,De,"–","--",!0);$(At,J,De,"–","\\textendash");$(At,J,De,"—","---",!0);$(At,J,De,"—","\\textemdash");$(At,J,De,"‘","`",!0);$(At,J,De,"‘","\\textquoteleft");$(At,J,De,"’","'",!0);$(At,J,De,"’","\\textquoteright");$(At,J,De,"“","``",!0);$(At,J,De,"“","\\textquotedblleft");$(At,J,De,"”","''",!0);$(At,J,De,"”","\\textquotedblright");$(j,J,De,"°","\\degree",!0);$(At,J,De,"°","\\degree");$(At,J,De,"°","\\textdegree",!0);$(j,J,De,"£","\\pounds");$(j,J,De,"£","\\mathsterling",!0);$(At,J,De,"£","\\pounds");$(At,J,De,"£","\\textsterling",!0);$(j,be,De,"✠","\\maltese");$(At,be,De,"✠","\\maltese");var kte='0123456789/@."';for(var y7=0;y70)return dd(a,u,i,n,s.concat(d));if(l){var f,p;if(l==="boldsymbol"){var g=Kht(a,i,n,s,r);f=g.fontName,p=[g.fontClass]}else o?(f=Rge[l].fontName,p=[l]):(f=g4(l,n.fontWeight,n.fontShape),p=[l,n.fontWeight,n.fontShape]);if(xI(a,f,i).metrics)return dd(a,f,i,n,s.concat(p));if(Age.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var O=[],S=0;S{if(cm(e.classes)!==cm(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},tpt=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},Ol=function(t,n,r,i){var a=new yx(t,n,r,i);return yW(a),a},_ge=(e,t,n,r)=>new yx(e,t,n,r),npt=function(t,n,r){var i=Ol([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Qt(i.height),i.maxFontSize=1,i},rpt=function(t,n,r,i){var a=new bW(t,n,r,i);return yW(a),a},Cge=function(t){var n=new bx(t);return yW(n),n},ipt=function(t,n){return t instanceof bx?Ol([],[t],n):t},apt=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=Ol(["mspace"],[],t),r=oa(e,t);return n.style.marginRight=Qt(r),n},g4=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},Rge={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ige={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},lpt=function(t,n){var[r,i,a]=Ige[t],s=new dm(r),o=new dp([s],{width:Qt(i),height:Qt(a),style:"width:"+Qt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=_ge(["overlay"],[o],n);return l.height=a,l.style.height=Qt(a),l.style.width=Qt(i),l},Qe={fontMap:Rge,makeSymbol:dd,mathsym:Xht,makeSpan:Ol,makeSvgSpan:_ge,makeLineSpan:npt,makeAnchor:rpt,makeFragment:Cge,wrapFragment:ipt,makeVList:spt,makeOrd:Jht,makeGlue:opt,staticSvg:lpt,svgData:Ige,tryCombineChars:tpt},ia={number:3,unit:"mu"},vg={number:4,unit:"mu"},_h={number:5,unit:"mu"},upt={mord:{mop:ia,mbin:vg,mrel:_h,minner:ia},mop:{mord:ia,mop:ia,mrel:_h,minner:ia},mbin:{mord:vg,mop:vg,mopen:vg,minner:vg},mrel:{mord:_h,mop:_h,mopen:_h,minner:_h},mopen:{},mclose:{mop:ia,mbin:vg,mrel:_h,minner:ia},mpunct:{mord:ia,mop:ia,mrel:_h,mopen:ia,mclose:ia,mpunct:ia,minner:ia},minner:{mord:ia,mop:ia,mbin:vg,mrel:_h,mopen:ia,mpunct:ia,minner:ia}},cpt={mord:{mop:ia},mop:{mord:ia,mop:ia},mbin:{},mrel:{},mopen:{},mclose:{mop:ia},mpunct:{},minner:{mop:ia}},Nge={},MC={},$C={};function nn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var T=S.classes[0],w=O.classes[0];T==="mbin"&&Nn.contains(fpt,w)?S.classes[0]="mord":w==="mbin"&&Nn.contains(dpt,T)&&(O.classes[0]="mord")},{node:f},p,g),Ite(a,(O,S)=>{var T=vM(S),w=vM(O),x=T&&w?O.hasClass("mtight")?cpt[T][w]:upt[T][w]:null;if(x)return Qe.makeGlue(x,u)},{node:f},p,g),a},Ite=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sp=>{t.splice(f+1,0,p),s++})(s)}i&&t.pop()},Dge=function(t){return t instanceof bx||t instanceof bW||t instanceof yx&&t.hasClass("enclosing")?t:null},mpt=function e(t,n){var r=Dge(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},vM=function(t,n){return t?(n&&(t=mpt(t,n)),ppt[t.classes[0]]||null):null},nT=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return fp(n.concat(r))},Br=function(t,n,r){if(!t)return fp();if(MC[t.type]){var i=MC[t.type](t,n);if(r&&n.size!==r.size){i=fp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Mt("Got group of unknown type: '"+t.type+"'")};function b4(e,t){var n=fp(["base"],e,t),r=fp(["strut"]);return r.style.height=Qt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Qt(-n.depth)),n.children.unshift(r),n}function OM(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=cs(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(b4(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(b4(s,t));var u;n?(u=b4(cs(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var d=fp(["katex-html"],a);if(d.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Qt(d.height+d.depth),d.depth&&(f.style.verticalAlign=Qt(-d.depth))}return d}function Pge(e){return new bx(e)}class cc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=cm(this.classes));for(var r=0;r0&&(t+=' class ="'+Nn.escape(cm(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class M2{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return Nn.escape(this.toText())}toText(){return this.text}}class gpt{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Qt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Nt={MathNode:cc,TextNode:M2,SpaceNode:gpt,newDocumentFragment:Pge},Rc=function(t,n,r){return Ri[n][t]&&Ri[n][t].replace&&t.charCodeAt(0)!==55349&&!(Age.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ri[n][t].replace),new Nt.TextNode(t)},vW=function(t){return t.length===1?t[0]:new Nt.MathNode("mrow",t)},OW=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(Nn.contains(["\\imath","\\jmath"],a))return null;Ri[i][a]&&Ri[i][a].replace&&(a=Ri[i][a].replace);var s=Qe.fontMap[r].fontName;return gW(a,s,i)?Qe.fontMap[r].variant:null},Ml=function(t,n,r){if(t.length===1){var i=Ei(t[0],n);return r&&i instanceof cc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},fm=function(t,n,r){return vW(Ml(t,n,r))},Ei=function(t,n){if(!t)return new Nt.MathNode("mrow");if($C[t.type]){var r=$C[t.type](t,n);return r}else throw new Mt("Got group of unknown type: '"+t.type+"'")};function Nte(e,t,n,r,i){var a=Ml(e,n),s;a.length===1&&a[0]instanceof cc&&Nn.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Nt.MathNode("mrow",a);var o=new Nt.MathNode("annotation",[new Nt.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Nt.MathNode("semantics",[s,o]),u=new Nt.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var d=i?"katex":"katex-mathml";return Qe.makeSpan([d],[u])}var Lge=function(t){return new Mh({style:t.displayMode?Ln.DISPLAY:Ln.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Mge=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=Qe.makeSpan(r,[t])}return t},bpt=function(t,n,r){var i=Lge(r),a;if(r.output==="mathml")return Nte(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=OM(t,i);a=Qe.makeSpan(["katex"],[s])}else{var o=Nte(t,n,i,r.displayMode,!1),l=OM(t,i);a=Qe.makeSpan(["katex"],[o,l])}return Mge(a,r)},ypt=function(t,n,r){var i=Lge(r),a=OM(t,i),s=Qe.makeSpan(["katex"],[a]);return Mge(s,r)},vpt={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},Opt=function(t){var n=new Nt.MathNode("mo",[new Nt.TextNode(vpt[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},Spt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},Ept=function(t){return t.type==="ordgroup"?t.body.length:1},wpt=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(Nn.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,d=Ept(u.base),f,p,g;if(d>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,p=l+"4"):(f=312,o=2340,g=.34,p="tilde4");else{var O=[1,1,2,2,3,3][d];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][O],f=[0,239,300,360,420][O],g=[0,.24,.3,.3,.36,.42][O],p=l+O):(o=[0,600,1033,2339,2340][O],f=[0,260,286,306,312][O],g=[0,.26,.286,.3,.306,.34][O],p="tilde"+O)}var S=new dm(p),T=new dp([S],{width:"100%",height:Qt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:Qe.makeSvgSpan([],[T],n),minWidth:0,height:g}}else{var w=[],x=Spt[l],[k,_,I]=x,N=I/1e3,D=k.length,L,U;if(D===1){var B=x[3];L=["hide-tail"],U=[B]}else if(D===2)L=["halfarrow-left","halfarrow-right"],U=["xMinYMin","xMaxYMin"];else if(D===3)L=["brace-left","brace-center","brace-right"],U=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support + `+D+" children.");for(var W=0;W0&&(i.style.minWidth=Qt(a)),i},Tpt=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=Qe.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new bM({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new bM({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var d=new dp(u,{width:"100%",height:Qt(o)});s=Qe.makeSvgSpan([],[d],a)}return s.height=o,s.style.height=Qt(o),s},hp={encloseSpan:Tpt,mathMLnode:Opt,svgSpan:wpt};function sr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function SW(e){var t=kI(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function kI(e){return e&&(e.type==="atom"||Yht.hasOwnProperty(e.type))?e:null}var EW=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=sr(e.base,"accent"),n=r.base,e.base=n,i=qht(Br(e,t)),e.base=r):(r=sr(e,"accent"),n=r.base);var a=Br(n,t.havingCrampedStyle()),s=r.isShifty&&Nn.isCharacterBox(n),o=0;if(s){var l=Nn.getBaseElem(n),u=Br(l,t.havingCrampedStyle());o=xte(u).skew}var d=r.label==="\\c",f=d?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),p;if(r.isStretchy)p=hp.svgSpan(r,t),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:p,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Qt(2*o)+")",marginLeft:Qt(2*o)}:void 0}]},t);else{var g,O;r.label==="\\vec"?(g=Qe.staticSvg("vec",t),O=Qe.svgData.vec[1]):(g=Qe.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=xte(g),g.italic=0,O=g.width,d&&(f+=g.depth)),p=Qe.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(p.classes.push("accent-full"),f=a.height);var T=o;S||(T-=O/2),p.style.left=Qt(T),r.label==="\\textcircled"&&(p.style.top=".2em"),p=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:p}]},t)}var w=Qe.makeSpan(["mord","accent"],[p],t);return i?(i.children[0]=w,i.height=Math.max(w.height,i.height),i.classes[0]="mord",i):w},$ge=(e,t)=>{var n=e.isStretchy?hp.mathMLnode(e.label):new Nt.MathNode("mo",[Rc(e.label,e.mode)]),r=new Nt.MathNode("mover",[Ei(e.base,t),n]);return r.setAttribute("accent","true"),r},xpt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));nn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=FC(t[0]),r=!xpt.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:EW,mathmlBuilder:$ge});nn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:EW,mathmlBuilder:$ge});nn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Br(e.base,t),r=hp.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=hp.mathMLnode(e.label),r=new Nt.MathNode("munder",[Ei(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var y4=e=>{var t=new Nt.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};nn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=Qe.wrapFragment(Br(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=Qe.wrapFragment(Br(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=hp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var d;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else d=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return d.children[0].children[0].children[1].classes.push("svg-align"),Qe.makeSpan(["mrel","x-arrow"],[d],t)},mathmlBuilder(e,t){var n=hp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=y4(Ei(e.body,t));if(e.below){var a=y4(Ei(e.below,t));r=new Nt.MathNode("munderover",[n,a,i])}else r=new Nt.MathNode("mover",[n,i])}else if(e.below){var s=y4(Ei(e.below,t));r=new Nt.MathNode("munder",[n,s])}else r=y4(),r=new Nt.MathNode("mover",[n,r]);return r}});var kpt=Qe.makeSpan;function Fge(e,t){var n=cs(e.body,t,!0);return kpt([e.mclass],n,t)}function Bge(e,t){var n,r=Ml(e.body,t);return e.mclass==="minner"?n=new Nt.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Nt.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Nt.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}nn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:La(i),isCharacterBox:Nn.isCharacterBox(i)}},htmlBuilder:Fge,mathmlBuilder:Bge});var AI=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};nn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:AI(t[0]),body:La(t[1]),isCharacterBox:Nn.isCharacterBox(t[1])}}});nn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=AI(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:La(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:Nn.isCharacterBox(l)}},htmlBuilder:Fge,mathmlBuilder:Bge});nn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:AI(t[0]),body:La(t[0])}},htmlBuilder(e,t){var n=cs(e.body,t,!0),r=Qe.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Ml(e.body,t),r=new Nt.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var Apt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Dte=()=>({type:"styling",body:[],mode:"math",style:"display"}),Pte=e=>e.type==="textord"&&e.text==="@",_pt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function Cpt(e,t,n){var r=Apt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function Rpt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Mt("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var p=!0,g=l+1;gAV=|." after @',s[l]);var O=Cpt(u,d,e),S={type:"styling",body:[O],mode:"math",style:"display"};r.push(S),o=Dte()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var T=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:T,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}nn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=Qe.wrapFragment(Br(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Qt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Nt.MathNode("mrow",[Ei(e.label,t)]);return n=new Nt.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Nt.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});nn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=Qe.wrapFragment(Br(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Nt.MathNode("mrow",[Ei(e.fragment,t)])}});nn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=sr(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Mt("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var Uge=(e,t)=>{var n=cs(e.body,t.withColor(e.color),!1);return Qe.makeFragment(n)},zge=(e,t)=>{var n=Ml(e.body,t.withColor(e.color)),r=new Nt.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};nn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=sr(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:La(i)}},htmlBuilder:Uge,mathmlBuilder:zge});nn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=sr(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:Uge,mathmlBuilder:zge});nn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&sr(i,"size").value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Qt(oa(e.size,t)))),n},mathmlBuilder(e,t){var n=new Nt.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Qt(oa(e.size,t)))),n}});var SM={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},jge=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Mt("Expected a control sequence",e);return t},Ipt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Hge=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};nn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(SM[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=SM[r.text]),sr(t.parseFunction(),"internal");throw new Mt("Invalid token after macro prefix",r)}});nn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Mt("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Mt('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Mt('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Mt("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===SM[n]),{type:"internal",mode:t.mode}}});nn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=jge(t.gullet.popToken());t.gullet.consumeSpaces();var i=Ipt(t);return Hge(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});nn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=jge(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Hge(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var YE=function(t,n,r){var i=Ri.math[t]&&Ri.math[t].replace,a=gW(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},wW=function(t,n,r,i){var a=r.havingBaseStyle(n),s=Qe.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Qge=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Qt(a),t.height-=a,t.depth+=a},Npt=function(t,n,r,i,a,s){var o=Qe.makeSymbol(t,"Main-Regular",a,i),l=wW(o,n,i,s);return r&&Qge(l,i,n),l},Dpt=function(t,n,r,i){return Qe.makeSymbol(t,"Size"+n+"-Regular",r,i)},Wge=function(t,n,r,i,a,s){var o=Dpt(t,n,a,i),l=wW(Qe.makeSpan(["delimsizing","size"+n],[o],i),Ln.TEXT,i,s);return r&&Qge(l,i,Ln.TEXT),l},E7=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=Qe.makeSpan(["delimsizinginner",i],[Qe.makeSpan([],[Qe.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},w7=function(t,n,r){var i=Af["Size4-Regular"][t.charCodeAt(0)]?Af["Size4-Regular"][t.charCodeAt(0)][4]:Af["Size1-Regular"][t.charCodeAt(0)][4],a=new dm("inner",Bht(t,Math.round(1e3*n))),s=new dp([a],{width:Qt(i),height:Qt(n),style:"width:"+Qt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=Qe.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Qt(n),o.style.width=Qt(i),{type:"elem",elem:o}},EM=.008,v4={type:"kern",size:-1*EM},Ppt=["|","\\lvert","\\rvert","\\vert"],Lpt=["\\|","\\lVert","\\rVert","\\Vert"],Vge=function(t,n,r,i,a,s){var o,l,u,d,f="",p=0;o=u=d=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=d="⏐":t==="\\Uparrow"?u=d="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",d="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",d="\\Downarrow"):Nn.contains(Ppt,t)?(u="∣",f="vert",p=333):Nn.contains(Lpt,t)?(u="∥",f="doublevert",p=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",d="⎣",g="Size4-Regular",f="lbrack",p=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",d="⎦",g="Size4-Regular",f="rbrack",p=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",d="⎣",g="Size4-Regular",f="lfloor",p=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=d="⎢",g="Size4-Regular",f="lceil",p=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",d="⎦",g="Size4-Regular",f="rfloor",p=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=d="⎥",g="Size4-Regular",f="rceil",p=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",d="⎝",g="Size4-Regular",f="lparen",p=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",d="⎠",g="Size4-Regular",f="rparen",p=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",d="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",d="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",d="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",d="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",d="⎩",u="⎪",g="Size4-Regular");var O=YE(o,g,a),S=O.height+O.depth,T=YE(u,g,a),w=T.height+T.depth,x=YE(d,g,a),k=x.height+x.depth,_=0,I=1;if(l!==null){var N=YE(l,g,a);_=N.height+N.depth,I=2}var D=S+k+_,L=Math.max(0,Math.ceil((n-D)/(I*w))),U=D+L*I*w,B=i.fontMetrics().axisHeight;r&&(B*=i.sizeMultiplier);var W=U/2-B,V=[];if(f.length>0){var re=U-S-k,ee=Math.round(U*1e3),q=Uht(f,Math.round(re*1e3)),ne=new dm(f,q),K=(p/1e3).toFixed(3)+"em",G=(ee/1e3).toFixed(3)+"em",ie=new dp([ne],{width:K,height:G,viewBox:"0 0 "+p+" "+ee}),H=Qe.makeSvgSpan([],[ie],i);H.height=ee/1e3,H.style.width=K,H.style.height=G,V.push({type:"elem",elem:H})}else{if(V.push(E7(d,g,a)),V.push(v4),l===null){var Re=U-S-k+2*EM;V.push(w7(u,Re,i))}else{var Se=(U-S-k-_)/2+2*EM;V.push(w7(u,Se,i)),V.push(v4),V.push(E7(l,g,a)),V.push(v4),V.push(w7(u,Se,i))}V.push(v4),V.push(E7(o,g,a))}var Z=i.havingBaseStyle(Ln.TEXT),ke=Qe.makeVList({positionType:"bottom",positionData:W,children:V},Z);return wW(Qe.makeSpan(["delimsizing","mult"],[ke],Z),Ln.TEXT,i,s)},T7=80,x7=.08,k7=function(t,n,r,i,a){var s=Fht(t,i,r),o=new dm(t,s),l=new dp([o],{width:"400em",height:Qt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return Qe.makeSvgSpan(["hide-tail"],[l],a)},Mpt=function(t,n){var r=n.havingBaseSizing(),i=Zge("\\surd",t*r.sizeMultiplier,Yge,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,d=0,f;return i.type==="small"?(d=1e3+1e3*s+T7,t<1?a=1:t<1.4&&(a=.7),l=(1+s+x7)/a,u=(1+s)/a,o=k7("sqrtMain",l,d,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(d=(1e3+T7)*$2[i.size],u=($2[i.size]+s)/a,l=($2[i.size]+s+x7)/a,o=k7("sqrtSize"+i.size,l,d,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+x7,u=t+s,d=Math.floor(1e3*t+s)+T7,o=k7("sqrtTall",l,d,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Qt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},qge=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],$pt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Gge=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],$2=[0,1.2,1.8,2.4,3],Fpt=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),Nn.contains(qge,t)||Nn.contains(Gge,t))return Wge(t,n,!1,r,i,a);if(Nn.contains($pt,t))return Vge(t,$2[n],!1,r,i,a);throw new Mt("Illegal delimiter: '"+t+"'")},Bpt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],Upt=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"stack"}],Yge=[{type:"small",style:Ln.SCRIPTSCRIPT},{type:"small",style:Ln.SCRIPT},{type:"small",style:Ln.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],zpt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},Zge=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},Xge=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;Nn.contains(Gge,t)?o=Bpt:Nn.contains(qge,t)?o=Yge:o=Upt;var l=Zge(t,n,o,i);return l.type==="small"?Npt(t,l.style,r,i,a,s):l.type==="large"?Wge(t,l.size,r,i,a,s):Vge(t,n,r,i,a,s)},jpt=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,d=Math.max(n-o,r+o),f=Math.max(d/500*l,2*d-u);return Xge(t,f,!0,i,a,s)},Kh={sqrtImage:Mpt,sizedDelim:Fpt,sizeToMaxHeight:$2,customSizedDelim:Xge,leftRightDelim:jpt},Lte={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},Hpt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function _I(e,t){var n=kI(e);if(n&&Nn.contains(Hpt,n.text))return n;throw n?new Mt("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Mt("Invalid delimiter type '"+e.type+"'",e)}nn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=_I(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Lte[e.funcName].size,mclass:Lte[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?Qe.makeSpan([e.mclass]):Kh.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Rc(e.delim,e.mode));var n=new Nt.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Qt(Kh.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Mte(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}nn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Mt("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:_I(t[0],e).text,color:n}}});nn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_I(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=sr(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Mte(e);for(var n=cs(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Mte(e);var n=Ml(e.body,t);if(e.left!=="."){var r=new Nt.MathNode("mo",[Rc(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Nt.MathNode("mo",[Rc(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return vW(n)}});nn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=_I(t[0],e);if(!e.parser.leftrightDepth)throw new Mt("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=nT(t,[]);else{n=Kh.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Rc("|","text"):Rc(e.delim,e.mode),r=new Nt.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var TW=(e,t)=>{var n=Qe.wrapFragment(Br(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=Nn.isCharacterBox(e.body);if(r==="sout")a=Qe.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=oa({number:.6,unit:"pt"},t),u=oa({number:.35,unit:"ex"},t),d=t.havingBaseSizing();i=i/d.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Qt(f/2+l);var p=Math.floor(1e3*f*i),g=Mht(p),O=new dp([new dm("phase",g)],{width:"400em",height:Qt(p/1e3),viewBox:"0 0 400000 "+p,preserveAspectRatio:"xMinYMin slice"});a=Qe.makeSvgSpan(["hide-tail"],[O],t),a.style.height=Qt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,T=0,w=0;/box/.test(r)?(w=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:w),T=S):r==="angl"?(w=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*w,T=Math.max(0,.25-n.depth)):(S=o?.2:0,T=S),a=hp.encloseSpan(n,r,S,T,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Qt(w)):r==="angl"&&w!==.049&&(a.style.borderTopWidth=Qt(w),a.style.borderRightWidth=Qt(w)),s=n.depth+T,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?Qe.makeSpan(["mord","cancel-lap"],[x],t):Qe.makeSpan(["mord"],[x],t)},xW=(e,t)=>{var n=0,r=new Nt.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[Ei(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};nn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=sr(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:TW,mathmlBuilder:xW});nn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=sr(t[0],"color-token").color,s=sr(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:TW,mathmlBuilder:xW});nn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});nn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:TW,mathmlBuilder:xW});nn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Kge={};function eh(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Mt("{"+e.envName+"} can be used only in display mode.")};function kW(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function xm(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:d,maxNumCols:f,leqno:p}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new Mt("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var O=[],S=[O],T=[],w=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function _(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new Ec("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),w.push($te(e));;){var I=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),I={type:"ordgroup",mode:e.mode,body:I},n&&(I={type:"styling",mode:e.mode,style:n,body:[I]}),O.push(I);var N=e.fetch().text;if(N==="&"){if(f&&O.length===f){if(u||o)throw new Mt("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(N==="\\end"){_(),O.length===1&&I.type==="styling"&&I.body[0].body.length===0&&(S.length>1||!d)&&S.pop(),w.length0&&(k+=.25),u.push({pos:k,isDashed:de[Ce]})}for(_(s[0]),r=0;r0&&(W+=x,Dde))for(r=0;r=o)){var Xe=void 0;(i>0||t.hskipBeforeAndAfter)&&(Xe=Nn.deflt(Se.pregap,p),Xe!==0&&(q=Qe.makeSpan(["arraycolsep"],[]),q.style.width=Qt(Xe),ee.push(q)));var We=[];for(r=0;r0){for(var Pt=Qe.makeLineSpan("hline",n,d),jt=Qe.makeLineSpan("hdashline",n,d),ut=[{type:"elem",elem:l,shift:0}];u.length>0;){var Ot=u.pop(),yt=Ot.pos-V;Ot.isDashed?ut.push({type:"elem",elem:jt,shift:yt}):ut.push({type:"elem",elem:Pt,shift:yt})}l=Qe.makeVList({positionType:"individualShift",children:ut},n)}if(K.length===0)return Qe.makeSpan(["mord"],[l],n);var Ut=Qe.makeVList({positionType:"individualShift",children:K},n);return Ut=Qe.makeSpan(["tag"],[Ut],n),Qe.makeFragment([l,Ut])},Qpt={c:"center ",l:"left ",r:"right "},nh=function(t,n){for(var r=[],i=new Nt.MathNode("mtd",[],["mtr-glue"]),a=new Nt.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var O=t.cols,S="",T=!1,w=0,x=O.length;O[0].type==="separator"&&(p+="top ",w=1),O[O.length-1].type==="separator"&&(p+="bottom ",x-=1);for(var k=w;k0?"left ":"",p+=L[L.length-1].length>0?"right ":"";for(var U=1;U-1?"alignat":"align",a=t.envName==="split",s=xm(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:kW(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var d="",f=0;f0&&g&&(T=1),r[O]={type:"align",align:S,pregap:T,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};eh({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=kI(t[0]),r=n?[t[0]]:sr(t[0],"ordgroup").body,i=r.map(function(s){var o=SW(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Mt("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return xm(e.parser,a,AW(e.envName))},htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Mt("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=xm(e.parser,r,AW(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=xm(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=kI(t[0]),r=n?[t[0]]:sr(t[0],"ordgroup").body,i=r.map(function(s){var o=SW(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Mt("Unknown column alignment: "+l,s)});if(i.length>1)throw new Mt("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=xm(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Mt("{subarray} can contain only one column");return a},htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=xm(e.parser,t,AW(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:e1e,htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){Nn.contains(["gather","gather*"],e.envName)&&CI(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:kW(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return xm(e.parser,t,"display")},htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:e1e,htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){CI(e);var t={autoTag:kW(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return xm(e.parser,t,"display")},htmlBuilder:th,mathmlBuilder:nh});eh({type:"array",names:["CD"],props:{numArgs:0},handler(e){return CI(e),Rpt(e.parser)},htmlBuilder:th,mathmlBuilder:nh});oe("\\nonumber","\\gdef\\@eqnsw{0}");oe("\\notag","\\nonumber");nn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Mt(e.funcName+" valid only within array environment")}});var Fte=Kge;nn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Mt("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Br(e.body,r)},n1e=(e,t)=>{var n=e.font,r=t.withFont(n);return Ei(e.body,r)},Bte={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};nn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=FC(t[0]),a=r;return a in Bte&&(a=Bte[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:t1e,mathmlBuilder:n1e});nn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=Nn.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:AI(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});nn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:t1e,mathmlBuilder:n1e});var r1e=(e,t)=>{var n=t;return e==="display"?n=n.id>=Ln.SCRIPT.id?n.text():Ln.DISPLAY:e==="text"&&n.size===Ln.DISPLAY.size?n=Ln.TEXT:e==="script"?n=Ln.SCRIPT:e==="scriptscript"&&(n=Ln.SCRIPTSCRIPT),n},_W=(e,t)=>{var n=r1e(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Br(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?O=3*p:O=7*p,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,O=p):(g=t.fontMetrics().num3,O=3*p),S=t.fontMetrics().denom2);var T;if(d){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new Nt.MathNode("mfrac",[Ei(e.numer,t),Ei(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=oa(e.barSize,t);n.setAttribute("linethickness",Qt(r))}var i=r1e(e.size,t.style);if(i.size!==t.style.size){n=new Nt.MathNode("mstyle",[n]);var a=i.size===Ln.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Nt.MathNode("mo",[new Nt.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Nt.MathNode("mo",[new Nt.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return vW(s)}return n};nn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:_W,mathmlBuilder:CW});nn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});nn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var Ute=["display","text","script","scriptscript"],zte=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};nn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=FC(t[0]),s=a.type==="atom"&&a.family==="open"?zte(a.text):null,o=FC(t[1]),l=o.type==="atom"&&o.family==="close"?zte(o.text):null,u=sr(t[2],"size"),d,f=null;u.isBlank?d=!0:(f=u.value,d=f.number>0);var p="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var O=sr(g.body[0],"textord");p=Ute[Number(O.text)]}}else g=sr(g,"textord"),p=Ute[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:d,barSize:f,leftDelim:s,rightDelim:l,size:p}},htmlBuilder:_W,mathmlBuilder:CW});nn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:sr(t[0],"size").value,token:i}}});nn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Sht(sr(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:_W,mathmlBuilder:CW});var i1e=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Br(e.sup,t.havingStyle(n.sup()),t):Br(e.sub,t.havingStyle(n.sub()),t),i=sr(e.base,"horizBrace")):i=sr(e,"horizBrace");var a=Br(i.base,t.havingBaseStyle(Ln.DISPLAY)),s=hp.svgSpan(i,t),o;if(i.isOver?(o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=Qe.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=Qe.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return Qe.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},Wpt=(e,t)=>{var n=hp.mathMLnode(e.label);return new Nt.MathNode(e.isOver?"mover":"munder",[Ei(e.base,t),n])};nn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:i1e,mathmlBuilder:Wpt});nn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=sr(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:La(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=cs(e.body,t,!1);return Qe.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=fm(e.body,t);return n instanceof cc||(n=new cc("mrow",[n])),n.setAttribute("href",e.href),n}});nn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=sr(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=sr(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),d=0;d{var n=cs(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=Qe.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>fm(e.body,t)});nn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:La(t[0]),mathml:La(t[1])}},htmlBuilder:(e,t)=>{var n=cs(e.html,t,!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>fm(e.mathml,t)});var A7=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Mt("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!wge(r))throw new Mt("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};nn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=sr(n[0],"raw").string,u=l.split(","),d=0;d{var n=oa(e.height,t),r=0;e.totalheight.number>0&&(r=oa(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=oa(e.width,t));var a={height:Qt(n+r)};i>0&&(a.width=Qt(i)),r>0&&(a.verticalAlign=Qt(-r));var s=new Wht(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Nt.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=oa(e.height,t),i=0;if(e.totalheight.number>0&&(i=oa(e.totalheight,t)-r,n.setAttribute("valign",Qt(-i))),n.setAttribute("height",Qt(r+i)),e.width.number>0){var a=oa(e.width,t);n.setAttribute("width",Qt(a))}return n.setAttribute("src",e.src),n}});nn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=sr(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return Qe.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=oa(e.dimension,t);return new Nt.SpaceNode(n)}});nn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=Qe.makeSpan([],[Br(e.body,t)]),n=Qe.makeSpan(["inner"],[n],t)):n=Qe.makeSpan(["inner"],[Br(e.body,t)]);var r=Qe.makeSpan(["fix"],[]),i=Qe.makeSpan([e.alignment],[n,r],t),a=Qe.makeSpan(["strut"]);return a.style.height=Qt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Qt(-i.depth)),i.children.unshift(a),i=Qe.makeSpan(["thinbox"],[i],t),Qe.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Nt.MathNode("mpadded",[Ei(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});nn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});nn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Mt("Mismatched "+e.funcName)}});var jte=(e,t)=>{switch(t.style.size){case Ln.DISPLAY.size:return e.display;case Ln.TEXT.size:return e.text;case Ln.SCRIPT.size:return e.script;case Ln.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};nn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:La(t[0]),text:La(t[1]),script:La(t[2]),scriptscript:La(t[3])}},htmlBuilder:(e,t)=>{var n=jte(e,t),r=cs(n,t,!1);return Qe.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=jte(e,t);return fm(n,t)}});var a1e=(e,t,n,r,i,a,s)=>{e=Qe.makeSpan([],[e]);var o=n&&Nn.isCharacterBox(n),l,u;if(t){var d=Br(t,r.havingStyle(i.sup()),r);u={elem:d,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-d.depth)}}if(n){var f=Br(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var p;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Qt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var O=e.height-s;p=Qe.makeVList({positionType:"top",positionData:O,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Qt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;p=Qe.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Qt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var T=[p];if(l&&a!==0&&!o){var w=Qe.makeSpan(["mspace"],[],r);w.style.marginRight=Qt(a),T.unshift(w)}return Qe.makeSpan(["mop","op-limits"],T,r)},s1e=["\\smallint"],FO=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=sr(e.base,"op"),i=!0):a=sr(e,"op");var s=t.style,o=!1;s.size===Ln.DISPLAY.size&&a.symbol&&!Nn.contains(s1e,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",d="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(d=a.name.slice(1),a.name=d==="oiint"?"\\iint":"\\iiint"),l=Qe.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),d.length>0){var f=l.italic,p=Qe.staticSvg(d+"Size"+(o?"2":"1"),t);l=Qe.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:p,shift:o?.08:0}]},t),a.name="\\"+d,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=cs(a.body,t,!0);g.length===1&&g[0]instanceof Cc?(l=g[0],l.classes[0]="mop"):l=Qe.makeSpan(["mop"],g,t)}else{for(var O=[],S=1;S{var n;if(e.symbol)n=new cc("mo",[Rc(e.name,e.mode)]),Nn.contains(s1e,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new cc("mo",Ml(e.body,t));else{n=new cc("mi",[new M2(e.name.slice(1))]);var r=new cc("mo",[Rc("⁡","text")]);e.parentIsSupSub?n=new cc("mrow",[n,r]):n=Pge([n,r])}return n},Vpt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};nn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=Vpt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:FO,mathmlBuilder:vx});nn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:La(r)}},htmlBuilder:FO,mathmlBuilder:vx});var qpt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};nn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:FO,mathmlBuilder:vx});nn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:FO,mathmlBuilder:vx});nn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=qpt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:FO,mathmlBuilder:vx});var o1e=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=sr(e.base,"operatorname"),i=!0):a=sr(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var p=f.text;return typeof p=="string"?{type:"textord",mode:f.mode,text:p}:f}),l=cs(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Ml(e.body,t.withFont("mathrm")),r=!0,i=0;id.toText()).join("");n=[new Nt.TextNode(o)]}var l=new Nt.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Nt.MathNode("mo",[Rc("⁡","text")]);return e.parentIsSupSub?new Nt.MathNode("mrow",[l,u]):Nt.newDocumentFragment([l,u])};nn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:La(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:o1e,mathmlBuilder:Gpt});oe("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");G1({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?Qe.makeFragment(cs(e.body,t,!1)):Qe.makeSpan(["mord"],cs(e.body,t,!0),t)},mathmlBuilder(e,t){return fm(e.body,t,!0)}});nn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle()),r=Qe.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return Qe.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[new Nt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Nt.MathNode("mover",[Ei(e.body,t),n]);return r.setAttribute("accent","true"),r}});nn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:La(r)}},htmlBuilder:(e,t)=>{var n=cs(e.body,t.withPhantom(),!1);return Qe.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Ml(e.body,t);return new Nt.MathNode("mphantom",n)}});nn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan([],[Br(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Ml(La(e.body),t),r=new Nt.MathNode("mphantom",n),i=new Nt.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});nn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=Qe.makeSpan(["inner"],[Br(e.body,t.withPhantom())]),r=Qe.makeSpan(["fix"],[]);return Qe.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Ml(La(e.body),t),r=new Nt.MathNode("mphantom",n),i=new Nt.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});nn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=sr(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Br(e.body,t),r=oa(e.dy,t);return Qe.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mpadded",[Ei(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});nn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});nn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=sr(t[0],"size"),s=sr(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&sr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=Qe.makeSpan(["mord","rule"],[],t),r=oa(e.width,t),i=oa(e.height,t),a=e.shift?oa(e.shift,t):0;return n.style.borderRightWidth=Qt(r),n.style.borderTopWidth=Qt(i),n.style.bottom=Qt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=oa(e.width,t),r=oa(e.height,t),i=e.shift?oa(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Nt.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Qt(n)),s.setAttribute("height",Qt(r));var o=new Nt.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Qt(i)):(o.setAttribute("height",Qt(i)),o.setAttribute("depth",Qt(-i))),o.setAttribute("voffset",Qt(i)),o}});function l1e(e,t,n){for(var r=cs(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return l1e(e.body,n,t)};nn({type:"sizing",names:Hte,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:Hte.indexOf(r)+1,body:a}},htmlBuilder:Ypt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Ml(e.body,n),i=new Nt.MathNode("mstyle",r);return i.setAttribute("mathsize",Qt(n.sizeMultiplier)),i}});nn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&sr(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=Qe.makeSpan([],[Br(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Nt.MathNode("mpadded",[Ei(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});nn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Br(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=Qe.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var p=l.height-n.height-s-u;n.style.paddingLeft=Qt(d);var g=Qe.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+p)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var O=t.havingStyle(Ln.SCRIPTSCRIPT),S=Br(e.index,O,t),T=.6*(g.height-g.depth),w=Qe.makeVList({positionType:"shift",positionData:-T,children:[{type:"elem",elem:S}]},t),x=Qe.makeSpan(["root"],[w]);return Qe.makeSpan(["mord","sqrt"],[x,g],t)}else return Qe.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Nt.MathNode("mroot",[Ei(n,t),Ei(r,t)]):new Nt.MathNode("msqrt",[Ei(n,t)])}});var Qte={display:Ln.DISPLAY,text:Ln.TEXT,script:Ln.SCRIPT,scriptscript:Ln.SCRIPTSCRIPT};nn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=Qte[e.style],r=t.havingStyle(n).withFont("");return l1e(e.body,r,t)},mathmlBuilder(e,t){var n=Qte[e.style],r=t.havingStyle(n),i=Ml(e.body,r),a=new Nt.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var Zpt=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Ln.DISPLAY.size||r.alwaysHandleSupSub);return i?FO:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Ln.DISPLAY.size||r.limits);return a?o1e:null}else{if(r.type==="accent")return Nn.isCharacterBox(r.base)?EW:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?i1e:null}else return null}else return null};G1({type:"supsub",htmlBuilder(e,t){var n=Zpt(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Br(r,t),o,l,u=t.fontMetrics(),d=0,f=0,p=r&&Nn.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Br(i,g,t),p||(d=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var O=t.havingStyle(t.style.sub());l=Br(a,O,t),p||(f=s.depth+O.fontMetrics().subDrop*O.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Ln.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var T=t.sizeMultiplier,w=Qt(.5/u.ptPerEm/T),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Cc||k)&&(x=Qt(-s.italic))}var _;if(o&&l){d=Math.max(d,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var I=u.defaultRuleThickness,N=4*I;if(d-o.depth-(l.height-f)0&&(d+=D,f-=D)}var L=[{type:"elem",elem:l,shift:f,marginRight:w,marginLeft:x},{type:"elem",elem:o,shift:-d,marginRight:w}];_=Qe.makeVList({positionType:"individualShift",children:L},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var U=[{type:"elem",elem:l,marginLeft:x,marginRight:w}];_=Qe.makeVList({positionType:"shift",positionData:f,children:U},t)}else if(o)d=Math.max(d,S,o.depth+.25*u.xHeight),_=Qe.makeVList({positionType:"shift",positionData:-d,children:[{type:"elem",elem:o,marginRight:w}]},t);else throw new Error("supsub must have either sup or sub.");var B=vM(s,"right")||"mord";return Qe.makeSpan([B],[s,Qe.makeSpan(["msupsub"],[_])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[Ei(e.base,t)];e.sub&&a.push(Ei(e.sub,t)),e.sup&&a.push(Ei(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Ln.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Ln.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Ln.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Ln.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Ln.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Ln.DISPLAY)?s="mover":s="msup"}return new Nt.MathNode(s,a)}});G1({type:"atom",htmlBuilder(e,t){return Qe.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[Rc(e.text,e.mode)]);if(e.family==="bin"){var r=OW(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var u1e={mi:"italic",mn:"normal",mtext:"normal"};G1({type:"mathord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Nt.MathNode("mi",[Rc(e.text,e.mode,t)]),r=OW(e,t)||"italic";return r!==u1e[n.type]&&n.setAttribute("mathvariant",r),n}});G1({type:"textord",htmlBuilder(e,t){return Qe.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Rc(e.text,e.mode,t),r=OW(e,t)||"normal",i;return e.mode==="text"?i=new Nt.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Nt.MathNode("mn",[n]):e.text==="\\prime"?i=new Nt.MathNode("mo",[n]):i=new Nt.MathNode("mi",[n]),r!==u1e[i.type]&&i.setAttribute("mathvariant",r),i}});var _7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},C7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};G1({type:"spacing",htmlBuilder(e,t){if(C7.hasOwnProperty(e.text)){var n=C7[e.text].className||"";if(e.mode==="text"){var r=Qe.makeOrd(e,t,"textord");return r.classes.push(n),r}else return Qe.makeSpan(["mspace",n],[Qe.mathsym(e.text,e.mode,t)],t)}else{if(_7.hasOwnProperty(e.text))return Qe.makeSpan(["mspace",_7[e.text]],[],t);throw new Mt('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(C7.hasOwnProperty(e.text))n=new Nt.MathNode("mtext",[new Nt.TextNode(" ")]);else{if(_7.hasOwnProperty(e.text))return new Nt.MathNode("mspace");throw new Mt('Unknown type of space "'+e.text+'"')}return n}});var Wte=()=>{var e=new Nt.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};G1({type:"tag",mathmlBuilder(e,t){var n=new Nt.MathNode("mtable",[new Nt.MathNode("mtr",[Wte(),new Nt.MathNode("mtd",[fm(e.body,t)]),Wte(),new Nt.MathNode("mtd",[fm(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var Vte={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},qte={"\\textbf":"textbf","\\textmd":"textmd"},Xpt={"\\textit":"textit","\\textup":"textup"},Gte=(e,t)=>{var n=e.font;if(n){if(Vte[n])return t.withTextFontFamily(Vte[n]);if(qte[n])return t.withTextFontWeight(qte[n]);if(n==="\\emph")return t.fontShape==="textit"?t.withTextFontShape("textup"):t.withTextFontShape("textit")}else return t;return t.withTextFontShape(Xpt[n])};nn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup","\\emph"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:La(i),font:r}},htmlBuilder(e,t){var n=Gte(e,t),r=cs(e.body,n,!0);return Qe.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=Gte(e,t);return fm(e.body,n)}});nn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=Qe.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=Qe.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return Qe.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Nt.MathNode("mo",[new Nt.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Nt.MathNode("munder",[Ei(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});nn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Br(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return Qe.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Nt.MathNode("mpadded",[Ei(e.body,t)],["vcenter"])}});nn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Mt("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=Yte(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),M0=Nge,c1e=`[ \r + ]`,Kpt="\\\\[a-zA-Z@]+",Jpt="\\\\[^\uD800-\uDFFF]",e0t="("+Kpt+")"+c1e+"*",t0t=`\\\\( +|[ \r ]+ +?)[ \r ]*`,wM="[̀-ͯ]",n0t=new RegExp(wM+"+$"),r0t="("+c1e+"+)|"+(t0t+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(wM+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(wM+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+e0t)+("|"+Jpt+")");class Zte{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(r0t,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Ec("EOF",new cu(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Mt("Unexpected character: '"+t[n]+"'",new Ec(t[n],new cu(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` +`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Ec(i,new cu(this,n,this.tokenRegex.lastIndex))}}class i0t{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Mt("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var a0t=Jge;oe("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});oe("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});oe("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});oe("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});oe("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});oe("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");oe("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var Xte={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};oe("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Mt("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=Xte[t.text],r==null||r>=n)throw new Mt("Invalid base-"+n+" digit "+t.text);for(var i;(i=Xte[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Mt("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Mt("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Mt("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Mt("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};oe("\\newcommand",e=>RW(e,!1,!0));oe("\\renewcommand",e=>RW(e,!0,!1));oe("\\providecommand",e=>RW(e,!0,!0));oe("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});oe("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});oe("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),M0[n],Ri.math[n],Ri.text[n]),""});oe("\\bgroup","{");oe("\\egroup","}");oe("~","\\nobreakspace");oe("\\lq","`");oe("\\rq","'");oe("\\aa","\\r a");oe("\\AA","\\r A");oe("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");oe("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");oe("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");oe("ℬ","\\mathscr{B}");oe("ℰ","\\mathscr{E}");oe("ℱ","\\mathscr{F}");oe("ℋ","\\mathscr{H}");oe("ℐ","\\mathscr{I}");oe("ℒ","\\mathscr{L}");oe("ℳ","\\mathscr{M}");oe("ℛ","\\mathscr{R}");oe("ℭ","\\mathfrak{C}");oe("ℌ","\\mathfrak{H}");oe("ℨ","\\mathfrak{Z}");oe("\\Bbbk","\\Bbb{k}");oe("·","\\cdotp");oe("\\llap","\\mathllap{\\textrm{#1}}");oe("\\rlap","\\mathrlap{\\textrm{#1}}");oe("\\clap","\\mathclap{\\textrm{#1}}");oe("\\mathstrut","\\vphantom{(}");oe("\\underbar","\\underline{\\text{#1}}");oe("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');oe("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");oe("\\ne","\\neq");oe("≠","\\neq");oe("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");oe("∉","\\notin");oe("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");oe("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");oe("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");oe("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");oe("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");oe("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");oe("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");oe("⟂","\\perp");oe("‼","\\mathclose{!\\mkern-0.8mu!}");oe("∌","\\notni");oe("⌜","\\ulcorner");oe("⌝","\\urcorner");oe("⌞","\\llcorner");oe("⌟","\\lrcorner");oe("©","\\copyright");oe("®","\\textregistered");oe("️","\\textregistered");oe("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');oe("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');oe("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');oe("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');oe("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");oe("⋮","\\vdots");oe("\\varGamma","\\mathit{\\Gamma}");oe("\\varDelta","\\mathit{\\Delta}");oe("\\varTheta","\\mathit{\\Theta}");oe("\\varLambda","\\mathit{\\Lambda}");oe("\\varXi","\\mathit{\\Xi}");oe("\\varPi","\\mathit{\\Pi}");oe("\\varSigma","\\mathit{\\Sigma}");oe("\\varUpsilon","\\mathit{\\Upsilon}");oe("\\varPhi","\\mathit{\\Phi}");oe("\\varPsi","\\mathit{\\Psi}");oe("\\varOmega","\\mathit{\\Omega}");oe("\\substack","\\begin{subarray}{c}#1\\end{subarray}");oe("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");oe("\\boxed","\\fbox{$\\displaystyle{#1}$}");oe("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");oe("\\implies","\\DOTSB\\;\\Longrightarrow\\;");oe("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var Kte={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};oe("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in Kte?t=Kte[n]:(n.slice(0,4)==="\\not"||n in Ri.math&&Nn.contains(["bin","rel"],Ri.math[n].group))&&(t="\\dotsb"),t});var IW={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};oe("\\dotso",function(e){var t=e.future().text;return t in IW?"\\ldots\\,":"\\ldots"});oe("\\dotsc",function(e){var t=e.future().text;return t in IW&&t!==","?"\\ldots\\,":"\\ldots"});oe("\\cdots",function(e){var t=e.future().text;return t in IW?"\\@cdots\\,":"\\@cdots"});oe("\\dotsb","\\cdots");oe("\\dotsm","\\cdots");oe("\\dotsi","\\!\\cdots");oe("\\dotsx","\\ldots\\,");oe("\\DOTSI","\\relax");oe("\\DOTSB","\\relax");oe("\\DOTSX","\\relax");oe("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");oe("\\,","\\tmspace+{3mu}{.1667em}");oe("\\thinspace","\\,");oe("\\>","\\mskip{4mu}");oe("\\:","\\tmspace+{4mu}{.2222em}");oe("\\medspace","\\:");oe("\\;","\\tmspace+{5mu}{.2777em}");oe("\\thickspace","\\;");oe("\\!","\\tmspace-{3mu}{.1667em}");oe("\\negthinspace","\\!");oe("\\negmedspace","\\tmspace-{4mu}{.2222em}");oe("\\negthickspace","\\tmspace-{5mu}{.277em}");oe("\\enspace","\\kern.5em ");oe("\\enskip","\\hskip.5em\\relax");oe("\\quad","\\hskip1em\\relax");oe("\\qquad","\\hskip2em\\relax");oe("\\tag","\\@ifstar\\tag@literal\\tag@paren");oe("\\tag@paren","\\tag@literal{({#1})}");oe("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Mt("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});oe("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");oe("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");oe("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");oe("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");oe("\\newline","\\\\\\relax");oe("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var d1e=Qt(Af["Main-Regular"][84][1]-.7*Af["Main-Regular"][65][1]);oe("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+d1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");oe("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+d1e+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");oe("\\hspace","\\@ifstar\\@hspacer\\@hspace");oe("\\@hspace","\\hskip #1\\relax");oe("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");oe("\\ordinarycolon",":");oe("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");oe("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');oe("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');oe("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');oe("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');oe("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');oe("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');oe("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');oe("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');oe("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');oe("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');oe("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');oe("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');oe("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');oe("∷","\\dblcolon");oe("∹","\\eqcolon");oe("≔","\\coloneqq");oe("≕","\\eqqcolon");oe("⩴","\\Coloneqq");oe("\\ratio","\\vcentcolon");oe("\\coloncolon","\\dblcolon");oe("\\colonequals","\\coloneqq");oe("\\coloncolonequals","\\Coloneqq");oe("\\equalscolon","\\eqqcolon");oe("\\equalscoloncolon","\\Eqqcolon");oe("\\colonminus","\\coloneq");oe("\\coloncolonminus","\\Coloneq");oe("\\minuscolon","\\eqcolon");oe("\\minuscoloncolon","\\Eqcolon");oe("\\coloncolonapprox","\\Colonapprox");oe("\\coloncolonsim","\\Colonsim");oe("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");oe("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");oe("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");oe("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");oe("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");oe("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");oe("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");oe("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");oe("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");oe("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");oe("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");oe("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");oe("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");oe("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");oe("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");oe("\\nleqq","\\html@mathml{\\@nleqq}{≰}");oe("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");oe("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");oe("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");oe("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");oe("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");oe("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");oe("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");oe("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");oe("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");oe("\\imath","\\html@mathml{\\@imath}{ı}");oe("\\jmath","\\html@mathml{\\@jmath}{ȷ}");oe("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");oe("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");oe("⟦","\\llbracket");oe("⟧","\\rrbracket");oe("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");oe("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");oe("⦃","\\lBrace");oe("⦄","\\rBrace");oe("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");oe("⦵","\\minuso");oe("\\darr","\\downarrow");oe("\\dArr","\\Downarrow");oe("\\Darr","\\Downarrow");oe("\\lang","\\langle");oe("\\rang","\\rangle");oe("\\uarr","\\uparrow");oe("\\uArr","\\Uparrow");oe("\\Uarr","\\Uparrow");oe("\\N","\\mathbb{N}");oe("\\R","\\mathbb{R}");oe("\\Z","\\mathbb{Z}");oe("\\alef","\\aleph");oe("\\alefsym","\\aleph");oe("\\Alpha","\\mathrm{A}");oe("\\Beta","\\mathrm{B}");oe("\\bull","\\bullet");oe("\\Chi","\\mathrm{X}");oe("\\clubs","\\clubsuit");oe("\\cnums","\\mathbb{C}");oe("\\Complex","\\mathbb{C}");oe("\\Dagger","\\ddagger");oe("\\diamonds","\\diamondsuit");oe("\\empty","\\emptyset");oe("\\Epsilon","\\mathrm{E}");oe("\\Eta","\\mathrm{H}");oe("\\exist","\\exists");oe("\\harr","\\leftrightarrow");oe("\\hArr","\\Leftrightarrow");oe("\\Harr","\\Leftrightarrow");oe("\\hearts","\\heartsuit");oe("\\image","\\Im");oe("\\infin","\\infty");oe("\\Iota","\\mathrm{I}");oe("\\isin","\\in");oe("\\Kappa","\\mathrm{K}");oe("\\larr","\\leftarrow");oe("\\lArr","\\Leftarrow");oe("\\Larr","\\Leftarrow");oe("\\lrarr","\\leftrightarrow");oe("\\lrArr","\\Leftrightarrow");oe("\\Lrarr","\\Leftrightarrow");oe("\\Mu","\\mathrm{M}");oe("\\natnums","\\mathbb{N}");oe("\\Nu","\\mathrm{N}");oe("\\Omicron","\\mathrm{O}");oe("\\plusmn","\\pm");oe("\\rarr","\\rightarrow");oe("\\rArr","\\Rightarrow");oe("\\Rarr","\\Rightarrow");oe("\\real","\\Re");oe("\\reals","\\mathbb{R}");oe("\\Reals","\\mathbb{R}");oe("\\Rho","\\mathrm{P}");oe("\\sdot","\\cdot");oe("\\sect","\\S");oe("\\spades","\\spadesuit");oe("\\sub","\\subset");oe("\\sube","\\subseteq");oe("\\supe","\\supseteq");oe("\\Tau","\\mathrm{T}");oe("\\thetasym","\\vartheta");oe("\\weierp","\\wp");oe("\\Zeta","\\mathrm{Z}");oe("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");oe("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");oe("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");oe("\\bra","\\mathinner{\\langle{#1}|}");oe("\\ket","\\mathinner{|{#1}\\rangle}");oe("\\braket","\\mathinner{\\langle{#1}\\rangle}");oe("\\Bra","\\left\\langle#1\\right|");oe("\\Ket","\\left|#1\\right\\rangle");var f1e=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>p=>{e&&(p.macros.set("|",s),i.length&&p.macros.set("\\|",o));var g=f;if(!f&&i.length){var O=p.future();O.text==="|"&&(p.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,d=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:d.reverse(),numArgs:0}};oe("\\bra@ket",f1e(!1));oe("\\bra@set",f1e(!0));oe("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");oe("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");oe("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");oe("\\angln","{\\angl n}");oe("\\blue","\\textcolor{##6495ed}{#1}");oe("\\orange","\\textcolor{##ffa500}{#1}");oe("\\pink","\\textcolor{##ff00af}{#1}");oe("\\red","\\textcolor{##df0030}{#1}");oe("\\green","\\textcolor{##28ae7b}{#1}");oe("\\gray","\\textcolor{gray}{#1}");oe("\\purple","\\textcolor{##9d38bd}{#1}");oe("\\blueA","\\textcolor{##ccfaff}{#1}");oe("\\blueB","\\textcolor{##80f6ff}{#1}");oe("\\blueC","\\textcolor{##63d9ea}{#1}");oe("\\blueD","\\textcolor{##11accd}{#1}");oe("\\blueE","\\textcolor{##0c7f99}{#1}");oe("\\tealA","\\textcolor{##94fff5}{#1}");oe("\\tealB","\\textcolor{##26edd5}{#1}");oe("\\tealC","\\textcolor{##01d1c1}{#1}");oe("\\tealD","\\textcolor{##01a995}{#1}");oe("\\tealE","\\textcolor{##208170}{#1}");oe("\\greenA","\\textcolor{##b6ffb0}{#1}");oe("\\greenB","\\textcolor{##8af281}{#1}");oe("\\greenC","\\textcolor{##74cf70}{#1}");oe("\\greenD","\\textcolor{##1fab54}{#1}");oe("\\greenE","\\textcolor{##0d923f}{#1}");oe("\\goldA","\\textcolor{##ffd0a9}{#1}");oe("\\goldB","\\textcolor{##ffbb71}{#1}");oe("\\goldC","\\textcolor{##ff9c39}{#1}");oe("\\goldD","\\textcolor{##e07d10}{#1}");oe("\\goldE","\\textcolor{##a75a05}{#1}");oe("\\redA","\\textcolor{##fca9a9}{#1}");oe("\\redB","\\textcolor{##ff8482}{#1}");oe("\\redC","\\textcolor{##f9685d}{#1}");oe("\\redD","\\textcolor{##e84d39}{#1}");oe("\\redE","\\textcolor{##bc2612}{#1}");oe("\\maroonA","\\textcolor{##ffbde0}{#1}");oe("\\maroonB","\\textcolor{##ff92c6}{#1}");oe("\\maroonC","\\textcolor{##ed5fa6}{#1}");oe("\\maroonD","\\textcolor{##ca337c}{#1}");oe("\\maroonE","\\textcolor{##9e034e}{#1}");oe("\\purpleA","\\textcolor{##ddd7ff}{#1}");oe("\\purpleB","\\textcolor{##c6b9fc}{#1}");oe("\\purpleC","\\textcolor{##aa87ff}{#1}");oe("\\purpleD","\\textcolor{##7854ab}{#1}");oe("\\purpleE","\\textcolor{##543b78}{#1}");oe("\\mintA","\\textcolor{##f5f9e8}{#1}");oe("\\mintB","\\textcolor{##edf2df}{#1}");oe("\\mintC","\\textcolor{##e0e5cc}{#1}");oe("\\grayA","\\textcolor{##f6f7f7}{#1}");oe("\\grayB","\\textcolor{##f0f1f2}{#1}");oe("\\grayC","\\textcolor{##e3e5e6}{#1}");oe("\\grayD","\\textcolor{##d6d8da}{#1}");oe("\\grayE","\\textcolor{##babec2}{#1}");oe("\\grayF","\\textcolor{##888d93}{#1}");oe("\\grayG","\\textcolor{##626569}{#1}");oe("\\grayH","\\textcolor{##3b3e40}{#1}");oe("\\grayI","\\textcolor{##21242c}{#1}");oe("\\kaBlue","\\textcolor{##314453}{#1}");oe("\\kaGreen","\\textcolor{##71B307}{#1}");var h1e={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class s0t{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new i0t(a0t,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new Zte(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Ec("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Mt("Extra }",a)}else if(a.text==="EOF")throw new Mt("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Mt("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Mt("Too many expansions: infinite loop or need to increase maxExpand setting")}expandOnce(t){var n=this.popToken(),r=n.text,i=n.noexpand?null:this._getExpansion(r);if(i==null||t&&i.unexpandable){if(t&&i==null&&r[0]==="\\"&&!this.isDefined(r))throw new Mt("Undefined control sequence: "+r);return this.pushToken(n),!1}this.countExpansion(1);var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Mt("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Mt("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Ec(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return this.countExpansion(n.length),n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new Zte(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var d={tokens:l,numArgs:a};return d}return i}isDefined(t){return this.macros.has(t)||M0.hasOwnProperty(t)||Ri.math.hasOwnProperty(t)||Ri.text.hasOwnProperty(t)||h1e.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:M0.hasOwnProperty(t)&&!M0[t].primitive}}var Jte=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,O4=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),R7={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},ene={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class RI{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new s0t(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Mt("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Ec("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(RI.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&M0[i.text]&&M0[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ri[this.mode][n].group,l=cu.range(t),u;if(Ght.hasOwnProperty(o)){var d=o;u={type:"atom",mode:this.mode,family:d,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(Ege(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:cu.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f0&&(a.properties.rel=[...p]),g&&(a.properties.target=g),d){const S=_E(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:$f(S),children:$f(d)})}}}})}}function _E(e,t){return typeof e=="function"?e(t):e}function b0t(e,t){return g1e(e,{})||{type:"root",children:[]}}function g1e(e,t){const n=y0t(e,t);return n&&t.afterTransform&&t.afterTransform(e,n),n}function y0t(e,t){switch(e.nodeType){case 1:return E0t(e,t);case 3:return O0t(e);case 8:return S0t(e);case 9:return tne(e,t);case 10:return v0t();case 11:return tne(e,t);default:return}}function tne(e,t){return{type:"root",children:b1e(e,t)}}function v0t(){return{type:"doctype"}}function O0t(e){return{type:"text",value:e.nodeValue||""}}function S0t(e){return{type:"comment",value:e.nodeValue||""}}function E0t(e,t){const n=e.namespaceURI,r=n===xf.svg?$0e:M0e,i=n===xf.html?e.tagName.toLowerCase():e.tagName,a=n===xf.html&&i==="template"?e.content:e,s=e.getAttributeNames(),o={};let l=-1;for(;++lu&&(u=d):d&&(u!==void 0&&u>-1&&l.push(` +`.repeat(u)||" "),u=-1,l.push(d))}return l.join("")}function v1e(e,t,n){return e.type==="element"?_0t(e,t,n):e.type==="text"?n.whitespace==="normal"?O1e(e,n):C0t(e):[]}function _0t(e,t,n){const r=S1e(e,n),i=e.children||[];let a=-1,s=[];if(k0t(e))return s;let o,l;for(TM(e)||sne(e)&&nne(t,e,sne)?l=` +`:x0t(e)?(o=2,l=2):y1e(e)&&(o=1,l=1);++a{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(pM(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?R.jsx(Oge,{source:pM(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[q0t],rehypePlugins:[M0t,[g0t,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=BC.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return R.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?VQ(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=BC.renderToString(o,{throwOnError:!1});return R.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return R.jsx("code",{className:String(a),children:i})}}}):R.jsx(zn,{direction:"row",justifyContent:"center",children:R.jsx(kd,{sx:{mt:2}})})}function E1e(){const e=Pr(Sm),t=GHe();return!e.doc||!e.client?R.jsx(lO,{open:!0,children:R.jsx(kd,{color:"inherit"})}):R.jsxs(R.Fragment,{children:[R.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&R.jsx(zHe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>R.jsx(WL.ScrollSync,{children:R.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[R.jsx("div",{id:"left-block",style:{width:n},children:R.jsx(Ote,{})}),R.jsx(Oo,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),R.jsx(WL.ScrollSyncPane,{children:R.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:R.jsx(Wa,{sx:{p:4},height:"100%",children:R.jsx(lne,{})})})})]})})}),e.mode==="read"&&R.jsx(Wa,{sx:{p:4,overflow:"auto"},height:"100%",children:R.jsx(lne,{})}),e.mode==="edit"&&R.jsx(Ote,{})]})}var w1e={exports:{}},G0t={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]},T1e={exports:{}},Y0t=function(t){return!t||typeof t=="string"?!1:t instanceof Array||Array.isArray(t)||t.length>=0&&(t.splice instanceof Function||Object.getOwnPropertyDescriptor(t,t.length-1)&&t.constructor.name!=="String")},Z0t=Y0t,X0t=Array.prototype.concat,K0t=Array.prototype.slice,une=T1e.exports=function(t){for(var n=[],r=0,i=t.length;r=4&&e[3]!==1&&(t=", "+e[3]),"hwb("+e[0]+", "+e[1]+"%, "+e[2]+"%"+t+")"};Ou.to.keyword=function(e){return k1e[e.slice(0,3)]};function X0(e,t,n){return Math.min(Math.max(t,e),n)}function S4(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var emt=w1e.exports,tmt={aliceblue:[240,248,255],antiquewhite:[250,235,215],aqua:[0,255,255],aquamarine:[127,255,212],azure:[240,255,255],beige:[245,245,220],bisque:[255,228,196],black:[0,0,0],blanchedalmond:[255,235,205],blue:[0,0,255],blueviolet:[138,43,226],brown:[165,42,42],burlywood:[222,184,135],cadetblue:[95,158,160],chartreuse:[127,255,0],chocolate:[210,105,30],coral:[255,127,80],cornflowerblue:[100,149,237],cornsilk:[255,248,220],crimson:[220,20,60],cyan:[0,255,255],darkblue:[0,0,139],darkcyan:[0,139,139],darkgoldenrod:[184,134,11],darkgray:[169,169,169],darkgreen:[0,100,0],darkgrey:[169,169,169],darkkhaki:[189,183,107],darkmagenta:[139,0,139],darkolivegreen:[85,107,47],darkorange:[255,140,0],darkorchid:[153,50,204],darkred:[139,0,0],darksalmon:[233,150,122],darkseagreen:[143,188,143],darkslateblue:[72,61,139],darkslategray:[47,79,79],darkslategrey:[47,79,79],darkturquoise:[0,206,209],darkviolet:[148,0,211],deeppink:[255,20,147],deepskyblue:[0,191,255],dimgray:[105,105,105],dimgrey:[105,105,105],dodgerblue:[30,144,255],firebrick:[178,34,34],floralwhite:[255,250,240],forestgreen:[34,139,34],fuchsia:[255,0,255],gainsboro:[220,220,220],ghostwhite:[248,248,255],gold:[255,215,0],goldenrod:[218,165,32],gray:[128,128,128],green:[0,128,0],greenyellow:[173,255,47],grey:[128,128,128],honeydew:[240,255,240],hotpink:[255,105,180],indianred:[205,92,92],indigo:[75,0,130],ivory:[255,255,240],khaki:[240,230,140],lavender:[230,230,250],lavenderblush:[255,240,245],lawngreen:[124,252,0],lemonchiffon:[255,250,205],lightblue:[173,216,230],lightcoral:[240,128,128],lightcyan:[224,255,255],lightgoldenrodyellow:[250,250,210],lightgray:[211,211,211],lightgreen:[144,238,144],lightgrey:[211,211,211],lightpink:[255,182,193],lightsalmon:[255,160,122],lightseagreen:[32,178,170],lightskyblue:[135,206,250],lightslategray:[119,136,153],lightslategrey:[119,136,153],lightsteelblue:[176,196,222],lightyellow:[255,255,224],lime:[0,255,0],limegreen:[50,205,50],linen:[250,240,230],magenta:[255,0,255],maroon:[128,0,0],mediumaquamarine:[102,205,170],mediumblue:[0,0,205],mediumorchid:[186,85,211],mediumpurple:[147,112,219],mediumseagreen:[60,179,113],mediumslateblue:[123,104,238],mediumspringgreen:[0,250,154],mediumturquoise:[72,209,204],mediumvioletred:[199,21,133],midnightblue:[25,25,112],mintcream:[245,255,250],mistyrose:[255,228,225],moccasin:[255,228,181],navajowhite:[255,222,173],navy:[0,0,128],oldlace:[253,245,230],olive:[128,128,0],olivedrab:[107,142,35],orange:[255,165,0],orangered:[255,69,0],orchid:[218,112,214],palegoldenrod:[238,232,170],palegreen:[152,251,152],paleturquoise:[175,238,238],palevioletred:[219,112,147],papayawhip:[255,239,213],peachpuff:[255,218,185],peru:[205,133,63],pink:[255,192,203],plum:[221,160,221],powderblue:[176,224,230],purple:[128,0,128],rebeccapurple:[102,51,153],red:[255,0,0],rosybrown:[188,143,143],royalblue:[65,105,225],saddlebrown:[139,69,19],salmon:[250,128,114],sandybrown:[244,164,96],seagreen:[46,139,87],seashell:[255,245,238],sienna:[160,82,45],silver:[192,192,192],skyblue:[135,206,235],slateblue:[106,90,205],slategray:[112,128,144],slategrey:[112,128,144],snow:[255,250,250],springgreen:[0,255,127],steelblue:[70,130,180],tan:[210,180,140],teal:[0,128,128],thistle:[216,191,216],tomato:[255,99,71],turquoise:[64,224,208],violet:[238,130,238],wheat:[245,222,179],white:[255,255,255],whitesmoke:[245,245,245],yellow:[255,255,0],yellowgreen:[154,205,50]};const rT=tmt,A1e={};for(const e of Object.keys(rT))A1e[rT[e]]=e;const vn={rgb:{channels:3,labels:"rgb"},hsl:{channels:3,labels:"hsl"},hsv:{channels:3,labels:"hsv"},hwb:{channels:3,labels:"hwb"},cmyk:{channels:4,labels:"cmyk"},xyz:{channels:3,labels:"xyz"},lab:{channels:3,labels:"lab"},lch:{channels:3,labels:"lch"},hex:{channels:1,labels:["hex"]},keyword:{channels:1,labels:["keyword"]},ansi16:{channels:1,labels:["ansi16"]},ansi256:{channels:1,labels:["ansi256"]},hcg:{channels:3,labels:["h","c","g"]},apple:{channels:3,labels:["r16","g16","b16"]},gray:{channels:1,labels:["gray"]}};var _1e=vn;for(const e of Object.keys(vn)){if(!("channels"in vn[e]))throw new Error("missing channels property: "+e);if(!("labels"in vn[e]))throw new Error("missing channel labels property: "+e);if(vn[e].labels.length!==vn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=vn[e];delete vn[e].channels,delete vn[e].labels,Object.defineProperty(vn[e],"channels",{value:t}),Object.defineProperty(vn[e],"labels",{value:n})}vn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};vn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),d=u-Math.min(s,o,l),f=function(p){return(u-p)/6/d+1/2};return d===0?(i=0,a=0):(a=d/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};vn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=vn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};vn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function nmt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}vn.rgb.keyword=function(e){const t=A1e[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(rT)){const a=rT[i],s=nmt(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};vn.rgb.lab=function(e){const t=vn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};vn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};vn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};vn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};vn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};vn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,d,f;switch(s){default:case 6:case 0:u=o,d=l,f=n;break;case 1:u=l,d=o,f=n;break;case 2:u=n,d=o,f=l;break;case 3:u=n,d=l,f=o;break;case 4:u=l,d=n,f=o;break;case 5:u=o,d=n,f=l;break}return[u*255,d*255,f*255]};vn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};vn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};vn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};vn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};vn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};vn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};vn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?vn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};vn.hsv.ansi16=function(e){return vn.rgb.ansi16(vn.hsv.rgb(e),e[2])};vn.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)};vn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};vn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};vn.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};vn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};vn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};vn.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]};vn.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]};vn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};vn.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]};vn.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]};vn.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]};vn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};vn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};vn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};vn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};vn.gray.hsl=function(e){return[0,0,e[0]]};vn.gray.hsv=vn.gray.hsl;vn.gray.hwb=function(e){return[0,100,e[0]]};vn.gray.cmyk=function(e){return[0,0,0,e[0]]};vn.gray.lab=function(e){return[e[0],0,0]};vn.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};vn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const UC=_1e;function rmt(){const e={},t=Object.keys(UC);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function dmt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{Kb[e]={},Object.defineProperty(Kb[e],"channels",{value:xM[e].channels}),Object.defineProperty(Kb[e],"labels",{value:xM[e].labels});const t=lmt(e);Object.keys(t).forEach(r=>{const i=t[r];Kb[e][r]=dmt(i),Kb[e][r].raw=cmt(i)})});var fmt=Kb;const Jb=emt,gu=fmt,C1e=["keyword","gray","hex"],kM={};for(const e of Object.keys(gu))kM[[...gu[e].labels].sort().join("")]=e;const zC={};function Es(e,t){if(!(this instanceof Es))return new Es(e,t);if(t&&t in C1e&&(t=null),t&&!(t in gu))throw new Error("Unknown model: "+t);let n,r;if(e==null)this.model="rgb",this.color=[0,0,0],this.valpha=1;else if(e instanceof Es)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=Jb.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=gu[this.model].channels,this.color=i.value.slice(0,r),this.valpha=typeof i.value[r]=="number"?i.value[r]:1}else if(e.length>0){this.model=t||"rgb",r=gu[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=AM(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in kM))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=kM[a];const{labels:s}=gu[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:ba("hsl",1,Xa(100)),lightness:ba("hsl",2,Xa(100)),saturationv:ba("hsv",1,Xa(100)),value:ba("hsv",2,Xa(100)),chroma:ba("hcg",1,Xa(100)),gray:ba("hcg",2,Xa(100)),white:ba("hwb",1,Xa(100)),wblack:ba("hwb",2,Xa(100)),cyan:ba("cmyk",0,Xa(100)),magenta:ba("cmyk",1,Xa(100)),yellow:ba("cmyk",2,Xa(100)),black:ba("cmyk",3,Xa(100)),x:ba("xyz",0,Xa(95.047)),y:ba("xyz",1,Xa(100)),z:ba("xyz",2,Xa(108.833)),l:ba("lab",0,Xa(100)),a:ba("lab",1),b:ba("lab",2),keyword(e){return e!==void 0?new Es(e):gu[this.model].keyword(this.color)},hex(e){return e!==void 0?new Es(e):Jb.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new Es(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),Jb.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 Es.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return Es.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(gu)){if(C1e.includes(e))continue;const{channels:t}=gu[e];Es.prototype[e]=function(...n){return this.model===e?new Es(this):n.length>0?new Es(n,e):new Es([...mmt(gu[this.model][e].raw(this.color)),this.valpha],e)},Es[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=AM(n,t)),new Es(r,e)}}function hmt(e,t){return Number(e.toFixed(t))}function pmt(e){return function(t){return hmt(t,e)}}function ba(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(zC[r]||(zC[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function Xa(e){return function(t){return Math.max(0,Math.min(e,t))}}function mmt(e){return Array.isArray(e)?e:[e]}function AM(e,t){for(let n=0;nV.length;){var ee=a(D);n!==null&&(D.seed=n),V.push(ee)}return D.count=W,V}return L=s(D),U=o(L,D),B=l(L,U,D),u([L,U,B],D)};function s(D){if(i.length>0){var L=N(D.hue),U=O(L),B=(L[1]-L[0])/i.length,W=parseInt((U-L[0])/B);i[W]===!0?W=(W+2)%i.length:i[W]=!0;var V=(L[0]+W*B)%359,re=(L[0]+(W+1)*B)%359;return L=[V,re],U=O(L),U<0&&(U=360+U),U}else{var L=f(D.hue);return U=O(L),U<0&&(U=360+U),U}}function o(D,L){if(L.hue==="monochrome")return 0;if(L.luminosity==="random")return O([0,100]);var U=p(D),B=U[0],W=U[1];switch(L.luminosity){case"bright":B=55;break;case"dark":B=W-10;break;case"light":W=55;break}return O([B,W])}function l(D,L,U){var B=d(D,L),W=100;switch(U.luminosity){case"dark":W=B+20;break;case"light":B=(W+B)/2;break;case"random":B=0,W=100;break}return O([B,W])}function u(D,L){switch(L.format){case"hsvArray":return D;case"hslArray":return _(D);case"hsl":var U=_(D);return"hsl("+U[0]+", "+U[1]+"%, "+U[2]+"%)";case"hsla":var B=_(D),re=L.alpha||Math.random();return"hsla("+B[0]+", "+B[1]+"%, "+B[2]+"%, "+re+")";case"rgbArray":return x(D);case"rgb":var W=x(D);return"rgb("+W.join(", ")+")";case"rgba":var V=x(D),re=L.alpha||Math.random();return"rgba("+V.join(", ")+", "+re+")";default:return S(D)}}function d(D,L){for(var U=g(D).lowerBounds,B=0;B=W&&L<=re){var q=(ee-V)/(re-W),ne=V-q*W;return q*L+ne}}return 0}function f(D){if(typeof parseInt(D)=="number"){var L=parseInt(D);if(L<360&&L>0)return[L,L]}if(typeof D=="string"){if(r[D]){var U=r[D];if(U.hueRange)return U.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(D)[0];return[B,B]}}return[0,360]}function p(D){return g(D).saturationRange}function g(D){D>=334&&D<=360&&(D-=360);for(var L in r){var U=r[L];if(U.hueRange&&D>=U.hueRange[0]&&D<=U.hueRange[1])return r[L]}return"Color not found"}function O(D){if(n===null){var L=.618033988749895,U=Math.random();return U+=L,U%=1,Math.floor(D[0]+U*(D[1]+1-D[0]))}else{var B=D[1]||1,W=D[0]||0;n=(n*9301+49297)%233280;var V=n/233280;return Math.floor(W+V*(B-W))}}function S(D){var L=x(D);function U(W){var V=W.toString(16);return V.length==1?"0"+V:V}var B="#"+U(L[0])+U(L[1])+U(L[2]);return B}function T(D,L,U){var B=U[0][0],W=U[U.length-1][0],V=U[U.length-1][1],re=U[0][1];r[D]={hueRange:L,lowerBounds:U,saturationRange:[B,W],brightnessRange:[V,re]}}function w(){T("monochrome",null,[[0,0],[100,0]]),T("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),T("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),T("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),T("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),T("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),T("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),T("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(D){var L=D[0];L===0&&(L=1),L===360&&(L=359),L=L/360;var U=D[1]/100,B=D[2]/100,W=Math.floor(L*6),V=L*6-W,re=B*(1-U),ee=B*(1-V*U),q=B*(1-(1-V)*U),ne=256,K=256,G=256;switch(W){case 0:ne=B,K=q,G=re;break;case 1:ne=ee,K=B,G=re;break;case 2:ne=re,K=B,G=q;break;case 3:ne=re,K=ee,G=B;break;case 4:ne=q,K=re,G=B;break;case 5:ne=B,K=re,G=ee;break}var ie=[Math.floor(ne*255),Math.floor(K*255),Math.floor(G*255)];return ie}function k(D){D=D.replace(/^#/,""),D=D.length===3?D.replace(/(.)/g,"$1$1"):D;var L=parseInt(D.substr(0,2),16)/255,U=parseInt(D.substr(2,2),16)/255,B=parseInt(D.substr(4,2),16)/255,W=Math.max(L,U,B),V=W-Math.min(L,U,B),re=W?V/W:0;switch(W){case L:return[60*((U-B)/V%6)||0,re,W];case U:return[60*((B-L)/V+2)||0,re,W];case B:return[60*((L-U)/V+4)||0,re,W]}}function _(D){var L=D[0],U=D[1]/100,B=D[2]/100,W=(2-U)*B;return[L,Math.round(U*B/(W<1?W:2-W)*1e4)/100,W/2*100]}function I(D){for(var L=0,U=0;U!==D.length&&!(L>=Number.MAX_SAFE_INTEGER);U++)L+=D.charCodeAt(U);return L}function N(D){if(isNaN(D)){if(typeof D=="string"){if(r[D]){var U=r[D];if(U.hueRange)return U.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var B=k(D)[0];return g(B).hueRange}}}else{var L=parseInt(D);if(L<360&&L>0)return g(D).hueRange}return[0,360]}return a})})(_M,_M.exports);var ymt=_M.exports;const vmt=Cu(ymt);EC.setLogLevel(4);const R1e=(e,t)=>{const[n]=W$(),r=Pr(QT),[i,a]=M.useState(null),[s,o]=M.useState(null),l=M.useCallback(async()=>{!i||!s||(await(i==null?void 0:i.detach(s)),await(i==null?void 0:i.deactivate()))},[i,s]);return M.useEffect(()=>{let u=!0;if(!e||!t||s||i)return;let d=`default:${r.accessToken}`;return n.get("token")&&(d=`share:${n.get("token")}`),(async()=>{const p=new EC.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:d});await p.activate();const g=new EC.Document(e,{enableDevtools:!0});if(await p.attach(g,{initialPresence:{name:t,color:bmt(vmt()).fade(.15).toString(),selection:null}}),!u){await p.detach(g),await p.deactivate();return}a(p),o(g)})(),()=>{u=!1}},[t,e,s,i,r.accessToken,n]),M.useEffect(()=>()=>{l()},[l]),{client:i,doc:s}};function Omt(){var u;const e=Du(),t=Om(),n=Pr(DT),{data:r,isLoading:i}=rB(t.workspaceSlug),{data:a,isLoading:s}=Sje(r==null?void 0:r.id,t.documentId),{doc:o,client:l}=R1e(a==null?void 0:a.yorkieDocumentId,(u=n.data)==null?void 0:u.nickname);return M.useEffect(()=>{if(!(!o||!l))return e(C3(o)),e(R3(l)),()=>{e(C3(null)),e(R3(null))}},[e,l,o]),s||i?R.jsx(lO,{open:!0,children:R.jsx(kd,{color:"inherit"})}):R.jsx(Wa,{height:"calc(100% - 64px)",children:R.jsx(E1e,{})})}const Smt=e=>["documents","share",e],Emt=e=>{const t=Du(),n=pO({queryKey:Smt(e||""),enabled:!!e,queryFn:async()=>(await ar.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return M.useEffect(()=>(n.data&&t(I3(n.data)),()=>{t(I3(null))}),[t,n.data]),n};function wmt(){const e=Du(),t=vm(),[n]=W$(),r=M.useMemo(()=>n.get("token"),[n]),{data:i}=Emt(r),{doc:a,client:s}=R1e(i==null?void 0:i.yorkieDocumentId,"Anonymous");return M.useEffect(()=>{i!=null&&i.role&&(e(o9e(i.role)),i.role==="READ"&&e(f8("read")))},[e,i==null?void 0:i.role]),M.useEffect(()=>{if(!(!a||!s))return e(C3(a)),e(R3(s)),()=>{e(C3(null)),e(R3(null))}},[e,s,a]),r?R.jsx(Wa,{height:"calc(100% - 64px)",children:R.jsx(E1e,{})}):R.jsx(Q$,{to:"/",state:{from:t},replace:!0})}function Tmt(){const e=Om(),t=Pu(),{mutateAsync:n}=pHe();return M.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),R.jsx(lO,{open:!0,children:R.jsx(kd,{color:"inherit"})})}const xmt=e=>["workspaces",e,"users"],kmt=e=>cF({queryKey:xmt(e||""),queryFn:async({pageParam:t})=>(await ar.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 Amt(e){var d;const{open:t,onClose:n}=e,r=Pr(PT),{mutateAsync:i}=hHe(((d=r.data)==null?void 0:d.id)||""),{enqueueSnackbar:a}=LT(),[s,o]=M.useState(null),l=async f=>{let p;if(f.expiredString===My[0])p=null;else{const[O,S]=f.expiredString.split(" ");p=tn().add(Number(O),S).toDate()}const{invitationToken:g}=await i({expiredAt:p});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await B1.write(s),a("URL Copied!",{variant:"success"}))};return R.jsx(M1,{open:t,disableAutoFocus:!0,onClose:n,children:R.jsxs(Oo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[R.jsx(ss,{sx:{position:"absolute",top:28,right:28},onClick:n,children:R.jsx(DR,{})}),R.jsxs(zn,{gap:4,children:[R.jsxs(zn,{children:[R.jsx(Cr,{variant:"h5",fontWeight:"bold",children:"Add Members"}),R.jsx(Cr,{children:"Generate and share the link."})]}),R.jsx(zn,{gap:1,children:R.jsx(Mc,{children:R.jsx(mO,{defaultValues:{expiredString:My[0]},onSuccess:l,children:R.jsxs(zn,{gap:2,children:[R.jsx(C8,{label:"Expired Date",name:"expiredString",options:My.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),R.jsx(Vo,{type:"submit",variant:"contained",children:"Generate"})]})})})}),R.jsxs(zn,{gap:1,children:[R.jsx(Cr,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),R.jsx(Wa,{height:40,children:s?R.jsxs(zn,{direction:"row",alignItems:"center",gap:2,children:[R.jsx(Cr,{variant:"body1",children:s}),R.jsx(C0,{title:"Copy URL",children:R.jsx(ss,{onClick:u,children:R.jsx(NR,{})})})]}):R.jsx(Cr,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function _mt(){const e=Om(),{data:t}=rB(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=kmt(t==null?void 0:t.id),[a,s]=M.useState(!1),o=M.useMemo(()=>(n==null?void 0:n.pages.reduce((u,d)=>u.concat(d.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return R.jsxs(C$,{maxWidth:"lg",children:[R.jsxs(zn,{gap:4,children:[R.jsxs(zn,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[R.jsxs(Cr,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",R.jsx(Cr,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),R.jsx(Vo,{variant:"contained",startIcon:R.jsx(PR,{}),onClick:l,children:"Add Members"})]}),R.jsxs(t7e,{component:Wa,children:[R.jsx(b1,{}),R.jsx(kw,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:R.jsx(Wa,{className:"loader",children:R.jsx(kd,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:R.jsxs(BDe,{children:[R.jsx(o7e,{children:R.jsxs(IY,{children:[R.jsx(Nb,{children:"Name"}),R.jsx(Nb,{children:"Role"}),R.jsx(Nb,{})]})}),R.jsx(WDe,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>R.jsxs(IY,{sx:{width:"100%"},children:[R.jsx(Nb,{component:"th",scope:"row",children:u.nickname}),R.jsx(Nb,{children:"-"}),R.jsx(Nb,{children:"-"})]},u.id))})]})})]})]}),R.jsx(Amt,{open:a,onClose:l})]})}const Cmt=()=>{const e=Pu(),t=()=>{e("/")};return R.jsxs(Wa,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",textAlign:"center",bgcolor:"background.default",color:"text.primary",p:3},children:[R.jsx(Cr,{variant:"h1",component:"h1",gutterBottom:!0,children:"404"}),R.jsx(Cr,{variant:"h5",component:"p",gutterBottom:!0,children:"Page Not Found"}),R.jsx(Cr,{variant:"body1",component:"p",gutterBottom:!0,children:"The page you are looking for does not exist."}),R.jsx(Vo,{variant:"contained",color:"primary",onClick:t,sx:{mt:2},children:"Go to Home"})]})},I1e=e=>["users",e],Rmt=()=>{const e=Du(),t=Pr(QT);t.accessToken&&(ar.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=pO({queryKey:I1e(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await ar.get("/users")).data});return M.useEffect(()=>{n.isSuccess?e(d8(n.data)):n.isError&&(e(XF(null)),e(d8(null)),ar.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},N1e=()=>{const e=Pr(QT),t=MT();return vp({mutationFn:async n=>(await ar.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:I1e(e.accessToken||"")})}})},N7=117;function Imt(){var f,p,g,O,S,T,w,x;const e=Pr(DT),[t,n]=M.useState(((f=e.data)==null?void 0:f.nickname)||""),[r,i]=M.useState(""),{data:a}=sB(r),{mutateAsync:s}=N1e(),o=M.useMemo(()=>{var k;return r!=((k=e.data)==null?void 0:k.nickname)&&(a!=null&&a.conflict)?"Already Exists":null},[a==null?void 0:a.conflict,r,(p=e.data)==null?void 0:p.nickname]),l=M.useMemo(()=>{var k;return!!o||t===((k=e.data)==null?void 0:k.nickname)||t.length===0},[o,t,(g=e.data)==null?void 0:g.nickname]);yR(()=>{i(t)},500,[t]),M.useEffect(()=>{var k,_;(k=e.data)!=null&&k.nickname&&n(((_=e.data)==null?void 0:_.nickname)||"")},[(O=e.data)==null?void 0:O.nickname]);const u=k=>{n(k.target.value)},d=async k=>{await s(k)};return R.jsx(C$,{sx:{height:"calc(100vh - 88px)",width:"100%"},children:R.jsxs(zn,{alignItems:"center",justifyContent:"center",gap:6,sx:{height:1},children:[R.jsx(i1,{sx:{width:N7,height:N7,fontSize:N7/2},children:(T=(S=e.data)==null?void 0:S.nickname)==null?void 0:T.charAt(0).toUpperCase()}),R.jsx(zn,{width:310,children:R.jsxs(Mc,{children:[R.jsx(Cr,{variant:"body1",children:"User name"}),((w=e.data)==null?void 0:w.nickname)&&R.jsx(mO,{defaultValues:{nickname:(x=e.data)==null?void 0:x.nickname},onSuccess:d,children:R.jsxs(zn,{gap:3,children:[R.jsx(FT,{variant:"standard",name:"nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:u,error:!!o,helperText:o}),R.jsx(Vo,{type:"submit",variant:"contained",size:"large",disabled:l,children:"Save"})]})})]})})]})})}function Nmt(){var o,l;const e=Pu(),t=Pr(DT),[n,r]=M.useState(null),i=u=>{r(u.currentTarget)},a=()=>{r(null)},s=()=>{var u;e(`/${(u=t.data)==null?void 0:u.lastWorkspaceSlug}`)};return R.jsxs(kce,{position:"fixed",children:[R.jsx($$,{children:R.jsxs(zn,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[R.jsx(ss,{onClick:i,children:R.jsx(i1,{children:(l=(o=t.data)==null?void 0:o.nickname)==null?void 0:l.charAt(0)})}),R.jsx(ss,{onClick:s,children:R.jsx(eB,{})})]})}),R.jsx(wce,{open:!!n,anchorEl:n,onClose:a})]})}function Dmt(){return R.jsxs(Wa,{sx:{display:"flex"},children:[R.jsx(Nmt,{}),R.jsx(lR,{})]})}const Pmt=[{path:"",accessType:2,element:R.jsx(jje,{}),children:[{path:"",element:R.jsx(IHe,{})}]},{path:":workspaceSlug",accessType:1,element:R.jsx(_He,{}),children:[{path:"",element:R.jsx(MHe,{})},{path:"member",element:R.jsx(_mt,{})}]},{path:":workspaceSlug",element:R.jsx(zje,{}),children:[{path:":documentId",accessType:1,element:R.jsx(Omt,{})},{path:":documentId/share",accessType:0,element:R.jsx(wmt,{})}]},{path:"auth/callback",accessType:2,element:R.jsx(NHe,{})},{path:"join/:invitationToken",accessType:1,element:R.jsx(Tmt,{})},{path:"/404",accessType:0,element:R.jsx(Cmt,{})},{path:"settings/profile",accessType:1,element:R.jsx(Dmt,{}),children:[{path:"",element:R.jsx(Imt,{})}]}],Lmt=e=>{const t=n=>(n.accessType===1?n.element=R.jsx(jMe,{children:n.element}):n.accessType===2&&(n.element=R.jsx(zMe,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=R.jsx(FMe,{}),n))},Mmt=Lmt(Pmt);function $mt(e){const[t,n]=M.useState(""),[r,i]=M.useState(""),{data:a}=sB(r),{mutateAsync:s}=N1e(),o=M.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);yR(()=>{i(t)},500,[t]);const l=d=>{n(d.target.value)},u=async d=>{await s(d)};return R.jsx(M1,{disableAutoFocus:!0,...e,children:R.jsx(Oo,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:R.jsxs(zn,{gap:4,children:[R.jsx(Cr,{variant:"h5",children:"Create Your Nickname"}),R.jsx(Mc,{children:R.jsx(mO,{defaultValues:{nickname:""},onSuccess:u,children:R.jsxs(zn,{gap:4,alignItems:"flex-end",children:[R.jsx(FT,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),R.jsx(Vo,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function Fmt(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=Rmt(),a=M.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return R.jsx(tF.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?R.jsx($mt,{open:!0}):t})}function Bmt(){const{enqueueSnackbar:e}=LT();return M.useCallback(n=>{var r;e(((r=n.response)==null?void 0:r.data.message)||n.message||"Something went wrong...",{variant:"error"})},[e])}const D1e=Object.prototype.toString;function P1e(e){switch(D1e.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return pp(e,Error)}}function BO(e,t){return D1e.call(e)===`[object ${t}]`}function PW(e){return BO(e,"ErrorEvent")}function cne(e){return BO(e,"DOMError")}function Umt(e){return BO(e,"DOMException")}function Ff(e){return BO(e,"String")}function LW(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function MW(e){return e===null||LW(e)||typeof e!="object"&&typeof e!="function"}function Wv(e){return BO(e,"Object")}function II(e){return typeof Event<"u"&&pp(e,Event)}function zmt(e){return typeof Element<"u"&&pp(e,Element)}function jmt(e){return BO(e,"RegExp")}function NI(e){return!!(e&&e.then&&typeof e.then=="function")}function Hmt(e){return Wv(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function L1e(e){return typeof e=="number"&&e!==e}function pp(e,t){try{return e instanceof t}catch{return!1}}function M1e(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Xy(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function dne(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rQmt(e,r,n))}function Wmt(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!pp(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=Vmt(CM(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function CM(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(pp(r[i],Error)){fne(s,o);const u=e(t,r[i]),d=l.length;hne(u,i,d,o),l=CM(e,t,n,r[i],i,[u,...l],u,d)}return Array.isArray(r.errors)&&r.errors.forEach((u,d)=>{if(pp(u,Error)){fne(s,o);const f=e(t,u),p=l.length;hne(f,`errors[${d}]`,p,o),l=CM(e,t,n,u,i,[f,...l],f,p)}}),l}function fne(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,...e.type==="AggregateError"&&{is_exception_group:!0},exception_id:t}}function hne(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function Vmt(e,t){return e.map(n=>(n.value&&(n.value=Xy(n.value,t)),n))}function E4(e){return e&&e.Math==Math?e:void 0}const Gr=typeof globalThis=="object"&&E4(globalThis)||typeof window=="object"&&E4(window)||typeof self=="object"&&E4(self)||typeof global=="object"&&E4(global)||function(){return this}()||{};function $W(){return Gr}function $1e(e,t,n){const r=n||Gr,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Ky=$W(),qmt=80;function Vv(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const d=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||qmt;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function Gmt(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(Ky.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Ff(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,Xmt="Sentry Logger ",RM=["debug","info","warn","error","log","assert","trace"],jC={};function DI(e){if(!("console"in Gr))return e();const t=Gr.console,n={},r=Object.keys(jC);r.forEach(i=>{const a=jC[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function Kmt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return UO?RM.forEach(n=>{t[n]=(...r)=>{e&&DI(()=>{Gr.console[n](`${Xmt}[${n}]:`,...r)})}}):RM.forEach(n=>{t[n]=()=>{}}),t}const kt=Kmt(),Jmt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function egt(e){return e==="http"||e==="https"}function zO(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function tgt(e){const t=Jmt.exec(e);if(!t){DI(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const d=u.split("/");if(d.length>1&&(l=d.slice(0,-1).join("/"),u=d.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return B1e({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function B1e(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function ngt(e){if(!UO)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(kt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?egt(r)?t&&isNaN(parseInt(t,10))?(kt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(kt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(kt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function rgt(e){const t=typeof e=="string"?tgt(e):B1e(e);if(!(!t||!ngt(t)))return t}class Of extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Gs(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&U1e(i,r),e[t]=i}function R1(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{UO&&kt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function U1e(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,R1(e,"__sentry_original__",t)}catch{}}function FW(e){return e.__sentry_original__}function igt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function z1e(e){if(P1e(e))return{message:e.message,name:e.name,stack:e.stack,...mne(e)};if(II(e)){const t={type:e.type,target:pne(e.target),currentTarget:pne(e.currentTarget),...mne(e)};return typeof CustomEvent<"u"&&pp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function pne(e){try{return zmt(e)?Vv(e):Object.prototype.toString.call(e)}catch{return""}}function mne(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function agt(e,t=40){const n=Object.keys(z1e(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Xy(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Xy(i,t)}return""}function Su(e){return IM(e,new Map)}function IM(e,t){if(sgt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=IM(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(IM(i,t))}),r}return e}function sgt(e){if(!Wv(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const j1e=50,gne=/\(error: (.*)\)/,bne=/captureMessage|captureException/;function H1e(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` +`);for(let s=r;s1024)continue;const l=gne.test(o)?o.replace(gne,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const d=u(l);if(d){i.push(d);break}}if(i.length>=j1e)break}}return lgt(i)}}function ogt(e){return Array.isArray(e)?H1e(...e):e}function lgt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),bne.test(t[t.length-1].function||"")&&(t.pop(),bne.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,j1e).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const D7="";function mp(e){try{return!e||typeof e!="function"?D7:e.name||D7}catch{return D7}}const C_={},yne={};function Y1(e,t){C_[e]=C_[e]||[],C_[e].push(t)}function Z1(e,t){yne[e]||(t(),yne[e]=!0)}function Td(e,t){const n=e&&C_[e];if(n)for(const r of n)try{r(t)}catch(i){UO&&kt.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${mp(r)} +Error:`,i)}}function ugt(e){const t="console";Y1(t,e),Z1(t,cgt)}function cgt(){"console"in Gr&&RM.forEach(function(e){e in Gr.console&&Gs(Gr.console,e,function(t){return jC[e]=t,function(...n){Td("console",{args:n,level:e});const i=jC[e];i&&i.apply(Gr.console,n)}})})}function Pa(){const e=Gr,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function Q1e(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function b0(e){const{message:t,event_id:n}=e;if(t)return t;const r=Q1e(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function NM(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type="Error")}function iT(e,t){const n=Q1e(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function vne(e){if(e&&e.__sentry_captured__)return!0;try{R1(e,"__sentry_captured__",!0)}catch{}return!1}function W1e(e){return Array.isArray(e)?e:[e]}const ey=Gr,dgt=1e3;let One,DM,PM;function fgt(e){const t="dom";Y1(t,e),Z1(t,hgt)}function hgt(){if(!ey.document)return;const e=Td.bind(null,"dom"),t=Sne(e,!0);ey.document.addEventListener("click",t,!1),ey.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=ey[n]&&ey[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Gs(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},d=u[a]=u[a]||{refCount:0};if(!d.handler){const f=Sne(e);d.handler=f,i.call(this,a,f,o)}d.refCount++}catch{}return i.call(this,a,s,o)}}),Gs(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},d=u[a];d&&(d.refCount--,d.refCount<=0&&(i.call(this,a,d.handler,o),d.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function pgt(e){if(e.type!==DM)return!1;try{if(!e.target||e.target._sentryId!==PM)return!1}catch{}return!0}function mgt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function Sne(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ggt(n);if(mgt(n.type,r))return;R1(n,"_sentryCaptured",!0),r&&!r._sentryId&&R1(r,"_sentryId",Pa());const i=n.type==="keypress"?"input":n.type;pgt(n)||(e({event:n,name:i,global:t}),DM=n.type,PM=r?r._sentryId:void 0),clearTimeout(One),One=ey.setTimeout(()=>{PM=void 0,DM=void 0},dgt)}}function ggt(e){try{return e.target}catch{return null}}const LM=$W();function V1e(){if(!("fetch"in LM))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function MM(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function bgt(){if(typeof EdgeRuntime=="string")return!0;if(!V1e())return!1;if(MM(LM.fetch))return!0;let e=!1;const t=LM.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=MM(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){UO&&kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function q1e(e){const t="fetch";Y1(t,e),Z1(t,ygt)}function ygt(){bgt()&&Gs(Gr,"fetch",function(e){return function(...t){const{method:n,url:r}=vgt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Td("fetch",{...i}),e.apply(Gr,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Td("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Td("fetch",s),a})}})}function $M(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Ene(e){return typeof e=="string"?e:e?$M(e,"url")?e.url:e.toString?e.toString():"":""}function vgt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Ene(n),method:$M(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Ene(t),method:$M(t,"method")?String(t.method).toUpperCase():"GET"}}let w4=null;function G1e(e){const t="error";Y1(t,e),Z1(t,Ogt)}function Ogt(){w4=Gr.onerror,Gr.onerror=function(e,t,n,r,i){return Td("error",{column:r,error:i,line:n,msg:e,url:t}),w4&&!w4.__SENTRY_LOADER__?w4.apply(this,arguments):!1},Gr.onerror.__SENTRY_INSTRUMENTED__=!0}let T4=null;function Y1e(e){const t="unhandledrejection";Y1(t,e),Z1(t,Sgt)}function Sgt(){T4=Gr.onunhandledrejection,Gr.onunhandledrejection=function(e){return Td("unhandledrejection",e),T4&&!T4.__SENTRY_LOADER__?T4.apply(this,arguments):!0},Gr.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const x4=$W();function Egt(){const e=x4.chrome,t=e&&e.app&&e.app.runtime,n="history"in x4&&!!x4.history.pushState&&!!x4.history.replaceState;return!t&&n}const CE=Gr;let k4;function BW(e){const t="history";Y1(t,e),Z1(t,wgt)}function wgt(){if(!Egt())return;const e=CE.onpopstate;CE.onpopstate=function(...n){const r=CE.location.href,i=k4;if(k4=r,Td("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=k4,s=String(i);k4=s,Td("history",{from:a,to:s})}return n.apply(this,r)}}Gs(CE.history,"pushState",t),Gs(CE.history,"replaceState",t)}const Tgt=Gr,wy="__sentry_xhr_v3__";function Z1e(e){const t="xhr";Y1(t,e),Z1(t,xgt)}function xgt(){if(!Tgt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Gs(e,"open",function(t){return function(...n){const r=Date.now(),i=Ff(n[0])?n[0].toUpperCase():void 0,a=kgt(n[1]);if(!i||!a)return t.apply(this,n);this[wy]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[wy];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Td("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Gs(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),Gs(this,"setRequestHeader",function(o){return function(...l){const[u,d]=l,f=this[wy];return f&&Ff(u)&&Ff(d)&&(f.request_headers[u.toLowerCase()]=d),o.apply(this,l)}}),t.apply(this,n)}}),Gs(e,"send",function(t){return function(...n){const r=this[wy];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Td("xhr",i),t.apply(this,n)}})}function kgt(e){if(Ff(e))return e;try{return e.toString()}catch{}}function Agt(){return"npm"}function _gt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?X1e(e,t-1,n):r}function FM(e,t,n=1/0,r=1/0,i=_gt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!L1e(t))return t;const o=Cgt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return FM("",g,l-1,r,i)}catch{}const d=Array.isArray(t)?[]:{};let f=0;const p=z1e(t);for(const g in p){if(!Object.prototype.hasOwnProperty.call(p,g))continue;if(f>=r){d[g]="[MaxProperties ~]";break}const O=p[g];d[g]=FM(g,O,l-1,r,i),f++}return s(t),d}function Cgt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(M1e(t))return"[VueViewModel]";if(Hmt(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${mp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Rgt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Rgt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Igt(e){return~-encodeURI(e).split(/%..|./).length}function Ngt(e){return Igt(JSON.stringify(e))}var Dh;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Dh||(Dh={}));function qv(e){return new hu(t=>{t(e)})}function UW(e){return new hu((t,n)=>{n(e)})}class hu{constructor(t){hu.prototype.__init.call(this),hu.prototype.__init2.call(this),hu.prototype.__init3.call(this),hu.prototype.__init4.call(this),this._state=Dh.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new hu((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new hu((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Dh.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Dh.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Dh.PENDING){if(NI(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Dh.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Dh.RESOLVED&&n[1](this._value),this._state===Dh.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Dgt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new hu((o,l)=>{let u=t.length;if(!u)return o(!0);const d=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{qv(f).then(()=>{--u||(clearTimeout(d),o(!0))},l)})})}return{$:t,add:i,drain:a}}function o1(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Pgt=["fatal","error","warning","log","info","debug"];function Lgt(e){return e==="warn"?"warning":Pgt.includes(e)?e:"log"}const K1e=1e3;function Ex(){return Date.now()/K1e}function Mgt(){const{performance:e}=Gr;if(!e||!e.now)return Ex;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/K1e}const wx=Mgt(),Ic=(()=>{const{performance:e}=Gr;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=wne(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=wne(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match($gt)){const s=i.slice(J1e.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function ebe(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${J1e}${r}`]=i),n),{});return Ugt(t)}function wne(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function Ugt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>Fgt?(UO&&kt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const zgt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function jgt(e){if(!e)return;const t=e.match(zgt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Hgt(e,t){const n=jgt(e),r=Bgt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceId:i||Pa(),parentSpanId:a||Pa().substring(16),spanId:Pa().substring(16),sampled:s,dsc:r||{}}:{traceId:i||Pa(),spanId:Pa().substring(16)}}function zW(e=Pa(),t=Pa().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function X1(e,t=[]){return[e,t]}function Qgt(e,t){const[n,r]=e;return[n,[...r,t]]}function Tne(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function UM(e,t){return(t||new TextEncoder).encode(e)}function Wgt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[UM(i,t),s]:i.push(typeof s=="string"?UM(s,t):s)}for(const s of r){const[o,l]=s;if(a(` +${JSON.stringify(o)} +`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(c0(l))}a(u)}}return typeof i=="string"?i:Vgt(i)}function Vgt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function qgt(e,t){const n=typeof e.data=="string"?UM(e.data,t):e.data;return[Su({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Ggt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",span:"span",statsd:"metric_bucket"};function xne(e){return Ggt[e]}function tbe(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Ygt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:zO(r)},...i&&{trace:Su({...i})}}}function Zgt(e,t,n){const r=[{type:"client_report"},{timestamp:Ex(),discarded_events:e}];return X1(t?{dsn:t}:{},[r])}const Xgt=60*1e3;function Kgt(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Xgt:r-t}function Jgt(e,t){return e[t]||e.all||0}function e1t(e,t,n=Date.now()){return Jgt(e,t)>n}function t1t(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u,,,d]=o.split(":",5),f=parseInt(l,10),p=(isNaN(f)?60:f)*1e3;if(!u)i.all=r+p;else for(const g of u.split(";"))g==="metric_bucket"?(!d||d.split(";").includes("custom"))&&(i[g]=r+p):i[g]=r+p}else s?i.all=r+Kgt(s,r):t===429&&(i.all=r+60*1e3);return i}const In=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,PI="production";function jW(){return $1e("globalEventProcessors",()=>[])}function n1t(e){jW().push(e)}function HC(e,t,n,r=0){return new hu((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);In&&s.id&&o===null&&kt.log(`Event processor "${s.id}" dropped event`),NI(o)?o.then(l=>HC(e,l,n,r+1).then(i)).then(null,a):HC(e,o,n,r+1).then(i).then(null,a)}})}function nbe(e){const t=wx(),n={sid:Pa(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>r1t(n)};return e&&I1(n,e),n}function I1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||wx(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:Pa()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function rbe(e,t){let n={};e.status==="ok"&&(n={status:"exited"}),I1(e,n)}function r1t(e){return Su({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const i1t=0,ibe=1;function HW(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=Jo(e);return Su({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function LI(e){const{traceId:t,spanId:n}=e.spanContext(),r=QW(e);return zW(t,n,r)}function MI(e){return typeof e=="number"?kne(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?kne(e.getTime()):wx()}function kne(e){return e>9999999999?e/1e3:e}function Jo(e){return a1t(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function a1t(e){return typeof e.getSpanJSON=="function"}function QW(e){const{traceFlags:t}=e.spanContext();return!!(t&ibe)}function s1t(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||Pa(),timestamp:t.timestamp||Ex()},u=n.integrations||e.integrations.map(T=>T.name);o1t(l,e),c1t(l,u),t.type===void 0&&l1t(l,e.stackParser);const d=f1t(r,n.captureContext);n.mechanism&&iT(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],p=S1t().getScopeData();if(a){const T=a.getScopeData();Rne(p,T)}if(d){const T=d.getScopeData();Rne(p,T)}const g=[...n.attachments||[],...p.attachments];g.length&&(n.attachments=g),lbe(l,p);const O=[...f,...jW(),...p.eventProcessors];return HC(O,l,n).then(T=>(T&&u1t(T),typeof s=="number"&&s>0?d1t(T,s,o):T))}function o1t(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:PI),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Xy(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Xy(s.value,a));const o=e.request;o&&o.url&&(o.url=Xy(o.url,a))}const Ane=new WeakMap;function l1t(e,t){const n=Gr._sentryDebugIds;if(!n)return;let r;const i=Ane.get(t);i?r=i:(r=new Map,Ane.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let d=l.length-1;d>=0;d--){const f=l[d];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function u1t(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function c1t(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function d1t(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:c0(i.data,t,n)}}))},...e.user&&{user:c0(e.user,t,n)},...e.contexts&&{contexts:c0(e.contexts,t,n)},...e.extra&&{extra:c0(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=c0(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Jo(i).data;return a&&(i.data=c0(a,t,n)),i})),r}function f1t(e,t){if(!t)return e;const n=e?e.clone():new K0;return n.update(t),n}function h1t(e,t){return jc().captureException(e,void 0)}function abe(e,t){return jc().captureEvent(e,t)}function N1(e,t){jc().addBreadcrumb(e,t)}function p1t(...e){const t=jc();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function ds(){return jc().getClient()}function rh(){return jc().getScope()}function _ne(e){const t=ds(),n=K1(),r=rh(),{release:i,environment:a=PI}=t&&t.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=nbe({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&I1(l,{status:"exited"}),sbe(),n.setSession(o),r.setSession(o),o}function sbe(){const e=K1(),t=rh(),n=t.getSession()||e.getSession();n&&rbe(n),obe(),e.setSession(),t.setSession()}function obe(){const e=K1(),t=rh(),n=ds(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Cne(e=!1){if(e){sbe();return}obe()}function QC(e){return e.transaction}function $I(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=Su({environment:r.environment||PI,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Gv(e){const t=ds();if(!t)return{};const n=$I(Jo(e).trace_id||"",t,rh()),r=QC(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=Jo(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(QW(r)),t.emit&&t.emit("createDsc",n),n}function lbe(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;m1t(e,t),r&&y1t(e,r),v1t(e,n),g1t(e,i),b1t(e,a)}function Rne(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:d,attachments:f,propagationContext:p,transactionName:g,span:O}=t;RE(e,"extra",n),RE(e,"tags",r),RE(e,"user",i),RE(e,"contexts",a),RE(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),O&&(e.span=O),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),d.length&&(e.eventProcessors=[...e.eventProcessors,...d]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...p}}function RE(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function m1t(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=Su(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=Su(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const d=Su(i);d&&Object.keys(d).length&&(e.user={...d,...e.user});const f=Su(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function g1t(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function b1t(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function y1t(e,t){e.contexts={trace:HW(t),...e.contexts};const n=QC(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Gv(t),...e.sdkProcessingMetadata};const r=Jo(n).description;r&&(e.tags={transaction:r,...e.tags})}}function v1t(e,t){e.fingerprint=e.fingerprint?W1e(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const O1t=100;let P7;class K0{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Ine()}static clone(t){return t?t.clone():new K0}clone(){const t=new K0;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&I1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;const n=typeof t=="function"?t(this):t;if(n instanceof K0){const r=n.getScopeData();this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&Object.keys(r.user).length&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint.length&&(this._fingerprint=r.fingerprint),n.getRequestSession()&&(this._requestSession=n.getRequestSession()),r.propagationContext&&(this._propagationContext=r.propagationContext)}else if(Wv(n)){const r=t;this._tags={...this._tags,...r.tags},this._extra={...this._extra,...r.extra},this._contexts={...this._contexts,...r.contexts},r.user&&(this._user=r.user),r.level&&(this._level=r.level),r.fingerprint&&(this._fingerprint=r.fingerprint),r.requestSession&&(this._requestSession=r.requestSession),r.propagationContext&&(this._propagationContext=r.propagationContext)}return this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Ine(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:O1t;if(r<=0)return this;const i={timestamp:Ex(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:d,_sdkProcessingMetadata:f,_transactionName:p,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:d,sdkProcessingMetadata:f,transactionName:p,span:g}}applyToEvent(t,n={},r=[]){lbe(t,this.getScopeData());const i=[...r,...jW(),...this._eventProcessors];return HC(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:Pa();if(!this._client)return kt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:Pa();if(!this._client)return kt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Pa();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(kt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function S1t(){return P7||(P7=new K0),P7}function Ine(){return{traceId:Pa(),spanId:Pa().substring(16)}}const zM="7.119.0",ube=parseFloat(zM),E1t=100;class cbe{constructor(t,n,r,i=ube){this._version=i;let a;n?a=n:(a=new K0,a.setClient(t));let s;r?s=r:(s=new K0,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:Pa(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:Pa(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:Pa();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=E1t}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:Ex(),...t},u=a?DI(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Nne(this);try{t(this)}finally{Nne(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return In&&kt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return In&&!r&&(this.getClient()?kt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': +Sentry.addTracingExtensions(); +Sentry.init({...}); +`):kt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&rbe(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=PI}=r&&r.getOptions()||{},{userAgent:s}=Gr.navigator||{},o=nbe({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&I1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=Tx().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);In&&kt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function Tx(){return Gr.__SENTRY__=Gr.__SENTRY__||{extensions:{},hub:void 0},Gr}function Nne(e){const t=Tx(),n=jM(t);return dbe(t,e),n}function jc(){const e=Tx();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return w1t(e)}function K1(){return jc().getIsolationScope()}function w1t(e=Tx()){return(!T1t(e)||jM(e).isOlderThan(ube))&&dbe(e,new cbe),jM(e)}function T1t(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function jM(e){return $1e("hub",()=>new cbe,e)}function dbe(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function D1(e){return jc().getScope().getTransaction()}let Dne=!1;function x1t(){Dne||(Dne=!0,G1e(HM),Y1e(HM))}function HM(){const e=D1();if(e){const t="internal_error";In&&kt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}HM.tag="sentry_tracingErrorCallback";var Pne;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const d="internal_error";e.InternalError=d;const f="unknown_error";e.UnknownError=f;const p="cancelled";e.Cancelled=p;const g="already_exists";e.AlreadyExists=g;const O="failed_precondition";e.FailedPrecondition=O;const S="aborted";e.Aborted=S;const T="out_of_range";e.OutOfRange=T;const w="data_loss";e.DataLoss=w})(Pne||(Pne={}));function k1t(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function WW(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=k1t(t);n!=="unknown_error"&&e.setStatus(n)}function jO(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=ds(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function fbe(e){if(!jO())return;const t=C1t(e),n=jc(),r=e.scope?e.scope.getSpan():A1t();if(e.onlyIfParent&&!r)return;const s=(e.scope||rh()).clone();return _1t(n,{parentSpan:r,spanContext:t,forceTransaction:e.forceTransaction,scope:s})}function A1t(){return rh().getSpan()}function _1t(e,{parentSpan:t,spanContext:n,forceTransaction:r,scope:i}){if(!jO())return;const a=K1();let s;if(t&&!r)s=t.startChild(n);else if(t){const o=Gv(t),{traceId:l,spanId:u}=t.spanContext(),d=QW(t);s=e.startTransaction({traceId:l,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:o,...n.metadata}})}else{const{traceId:o,dsc:l,parentSpanId:u,sampled:d}={...a.getPropagationContext(),...i.getPropagationContext()};s=e.startTransaction({traceId:o,parentSpanId:u,parentSampled:d,...n,metadata:{dynamicSamplingContext:l,...n.metadata}})}return i.setSpan(s),R1t(s,i,a),s}function C1t(e){if(e.startTime){const t={...e};return t.startTimestamp=MI(e.startTime),delete t.startTime,t}return e}const hbe="_sentryScope",pbe="_sentryIsolationScope";function R1t(e,t,n){e&&(R1(e,pbe,n),R1(e,hbe,t))}function I1t(e){return{scope:e[hbe],isolationScope:e[pbe]}}const l1="sentry.source",Ty="sentry.sample_rate",ZE="sentry.op",Vg="sentry.origin",N1t="profile_id";class mbe{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class FI{constructor(t={}){this._traceId=t.traceId||Pa(),this._spanId=t.spanId||Pa().substring(16),this._startTime=t.startTimestamp||wx(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Vg]:t.origin||"manual",[ZE]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp),t.exclusiveTime!==void 0&&(this._exclusiveTime=t.exclusiveTime),this._measurements=t.measurements?{...t.measurements}:{}}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[ZE]}set op(t){this.setAttribute(ZE,t)}get origin(){return this._attributes[Vg]}set origin(t){this.setAttribute(Vg,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?ibe:i1t}}startChild(t){const n=new FI({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=QC(this);if(n.transaction=r,In&&r){const i=t&&t.op||"< unknown op >",a=Jo(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;kt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return WW(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=QC(this);if(In&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&kt.log(r.replace("Starting","Finishing"))}this._endTime=MI(t)}toTraceparent(){return LI(this)}toContext(){return Su({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return HW(this)}getSpanJSON(){return Su({data:this._getData(),description:this._name,op:this._attributes[ZE],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Vg],_metrics_summary:void 0,profile_id:this._attributes[N1t],exclusive_time:this._exclusiveTime,measurements:Object.keys(this._measurements).length>0?this._measurements:void 0})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class gbe extends FI{constructor(t,n){super(t),this._contexts={},this._hub=n||jc(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[l1]&&{source:this._attributes[l1]},...this._attributes[Ty]&&{sampleRate:this._attributes[Ty]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(l1,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new mbe(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=MI(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return Su({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Gv(this)}setHub(t){this._hub=t}getProfileId(){if(this._contexts!==void 0&&this._contexts.profile!==void 0)return this._contexts.profile.profile_id}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(In&&kt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){In&&kt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(d=>d!==this&&Jo(d).timestamp):[];if(this._trimEnd&&r.length>0){const d=r.map(f=>Jo(f).timestamp).filter(Boolean);this._endTime=d.reduce((f,p)=>f>p?f:p)}const{scope:i,isolationScope:a}=I1t(this),{metadata:s}=this,{source:o}=s,l={contexts:{...this._contexts,trace:HW(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...s,capturedSpanScope:i,capturedSpanIsolationScope:a,...Su({dynamicSamplingContext:Gv(this)})},_metrics_summary:void 0,...o&&{transaction_info:{source:o}}};return Object.keys(this._measurements).length>0&&(In&&kt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),l.measurements=this._measurements),In&&kt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),l}}const R_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},D1t="finishReason",zb=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class P1t extends mbe{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Jo(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class L1t extends gbe{constructor(t,n,r=R_.idleTimeout,i=R_.finalTimeout,a=R_.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=zb[4],this._autoFinishAllowed=!o,s&&(In&&kt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=zb[3],this.end())},this._finalTimeout)}end(t){const n=MI(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(D1t,this._finishReason),this.spanRecorder){In&&kt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Jo(r).timestamp||(r.setStatus("cancelled"),r.end(n),In&&kt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Jo(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new P1t(n,r,this.spanContext().spanId,t),In&&kt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=zb[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(In&&kt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=zb[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),In&&kt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,In&&kt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(In&&kt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],In&&kt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=wx();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=zb[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(In&&kt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=zb[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){In&&kt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function bbe(e,t,n){if(!jO(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Ty,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Ty,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Ty,Number(r))):(r=1,e.setAttribute(Ty,r)),ybe(r)?r?(e.sampled=Math.random()1?(In&&kt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function M1t(){const t=this.getScope().getSpan();return t?{"sentry-trace":LI(t)}:{}}function $1t(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(In&&kt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. +The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new gbe(e,this);return s=bbe(s,r,{name:e.name,parentSampled:e.parentSampled,transactionContext:e,attributes:{...e.data,...e.attributes},...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function Lne(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let d=new L1t(t,e,n,r,s,i,o);return d=bbe(d,u,{name:t.name,parentSampled:t.parentSampled,transactionContext:t,attributes:{...t.data,...t.attributes},...a}),d.isRecording()&&d.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",d),d}function F1t(){const e=Tx();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=$1t),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=M1t),x1t())}function B1t(e,t,n){const r=D1();r&&r.setMeasurement(e,t,n)}function U1t(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function z1t(e,t,n,r){const i=tbe(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:zO(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return X1(a,[s])}function j1t(e,t,n,r){const i=tbe(n),a=e.type&&e.type!=="replay_event"?e.type:"event";U1t(e,n&&n.sdk);const s=Ygt(e,i,r,t);return delete e.sdkProcessingMetadata,X1(s,[[{type:a},e]])}const H1t="7";function Q1t(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function W1t(e){return`${Q1t(e)}${e.projectId}/envelope/`}function V1t(e,t){return igt({sentry_key:e.publicKey,sentry_version:H1t,...t&&{sentry_client:`${t.name}/${t.version}`}})}function q1t(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${W1t(e)}?${V1t(e,r)}`}const Mne=[];function G1t(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Y1t(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=W1e(n(t)):r=t;const i=G1t(r),a=X1t(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function Z1t(e,t){const n={};return t.forEach(r=>{r&&vbe(e,r,n)}),n}function $ne(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function vbe(e,t,n){if(n[t.name]){In&&kt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,Mne.indexOf(t.name)===-1&&(t.setupOnce(n1t,jc),Mne.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}In&&kt.log(`Integration installed: ${t.name}`)}function X1t(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} +`}return t}function J1t(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=zO(t));const a=ebt(e);return X1(i,[a])}function ebt(e){const t=K1t(e);return[{type:"statsd",length:t.length},t]}const Fne="Not capturing exception because it's already been captured.";class tbt{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=rgt(t.dsn):In&&kt.warn("No DSN provided, client will not send events."),this._dsn){const n=q1t(this._dsn,t);this._transport=t.transport({tunnel:this._options.tunnel,recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(vne(t)){In&&kt.log(Fne);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=LW(t)?t:String(t),o=MW(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&vne(n.originalException)){In&&kt.log(Fne);return}let i=n&&n.event_id;const s=(t.sdkProcessingMetadata||{}).capturedSpanScope;return this._process(this._captureEvent(t,n,s||r).then(o=>{i=o})),i}captureSession(t){typeof t.release!="string"?In&&kt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),I1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):qv(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return In&&kt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];vbe(this,t,this._integrations),n||$ne(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=j1t(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=Qgt(r,qgt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=z1t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=typeof r=="number"?r:1,a=`${t}:${n}`;In&&kt.log(`Recording outcome: "${a}"${i>1?` (${i} times)`:""}`),this._outcomes[a]=(this._outcomes[a]||0)+i}}captureAggregateMetrics(t){In&&kt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=J1t(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Z1t(this,t),$ne(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(I1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new hu(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=K1()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),s1t(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:d,spanId:f,parentSpanId:p,dsc:g}=l;o.contexts={trace:{trace_id:d,span_id:f,parent_span_id:p},...o.contexts};const O=g||$I(d,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:O,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(In){const a=i;a.logLevel==="log"?kt.log(a.message):kt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=Sbe(t),o=Obe(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),UW(new Of(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const d=l==="replay_event"?"replay":l,p=(t.sdkProcessingMetadata||{}).capturedSpanIsolationScope;return this._prepareEvent(t,n,r,p).then(g=>{if(g===null)throw this.recordDroppedEvent("event_processor",d,t),new Of("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return g;const S=rbt(i,g,n);return nbt(S,u)}).then(g=>{if(g===null){if(this.recordDroppedEvent("before_send",d,t),s){const w=1+(t.spans||[]).length;this.recordDroppedEvent("before_send","span",w)}throw new Of(`${u} returned \`null\`, will not send event.`,"log")}const O=r&&r.getSession();if(!s&&O&&this._updateSessionFromEvent(O,g),s){const T=g.sdkProcessingMetadata&&g.sdkProcessingMetadata.spanCountBeforeProcessing||0,w=g.spans?g.spans.length:0,x=T-w;x>0&&this.recordDroppedEvent("before_send","span",x)}const S=g.transaction_info;if(s&&S&&g.transaction!==t.transaction){const T="custom";g.transaction_info={...S,source:T}}return this.sendEvent(g,n),g}).then(null,g=>{throw g instanceof Of?g:(this.captureException(g,{data:{__sentry__:!0},originalException:g}),new Of(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. +Reason: ${g}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{In&&kt.error("Error while sending event:",n)});In&&kt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function nbt(e,t){const n=`${t} must return \`null\` or a valid event.`;if(NI(e))return e.then(r=>{if(!Wv(r)&&r!==null)throw new Of(n);return r},r=>{throw new Of(`${t} rejected with ${r}`)});if(!Wv(e)&&e!==null)throw new Of(n);return e}function rbt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;if(Obe(t)&&r)return r(t,n);if(Sbe(t)&&i){if(t.spans){const a=t.spans.length;t.sdkProcessingMetadata={...t.sdkProcessingMetadata,spanCountBeforeProcessing:a}}return i(t,n)}return t}function Obe(e){return e.type===void 0}function Sbe(e){return e.type==="transaction"}function ibt(e,t){t.debug===!0&&(In?kt.enable():DI(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),rh().update(t.initialScope);const r=new e(t);abt(r),sbt(r)}function abt(e){const n=jc().getStackTop();n.client=e,n.scope.setClient(e)}function sbt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const obt=30;function Ebe(e,t,n=Dgt(e.bufferSize||obt)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(Tne(s,(f,p)=>{const g=xne(p);if(e1t(r,g)){const O=Bne(f,p);e.recordDroppedEvent("ratelimit_backoff",g,O)}else o.push(f)}),o.length===0)return qv();const l=X1(s[0],o),u=f=>{Tne(l,(p,g)=>{const O=Bne(p,g);e.recordDroppedEvent(f,xne(g),O)})},d=()=>t({body:Wgt(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&In&&kt.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=t1t(r,f),f),f=>{throw u("network_error"),f});return n.add(d).then(f=>f,f=>{if(f instanceof Of)return In&&kt.error("Skipped sending event because buffer is full."),u("queue_overflow"),qv();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function Bne(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function lbt(e,t){const n={sent_at:new Date().toISOString()};t&&(n.dsn=zO(t));const r=e.map(ubt);return X1(n,r)}function ubt(e){return[{type:"span"},e]}function wbe(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:zM})),version:zM}),e._metadata=i}const cbt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/,/^ResizeObserver loop completed with undelivered notifications.$/,/^Cannot redefine property: googletag$/],dbt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Tbe="InboundFilters",fbt=(e={})=>({name:Tbe,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=hbt(e,i);return pbt(t,a)?null:t}}),xbe=fbt;km(Tbe,xbe);function hbt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:cbt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:dbt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function pbt(e,t){return t.ignoreInternal&&Obt(e)?(In&&kt.warn(`Event dropped due to being internal Sentry Error. +Event: ${b0(e)}`),!0):mbt(e,t.ignoreErrors)?(In&&kt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. +Event: ${b0(e)}`),!0):gbt(e,t.ignoreTransactions)?(In&&kt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. +Event: ${b0(e)}`),!0):bbt(e,t.denyUrls)?(In&&kt.warn(`Event dropped due to being matched by \`denyUrls\` option. +Event: ${b0(e)}. +Url: ${WC(e)}`),!0):ybt(e,t.allowUrls)?!1:(In&&kt.warn(`Event dropped due to not being matched by \`allowUrls\` option. +Event: ${b0(e)}. +Url: ${WC(e)}`),!0)}function mbt(e,t){return e.type||!t||!t.length?!1:vbt(e).some(n=>Sx(n,t))}function gbt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?Sx(n,t):!1}function bbt(e,t){if(!t||!t.length)return!1;const n=WC(e);return n?Sx(n,t):!1}function ybt(e,t){if(!t||!t.length)return!0;const n=WC(e);return n?Sx(n,t):!0}function vbt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),In&&t.length===0&&kt.error(`Could not extract message for event ${b0(e)}`),t}function Obt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function Sbt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function WC(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?Sbt(t):null}catch{return In&&kt.error(`Cannot extract url for event ${b0(e)}`),null}}let Une;const kbe="FunctionToString",zne=new WeakMap,Ebt=()=>({name:kbe,setupOnce(){Une=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=FW(this),n=zne.has(ds())&&t!==void 0?t:this;return Une.apply(n,e)}}catch{}},setup(e){zne.set(e,!0)}}),Abe=Ebt;km(kbe,Abe);const Ai=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,er=Gr;function wbt(){er.document?er.document.addEventListener("visibilitychange",()=>{const e=D1();if(er.document.hidden&&e){const t="cancelled",{op:n,status:r}=Jo(e);Ai&&kt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):Ai&&kt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const xx=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},Tbt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,xbt=()=>{const e=er.performance.timing,t=er.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},BI=()=>er.__WEB_VITALS_POLYFILL__?er.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||xbt()):er.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],VW=()=>{const e=BI();return e&&e.activationStart||0},kx=(e,t)=>{const n=BI();let r="navigate";return n&&(er.document&&er.document.prerendering||VW()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:Tbt(),navigationType:r}},HO=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},Ax=(e,t)=>{const n=r=>{(r.type==="pagehide"||er.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};er.document&&(addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0))},kbt=(e,t={})=>{const n=kx("CLS",0);let r,i=0,a=[];const s=l=>{l.forEach(u=>{if(!u.hadRecentInput){const d=a[0],f=a[a.length-1];i&&a.length!==0&&u.startTime-f.startTime<1e3&&u.startTime-d.startTime<5e3?(i+=u.value,a.push(u)):(i=u.value,a=[u]),i>n.value&&(n.value=i,n.entries=a,r&&r())}})},o=HO("layout-shift",s);if(o){r=xx(e,n,t.reportAllChanges);const l=()=>{s(o.takeRecords()),r(!0)};return Ax(l),l}};let VC=-1;const Abt=()=>{er.document&&er.document.visibilityState&&(VC=er.document.visibilityState==="hidden"&&!er.document.prerendering?0:1/0)},_bt=()=>{Ax(({timeStamp:e})=>{VC=e},!0)},qW=()=>(VC<0&&(Abt(),_bt()),{get firstHiddenTime(){return VC}}),Cbt=e=>{const t=qW(),n=kx("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=HO("first-input",a);r=xx(e,n),s&&Ax(()=>{a(s.takeRecords()),s.disconnect()},!0)};let _be=0,L7=1/0,A4=0;const Rbt=e=>{e.forEach(t=>{t.interactionId&&(L7=Math.min(L7,t.interactionId),A4=Math.max(A4,t.interactionId),_be=A4?(A4-L7)/7+1:0)})};let QM;const Ibt=()=>QM?_be:performance.interactionCount||0,Nbt=()=>{"interactionCount"in performance||QM||(QM=HO("event",Rbt,{type:"event",buffered:!0,durationThreshold:0}))},Cbe=()=>Ibt(),jne=10,$h=[],M7={},Hne=e=>{const t=$h[$h.length-1],n=M7[e.interactionId];if(n||$h.lengtht.latency){if(n)n.entries.push(e),n.latency=Math.max(n.latency,e.duration);else{const r={id:e.interactionId,latency:e.duration,entries:[e]};M7[r.id]=r,$h.push(r)}$h.sort((r,i)=>i.latency-r.latency),$h.splice(jne).forEach(r=>{delete M7[r.id]})}},Dbt=()=>{const e=Math.min($h.length-1,Math.floor(Cbe()/50));return $h[e]},Pbt=(e,t)=>{t=t||{},Nbt();const n=kx("INP");let r;const i=s=>{s.forEach(l=>{l.interactionId&&Hne(l),l.entryType==="first-input"&&!$h.some(d=>d.entries.some(f=>l.duration===f.duration&&l.startTime===f.startTime))&&Hne(l)});const o=Dbt();o&&o.latency!==n.value&&(n.value=o.latency,n.entries=o.entries,r())},a=HO("event",i,{durationThreshold:t.durationThreshold||40});r=xx(e,n,t.reportAllChanges),a&&(a.observe({type:"first-input",buffered:!0}),Ax(()=>{i(a.takeRecords()),n.value<0&&Cbe()>0&&(n.value=0,n.entries=[]),r(!0)}))},Qne={},Lbt=e=>{const t=qW(),n=kx("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-VW(),0);l{Qne[n.id]||(i(a.takeRecords()),a.disconnect(),Qne[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{er.document&&addEventListener(o,s,{once:!0,capture:!0})}),Ax(s,!0),s}},WM=e=>{er.document&&(er.document.prerendering?addEventListener("prerenderingchange",()=>WM(e),!0):er.document.readyState!=="complete"?addEventListener("load",()=>WM(e),!0):setTimeout(e,0))},Mbt=(e,t)=>{t=t||{};const n=kx("TTFB"),r=xx(e,n,t.reportAllChanges);WM(()=>{const i=BI();if(i){if(n.value=Math.max(i.responseStart-VW(),0),n.value<0||n.value>performance.now())return;n.entries=[i],r(!0)}})},B2={},qC={};let Rbe,Ibe,Nbe,Dbe,Pbe;function $bt(e,t=!1){return _x("cls",e,jbt,Rbe,t)}function Fbt(e,t=!1){return _x("lcp",e,Qbt,Nbe,t)}function Bbt(e){return _x("ttfb",e,Wbt,Dbe)}function Ubt(e){return _x("fid",e,Hbt,Ibe)}function zbt(e){return _x("inp",e,Vbt,Pbe)}function aT(e,t){return Lbe(e,t),qC[e]||(qbt(e),qC[e]=!0),Mbe(e,t)}function QO(e,t){const n=B2[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){Ai&&kt.error(`Error while triggering instrumentation handler. +Type: ${e} +Name: ${mp(r)} +Error:`,i)}}function jbt(){return kbt(e=>{QO("cls",{metric:e}),Rbe=e},{reportAllChanges:!0})}function Hbt(){return Cbt(e=>{QO("fid",{metric:e}),Ibe=e})}function Qbt(){return Lbt(e=>{QO("lcp",{metric:e}),Nbe=e})}function Wbt(){return Mbt(e=>{QO("ttfb",{metric:e}),Dbe=e})}function Vbt(){return Pbt(e=>{QO("inp",{metric:e}),Pbe=e})}function _x(e,t,n,r,i=!1){Lbe(e,t);let a;return qC[e]||(a=n(),qC[e]=!0),r&&t({metric:r}),Mbe(e,t,i?a:void 0)}function qbt(e){const t={};e==="event"&&(t.durationThreshold=0),HO(e,n=>{QO(e,{entries:n})},t)}function Lbe(e,t){B2[e]=B2[e]||[],B2[e].push(t)}function Mbe(e,t,n){return()=>{n&&n();const r=B2[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function $7(e){return typeof e=="number"&&isFinite(e)}function Yv(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const Gbt=2147483647;function rs(e){return e/1e3}function GW(){return er&&er.addEventListener&&er.performance}let Wne=0,Sa={},of,U2;function Ybt(){const e=GW();if(e&&Ic){e.mark&&er.performance.mark("sentry-tracing-init");const t=tyt(),n=Jbt(),r=eyt(),i=nyt();return()=>{t(),n(),r(),i()}}return()=>{}}function Zbt(){aT("longtask",({entries:e})=>{for(const t of e){const n=D1();if(!n)return;const r=rs(Ic+t.startTime),i=rs(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function Xbt(){aT("event",({entries:e})=>{for(const t of e){const n=D1();if(!n)return;if(t.name==="click"){const r=rs(Ic+t.startTime),i=rs(t.duration),a={description:Vv(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=F1e(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function Kbt(e,t){if(GW()&&Ic){const r=ryt(e,t);return()=>{r()}}return()=>{}}function Jbt(){return $bt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ai&&kt.log("[Measurements] Adding CLS"),Sa.cls={value:e.value,unit:""},U2=t)},!0)}function eyt(){return Fbt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(Ai&&kt.log("[Measurements] Adding LCP"),Sa.lcp={value:e.value,unit:"millisecond"},of=t)},!0)}function tyt(){return Ubt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=rs(Ic),r=rs(t.startTime);Ai&&kt.log("[Measurements] Adding FID"),Sa.fid={value:e.value,unit:"millisecond"},Sa["mark.fid"]={value:n+r,unit:"second"}})}function nyt(){return Bbt(({metric:e})=>{e.entries[e.entries.length-1]&&(Ai&&kt.log("[Measurements] Adding TTFB"),Sa.ttfb={value:e.value,unit:"millisecond"})})}const Vne={click:"click",pointerdown:"click",pointerup:"click",mousedown:"click",mouseup:"click",touchstart:"click",touchend:"click",mouseover:"hover",mouseout:"hover",mouseenter:"hover",mouseleave:"hover",pointerover:"hover",pointerout:"hover",pointerenter:"hover",pointerleave:"hover",dragstart:"drag",dragend:"drag",drag:"drag",dragenter:"drag",dragleave:"drag",dragover:"drag",drop:"drag",keydown:"press",keyup:"press",keypress:"press",input:"press"};function ryt(e,t){return zbt(({metric:n})=>{if(n.value===void 0)return;const r=n.entries.find(k=>k.duration===n.value&&Vne[k.name]!==void 0),i=ds();if(!r||!i)return;const a=Vne[r.name],s=i.getOptions(),o=rs(Ic+r.startTime),l=rs(n.value),u=r.interactionId!==void 0?e[r.interactionId]:void 0;if(u===void 0)return;const{routeName:d,parentContext:f,activeTransaction:p,user:g,replayId:O}=u,S=g!==void 0?g.email||g.id||g.ip_address:void 0,T=p!==void 0?p.getProfileId():void 0,w=new FI({startTimestamp:o,endTimestamp:o+l,op:`ui.interaction.${a}`,name:Vv(r.target),attributes:{release:s.release,environment:s.environment,transaction:d,...S!==void 0&&S!==""?{user:S}:{},...T!==void 0?{profile_id:T}:{},...O!==void 0?{replay_id:O}:{}},exclusiveTime:n.value,measurements:{inp:{value:n.value,unit:"millisecond"}}}),x=fyt(f,s,t);if(x&&Math.random(){Ai&&kt.error("Error while sending interaction:",I)});return}})}function iyt(e){const t=GW();if(!t||!er.performance.getEntries||!Ic)return;Ai&&kt.log("[Tracing] Adding & adjusting spans using Performance API");const n=rs(Ic),r=t.getEntries(),{op:i,start_timestamp:a}=Jo(e);if(r.slice(Wne).forEach(s=>{const o=rs(s.startTime),l=rs(s.duration);if(!(e.op==="navigation"&&a&&n+o{if(!Sa[o]||!a||n>=a)return;const l=Sa[o].value,u=n+rs(l),d=Math.abs((u-a)*1e3),f=d-l;Ai&&kt.log(`[Measurements] Normalized ${o} from ${l} to ${d} (${f})`),Sa[o].value=d});const s=Sa["mark.fid"];s&&Sa.fid&&(Yv(e,{description:"first input delay",endTimestamp:s.value+rs(Sa.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:s.value}),delete Sa["mark.fid"]),"fcp"in Sa||delete Sa.cls,Object.keys(Sa).forEach(o=>{B1t(o,Sa[o].value,Sa[o].unit)}),cyt(e)}of=void 0,U2=void 0,Sa={}}function ayt(e,t,n,r,i){const a=i+n,s=a+r;return Yv(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function syt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{_4(e,t,r,n)}),_4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),_4(e,t,"fetch",n,"cache","domainLookupStart"),_4(e,t,"domainLookup",n,"DNS"),oyt(e,t,n)}function _4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||Yv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+rs(o),endTimestamp:r+rs(s)})}function oyt(e,t,n){t.responseEnd&&(Yv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+rs(t.requestStart),endTimestamp:n+rs(t.responseEnd)}),Yv(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+rs(t.responseStart),endTimestamp:n+rs(t.responseEnd)}))}function lyt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=o1(n),o={};F7(o,t,"transferSize","http.response_transfer_size"),F7(o,t,"encodedBodySize","http.response_content_length"),F7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(er.location.origin);const l=a+r,u=l+i;Yv(e,{description:n.replace(er.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function uyt(e){const t=er.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),$7(n.rtt)&&(Sa["connection.rtt"]={value:n.rtt,unit:"millisecond"})),$7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),$7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function cyt(e){of&&(Ai&&kt.log("[Measurements] Adding LCP Data"),of.element&&e.setTag("lcp.element",Vv(of.element)),of.id&&e.setTag("lcp.id",of.id),of.url&&e.setTag("lcp.url",of.url.trim().slice(0,200)),e.setTag("lcp.size",of.size)),U2&&U2.sources&&(Ai&&kt.log("[Measurements] Adding CLS Data"),U2.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Vv(t.node))))}function F7(e,t,n,r){const i=t[n];i!=null&&i0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:p}}function myt(e){try{return new URL(e).href}catch{return}}function gyt(e,t){if(t.response){WW(e,t.response.status);const n=t.response&&t.response.headers&&t.response.headers.get("content-length");if(n){const r=parseInt(n);r>0&&e.setAttribute("http.response_content_length",r)}}else t.error&&e.setStatus("internal_error");e.end()}const VM=["localhost",/^\/(?!\/)/],qM={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:VM,tracePropagationTargets:VM};function byt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:qM.traceFetch,traceXHR:qM.traceXHR,...e},o=typeof a=="function"?a:d=>!0,l=d=>Syt(d,r||i),u={};t&&q1e(d=>{const f=hyt(d,o,l,u);if(f){const p=$be(d.fetchData.url),g=p?o1(p).host:void 0;f.setAttributes({"http.url":p,"server.address":g})}s&&f&&qne(f)}),n&&Z1e(d=>{const f=Eyt(d,o,l,u);s&&f&&qne(f)})}function yyt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function qne(e){const{url:t}=Jo(e).data||{};if(!t||typeof t!="string")return;const n=aT("resource",({entries:r})=>{r.forEach(i=>{yyt(i)&&i.name.endsWith(t)&&(Oyt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function vyt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function tf(e=0){return((Ic||performance.timeOrigin)+e)/1e3}function Oyt(e){const{name:t,version:n}=vyt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Ic?[...r,["http.request.redirect_start",tf(e.redirectStart)],["http.request.fetch_start",tf(e.fetchStart)],["http.request.domain_lookup_start",tf(e.domainLookupStart)],["http.request.domain_lookup_end",tf(e.domainLookupEnd)],["http.request.connect_start",tf(e.connectStart)],["http.request.secure_connection_start",tf(e.secureConnectionStart)],["http.request.connection_end",tf(e.connectEnd)],["http.request.request_start",tf(e.requestStart)],["http.request.response_start",tf(e.responseStart)],["http.request.response_end",tf(e.responseEnd)]]:r}function Syt(e,t){return Sx(e,t||VM)}function Eyt(e,t,n,r){const i=e.xhr,a=i&&i[wy];if(!jO()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const g=i.__sentry_xhr_span_id__;if(!g)return;const O=r[g];O&&a.status_code!==void 0&&(WW(O,a.status_code),O.end(),delete r[g]);return}const o=rh(),l=K1(),u=$be(a.url),d=u?o1(u).host:void 0,f=s?fbe({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,"http.url":u,url:a.url,"server.address":d,[Vg]:"auto.http.browser"},op:"http.client"}):void 0;f&&(i.__sentry_xhr_span_id__=f.spanContext().spanId,r[i.__sentry_xhr_span_id__]=f);const p=ds();if(i.setRequestHeader&&n(a.url)&&p){const{traceId:g,spanId:O,sampled:S,dsc:T}={...l.getPropagationContext(),...o.getPropagationContext()},w=f?LI(f):zW(g,O,S),x=ebe(T||(f?Gv(f):$I(g,p,o)));wyt(i,w,x)}return f}function wyt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(BM,n)}catch{}}function $be(e){try{return new URL(e,er.location.origin).href}catch{return}}function Tyt(e,t=!0,n=!0){if(!er||!er.location){Ai&&kt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=er.location.href,i;t&&(i=e({name:er.location.pathname,startTimestamp:Ic?Ic/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&BW(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(Ai&&kt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:er.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const xyt="BrowserTracing",kyt={...R_,markBackgroundTransactions:!0,routingInstrumentation:Tyt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,enableInp:!1,interactionsSampleRate:1,_experiments:{},...qM},Gne=10;class Ayt{constructor(t){this.name=xyt,this._hasSetTracePropagationTargets=!1,F1t(),Ai&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...kyt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=Ybt(),this._interactionIdToRouteNameMapping={},this.options.enableInp&&Kbt(this._interactionIdToRouteNameMapping,this.options.interactionsSampleRate),this.options.enableLongTask&&Zbt(),this.options._experiments.enableInteractions&&Xbt(),this._latestRoute={name:void 0,context:void 0}}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:d,traceXHR:f,shouldCreateSpanForRequest:p,enableHTTPTimings:g,_experiments:O}=this.options,S=a&&a.tracePropagationTargets,T=S||this.options.tracePropagationTargets;Ai&&this._hasSetTracePropagationTargets&&S&&kt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(w=>{const x=this._createRouteTransaction(w);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,w,n),x},l,o),u&&wbt(),O.enableInteractions&&this._registerInteractionListener(),this.options.enableInp&&this._registerInpInteractionListener(),byt({traceFetch:d,traceXHR:f,tracePropagationTargets:T,shouldCreateSpanForRequest:p,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){Ai&&kt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?Yne("sentry-trace"):"",O=o?Yne("baggage"):void 0,{traceId:S,dsc:T,parentSpanId:w,sampled:x}=Hgt(g,O);l={traceId:S,parentSpanId:w,parentSampled:x,...t,metadata:{...t.metadata,dynamicSamplingContext:T},trimEnd:!0}}else l={trimEnd:!0,...t};const u=typeof r=="function"?r(l):l,d=u===void 0?{...l,sampled:!1}:u;d.metadata=d.name!==l.name?{...d.metadata,source:"custom"}:d.metadata,this._latestRoute.name=d.name,this._latestRoute.context=d,d.sampled===!1&&Ai&&kt.log(`[Tracing] Will not send ${d.op} transaction because of beforeNavigate.`),Ai&&kt.log(`[Tracing] Starting ${d.op} transaction on scope`);const{location:f}=er,p=Lne(n,d,i,a,!0,{location:f},s,o);return o&&er.document&&(er.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(er.document.readyState)&&p.sendAutoFinishSignal()}),["interactive","complete"].includes(er.document.readyState)&&p.sendAutoFinishSignal()),p.registerBeforeFinishCallback(g=>{this._collectWebVitals(),iyt(g)}),p}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=D1();if(o&&o.op&&["navigation","pageload"].includes(o.op)){Ai&&kt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){Ai&&kt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRoute.name){Ai&&kt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=er,d={name:this._latestRoute.name,op:s,trimEnd:!0,data:{[l1]:this._latestRoute.context?_yt(this._latestRoute.context):"url"}};t=Lne(l,d,r,i,!0,{location:u},a)};["click"].forEach(r=>{er.document&&addEventListener(r,n,{once:!1,capture:!0})})}_registerInpInteractionListener(){const t=({entries:n})=>{const r=ds(),i=r!==void 0&&r.getIntegrationByName!==void 0?r.getIntegrationByName("Replay"):void 0,a=i!==void 0?i.getReplayId():void 0,s=D1(),o=rh(),l=o!==void 0?o.getUser():void 0;n.forEach(u=>{if(Cyt(u)){const d=u.interactionId;if(d===void 0)return;const f=this._interactionIdToRouteNameMapping[d],p=u.duration,g=u.startTime,O=Object.keys(this._interactionIdToRouteNameMapping),S=O.length>0?O.reduce((T,w)=>this._interactionIdToRouteNameMapping[T].durationthis._interactionIdToRouteNameMapping[w]).some(w=>w.duration===p&&w.startTime===g)||!d)return;if(f)f.duration=Math.max(f.duration,p);else if(O.lengththis._interactionIdToRouteNameMapping[S].duration){const T=this._latestRoute.name,w=this._latestRoute.context;T&&w&&(S&&Object.keys(this._interactionIdToRouteNameMapping).length>=Gne&&delete this._interactionIdToRouteNameMapping[S],this._interactionIdToRouteNameMapping[d]={routeName:T,duration:p,parentContext:w,user:l,activeTransaction:s,replayId:a,startTime:g})}}})};aT("event",t),aT("first-input",t)}}function Yne(e){const t=Zmt(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function _yt(e){const t=e.attributes&&e.attributes[l1],n=e.data&&e.data[l1],r=e.metadata&&e.metadata.source;return t||n||r}function Cyt(e){return"duration"in e}const Kr=Gr;let GM=0;function Fbe(){return GM>0}function Ryt(){GM++,setTimeout(()=>{GM--})}function Zv(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(FW(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{const a=i.map(s=>Zv(s,t));return e.apply(this,a)}catch(a){throw Ryt(),p1t(s=>{s.addEventProcessor(o=>(t.mechanism&&(NM(o,void 0),iT(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),h1t(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}U1e(r,e),R1(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Wh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Bbe(e,t){const n=YW(e,t),r={type:t&&t.name,value:Pyt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function Iyt(e,t,n,r){const i=ds(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:II(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:$yt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:X1e(t,a)}};if(n){const o=YW(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function B7(e,t){return{exception:{values:[Bbe(e,t)]}}}function YW(e,t){const n=t.stacktrace||t.stack||"",r=Dyt(t);try{return e(n,r)}catch{}return[]}const Nyt=/Minified React error #\d+;/i;function Dyt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(Nyt.test(e.message))return 1}return 0}function Pyt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function Lyt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=ZW(e,t,i,r);return iT(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),qv(a)}function Myt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=YM(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),qv(s)}function ZW(e,t,n,r,i){let a;if(PW(t)&&t.error)return B7(e,t.error);if(cne(t)||Umt(t)){const s=t;if("stack"in t)a=B7(e,t);else{const o=s.name||(cne(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=YM(e,l,n,r),NM(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return P1e(t)?B7(e,t):Wv(t)||II(t)?(a=Iyt(e,t,n,i),iT(a,{synthetic:!0}),a):(a=YM(e,t,n,r),NM(a,`${t}`),iT(a,{synthetic:!0}),a)}function YM(e,t,n,r){const i={};if(r&&n){const a=YW(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(LW(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function $yt(e,{isUnhandledRejection:t}){const n=agt(e),r=t?"promise rejection":"exception";return PW(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:II(e)?`Event \`${Fyt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Fyt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function Byt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:zO(r)}},a=Uyt(e);return X1(i,[a])}function Uyt(e){return[{type:"user_report"},e]}class zyt extends tbt{constructor(t){const n=Kr.SENTRY_SDK_SOURCE||Agt();wbe(t,"browser",["browser"],n),super(t),t.sendClientReports&&Kr.document&&Kr.document.addEventListener("visibilitychange",()=>{Kr.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return Lyt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Myt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Wh&&kt.warn("SDK not enabled, will not capture user feedback.");return}const n=Byt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Wh&&kt.log("No outcomes to send");return}if(!this._dsn){Wh&&kt.log("No dsn provided, will not send outcomes");return}Wh&&kt.log("Sending outcomes:",t);const n=Zgt(t,this._options.tunnel&&zO(this._dsn));this._sendEnvelope(n)}}let XE;function jyt(){if(XE)return XE;if(MM(Kr.fetch))return XE=Kr.fetch.bind(Kr);const e=Kr.document;let t=Kr.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Wh&&kt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return XE=t.bind(Kr)}function Hyt(){XE=void 0}function Qyt(e,t=jyt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Hyt(),n-=s,r--,UW(l)}}return Ebe(e,i)}const Wyt=4;function Vyt(e){function t(n){return new hu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===Wyt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return Ebe(e,t)}const UI="?",qyt=30,Gyt=40,Yyt=50;function XW(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Zyt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Xyt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Kyt=e=>{const t=Zyt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=Xyt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Ube(t[1]||UI,t[2]);return XW(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},Jyt=[qyt,Kyt],evt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,tvt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,nvt=e=>{const t=evt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=tvt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||UI;return[i,r]=Ube(i,r),XW(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},rvt=[Yyt,nvt],ivt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,avt=e=>{const t=ivt.exec(e);return t?XW(t[2],t[1]||UI,+t[3],t[4]?+t[4]:void 0):void 0},svt=[Gyt,avt],ovt=[Jyt,rvt,svt],lvt=H1e(...ovt),Ube=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:UI,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},C4=1024,zbe="Breadcrumbs",uvt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:zbe,setupOnce(){},setup(n){t.console&&ugt(fvt(n)),t.dom&&fgt(dvt(n,t.dom)),t.xhr&&Z1e(hvt(n)),t.fetch&&q1e(pvt(n)),t.history&&BW(mvt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",cvt(n))}}},jbe=uvt;km(zbe,jbe);function cvt(e){return function(n){ds()===e&&N1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:b0(n)},{event:n})}}function dvt(e,t){return function(r){if(ds()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>C4&&(Wh&&kt.warn(`\`dom.maxStringLength\` cannot exceed ${C4}, but a value of ${o} was configured. Sentry will use ${C4} instead.`),o=C4),typeof s=="string"&&(s=[s]);try{const u=r.event,d=gvt(u)?u.target:u;i=Vv(d,{keyAttrs:s,maxStringLength:o}),a=F1e(d)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),N1(l,{event:r.event,name:r.name,global:r.global})}}function fvt(e){return function(n){if(ds()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:Lgt(n.level),message:dne(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${dne(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;N1(r,{input:n.args,level:n.level})}}function hvt(e){return function(n){if(ds()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[wy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,d={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};N1({category:"xhr",data:d,type:"http"},f)}}function pvt(e){return function(n){if(ds()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};N1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};N1({category:"fetch",data:s,type:"http"},o)}}}function mvt(e){return function(n){if(ds()!==e)return;let r=n.from,i=n.to;const a=o1(Kr.location.href);let s=r?o1(r):void 0;const o=o1(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),N1({category:"navigation",data:{from:r,to:i}})}}function gvt(e){return!!e&&!!e.target}const Hbe="Dedupe",bvt=()=>{let e;return{name:Hbe,setupOnce(){},processEvent(t){if(t.type)return t;try{if(yvt(t,e))return Wh&&kt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Qbe=bvt;km(Hbe,Qbe);function yvt(e,t){return t?!!(vvt(e,t)||Ovt(e,t)):!1}function vvt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Vbe(e,t)||!Wbe(e,t))}function Ovt(e,t){const n=Zne(t),r=Zne(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Vbe(e,t)||!Wbe(e,t))}function Wbe(e,t){let n=Xne(e),r=Xne(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:qbe,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(Evt(n),Kne("onerror")),t.onunhandledrejection&&(wvt(n),Kne("onunhandledrejection"))}}},Gbe=Svt;km(qbe,Gbe);function Evt(e){G1e(t=>{const{stackParser:n,attachStacktrace:r}=Zbe();if(ds()!==e||Fbe())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Ff(i)?kvt(i,a,s,o):Ybe(ZW(n,l||i,void 0,r,!1),a,s,o);u.level="error",abe(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function wvt(e){Y1e(t=>{const{stackParser:n,attachStacktrace:r}=Zbe();if(ds()!==e||Fbe())return;const i=Tvt(t),a=MW(i)?xvt(i):ZW(n,i,void 0,r,!0);a.level="error",abe(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function Tvt(e){if(MW(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function xvt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function kvt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=PW(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Ybe({exception:{values:[{type:s,value:a}]}},t,n,r)}function Ybe(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,d=isNaN(parseInt(n,10))?void 0:n,f=Ff(t)&&t.length>0?t:Ymt();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:d}),e}function Kne(e){Wh&&kt.log(`Global Handler attached: ${e}`)}function Zbe(){const e=ds();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Xbe="HttpContext",Avt=()=>({name:Xbe,setupOnce(){},preprocessEvent(e){if(!Kr.navigator&&!Kr.location&&!Kr.document)return;const t=e.request&&e.request.url||Kr.location&&Kr.location.href,{referrer:n}=Kr.document||{},{userAgent:r}=Kr.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Kbe=Avt;km(Xbe,Kbe);const _vt="cause",Cvt=5,Jbe="LinkedErrors",Rvt=(e={})=>{const t=e.limit||Cvt,n=e.key||_vt;return{name:Jbe,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();Wmt(Bbe,s.stackParser,s.maxValueLength,n,t,r,i)}}},eye=Rvt;km(Jbe,eye);const Ivt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],tye="TryCatch",Nvt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:tye,setupOnce(){t.setTimeout&&Gs(Kr,"setTimeout",Jne),t.setInterval&&Gs(Kr,"setInterval",Jne),t.requestAnimationFrame&&Gs(Kr,"requestAnimationFrame",Dvt),t.XMLHttpRequest&&"XMLHttpRequest"in Kr&&Gs(XMLHttpRequest.prototype,"send",Pvt);const n=t.eventTarget;n&&(Array.isArray(n)?n:Ivt).forEach(Lvt)}}},nye=Nvt;km(tye,nye);function Jne(e){return function(...t){const n=t[0];return t[0]=Zv(n,{mechanism:{data:{function:mp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function Dvt(e){return function(t){return e.apply(this,[Zv(t,{mechanism:{data:{function:"requestAnimationFrame",handler:mp(e)},handled:!1,type:"instrument"}})])}}function Pvt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gs(n,i,function(a){const s={mechanism:{data:{function:i,handler:mp(a)},handled:!1,type:"instrument"}},o=FW(a);return o&&(s.mechanism.data.handler=mp(o)),Zv(a,s)})}),e.apply(this,t)}}function Lvt(e){const t=Kr,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gs(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=Zv(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:mp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,Zv(a,{mechanism:{data:{function:"addEventListener",handler:mp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Gs(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const Mvt=[xbe(),Abe(),nye(),jbe(),Gbe(),eye(),Qbe(),Kbe()];function $vt(e){return[...Mvt]}function Fvt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=$vt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),Kr.SENTRY_RELEASE&&Kr.SENTRY_RELEASE.id&&(e.release=Kr.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:ogt(e.stackParser||lvt),integrations:Y1t(e),transport:e.transport||(V1e()?Qyt:Vyt)};ibt(zyt,t),e.autoSessionTracking&&Bvt()}function Bvt(){if(typeof Kr.document>"u"){Wh&&kt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}_ne({ignoreDuration:!0}),Cne(),BW(({from:e,to:t})=>{e!==void 0&&e!==t&&(_ne({ignoreDuration:!0}),Cne())})}function Uvt(e){const t={...e};wbe(t,"react"),Fvt(t)}function zvt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=Kr&&Kr.location&&Kr.location.pathname;o&&u&&s({name:u,attributes:{[l1]:"url",[ZE]:"pageload",[Vg]:"auto.pageload.react.reactrouter_v6"}})}}const jvt=()=>["settings"],Hvt=()=>{const e=Du(),t=Pr(qR),n=pO({queryKey:jvt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await ar.get("/settings")).data,staleTime:1e3*60*60*24});return M.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(Aet(r.yorkieIntelligence)),e(_et(r.fileUpload))},[e,n.data,n.isSuccess]),n},Qvt=e=>{var t;return e instanceof kle&&((t=e.response)==null?void 0:t.status)===404},Wvt=e=>{var t;return e instanceof kle&&((t=e.response)==null?void 0:t.status)===500};Uvt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.1.3",integrations:[new Ayt({routingInstrumentation:zvt()})],tracesSampleRate:1});const Vvt=h8e(Mmt);ar.defaults.baseURL="https://codepair-api.yorkie.dev";function qvt(){return Hvt(),null}function Gvt(){const e=Pr(Z$),t=mse("(prefers-color-scheme: dark)"),n=M.useMemo(()=>{const a=t?"dark":"light";return p$({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=Bmt(),i=M.useMemo(()=>new J9e({queryCache:new Vle({onError:a=>{Qvt(a)||Wvt(a)?window.location.href="/404":r(a)}}),defaultOptions:{mutations:{onError:r}}}),[r]);return R.jsx(i$e,{client:i,children:R.jsx(Fmt,{children:R.jsxs(P4e,{theme:n,children:[R.jsx(bRe,{}),R.jsx(qvt,{}),R.jsx(Wa,{minHeight:"100vh",children:R.jsx(E8e,{router:Vvt})})]})})})}var KW={},JW={};JW.__esModule=!0;JW.default=Xvt;function I_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?I_=function(n){return typeof n}:I_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},I_(e)}function U7(){}var Yvt={getItem:U7,setItem:U7,removeItem:U7};function Zvt(e){if((typeof self>"u"?"undefined":I_(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 Xvt(e){var t="".concat(e,"Storage");return Zvt(t)?self[t]:Yvt}KW.__esModule=!0;KW.default=eOt;var Kvt=Jvt(JW);function Jvt(e){return e&&e.__esModule?e:{default:e}}function eOt(e){var t=(0,Kvt.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var rye=void 0,tOt=nOt(KW);function nOt(e){return e&&e.__esModule?e:{default:e}}var rOt=(0,tOt.default)("local");rye=rOt;var eV="persist:",iye="persist/FLUSH",tV="persist/REHYDRATE",aye="persist/PAUSE",sye="persist/PERSIST",oye="persist/PURGE",lye="persist/REGISTER",iOt=-1;function N_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?N_=function(n){return typeof n}:N_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},N_(e)}function ere(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 aOt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function gOt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var bOt=5e3;function yOt(e,t){var n=e.version!==void 0?e.version:iOt;e.debug;var r=e.stateReconciler===void 0?oOt:e.stateReconciler,i=e.getStoredState||cOt,a=e.timeout!==void 0?e.timeout:bOt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(d,f){var p=d||{},g=p._persist,O=mOt(p,["_persist"]),S=O;if(f.type===sye){var T=!1,w=function(L,U){T||(f.rehydrate(e.key,L,U),T=!0)};if(a&&setTimeout(function(){!T&&w(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=lOt(e)),g)return Ch({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(D){var L=e.migrate||function(U,B){return Promise.resolve(U)};L(D,n).then(function(U){w(U)},function(U){w(void 0,U)})},function(D){w(void 0,D)}),Ch({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===oye)return o=!0,f.result(fOt(e)),Ch({},t(S,f),{_persist:g});if(f.type===iye)return f.result(s&&s.flush()),Ch({},t(S,f),{_persist:g});if(f.type===aye)l=!0;else if(f.type===tV){if(o)return Ch({},S,{_persist:Ch({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,_=r!==!1&&k!==void 0?r(k,d,x,e):x,I=Ch({},_,{_persist:Ch({},g,{rehydrated:!0})});return u(I)}}}if(!g)return t(d,f);var N=t(S,f);return N===S?d:u(Ch({},N,{_persist:g}))}}function nre(e){return SOt(e)||OOt(e)||vOt()}function vOt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function OOt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function SOt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:uye,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case lye:return ZM({},t,{registry:[].concat(nre(t.registry),[n.key])});case tV:var r=t.registry.indexOf(n.key),i=nre(t.registry);return i.splice(r,1),ZM({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function TOt(e,t,n){var r=q$(wOt,uye,void 0),i=function(l){r.dispatch({type:lye,key:l})},a=function(l,u,d){var f={type:tV,payload:u,err:d,key:l};e.dispatch(f),r.dispatch(f)},s=ZM({},r,{purge:function(){var l=[];return e.dispatch({type:oye,result:function(d){l.push(d)}}),Promise.all(l)},flush:function(){var l=[];return e.dispatch({type:iye,result:function(d){l.push(d)}}),Promise.all(l)},pause:function(){e.dispatch({type:aye})},persist:function(){e.dispatch({type:sye,register:i,rehydrate:a})}});return s.persist(),s}const xOt=zoe({auth:Kje,config:uLe,user:UMe,editor:u9e,workspace:d9e,document:F9e,setting:Cet}),kOt={key:"root",storage:rye,whitelist:["auth","config"]},AOt=yOt(kOt,xOt),cye=Y8e({reducer:AOt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function D_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?D_=function(n){return typeof n}:D_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},D_(e)}function _Ot(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function COt(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(pye);var mye={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,d){return u>0&&u+l.length!==d.length&&l.search(t)>-1&&d.charAt(u-2)!==":"&&(d.charAt(u+l.length)!=="-"||d.charAt(u-1)==="-")&&d.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,d=o||"";return l&&(d=n(o)),u&&(d=a(d)),d}})(mye);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(pye),n=s(mye),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(ee){return ee&&ee.__esModule?ee:{default:ee}}function o(ee,q){if(ee==null)return{};var ne=l(ee,q),K,G;if(Object.getOwnPropertySymbols){var ie=Object.getOwnPropertySymbols(ee);for(G=0;G=0)&&Object.prototype.propertyIsEnumerable.call(ee,K)&&(ne[K]=ee[K])}return ne}function l(ee,q){if(ee==null)return{};var ne={},K=Object.keys(ee),G,ie;for(ie=0;ie=0)&&(ne[G]=ee[G]);return ne}function u(ee){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(q){return typeof q}:function(q){return q&&typeof Symbol=="function"&&q.constructor===Symbol&&q!==Symbol.prototype?"symbol":typeof q},u(ee)}function d(ee){return g(ee)||p(ee)||x(ee)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. +In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function p(ee){if(typeof Symbol<"u"&&ee[Symbol.iterator]!=null||ee["@@iterator"]!=null)return Array.from(ee)}function g(ee){if(Array.isArray(ee))return k(ee)}function O(ee,q){var ne=Object.keys(ee);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(ee);q&&(K=K.filter(function(G){return Object.getOwnPropertyDescriptor(ee,G).enumerable})),ne.push.apply(ne,K)}return ne}function S(ee){for(var q=1;qee.length)&&(q=ee.length);for(var ne=0,K=new Array(q);ne2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!q._hasLoadedGA){var ie=document.createElement("script");ie.async=!0,ie.src="".concat(G,"?id=").concat(ne),K&&ie.setAttribute("nonce",K),document.body.appendChild(ie),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},q._hasLoadedGA=!0}}),U(this,"_toGtagOptions",function(ne){if(ne){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},G=Object.entries(ne).reduce(function(ie,H){var Re=T(H,2),Se=Re[0],Z=Re[1];return K[Se]?ie[K[Se]]=Z:ie[Se]=Z,ie},{});return G}}),U(this,"initialize",function(ne){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!ne)throw new Error("Require GA_MEASUREMENT_ID");var G=typeof ne=="string"?[{trackingId:ne}]:ne;q._currentMeasurementId=G[0].trackingId;var ie=K.gaOptions,H=K.gtagOptions,Re=K.nonce,Se=K.testMode,Z=Se===void 0?!1:Se,ke=K.gtagUrl;if(q._testMode=Z,Z||q._loadGA(q._currentMeasurementId,Re,ke),q.isInitialized||(q._gtag("js",new Date),G.forEach(function(Xe){var We=S(S(S({},q._toGtagOptions(S(S({},ie),Xe.gaOptions))),H),Xe.gtagOptions);Object.keys(We).length?q._gtag("config",Xe.trackingId,We):q._gtag("config",Xe.trackingId)})),q.isInitialized=!0,!Z){var $e=d(q._queueGtag);for(q._queueGtag=[],q._isQueuing=!1;$e.length;){var ae=$e.shift();q._gtag.apply(q,d(ae)),ae[0]==="get"&&(q._isQueuing=!0)}}}),U(this,"set",function(ne){if(!ne){console.warn("`fieldsObject` is required in .set()");return}if(u(ne)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(ne).length===0&&console.warn("empty `fieldsObject` given to .set()"),q._gaCommand("set",ne)}),U(this,"_gaCommandSendEvent",function(ne,K,G,ie,H){q._gtag("event",K,S(S({event_category:ne,event_label:G,value:ie},H&&{non_interaction:H.nonInteraction}),q._toGtagOptions(H)))}),U(this,"_gaCommandSendEventParameters",function(){for(var ne=arguments.length,K=new Array(ne),G=0;G1?K-1:0),ie=1;ie*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-defaul);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:#2e9b33;color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.highlight-line{background-color:var(--color-neutral-muted)}.code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.token.comment,.token.prolog,.token.doctype,.token.cdata{color:var(--color-prettylights-syntax-comment)}.token.namespace{opacity:.7}.token.property,.token.tag,.token.selector,.token.constant,.token.symbol,.token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.token.property-access,.token.operator,.token.boolean,.token.number,.token.selector .token.class,.token.attr-name,.token.string,.token.char,.token.builtin{color:var(--color-prettylights-syntax-constant)}.token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.token.variable{color:var(--color-prettylights-syntax-constant)}.token.entity,.token.url,.language-css .token.string,.style .token.string,.token.color,.token.atrule,.token.attr-value,.token.function,.token.class-name{color:var(--color-prettylights-syntax-string)}.token.rule,.token.regex,.token.important,.token.keyword{color:var(--color-prettylights-syntax-keyword)}.token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.token.important,.token.bold{font-weight:700}.token.italic{font-style:italic}.token.entity{cursor:help}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-UIXRTGNW.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-zJvWDgGp.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-0YIAJWTb.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-6vyEfazt.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-RIlxi71x.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-AE18XbF9.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-4uo0fsfh.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-k0QPq0y-.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-MF_e1AYw.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-i-oP291Y.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-bAz-dThZ.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-XZxETTVq.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-k2IhepQP.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-8XXOHEfX.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-gf8Lq3rE.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-sffOiHVw.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-CZtwCMuf.woff) format("woff"),url(/assets/KaTeX_Main-Bold-MGqDlVzd.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-8QydwDku.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-EqUi0SPe.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-88TzJhul.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-DVgO3ulm.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-TCzgZvdR.woff) format("woff"),url(/assets/KaTeX_Main-Italic-N1npxqDf.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-dtjb4qKe.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-6_eCWgYQ.woff) format("woff"),url(/assets/KaTeX_Main-Regular-MqWbzbVV.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-mZ7zbAmZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-ImPtsMme.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-d10o37uD.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-LedwBEzP.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-wNP_z16f.woff) format("woff"),url(/assets/KaTeX_Math-Italic-H5Tq_9FA.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-9bFEtBg9.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-2yISjogg.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-hTHqZ76u.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-tx9FahgZ.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-Azdo-3Wm.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-GGIydc0p.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-wwQp5Se8.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-kun6lKiW.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-TaO4USHJ.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-98CFnxev.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular--ckFYqpa.woff) format("woff"),url(/assets/KaTeX_Script-Regular-uSZBlqPg.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-Jgg_JgPA.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-tfebZ-uE.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-27J7nvyK.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-8uHcfdJu.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-KA9bXP1N.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-e4ClFoQr.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-k6uTKqBB.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-4KV7NJM_.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-5eZcWcVX.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-RfuIJGSk.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-1hQb9ONy.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-juq-IZ9c.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-tMUvZjwd.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-9yG-_x36.ttf) format("truetype")}.katex{text-rendering:auto;font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.9"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.27777778em;margin-right:-.55555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.83333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.16666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.66666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.45666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.14666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.71428571em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.85714286em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.14285714em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.28571429em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.42857143em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.71428571em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.05714286em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.46857143em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.96285714em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.55428571em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.55555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.66666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.77777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.88888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.11111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.33333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.30444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.76444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.41666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.58333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.66666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.83333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.72833333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.07333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.34722222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.41666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.48611111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.55555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.69444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.83333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.44027778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.72777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.28935185em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.34722222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.40509259em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.46296296em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.52083333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.69444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.83333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.20023148em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.43981481em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.24108004em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.28929605em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.33751205em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.38572806em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.43394407em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.48216008em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.57859209em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.69431051em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.83317261em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.19961427em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.20096463em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.24115756em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.28135048em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.32154341em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.36173633em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.40192926em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.48231511em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.57877814em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.69453376em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.83360129em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.wmde-markdown{background-color:transparent} diff --git a/assets/index-hA94Esgm.css b/assets/index-hA94Esgm.css new file mode 100644 index 00000000..cd76f489 --- /dev/null +++ b/assets/index-hA94Esgm.css @@ -0,0 +1 @@ +body{margin:0;min-height:100vh;overflow:hidden}#yorkie-intelligence-footer .wmde-markdown{-webkit-user-modify:read-only;white-space:initial!important}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-cyrillic-ext-300-normal-Chhwl1Jq.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-300-normal-BLLmCegk.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-cyrillic-300-normal-DJfICpyc.woff2) format("woff2"),url(/assets/roboto-cyrillic-300-normal-Dg7J0kAT.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(data:font/woff2;base64,d09GMgABAAAAAAXcABIAAAAAChAAAAV+AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghYCYM8EQwKg3yDXwsUABIUATYCJAMkBCAFgnwHIAyCOhuqCCAuDrI5ZN4aokERTSyd8sbnRhCPOT/nSbL5I3uJOVkEOmLbY09VmSg+s7XZR8z2UPVFzdPPH95petP0dBQVoUgu+1/NvnDlsFu1bLZnPtp/9TZG4R6s2iHuHinG8i80DiPfXaFiKo9+oTAOlEMIi8PciP2lbTwhqe7chkVUBQSIAQDBRxAECKlFFzJ0eHQySGIAUgAO4c44Imqnv6i9oQq0lzWwyhZYXdBUcx6AsNu1WSdtEQPnkuMESEM7pl9mqQImBxgY1QCfy4gJcWHgDzSMEycHS71LChLIdQCmt4MkUEQABQiXIoL4RBn93fLxUbiAIo+EvYZx/4CCVEjvs3TZR/d+KY2uf2Brysgkn1T2GE8NUzzFePIJ5Q4ozc1HVW1SmEIul2LNIWN6o2qmKXSQUlcTNfeKQpWFsieK476NC2BpOwaD+IxQyNnsXfI/O7ROGIjMm2uDYp3QkPJglPx2qKytWDayQW2dhKI2GZ6YbpRBJ5KToxZPJMNpWUExGpMiex9iE9kOFJmSKafI1AyHA7M61vYlGRmeNmgyOUznRBZ9tCKHo0Jqwl8761iPsdemE9MT0nH/0BocOLRs5jgagg9N5PCQ5t6qdrjHlOVod7nmgeF1upa11U+ip4geWGfJnjxJTBpxuF8Wak42ybZaHjrzQuBZw38Stckw7embuKn7ZkunqKa0M0NntAm2wcB6TFJ6SLDt5TIWQ2vbelhBRG0OxdY3t5Cx5KSL3eVARFl0lw/Hp5oP01r/rM/qYJMp6Zgcv6sQuu6DTuZZ24GvwwmZGWEbgms20UYPlTcDQeGjUhQAEABQbJh+Qospn+KFz3H4SYkukTK6/ysK88WDovzOgu27yiokV81WWCmr8nftf+uj8OQXWg68++mZj9+eNnXwnfDkW4qDb0en3tW7ZsmQCWdGvD5t4usb0vIxHPuYXjIbxLyig8O2/kbbPr1BkznHJUevG39z4umTHeTwxtRq15UnT3eWo4nsn2qhbnYWeN+3evHZn1rHa/q3/Qsvf906Ci97vnik3/6yB7qO+Bu1oYDsmhVGRjdJHJzYHkwRGw54uDkA+yF3KO10du5viRWLlJQ9MFa0vLRwuI7gxrx7LMMyqOxqhEq/f4ZNeMmf4o2A4F7eWTk9h7+K4fctMefMu0gp2vzvjp14o98gMG0l+SlyR2TIXIKR4s0lgqFVhnuv+Q0wJdVDHR0gctB696O6IZDJSNGaArPdua+yjl2lmtBCKAG/HECAOHANKOVq5YIAqklxwEftn/MK+v7uV/kA8NhPRe0B4HWZ/Ok/yf+vB9V+I0CAAkDAW52LIejxT5IbFlRD6FmBPs1ieuWX+4Szkm51B/PM6tjcIQQIOEc5GYghAOSDQm1EHAF8liKCmACYy8UVFSrZiyryuViut8oNog7NqTIuXMkm31gCltM0BOvwxM7R+lVsKaCOAooog2FLLQ2UYkcV5RTBqKERRiN2RBNBECHEkkQINjhiiz2J1FJILU3UYkM05ZRSRhOpMBpopJxaaqABOx1wwg0vAvYiJtGxcinNVFFAQ7pSaoKojTraadDGJKLFlDBqqaX0KgYlghqKsIUS8KCqjsTAlkZihNF4vB/VAqMYW0QAII1i+pU2trK0gRdZ1Ub4PLJ4wnmeZ0cLfWWQbMO5VGdDHPWsHXeqnmXx7jWsW+ZHuYbN4OLxniNOWO8ohRR3fttsT6MOLzzFTxjsbKKREnh0MNZW7AhdO6KUSfH+4WWjrU/B58t7bSz/5Zt5WyyNt0yc/U237Mf6qeZbBlTT1jzwPnTwN90ygdfxOb6JUzRIUB14Hu/rKtCP1OsgTJ1h/Qg0KH9r3szn+EVOzQBX3y0dErMOihluSRoBAAAA) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAAToAA4AAAAABYQAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAEsAAABgc6Xg4WNtYXAAAAH4AAAAQAAAAF4+Y+J/Z2FzcAAAAjgAAAAMAAAADAAIABNnbHlmAAACRAAAARIAAAEUGjg/4WhlYWQAAANYAAAANgAAADb8WdJpaGhlYQAAA5AAAAAfAAAAJAqpBZJobXR4AAADsAAAAB8AAAAkFzL/w2xvY2EAAAPQAAAAEwAAABQBMAGDbWF4cAAAA+QAAAAcAAAAIAArAOpuYW1lAAAEAAAAANMAAAF8HEg5EXBvc3QAAATUAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42iXFsRFAMAAAwE8ijCED6HQqncrZIq190ljBKhZyCt+81J1hksktz4TxPz1qRASwkgBgO47Nyrj3XurQoiJc0C35VhTpA7fWCdMAeNpjYGBgAmJmIBYBkoxgmoXBC0jzMXAA5djAKngZFBgWyPv+/w/kofBBOv5/+//kf/qD3WDdPAwIwAQA0KYN+QABAAIACAAC//8AD3jaDcwBRANhGAbg9/v++3fS1P6rayC6bWYKtGsDCVApGAHUJQUQApUaUVIqCAlAFgIGIAhNyagNEQACOVMEyn23AeB5oLEBqIKuQyGBPiQxCHie8ZQhMqQ8KpGnCtE0N8rSkXtKfrISIY4iXf+raTuq8va/4Z0o4OCEA4BRjUMr1I3eNArQMFvZDExpysmNWU7aTnE2w8ZNOX7RMVZ4JnIXy9MFMVWIztVe56358/3a/uLTF2nVaJPKV8/k397Ix2OKbBqXd/m9lkjaNEH9YKxau7yuW9AYAGjId1VW+e5I2s7nS7RyfPAwJ1u8PLm4ZF3SjCtNWljbny/mjipxLIdxqIs9m4eeBWwkJAd0AcfKVS8AAAABAAAAAiMSqglmyl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS4/og/dUJGghzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwGn+S+GfK6cUUAQVcAIAbC0ESQB42mPuYUhhgALGTxDMmsVQy7SNIR7M3vCvGQBr4QgGAHjaY2Bg0ITDBIY6IOwCABGXArQAeNpjYGRgYOBk6GcQY4hkYAXzEICNgREAGPMBFnjaTYw1kgIBFAV73TfecKKN1l2SdcE9wxmrwp1rcAKOwfF4OPWt+40Au1hssLa5B6QYzniNEwYzXueY/ow3VvLNFd7ilOKMt5XHZnwsAoemqsoLl6rOpC7IUtXkcTBlFerYXFLEVWZSpqHdUOLjn0++CRDVPueGC66IUCGnaWrO8eFi48gSmNRpyCuUMSZvX3PLI68Tu5I9EsHEpkWRLPXVf2Gs/OtTXqVHfZHM/qAy+KWisiliyv4pk+dC9E5RZRBZfNWYmElDU6etXeBiBO+kNXoAeNpjYGYAg/9ZDCkMWAAAKh8B0QA=) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-greek-300-normal-Bx8edVml.woff2) format("woff2"),url(/assets/roboto-greek-300-normal-D3gN5oZ1.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-vietnamese-300-normal-PZa9KE_J.woff2) format("woff2"),url(/assets/roboto-vietnamese-300-normal-CAomnZLO.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-latin-ext-300-normal-BzRVPTS2.woff2) format("woff2"),url(/assets/roboto-latin-ext-300-normal-Djx841zm.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:300;src:url(/assets/roboto-latin-300-normal-BizgZZ3y.woff2) format("woff2"),url(/assets/roboto-latin-300-normal-BZ6gvbSO.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-cyrillic-ext-400-normal-D76n7Daw.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-400-normal-b0JluIOJ.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-cyrillic-400-normal-BiRJyiea.woff2) format("woff2"),url(/assets/roboto-cyrillic-400-normal-JN0iKxGs.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAAXYABIAAAAACgAAAAV8AAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghUCYM8EQwKg2iDTgsUABIUATYCJAMkBCAFgnQHIAyCSRucCFFUkDIBfhzkZKcmnOCkolAQnoSyxYqFpYXieXb+xgO83X+ee8cPWukL624junMJs9RsoCpuxSopamF+Pi97f6xC6QrJFHRKpFCmII8L4C95A3y0rJouCIdkJgncD/oHj/4Ptd1Rm0IYXCtKb1yQDmO4797U2dlr/Om01LkOVpT2L12pLVa73QtgLIKxr2n9efiAIhiyAGBi25Coekds8qZninvglyCgAwhKQRDQspY1tF9oNA0iKTQN4IRtO0c8LdtzW2orwfLCWqaCzZfl11dfBsTdnaQ3h2kZ2eOZEwgbeF/yBVwQgZ2DvRwJfK0Dj4wLA3+w4XAB/M8FxYoIY9AzkO6S7TOGwEWk2ZbiCu/nOQToKUU5oq4x6zbE1HUGA3Rl83vzuil5fuJX+RchWrDatW53jdtwnlgZhpwlhXP0dtJr7vYxsPT/PLq40lhiT5ruQpdOGGT7LM3N6cMWw/ws9PIfIIcEwLJDUR3FYQgfiUJzxskPq2Qy1ggbiezOIJylETciLCiNZCMFSKaDJqeFHmOPg5ePsYC2syXS6aE6P7V6nJwhSOIdAc0Ke4n7Xb8SyWqkqXiaf5zcKrRPwvfqdPtrZBtL2slMnRuMa42LvcxYpRRZvA/n8T7tUCIaeZ2q3j7uEhVDkc8XZrrMEm9RfK85lv64HemnFa6lmfuYFI7x/oVR8InaSyj5acula+ve+LU96YKCxZUXd9MwGtXGUoutAUxK5q2NmLMD2mz+aZ2N4WzsRo9j+buXk1pEpRttzy1KfocMeUz6dmDs9k7cweWb9rsbsde9m5w+h/OOcb2wOG7o3RICJCrFpqEEFRhZH9oDuAjooYPPICPCo0jTpMlTRj1BOey1KZvbSstFFVnKclSBPKn7/nPJ6C8PU1DPT6+kYz8/gBNueLjm39PQ/QP9dT+ltmVK4aRWsRS+SabvokUfQ1Z/zGWygF8Mr9+/8b206dV6Ljp9GGVza+Jnt9+d8hVurXeJt93vjq6U3ZwJkOx4aa9k2z3+d04j7me6E29d13G+Vvxzc/2x9y4pOP96WSx98PKAi/qn3un2CdsyOa1xdLjn/jNOzIUF+AcAFPL/LuBa/t/+/00Wx7+LZarhcLSj7qhqn2s859Wt3etQ2/+kfRxqzc5ou8fJDwOT0QDzOKLLr2WqruDlpp0t2a9YhvLuvI6qnb1VNjpkZXJDl/FYKm5xTmMZ2tdaepL9fasvEPAi1srweZuqi+ubWBAA9duqOh3Aq2fXLZ48tfLYbwcI6FRFSox5GgsC4uTo+6gDX3L73r+JVpUAH39Qk4BvUOKXX+7fO5WxrANQiSBQXPZPRnXwL6t/kZURIvyq5E7nKYd/+oHsWlclBNZezqf/HAGhco/laHwB9IjiFIGA0gW4QlrhDPtsR9DxoiPqeXgx8S2mzZGZYXLk1qLzPbQCLlIvLSaeKN70nUj5TPIVKsUgsWqVoFQqU4hRrQ6jDiVahCAhYiUJsZwjklEiVgFWPdZyiRglGlTKVysFo1adMqxqRNRGB07ceCHMeI4bn835eBCWSYtaZUqUqmdxhRPCsFgl1zMIEaoVIhECVMoeIbGn6hD5JrKmH9WIUYTEBZpLoIi4tu4srS3CQRWXBjxE2jOODD23Tq8ZEC06EsK9yPGl5oa3Y1q4+6JJksQg5/nLSZoT4710FclcN06s6pO8JjvU0YoUM1dnec4lZWdJvIclqegQ1wVLSasxL8rVZtzuOy/2LOk8wKOF3qSrG3TEOel5b59dOyR9f+fF65a2B/EBlR2CR1LhYu2/fT32swx1OFfBLqCUehyHLE7hXvwPdkoD9sNc7GoobUO8bPge7JR6nItTeA3/g5/SgNk+RYQ6q0mgOgA=) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATkAA4AAAAABXwAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAEsAAABgdAng+GNtYXAAAAH4AAAAQAAAAF4+Y+J/Z2FzcAAAAjgAAAAMAAAADAAIABNnbHlmAAACRAAAARQAAAEUnMz0sGhlYWQAAANYAAAANgAAADb8atJ6aGhlYQAAA5AAAAAfAAAAJAq6BalobXR4AAADsAAAAB8AAAAkF+P/e2xvY2EAAAPQAAAAEwAAABQBMQGDbWF4cAAAA+QAAAAcAAAAIAArAOVuYW1lAAAEAAAAAM4AAAF0G504anBvc3QAAATQAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42iXFsRFAMAAAwE8ijCE76FQ6lbNFRlGr01jBKhZyCt+81B3hlMktT4TxPz1qRASwkABg3ffVwrj1XurQoiJc0M35VhTpA+O9Ck4AeNpjYGBgAmJmIBYBkoxgmoXBC0jzMXAA5djAKngZFBgWyPv+/w/kofBBOv5/+//kf/qD3WDdPAwIwAQA0KYN+QABAAIACAAC//8ADwAFAGQAAAMoBbAAAwAGAAkADAAPAAAhIREhAxEBAREBAyEBNQEhAyj9PALENv7u/roBDOQCA/7+AQL9/QWw+qQFB/19Anf7EQJ4/V4CXogCXgAAAgB2/+wFCQXEABEAHwAAARQCBCMiJAInNTQSJDMyBBIVJxACIyICBxUUEjMyEjcFCZD++LCs/vaTApIBC6yvAQuQv9C7ttED07m6zAMCqdb+waipATnOadIBQqup/r/VAgEDARX+6/Zr+/7hAQ/9AAIAbwRwAskF1gAFAA0AAAETMxUDIwEzFRYXByY1AZF0xN9Z/t6oA1BJsgSUAUIV/sMBUlt7VTtfu////jL/7AVPBdYAJgAFRgAABwAG/cMAAAABAAAAAiMSo8X+nl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS9Pob/dUJMAhzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwOn5S/qfF6cBUAQVcAIAb4cEcQB42mPuYUhhgALG3xDM2sBQxqzAkA9mH/tnBABopAdwAHjaY2Bg0ITDRIY6IOwCABGeArUAeNpjYGRgYOBk6GcQYwhhYAXzEICNgREAGIoBEXjaXY4BBgJRFEVPVSnSCkIgoKkKUSBJIqESIKp+05BpzFRpI62gBbTErvGNkes+977nfB8ocSJHJl8GtnxtzlDhY3OWKm+bc6l9PpULNAhsLlJjbXNVCc7cpIABLekZy2FHIB90NWpXQlxdL3jaGXwizUibOTPGTFiw0mzSxaHNUsRevslNNSP6LnpHyEYtFOvp5lOPiQ49+gzj1lbr/zHp98ZywEtbDxf9PqE6SlOukivOqM3wOeAojbhIdZYJFcXNEMkhD80jzg9HQTQoAAB42mNgZgCD/1kMKQxYAAAqHwHRAA==) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-greek-400-normal-LPh2sqOm.woff2) format("woff2"),url(/assets/roboto-greek-400-normal-IIc_WWwF.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-vietnamese-400-normal-DhTUfTw_.woff2) format("woff2"),url(/assets/roboto-vietnamese-400-normal-D5pJwT9g.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-latin-ext-400-normal-DgXbz5gU.woff2) format("woff2"),url(/assets/roboto-latin-ext-400-normal-BSFkPfbf.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:400;src:url(/assets/roboto-latin-400-normal-DXyFPIdK.woff2) format("woff2"),url(/assets/roboto-latin-400-normal-BVyCgWwA.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-cyrillic-ext-500-normal-BJvL3D7h.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-500-normal-37WQE4S0.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-cyrillic-500-normal-_hamcpv8.woff2) format("woff2"),url(/assets/roboto-cyrillic-500-normal-YnJLGrUm.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(data:font/woff2;base64,d09GMgABAAAAAAXwABIAAAAACiQAAAWUAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghcCYM8EQwKg3CDVwsUABIUATYCJAMkBCAFgwAHIAyCUxvDCECO0yW2MxHcwQN9m/Zmd7GAt056LBXDUnN6hagTcSJGKmInrhNO9dPUA1Hd9gmGUIldvZjF5GpN7d6GXSYqHkE4sOrvQ/cXxAKTi9BxlRWyDoCEqmRbISus7GNs4WxzgFD/DgjABgAIzAgEAsgim2xELLe4GjMaQCYDwDcsZCHaXqd07tw0yNSeTcmBQT/YvmV4O4DU1ap2ifgNAxguMywC4RuWqS/T3YC1DIiaVIC3Iu+W5RGFr8TIGLrHZQo64moAbaVBoqOjKqHGnvGoCJ6vUQgcmFEwAgp2dK7xlZzVFgqIXTN/ZD7L9Hz0yD35VwEU5vMc53IV5/Idm6TZq1arUm2lcRvPAuPH2hivXI4rs4J97GI8qh+rtpLx2pm4DJLxxslMMD6JS2nEY9IwGD9AAEiCRdJSXj8qxFmJB0XmqIxNG7WorS0hKYK6Hu+LSdEWkkpQivn+kFSDeq5UZ+VW1s9I6KfppxV0nabn6r3tXVKbZSnrVcnTEhFdUpU+XVIdv4wmvNP0ZCKxMiQ1RTItc1oCinq/Clk/dVb/h6QhWLS3Oru8vqJeHoh5ZTRmJ/n9elw+SczIJ8MCfyIRksazpHuNvX2TzxdMo8b5IWnWwaoCi7peEu80vHOGXx4IA97TZiSGIE+2fFDgA6KdUp0Vj/kD5Tx2YMO9VhiEmEl4V3vEQtISLKqqj8dQtT8xmBWUwbgFKwktsgVH54gT+mkt9nooikbnN3OiGltMUP1qJOGVMzgLpH7iQRdU8To77UEZrYt1GjIaIrZ5EGKx8GwECmaUTAYnABYAPPvSmkB6iIPYBt7BwFvViQKSWU2dO90Ooznvvdu5Y3dvv3mgydkvBvC7HHjro6zTPnmnVhx899MzP367pvrgO/HLvFXNgbetp78pdjdaqV/dVl6vqX5DzH0Wg3xWTTZhMLkPxbf9aN3+6bWqaD4hmtVUxSfpN84/1XPHPaPj77hoHS9Vvn5RHH5yl+e2C6O89p/2y/3ilhseRHxT/dPDhptuuTfzR/6UxZek1r464fO1zYGq0VZlV1G8LO/uxOMzmI0hF0wY/78POABjJ/OdocvwZtrmcrs9K6TNJXlpKzPKLJfaX0ISj1Qi3lFFX5soBDWurrSmIFtIG3bkJpl5VGa9l7aR5PaDFJd0vJezIK359ABacrx6YlPaiEa0M6TNNTpeyKxAvf8t728Amp93ac4CpDUitZckFklemiKJTB60LmkCExPbrIg0+pogAJvFpIGiGDXFBAJQZnjuPl6+ttW5+nfzFDMAz/7kDgO8Liq/+2fm/6/PJvNmwIICgADT4JgNLAN89dj6FghmF4t6Bl0KYiyvMByjuwfpwd7nubFsBGDhbCZSyoAAwAEKSg5GBGCmm4rQLECLRzuTYCrXmRQcXNCscpo1MBmYzbBkBEW15Ni/HHptscWIlUSIsH35PWHajWjXqVdSmJRNekQY1KdT0rDNkjaLUKzABnGlqsSFWEiYHCqldEjZIiVEiaQufbYaUitpk836pAzTJaYvYBHLWIWryaFhqFJSj9k5qN0mfYH64RukjNhpkz491xLRQqOvTp6UlJ7XJukUGNYpjM56gwbpVMrxzTh3TeL5xbcd44/CqACQ6afLfK60BSQB0sKhBETaKbb3eMC5MmeW14U5wANieXjmVDcy/QGlNLpwxgRnp+avCvvHpzWqnSFnrm+iw87YWbEu5G0zRRdL25kbC1fOm2JnOdxVunKGXdb2juKl/l7rudubwM62ra1o6TQ7e3Bm9nibjWPDsoDPs4q0y2EKSH7t09MHxovNabmBct2W9IHsumzDWwH3Q0QAXgaYwrPxbsyAT7c1vQ5bcX/WqQuyFFCCuM9/BPCxLY3EDZ6NL2KGr2upiUznKVBH5gvU2nyxGQA=) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATsAA4AAAAABYgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAE0AAABgdG3hCmNtYXAAAAH8AAAAQAAAAF4+Y+J/Z2FzcAAAAjwAAAAMAAAADAAIABNnbHlmAAACSAAAARAAAAESY99A82hlYWQAAANYAAAANgAAADb8n9JyaGhlYQAAA5AAAAAfAAAAJArvBcJobXR4AAADsAAAAB8AAAAkGAT/TWxvY2EAAAPQAAAAEwAAABQBLwGBbWF4cAAAA+QAAAAcAAAAIAArAN9uYW1lAAAEAAAAANYAAAGAHGI533Bvc3QAAATYAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42mNgZpnB+IWBlYGBdRarMQMDozyEZr7IkMbEwMAAxFDgABRkQALu/v7uIEF5XzaGfwwMaeyzmBgUGBjng+RYrFg3MCgAITMADeIKxAAAAHjaY2BgYAJiZiAWAZKMYJqFwQtI8zFwAOXYwCp4GRQYFsj7/v8P5KHwQTr+f/v/5H/6g91g3TwMCMAEANCmDfkAAQACAAgAAv//AA942g2PJVREURRF731/Hh93h3GtowUtuEvBHSIknE7GO+7uLn3h9IW7O/8N04/sDRRKATgdnQAO7MABnMENQC73kHMeiB7IydGMck4nhJIdC3tgS+h8RjjGkAgCnfjpobzQRGp+PUitkE/ym0k+AIFy6x2V0B1wBwkAehORUqEiWrPJUyUTefrxJqJUEN7H29No8DRTSRu7n55kt53YiV5Yil4dKMwP9CyS5b6BWTJ1zFZHRzFyL/0Io0eH2foRfUHCrLeZT+wH4cP2ViGqJMf0xGbiAoBeRh9OiUYfXz9eY8bWqoOLPHY4ySWmToi6MMKHbWJmQUN0bPaa1cqCbZyltqYGaDQAD3bCLMA/wjpXMwABAAAAAiMSEj1jSl8PPPUAGQgAAAAAAMTwES4AAAAA1QFS7Pok/dUJXAhzAAAACQACAAAAAAAAeNpjYGRgYM/5x8PAwJn9S+WfI2cMUAQVcAIAdi8EvwB42mPuYUhhgALGfxDM2saQxqzDkA5mn/knAwBo+QdjAHjaY2Bg0ITDBIZaIOwEABGOArEAeNpjYGRgYOBk6GcQY/BjYAXzEICNgREAGAwBC3jaTY+1dQNAEAXHzC7AkSJHZobEzEyZScyMfagC1aHiNIHoHc3fWwSmiTLGyPgM8EO7yyMs0eryKIs0uzw2ZB8f4gmWyXZ5UvtHlxcliFN25Tli3VXDxRr/5D0hfyOqHEVi/qZJaIuQpUTEs84Dt5xzyRPv3qts6b3BGzmCnrJnlUcihElQIcOXXKSkypElgP5sss0+x6jYYFN+I0JM/zT/FIez6TOc7VxLngZFdQwn6efYlK7JuWKkiahuyRJiTTol7Qrw1o8qocKJPEWqWIG1DvezNmIAAHjaY2BmAIP/WQwpDFgAACofAdEA) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-greek-500-normal-Bg8BLohm.woff2) format("woff2"),url(/assets/roboto-greek-500-normal-CdRewbqV.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-vietnamese-500-normal-p0V0BAAE.woff2) format("woff2"),url(/assets/roboto-vietnamese-500-normal-LvuCHq7y.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-latin-ext-500-normal-OQJhyaXd.woff2) format("woff2"),url(/assets/roboto-latin-ext-500-normal-DvHxAkTn.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:500;src:url(/assets/roboto-latin-500-normal-C6iW8rdg.woff2) format("woff2"),url(/assets/roboto-latin-500-normal-rpP1_v3s.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-cyrillic-ext-700-normal-CyZgh00P.woff2) format("woff2"),url(/assets/roboto-cyrillic-ext-700-normal-DXzexxfu.woff) format("woff");unicode-range:U+0460-052F,U+1C80-1C88,U+20B4,U+2DE0-2DFF,U+A640-A69F,U+FE2E-FE2F}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-cyrillic-700-normal-jruQITdB.woff2) format("woff2"),url(/assets/roboto-cyrillic-700-normal-BJaAVvFw.woff) format("woff");unicode-range:U+0301,U+0400-045F,U+0490-0491,U+04B0-04B1,U+2116}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(data:font/woff2;base64,d09GMgABAAAAAAWwABIAAAAACcAAAAVTAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAAGhQbHhw0BmAAXghICYM8EQwKg0iDMwsUABIUATYCJAMkBCAFgn4HIAyCKRtfCCCeBTkZ2iuxGWKJyeMZv66OCKiaZs+C2PYBKynriFkOIRw+g/RKasP0I2Tp7+2q9xfi7wUbK2iEHqhniZB3rvwq15s+McjkCIq28lPzNpOz6381+8JXa2p3NywTFUsoPFi19wHiAoKxcTWy7qYKLfvKspIVUta28e98NkNGfL1Saoy9g4AKICgIgoCSXWQgCxYNTUGIBJpgg22cCgGyrP3XF1yQdvCC6CzmIwxLnosAt/vj5LbogZT0yrQShPZyIH7ZQREGFZjjiOGtLF492gsUtK8M0uCg/JUR1JDrIJmWZmoo/ygYL3bjLzwPD7AMaFUQySHSouZS+8pjnYMgXNq8mgd/9PCX8m9BZJhfbtawij6MddmzXnMGDujW2EdCdJVa3Fd4Mk1Csl2nNNMt10tiuFXn3BNacx+KIDNiOYaO1X2E7Oh4gPxftmBXX9F/7704DGyNdtu7kOhHYsRmoaQvhzFb60H//EUTc7kKeljbsvSAQ7qI2gxmDMhnsfYk8VAxmqL1dTtFG+oMzulIrxsPVCgaOEwiqQKKhx1Uo44YKodIbn9HZim7XB4XrJkbn8O9BVWcs4DXMgztxidrMHiSZCqnQu6YYtrdtqccGPLFXEnKFoIU18+5s07p2HIIDHMZPEdmq1v6d5QwT4y9E+Ad0jZE//yFubK3ZjG5N6bTmQvnoiK9l3RxWGSXT851d9l7GQWHJTbrt5ChjP33VNg7B4dLalu2yO62CbD/AyFwyQZzLfSLvzqmI73y0i6klzzQCaxcdNjCZnM+e2uUdV+uruoi9E8ukAcDESmImrSBIuhipGYJHoqtWJm9W+ontE9EUxK3YefWXFHlp7edcrrNEXL4HtGHhcOBr3/Ou49KWz55Z1M4991Pt3/8tv3OfVPa8toGe6+Xt765+XRVuHrpoLLXN25480YY8ow0eyY+cA8IzHc+b+FJJ+WTP70hJnteQjTxmnWf73/zsvl9rt1/b/X2q+Z5vuTNKxf1uXpEz7Pf+8Zo3276/vLLbvrGJ4s/vOn3Ky+74TufLOl18aqjpr/s/vmsPbjJK1qby2snpvtz1PuaKhQIXATycv+Dc2j0bJ6ekL4ps7COfkLVF6XMUtgIepWjcoCfzl3q5ZTUeVVhCUuf7qpg6paropis9dOYsXKSXRNIqt1eio8R2goGYHINRsTc2S1kpdI68676G0FAUHXvmHLAspDln/WsECAMyzFZ+hRTYfWLAgioFPMJUZRLojwBUf8uteOfn9u7bcbvhd4F8MxPnUcB8HpY98Y/Y/5/vXhxYRFRFIFA/ohGheIW1TcmjhG0gGK8zQGqoaGH0otsitupzPd5rtETQdFOPYwIFEArkWicIAEFB/EXkiL2cu/lCCrucEQKbnXEejgbnDhSgzgcOT1MpVplHhxiqbN4NRBUq/M8Ay//bhMbEU+ywErgYmci8lgkWiQY0q9TtxGTunEq8MpMkBhJlkg4HSQuZjNECxbZSTzo9s3lKtVqBKCM5by7lsan5zekOumw17oFdtarxAKJbKR6PSVWLuJT+nmY8Kh2Li7UhGN6EUi7knLEP7VCZMbzB5oxa6/MKqWZ4eQQHg13O5QPyU6KUhh+f9Q1jaVxRiGGvZJzJ+/RkOuVruwzWJPplctvT4kN98p3TCrJivMqNIzOSYnuFWtGkFdJtbyhJNWj/Nvrj1t4hFwJzw/P/A3vk8taw/F3YacRxkwn3LUH3tGJd7V247SOaBcE0wl3jZJEZ+ga/Yds4aQQ6Wi3FJ3imZRIIIqRPiHIbp9wl47pDD2l/+nWrQahT1oivVBjuF0jxwMAAA==) format("woff2"),url(data:font/woff;base64,d09GRgABAAAAAATsAA4AAAAABYgAAQABAAAAAAAAAAAAAAAAAAAAAAAAAABHREVGAAABRAAAABQAAAAUAA8ACUdQT1MAAAFYAAAAHgAAAB5EdEx1R1NVQgAAAXgAAAAzAAAANJMNggJPUy8yAAABrAAAAE4AAABgdTXg+WNtYXAAAAH8AAAAQAAAAF4+Y+J/Z2FzcAAAAjwAAAAMAAAADAAIABNnbHlmAAACSAAAARQAAAEUTyyJzmhlYWQAAANcAAAANgAAADb819JcaGhlYQAAA5QAAAAfAAAAJAsmBdVobXR4AAADtAAAAB8AAAAkF/f/LGxvY2EAAAPUAAAAEwAAABQBLwGDbWF4cAAAA+gAAAAcAAAAIAArAN9uYW1lAAAEBAAAANQAAAF+HF85GnBvc3QAAATYAAAAEwAAACD/bQBkAAEAAAAMAAAAAAAAAAEACAABAAEAAQAAAAoAHAAcAAFERkxUAAgABAAAAAD//wAAAAAAAHjaY2BkYGDgYjACQhYXN58QBrnkyqIcBqn0otRsBqmcxJI8BikGEGABEf//g0gA3Y0JHgB42k2HNwGEQAAE57IM8PDdV3Q0BBd4Ipe0CMAEgsh586J0JwcMmML8QHhnq5FMApIbASg+CNM0xAcvtsyQuUJuV7QA+m96/I1qBfuaCnwAAHjaY2BgYAJiZiAWAZKMYJqFwQtI8zFwAOXYwCp4GRQYFsj7/v8P5KHwQTr+f/v/5H/6g91g3TwMCMAEANCmDfkAAQACAAgAAv//AA8ABQBkAAADKAWwAAMABgAJAAwADwAAISERIQMRAQERAQMhATUBIQMo/TwCxDb+7v66AQzkAgP+/gEC/f0FsPqkBQf9fQJ3+xECeP1eAl6IAl4AAAIAVv/sBS4FxAAQAB4AAAEUAgQjIiQCJzU0EiQgBBIVJTQmIyIGBxUUFjMyNjcFLpj+5be1/uScAZsBGwFsARub/tCkmJekAaSal6IBArfX/rywrgFD0kjXAUevr/651gHl7uvjR9/27eMAAAIAWwRvAssF1wAFAA4AAAETMxUDIwEzFRYXByYmNQGJb9PmXP7SrQFMU0pdBJsBPBX+wQFUXnw4ViOJXQD///4X/+wFdAXXACYABUYAAAcABv28AAAAAQAAAAIjEjlU04RfDzz1ABkIAAAAAADE8BEuAAAAANUBUtb6MP3VCYcIcwABAAkAAgAAAAAAAHjaY2BkYGDP+cfDwMDZ9cvgnylnO1AEFXACAHx/BQkAeNpj7mFIYYACxn8QzNrGEMYszxANZp/5Jw4AZykHNQB42mNgYNCEw3iGOiDsAgARkAKzAHjaY2BkYGDgZOhnEGPwY2AF8xCAjYERABgMAQt42mJgYOBgSGNgZmBk4QSy4xh2QdmMDDwM66BsJqCaZRA2kBRjmABlsyCxWQFVjyUWQgEQRW8isoafSLhLwd0t4+7O7nk4nDfug4XZyzYp3nzZZlkw4SBsCOMQzg/Y6bIR95UdyluzY6zsgqliQ1bsJfeKFMmRIEWZhqQNN3ac1NXREx/ENuKSCwa01bNT11T+CuNR68JDgMjDc8oL/PUan96X/ssmxBuu7JgyRn98prhkZVgLY3UN5eVY0ccuK8ZCMKh/uvYPT/+Id5wkB9hvI3U1mnjaY2BmAIP/WQwpDFgAACofAdEA) format("woff");unicode-range:U+1F00-1FFF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-greek-700-normal-Bs05n1ZH.woff2) format("woff2"),url(/assets/roboto-greek-700-normal-1IZ-NEfb.woff) format("woff");unicode-range:U+0370-0377,U+037A-037F,U+0384-038A,U+038C,U+038E-03A1,U+03A3-03FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-vietnamese-700-normal-CBbheh0s.woff2) format("woff2"),url(/assets/roboto-vietnamese-700-normal-B4Nagvlm.woff) format("woff");unicode-range:U+0102-0103,U+0110-0111,U+0128-0129,U+0168-0169,U+01A0-01A1,U+01AF-01B0,U+0300-0301,U+0303-0304,U+0308-0309,U+0323,U+0329,U+1EA0-1EF9,U+20AB}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-latin-ext-700-normal-DchBbzVz.woff2) format("woff2"),url(/assets/roboto-latin-ext-700-normal-Ba-CAIIA.woff) format("woff");unicode-range:U+0100-02AF,U+0304,U+0308,U+0329,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF}@font-face{font-family:Roboto;font-style:normal;font-display:swap;font-weight:700;src:url(/assets/roboto-latin-700-normal-CbYYDfWS.woff2) format("woff2"),url(/assets/roboto-latin-700-normal-BWcFiwQV.woff) format("woff");unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+2074,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD}@media (prefers-color-scheme: dark){.wmde-markdown,.wmde-markdown-var{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149;--color-danger-emphasis: #da3633;--color-attention-fg: #d29922;--color-attention-emphasis: #9e6a03;--color-done-fg: #a371f7;--color-done-emphasis: #8957e5;--color-success-fg: #3fb950;--color-success-emphasis: #238636;--color-copied-active-bg: #2e9b33}}@media (prefers-color-scheme: light){.wmde-markdown,.wmde-markdown-var{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #d1242f;--color-danger-emphasis: #cf222e;--color-attention-fg: #9a6700;--color-attention-emphasis: #9a6700;--color-done-fg: #8250df;--color-done-emphasis: #8250df;--color-success-fg: #1a7f37;--color-success-emphasis: #1f883d;--color-copied-active-bg: #2e9b33}}[data-color-mode*=dark] .wmde-markdown,[data-color-mode*=dark] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=dark],.wmde-markdown[data-color-mode*=dark],body[data-color-mode*=dark]{color-scheme:dark;--color-prettylights-syntax-comment: #8b949e;--color-prettylights-syntax-constant: #79c0ff;--color-prettylights-syntax-entity: #d2a8ff;--color-prettylights-syntax-storage-modifier-import: #c9d1d9;--color-prettylights-syntax-entity-tag: #7ee787;--color-prettylights-syntax-keyword: #ff7b72;--color-prettylights-syntax-string: #a5d6ff;--color-prettylights-syntax-variable: #ffa657;--color-prettylights-syntax-brackethighlighter-unmatched: #f85149;--color-prettylights-syntax-invalid-illegal-text: #f0f6fc;--color-prettylights-syntax-invalid-illegal-bg: #8e1519;--color-prettylights-syntax-carriage-return-text: #f0f6fc;--color-prettylights-syntax-carriage-return-bg: #b62324;--color-prettylights-syntax-string-regexp: #7ee787;--color-prettylights-syntax-markup-list: #f2cc60;--color-prettylights-syntax-markup-heading: #1f6feb;--color-prettylights-syntax-markup-italic: #c9d1d9;--color-prettylights-syntax-markup-bold: #c9d1d9;--color-prettylights-syntax-markup-deleted-text: #ffdcd7;--color-prettylights-syntax-markup-deleted-bg: #67060c;--color-prettylights-syntax-markup-inserted-text: #aff5b4;--color-prettylights-syntax-markup-inserted-bg: #033a16;--color-prettylights-syntax-markup-changed-text: #ffdfb6;--color-prettylights-syntax-markup-changed-bg: #5a1e02;--color-prettylights-syntax-markup-ignored-text: #c9d1d9;--color-prettylights-syntax-markup-ignored-bg: #1158c7;--color-prettylights-syntax-meta-diff-range: #d2a8ff;--color-prettylights-syntax-brackethighlighter-angle: #8b949e;--color-prettylights-syntax-sublimelinter-gutter-mark: #484f58;--color-prettylights-syntax-constant-other-reference-link: #a5d6ff;--color-fg-default: #c9d1d9;--color-fg-muted: #8b949e;--color-fg-subtle: #484f58;--color-canvas-default: #0d1117;--color-canvas-subtle: #161b22;--color-border-default: #30363d;--color-border-muted: #21262d;--color-neutral-muted: rgba(110, 118, 129, .4);--color-accent-fg: #58a6ff;--color-accent-emphasis: #1f6feb;--color-attention-subtle: rgba(187, 128, 9, .15);--color-danger-fg: #f85149}[data-color-mode*=light] .wmde-markdown,[data-color-mode*=light] .wmde-markdown-var,.wmde-markdown-var[data-color-mode*=light],.wmde-markdown[data-color-mode*=light],body[data-color-mode*=light]{color-scheme:light;--color-prettylights-syntax-comment: #6e7781;--color-prettylights-syntax-constant: #0550ae;--color-prettylights-syntax-entity: #8250df;--color-prettylights-syntax-storage-modifier-import: #24292f;--color-prettylights-syntax-entity-tag: #116329;--color-prettylights-syntax-keyword: #cf222e;--color-prettylights-syntax-string: #0a3069;--color-prettylights-syntax-variable: #953800;--color-prettylights-syntax-brackethighlighter-unmatched: #82071e;--color-prettylights-syntax-invalid-illegal-text: #f6f8fa;--color-prettylights-syntax-invalid-illegal-bg: #82071e;--color-prettylights-syntax-carriage-return-text: #f6f8fa;--color-prettylights-syntax-carriage-return-bg: #cf222e;--color-prettylights-syntax-string-regexp: #116329;--color-prettylights-syntax-markup-list: #3b2300;--color-prettylights-syntax-markup-heading: #0550ae;--color-prettylights-syntax-markup-italic: #24292f;--color-prettylights-syntax-markup-bold: #24292f;--color-prettylights-syntax-markup-deleted-text: #82071e;--color-prettylights-syntax-markup-deleted-bg: #ffebe9;--color-prettylights-syntax-markup-inserted-text: #116329;--color-prettylights-syntax-markup-inserted-bg: #dafbe1;--color-prettylights-syntax-markup-changed-text: #953800;--color-prettylights-syntax-markup-changed-bg: #ffd8b5;--color-prettylights-syntax-markup-ignored-text: #eaeef2;--color-prettylights-syntax-markup-ignored-bg: #0550ae;--color-prettylights-syntax-meta-diff-range: #8250df;--color-prettylights-syntax-brackethighlighter-angle: #57606a;--color-prettylights-syntax-sublimelinter-gutter-mark: #8c959f;--color-prettylights-syntax-constant-other-reference-link: #0a3069;--color-fg-default: #24292f;--color-fg-muted: #57606a;--color-fg-subtle: #6e7781;--color-canvas-default: #ffffff;--color-canvas-subtle: #f6f8fa;--color-border-default: #d0d7de;--color-border-muted: hsl(210, 18%, 87%);--color-neutral-muted: rgba(175, 184, 193, .2);--color-accent-fg: #0969da;--color-accent-emphasis: #0969da;--color-attention-subtle: #fff8c5;--color-danger-fg: #cf222e}.wmde-markdown{-webkit-text-size-adjust:100%;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Noto Sans,Helvetica,Arial,sans-serif,"Apple Color Emoji","Segoe UI Emoji";font-size:16px;line-height:1.5;word-wrap:break-word;color:var(--color-fg-default);background-color:var(--color-canvas-default)}.wmde-markdown details,.wmde-markdown figcaption,.wmde-markdown figure{display:block}.wmde-markdown summary{display:list-item}.wmde-markdown [hidden]{display:none!important}.wmde-markdown a{background-color:transparent;color:var(--color-accent-fg);text-decoration:none}.wmde-markdown a:active,.wmde-markdown a:hover{outline-width:0}.wmde-markdown abbr[title]{border-bottom:none;-webkit-text-decoration:underline dotted;text-decoration:underline dotted}.wmde-markdown b,.wmde-markdown strong{font-weight:600}.wmde-markdown dfn{font-style:italic}.wmde-markdown h1{margin:.67em 0;font-weight:600;padding-bottom:.3em;font-size:2em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown mark{background-color:var(--color-attention-subtle);color:var(--color-text-primary)}.wmde-markdown small{font-size:90%}.wmde-markdown sub,.wmde-markdown sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}.wmde-markdown sub{bottom:-.25em}.wmde-markdown sup{top:-.5em}.wmde-markdown img{display:inline-block;border-style:none;max-width:100%;box-sizing:content-box;background-color:var(--color-canvas-default)}.wmde-markdown code,.wmde-markdown kbd,.wmde-markdown pre,.wmde-markdown samp{font-family:monospace,monospace;font-size:1em}.wmde-markdown figure{margin:1em 40px}.wmde-markdown hr{box-sizing:content-box;overflow:hidden;background:transparent;border:0;border-bottom:1px solid var(--color-border-muted);height:.25em;padding:0;margin:24px 0;background-color:var(--color-border-default)}.wmde-markdown input{font:inherit;margin:0;overflow:visible;font-family:inherit;font-size:inherit;line-height:inherit}.wmde-markdown [type=button],.wmde-markdown [type=reset],.wmde-markdown [type=submit]{-webkit-appearance:button}.wmde-markdown [type=button]::-moz-focus-inner,.wmde-markdown [type=reset]::-moz-focus-inner,.wmde-markdown [type=submit]::-moz-focus-inner{border-style:none;padding:0}.wmde-markdown [type=button]:-moz-focusring,.wmde-markdown [type=reset]:-moz-focusring,.wmde-markdown [type=submit]:-moz-focusring{outline:1px dotted ButtonText}.wmde-markdown [type=checkbox],.wmde-markdown [type=radio]{box-sizing:border-box;padding:0}.wmde-markdown [type=number]::-webkit-inner-spin-button,.wmde-markdown [type=number]::-webkit-outer-spin-button{height:auto}.wmde-markdown [type=search]{-webkit-appearance:textfield;outline-offset:-2px}.wmde-markdown [type=search]::-webkit-search-cancel-button,.wmde-markdown [type=search]::-webkit-search-decoration{-webkit-appearance:none}.wmde-markdown ::-webkit-input-placeholder{color:inherit;opacity:.54}.wmde-markdown ::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}.wmde-markdown a:hover{text-decoration:underline}.wmde-markdown hr:before{display:table;content:""}.wmde-markdown hr:after{display:table;clear:both;content:""}.wmde-markdown table{border-spacing:0;border-collapse:collapse;display:block;width:-webkit-max-content;width:max-content;max-width:100%}.wmde-markdown td,.wmde-markdown th{padding:0}.wmde-markdown details summary{cursor:pointer}.wmde-markdown details:not([open])>*:not(summary){display:none!important}.wmde-markdown kbd{display:inline-block;padding:3px 5px;font:11px ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;line-height:10px;color:var(--color-fg-default);vertical-align:middle;background-color:var(--color-canvas-subtle);border:solid 1px var(--color-neutral-muted);border-bottom-color:var(--color-neutral-muted);border-radius:6px;box-shadow:inset 0 -1px 0 var(--color-neutral-muted)}.wmde-markdown h1,.wmde-markdown h2,.wmde-markdown h3,.wmde-markdown h4,.wmde-markdown h5,.wmde-markdown h6{margin-top:24px;margin-bottom:16px;font-weight:600;line-height:1.25}.wmde-markdown h2{font-weight:600;padding-bottom:.3em;font-size:1.5em;border-bottom:1px solid var(--color-border-muted)}.wmde-markdown h3{font-weight:600;font-size:1.25em}.wmde-markdown h4{font-weight:600;font-size:1em}.wmde-markdown h5{font-weight:600;font-size:.875em}.wmde-markdown h6{font-weight:600;font-size:.85em;color:var(--color-fg-muted)}.wmde-markdown p{margin-top:0;margin-bottom:10px}.wmde-markdown blockquote{margin:0;padding:0 1em;color:var(--color-fg-muted);border-left:.25em solid var(--color-border-default)}.wmde-markdown ul,.wmde-markdown ol{margin-top:0;margin-bottom:0;padding-left:2em}.wmde-markdown ol ol,.wmde-markdown ul ol{list-style-type:lower-roman}.wmde-markdown ul ul ol,.wmde-markdown ul ol ol,.wmde-markdown ol ul ol,.wmde-markdown ol ol ol{list-style-type:lower-alpha}.wmde-markdown dd{margin-left:0}.wmde-markdown tt,.wmde-markdown code{font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px}.wmde-markdown pre{margin-top:0;margin-bottom:0;font-family:ui-monospace,SFMono-Regular,SF Mono,Menlo,Consolas,Liberation Mono,monospace;font-size:12px;word-wrap:normal}.wmde-markdown .octicon{display:inline-block;overflow:visible!important;vertical-align:text-bottom;fill:currentColor}.wmde-markdown ::placeholder{color:var(--color-fg-subtle);opacity:1}.wmde-markdown input::-webkit-outer-spin-button,.wmde-markdown input::-webkit-inner-spin-button{margin:0;-webkit-appearance:none;-moz-appearance:none;appearance:none}.wmde-markdown [data-catalyst]{display:block}.wmde-markdown:before{display:table;content:""}.wmde-markdown:after{display:table;clear:both;content:""}.wmde-markdown>*:first-child{margin-top:0!important}.wmde-markdown>*:last-child{margin-bottom:0!important}.wmde-markdown a:not([href]){color:inherit;text-decoration:none}.wmde-markdown .absent{color:var(--color-danger-fg)}.wmde-markdown a.anchor{float:left;padding-right:4px;margin-left:-20px;line-height:1}.wmde-markdown .anchor:focus{outline:none}.wmde-markdown p,.wmde-markdown blockquote,.wmde-markdown ul,.wmde-markdown ol,.wmde-markdown dl,.wmde-markdown table,.wmde-markdown pre,.wmde-markdown details{margin-top:0;margin-bottom:16px}.wmde-markdown blockquote>:first-child{margin-top:0}.wmde-markdown blockquote>:last-child{margin-bottom:0}.wmde-markdown sup>a:before{content:"["}.wmde-markdown sup>a:after{content:"]"}.wmde-markdown h1 .octicon-link,.wmde-markdown h2 .octicon-link,.wmde-markdown h3 .octicon-link,.wmde-markdown h4 .octicon-link,.wmde-markdown h5 .octicon-link,.wmde-markdown h6 .octicon-link{color:var(--color-fg-default);vertical-align:middle;visibility:hidden}.wmde-markdown h1:hover .anchor,.wmde-markdown h2:hover .anchor,.wmde-markdown h3:hover .anchor,.wmde-markdown h4:hover .anchor,.wmde-markdown h5:hover .anchor,.wmde-markdown h6:hover .anchor{text-decoration:none}.wmde-markdown h1:hover .anchor .octicon-link,.wmde-markdown h2:hover .anchor .octicon-link,.wmde-markdown h3:hover .anchor .octicon-link,.wmde-markdown h4:hover .anchor .octicon-link,.wmde-markdown h5:hover .anchor .octicon-link,.wmde-markdown h6:hover .anchor .octicon-link{visibility:visible}.wmde-markdown h1 tt,.wmde-markdown h1 code,.wmde-markdown h2 tt,.wmde-markdown h2 code,.wmde-markdown h3 tt,.wmde-markdown h3 code,.wmde-markdown h4 tt,.wmde-markdown h4 code,.wmde-markdown h5 tt,.wmde-markdown h5 code,.wmde-markdown h6 tt,.wmde-markdown h6 code{padding:0 .2em;font-size:inherit}.wmde-markdown ul.no-list,.wmde-markdown ol.no-list{padding:0;list-style-type:none}.wmde-markdown ol[type="1"]{list-style-type:decimal}.wmde-markdown ol[type=a]{list-style-type:lower-alpha}.wmde-markdown ol[type=i]{list-style-type:lower-roman}.wmde-markdown div>ol:not([type]){list-style-type:decimal}.wmde-markdown ul ul,.wmde-markdown ul ol,.wmde-markdown ol ol,.wmde-markdown ol ul{margin-top:0;margin-bottom:0}.wmde-markdown li>p{margin-top:16px}.wmde-markdown li+li{margin-top:.25em}.wmde-markdown dl{padding:0}.wmde-markdown dl dt{padding:0;margin-top:16px;font-size:1em;font-style:italic;font-weight:600}.wmde-markdown dl dd{padding:0 16px;margin-bottom:16px}.wmde-markdown table th{font-weight:600}.wmde-markdown table th,.wmde-markdown table td{padding:6px 13px;border:1px solid var(--color-border-default)}.wmde-markdown table tr{background-color:var(--color-canvas-default);border-top:1px solid var(--color-border-muted)}.wmde-markdown table tr:nth-child(2n){background-color:var(--color-canvas-subtle)}.wmde-markdown table img{background-color:transparent}.wmde-markdown img[align=right]{padding-left:20px}.wmde-markdown img[align=left]{padding-right:20px}.wmde-markdown .emoji{max-width:none;vertical-align:text-top;background-color:transparent}.wmde-markdown span.frame{display:block;overflow:hidden}.wmde-markdown span.frame>span{display:block;float:left;width:auto;padding:7px;margin:13px 0 0;overflow:hidden;border:1px solid var(--color-border-default)}.wmde-markdown span.frame span img{display:block;float:left}.wmde-markdown span.frame span span{display:block;padding:5px 0 0;clear:both;color:var(--color-fg-default)}.wmde-markdown span.align-center{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-center>span{display:block;margin:13px auto 0;overflow:hidden;text-align:center}.wmde-markdown span.align-center span img{margin:0 auto;text-align:center}.wmde-markdown span.align-right{display:block;overflow:hidden;clear:both}.wmde-markdown span.align-right>span{display:block;margin:13px 0 0;overflow:hidden;text-align:right}.wmde-markdown span.align-right span img{margin:0;text-align:right}.wmde-markdown span.float-left{display:block;float:left;margin-right:13px;overflow:hidden}.wmde-markdown span.float-left span{margin:13px 0 0}.wmde-markdown span.float-right{display:block;float:right;margin-left:13px;overflow:hidden}.wmde-markdown span.float-right>span{display:block;margin:13px auto 0;overflow:hidden;text-align:right}.wmde-markdown code,.wmde-markdown tt{padding:.2em .4em;margin:0;font-size:85%;background-color:var(--color-neutral-muted);border-radius:6px}.wmde-markdown code br,.wmde-markdown tt br{display:none}.wmde-markdown del code{text-decoration:inherit}.wmde-markdown pre code{font-size:100%}.wmde-markdown pre>code{padding:0;margin:0;word-break:normal;white-space:pre;background:transparent;border:0}.wmde-markdown pre{font-size:85%;line-height:1.45;background-color:var(--color-canvas-subtle);border-radius:6px}.wmde-markdown pre code,.wmde-markdown pre tt{display:inline;max-width:auto;padding:0;margin:0;overflow:visible;line-height:inherit;word-wrap:normal;background-color:transparent;border:0}.wmde-markdown pre>code{padding:16px;overflow:auto;display:block}.wmde-markdown .csv-data td,.wmde-markdown .csv-data th{padding:5px;overflow:hidden;font-size:12px;line-height:1;text-align:left;white-space:nowrap}.wmde-markdown .csv-data .blob-num{padding:10px 8px 9px;text-align:right;background:var(--color-canvas-default);border:0}.wmde-markdown .csv-data tr{border-top:0}.wmde-markdown .csv-data th{font-weight:600;background:var(--color-canvas-subtle);border-top:0}.wmde-markdown .footnotes{font-size:12px;color:var(--color-fg-muted);border-top:1px solid var(--color-border-default)}.wmde-markdown .footnotes ol{padding-left:16px}.wmde-markdown .footnotes li{position:relative}.wmde-markdown .footnotes li:target:before{position:absolute;top:-8px;right:-8px;bottom:-8px;left:-24px;pointer-events:none;content:"";border:2px solid var(--color-accent-emphasis);border-radius:6px}.wmde-markdown .footnotes li:target{color:var(--color-fg-default)}.wmde-markdown .footnotes .data-footnote-backref g-emoji{font-family:monospace}.wmde-markdown .task-list-item{list-style-type:none}.wmde-markdown .task-list-item label{font-weight:400}.wmde-markdown .task-list-item.enabled label{cursor:pointer}.wmde-markdown .task-list-item+.wmde-markdown .task-list-item{margin-top:3px}.wmde-markdown .task-list-item .handle{display:none}.wmde-markdown .task-list-item-checkbox,.wmde-markdown .contains-task-list input[type=checkbox]{margin:0 .2em .25em -1.6em;vertical-align:middle}.wmde-markdown .contains-task-list:dir(rtl) .task-list-item-checkbox,.wmde-markdown .contains-task-list:dir(rtl) input[type=checkbox]{margin:0 -1.6em .25em .2em}.wmde-markdown ::-webkit-calendar-picker-indicator{filter:invert(50%)}.wmde-markdown pre{position:relative}.wmde-markdown pre .copied{visibility:hidden;display:flex;position:absolute;cursor:pointer;color:var(--color-fg-default);top:6px;right:6px;border-radius:5px;background:var(--color-border-default);padding:6px;font-size:12px;transition:all .3s}.wmde-markdown pre .copied .octicon-copy{display:block}.wmde-markdown pre .copied .octicon-check{display:none}.wmde-markdown pre:hover .copied{visibility:visible}.wmde-markdown pre:hover .copied:hover{background:var(--color-prettylights-syntax-entity-tag);color:var(--color-canvas-default)}.wmde-markdown pre:hover .copied:active,.wmde-markdown pre .copied.active{background:var(--color-copied-active-bg);color:var(--color-canvas-default)}.wmde-markdown pre .active .octicon-copy{display:none}.wmde-markdown pre .active .octicon-check{display:block}.wmde-markdown .markdown-alert{padding:.5rem 1em;color:inherit;margin-bottom:16px;border-left:.25em solid var(--borderColor-default, var(--color-border-default))}.wmde-markdown .markdown-alert>:last-child{margin-bottom:0!important}.wmde-markdown .markdown-alert .markdown-alert-title{display:flex;align-items:center;line-height:1;font-weight:500;font-size:14px}.wmde-markdown .markdown-alert .markdown-alert-title svg.octicon{margin-right:var(--base-size-8, 8px)!important}.wmde-markdown .markdown-alert.markdown-alert-note{border-left-color:var(--borderColor-accent-emphasis, var(--color-accent-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-note .markdown-alert-title{color:var(--fgColor-accent, var(--color-accent-fg))}.wmde-markdown .markdown-alert.markdown-alert-tip{border-left-color:var(--borderColor-success-emphasis, var(--color-success-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-tip .markdown-alert-title{color:var(--fgColor-success, var(--color-success-fg))}.wmde-markdown .markdown-alert.markdown-alert-important{border-left-color:var(--borderColor-done-emphasis, var(--color-done-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-important .markdown-alert-title{color:var(--fgColor-done, var(--color-done-fg))}.wmde-markdown .markdown-alert.markdown-alert-warning{border-left-color:var(--borderColor-attention-emphasis, var(--color-attention-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-warning .markdown-alert-title{color:var(--fgColor-attention, var(--color-attention-fg))}.wmde-markdown .markdown-alert.markdown-alert-caution{border-left-color:var(--borderColor-danger-emphasis, var(--color-danger-emphasis))}.wmde-markdown .markdown-alert.markdown-alert-caution .markdown-alert-title{color:var(--fgColor-danger, var(--color-danger-fg))}.wmde-markdown .highlight-line{background-color:var(--color-neutral-muted)}.wmde-markdown .code-line.line-number:before{display:inline-block;width:1rem;text-align:right;margin-right:16px;color:var(--color-fg-subtle);content:attr(line);white-space:nowrap}.wmde-markdown .token.comment,.wmde-markdown .token.prolog,.wmde-markdown .token.doctype,.wmde-markdown .token.cdata{color:var(--color-prettylights-syntax-comment)}.wmde-markdown .token.namespace{opacity:.7}.wmde-markdown .token.property,.wmde-markdown .token.tag,.wmde-markdown .token.selector,.wmde-markdown .token.constant,.wmde-markdown .token.symbol,.wmde-markdown .token.deleted{color:var(--color-prettylights-syntax-entity-tag)}.wmde-markdown .token.maybe-class-name{color:var(--color-prettylights-syntax-variable)}.wmde-markdown .token.property-access,.wmde-markdown .token.operator,.wmde-markdown .token.boolean,.wmde-markdown .token.number,.wmde-markdown .token.selector .token.class,.wmde-markdown .token.attr-name,.wmde-markdown .token.string,.wmde-markdown .token.char,.wmde-markdown .token.builtin{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .token.deleted{color:var(--color-prettylights-syntax-markup-deleted-text)}.wmde-markdown .code-line .token.deleted{background-color:var(--color-prettylights-syntax-markup-deleted-bg)}.wmde-markdown .token.inserted{color:var(--color-prettylights-syntax-markup-inserted-text)}.wmde-markdown .code-line .token.inserted{background-color:var(--color-prettylights-syntax-markup-inserted-bg)}.wmde-markdown .token.variable{color:var(--color-prettylights-syntax-constant)}.wmde-markdown .token.entity,.wmde-markdown .token.url,.wmde-markdown .language-css .token.string,.wmde-markdown .style .token.string,.wmde-markdown .token.color,.wmde-markdown .token.atrule,.wmde-markdown .token.attr-value,.wmde-markdown .token.function,.wmde-markdown .token.class-name{color:var(--color-prettylights-syntax-string)}.wmde-markdown .token.rule,.wmde-markdown .token.regex,.wmde-markdown .token.important,.wmde-markdown .token.keyword{color:var(--color-prettylights-syntax-keyword)}.wmde-markdown .token.coord{color:var(--color-prettylights-syntax-meta-diff-range)}.wmde-markdown .token.important,.wmde-markdown .token.bold{font-weight:700}.wmde-markdown .token.italic{font-style:italic}.wmde-markdown .token.entity{cursor:help}@font-face{font-family:KaTeX_AMS;font-style:normal;font-weight:400;src:url(/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2) format("woff2"),url(/assets/KaTeX_AMS-Regular-DMm9YOAa.woff) format("woff"),url(/assets/KaTeX_AMS-Regular-DRggAlZN.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf) format("truetype")}@font-face{font-family:KaTeX_Caligraphic;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2) format("woff2"),url(/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff) format("woff"),url(/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff) format("woff"),url(/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf) format("truetype")}@font-face{font-family:KaTeX_Fraktur;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2) format("woff2"),url(/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff) format("woff"),url(/assets/KaTeX_Fraktur-Regular-CB_wures.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:700;src:url(/assets/KaTeX_Main-Bold-Cx986IdX.woff2) format("woff2"),url(/assets/KaTeX_Main-Bold-Jm3AIy58.woff) format("woff"),url(/assets/KaTeX_Main-Bold-waoOVXN0.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2) format("woff2"),url(/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff) format("woff"),url(/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2) format("woff2"),url(/assets/KaTeX_Main-Italic-BMLOBm91.woff) format("woff"),url(/assets/KaTeX_Main-Italic-3WenGoN9.ttf) format("truetype")}@font-face{font-family:KaTeX_Main;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Main-Regular-B22Nviop.woff2) format("woff2"),url(/assets/KaTeX_Main-Regular-Dr94JaBh.woff) format("woff"),url(/assets/KaTeX_Main-Regular-ypZvNtVU.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:700;src:url(/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2) format("woff2"),url(/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff) format("woff"),url(/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf) format("truetype")}@font-face{font-family:KaTeX_Math;font-style:italic;font-weight:400;src:url(/assets/KaTeX_Math-Italic-t53AETM-.woff2) format("woff2"),url(/assets/KaTeX_Math-Italic-DA0__PXp.woff) format("woff"),url(/assets/KaTeX_Math-Italic-flOr_0UB.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:700;src:url(/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff) format("woff"),url(/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:italic;font-weight:400;src:url(/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff) format("woff"),url(/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf) format("truetype")}@font-face{font-family:KaTeX_SansSerif;font-style:normal;font-weight:400;src:url(/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2) format("woff2"),url(/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff) format("woff"),url(/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf) format("truetype")}@font-face{font-family:KaTeX_Script;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Script-Regular-D3wIWfF6.woff2) format("woff2"),url(/assets/KaTeX_Script-Regular-D5yQViql.woff) format("woff"),url(/assets/KaTeX_Script-Regular-C5JkGWo-.ttf) format("truetype")}@font-face{font-family:KaTeX_Size1;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2) format("woff2"),url(/assets/KaTeX_Size1-Regular-C195tn64.woff) format("woff"),url(/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf) format("truetype")}@font-face{font-family:KaTeX_Size2;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2) format("woff2"),url(/assets/KaTeX_Size2-Regular-oD1tc_U0.woff) format("woff"),url(/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf) format("truetype")}@font-face{font-family:KaTeX_Size3;font-style:normal;font-weight:400;src:url(data:font/woff2;base64,d09GMgABAAAAAA4oAA4AAAAAHbQAAA3TAAEAAAAAAAAAAAAAAAAAAAAAAAAAAAAABmAAgRQIDgmcDBEICo1oijYBNgIkA14LMgAEIAWJAAeBHAyBHBvbGiMRdnO0IkRRkiYDgr9KsJ1NUAf2kILNxgUmgqIgq1P89vcbIcmsQbRps3vCcXdYOKSWEPEKgZgQkprQQsxIXUgq0DqpGKmIvrgkeVGtEQD9DzAO29fM9jYhxZEsL2FeURH2JN4MIcTdO049NCVdxQ/w9NrSYFEBKTDKpLKfNkCGDc1RwjZLQcm3vqJ2UW9Xfa3tgAHz6ivp6vgC2yD4/6352ndnN0X0TL7seypkjZlMsjmZnf0Mm5Q+JykRWQBKCVCVPbARPXWyQtb5VgLB6Biq7/Uixcj2WGqdI8tGSgkuRG+t910GKP2D7AQH0DB9FMDW/obJZ8giFI3Wg8Cvevz0M+5m0rTh7XDBlvo9Y4vm13EXmfttwI4mBo1EG15fxJhUiCLbiiyCf/ZA6MFAhg3pGIZGdGIVjtPn6UcMk9A/UUr9PhoNsCENw1APAq0gpH73e+M+0ueyHbabc3vkbcdtzcf/fiy+NxQEjf9ud/ELBHAXJ0nk4z+MXH2Ev/kWyV4k7SkvpPc9Qr38F6RPWnM9cN6DJ0AdD1BhtgABtmoRoFCvPsBAumNm6soZG2Gk5GyVTo2sJncSyp0jQTYoR6WDvTwaaEcHsxHfvuWhHA3a6bN7twRKtcGok6NsCi7jYRrM2jExsUFMxMQYuJbMhuWNOumEJy9hi29Dmg5zMp/A5+hhPG19j1vBrq8JTLr8ki5VLPmG/PynJHVul440bxg5xuymHUFPBshC+nA9I1FmwbRBTNHAcik3Oae0cxKoI3MOriM42UrPe51nsaGxJ+WfXubAsP84aabUlQSJ1IiE0iPETLUU4CATgfXSCSpuRFRmCGbO+wSpAnzaeaCYW1VNEysRtuXCEL1kUFUbbtMv3Tilt/1c11jt3Q5bbMa84cpWipp8Elw3MZhOHsOlwwVUQM3lAR35JiFQbaYCRnMF2lxAWoOg2gyoIV4PouX8HytNIfLhqpJtXB4vjiViUI8IJ7bkC4ikkQvKksnOTKICwnqWSZ9YS5f0WCxmpgjbIq7EJcM4aI2nmhLNY2JIUgOjXZFWBHb+x5oh6cwb0Tv1ackHdKi0I9OO2wE9aogIOn540CCCziyhN+IaejtgAONKznHlHyutPrHGwCx9S6B8kfS4Mfi4Eyv7OU730bT1SCBjt834cXsf43zVjPUqqJjgrjeGnBxSG4aYAKFuVbeCfkDIjAqMb6yLNIbCuvXhMH2/+k2vkNpkORhR59N1CkzoOENvneIosjYmuTxlhUzaGEJQ/iWqx4dmwpmKjrwTiTGTCVozNAYqk/zXOndWxuWSmJkQpJw3pK5KX6QrLt5LATMqpmPAQhkhK6PUjzHUn7E0gHE0kPE0iKkolgkUx9SZmVAdDgpffdyJKg3k7VmzYGCwVXGz/tXmkOIp+vcWs+EMuhhvN0h9uhfzWJziBQmCREGSIFmQIkgVpAnSBRmC//6hkLZwaVhwxlrJSOdqlFtOYxlau9F2QN5Y98xmIAsiM1HVp2VFX+DHHGg6Ecjh3vmqtidX3qHI2qycTk/iwxSt5UzTmEP92ZBnEWTk4Mx8Mpl78ZDokxg/KWb+Q0QkvdKVmq3TMW+RXEgrsziSAfNXFMhDc60N5N9jQzjfO0kBKpUZl0ZmwJ41j/B9Hz6wmRaJB84niNmQrzp9eSlQCDDzazGDdVi3P36VZQ+Jy4f9UBNp+3zTjqI4abaFAm+GShVaXlsGdF3FYzZcDI6cori4kMxUECl9IjJZpzkvitAoxKue+90pDMvcKRxLl53TmOKCmV/xRolNKSqqUxc6LStOETmFOiLZZptlZepcKiAzteG8PEdpnQpbOMNcMsR4RR2Bs0cKFEvSmIjAFcnarqwUL4lDhHmnVkwu1IwshbiCcgvOheZuYyOteufZZwlcTlLgnZ3o/WcYdzZHW/WGaqaVfmTZ1aWCceJjkbZqsfbkOtcFlUZM/jy+hXHDbaUobWqqXaeWobbLO99yG5N3U4wxco0rQGGcOLASFMXeJoham8M+/x6O2WywK2l4HGbq1CoUyC/IZikQhdq3SiuNrvAEj0AVu9x2x3lp/xWzahaxidezFVtdcb5uEnzyl0ZmYiuKI0exvCd4Xc9CV1KB0db00z92wDPde0kukbvZIWN6jUWFTmPIC/Y4UPCm8UfDTFZpZNon1qLFTkBhxzB+FjQRA2Q/YRJT8pQigslMaUpFyAG8TMlXigiqmAZX4xgijKjRlGpLE0GdplRfCaJo0JQaSxNBk6ZmMzcya0FmrcisDdn0Q3HI2sWSppYigmlM1XT/kLQZSNpMJG0WkjYbSZuDpM1F0uYhFc1HxU4m1QJjDK6iL0S5uSj5rgXc3RejEigtcRBtqYPQsiTskmO5vosV+q4VGIKbOkDg0jtRrq+Em1YloaTFar3EGr1EUC8R0kus1Uus00usL97ABr2BjXoDm/QGNhuWtMVBKOwg/i78lT7hBsAvDmwHc/ao3vmUbBmhjeYySZNWvGkfZAgISDSaDo1SVpzGDsAEkF8B+gEapViUoZgUWXcRIGFZNm6gWbAKk0bp0k1MHG9fLYtV4iS2SmLEQFARzRcnf9PUS0LVn05/J9MiRRBU3v2IrvW974v4N00L7ZMk0wXP1409CHo/an8zTRHD3eSJ6m8D4YMkZNl3M79sqeuAsr/m3f+8/yl7A50aiAEJgeBeMWzu7ui9UfUBCe2TIqZIoOd/3/udRBOQidQZUERzb2/VwZN1H/Sju82ew2H2Wfr6qvfVf3hqwDvAIpkQVFy4B9Pe9e4/XvPeceu7h3dvO56iJPf0+A6cqA2ip18ER+iFgggiuOkvj24bby0N9j2UHIkgqIt+sVgfodC4YghLSMjSZbH0VR/6dMDrYJeKHilKTemt6v6kvzvn3/RrdWtr0GoN/xL+Sex/cPYLUpepx9cz/D46UPU5KXgAQa+NDps1v6J3xP1i2HtaDB0M9aX2deA7SYff//+gUCovMmIK/qfsFcOk+4Y5ZN97XlG6zebqtMbKgeRFi51vnxTQYBUik2rS/Cn6PC8ADR8FGxsRPB82dzfND90gIcshOcYUkfjherBz53odpm6TP8txlwOZ71xmfHHOvq053qFF/MRlS3jP0ELudrf2OeN8DHvp6ZceLe8qKYvWz/7yp0u4dKPfli3CYq0O13Ih71mylJ80tOi10On8wi+F4+LWgDPeJ30msSQt9/vkmHq9/Lvo2b461mP801v3W4xTcs6CbvF9UDdrSt+A8OUbpSh55qAUFXWznBBfdeJ8a4d7ugT5tvxUza3h9m4H7ptTqiG4z0g5dc0X29OcGlhpGFMpQo9ytTS+NViZpNdvU4kWx+LKxNY10kQ1yqGXrhe4/1nvP7E+nd5A92TtaRplbHSqoIdOqtRWti+fkB5/n1+/VvCmz12pG1kpQWsfi1ftlBobm0bpngs16CHkbIwdLnParxtTV3QYRlfJ0KFskH7pdN/YDn+yRuSd7sNH3aO0DYPggk6uWuXrfOc+fa3VTxFVvKaNxHsiHmsXyCLIE5yuOeN3/Jdf8HBL/5M6shjyhxHx9BjB1O0+4NLOnjLLSxwO7ukN4jMbOIcD879KLSi6Pk61Oqm2377n8079PXEEQ7cy7OKEC9nbpet118fxweTafpt69x/Bt8UqGzNQt7aelpc44dn5cqhwf71+qKp/Zf/+a0zcizOUWpl/iBcSXip0pplkatCchoH5c5aUM8I7/dWxAej8WicPL1URFZ9BDJelUwEwTkGqUhgSlydVes95YdXvhh9Gfz/aeFWvgVb4tuLbcv4+wLdutVZv/cUonwBD/6eDlE0aSiKK/uoH3+J1wDE/jMVqY2ysGufN84oIXB0sPzy8ollX/LegY74DgJXJR57sn+VGza0x3DnuIgABFM15LmajjjsNlYj+JEZGbuRYcAMOWxFkPN2w6Wd46xo4gVWQR/X4lyI/R6K/YK0110GzudPRW7Y+UOBGTfNNzHeYT0fiH0taunBpq9HEW8OKSaBGj21L0MqenEmNRWBAWDWAk4CpNoEZJ2tTaPFgbQYj8HxtFilErs3BTRwT8uO1NXQaWfIotchmPkAF5mMBAliEmZiOGVgCG9LgRzpscMAOOwowlT3JhusdazXGSC/hxR3UlmWVwWHpOIKheqONvjyhSiTHIkVUco5bnji8m//zL7PKaT1Vl5I6UE609f+gkr6MZKVyKc7zJRmCahLsdlyA5fdQkRSan9LgnnLEyGSkaKJCJog0wAgvepWBt80+1yKln1bMVtCljfNWDueKLsWwaEbBSfSPTEmVRsUcYYMnEjcjeyCZzBXK9E9BYBXLKjOSpUDR+nEV3TFSUdQaz+ot98QxgXwx0GQ+EEUAKB2qZPkQQ0GqFD8UPFMqyaCHM24BZmSGic9EYMagKizOw9Hz50DMrDLrqqLkTAhplMictiCAx5S3BIUQdeJeLnBy2CNtMfz6cV4u8XKoFZQesbf9YZiIERiHjaNodDW6LgcirX/mPnJIkBGDUpTBhSa0EIr38D5hCIszhCM8URGBqImoWjpvpt1ebu/v3Gl3qJfMnNM+9V+kiRFyROTPHQWOcs1dNW94/ukKMPZBvDi55i5CttdeJz84DLngLqjcdwEZ87bFFR8CIG35OAkDVN6VRDZ7aq67NteYqZ2lpT8oYB2CytoBd6VuAx4WgiAsnuj3WohG+LugzXiQRDeM3XYXlULv4dp5VFYC) format("woff2"),url(/assets/KaTeX_Size3-Regular-CTq5MqoE.woff) format("woff"),url(/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf) format("truetype")}@font-face{font-family:KaTeX_Size4;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2) format("woff2"),url(/assets/KaTeX_Size4-Regular-BF-4gkZK.woff) format("woff"),url(/assets/KaTeX_Size4-Regular-DWFBv043.ttf) format("truetype")}@font-face{font-family:KaTeX_Typewriter;font-style:normal;font-weight:400;src:url(/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2) format("woff2"),url(/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff) format("woff"),url(/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf) format("truetype")}.katex{font: 1.21em KaTeX_Main,Times New Roman,serif;line-height:1.2;text-indent:0;text-rendering:auto}.katex *{-ms-high-contrast-adjust:none!important;border-color:currentColor}.katex .katex-version:after{content:"0.16.11"}.katex .katex-mathml{clip:rect(1px,1px,1px,1px);border:0;height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.katex .katex-html>.newline{display:block}.katex .base{position:relative;white-space:nowrap;width:-webkit-min-content;width:-moz-min-content;width:min-content}.katex .base,.katex .strut{display:inline-block}.katex .textbf{font-weight:700}.katex .textit{font-style:italic}.katex .textrm{font-family:KaTeX_Main}.katex .textsf{font-family:KaTeX_SansSerif}.katex .texttt{font-family:KaTeX_Typewriter}.katex .mathnormal{font-family:KaTeX_Math;font-style:italic}.katex .mathit{font-family:KaTeX_Main;font-style:italic}.katex .mathrm{font-style:normal}.katex .mathbf{font-family:KaTeX_Main;font-weight:700}.katex .boldsymbol{font-family:KaTeX_Math;font-style:italic;font-weight:700}.katex .amsrm,.katex .mathbb,.katex .textbb{font-family:KaTeX_AMS}.katex .mathcal{font-family:KaTeX_Caligraphic}.katex .mathfrak,.katex .textfrak{font-family:KaTeX_Fraktur}.katex .mathboldfrak,.katex .textboldfrak{font-family:KaTeX_Fraktur;font-weight:700}.katex .mathtt{font-family:KaTeX_Typewriter}.katex .mathscr,.katex .textscr{font-family:KaTeX_Script}.katex .mathsf,.katex .textsf{font-family:KaTeX_SansSerif}.katex .mathboldsf,.katex .textboldsf{font-family:KaTeX_SansSerif;font-weight:700}.katex .mathitsf,.katex .textitsf{font-family:KaTeX_SansSerif;font-style:italic}.katex .mainrm{font-family:KaTeX_Main;font-style:normal}.katex .vlist-t{border-collapse:collapse;display:inline-table;table-layout:fixed}.katex .vlist-r{display:table-row}.katex .vlist{display:table-cell;position:relative;vertical-align:bottom}.katex .vlist>span{display:block;height:0;position:relative}.katex .vlist>span>span{display:inline-block}.katex .vlist>span>.pstrut{overflow:hidden;width:0}.katex .vlist-t2{margin-right:-2px}.katex .vlist-s{display:table-cell;font-size:1px;min-width:2px;vertical-align:bottom;width:2px}.katex .vbox{align-items:baseline;display:inline-flex;flex-direction:column}.katex .hbox{width:100%}.katex .hbox,.katex .thinbox{display:inline-flex;flex-direction:row}.katex .thinbox{max-width:0;width:0}.katex .msupsub{text-align:left}.katex .mfrac>span>span{text-align:center}.katex .mfrac .frac-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline,.katex .hline,.katex .mfrac .frac-line,.katex .overline .overline-line,.katex .rule,.katex .underline .underline-line{min-height:1px}.katex .mspace{display:inline-block}.katex .clap,.katex .llap,.katex .rlap{position:relative;width:0}.katex .clap>.inner,.katex .llap>.inner,.katex .rlap>.inner{position:absolute}.katex .clap>.fix,.katex .llap>.fix,.katex .rlap>.fix{display:inline-block}.katex .llap>.inner{right:0}.katex .clap>.inner,.katex .rlap>.inner{left:0}.katex .clap>.inner>span{margin-left:-50%;margin-right:50%}.katex .rule{border:0 solid;display:inline-block;position:relative}.katex .hline,.katex .overline .overline-line,.katex .underline .underline-line{border-bottom-style:solid;display:inline-block;width:100%}.katex .hdashline{border-bottom-style:dashed;display:inline-block;width:100%}.katex .sqrt>.root{margin-left:.2777777778em;margin-right:-.5555555556em}.katex .fontsize-ensurer.reset-size1.size1,.katex .sizing.reset-size1.size1{font-size:1em}.katex .fontsize-ensurer.reset-size1.size2,.katex .sizing.reset-size1.size2{font-size:1.2em}.katex .fontsize-ensurer.reset-size1.size3,.katex .sizing.reset-size1.size3{font-size:1.4em}.katex .fontsize-ensurer.reset-size1.size4,.katex .sizing.reset-size1.size4{font-size:1.6em}.katex .fontsize-ensurer.reset-size1.size5,.katex .sizing.reset-size1.size5{font-size:1.8em}.katex .fontsize-ensurer.reset-size1.size6,.katex .sizing.reset-size1.size6{font-size:2em}.katex .fontsize-ensurer.reset-size1.size7,.katex .sizing.reset-size1.size7{font-size:2.4em}.katex .fontsize-ensurer.reset-size1.size8,.katex .sizing.reset-size1.size8{font-size:2.88em}.katex .fontsize-ensurer.reset-size1.size9,.katex .sizing.reset-size1.size9{font-size:3.456em}.katex .fontsize-ensurer.reset-size1.size10,.katex .sizing.reset-size1.size10{font-size:4.148em}.katex .fontsize-ensurer.reset-size1.size11,.katex .sizing.reset-size1.size11{font-size:4.976em}.katex .fontsize-ensurer.reset-size2.size1,.katex .sizing.reset-size2.size1{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size2.size2,.katex .sizing.reset-size2.size2{font-size:1em}.katex .fontsize-ensurer.reset-size2.size3,.katex .sizing.reset-size2.size3{font-size:1.1666666667em}.katex .fontsize-ensurer.reset-size2.size4,.katex .sizing.reset-size2.size4{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size2.size5,.katex .sizing.reset-size2.size5{font-size:1.5em}.katex .fontsize-ensurer.reset-size2.size6,.katex .sizing.reset-size2.size6{font-size:1.6666666667em}.katex .fontsize-ensurer.reset-size2.size7,.katex .sizing.reset-size2.size7{font-size:2em}.katex .fontsize-ensurer.reset-size2.size8,.katex .sizing.reset-size2.size8{font-size:2.4em}.katex .fontsize-ensurer.reset-size2.size9,.katex .sizing.reset-size2.size9{font-size:2.88em}.katex .fontsize-ensurer.reset-size2.size10,.katex .sizing.reset-size2.size10{font-size:3.4566666667em}.katex .fontsize-ensurer.reset-size2.size11,.katex .sizing.reset-size2.size11{font-size:4.1466666667em}.katex .fontsize-ensurer.reset-size3.size1,.katex .sizing.reset-size3.size1{font-size:.7142857143em}.katex .fontsize-ensurer.reset-size3.size2,.katex .sizing.reset-size3.size2{font-size:.8571428571em}.katex .fontsize-ensurer.reset-size3.size3,.katex .sizing.reset-size3.size3{font-size:1em}.katex .fontsize-ensurer.reset-size3.size4,.katex .sizing.reset-size3.size4{font-size:1.1428571429em}.katex .fontsize-ensurer.reset-size3.size5,.katex .sizing.reset-size3.size5{font-size:1.2857142857em}.katex .fontsize-ensurer.reset-size3.size6,.katex .sizing.reset-size3.size6{font-size:1.4285714286em}.katex .fontsize-ensurer.reset-size3.size7,.katex .sizing.reset-size3.size7{font-size:1.7142857143em}.katex .fontsize-ensurer.reset-size3.size8,.katex .sizing.reset-size3.size8{font-size:2.0571428571em}.katex .fontsize-ensurer.reset-size3.size9,.katex .sizing.reset-size3.size9{font-size:2.4685714286em}.katex .fontsize-ensurer.reset-size3.size10,.katex .sizing.reset-size3.size10{font-size:2.9628571429em}.katex .fontsize-ensurer.reset-size3.size11,.katex .sizing.reset-size3.size11{font-size:3.5542857143em}.katex .fontsize-ensurer.reset-size4.size1,.katex .sizing.reset-size4.size1{font-size:.625em}.katex .fontsize-ensurer.reset-size4.size2,.katex .sizing.reset-size4.size2{font-size:.75em}.katex .fontsize-ensurer.reset-size4.size3,.katex .sizing.reset-size4.size3{font-size:.875em}.katex .fontsize-ensurer.reset-size4.size4,.katex .sizing.reset-size4.size4{font-size:1em}.katex .fontsize-ensurer.reset-size4.size5,.katex .sizing.reset-size4.size5{font-size:1.125em}.katex .fontsize-ensurer.reset-size4.size6,.katex .sizing.reset-size4.size6{font-size:1.25em}.katex .fontsize-ensurer.reset-size4.size7,.katex .sizing.reset-size4.size7{font-size:1.5em}.katex .fontsize-ensurer.reset-size4.size8,.katex .sizing.reset-size4.size8{font-size:1.8em}.katex .fontsize-ensurer.reset-size4.size9,.katex .sizing.reset-size4.size9{font-size:2.16em}.katex .fontsize-ensurer.reset-size4.size10,.katex .sizing.reset-size4.size10{font-size:2.5925em}.katex .fontsize-ensurer.reset-size4.size11,.katex .sizing.reset-size4.size11{font-size:3.11em}.katex .fontsize-ensurer.reset-size5.size1,.katex .sizing.reset-size5.size1{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size5.size2,.katex .sizing.reset-size5.size2{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size5.size3,.katex .sizing.reset-size5.size3{font-size:.7777777778em}.katex .fontsize-ensurer.reset-size5.size4,.katex .sizing.reset-size5.size4{font-size:.8888888889em}.katex .fontsize-ensurer.reset-size5.size5,.katex .sizing.reset-size5.size5{font-size:1em}.katex .fontsize-ensurer.reset-size5.size6,.katex .sizing.reset-size5.size6{font-size:1.1111111111em}.katex .fontsize-ensurer.reset-size5.size7,.katex .sizing.reset-size5.size7{font-size:1.3333333333em}.katex .fontsize-ensurer.reset-size5.size8,.katex .sizing.reset-size5.size8{font-size:1.6em}.katex .fontsize-ensurer.reset-size5.size9,.katex .sizing.reset-size5.size9{font-size:1.92em}.katex .fontsize-ensurer.reset-size5.size10,.katex .sizing.reset-size5.size10{font-size:2.3044444444em}.katex .fontsize-ensurer.reset-size5.size11,.katex .sizing.reset-size5.size11{font-size:2.7644444444em}.katex .fontsize-ensurer.reset-size6.size1,.katex .sizing.reset-size6.size1{font-size:.5em}.katex .fontsize-ensurer.reset-size6.size2,.katex .sizing.reset-size6.size2{font-size:.6em}.katex .fontsize-ensurer.reset-size6.size3,.katex .sizing.reset-size6.size3{font-size:.7em}.katex .fontsize-ensurer.reset-size6.size4,.katex .sizing.reset-size6.size4{font-size:.8em}.katex .fontsize-ensurer.reset-size6.size5,.katex .sizing.reset-size6.size5{font-size:.9em}.katex .fontsize-ensurer.reset-size6.size6,.katex .sizing.reset-size6.size6{font-size:1em}.katex .fontsize-ensurer.reset-size6.size7,.katex .sizing.reset-size6.size7{font-size:1.2em}.katex .fontsize-ensurer.reset-size6.size8,.katex .sizing.reset-size6.size8{font-size:1.44em}.katex .fontsize-ensurer.reset-size6.size9,.katex .sizing.reset-size6.size9{font-size:1.728em}.katex .fontsize-ensurer.reset-size6.size10,.katex .sizing.reset-size6.size10{font-size:2.074em}.katex .fontsize-ensurer.reset-size6.size11,.katex .sizing.reset-size6.size11{font-size:2.488em}.katex .fontsize-ensurer.reset-size7.size1,.katex .sizing.reset-size7.size1{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size7.size2,.katex .sizing.reset-size7.size2{font-size:.5em}.katex .fontsize-ensurer.reset-size7.size3,.katex .sizing.reset-size7.size3{font-size:.5833333333em}.katex .fontsize-ensurer.reset-size7.size4,.katex .sizing.reset-size7.size4{font-size:.6666666667em}.katex .fontsize-ensurer.reset-size7.size5,.katex .sizing.reset-size7.size5{font-size:.75em}.katex .fontsize-ensurer.reset-size7.size6,.katex .sizing.reset-size7.size6{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size7.size7,.katex .sizing.reset-size7.size7{font-size:1em}.katex .fontsize-ensurer.reset-size7.size8,.katex .sizing.reset-size7.size8{font-size:1.2em}.katex .fontsize-ensurer.reset-size7.size9,.katex .sizing.reset-size7.size9{font-size:1.44em}.katex .fontsize-ensurer.reset-size7.size10,.katex .sizing.reset-size7.size10{font-size:1.7283333333em}.katex .fontsize-ensurer.reset-size7.size11,.katex .sizing.reset-size7.size11{font-size:2.0733333333em}.katex .fontsize-ensurer.reset-size8.size1,.katex .sizing.reset-size8.size1{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size8.size2,.katex .sizing.reset-size8.size2{font-size:.4166666667em}.katex .fontsize-ensurer.reset-size8.size3,.katex .sizing.reset-size8.size3{font-size:.4861111111em}.katex .fontsize-ensurer.reset-size8.size4,.katex .sizing.reset-size8.size4{font-size:.5555555556em}.katex .fontsize-ensurer.reset-size8.size5,.katex .sizing.reset-size8.size5{font-size:.625em}.katex .fontsize-ensurer.reset-size8.size6,.katex .sizing.reset-size8.size6{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size8.size7,.katex .sizing.reset-size8.size7{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size8.size8,.katex .sizing.reset-size8.size8{font-size:1em}.katex .fontsize-ensurer.reset-size8.size9,.katex .sizing.reset-size8.size9{font-size:1.2em}.katex .fontsize-ensurer.reset-size8.size10,.katex .sizing.reset-size8.size10{font-size:1.4402777778em}.katex .fontsize-ensurer.reset-size8.size11,.katex .sizing.reset-size8.size11{font-size:1.7277777778em}.katex .fontsize-ensurer.reset-size9.size1,.katex .sizing.reset-size9.size1{font-size:.2893518519em}.katex .fontsize-ensurer.reset-size9.size2,.katex .sizing.reset-size9.size2{font-size:.3472222222em}.katex .fontsize-ensurer.reset-size9.size3,.katex .sizing.reset-size9.size3{font-size:.4050925926em}.katex .fontsize-ensurer.reset-size9.size4,.katex .sizing.reset-size9.size4{font-size:.462962963em}.katex .fontsize-ensurer.reset-size9.size5,.katex .sizing.reset-size9.size5{font-size:.5208333333em}.katex .fontsize-ensurer.reset-size9.size6,.katex .sizing.reset-size9.size6{font-size:.5787037037em}.katex .fontsize-ensurer.reset-size9.size7,.katex .sizing.reset-size9.size7{font-size:.6944444444em}.katex .fontsize-ensurer.reset-size9.size8,.katex .sizing.reset-size9.size8{font-size:.8333333333em}.katex .fontsize-ensurer.reset-size9.size9,.katex .sizing.reset-size9.size9{font-size:1em}.katex .fontsize-ensurer.reset-size9.size10,.katex .sizing.reset-size9.size10{font-size:1.2002314815em}.katex .fontsize-ensurer.reset-size9.size11,.katex .sizing.reset-size9.size11{font-size:1.4398148148em}.katex .fontsize-ensurer.reset-size10.size1,.katex .sizing.reset-size10.size1{font-size:.2410800386em}.katex .fontsize-ensurer.reset-size10.size2,.katex .sizing.reset-size10.size2{font-size:.2892960463em}.katex .fontsize-ensurer.reset-size10.size3,.katex .sizing.reset-size10.size3{font-size:.337512054em}.katex .fontsize-ensurer.reset-size10.size4,.katex .sizing.reset-size10.size4{font-size:.3857280617em}.katex .fontsize-ensurer.reset-size10.size5,.katex .sizing.reset-size10.size5{font-size:.4339440694em}.katex .fontsize-ensurer.reset-size10.size6,.katex .sizing.reset-size10.size6{font-size:.4821600771em}.katex .fontsize-ensurer.reset-size10.size7,.katex .sizing.reset-size10.size7{font-size:.5785920926em}.katex .fontsize-ensurer.reset-size10.size8,.katex .sizing.reset-size10.size8{font-size:.6943105111em}.katex .fontsize-ensurer.reset-size10.size9,.katex .sizing.reset-size10.size9{font-size:.8331726133em}.katex .fontsize-ensurer.reset-size10.size10,.katex .sizing.reset-size10.size10{font-size:1em}.katex .fontsize-ensurer.reset-size10.size11,.katex .sizing.reset-size10.size11{font-size:1.1996142719em}.katex .fontsize-ensurer.reset-size11.size1,.katex .sizing.reset-size11.size1{font-size:.2009646302em}.katex .fontsize-ensurer.reset-size11.size2,.katex .sizing.reset-size11.size2{font-size:.2411575563em}.katex .fontsize-ensurer.reset-size11.size3,.katex .sizing.reset-size11.size3{font-size:.2813504823em}.katex .fontsize-ensurer.reset-size11.size4,.katex .sizing.reset-size11.size4{font-size:.3215434084em}.katex .fontsize-ensurer.reset-size11.size5,.katex .sizing.reset-size11.size5{font-size:.3617363344em}.katex .fontsize-ensurer.reset-size11.size6,.katex .sizing.reset-size11.size6{font-size:.4019292605em}.katex .fontsize-ensurer.reset-size11.size7,.katex .sizing.reset-size11.size7{font-size:.4823151125em}.katex .fontsize-ensurer.reset-size11.size8,.katex .sizing.reset-size11.size8{font-size:.578778135em}.katex .fontsize-ensurer.reset-size11.size9,.katex .sizing.reset-size11.size9{font-size:.6945337621em}.katex .fontsize-ensurer.reset-size11.size10,.katex .sizing.reset-size11.size10{font-size:.8336012862em}.katex .fontsize-ensurer.reset-size11.size11,.katex .sizing.reset-size11.size11{font-size:1em}.katex .delimsizing.size1{font-family:KaTeX_Size1}.katex .delimsizing.size2{font-family:KaTeX_Size2}.katex .delimsizing.size3{font-family:KaTeX_Size3}.katex .delimsizing.size4{font-family:KaTeX_Size4}.katex .delimsizing.mult .delim-size1>span{font-family:KaTeX_Size1}.katex .delimsizing.mult .delim-size4>span{font-family:KaTeX_Size4}.katex .nulldelimiter{display:inline-block;width:.12em}.katex .delimcenter,.katex .op-symbol{position:relative}.katex .op-symbol.small-op{font-family:KaTeX_Size1}.katex .op-symbol.large-op{font-family:KaTeX_Size2}.katex .accent>.vlist-t,.katex .op-limits>.vlist-t{text-align:center}.katex .accent .accent-body{position:relative}.katex .accent .accent-body:not(.accent-full){width:0}.katex .overlay{display:block}.katex .mtable .vertical-separator{display:inline-block;min-width:1px}.katex .mtable .arraycolsep{display:inline-block}.katex .mtable .col-align-c>.vlist-t{text-align:center}.katex .mtable .col-align-l>.vlist-t{text-align:left}.katex .mtable .col-align-r>.vlist-t{text-align:right}.katex .svg-align{text-align:left}.katex svg{fill:currentColor;stroke:currentColor;fill-rule:nonzero;fill-opacity:1;stroke-width:1;stroke-linecap:butt;stroke-linejoin:miter;stroke-miterlimit:4;stroke-dasharray:none;stroke-dashoffset:0;stroke-opacity:1;display:block;height:inherit;position:absolute;width:100%}.katex svg path{stroke:none}.katex img{border-style:none;max-height:none;max-width:none;min-height:0;min-width:0}.katex .stretchy{display:block;overflow:hidden;position:relative;width:100%}.katex .stretchy:after,.katex .stretchy:before{content:""}.katex .hide-tail{overflow:hidden;position:relative;width:100%}.katex .halfarrow-left{left:0;overflow:hidden;position:absolute;width:50.2%}.katex .halfarrow-right{overflow:hidden;position:absolute;right:0;width:50.2%}.katex .brace-left{left:0;overflow:hidden;position:absolute;width:25.1%}.katex .brace-center{left:25%;overflow:hidden;position:absolute;width:50%}.katex .brace-right{overflow:hidden;position:absolute;right:0;width:25.1%}.katex .x-arrow-pad{padding:0 .5em}.katex .cd-arrow-pad{padding:0 .55556em 0 .27778em}.katex .mover,.katex .munder,.katex .x-arrow{text-align:center}.katex .boxpad{padding:0 .3em}.katex .fbox,.katex .fcolorbox{border:.04em solid;box-sizing:border-box}.katex .cancel-pad{padding:0 .2em}.katex .cancel-lap{margin-left:-.2em;margin-right:-.2em}.katex .sout{border-bottom-style:solid;border-bottom-width:.08em}.katex .angl{border-right:.049em solid;border-top:.049em solid;box-sizing:border-box;margin-right:.03889em}.katex .anglpad{padding:0 .03889em}.katex .eqn-num:before{content:"(" counter(katexEqnNo) ")";counter-increment:katexEqnNo}.katex .mml-eqn-num:before{content:"(" counter(mmlEqnNo) ")";counter-increment:mmlEqnNo}.katex .mtr-glue{width:50%}.katex .cd-vert-arrow{display:inline-block;position:relative}.katex .cd-label-left{display:inline-block;position:absolute;right:calc(50% + .3em);text-align:left}.katex .cd-label-right{display:inline-block;left:calc(50% + .3em);position:absolute;text-align:right}.katex-display{display:block;margin:1em 0;text-align:center}.katex-display>.katex{display:block;text-align:center;white-space:nowrap}.katex-display>.katex>.katex-html{display:block;position:relative}.katex-display>.katex>.katex-html>.tag{position:absolute;right:0}.katex-display.leqno>.katex>.katex-html>.tag{left:0;right:auto}.katex-display.fleqn>.katex{padding-left:2em;text-align:left}body{counter-reset:katexEqnNo mmlEqnNo}.wmde-markdown{background-color:transparent} diff --git a/assets/index-sCc3Lix5.js b/assets/index-sCc3Lix5.js deleted file mode 100644 index 8e1178e0..00000000 --- a/assets/index-sCc3Lix5.js +++ /dev/null @@ -1,631 +0,0 @@ -var Owe=Object.defineProperty;var Swe=(e,t,n)=>t in e?Owe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n;var Ewe=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports);var $s=(e,t,n)=>(Swe(e,typeof t!="symbol"?t+"":t,n),n),WD=(e,t,n)=>{if(!t.has(e))throw TypeError("Cannot "+n)};var Le=(e,t,n)=>(WD(e,t,"read from private field"),n?n.call(e):t.get(e)),En=(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)},sn=(e,t,n,r)=>(WD(e,t,"write to private field"),r?r.call(e,n):t.set(e,n),n);var xC=(e,t,n,r)=>({set _(i){sn(e,t,i,n)},get _(){return Le(e,t,r)}}),lr=(e,t,n)=>(WD(e,t,"access private method"),n);var vAt=Ewe((XAt,O_)=>{(function(){try{var e=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},t=new Error().stack;t&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[t]="e798b811-4aed-4542-89ef-f844aca9df19",e._sentryDebugIdIdentifier="sentry-dbid-e798b811-4aed-4542-89ef-f844aca9df19")}catch{}})();function Nie(e,t){for(var n=0;nr[i]})}}}return Object.freeze(Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}))}var wwe=typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};wwe.SENTRY_RELEASE={id:"1f10dff1d9c253f921ba136c812383fbb292078f"};(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))r(i);new MutationObserver(i=>{for(const a of i)if(a.type==="childList")for(const s of a.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&r(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const a={};return i.integrity&&(a.integrity=i.integrity),i.referrerPolicy&&(a.referrerPolicy=i.referrerPolicy),i.crossOrigin==="use-credentials"?a.credentials="include":i.crossOrigin==="anonymous"?a.credentials="omit":a.credentials="same-origin",a}function r(i){if(i.ep)return;i.ep=!0;const a=n(i);fetch(i.href,a)}})();var vf=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function _d(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function xwe(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 Pie={exports:{}},_5={},Mie={exports:{}},Mr={};/** - * @license React - * react.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var Gx=Symbol.for("react.element"),Twe=Symbol.for("react.portal"),kwe=Symbol.for("react.fragment"),Cwe=Symbol.for("react.strict_mode"),Awe=Symbol.for("react.profiler"),_we=Symbol.for("react.provider"),Rwe=Symbol.for("react.context"),Iwe=Symbol.for("react.forward_ref"),Dwe=Symbol.for("react.suspense"),Nwe=Symbol.for("react.memo"),Pwe=Symbol.for("react.lazy"),Zq=Symbol.iterator;function Mwe(e){return e===null||typeof e!="object"?null:(e=Zq&&e[Zq]||e["@@iterator"],typeof e=="function"?e:null)}var Lie={isMounted:function(){return!1},enqueueForceUpdate:function(){},enqueueReplaceState:function(){},enqueueSetState:function(){}},$ie=Object.assign,Fie={};function SO(e,t,n){this.props=e,this.context=t,this.refs=Fie,this.updater=n||Lie}SO.prototype.isReactComponent={};SO.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")};SO.prototype.forceUpdate=function(e){this.updater.enqueueForceUpdate(this,e,"forceUpdate")};function Bie(){}Bie.prototype=SO.prototype;function W9(e,t,n){this.props=e,this.context=t,this.refs=Fie,this.updater=n||Lie}var Q9=W9.prototype=new Bie;Q9.constructor=W9;$ie(Q9,SO.prototype);Q9.isPureReactComponent=!0;var Xq=Array.isArray,Uie=Object.prototype.hasOwnProperty,q9={current:null},zie={key:!0,ref:!0,__self:!0,__source:!0};function jie(e,t,n){var r,i={},a=null,s=null;if(t!=null)for(r in t.ref!==void 0&&(s=t.ref),t.key!==void 0&&(a=""+t.key),t)Uie.call(t,r)&&!zie.hasOwnProperty(r)&&(i[r]=t[r]);var o=arguments.length-2;if(o===1)i.children=n;else if(1>>1,be=X[Te];if(0>>1;Tei(Oe,z))iei(_e,Oe)?(X[Te]=_e,X[ie]=z,Te=ie):(X[Te]=Oe,X[ye]=z,Te=ye);else if(iei(_e,z))X[Te]=_e,X[ie]=z,Te=ie;else break e}}return te}function i(X,te){var z=X.sortIndex-te.sortIndex;return z!==0?z:X.id-te.id}if(typeof performance=="object"&&typeof performance.now=="function"){var a=performance;e.unstable_now=function(){return a.now()}}else{var s=Date,o=s.now();e.unstable_now=function(){return s.now()-o}}var l=[],u=[],c=1,f=null,h=3,g=!1,b=!1,S=!1,w=typeof setTimeout=="function"?setTimeout:null,E=typeof clearTimeout=="function"?clearTimeout:null,x=typeof setImmediate<"u"?setImmediate:null;typeof navigator<"u"&&navigator.scheduling!==void 0&&navigator.scheduling.isInputPending!==void 0&&navigator.scheduling.isInputPending.bind(navigator.scheduling);function k(X){for(var te=n(u);te!==null;){if(te.callback===null)r(u);else if(te.startTime<=X)r(u),te.sortIndex=te.expirationTime,t(l,te);else break;te=n(u)}}function C(X){if(S=!1,k(X),!b)if(n(l)!==null)b=!0,J(I);else{var te=n(u);te!==null&&K(C,te.startTime-X)}}function I(X,te){b=!1,S&&(S=!1,E(B),B=-1),g=!0;var z=h;try{for(k(te),f=n(l);f!==null&&(!(f.expirationTime>te)||X&&!W());){var Te=f.callback;if(typeof Te=="function"){f.callback=null,h=f.priorityLevel;var be=Te(f.expirationTime<=te);te=e.unstable_now(),typeof be=="function"?f.callback=be:f===n(l)&&r(l),k(te)}else r(l);f=n(l)}if(f!==null)var ee=!0;else{var ye=n(u);ye!==null&&K(C,ye.startTime-te),ee=!1}return ee}finally{f=null,h=z,g=!1}}var A=!1,D=null,B=-1,L=5,F=-1;function W(){return!(e.unstable_now()-FX||125Te?(X.sortIndex=z,t(u,X),n(l)===null&&X===n(u)&&(S?(E(B),B=-1):S=!0,K(C,z-Te))):(X.sortIndex=be,t(l,X),b||g||(b=!0,J(I))),X},e.unstable_shouldYield=W,e.unstable_wrapCallback=function(X){var te=h;return function(){var z=h;h=te;try{return X.apply(this,arguments)}finally{h=z}}}})(Qie);Wie.exports=Qie;var Qwe=Wie.exports;/** - * @license React - * react-dom.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var qie=N,ku=Qwe;function jt(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"),N7=Object.prototype.hasOwnProperty,qwe=/^[: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]*$/,Jq={},eG={};function Gwe(e){return N7.call(eG,e)?!0:N7.call(Jq,e)?!1:qwe.test(e)?eG[e]=!0:(Jq[e]=!0,!1)}function Ywe(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 Zwe(e,t,n,r){if(t===null||typeof t>"u"||Ywe(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 Ko(e,t,n,r,i,a,s){this.acceptsBooleans=t===2||t===3||t===4,this.attributeName=r,this.attributeNamespace=i,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=a,this.removeEmptyString=s}var Zs={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach(function(e){Zs[e]=new Ko(e,0,!1,e,null,!1,!1)});[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach(function(e){var t=e[0];Zs[t]=new Ko(t,1,!1,e[1],null,!1,!1)});["contentEditable","draggable","spellCheck","value"].forEach(function(e){Zs[e]=new Ko(e,2,!1,e.toLowerCase(),null,!1,!1)});["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach(function(e){Zs[e]=new Ko(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){Zs[e]=new Ko(e,3,!1,e.toLowerCase(),null,!1,!1)});["checked","multiple","muted","selected"].forEach(function(e){Zs[e]=new Ko(e,3,!0,e,null,!1,!1)});["capture","download"].forEach(function(e){Zs[e]=new Ko(e,4,!1,e,null,!1,!1)});["cols","rows","size","span"].forEach(function(e){Zs[e]=new Ko(e,6,!1,e,null,!1,!1)});["rowSpan","start"].forEach(function(e){Zs[e]=new Ko(e,5,!1,e.toLowerCase(),null,!1,!1)});var Y9=/[\-:]([a-z])/g;function Z9(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(Y9,Z9);Zs[t]=new Ko(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(Y9,Z9);Zs[t]=new Ko(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(Y9,Z9);Zs[t]=new Ko(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)});["tabIndex","crossOrigin"].forEach(function(e){Zs[e]=new Ko(e,1,!1,e.toLowerCase(),null,!1,!1)});Zs.xlinkHref=new Ko("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1);["src","href","action","formAction"].forEach(function(e){Zs[e]=new Ko(e,1,!1,e.toLowerCase(),null,!0,!0)});function X9(e,t,n,r){var i=Zs.hasOwnProperty(t)?Zs[t]:null;(i!==null?i.type!==0:r||!(2o||i[s]!==a[o]){var l=` -`+i[s].replace(" at new "," at ");return e.displayName&&l.includes("")&&(l=l.replace("",e.displayName)),l}while(1<=s&&0<=o);break}}}finally{GD=!1,Error.prepareStackTrace=n}return(e=e?e.displayName||e.name:"")?KE(e):""}function Xwe(e){switch(e.tag){case 5:return KE(e.type);case 16:return KE("Lazy");case 13:return KE("Suspense");case 19:return KE("SuspenseList");case 0:case 2:case 15:return e=YD(e.type,!1),e;case 11:return e=YD(e.type.render,!1),e;case 1:return e=YD(e.type,!0),e;default:return""}}function $7(e){if(e==null)return null;if(typeof e=="function")return e.displayName||e.name||null;if(typeof e=="string")return e;switch(e){case Ey:return"Fragment";case Sy:return"Portal";case P7:return"Profiler";case K9:return"StrictMode";case M7:return"Suspense";case L7:return"SuspenseList"}if(typeof e=="object")switch(e.$$typeof){case Zie:return(e.displayName||"Context")+".Consumer";case Yie:return(e._context.displayName||"Context")+".Provider";case J9:var t=e.render;return e=e.displayName,e||(e=t.displayName||t.name||"",e=e!==""?"ForwardRef("+e+")":"ForwardRef"),e;case e$:return t=e.displayName||null,t!==null?t:$7(e.type)||"Memo";case lm:t=e._payload,e=e._init;try{return $7(e(t))}catch{}}return null}function Kwe(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 $7(t);case 8:return t===K9?"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 e0(e){switch(typeof e){case"boolean":case"number":case"string":case"undefined":return e;case"object":return e;default:return""}}function Kie(e){var t=e.type;return(e=e.nodeName)&&e.toLowerCase()==="input"&&(t==="checkbox"||t==="radio")}function Jwe(e){var t=Kie(e)?"checked":"value",n=Object.getOwnPropertyDescriptor(e.constructor.prototype,t),r=""+e[t];if(!e.hasOwnProperty(t)&&typeof n<"u"&&typeof n.get=="function"&&typeof n.set=="function"){var i=n.get,a=n.set;return Object.defineProperty(e,t,{configurable:!0,get:function(){return i.call(this)},set:function(s){r=""+s,a.call(this,s)}}),Object.defineProperty(e,t,{enumerable:n.enumerable}),{getValue:function(){return r},setValue:function(s){r=""+s},stopTracking:function(){e._valueTracker=null,delete e[t]}}}}function CC(e){e._valueTracker||(e._valueTracker=Jwe(e))}function Jie(e){if(!e)return!1;var t=e._valueTracker;if(!t)return!0;var n=t.getValue(),r="";return e&&(r=Kie(e)?e.checked?"true":"false":e.value),e=r,e!==n?(t.setValue(e),!0):!1}function S_(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 F7(e,t){var n=t.checked;return ca({},t,{defaultChecked:void 0,defaultValue:void 0,value:void 0,checked:n??e._wrapperState.initialChecked})}function nG(e,t){var n=t.defaultValue==null?"":t.defaultValue,r=t.checked!=null?t.checked:t.defaultChecked;n=e0(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 eae(e,t){t=t.checked,t!=null&&X9(e,"checked",t,!1)}function B7(e,t){eae(e,t);var n=e0(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")?U7(e,t.type,n):t.hasOwnProperty("defaultValue")&&U7(e,t.type,e0(t.defaultValue)),t.checked==null&&t.defaultChecked!=null&&(e.defaultChecked=!!t.defaultChecked)}function rG(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 U7(e,t,n){(t!=="number"||S_(e.ownerDocument)!==e)&&(n==null?e.defaultValue=""+e._wrapperState.initialValue:e.defaultValue!==""+n&&(e.defaultValue=""+n))}var JE=Array.isArray;function qy(e,t,n,r){if(e=e.options,t){t={};for(var i=0;i"+t.valueOf().toString()+"",t=AC.firstChild;e.firstChild;)e.removeChild(e.firstChild);for(;t.firstChild;)e.appendChild(t.firstChild)}});function hw(e,t){if(t){var n=e.firstChild;if(n&&n===e.lastChild&&n.nodeType===3){n.nodeValue=t;return}}e.textContent=t}var v2={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},exe=["Webkit","ms","Moz","O"];Object.keys(v2).forEach(function(e){exe.forEach(function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),v2[t]=v2[e]})});function iae(e,t,n){return t==null||typeof t=="boolean"||t===""?"":n||typeof t!="number"||t===0||v2.hasOwnProperty(e)&&v2[e]?(""+t).trim():t+"px"}function aae(e,t){e=e.style;for(var n in t)if(t.hasOwnProperty(n)){var r=n.indexOf("--")===0,i=iae(n,t[n],r);n==="float"&&(n="cssFloat"),r?e.setProperty(n,i):e[n]=i}}var txe=ca({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 H7(e,t){if(t){if(txe[e]&&(t.children!=null||t.dangerouslySetInnerHTML!=null))throw Error(jt(137,e));if(t.dangerouslySetInnerHTML!=null){if(t.children!=null)throw Error(jt(60));if(typeof t.dangerouslySetInnerHTML!="object"||!("__html"in t.dangerouslySetInnerHTML))throw Error(jt(61))}if(t.style!=null&&typeof t.style!="object")throw Error(jt(62))}}function V7(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 W7=null;function t$(e){return e=e.target||e.srcElement||window,e.correspondingUseElement&&(e=e.correspondingUseElement),e.nodeType===3?e.parentNode:e}var Q7=null,Gy=null,Yy=null;function sG(e){if(e=Xx(e)){if(typeof Q7!="function")throw Error(jt(280));var t=e.stateNode;t&&(t=P5(t),Q7(e.stateNode,e.type,t))}}function sae(e){Gy?Yy?Yy.push(e):Yy=[e]:Gy=e}function oae(){if(Gy){var e=Gy,t=Yy;if(Yy=Gy=null,sG(e),t)for(e=0;e>>=0,e===0?32:31-(fxe(e)/hxe|0)|0}var _C=64,RC=4194304;function e2(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 T_(e,t){var n=e.pendingLanes;if(n===0)return 0;var r=0,i=e.suspendedLanes,a=e.pingedLanes,s=n&268435455;if(s!==0){var o=s&~i;o!==0?r=e2(o):(a&=s,a!==0&&(r=e2(a)))}else s=n&~i,s!==0?r=e2(s):a!==0&&(r=e2(a));if(r===0)return 0;if(t!==0&&t!==r&&!(t&i)&&(i=r&-r,a=t&-t,i>=a||i===16&&(a&4194240)!==0))return t;if(r&4&&(r|=n&16),t=e.entangledLanes,t!==0)for(e=e.entanglements,t&=r;0n;n++)t.push(e);return t}function Yx(e,t,n){e.pendingLanes|=t,t!==536870912&&(e.suspendedLanes=0,e.pingedLanes=0),e=e.eventTimes,t=31-yd(t),e[t]=n}function bxe(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=S2),mG=" ",gG=!1;function Cae(e,t){switch(e){case"keyup":return Wxe.indexOf(t.keyCode)!==-1;case"keydown":return t.keyCode!==229;case"keypress":case"mousedown":case"focusout":return!0;default:return!1}}function Aae(e){return e=e.detail,typeof e=="object"&&"data"in e?e.data:null}var wy=!1;function qxe(e,t){switch(e){case"compositionend":return Aae(t);case"keypress":return t.which!==32?null:(gG=!0,mG);case"textInput":return e=t.data,e===mG&&gG?null:e;default:return null}}function Gxe(e,t){if(wy)return e==="compositionend"||!u$&&Cae(e,t)?(e=Tae(),p4=s$=Cm=null,wy=!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=OG(n)}}function Dae(e,t){return e&&t?e===t?!0:e&&e.nodeType===3?!1:t&&t.nodeType===3?Dae(e,t.parentNode):"contains"in e?e.contains(t):e.compareDocumentPosition?!!(e.compareDocumentPosition(t)&16):!1:!1}function Nae(){for(var e=window,t=S_();t instanceof e.HTMLIFrameElement;){try{var n=typeof t.contentWindow.location.href=="string"}catch{n=!1}if(n)e=t.contentWindow;else break;t=S_(e.document)}return t}function c$(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 rTe(e){var t=Nae(),n=e.focusedElem,r=e.selectionRange;if(t!==n&&n&&n.ownerDocument&&Dae(n.ownerDocument.documentElement,n)){if(r!==null&&c$(n)){if(t=r.start,e=r.end,e===void 0&&(e=t),"selectionStart"in n)n.selectionStart=t,n.selectionEnd=Math.min(e,n.value.length);else if(e=(t=n.ownerDocument||document)&&t.defaultView||window,e.getSelection){e=e.getSelection();var i=n.textContent.length,a=Math.min(r.start,i);r=r.end===void 0?a:Math.min(r.end,i),!e.extend&&a>r&&(i=r,r=a,a=i),i=SG(n,a);var s=SG(n,r);i&&s&&(e.rangeCount!==1||e.anchorNode!==i.node||e.anchorOffset!==i.offset||e.focusNode!==s.node||e.focusOffset!==s.offset)&&(t=t.createRange(),t.setStart(i.node,i.offset),e.removeAllRanges(),a>r?(e.addRange(t),e.extend(s.node,s.offset)):(t.setEnd(s.node,s.offset),e.addRange(t)))}}for(t=[],e=n;e=e.parentNode;)e.nodeType===1&&t.push({element:e,left:e.scrollLeft,top:e.scrollTop});for(typeof n.focus=="function"&&n.focus(),n=0;n=document.documentMode,xy=null,K7=null,w2=null,J7=!1;function EG(e,t,n){var r=n.window===n?n.document:n.nodeType===9?n:n.ownerDocument;J7||xy==null||xy!==S_(r)||(r=xy,"selectionStart"in r&&c$(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}),w2&&vw(w2,r)||(w2=r,r=A_(K7,"onSelect"),0Cy||(e.current=a8[Cy],a8[Cy]=null,Cy--)}function Ri(e,t){Cy++,a8[Cy]=e.current,e.current=t}var t0={},So=v0(t0),El=v0(!1),i1=t0;function jv(e,t){var n=e.type.contextTypes;if(!n)return t0;var r=e.stateNode;if(r&&r.__reactInternalMemoizedUnmaskedChildContext===t)return r.__reactInternalMemoizedMaskedChildContext;var i={},a;for(a in n)i[a]=t[a];return r&&(e=e.stateNode,e.__reactInternalMemoizedUnmaskedChildContext=t,e.__reactInternalMemoizedMaskedChildContext=i),i}function wl(e){return e=e.childContextTypes,e!=null}function R_(){ji(El),ji(So)}function _G(e,t,n){if(So.current!==t0)throw Error(jt(168));Ri(So,t),Ri(El,n)}function jae(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(jt(108,Kwe(e)||"Unknown",i));return ca({},n,r)}function I_(e){return e=(e=e.stateNode)&&e.__reactInternalMemoizedMergedChildContext||t0,i1=So.current,Ri(So,e),Ri(El,El.current),!0}function RG(e,t,n){var r=e.stateNode;if(!r)throw Error(jt(169));n?(e=jae(e,t,i1),r.__reactInternalMemoizedMergedChildContext=e,ji(El),ji(So),Ri(So,e)):ji(El),Ri(El,n)}var Lh=null,M5=!1,uN=!1;function Hae(e){Lh===null?Lh=[e]:Lh.push(e)}function mTe(e){M5=!0,Hae(e)}function O0(){if(!uN&&Lh!==null){uN=!0;var e=0,t=pi;try{var n=Lh;for(pi=1;e>=s,i-=s,jh=1<<32-yd(t)+i|n<B?(L=D,D=null):L=D.sibling;var F=h(E,D,k[B],C);if(F===null){D===null&&(D=L);break}e&&D&&F.alternate===null&&t(E,D),x=a(F,x,B),A===null?I=F:A.sibling=F,A=F,D=L}if(B===k.length)return n(E,D),Xi&&Sg(E,B),I;if(D===null){for(;BB?(L=D,D=null):L=D.sibling;var W=h(E,D,F.value,C);if(W===null){D===null&&(D=L);break}e&&D&&W.alternate===null&&t(E,D),x=a(W,x,B),A===null?I=W:A.sibling=W,A=W,D=L}if(F.done)return n(E,D),Xi&&Sg(E,B),I;if(D===null){for(;!F.done;B++,F=k.next())F=f(E,F.value,C),F!==null&&(x=a(F,x,B),A===null?I=F:A.sibling=F,A=F);return Xi&&Sg(E,B),I}for(D=r(E,D);!F.done;B++,F=k.next())F=g(D,E,B,F.value,C),F!==null&&(e&&F.alternate!==null&&D.delete(F.key===null?B:F.key),x=a(F,x,B),A===null?I=F:A.sibling=F,A=F);return e&&D.forEach(function(V){return t(E,V)}),Xi&&Sg(E,B),I}function w(E,x,k,C){if(typeof k=="object"&&k!==null&&k.type===Ey&&k.key===null&&(k=k.props.children),typeof k=="object"&&k!==null){switch(k.$$typeof){case kC:e:{for(var I=k.key,A=x;A!==null;){if(A.key===I){if(I=k.type,I===Ey){if(A.tag===7){n(E,A.sibling),x=i(A,k.props.children),x.return=E,E=x;break e}}else if(A.elementType===I||typeof I=="object"&&I!==null&&I.$$typeof===lm&&$G(I)===A.type){n(E,A.sibling),x=i(A,k.props),x.ref=fE(E,A,k),x.return=E,E=x;break e}n(E,A);break}else t(E,A);A=A.sibling}k.type===Ey?(x=Jg(k.props.children,E.mode,C,k.key),x.return=E,E=x):(C=E4(k.type,k.key,k.props,null,E.mode,C),C.ref=fE(E,x,k),C.return=E,E=C)}return s(E);case Sy:e:{for(A=k.key;x!==null;){if(x.key===A)if(x.tag===4&&x.stateNode.containerInfo===k.containerInfo&&x.stateNode.implementation===k.implementation){n(E,x.sibling),x=i(x,k.children||[]),x.return=E,E=x;break e}else{n(E,x);break}else t(E,x);x=x.sibling}x=bN(k,E.mode,C),x.return=E,E=x}return s(E);case lm:return A=k._init,w(E,x,A(k._payload),C)}if(JE(k))return b(E,x,k,C);if(oE(k))return S(E,x,k,C);$C(E,k)}return typeof k=="string"&&k!==""||typeof k=="number"?(k=""+k,x!==null&&x.tag===6?(n(E,x.sibling),x=i(x,k),x.return=E,E=x):(n(E,x),x=gN(k,E.mode,C),x.return=E,E=x),s(E)):n(E,x)}return w}var Vv=Xae(!0),Kae=Xae(!1),Kx={},Mf=v0(Kx),ww=v0(Kx),xw=v0(Kx);function Dg(e){if(e===Kx)throw Error(jt(174));return e}function v$(e,t){switch(Ri(xw,t),Ri(ww,e),Ri(Mf,Kx),e=t.nodeType,e){case 9:case 11:t=(t=t.documentElement)?t.namespaceURI:j7(null,"");break;default:e=e===8?t.parentNode:t,t=e.namespaceURI||null,e=e.tagName,t=j7(t,e)}ji(Mf),Ri(Mf,t)}function Wv(){ji(Mf),ji(ww),ji(xw)}function Jae(e){Dg(xw.current);var t=Dg(Mf.current),n=j7(t,e.type);t!==n&&(Ri(ww,e),Ri(Mf,n))}function O$(e){ww.current===e&&(ji(Mf),ji(ww))}var sa=v0(0);function $_(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 cN=[];function S$(){for(var e=0;en?n:4,e(!0);var r=dN.transition;dN.transition={};try{e(!1),t()}finally{pi=n,dN.transition=r}}function mse(){return Ac().memoizedState}function vTe(e,t,n){var r=Vm(e);if(n={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null},gse(e))bse(t,n);else if(n=qae(e,t,n,r),n!==null){var i=Qo();vd(n,e,r,i),yse(n,t,r)}}function OTe(e,t,n){var r=Vm(e),i={lane:r,action:n,hasEagerState:!1,eagerState:null,next:null};if(gse(e))bse(t,i);else{var a=e.alternate;if(e.lanes===0&&(a===null||a.lanes===0)&&(a=t.lastRenderedReducer,a!==null))try{var s=t.lastRenderedState,o=a(s,n);if(i.hasEagerState=!0,i.eagerState=o,Ed(o,s)){var l=t.interleaved;l===null?(i.next=i,b$(t)):(i.next=l.next,l.next=i),t.interleaved=i;return}}catch{}finally{}n=qae(e,t,i,r),n!==null&&(i=Qo(),vd(n,e,r,i),yse(n,t,r))}}function gse(e){var t=e.alternate;return e===ua||t!==null&&t===ua}function bse(e,t){x2=F_=!0;var n=e.pending;n===null?t.next=t:(t.next=n.next,n.next=t),e.pending=t}function yse(e,t,n){if(n&4194240){var r=t.lanes;r&=e.pendingLanes,n|=r,t.lanes=n,r$(e,n)}}var B_={readContext:Cc,useCallback:uo,useContext:uo,useEffect:uo,useImperativeHandle:uo,useInsertionEffect:uo,useLayoutEffect:uo,useMemo:uo,useReducer:uo,useRef:uo,useState:uo,useDebugValue:uo,useDeferredValue:uo,useTransition:uo,useMutableSource:uo,useSyncExternalStore:uo,useId:uo,unstable_isNewReconciler:!1},STe={readContext:Cc,useCallback:function(e,t){return lf().memoizedState=[e,t===void 0?null:t],e},useContext:Cc,useEffect:BG,useImperativeHandle:function(e,t,n){return n=n!=null?n.concat([e]):null,y4(4194308,4,cse.bind(null,t,e),n)},useLayoutEffect:function(e,t){return y4(4194308,4,e,t)},useInsertionEffect:function(e,t){return y4(4,2,e,t)},useMemo:function(e,t){var n=lf();return t=t===void 0?null:t,e=e(),n.memoizedState=[e,t],e},useReducer:function(e,t,n){var r=lf();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=vTe.bind(null,ua,e),[r.memoizedState,e]},useRef:function(e){var t=lf();return e={current:e},t.memoizedState=e},useState:FG,useDebugValue:k$,useDeferredValue:function(e){return lf().memoizedState=e},useTransition:function(){var e=FG(!1),t=e[0];return e=yTe.bind(null,e[1]),lf().memoizedState=e,[t,e]},useMutableSource:function(){},useSyncExternalStore:function(e,t,n){var r=ua,i=lf();if(Xi){if(n===void 0)throw Error(jt(407));n=n()}else{if(n=t(),ks===null)throw Error(jt(349));s1&30||nse(r,t,n)}i.memoizedState=n;var a={value:n,getSnapshot:t};return i.queue=a,BG(ise.bind(null,r,a,e),[e]),r.flags|=2048,Cw(9,rse.bind(null,r,a,n,t),void 0,null),n},useId:function(){var e=lf(),t=ks.identifierPrefix;if(Xi){var n=Hh,r=jh;n=(r&~(1<<32-yd(r)-1)).toString(32)+n,t=":"+t+"R"+n,n=Tw++,0<\/script>",e=e.removeChild(e.firstChild)):typeof r.is=="string"?e=s.createElement(n,{is:r.is}):(e=s.createElement(n),n==="select"&&(s=e,r.multiple?s.multiple=!0:r.size&&(s.size=r.size))):e=s.createElementNS(e,n),e[Of]=t,e[Ew]=r,Cse(e,t,!1,!1),t.stateNode=e;e:{switch(s=V7(n,r),n){case"dialog":$i("cancel",e),$i("close",e),i=r;break;case"iframe":case"object":case"embed":$i("load",e),i=r;break;case"video":case"audio":for(i=0;iqv&&(t.flags|=128,r=!0,hE(a,!1),t.lanes=4194304)}else{if(!r)if(e=$_(s),e!==null){if(t.flags|=128,r=!0,n=e.updateQueue,n!==null&&(t.updateQueue=n,t.flags|=4),hE(a,!0),a.tail===null&&a.tailMode==="hidden"&&!s.alternate&&!Xi)return co(t),null}else 2*Pa()-a.renderingStartTime>qv&&n!==1073741824&&(t.flags|=128,r=!0,hE(a,!1),t.lanes=4194304);a.isBackwards?(s.sibling=t.child,t.child=s):(n=a.last,n!==null?n.sibling=s:t.child=s,a.last=s)}return a.tail!==null?(t=a.tail,a.rendering=t,a.tail=t.sibling,a.renderingStartTime=Pa(),t.sibling=null,n=sa.current,Ri(sa,r?n&1|2:n&1),t):(co(t),null);case 22:case 23:return D$(),r=t.memoizedState!==null,e!==null&&e.memoizedState!==null!==r&&(t.flags|=8192),r&&t.mode&1?au&1073741824&&(co(t),t.subtreeFlags&6&&(t.flags|=8192)):co(t),null;case 24:return null;case 25:return null}throw Error(jt(156,t.tag))}function _Te(e,t){switch(f$(t),t.tag){case 1:return wl(t.type)&&R_(),e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 3:return Wv(),ji(El),ji(So),S$(),e=t.flags,e&65536&&!(e&128)?(t.flags=e&-65537|128,t):null;case 5:return O$(t),null;case 13:if(ji(sa),e=t.memoizedState,e!==null&&e.dehydrated!==null){if(t.alternate===null)throw Error(jt(340));Hv()}return e=t.flags,e&65536?(t.flags=e&-65537|128,t):null;case 19:return ji(sa),null;case 4:return Wv(),null;case 10:return g$(t.type._context),null;case 22:case 23:return D$(),null;case 24:return null;default:return null}}var BC=!1,mo=!1,RTe=typeof WeakSet=="function"?WeakSet:Set,On=null;function Iy(e,t){var n=e.ref;if(n!==null)if(typeof n=="function")try{n(null)}catch(r){Sa(e,t,r)}else n.current=null}function b8(e,t,n){try{n()}catch(r){Sa(e,t,r)}}var GG=!1;function ITe(e,t){if(e8=k_,e=Nae(),c$(e)){if("selectionStart"in e)var n={start:e.selectionStart,end:e.selectionEnd};else e:{n=(n=e.ownerDocument)&&n.defaultView||window;var r=n.getSelection&&n.getSelection();if(r&&r.rangeCount!==0){n=r.anchorNode;var i=r.anchorOffset,a=r.focusNode;r=r.focusOffset;try{n.nodeType,a.nodeType}catch{n=null;break e}var s=0,o=-1,l=-1,u=0,c=0,f=e,h=null;t:for(;;){for(var g;f!==n||i!==0&&f.nodeType!==3||(o=s+i),f!==a||r!==0&&f.nodeType!==3||(l=s+r),f.nodeType===3&&(s+=f.nodeValue.length),(g=f.firstChild)!==null;)h=f,f=g;for(;;){if(f===e)break t;if(h===n&&++u===i&&(o=s),h===a&&++c===r&&(l=s),(g=f.nextSibling)!==null)break;f=h,h=f.parentNode}f=g}n=o===-1||l===-1?null:{start:o,end:l}}else n=null}n=n||{start:0,end:0}}else n=null;for(t8={focusedElem:e,selectionRange:n},k_=!1,On=t;On!==null;)if(t=On,e=t.child,(t.subtreeFlags&1028)!==0&&e!==null)e.return=t,On=e;else for(;On!==null;){t=On;try{var b=t.alternate;if(t.flags&1024)switch(t.tag){case 0:case 11:case 15:break;case 1:if(b!==null){var S=b.memoizedProps,w=b.memoizedState,E=t.stateNode,x=E.getSnapshotBeforeUpdate(t.elementType===t.type?S:td(t.type,S),w);E.__reactInternalSnapshotBeforeUpdate=x}break;case 3:var k=t.stateNode.containerInfo;k.nodeType===1?k.textContent="":k.nodeType===9&&k.documentElement&&k.removeChild(k.documentElement);break;case 5:case 6:case 4:case 17:break;default:throw Error(jt(163))}}catch(C){Sa(t,t.return,C)}if(e=t.sibling,e!==null){e.return=t.return,On=e;break}On=t.return}return b=GG,GG=!1,b}function T2(e,t,n){var r=t.updateQueue;if(r=r!==null?r.lastEffect:null,r!==null){var i=r=r.next;do{if((i.tag&e)===e){var a=i.destroy;i.destroy=void 0,a!==void 0&&b8(t,n,a)}i=i.next}while(i!==r)}}function F5(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 y8(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 Rse(e){var t=e.alternate;t!==null&&(e.alternate=null,Rse(t)),e.child=null,e.deletions=null,e.sibling=null,e.tag===5&&(t=e.stateNode,t!==null&&(delete t[Of],delete t[Ew],delete t[i8],delete t[hTe],delete t[pTe])),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 Ise(e){return e.tag===5||e.tag===3||e.tag===4}function YG(e){e:for(;;){for(;e.sibling===null;){if(e.return===null||Ise(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 v8(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=__));else if(r!==4&&(e=e.child,e!==null))for(v8(e,t,n),e=e.sibling;e!==null;)v8(e,t,n),e=e.sibling}function O8(e,t,n){var r=e.tag;if(r===5||r===6)e=e.stateNode,t?n.insertBefore(e,t):n.appendChild(e);else if(r!==4&&(e=e.child,e!==null))for(O8(e,t,n),e=e.sibling;e!==null;)O8(e,t,n),e=e.sibling}var Us=null,rd=!1;function Zp(e,t,n){for(n=n.child;n!==null;)Dse(e,t,n),n=n.sibling}function Dse(e,t,n){if(Pf&&typeof Pf.onCommitFiberUnmount=="function")try{Pf.onCommitFiberUnmount(R5,n)}catch{}switch(n.tag){case 5:mo||Iy(n,t);case 6:var r=Us,i=rd;Us=null,Zp(e,t,n),Us=r,rd=i,Us!==null&&(rd?(e=Us,n=n.stateNode,e.nodeType===8?e.parentNode.removeChild(n):e.removeChild(n)):Us.removeChild(n.stateNode));break;case 18:Us!==null&&(rd?(e=Us,n=n.stateNode,e.nodeType===8?lN(e.parentNode,n):e.nodeType===1&&lN(e,n),bw(e)):lN(Us,n.stateNode));break;case 4:r=Us,i=rd,Us=n.stateNode.containerInfo,rd=!0,Zp(e,t,n),Us=r,rd=i;break;case 0:case 11:case 14:case 15:if(!mo&&(r=n.updateQueue,r!==null&&(r=r.lastEffect,r!==null))){i=r=r.next;do{var a=i,s=a.destroy;a=a.tag,s!==void 0&&(a&2||a&4)&&b8(n,t,s),i=i.next}while(i!==r)}Zp(e,t,n);break;case 1:if(!mo&&(Iy(n,t),r=n.stateNode,typeof r.componentWillUnmount=="function"))try{r.props=n.memoizedProps,r.state=n.memoizedState,r.componentWillUnmount()}catch(o){Sa(n,t,o)}Zp(e,t,n);break;case 21:Zp(e,t,n);break;case 22:n.mode&1?(mo=(r=mo)||n.memoizedState!==null,Zp(e,t,n),mo=r):Zp(e,t,n);break;default:Zp(e,t,n)}}function ZG(e){var t=e.updateQueue;if(t!==null){e.updateQueue=null;var n=e.stateNode;n===null&&(n=e.stateNode=new RTe),t.forEach(function(r){var i=UTe.bind(null,e,r);n.has(r)||(n.add(r),r.then(i,i))})}}function ed(e,t){var n=t.deletions;if(n!==null)for(var r=0;ri&&(i=s),r&=~a}if(r=i,r=Pa()-r,r=(120>r?120:480>r?480:1080>r?1080:1920>r?1920:3e3>r?3e3:4320>r?4320:1960*NTe(r/1960))-r,10e?16:e,Am===null)var r=!1;else{if(e=Am,Am=null,j_=0,Zr&6)throw Error(jt(331));var i=Zr;for(Zr|=4,On=e.current;On!==null;){var a=On,s=a.child;if(On.flags&16){var o=a.deletions;if(o!==null){for(var l=0;lPa()-R$?Kg(e,0):_$|=n),xl(e,t)}function Use(e,t){t===0&&(e.mode&1?(t=RC,RC<<=1,!(RC&130023424)&&(RC=4194304)):t=1);var n=Qo();e=np(e,t),e!==null&&(Yx(e,t,n),xl(e,n))}function BTe(e){var t=e.memoizedState,n=0;t!==null&&(n=t.retryLane),Use(e,n)}function UTe(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(jt(314))}r!==null&&r.delete(t),Use(e,n)}var zse;zse=function(e,t,n){if(e!==null)if(e.memoizedProps!==t.pendingProps||El.current)Ol=!0;else{if(!(e.lanes&n)&&!(t.flags&128))return Ol=!1,CTe(e,t,n);Ol=!!(e.flags&131072)}else Ol=!1,Xi&&t.flags&1048576&&Vae(t,N_,t.index);switch(t.lanes=0,t.tag){case 2:var r=t.type;v4(e,t),e=t.pendingProps;var i=jv(t,So.current);Xy(t,n),i=w$(null,t,r,e,i,n);var a=x$();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,wl(r)?(a=!0,I_(t)):a=!1,t.memoizedState=i.state!==null&&i.state!==void 0?i.state:null,y$(t),i.updater=L5,t.stateNode=i,i._reactInternals=t,c8(t,r,e,n),t=h8(null,t,r,!0,a,n)):(t.tag=0,Xi&&a&&d$(t),Uo(null,t,i,n),t=t.child),t;case 16:r=t.elementType;e:{switch(v4(e,t),e=t.pendingProps,i=r._init,r=i(r._payload),t.type=r,i=t.tag=jTe(r),e=td(r,e),i){case 0:t=f8(null,t,r,e,n);break e;case 1:t=WG(null,t,r,e,n);break e;case 11:t=HG(null,t,r,e,n);break e;case 14:t=VG(null,t,r,td(r.type,e),n);break e}throw Error(jt(306,r,""))}return t;case 0:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:td(r,i),f8(e,t,r,i,n);case 1:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:td(r,i),WG(e,t,r,i,n);case 3:e:{if(xse(t),e===null)throw Error(jt(387));r=t.pendingProps,a=t.memoizedState,i=a.element,Gae(e,t),L_(t,r,null,n);var s=t.memoizedState;if(r=s.element,a.isDehydrated)if(a={element:r,isDehydrated:!1,cache:s.cache,pendingSuspenseBoundaries:s.pendingSuspenseBoundaries,transitions:s.transitions},t.updateQueue.baseState=a,t.memoizedState=a,t.flags&256){i=Qv(Error(jt(423)),t),t=QG(e,t,r,n,i);break e}else if(r!==i){i=Qv(Error(jt(424)),t),t=QG(e,t,r,n,i);break e}else for(yu=zm(t.stateNode.containerInfo.firstChild),Eu=t,Xi=!0,od=null,n=Kae(t,null,r,n),t.child=n;n;)n.flags=n.flags&-3|4096,n=n.sibling;else{if(Hv(),r===i){t=rp(e,t,n);break e}Uo(e,t,r,n)}t=t.child}return t;case 5:return Jae(t),e===null&&o8(t),r=t.type,i=t.pendingProps,a=e!==null?e.memoizedProps:null,s=i.children,n8(r,i)?s=null:a!==null&&n8(r,a)&&(t.flags|=32),wse(e,t),Uo(e,t,s,n),t.child;case 6:return e===null&&o8(t),null;case 13:return Tse(e,t,n);case 4:return v$(t,t.stateNode.containerInfo),r=t.pendingProps,e===null?t.child=Vv(t,null,r,n):Uo(e,t,r,n),t.child;case 11:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:td(r,i),HG(e,t,r,i,n);case 7:return Uo(e,t,t.pendingProps,n),t.child;case 8:return Uo(e,t,t.pendingProps.children,n),t.child;case 12:return Uo(e,t,t.pendingProps.children,n),t.child;case 10:e:{if(r=t.type._context,i=t.pendingProps,a=t.memoizedProps,s=i.value,Ri(P_,r._currentValue),r._currentValue=s,a!==null)if(Ed(a.value,s)){if(a.children===i.children&&!El.current){t=rp(e,t,n);break e}}else for(a=t.child,a!==null&&(a.return=t);a!==null;){var o=a.dependencies;if(o!==null){s=a.child;for(var l=o.firstContext;l!==null;){if(l.context===r){if(a.tag===1){l=qh(-1,n&-n),l.tag=2;var u=a.updateQueue;if(u!==null){u=u.shared;var c=u.pending;c===null?l.next=l:(l.next=c.next,c.next=l),u.pending=l}}a.lanes|=n,l=a.alternate,l!==null&&(l.lanes|=n),l8(a.return,n,t),o.lanes|=n;break}l=l.next}}else if(a.tag===10)s=a.type===t.type?null:a.child;else if(a.tag===18){if(s=a.return,s===null)throw Error(jt(341));s.lanes|=n,o=s.alternate,o!==null&&(o.lanes|=n),l8(s,n,t),s=a.sibling}else s=a.child;if(s!==null)s.return=a;else for(s=a;s!==null;){if(s===t){s=null;break}if(a=s.sibling,a!==null){a.return=s.return,s=a;break}s=s.return}a=s}Uo(e,t,i.children,n),t=t.child}return t;case 9:return i=t.type,r=t.pendingProps.children,Xy(t,n),i=Cc(i),r=r(i),t.flags|=1,Uo(e,t,r,n),t.child;case 14:return r=t.type,i=td(r,t.pendingProps),i=td(r.type,i),VG(e,t,r,i,n);case 15:return Sse(e,t,t.type,t.pendingProps,n);case 17:return r=t.type,i=t.pendingProps,i=t.elementType===r?i:td(r,i),v4(e,t),t.tag=1,wl(r)?(e=!0,I_(t)):e=!1,Xy(t,n),Zae(t,r,i),c8(t,r,i,n),h8(null,t,r,!0,e,n);case 19:return kse(e,t,n);case 22:return Ese(e,t,n)}throw Error(jt(156,t.tag))};function jse(e,t){return pae(e,t)}function zTe(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 pc(e,t,n,r){return new zTe(e,t,n,r)}function P$(e){return e=e.prototype,!(!e||!e.isReactComponent)}function jTe(e){if(typeof e=="function")return P$(e)?1:0;if(e!=null){if(e=e.$$typeof,e===J9)return 11;if(e===e$)return 14}return 2}function Wm(e,t){var n=e.alternate;return n===null?(n=pc(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 E4(e,t,n,r,i,a){var s=2;if(r=e,typeof e=="function")P$(e)&&(s=1);else if(typeof e=="string")s=5;else e:switch(e){case Ey:return Jg(n.children,i,a,t);case K9:s=8,i|=8;break;case P7:return e=pc(12,n,t,i|2),e.elementType=P7,e.lanes=a,e;case M7:return e=pc(13,n,t,i),e.elementType=M7,e.lanes=a,e;case L7:return e=pc(19,n,t,i),e.elementType=L7,e.lanes=a,e;case Xie:return U5(n,i,a,t);default:if(typeof e=="object"&&e!==null)switch(e.$$typeof){case Yie:s=10;break e;case Zie:s=9;break e;case J9:s=11;break e;case e$:s=14;break e;case lm:s=16,r=null;break e}throw Error(jt(130,e==null?e:typeof e,""))}return t=pc(s,n,t,i),t.elementType=e,t.type=r,t.lanes=a,t}function Jg(e,t,n,r){return e=pc(7,e,r,t),e.lanes=n,e}function U5(e,t,n,r){return e=pc(22,e,r,t),e.elementType=Xie,e.lanes=n,e.stateNode={isHidden:!1},e}function gN(e,t,n){return e=pc(6,e,null,t),e.lanes=n,e}function bN(e,t,n){return t=pc(4,e.children!==null?e.children:[],e.key,t),t.lanes=n,t.stateNode={containerInfo:e.containerInfo,pendingChildren:null,implementation:e.implementation},t}function HTe(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=XD(0),this.expirationTimes=XD(-1),this.entangledLanes=this.finishedLanes=this.mutableReadLanes=this.expiredLanes=this.pingedLanes=this.suspendedLanes=this.pendingLanes=0,this.entanglements=XD(0),this.identifierPrefix=r,this.onRecoverableError=i,this.mutableSourceEagerHydrationData=null}function M$(e,t,n,r,i,a,s,o,l){return e=new HTe(e,t,n,o,l),t===1?(t=1,a===!0&&(t|=8)):t=0,a=pc(3,null,null,t),e.current=a,a.stateNode=e,a.memoizedState={element:r,isDehydrated:n,cache:null,transitions:null,pendingSuspenseBoundaries:null},y$(a),e}function VTe(e,t,n){var r=3"u"||typeof __REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE!="function"))try{__REACT_DEVTOOLS_GLOBAL_HOOK__.checkDCE(Qse)}catch(e){console.error(e)}}Qse(),Vie.exports=Iu;var A1=Vie.exports;const n2=_d(A1),YTe=Nie({__proto__:null,default:n2},[A1]);var iY=A1;D7.createRoot=iY.createRoot,D7.hydrateRoot=iY.hydrateRoot;const ZTe={black:"#000",white:"#fff"},_w=ZTe,XTe={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"},Vb=XTe,KTe={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"},Wb=KTe,JTe={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"},Qb=JTe,eke={50:"#e1f5fe",100:"#b3e5fc",200:"#81d4fa",300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",600:"#039be5",700:"#0288d1",800:"#0277bd",900:"#01579b",A100:"#80d8ff",A200:"#40c4ff",A400:"#00b0ff",A700:"#0091ea"},qb=eke,tke={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"},Gb=tke,nke={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"},mE=nke,rke={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"},ike=rke;function n0(e){let t="https://mui.com/production-error/?code="+e;for(let n=1;n=0)&&(n[i]=e[i]);return n}function qse(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var ake=/^((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)-.*))$/,ske=qse(function(e){return ake.test(e)||e.charCodeAt(0)===111&&e.charCodeAt(1)===110&&e.charCodeAt(2)<91});function oke(e){if(e.sheet)return e.sheet;for(var t=0;t0?js(xO,--Al):0,Gv--,Va===10&&(Gv=1,Q5--),Va}function wu(){return Va=Al2||Iw(Va)>3?"":" "}function Oke(e,t){for(;--t&&wu()&&!(Va<48||Va>102||Va>57&&Va<65||Va>70&&Va<97););return Jx(e,w4()+(t<6&&Lf()==32&&wu()==32))}function k8(e){for(;wu();)switch(Va){case e:return Al;case 34:case 39:e!==34&&e!==39&&k8(Va);break;case 40:e===41&&k8(e);break;case 92:wu();break}return Al}function Ske(e,t){for(;wu()&&e+Va!==57;)if(e+Va===84&&Lf()===47)break;return"/*"+Jx(t,Al-1)+"*"+W5(e===47?e:wu())}function Eke(e){for(;!Iw(Lf());)wu();return Jx(e,Al)}function wke(e){return Jse(T4("",null,null,null,[""],e=Kse(e),0,[0],e))}function T4(e,t,n,r,i,a,s,o,l){for(var u=0,c=0,f=s,h=0,g=0,b=0,S=1,w=1,E=1,x=0,k="",C=i,I=a,A=r,D=k;w;)switch(b=x,x=wu()){case 40:if(b!=108&&js(D,f-1)==58){T8(D+=ai(x4(x),"&","&\f"),"&\f")!=-1&&(E=-1);break}case 34:case 39:case 91:D+=x4(x);break;case 9:case 10:case 13:case 32:D+=vke(b);break;case 92:D+=Oke(w4()-1,7);continue;case 47:switch(Lf()){case 42:case 47:jC(xke(Ske(wu(),w4()),t,n),l);break;default:D+="/"}break;case 123*S:o[u++]=gf(D)*E;case 125*S:case 59:case 0:switch(x){case 0:case 125:w=0;case 59+c:E==-1&&(D=ai(D,/\f/g,"")),g>0&&gf(D)-f&&jC(g>32?sY(D+";",r,n,f-1):sY(ai(D," ","")+";",r,n,f-2),l);break;case 59:D+=";";default:if(jC(A=aY(D,t,n,u,c,i,o,k,C=[],I=[],f),a),x===123)if(c===0)T4(D,t,A,A,C,a,f,o,I);else switch(h===99&&js(D,3)===110?100:h){case 100:case 108:case 109:case 115:T4(e,A,A,r&&jC(aY(e,A,A,0,0,i,o,k,i,C=[],f),I),i,I,f,o,r?C:I);break;default:T4(D,A,A,A,[""],I,0,o,I)}}u=c=g=0,S=E=1,k=D="",f=s;break;case 58:f=1+gf(D),g=b;default:if(S<1){if(x==123)--S;else if(x==125&&S++==0&&yke()==125)continue}switch(D+=W5(x),x*S){case 38:E=c>0?1:(D+="\f",-1);break;case 44:o[u++]=(gf(D)-1)*E,E=1;break;case 64:Lf()===45&&(D+=x4(wu())),h=Lf(),c=f=gf(k=D+=Eke(w4())),x++;break;case 45:b===45&&gf(D)==2&&(S=0)}}return a}function aY(e,t,n,r,i,a,s,o,l,u,c){for(var f=i-1,h=i===0?a:[""],g=z$(h),b=0,S=0,w=0;b0?h[E]+" "+x:ai(x,/&\f/g,h[E])))&&(l[w++]=k);return q5(e,t,n,i===0?B$:o,l,u,c)}function xke(e,t,n){return q5(e,t,n,Gse,W5(bke()),Rw(e,2,-2),0)}function sY(e,t,n,r){return q5(e,t,n,U$,Rw(e,0,r),Rw(e,r+1,-1),r)}function Jy(e,t){for(var n="",r=z$(e),i=0;i6)switch(js(e,t+1)){case 109:if(js(e,t+4)!==45)break;case 102:return ai(e,/(.+:)(.+)-([^]+)/,"$1"+ii+"$2-$3$1"+W_+(js(e,t+3)==108?"$3":"$2-$3"))+e;case 115:return~T8(e,"stretch")?eoe(ai(e,"stretch","fill-available"),t)+e:e}break;case 4949:if(js(e,t+1)!==115)break;case 6444:switch(js(e,gf(e)-3-(~T8(e,"!important")&&10))){case 107:return ai(e,":",":"+ii)+e;case 101:return ai(e,/(.+:)([^;!]+)(;|!.+)?/,"$1"+ii+(js(e,14)===45?"inline-":"")+"box$3$1"+ii+"$2$3$1"+ho+"$2box$3")+e}break;case 5936:switch(js(e,t+11)){case 114:return ii+e+ho+ai(e,/[svh]\w+-[tblr]{2}/,"tb")+e;case 108:return ii+e+ho+ai(e,/[svh]\w+-[tblr]{2}/,"tb-rl")+e;case 45:return ii+e+ho+ai(e,/[svh]\w+-[tblr]{2}/,"lr")+e}return ii+e+ho+e+e}return e}var Nke=function(t,n,r,i){if(t.length>-1&&!t.return)switch(t.type){case U$:t.return=eoe(t.value,t.length);break;case Yse:return Jy([gE(t,{value:ai(t.value,"@","@"+ii)})],i);case B$:if(t.length)return gke(t.props,function(a){switch(mke(a,/(::plac\w+|:read-\w+)/)){case":read-only":case":read-write":return Jy([gE(t,{props:[ai(a,/:(read-\w+)/,":"+W_+"$1")]})],i);case"::placeholder":return Jy([gE(t,{props:[ai(a,/:(plac\w+)/,":"+ii+"input-$1")]}),gE(t,{props:[ai(a,/:(plac\w+)/,":"+W_+"$1")]}),gE(t,{props:[ai(a,/:(plac\w+)/,ho+"input-$1")]})],i)}return""})}},Pke=[Nke],Mke=function(t){var n=t.key;if(n==="css"){var r=document.querySelectorAll("style[data-emotion]:not([data-s])");Array.prototype.forEach.call(r,function(S){var w=S.getAttribute("data-emotion");w.indexOf(" ")!==-1&&(document.head.appendChild(S),S.setAttribute("data-s",""))})}var i=t.stylisPlugins||Pke,a={},s,o=[];s=t.container||document.head,Array.prototype.forEach.call(document.querySelectorAll('style[data-emotion^="'+n+' "]'),function(S){for(var w=S.getAttribute("data-emotion").split(" "),E=1;E=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 qke={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},Gke=/[A-Z]|^ms/g,Yke=/_EMO_([^_]+?)_([^]*?)_EMO_/g,ooe=function(t){return t.charCodeAt(1)===45},lY=function(t){return t!=null&&typeof t!="boolean"},yN=qse(function(e){return ooe(e)?e:e.replace(Gke,"-$&").toLowerCase()}),uY=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(Yke,function(r,i,a){return bf={name:i,styles:a,next:bf},i})}return qke[t]!==1&&!ooe(t)&&typeof n=="number"&&n!==0?n+"px":n};function Dw(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 bf={name:n.name,styles:n.styles,next:bf},n.name;if(n.styles!==void 0){var r=n.next;if(r!==void 0)for(;r!==void 0;)bf={name:r.name,styles:r.styles,next:bf},r=r.next;var i=n.styles+";";return i}return Zke(e,t,n)}case"function":{if(e!==void 0){var a=bf,s=n(e);return bf=a,Dw(e,t,s)}break}}if(t==null)return n;var o=t[n];return o!==void 0?o:n}function Zke(e,t,n){var r="";if(Array.isArray(n))for(var i=0;i96?eCe:tCe},hY=function(t,n,r){var i;if(n){var a=n.shouldForwardProp;i=t.__emotion_forwardProp&&a?function(s){return t.__emotion_forwardProp(s)&&a(s)}:a}return typeof i!="function"&&r&&(i=t.__emotion_forwardProp),i},nCe=function(t){var n=t.cache,r=t.serialized,i=t.isStringTag;return aoe(n,r,i),Kke(function(){return soe(n,r,i)}),null},rCe=function e(t,n){var r=t.__emotion_real===t,i=r&&t.__emotion_base||t,a,s;n!==void 0&&(a=n.label,s=n.target);var o=hY(t,n,r),l=o||fY(i),u=!l("as");return function(){var c=arguments,f=r&&t.__emotion_styles!==void 0?t.__emotion_styles.slice(0):[];if(a!==void 0&&f.push("label:"+a+";"),c[0]==null||c[0].raw===void 0)f.push.apply(f,c);else{f.push(c[0][0]);for(var h=c.length,g=1;gt(cCe(i)?n:i):t;return _.jsx(Jke,{styles:r})}function poe(e,t){return C8(e,t)}const fCe=(e,t)=>{Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))};function zh(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 moe(e){if(!zh(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=moe(e[n])}),t}function yo(e,t,n={clone:!0}){const r=n.clone?M({},e):e;return zh(e)&&zh(t)&&Object.keys(t).forEach(i=>{i!=="__proto__"&&(zh(t[i])&&i in e&&zh(e[i])?r[i]=yo(e[i],t[i],n):n.clone?r[i]=zh(t[i])?moe(t[i]):t[i]:r[i]=t[i])}),r}var yi={};/** - * @license React - * react-is.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var q$=Symbol.for("react.element"),G$=Symbol.for("react.portal"),aR=Symbol.for("react.fragment"),sR=Symbol.for("react.strict_mode"),oR=Symbol.for("react.profiler"),lR=Symbol.for("react.provider"),uR=Symbol.for("react.context"),hCe=Symbol.for("react.server_context"),cR=Symbol.for("react.forward_ref"),dR=Symbol.for("react.suspense"),fR=Symbol.for("react.suspense_list"),hR=Symbol.for("react.memo"),pR=Symbol.for("react.lazy"),pCe=Symbol.for("react.offscreen"),goe;goe=Symbol.for("react.module.reference");function Pc(e){if(typeof e=="object"&&e!==null){var t=e.$$typeof;switch(t){case q$:switch(e=e.type,e){case aR:case oR:case sR:case dR:case fR:return e;default:switch(e=e&&e.$$typeof,e){case hCe:case uR:case cR:case pR:case hR:case lR:return e;default:return t}}case G$:return t}}}yi.ContextConsumer=uR;yi.ContextProvider=lR;yi.Element=q$;yi.ForwardRef=cR;yi.Fragment=aR;yi.Lazy=pR;yi.Memo=hR;yi.Portal=G$;yi.Profiler=oR;yi.StrictMode=sR;yi.Suspense=dR;yi.SuspenseList=fR;yi.isAsyncMode=function(){return!1};yi.isConcurrentMode=function(){return!1};yi.isContextConsumer=function(e){return Pc(e)===uR};yi.isContextProvider=function(e){return Pc(e)===lR};yi.isElement=function(e){return typeof e=="object"&&e!==null&&e.$$typeof===q$};yi.isForwardRef=function(e){return Pc(e)===cR};yi.isFragment=function(e){return Pc(e)===aR};yi.isLazy=function(e){return Pc(e)===pR};yi.isMemo=function(e){return Pc(e)===hR};yi.isPortal=function(e){return Pc(e)===G$};yi.isProfiler=function(e){return Pc(e)===oR};yi.isStrictMode=function(e){return Pc(e)===sR};yi.isSuspense=function(e){return Pc(e)===dR};yi.isSuspenseList=function(e){return Pc(e)===fR};yi.isValidElementType=function(e){return typeof e=="string"||typeof e=="function"||e===aR||e===oR||e===sR||e===dR||e===fR||e===pCe||typeof e=="object"&&e!==null&&(e.$$typeof===pR||e.$$typeof===hR||e.$$typeof===lR||e.$$typeof===uR||e.$$typeof===cR||e.$$typeof===goe||e.getModuleId!==void 0)};yi.typeOf=Pc;const mCe=Y.oneOfType([Y.func,Y.object]),TO=mCe;function ht(e){if(typeof e!="string")throw new Error(n0(7));return e.charAt(0).toUpperCase()+e.slice(1)}function Q_(...e){return e.reduce((t,n)=>n==null?t:function(...i){t.apply(this,i),n.apply(this,i)},()=>{})}function kO(e,t=166){let n;function r(...i){const a=()=>{e.apply(this,i)};clearTimeout(n),n=setTimeout(a,t)}return r.clear=()=>{clearTimeout(n)},r}function gCe(e,t){return()=>null}function A2(e,t){var n,r;return N.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 Ei(e){return e&&e.ownerDocument||document}function _c(e){return Ei(e).defaultView||window}function bCe(e,t){return()=>null}function Nw(e,t){typeof e=="function"?e(t):e&&(e.current=t)}const da=typeof window<"u"?N.useLayoutEffect:N.useEffect;let pY=0;function yCe(e){const[t,n]=N.useState(e),r=e||t;return N.useEffect(()=>{t==null&&(pY+=1,n(`mui-${pY}`))},[t]),r}const mY=Uv.useId;function Rd(e){if(mY!==void 0){const t=mY();return e??t}return yCe(e)}function vCe(e,t,n,r,i){return null}function Cs({controlled:e,default:t,name:n,state:r="value"}){const{current:i}=N.useRef(e!==void 0),[a,s]=N.useState(t),o=i?e:a,l=N.useCallback(u=>{i||s(u)},[]);return[o,l]}function on(e){const t=N.useRef(e);return da(()=>{t.current=e}),N.useRef((...n)=>(0,t.current)(...n)).current}function Jn(...e){return N.useMemo(()=>e.every(t=>t==null)?null:t=>{e.forEach(n=>{Nw(n,t)})},e)}const gY={};function OCe(e,t){const n=N.useRef(gY);return n.current===gY&&(n.current=e(t)),n}const SCe=[];function ECe(e){N.useEffect(e,SCe)}class tT{constructor(){this.currentId=0,this.clear=()=>{this.currentId!==0&&(clearTimeout(this.currentId),this.currentId=0)},this.disposeEffect=()=>this.clear}static create(){return new tT}start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=0,n()},t)}}function Ng(){const e=OCe(tT.create).current;return ECe(e.disposeEffect),e}let mR=!0,A8=!1;const wCe=new tT,xCe={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 TCe(e){const{type:t,tagName:n}=e;return!!(n==="INPUT"&&xCe[t]&&!e.readOnly||n==="TEXTAREA"&&!e.readOnly||e.isContentEditable)}function kCe(e){e.metaKey||e.altKey||e.ctrlKey||(mR=!0)}function vN(){mR=!1}function CCe(){this.visibilityState==="hidden"&&A8&&(mR=!0)}function ACe(e){e.addEventListener("keydown",kCe,!0),e.addEventListener("mousedown",vN,!0),e.addEventListener("pointerdown",vN,!0),e.addEventListener("touchstart",vN,!0),e.addEventListener("visibilitychange",CCe,!0)}function _Ce(e){const{target:t}=e;try{return t.matches(":focus-visible")}catch{}return mR||TCe(t)}function gR(){const e=N.useCallback(i=>{i!=null&&ACe(i.ownerDocument)},[]),t=N.useRef(!1);function n(){return t.current?(A8=!0,wCe.start(100,()=>{A8=!1}),t.current=!1,!0):!1}function r(i){return _Ce(i)?(t.current=!0,!0):!1}return{isFocusVisibleRef:t,onFocus:r,onBlur:n,ref:e}}function boe(e){const t=e.documentElement.clientWidth;return Math.abs(window.innerWidth-t)}let Yb;function yoe(){if(Yb)return Yb;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),Yb="reverse",e.scrollLeft>0?Yb="default":(e.scrollLeft=1,e.scrollLeft===0&&(Yb="negative")),document.body.removeChild(e),Yb}function RCe(e,t){const n=e.scrollLeft;if(t!=="rtl")return n;switch(yoe()){case"negative":return e.scrollWidth-e.clientWidth+n;case"reverse":return e.scrollWidth-e.clientWidth-n;default:return n}}const ICe=e=>{const t=N.useRef({});return N.useEffect(()=>{t.current=e}),t.current};function DCe(e){return N.Children.toArray(e).filter(t=>N.isValidElement(t))}const NCe={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:-1,overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},PCe=NCe;function bR(e,t){const n=M({},t);return Object.keys(e).forEach(r=>{if(r.toString().match(/^(components|slots)$/))n[r]=M({},e[r],n[r]);else if(r.toString().match(/^(componentsProps|slotProps)$/)){const i=e[r]||{},a=t[r];n[r]={},!a||!Object.keys(a)?n[r]=i:!i||!Object.keys(i)?n[r]=a:(n[r]=M({},a),Object.keys(i).forEach(s=>{n[r][s]=bR(i[s],a[s])}))}else n[r]===void 0&&(n[r]=e[r])}),n}function Mt(e,t,n=void 0){const r={};return Object.keys(e).forEach(i=>{r[i]=e[i].reduce((a,s)=>{if(s){const o=t(s);o!==""&&a.push(o),n&&n[s]&&a.push(n[s])}return a},[]).join(" ")}),r}const bY=e=>e,MCe=()=>{let e=bY;return{configure(t){e=t},generate(t){return e(t)},reset(){e=bY}}},Y$=MCe(),voe={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 $t(e,t,n="Mui"){const r=voe[t];return r?`${n}-${r}`:`${Y$.generate(e)}-${t}`}function Ft(e,t,n="Mui"){const r={};return t.forEach(i=>{r[i]=$t(e,i,n)}),r}function oy(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}const LCe=["values","unit","step"],$Ce=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)=>M({},n,{[r.key]:r.val}),{})};function FCe(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5}=e,i=at(e,LCe),a=$Ce(t),s=Object.keys(a);function o(h){return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n})`}function l(h){return`@media (max-width:${(typeof t[h]=="number"?t[h]:h)-r/100}${n})`}function u(h,g){const b=s.indexOf(g);return`@media (min-width:${typeof t[h]=="number"?t[h]:h}${n}) and (max-width:${(b!==-1&&typeof t[s[b]]=="number"?t[s[b]]:g)-r/100}${n})`}function c(h){return s.indexOf(h)+1`@media (min-width:${Z$[e]}px)`};function _l(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const a=r.breakpoints||yY;return t.reduce((s,o,l)=>(s[a.up(a.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const a=r.breakpoints||yY;return Object.keys(t).reduce((s,o)=>{if(Object.keys(a.values||Z$).indexOf(o)!==-1){const l=a.up(o);s[l]=n(t[o],o)}else{const l=o;s[l]=t[l]}return s},{})}return n(t)}function Ooe(e={}){var t;return((t=e.keys)==null?void 0:t.reduce((r,i)=>{const a=e.up(i);return r[a]={},r},{}))||{}}function Soe(e,t){return e.reduce((n,r)=>{const i=n[r];return(!i||Object.keys(i).length===0)&&delete n[r],n},t)}function zCe(e,...t){const n=Ooe(e),r=[n,...t].reduce((i,a)=>yo(i,a),{});return Soe(Object.keys(n),r)}function jCe(e,t){if(typeof e!="object")return{};const n={},r=Object.keys(t);return Array.isArray(e)?r.forEach((i,a)=>{a{e[i]!=null&&(n[i]=!0)}),n}function e1({values:e,breakpoints:t,base:n}){const r=n||jCe(e,t),i=Object.keys(r);if(i.length===0)return e;let a;return i.reduce((s,o,l)=>(Array.isArray(e)?(s[o]=e[l]!=null?e[l]:e[a],a=l):typeof e=="object"?(s[o]=e[o]!=null?e[o]:e[a],a=o):s[o]=e,s),{})}function yR(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((i,a)=>i&&i[a]?i[a]:null,e);if(r!=null)return r}return t.split(".").reduce((r,i)=>r&&r[i]!=null?r[i]:null,e)}function q_(e,t,n,r=n){let i;return typeof e=="function"?i=e(n):Array.isArray(e)?i=e[n]||r:i=yR(e,n)||r,t&&(i=t(i,r,e)),i}function Fa(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:i}=e,a=s=>{if(s[t]==null)return null;const o=s[t],l=s.theme,u=yR(l,r)||{};return _l(s,o,f=>{let h=q_(u,i,f);return f===h&&typeof f=="string"&&(h=q_(u,i,`${t}${f==="default"?"":ht(f)}`,f)),n===!1?h:{[n]:h}})};return a.propTypes={},a.filterProps=[t],a}function HCe(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const VCe={m:"margin",p:"padding"},WCe={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},vY={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},QCe=HCe(e=>{if(e.length>2)if(vY[e])e=vY[e];else return[e];const[t,n]=e.split(""),r=VCe[t],i=WCe[n]||"";return Array.isArray(i)?i.map(a=>r+a):[r+i]}),X$=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],K$=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...X$,...K$];function nT(e,t,n,r){var i;const a=(i=yR(e,t,!1))!=null?i:n;return typeof a=="number"?s=>typeof s=="string"?s:a*s:Array.isArray(a)?s=>typeof s=="string"?s:a[s]:typeof a=="function"?a:()=>{}}function J$(e){return nT(e,"spacing",8)}function c1(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 qCe(e,t){return n=>e.reduce((r,i)=>(r[i]=c1(t,n),r),{})}function GCe(e,t,n,r){if(t.indexOf(n)===-1)return null;const i=QCe(n),a=qCe(i,r),s=e[n];return _l(e,s,a)}function Eoe(e,t){const n=J$(e.theme);return Object.keys(e).map(r=>GCe(e,t,r,n)).reduce(_2,{})}function ya(e){return Eoe(e,X$)}ya.propTypes={};ya.filterProps=X$;function va(e){return Eoe(e,K$)}va.propTypes={};va.filterProps=K$;function YCe(e=8){if(e.mui)return e;const t=J$({spacing:e}),n=(...r)=>(r.length===0?[1]:r).map(a=>{const s=t(a);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function vR(...e){const t=e.reduce((r,i)=>(i.filterProps.forEach(a=>{r[a]=i}),r),{}),n=r=>Object.keys(r).reduce((i,a)=>t[a]?_2(i,t[a](r)):i,{});return n.propTypes={},n.filterProps=e.reduce((r,i)=>r.concat(i.filterProps),[]),n}function uc(e){return typeof e!="number"?e:`${e}px solid`}function Mc(e,t){return Fa({prop:e,themeKey:"borders",transform:t})}const ZCe=Mc("border",uc),XCe=Mc("borderTop",uc),KCe=Mc("borderRight",uc),JCe=Mc("borderBottom",uc),eAe=Mc("borderLeft",uc),tAe=Mc("borderColor"),nAe=Mc("borderTopColor"),rAe=Mc("borderRightColor"),iAe=Mc("borderBottomColor"),aAe=Mc("borderLeftColor"),sAe=Mc("outline",uc),oAe=Mc("outlineColor"),OR=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=nT(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:c1(t,r)});return _l(e,e.borderRadius,n)}return null};OR.propTypes={};OR.filterProps=["borderRadius"];vR(ZCe,XCe,KCe,JCe,eAe,tAe,nAe,rAe,iAe,aAe,OR,sAe,oAe);const SR=e=>{if(e.gap!==void 0&&e.gap!==null){const t=nT(e.theme,"spacing",8),n=r=>({gap:c1(t,r)});return _l(e,e.gap,n)}return null};SR.propTypes={};SR.filterProps=["gap"];const ER=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=nT(e.theme,"spacing",8),n=r=>({columnGap:c1(t,r)});return _l(e,e.columnGap,n)}return null};ER.propTypes={};ER.filterProps=["columnGap"];const wR=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=nT(e.theme,"spacing",8),n=r=>({rowGap:c1(t,r)});return _l(e,e.rowGap,n)}return null};wR.propTypes={};wR.filterProps=["rowGap"];const lAe=Fa({prop:"gridColumn"}),uAe=Fa({prop:"gridRow"}),cAe=Fa({prop:"gridAutoFlow"}),dAe=Fa({prop:"gridAutoColumns"}),fAe=Fa({prop:"gridAutoRows"}),hAe=Fa({prop:"gridTemplateColumns"}),pAe=Fa({prop:"gridTemplateRows"}),mAe=Fa({prop:"gridTemplateAreas"}),gAe=Fa({prop:"gridArea"});vR(SR,ER,wR,lAe,uAe,cAe,dAe,fAe,hAe,pAe,mAe,gAe);function ev(e,t){return t==="grey"?t:e}const bAe=Fa({prop:"color",themeKey:"palette",transform:ev}),yAe=Fa({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:ev}),vAe=Fa({prop:"backgroundColor",themeKey:"palette",transform:ev});vR(bAe,yAe,vAe);function mu(e){return e<=1&&e!==0?`${e*100}%`:e}const OAe=Fa({prop:"width",transform:mu}),eF=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{var r,i;const a=((r=e.theme)==null||(r=r.breakpoints)==null||(r=r.values)==null?void 0:r[n])||Z$[n];return a?((i=e.theme)==null||(i=i.breakpoints)==null?void 0:i.unit)!=="px"?{maxWidth:`${a}${e.theme.breakpoints.unit}`}:{maxWidth:a}:{maxWidth:mu(n)}};return _l(e,e.maxWidth,t)}return null};eF.filterProps=["maxWidth"];const SAe=Fa({prop:"minWidth",transform:mu}),EAe=Fa({prop:"height",transform:mu}),wAe=Fa({prop:"maxHeight",transform:mu}),xAe=Fa({prop:"minHeight",transform:mu});Fa({prop:"size",cssProperty:"width",transform:mu});Fa({prop:"size",cssProperty:"height",transform:mu});const TAe=Fa({prop:"boxSizing"});vR(OAe,eF,SAe,EAe,wAe,xAe,TAe);const kAe={border:{themeKey:"borders",transform:uc},borderTop:{themeKey:"borders",transform:uc},borderRight:{themeKey:"borders",transform:uc},borderBottom:{themeKey:"borders",transform:uc},borderLeft:{themeKey:"borders",transform:uc},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:uc},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:OR},color:{themeKey:"palette",transform:ev},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:ev},backgroundColor:{themeKey:"palette",transform:ev},p:{style:va},pt:{style:va},pr:{style:va},pb:{style:va},pl:{style:va},px:{style:va},py:{style:va},padding:{style:va},paddingTop:{style:va},paddingRight:{style:va},paddingBottom:{style:va},paddingLeft:{style:va},paddingX:{style:va},paddingY:{style:va},paddingInline:{style:va},paddingInlineStart:{style:va},paddingInlineEnd:{style:va},paddingBlock:{style:va},paddingBlockStart:{style:va},paddingBlockEnd:{style:va},m:{style:ya},mt:{style:ya},mr:{style:ya},mb:{style:ya},ml:{style:ya},mx:{style:ya},my:{style:ya},margin:{style:ya},marginTop:{style:ya},marginRight:{style:ya},marginBottom:{style:ya},marginLeft:{style:ya},marginX:{style:ya},marginY:{style:ya},marginInline:{style:ya},marginInlineStart:{style:ya},marginInlineEnd:{style:ya},marginBlock:{style:ya},marginBlockStart:{style:ya},marginBlockEnd:{style:ya},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:SR},rowGap:{style:wR},columnGap:{style:ER},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:mu},maxWidth:{style:eF},minWidth:{transform:mu},height:{transform:mu},maxHeight:{transform:mu},minHeight:{transform:mu},boxSizing:{},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}},xR=kAe;function CAe(...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 AAe(e,t){return typeof e=="function"?e(t):e}function _Ae(){function e(n,r,i,a){const s={[n]:r,theme:i},o=a[n];if(!o)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:f}=o;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const h=yR(i,u)||{};return f?f(s):_l(s,r,b=>{let S=q_(h,c,b);return b===S&&typeof b=="string"&&(S=q_(h,c,`${n}${b==="default"?"":ht(b)}`,b)),l===!1?S:{[l]:S}})}function t(n){var r;const{sx:i,theme:a={}}=n||{};if(!i)return null;const s=(r=a.unstable_sxConfig)!=null?r:xR;function o(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=Ooe(a.breakpoints),f=Object.keys(c);let h=c;return Object.keys(u).forEach(g=>{const b=AAe(u[g],a);if(b!=null)if(typeof b=="object")if(s[g])h=_2(h,e(g,b,a,s));else{const S=_l({theme:a},b,w=>({[g]:w}));CAe(S,b)?h[g]=t({sx:b,theme:a}):h=_2(h,S)}else h=_2(h,e(g,b,a,s))}),Soe(f,h)}return Array.isArray(i)?i.map(o):o(i)}return t}const rT=_Ae();rT.filterProps=["sx"];function RAe(e,t){const n=this;return n.vars&&typeof n.getColorSchemeSelector=="function"?{[n.getColorSchemeSelector(e).replace(/(\[[^\]]+\])/,"*:where($1)")]:t}:n.palette.mode===e?t:{}}const IAe=["breakpoints","palette","spacing","shape"];function iT(e={},...t){const{breakpoints:n={},palette:r={},spacing:i,shape:a={}}=e,s=at(e,IAe),o=FCe(n),l=YCe(i);let u=yo({breakpoints:o,direction:"ltr",components:{},palette:M({mode:"light"},r),spacing:l,shape:M({},UCe,a)},s);return u.applyStyles=RAe,u=t.reduce((c,f)=>yo(c,f),u),u.unstable_sxConfig=M({},xR,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return rT({sx:f,theme:this})},u}function DAe(e){return Object.keys(e).length===0}function TR(e=null){const t=N.useContext(iR);return!t||DAe(t)?e:t}const NAe=iT();function CO(e=NAe){return TR(e)}function PAe({styles:e,themeId:t,defaultTheme:n={}}){const r=CO(n),i=typeof e=="function"?e(t&&r[t]||r):e;return _.jsx(dCe,{styles:i})}const MAe=["sx"],LAe=e=>{var t,n;const r={systemProps:{},otherProps:{}},i=(t=e==null||(n=e.theme)==null?void 0:n.unstable_sxConfig)!=null?t:xR;return Object.keys(e).forEach(a=>{i[a]?r.systemProps[a]=e[a]:r.otherProps[a]=e[a]}),r};function kR(e){const{sx:t}=e,n=at(e,MAe),{systemProps:r,otherProps:i}=LAe(n);let a;return Array.isArray(t)?a=[r,...t]:typeof t=="function"?a=(...s)=>{const o=t(...s);return zh(o)?M({},r,o):r}:a=M({},r,t),M({},i,{sx:a})}function woe(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var i=e.length;for(t=0;to!=="theme"&&o!=="sx"&&o!=="as"})(rT);return N.forwardRef(function(l,u){const c=CO(n),f=kR(l),{className:h,component:g="div"}=f,b=at(f,$Ae);return _.jsx(a,M({as:g,ref:u,className:dt(h,i?i(r):r),theme:t&&c[t]||c},b))})}const BAe=["variant"];function OY(e){return e.length===0}function xoe(e){const{variant:t}=e,n=at(e,BAe);let r=t||"";return Object.keys(n).sort().forEach(i=>{i==="color"?r+=OY(r)?e[i]:ht(e[i]):r+=`${OY(r)?i:ht(i)}${ht(e[i].toString())}`}),r}const UAe=["name","slot","skipVariantsResolver","skipSx","overridesResolver"];function zAe(e){return Object.keys(e).length===0}function jAe(e){return typeof e=="string"&&e.charCodeAt(0)>96}const HAe=(e,t)=>t.components&&t.components[e]&&t.components[e].styleOverrides?t.components[e].styleOverrides:null,G_=e=>{let t=0;const n={};return e&&e.forEach(r=>{let i="";typeof r.props=="function"?(i=`callback${t}`,t+=1):i=xoe(r.props),n[i]=r.style}),n},VAe=(e,t)=>{let n=[];return t&&t.components&&t.components[e]&&t.components[e].variants&&(n=t.components[e].variants),G_(n)},Y_=(e,t,n)=>{const{ownerState:r={}}=e,i=[];let a=0;return n&&n.forEach(s=>{let o=!0;if(typeof s.props=="function"){const l=M({},e,r);o=s.props(l)}else Object.keys(s.props).forEach(l=>{r[l]!==s.props[l]&&e[l]!==s.props[l]&&(o=!1)});o&&(typeof s.props=="function"?i.push(t[`callback${a}`]):i.push(t[xoe(s.props)])),typeof s.props=="function"&&(a+=1)}),i},WAe=(e,t,n,r)=>{var i;const a=n==null||(i=n.components)==null||(i=i[r])==null?void 0:i.variants;return Y_(e,t,a)};function R2(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const QAe=iT(),qAe=e=>e&&e.charAt(0).toLowerCase()+e.slice(1);function k4({defaultTheme:e,theme:t,themeId:n}){return zAe(t)?e:t[n]||t}function GAe(e){return e?(t,n)=>n[e]:null}const SY=({styledArg:e,props:t,defaultTheme:n,themeId:r})=>{const i=e(M({},t,{theme:k4(M({},t,{defaultTheme:n,themeId:r}))}));let a;if(i&&i.variants&&(a=i.variants,delete i.variants),a){const s=Y_(t,G_(a),a);return[i,...s]}return i};function Toe(e={}){const{themeId:t,defaultTheme:n=QAe,rootShouldForwardProp:r=R2,slotShouldForwardProp:i=R2}=e,a=s=>rT(M({},s,{theme:k4(M({},s,{defaultTheme:n,themeId:t}))}));return a.__mui_systemSx=!0,(s,o={})=>{fCe(s,C=>C.filter(I=>!(I!=null&&I.__mui_systemSx)));const{name:l,slot:u,skipVariantsResolver:c,skipSx:f,overridesResolver:h=GAe(qAe(u))}=o,g=at(o,UAe),b=c!==void 0?c:u&&u!=="Root"&&u!=="root"||!1,S=f||!1;let w,E=R2;u==="Root"||u==="root"?E=r:u?E=i:jAe(s)&&(E=void 0);const x=poe(s,M({shouldForwardProp:E,label:w},g)),k=(C,...I)=>{const A=I?I.map(F=>{if(typeof F=="function"&&F.__emotion_real!==F)return W=>SY({styledArg:F,props:W,defaultTheme:n,themeId:t});if(zh(F)){let W=F,V;return F&&F.variants&&(V=F.variants,delete W.variants,W=Z=>{let Q=F;return Y_(Z,G_(V),V).forEach(J=>{Q=yo(Q,J)}),Q}),W}return F}):[];let D=C;if(zh(C)){let F;C&&C.variants&&(F=C.variants,delete D.variants,D=W=>{let V=C;return Y_(W,G_(F),F).forEach(Q=>{V=yo(V,Q)}),V})}else typeof C=="function"&&C.__emotion_real!==C&&(D=F=>SY({styledArg:C,props:F,defaultTheme:n,themeId:t}));l&&h&&A.push(F=>{const W=k4(M({},F,{defaultTheme:n,themeId:t})),V=HAe(l,W);if(V){const Z={};return Object.entries(V).forEach(([Q,H])=>{Z[Q]=typeof H=="function"?H(M({},F,{theme:W})):H}),h(F,Z)}return null}),l&&!b&&A.push(F=>{const W=k4(M({},F,{defaultTheme:n,themeId:t}));return WAe(F,VAe(l,W),W,l)}),S||A.push(a);const B=A.length-I.length;if(Array.isArray(C)&&B>0){const F=new Array(B).fill("");D=[...C,...F],D.raw=[...C.raw,...F]}const L=x(D,...A);return s.muiName&&(L.muiName=s.muiName),L};return x.withConfig&&(k.withConfig=x.withConfig),k}}const koe=Toe();function Coe(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:bR(t.components[n].defaultProps,r)}function tF({props:e,name:t,defaultTheme:n,themeId:r}){let i=CO(n);return r&&(i=i[r]||i),Coe({theme:i,name:t,props:e})}function nF(e,t=0,n=1){return oy(e,t,n)}function YAe(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 d1(e){if(e.type)return e;if(e.charAt(0)==="#")return d1(YAe(e));const t=e.indexOf("("),n=e.substring(0,t);if(["rgb","rgba","hsl","hsla","color"].indexOf(n)===-1)throw new Error(n0(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(n0(10,i))}else r=r.split(",");return r=r.map(a=>parseFloat(a)),{type:n,values:r,colorSpace:i}}function CR(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.indexOf("rgb")!==-1?r=r.map((i,a)=>a<3?parseInt(i,10):i):t.indexOf("hsl")!==-1&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.indexOf("color")!==-1?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function ZAe(e){e=d1(e);const{values:t}=e,n=t[0],r=t[1]/100,i=t[2]/100,a=r*Math.min(i,1-i),s=(u,c=(u+n/30)%12)=>i-a*Math.max(Math.min(c-3,9-c,1),-1);let o="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(o+="a",l.push(t[3])),CR({type:o,values:l})}function _8(e){e=d1(e);let t=e.type==="hsl"||e.type==="hsla"?d1(ZAe(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 XAe(e,t){const n=_8(e),r=_8(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function Rn(e,t){return e=d1(e),t=nF(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,CR(e)}function aT(e,t){if(e=d1(e),t=nF(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 CR(e)}function sT(e,t){if(e=d1(e),t=nF(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 CR(e)}function KAe(e,t=.15){return _8(e)>.5?aT(e,t):sT(e,t)}const JAe=N.createContext(null),Aoe=JAe;function _oe(){return N.useContext(Aoe)}const e4e=typeof Symbol=="function"&&Symbol.for,t4e=e4e?Symbol.for("mui.nested"):"__THEME_NESTED__";function n4e(e,t){return typeof t=="function"?t(e):M({},e,t)}function r4e(e){const{children:t,theme:n}=e,r=_oe(),i=N.useMemo(()=>{const a=r===null?n:n4e(r,n);return a!=null&&(a[t4e]=r!==null),a},[n,r]);return _.jsx(Aoe.Provider,{value:i,children:t})}const EY={};function wY(e,t,n,r=!1){return N.useMemo(()=>{const i=e&&t[e]||t;if(typeof n=="function"){const a=n(i),s=e?M({},t,{[e]:a}):a;return r?()=>s:s}return e?M({},t,{[e]:n}):M({},t,n)},[e,t,n,r])}function i4e(e){const{children:t,theme:n,themeId:r}=e,i=TR(EY),a=_oe()||EY,s=wY(r,i,n),o=wY(r,a,n,!0);return _.jsx(r4e,{theme:o,children:_.jsx(iR.Provider,{value:s,children:t})})}const a4e=["className","component","disableGutters","fixed","maxWidth","classes"],s4e=iT(),o4e=koe("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ht(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),l4e=e=>tF({props:e,name:"MuiContainer",defaultTheme:s4e}),u4e=(e,t)=>{const n=l=>$t(t,l),{classes:r,fixed:i,disableGutters:a,maxWidth:s}=e,o={root:["root",s&&`maxWidth${ht(String(s))}`,i&&"fixed",a&&"disableGutters"]};return Mt(o,n,r)};function c4e(e={}){const{createStyledComponent:t=o4e,useThemeProps:n=l4e,componentName:r="MuiContainer"}=e,i=t(({theme:s,ownerState:o})=>M({width:"100%",marginLeft:"auto",boxSizing:"border-box",marginRight:"auto",display:"block"},!o.disableGutters&&{paddingLeft:s.spacing(2),paddingRight:s.spacing(2),[s.breakpoints.up("sm")]:{paddingLeft:s.spacing(3),paddingRight:s.spacing(3)}}),({theme:s,ownerState:o})=>o.fixed&&Object.keys(s.breakpoints.values).reduce((l,u)=>{const c=u,f=s.breakpoints.values[c];return f!==0&&(l[s.breakpoints.up(c)]={maxWidth:`${f}${s.breakpoints.unit}`}),l},{}),({theme:s,ownerState:o})=>M({},o.maxWidth==="xs"&&{[s.breakpoints.up("xs")]:{maxWidth:Math.max(s.breakpoints.values.xs,444)}},o.maxWidth&&o.maxWidth!=="xs"&&{[s.breakpoints.up(o.maxWidth)]:{maxWidth:`${s.breakpoints.values[o.maxWidth]}${s.breakpoints.unit}`}}));return N.forwardRef(function(o,l){const u=n(o),{className:c,component:f="div",disableGutters:h=!1,fixed:g=!1,maxWidth:b="lg"}=u,S=at(u,a4e),w=M({},u,{component:f,disableGutters:h,fixed:g,maxWidth:b}),E=u4e(w,r);return _.jsx(i,M({as:f,ownerState:w,className:dt(E.root,c),ref:l},S))})}const d4e=["component","direction","spacing","divider","children","className","useFlexGap"],f4e=iT(),h4e=koe("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root});function p4e(e){return tF({props:e,name:"MuiStack",defaultTheme:f4e})}function m4e(e,t){const n=N.Children.toArray(e).filter(Boolean);return n.reduce((r,i,a)=>(r.push(i),a({row:"Left","row-reverse":"Right",column:"Top","column-reverse":"Bottom"})[e],b4e=({ownerState:e,theme:t})=>{let n=M({display:"flex",flexDirection:"column"},_l({theme:t},e1({values:e.direction,breakpoints:t.breakpoints.values}),r=>({flexDirection:r})));if(e.spacing){const r=J$(t),i=Object.keys(t.breakpoints.values).reduce((l,u)=>((typeof e.spacing=="object"&&e.spacing[u]!=null||typeof e.direction=="object"&&e.direction[u]!=null)&&(l[u]=!0),l),{}),a=e1({values:e.direction,base:i}),s=e1({values:e.spacing,base:i});typeof a=="object"&&Object.keys(a).forEach((l,u,c)=>{if(!a[l]){const h=u>0?a[c[u-1]]:"column";a[l]=h}}),n=yo(n,_l({theme:t},s,(l,u)=>e.useFlexGap?{gap:c1(r,l)}:{"& > :not(style):not(style)":{margin:0},"& > :not(style) ~ :not(style)":{[`margin${g4e(u?a[u]:e.direction)}`]:c1(r,l)}}))}return n=zCe(t.breakpoints,n),n};function y4e(e={}){const{createStyledComponent:t=h4e,useThemeProps:n=p4e,componentName:r="MuiStack"}=e,i=()=>Mt({root:["root"]},l=>$t(r,l),{}),a=t(b4e);return N.forwardRef(function(l,u){const c=n(l),f=kR(c),{component:h="div",direction:g="column",spacing:b=0,divider:S,children:w,className:E,useFlexGap:x=!1}=f,k=at(f,d4e),C={direction:g,spacing:b,useFlexGap:x},I=i();return _.jsx(a,M({as:h,ownerState:C,ref:u,className:dt(I.root,E)},k,{children:S?m4e(w,S):w}))})}function v4e(e,t){return M({toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}}},t)}const O4e=["mode","contrastThreshold","tonalOffset"],xY={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:_w.white,default:_w.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}},ON={text:{primary:_w.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:_w.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 TY(e,t,n,r){const i=r.light||r,a=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=sT(e.main,i):t==="dark"&&(e.dark=aT(e.main,a)))}function S4e(e="light"){return e==="dark"?{main:Qb[200],light:Qb[50],dark:Qb[400]}:{main:Qb[700],light:Qb[400],dark:Qb[800]}}function E4e(e="light"){return e==="dark"?{main:Wb[200],light:Wb[50],dark:Wb[400]}:{main:Wb[500],light:Wb[300],dark:Wb[700]}}function w4e(e="light"){return e==="dark"?{main:Vb[500],light:Vb[300],dark:Vb[700]}:{main:Vb[700],light:Vb[400],dark:Vb[800]}}function x4e(e="light"){return e==="dark"?{main:qb[400],light:qb[300],dark:qb[700]}:{main:qb[700],light:qb[500],dark:qb[900]}}function T4e(e="light"){return e==="dark"?{main:Gb[400],light:Gb[300],dark:Gb[700]}:{main:Gb[800],light:Gb[500],dark:Gb[900]}}function k4e(e="light"){return e==="dark"?{main:mE[400],light:mE[300],dark:mE[700]}:{main:"#ed6c02",light:mE[500],dark:mE[900]}}function C4e(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2}=e,i=at(e,O4e),a=e.primary||S4e(t),s=e.secondary||E4e(t),o=e.error||w4e(t),l=e.info||x4e(t),u=e.success||T4e(t),c=e.warning||k4e(t);function f(S){return XAe(S,ON.text.primary)>=n?ON.text.primary:xY.text.primary}const h=({color:S,name:w,mainShade:E=500,lightShade:x=300,darkShade:k=700})=>{if(S=M({},S),!S.main&&S[E]&&(S.main=S[E]),!S.hasOwnProperty("main"))throw new Error(n0(11,w?` (${w})`:"",E));if(typeof S.main!="string")throw new Error(n0(12,w?` (${w})`:"",JSON.stringify(S.main)));return TY(S,"light",x,r),TY(S,"dark",k,r),S.contrastText||(S.contrastText=f(S.main)),S},g={dark:ON,light:xY};return yo(M({common:M({},_w),mode:t,primary:h({color:a,name:"primary"}),secondary:h({color:s,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:h({color:o,name:"error"}),warning:h({color:c,name:"warning"}),info:h({color:l,name:"info"}),success:h({color:u,name:"success"}),grey:ike,contrastThreshold:n,getContrastText:f,augmentColor:h,tonalOffset:r},g[t]),i)}const A4e=["fontFamily","fontSize","fontWeightLight","fontWeightRegular","fontWeightMedium","fontWeightBold","htmlFontSize","allVariants","pxToRem"];function _4e(e){return Math.round(e*1e5)/1e5}const kY={textTransform:"uppercase"},CY='"Roboto", "Helvetica", "Arial", sans-serif';function R4e(e,t){const n=typeof t=="function"?t(e):t,{fontFamily:r=CY,fontSize:i=14,fontWeightLight:a=300,fontWeightRegular:s=400,fontWeightMedium:o=500,fontWeightBold:l=700,htmlFontSize:u=16,allVariants:c,pxToRem:f}=n,h=at(n,A4e),g=i/14,b=f||(E=>`${E/u*g}rem`),S=(E,x,k,C,I)=>M({fontFamily:r,fontWeight:E,fontSize:b(x),lineHeight:k},r===CY?{letterSpacing:`${_4e(C/x)}em`}:{},I,c),w={h1:S(a,96,1.167,-1.5),h2:S(a,60,1.2,-.5),h3:S(s,48,1.167,0),h4:S(s,34,1.235,.25),h5:S(s,24,1.334,0),h6:S(o,20,1.6,.15),subtitle1:S(s,16,1.75,.15),subtitle2:S(o,14,1.57,.1),body1:S(s,16,1.5,.15),body2:S(s,14,1.43,.15),button:S(o,14,1.75,.4,kY),caption:S(s,12,1.66,.4),overline:S(s,12,2.66,1,kY),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return yo(M({htmlFontSize:u,pxToRem:b,fontFamily:r,fontSize:i,fontWeightLight:a,fontWeightRegular:s,fontWeightMedium:o,fontWeightBold:l},w),h,{clone:!1})}const I4e=.2,D4e=.14,N4e=.12;function qi(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${I4e})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${D4e})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${N4e})`].join(",")}const P4e=["none",qi(0,2,1,-1,0,1,1,0,0,1,3,0),qi(0,3,1,-2,0,2,2,0,0,1,5,0),qi(0,3,3,-2,0,3,4,0,0,1,8,0),qi(0,2,4,-1,0,4,5,0,0,1,10,0),qi(0,3,5,-1,0,5,8,0,0,1,14,0),qi(0,3,5,-1,0,6,10,0,0,1,18,0),qi(0,4,5,-2,0,7,10,1,0,2,16,1),qi(0,5,5,-3,0,8,10,1,0,3,14,2),qi(0,5,6,-3,0,9,12,1,0,3,16,2),qi(0,6,6,-3,0,10,14,1,0,4,18,3),qi(0,6,7,-4,0,11,15,1,0,4,20,3),qi(0,7,8,-4,0,12,17,2,0,5,22,4),qi(0,7,8,-4,0,13,19,2,0,5,24,4),qi(0,7,9,-4,0,14,21,2,0,5,26,4),qi(0,8,9,-5,0,15,22,2,0,6,28,5),qi(0,8,10,-5,0,16,24,2,0,6,30,5),qi(0,8,11,-5,0,17,26,2,0,6,32,5),qi(0,9,11,-5,0,18,28,2,0,7,34,6),qi(0,9,12,-6,0,19,29,2,0,7,36,6),qi(0,10,13,-6,0,20,31,3,0,8,38,7),qi(0,10,13,-6,0,21,33,3,0,8,40,7),qi(0,10,14,-6,0,22,35,3,0,8,42,7),qi(0,11,14,-7,0,23,36,3,0,9,44,8),qi(0,11,15,-7,0,24,38,3,0,9,46,8)],M4e=["duration","easing","delay"],L4e={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)"},Roe={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function AY(e){return`${Math.round(e)}ms`}function $4e(e){if(!e)return 0;const t=e/36;return Math.round((4+15*t**.25+t/5)*10)}function F4e(e){const t=M({},L4e,e.easing),n=M({},Roe,e.duration);return M({getAutoHeightDuration:$4e,create:(i=["all"],a={})=>{const{duration:s=n.standard,easing:o=t.easeInOut,delay:l=0}=a;return at(a,M4e),(Array.isArray(i)?i:[i]).map(u=>`${u} ${typeof s=="string"?s:AY(s)} ${o} ${typeof l=="string"?l:AY(l)}`).join(",")}},e,{easing:t,duration:n})}const B4e={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500},U4e=B4e,z4e=["breakpoints","mixins","spacing","palette","transitions","typography","shape"];function rF(e={},...t){const{mixins:n={},palette:r={},transitions:i={},typography:a={}}=e,s=at(e,z4e);if(e.vars)throw new Error(n0(18));const o=C4e(r),l=iT(e);let u=yo(l,{mixins:v4e(l.breakpoints,n),palette:o,shadows:P4e.slice(),typography:R4e(o,a),transitions:F4e(i),zIndex:M({},U4e)});return u=yo(u,s),u=t.reduce((c,f)=>yo(c,f),u),u.unstable_sxConfig=M({},xR,s==null?void 0:s.unstable_sxConfig),u.unstable_sx=function(f){return rT({sx:f,theme:this})},u}const j4e=rF(),AR=j4e;function Ni(){const e=CO(AR);return e[u1]||e}function _t({props:e,name:t}){return tF({props:e,name:t,defaultTheme:AR,themeId:u1})}const _s=e=>R2(e)&&e!=="classes",iF=R2,Re=Toe({themeId:u1,defaultTheme:AR,rootShouldForwardProp:_s}),H4e=["theme"];function V4e(e){let{theme:t}=e,n=at(e,H4e);const r=t[u1];return _.jsx(i4e,M({},n,{themeId:r?u1:void 0,theme:r||t}))}const _Y=e=>{let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,(t/100).toFixed(2)};function W4e(e){return $t("MuiSvgIcon",e)}Ft("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Q4e=["children","className","color","component","fontSize","htmlColor","inheritViewBox","titleAccess","viewBox"],q4e=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ht(t)}`,`fontSize${ht(n)}`]};return Mt(i,W4e,r)},G4e=Re("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ht(n.color)}`],t[`fontSize${ht(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>{var n,r,i,a,s,o,l,u,c,f,h,g,b;return{userSelect:"none",width:"1em",height:"1em",display:"inline-block",fill:t.hasSvgAsChild?void 0:"currentColor",flexShrink:0,transition:(n=e.transitions)==null||(r=n.create)==null?void 0:r.call(n,"fill",{duration:(i=e.transitions)==null||(i=i.duration)==null?void 0:i.shorter}),fontSize:{inherit:"inherit",small:((a=e.typography)==null||(s=a.pxToRem)==null?void 0:s.call(a,20))||"1.25rem",medium:((o=e.typography)==null||(l=o.pxToRem)==null?void 0:l.call(o,24))||"1.5rem",large:((u=e.typography)==null||(c=u.pxToRem)==null?void 0:c.call(u,35))||"2.1875rem"}[t.fontSize],color:(f=(h=(e.vars||e).palette)==null||(h=h[t.color])==null?void 0:h.main)!=null?f:{action:(g=(e.vars||e).palette)==null||(g=g.action)==null?void 0:g.active,disabled:(b=(e.vars||e).palette)==null||(b=b.action)==null?void 0:b.disabled,inherit:void 0}[t.color]}}),r0=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSvgIcon"}),{children:i,className:a,color:s="inherit",component:o="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:f,viewBox:h="0 0 24 24"}=r,g=at(r,Q4e),b=N.isValidElement(i)&&i.type==="svg",S=M({},r,{color:s,component:o,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:h,hasSvgAsChild:b}),w={};c||(w.viewBox=h);const E=q4e(S);return _.jsxs(G4e,M({as:o,className:dt(E.root,a),focusable:"false",color:u,"aria-hidden":f?void 0:!0,role:f?"img":void 0,ref:n},w,g,b&&i.props,{ownerState:S,children:[b?i.props.children:i,f?_.jsx("title",{children:f}):null]}))});r0.muiName="SvgIcon";function Ba(e,t){function n(r,i){return _.jsx(r0,M({"data-testid":`${t}Icon`,ref:i},r,{children:e}))}return n.muiName=r0.muiName,N.memo(N.forwardRef(n))}const Y4e={configure:e=>{Y$.configure(e)}},Z4e=Object.freeze(Object.defineProperty({__proto__:null,capitalize:ht,createChainedFunction:Q_,createSvgIcon:Ba,debounce:kO,deprecatedPropType:gCe,isMuiElement:A2,ownerDocument:Ei,ownerWindow:_c,requirePropFactory:bCe,setRef:Nw,unstable_ClassNameGenerator:Y4e,unstable_useEnhancedEffect:da,unstable_useId:Rd,unsupportedProp:vCe,useControlled:Cs,useEventCallback:on,useForkRef:Jn,useIsFocusVisible:gR},Symbol.toStringTag,{value:"Module"}));function R8(e,t){return R8=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(r,i){return r.__proto__=i,r},R8(e,t)}function aF(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,R8(e,t)}function X4e(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function K4e(e,t){e.classList?e.classList.add(t):X4e(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function RY(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function J4e(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=RY(e.className,t):e.setAttribute("class",RY(e.className&&e.className.baseVal||"",t))}const IY={disabled:!1},Z_=hn.createContext(null);var Ioe=function(t){return t.scrollTop},r2="unmounted",wg="exited",xg="entering",ly="entered",I8="exiting",vp=function(e){aF(t,e);function t(r,i){var a;a=e.call(this,r,i)||this;var s=i,o=s&&!s.isMounting?r.enter:r.appear,l;return a.appearStatus=null,r.in?o?(l=wg,a.appearStatus=xg):l=ly:r.unmountOnExit||r.mountOnEnter?l=r2:l=wg,a.state={status:l},a.nextCallback=null,a}t.getDerivedStateFromProps=function(i,a){var s=i.in;return s&&a.status===r2?{status:wg}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(i){var a=null;if(i!==this.props){var s=this.state.status;this.props.in?s!==xg&&s!==ly&&(a=xg):(s===xg||s===ly)&&(a=I8)}this.updateStatus(!1,a)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var i=this.props.timeout,a,s,o;return a=s=o=i,i!=null&&typeof i!="number"&&(a=i.exit,s=i.enter,o=i.appear!==void 0?i.appear:s),{exit:a,enter:s,appear:o}},n.updateStatus=function(i,a){if(i===void 0&&(i=!1),a!==null)if(this.cancelNextCallback(),a===xg){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this);s&&Ioe(s)}this.performEnter(i)}else this.performExit();else this.props.unmountOnExit&&this.state.status===wg&&this.setState({status:r2})},n.performEnter=function(i){var a=this,s=this.props.enter,o=this.context?this.context.isMounting:i,l=this.props.nodeRef?[o]:[n2.findDOMNode(this),o],u=l[0],c=l[1],f=this.getTimeouts(),h=o?f.appear:f.enter;if(!i&&!s||IY.disabled){this.safeSetState({status:ly},function(){a.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xg},function(){a.props.onEntering(u,c),a.onTransitionEnd(h,function(){a.safeSetState({status:ly},function(){a.props.onEntered(u,c)})})})},n.performExit=function(){var i=this,a=this.props.exit,s=this.getTimeouts(),o=this.props.nodeRef?void 0:n2.findDOMNode(this);if(!a||IY.disabled){this.safeSetState({status:wg},function(){i.props.onExited(o)});return}this.props.onExit(o),this.safeSetState({status:I8},function(){i.props.onExiting(o),i.onTransitionEnd(s.exit,function(){i.safeSetState({status:wg},function(){i.props.onExited(o)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(i,a){a=this.setNextCallback(a),this.setState(i,a)},n.setNextCallback=function(i){var a=this,s=!0;return this.nextCallback=function(o){s&&(s=!1,a.nextCallback=null,i(o))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(i,a){this.setNextCallback(a);var s=this.props.nodeRef?this.props.nodeRef.current:n2.findDOMNode(this),o=i==null&&!this.props.addEndListener;if(!s||o){setTimeout(this.nextCallback,0);return}if(this.props.addEndListener){var l=this.props.nodeRef?[this.nextCallback]:[s,this.nextCallback],u=l[0],c=l[1];this.props.addEndListener(u,c)}i!=null&&setTimeout(this.nextCallback,i)},n.render=function(){var i=this.state.status;if(i===r2)return null;var a=this.props,s=a.children;a.in,a.mountOnEnter,a.unmountOnExit,a.appear,a.enter,a.exit,a.timeout,a.addEndListener,a.onEnter,a.onEntering,a.onEntered,a.onExit,a.onExiting,a.onExited,a.nodeRef;var o=at(a,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return hn.createElement(Z_.Provider,{value:null},typeof s=="function"?s(i,o):hn.cloneElement(hn.Children.only(s),o))},t}(hn.Component);vp.contextType=Z_;vp.propTypes={};function Zb(){}vp.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:Zb,onEntering:Zb,onEntered:Zb,onExit:Zb,onExiting:Zb,onExited:Zb};vp.UNMOUNTED=r2;vp.EXITED=wg;vp.ENTERING=xg;vp.ENTERED=ly;vp.EXITING=I8;const oT=vp;var e_e=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return K4e(t,r)})},SN=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return J4e(t,r)})},sF=function(e){aF(t,e);function t(){for(var r,i=arguments.length,a=new Array(i),s=0;se.scrollTop;function i0(e,t){var n,r;const{timeout:i,easing:a,style:s={}}=e;return{duration:(n=s.transitionDuration)!=null?n:typeof i=="number"?i:i[t.mode]||0,easing:(r=s.transitionTimingFunction)!=null?r:typeof a=="object"?a[t.mode]:a,delay:s.transitionDelay}}function l_e(e){return $t("MuiCollapse",e)}Ft("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const u_e=["addEndListener","children","className","collapsedSize","component","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","orientation","style","timeout","TransitionComponent"],c_e=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Mt(r,l_e,n)},d_e=Re("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})=>M({height:0,overflow:"hidden",transition:e.transitions.create("height")},t.orientation==="horizontal"&&{height:"auto",width:0,transition:e.transitions.create("width")},t.state==="entered"&&M({height:"auto",overflow:"visible"},t.orientation==="horizontal"&&{width:"auto"}),t.state==="exited"&&!t.in&&t.collapsedSize==="0px"&&{visibility:"hidden"})),f_e=Re("div",{name:"MuiCollapse",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})(({ownerState:e})=>M({display:"flex",width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),h_e=Re("div",{name:"MuiCollapse",slot:"WrapperInner",overridesResolver:(e,t)=>t.wrapperInner})(({ownerState:e})=>M({width:"100%"},e.orientation==="horizontal"&&{width:"auto",height:"100%"})),Doe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCollapse"}),{addEndListener:i,children:a,className:s,collapsedSize:o="0px",component:l,easing:u,in:c,onEnter:f,onEntered:h,onEntering:g,onExit:b,onExited:S,onExiting:w,orientation:E="vertical",style:x,timeout:k=Roe.standard,TransitionComponent:C=oT}=r,I=at(r,u_e),A=M({},r,{orientation:E,collapsedSize:o}),D=c_e(A),B=Ni(),L=Ng(),F=N.useRef(null),W=N.useRef(),V=typeof o=="number"?`${o}px`:o,Z=E==="horizontal",Q=Z?"width":"height",H=N.useRef(null),J=Jn(n,H),K=ie=>_e=>{if(ie){const Ie=H.current;_e===void 0?ie(Ie):ie(Ie,_e)}},X=()=>F.current?F.current[Z?"clientWidth":"clientHeight"]:0,te=K((ie,_e)=>{F.current&&Z&&(F.current.style.position="absolute"),ie.style[Q]=V,f&&f(ie,_e)}),z=K((ie,_e)=>{const Ie=X();F.current&&Z&&(F.current.style.position="");const{duration:qe,easing:st}=i0({style:x,timeout:k,easing:u},{mode:"enter"});if(k==="auto"){const Pe=B.transitions.getAutoHeightDuration(Ie);ie.style.transitionDuration=`${Pe}ms`,W.current=Pe}else ie.style.transitionDuration=typeof qe=="string"?qe:`${qe}ms`;ie.style[Q]=`${Ie}px`,ie.style.transitionTimingFunction=st,g&&g(ie,_e)}),Te=K((ie,_e)=>{ie.style[Q]="auto",h&&h(ie,_e)}),be=K(ie=>{ie.style[Q]=`${X()}px`,b&&b(ie)}),ee=K(S),ye=K(ie=>{const _e=X(),{duration:Ie,easing:qe}=i0({style:x,timeout:k,easing:u},{mode:"exit"});if(k==="auto"){const st=B.transitions.getAutoHeightDuration(_e);ie.style.transitionDuration=`${st}ms`,W.current=st}else ie.style.transitionDuration=typeof Ie=="string"?Ie:`${Ie}ms`;ie.style[Q]=V,ie.style.transitionTimingFunction=qe,w&&w(ie)}),Oe=ie=>{k==="auto"&&L.start(W.current||0,ie),i&&i(H.current,ie)};return _.jsx(C,M({in:c,onEnter:te,onEntered:Te,onEntering:z,onExit:be,onExited:ee,onExiting:ye,addEndListener:Oe,nodeRef:H,timeout:k==="auto"?null:k},I,{children:(ie,_e)=>_.jsx(d_e,M({as:l,className:dt(D.root,s,{entered:D.entered,exited:!c&&V==="0px"&&D.hidden}[ie]),style:M({[Z?"minWidth":"minHeight"]:V},x),ownerState:M({},A,{state:ie}),ref:J},_e,{children:_.jsx(f_e,{ownerState:M({},A,{state:ie}),className:D.wrapper,ref:F,children:_.jsx(h_e,{ownerState:M({},A,{state:ie}),className:D.wrapperInner,children:a})})}))}))});Doe.muiSupportAuto=!0;const p_e=Doe;function m_e(e){return $t("MuiPaper",e)}Ft("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 g_e=["className","component","elevation","square","variant"],b_e=e=>{const{square:t,elevation:n,variant:r,classes:i}=e,a={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Mt(a,m_e,i)},y_e=Re("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 M({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"&&M({boxShadow:(e.vars||e).shadows[t.elevation]},!e.vars&&e.palette.mode==="dark"&&{backgroundImage:`linear-gradient(${Rn("#fff",_Y(t.elevation))}, ${Rn("#fff",_Y(t.elevation))})`},e.vars&&{backgroundImage:(n=e.vars.overlays)==null?void 0:n[t.elevation]}))}),v_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPaper"}),{className:i,component:a="div",elevation:s=1,square:o=!1,variant:l="elevation"}=r,u=at(r,g_e),c=M({},r,{component:a,elevation:s,square:o,variant:l}),f=b_e(c);return _.jsx(y_e,M({as:a,ownerState:c,className:dt(f.root,i),ref:n},u))}),hs=v_e;function $f(e){return typeof e=="string"}function i2(e,t,n){return e===void 0||$f(e)?t:M({},t,{ownerState:M({},t.ownerState,n)})}function O_e(e,t,n=(r,i)=>r===i){return e.length===t.length&&e.every((r,i)=>n(r,t[i]))}const S_e={disableDefaultClasses:!1},E_e=N.createContext(S_e);function w_e(e){const{disableDefaultClasses:t}=N.useContext(E_e);return n=>t?"":e(n)}function I2(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 S0(e,t,n){return typeof e=="function"?e(t,n):e}function DY(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 x_e(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:i,className:a}=e;if(!t){const g=dt(n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),b=M({},n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),S=M({},n,i,r);return g.length>0&&(S.className=g),Object.keys(b).length>0&&(S.style=b),{props:S,internalRef:void 0}}const s=I2(M({},i,r)),o=DY(r),l=DY(i),u=t(s),c=dt(u==null?void 0:u.className,n==null?void 0:n.className,a,i==null?void 0:i.className,r==null?void 0:r.className),f=M({},u==null?void 0:u.style,n==null?void 0:n.style,i==null?void 0:i.style,r==null?void 0:r.style),h=M({},u,n,l,o);return c.length>0&&(h.className=c),Object.keys(f).length>0&&(h.style=f),{props:h,internalRef:u.ref}}const T_e=["elementType","externalSlotProps","ownerState","skipResolvingSlotProps"];function dr(e){var t;const{elementType:n,externalSlotProps:r,ownerState:i,skipResolvingSlotProps:a=!1}=e,s=at(e,T_e),o=a?{}:S0(r,i),{props:l,internalRef:u}=x_e(M({},s,{externalSlotProps:o})),c=Jn(u,o==null?void 0:o.ref,(t=e.additionalProps)==null?void 0:t.ref);return i2(n,M({},l,{ref:c}),i)}function k_e(e){const{className:t,classes:n,pulsate:r=!1,rippleX:i,rippleY:a,rippleSize:s,in:o,onExited:l,timeout:u}=e,[c,f]=N.useState(!1),h=dt(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),g={width:s,height:s,top:-(s/2)+a,left:-(s/2)+i},b=dt(n.child,c&&n.childLeaving,r&&n.childPulsate);return!o&&!c&&f(!0),N.useEffect(()=>{if(!o&&l!=null){const S=setTimeout(l,u);return()=>{clearTimeout(S)}}},[l,o,u]),_.jsx("span",{className:h,style:g,children:_.jsx("span",{className:b})})}const sc=Ft("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),C_e=["center","classes","className"];let _R=e=>e,NY,PY,MY,LY;const D8=550,A_e=80,__e=eT(NY||(NY=_R` - 0% { - transform: scale(0); - opacity: 0.1; - } - - 100% { - transform: scale(1); - opacity: 0.3; - } -`)),R_e=eT(PY||(PY=_R` - 0% { - opacity: 1; - } - - 100% { - opacity: 0; - } -`)),I_e=eT(MY||(MY=_R` - 0% { - transform: scale(1); - } - - 50% { - transform: scale(0.92); - } - - 100% { - transform: scale(1); - } -`)),D_e=Re("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),N_e=Re(k_e,{name:"MuiTouchRipple",slot:"Ripple"})(LY||(LY=_R` - opacity: 0; - position: absolute; - - &.${0} { - opacity: 0.3; - transform: scale(1); - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - &.${0} { - animation-duration: ${0}ms; - } - - & .${0} { - opacity: 1; - display: block; - width: 100%; - height: 100%; - border-radius: 50%; - background-color: currentColor; - } - - & .${0} { - opacity: 0; - animation-name: ${0}; - animation-duration: ${0}ms; - animation-timing-function: ${0}; - } - - & .${0} { - position: absolute; - /* @noflip */ - left: 0px; - top: 0; - animation-name: ${0}; - animation-duration: 2500ms; - animation-timing-function: ${0}; - animation-iteration-count: infinite; - animation-delay: 200ms; - } -`),sc.rippleVisible,__e,D8,({theme:e})=>e.transitions.easing.easeInOut,sc.ripplePulsate,({theme:e})=>e.transitions.duration.shorter,sc.child,sc.childLeaving,R_e,D8,({theme:e})=>e.transitions.easing.easeInOut,sc.childPulsate,I_e,({theme:e})=>e.transitions.easing.easeInOut),P_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTouchRipple"}),{center:i=!1,classes:a={},className:s}=r,o=at(r,C_e),[l,u]=N.useState([]),c=N.useRef(0),f=N.useRef(null);N.useEffect(()=>{f.current&&(f.current(),f.current=null)},[l]);const h=N.useRef(!1),g=Ng(),b=N.useRef(null),S=N.useRef(null),w=N.useCallback(C=>{const{pulsate:I,rippleX:A,rippleY:D,rippleSize:B,cb:L}=C;u(F=>[...F,_.jsx(N_e,{classes:{ripple:dt(a.ripple,sc.ripple),rippleVisible:dt(a.rippleVisible,sc.rippleVisible),ripplePulsate:dt(a.ripplePulsate,sc.ripplePulsate),child:dt(a.child,sc.child),childLeaving:dt(a.childLeaving,sc.childLeaving),childPulsate:dt(a.childPulsate,sc.childPulsate)},timeout:D8,pulsate:I,rippleX:A,rippleY:D,rippleSize:B},c.current)]),c.current+=1,f.current=L},[a]),E=N.useCallback((C={},I={},A=()=>{})=>{const{pulsate:D=!1,center:B=i||I.pulsate,fakeElement:L=!1}=I;if((C==null?void 0:C.type)==="mousedown"&&h.current){h.current=!1;return}(C==null?void 0:C.type)==="touchstart"&&(h.current=!0);const F=L?null:S.current,W=F?F.getBoundingClientRect():{width:0,height:0,left:0,top:0};let V,Z,Q;if(B||C===void 0||C.clientX===0&&C.clientY===0||!C.clientX&&!C.touches)V=Math.round(W.width/2),Z=Math.round(W.height/2);else{const{clientX:H,clientY:J}=C.touches&&C.touches.length>0?C.touches[0]:C;V=Math.round(H-W.left),Z=Math.round(J-W.top)}if(B)Q=Math.sqrt((2*W.width**2+W.height**2)/3),Q%2===0&&(Q+=1);else{const H=Math.max(Math.abs((F?F.clientWidth:0)-V),V)*2+2,J=Math.max(Math.abs((F?F.clientHeight:0)-Z),Z)*2+2;Q=Math.sqrt(H**2+J**2)}C!=null&&C.touches?b.current===null&&(b.current=()=>{w({pulsate:D,rippleX:V,rippleY:Z,rippleSize:Q,cb:A})},g.start(A_e,()=>{b.current&&(b.current(),b.current=null)})):w({pulsate:D,rippleX:V,rippleY:Z,rippleSize:Q,cb:A})},[i,w,g]),x=N.useCallback(()=>{E({},{pulsate:!0})},[E]),k=N.useCallback((C,I)=>{if(g.clear(),(C==null?void 0:C.type)==="touchend"&&b.current){b.current(),b.current=null,g.start(0,()=>{k(C,I)});return}b.current=null,u(A=>A.length>0?A.slice(1):A),f.current=I},[g]);return N.useImperativeHandle(n,()=>({pulsate:x,start:E,stop:k}),[x,E,k]),_.jsx(D_e,M({className:dt(sc.root,a.root,s),ref:S},o,{children:_.jsx(uF,{component:null,exit:!0,children:l})}))}),M_e=P_e;function L_e(e){return $t("MuiButtonBase",e)}const $_e=Ft("MuiButtonBase",["root","disabled","focusVisible"]),F_e=["action","centerRipple","children","className","component","disabled","disableRipple","disableTouchRipple","focusRipple","focusVisibleClassName","LinkComponent","onBlur","onClick","onContextMenu","onDragLeave","onFocus","onFocusVisible","onKeyDown","onKeyUp","onMouseDown","onMouseLeave","onMouseUp","onTouchEnd","onTouchMove","onTouchStart","tabIndex","TouchRippleProps","touchRippleRef","type"],B_e=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:i}=e,s=Mt({root:["root",t&&"disabled",n&&"focusVisible"]},L_e,i);return n&&r&&(s.root+=` ${r}`),s},U_e=Re("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"},[`&.${$_e.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),z_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiButtonBase"}),{action:i,centerRipple:a=!1,children:s,className:o,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:f=!1,focusRipple:h=!1,LinkComponent:g="a",onBlur:b,onClick:S,onContextMenu:w,onDragLeave:E,onFocus:x,onFocusVisible:k,onKeyDown:C,onKeyUp:I,onMouseDown:A,onMouseLeave:D,onMouseUp:B,onTouchEnd:L,onTouchMove:F,onTouchStart:W,tabIndex:V=0,TouchRippleProps:Z,touchRippleRef:Q,type:H}=r,J=at(r,F_e),K=N.useRef(null),X=N.useRef(null),te=Jn(X,Q),{isFocusVisibleRef:z,onFocus:Te,onBlur:be,ref:ee}=gR(),[ye,Oe]=N.useState(!1);u&&ye&&Oe(!1),N.useImperativeHandle(i,()=>({focusVisible:()=>{Oe(!0),K.current.focus()}}),[]);const[ie,_e]=N.useState(!1);N.useEffect(()=>{_e(!0)},[]);const Ie=ie&&!c&&!u;N.useEffect(()=>{ye&&h&&!c&&ie&&X.current.pulsate()},[c,h,ye,ie]);function qe($e,Ot,Wt=f){return on(Kt=>(Ot&&Ot(Kt),!Wt&&X.current&&X.current[$e](Kt),!0))}const st=qe("start",A),Pe=qe("stop",w),tt=qe("stop",E),Ve=qe("stop",B),Xe=qe("stop",$e=>{ye&&$e.preventDefault(),D&&D($e)}),et=qe("start",W),ft=qe("stop",L),At=qe("stop",F),Je=qe("stop",$e=>{be($e),z.current===!1&&Oe(!1),b&&b($e)},!1),pe=on($e=>{K.current||(K.current=$e.currentTarget),Te($e),z.current===!0&&(Oe(!0),k&&k($e)),x&&x($e)}),le=()=>{const $e=K.current;return l&&l!=="button"&&!($e.tagName==="A"&&$e.href)},he=N.useRef(!1),je=on($e=>{h&&!he.current&&ye&&X.current&&$e.key===" "&&(he.current=!0,X.current.stop($e,()=>{X.current.start($e)})),$e.target===$e.currentTarget&&le()&&$e.key===" "&&$e.preventDefault(),C&&C($e),$e.target===$e.currentTarget&&le()&&$e.key==="Enter"&&!u&&($e.preventDefault(),S&&S($e))}),Ze=on($e=>{h&&$e.key===" "&&X.current&&ye&&!$e.defaultPrevented&&(he.current=!1,X.current.stop($e,()=>{X.current.pulsate($e)})),I&&I($e),S&&$e.target===$e.currentTarget&&le()&&$e.key===" "&&!$e.defaultPrevented&&S($e)});let We=l;We==="button"&&(J.href||J.to)&&(We=g);const fe={};We==="button"?(fe.type=H===void 0?"button":H,fe.disabled=u):(!J.href&&!J.to&&(fe.role="button"),u&&(fe["aria-disabled"]=u));const xe=Jn(n,ee,K),ve=M({},r,{centerRipple:a,component:l,disabled:u,disableRipple:c,disableTouchRipple:f,focusRipple:h,tabIndex:V,focusVisible:ye}),De=B_e(ve);return _.jsxs(U_e,M({as:We,className:dt(De.root,o),ownerState:ve,onBlur:Je,onClick:S,onContextMenu:Pe,onFocus:pe,onKeyDown:je,onKeyUp:Ze,onMouseDown:st,onMouseLeave:Xe,onMouseUp:Ve,onDragLeave:tt,onTouchEnd:ft,onTouchMove:At,onTouchStart:et,ref:xe,tabIndex:u?-1:V,type:H},fe,J,{children:[s,Ie?_.jsx(M_e,M({ref:te,center:a},Z)):null]}))}),Cu=z_e;function j_e(e){return $t("MuiIconButton",e)}const H_e=Ft("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge"]),V_e=["edge","children","className","color","disabled","disableFocusRipple","size"],W_e=e=>{const{classes:t,disabled:n,color:r,edge:i,size:a}=e,s={root:["root",n&&"disabled",r!=="default"&&`color${ht(r)}`,i&&`edge${ht(i)}`,`size${ht(a)}`]};return Mt(s,j_e,t)},Q_e=Re(Cu,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ht(n.color)}`],n.edge&&t[`edge${ht(n.edge)}`],t[`size${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>M({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})`:Rn(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 M({},t.color==="inherit"&&{color:"inherit"},t.color!=="inherit"&&t.color!=="default"&&M({color:r==null?void 0:r.main},!t.disableRipple&&{"&:hover":M({},r&&{backgroundColor:e.vars?`rgba(${r.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(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)},{[`&.${H_e.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled}})}),q_e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiIconButton"}),{edge:i=!1,children:a,className:s,color:o="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium"}=r,f=at(r,V_e),h=M({},r,{edge:i,color:o,disabled:l,disableFocusRipple:u,size:c}),g=W_e(h);return _.jsx(Q_e,M({className:dt(g.root,s),centerRipple:!0,focusRipple:!u,disabled:l,ref:n,ownerState:h},f,{children:a}))}),Vi=q_e,G_e=Ba(_.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 Y_e(e){return $t("MuiTypography",e)}Ft("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const Z_e=["align","className","component","gutterBottom","noWrap","paragraph","variant","variantMapping"],X_e=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:i,variant:a,classes:s}=e,o={root:["root",a,e.align!=="inherit"&&`align${ht(t)}`,n&&"gutterBottom",r&&"noWrap",i&&"paragraph"]};return Mt(o,Y_e,s)},K_e=Re("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${ht(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(({theme:e,ownerState:t})=>M({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})),$Y={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},J_e={primary:"primary.main",textPrimary:"text.primary",secondary:"secondary.main",textSecondary:"text.secondary",error:"error.main"},e3e=e=>J_e[e]||e,t3e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTypography"}),i=e3e(r.color),a=kR(M({},r,{color:i})),{align:s="inherit",className:o,component:l,gutterBottom:u=!1,noWrap:c=!1,paragraph:f=!1,variant:h="body1",variantMapping:g=$Y}=a,b=at(a,Z_e),S=M({},a,{align:s,color:i,className:o,component:l,gutterBottom:u,noWrap:c,paragraph:f,variant:h,variantMapping:g}),w=l||(f?"p":g[h]||$Y[h])||"span",E=X_e(S);return _.jsx(K_e,M({as:w,ref:n,ownerState:S,className:dt(E.root,o)},b))}),ur=t3e;function n3e(e){return $t("MuiAppBar",e)}Ft("MuiAppBar",["root","positionFixed","positionAbsolute","positionSticky","positionStatic","positionRelative","colorDefault","colorPrimary","colorSecondary","colorInherit","colorTransparent","colorError","colorInfo","colorSuccess","colorWarning"]);const r3e=["className","color","enableColorOnDark","position"],i3e=e=>{const{color:t,position:n,classes:r}=e,i={root:["root",`color${ht(t)}`,`position${ht(n)}`]};return Mt(i,n3e,r)},HC=(e,t)=>e?`${e==null?void 0:e.replace(")","")}, ${t})`:t,a3e=Re(hs,{name:"MuiAppBar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ht(n.position)}`],t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[900];return M({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&&M({},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"&&M({backgroundColor:"transparent",color:"inherit"},e.palette.mode==="dark"&&{backgroundImage:"none"})),e.vars&&M({},t.color==="default"&&{"--AppBar-background":t.enableColorOnDark?e.vars.palette.AppBar.defaultBg:HC(e.vars.palette.AppBar.darkBg,e.vars.palette.AppBar.defaultBg),"--AppBar-color":t.enableColorOnDark?e.vars.palette.text.primary:HC(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:HC(e.vars.palette.AppBar.darkBg,e.vars.palette[t.color].main),"--AppBar-color":t.enableColorOnDark?e.vars.palette[t.color].contrastText:HC(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"}))}),s3e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAppBar"}),{className:i,color:a="primary",enableColorOnDark:s=!1,position:o="fixed"}=r,l=at(r,r3e),u=M({},r,{color:a,position:o,enableColorOnDark:s}),c=i3e(u);return _.jsx(a3e,M({square:!0,component:"header",ownerState:u,elevation:4,className:dt(c.root,i,o==="fixed"&&"mui-fixed"),ref:n},l))}),Noe=s3e,Poe="base";function o3e(e){return`${Poe}--${e}`}function l3e(e,t){return`${Poe}-${e}-${t}`}function Moe(e,t){const n=voe[t];return n?o3e(n):l3e(e,t)}function u3e(e,t){const n={};return t.forEach(r=>{n[r]=Moe(e,r)}),n}function FY(e){return e.substring(2).toLowerCase()}function c3e(e,t){return t.documentElement.clientWidth(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=Jn(t.ref,o),f=on(b=>{const S=u.current;u.current=!1;const w=Ei(o.current);if(!l.current||!o.current||"clientX"in b&&c3e(b,w))return;if(s.current){s.current=!1;return}let E;b.composedPath?E=b.composedPath().indexOf(o.current)>-1:E=!w.documentElement.contains(b.target)||o.current.contains(b.target),!E&&(n||!S)&&i(b)}),h=b=>S=>{u.current=!0;const w=t.props[b];w&&w(S)},g={ref:c};return a!==!1&&(g[a]=h(a)),N.useEffect(()=>{if(a!==!1){const b=FY(a),S=Ei(o.current),w=()=>{s.current=!0};return S.addEventListener(b,f),S.addEventListener("touchmove",w),()=>{S.removeEventListener(b,f),S.removeEventListener("touchmove",w)}}},[f,a]),r!==!1&&(g[r]=h(r)),N.useEffect(()=>{if(r!==!1){const b=FY(r),S=Ei(o.current);return S.addEventListener(b,f),()=>{S.removeEventListener(b,f)}}},[f,r]),_.jsx(N.Fragment,{children:N.cloneElement(t,g)})}const f3e=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function h3e(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 p3e(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 m3e(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||p3e(e))}function g3e(e){const t=[],n=[];return Array.from(e.querySelectorAll(f3e)).forEach((r,i)=>{const a=h3e(r);a===-1||!m3e(r)||(a===0?t.push(r):n.push({documentOrder:i,tabIndex:a,node:r}))}),n.sort((r,i)=>r.tabIndex===i.tabIndex?r.documentOrder-i.documentOrder:r.tabIndex-i.tabIndex).map(r=>r.node).concat(t)}function b3e(){return!0}function Loe(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:i=!1,getTabbable:a=g3e,isEnabled:s=b3e,open:o}=e,l=N.useRef(!1),u=N.useRef(null),c=N.useRef(null),f=N.useRef(null),h=N.useRef(null),g=N.useRef(!1),b=N.useRef(null),S=Jn(t.ref,b),w=N.useRef(null);N.useEffect(()=>{!o||!b.current||(g.current=!n)},[n,o]),N.useEffect(()=>{if(!o||!b.current)return;const k=Ei(b.current);return b.current.contains(k.activeElement)||(b.current.hasAttribute("tabIndex")||b.current.setAttribute("tabIndex","-1"),g.current&&b.current.focus()),()=>{i||(f.current&&f.current.focus&&(l.current=!0,f.current.focus()),f.current=null)}},[o]),N.useEffect(()=>{if(!o||!b.current)return;const k=Ei(b.current),C=D=>{w.current=D,!(r||!s()||D.key!=="Tab")&&k.activeElement===b.current&&D.shiftKey&&(l.current=!0,c.current&&c.current.focus())},I=()=>{const D=b.current;if(D===null)return;if(!k.hasFocus()||!s()||l.current){l.current=!1;return}if(D.contains(k.activeElement)||r&&k.activeElement!==u.current&&k.activeElement!==c.current)return;if(k.activeElement!==h.current)h.current=null;else if(h.current!==null)return;if(!g.current)return;let B=[];if((k.activeElement===u.current||k.activeElement===c.current)&&(B=a(b.current)),B.length>0){var L,F;const W=!!((L=w.current)!=null&&L.shiftKey&&((F=w.current)==null?void 0:F.key)==="Tab"),V=B[0],Z=B[B.length-1];typeof V!="string"&&typeof Z!="string"&&(W?Z.focus():V.focus())}else D.focus()};k.addEventListener("focusin",I),k.addEventListener("keydown",C,!0);const A=setInterval(()=>{k.activeElement&&k.activeElement.tagName==="BODY"&&I()},50);return()=>{clearInterval(A),k.removeEventListener("focusin",I),k.removeEventListener("keydown",C,!0)}},[n,r,i,s,o,a]);const E=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0,h.current=k.target;const C=t.props.onFocus;C&&C(k)},x=k=>{f.current===null&&(f.current=k.relatedTarget),g.current=!0};return _.jsxs(N.Fragment,{children:[_.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:u,"data-testid":"sentinelStart"}),N.cloneElement(t,{ref:S,onFocus:E}),_.jsx("div",{tabIndex:o?0:-1,onFocus:x,ref:c,"data-testid":"sentinelEnd"})]})}var Tl="top",Rc="bottom",Ic="right",kl="left",dF="auto",lT=[Tl,Rc,Ic,kl],Yv="start",Pw="end",y3e="clippingParents",$oe="viewport",bE="popper",v3e="reference",BY=lT.reduce(function(e,t){return e.concat([t+"-"+Yv,t+"-"+Pw])},[]),Foe=[].concat(lT,[dF]).reduce(function(e,t){return e.concat([t,t+"-"+Yv,t+"-"+Pw])},[]),O3e="beforeRead",S3e="read",E3e="afterRead",w3e="beforeMain",x3e="main",T3e="afterMain",k3e="beforeWrite",C3e="write",A3e="afterWrite",_3e=[O3e,S3e,E3e,w3e,x3e,T3e,k3e,C3e,A3e];function Qf(e){return e?(e.nodeName||"").toLowerCase():null}function Au(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function f1(e){var t=Au(e).Element;return e instanceof t||e instanceof Element}function Sc(e){var t=Au(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function fF(e){if(typeof ShadowRoot>"u")return!1;var t=Au(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function R3e(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},i=t.attributes[n]||{},a=t.elements[n];!Sc(a)||!Qf(a)||(Object.assign(a.style,r),Object.keys(i).forEach(function(s){var o=i[s];o===!1?a.removeAttribute(s):a.setAttribute(s,o===!0?"":o)}))})}function I3e(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(r){var i=t.elements[r],a=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),o=s.reduce(function(l,u){return l[u]="",l},{});!Sc(i)||!Qf(i)||(Object.assign(i.style,o),Object.keys(a).forEach(function(l){i.removeAttribute(l)}))})}}const D3e={name:"applyStyles",enabled:!0,phase:"write",fn:R3e,effect:I3e,requires:["computeStyles"]};function Ff(e){return e.split("-")[0]}var t1=Math.max,X_=Math.min,Zv=Math.round;function N8(){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 Boe(){return!/^((?!chrome|android).)*safari/i.test(N8())}function Xv(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),i=1,a=1;t&&Sc(e)&&(i=e.offsetWidth>0&&Zv(r.width)/e.offsetWidth||1,a=e.offsetHeight>0&&Zv(r.height)/e.offsetHeight||1);var s=f1(e)?Au(e):window,o=s.visualViewport,l=!Boe()&&n,u=(r.left+(l&&o?o.offsetLeft:0))/i,c=(r.top+(l&&o?o.offsetTop:0))/a,f=r.width/i,h=r.height/a;return{width:f,height:h,top:c,right:u+f,bottom:c+h,left:u,x:u,y:c}}function hF(e){var t=Xv(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 Uoe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&fF(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ip(e){return Au(e).getComputedStyle(e)}function N3e(e){return["table","td","th"].indexOf(Qf(e))>=0}function E0(e){return((f1(e)?e.ownerDocument:e.document)||window.document).documentElement}function RR(e){return Qf(e)==="html"?e:e.assignedSlot||e.parentNode||(fF(e)?e.host:null)||E0(e)}function UY(e){return!Sc(e)||ip(e).position==="fixed"?null:e.offsetParent}function P3e(e){var t=/firefox/i.test(N8()),n=/Trident/i.test(N8());if(n&&Sc(e)){var r=ip(e);if(r.position==="fixed")return null}var i=RR(e);for(fF(i)&&(i=i.host);Sc(i)&&["html","body"].indexOf(Qf(i))<0;){var a=ip(i);if(a.transform!=="none"||a.perspective!=="none"||a.contain==="paint"||["transform","perspective"].indexOf(a.willChange)!==-1||t&&a.willChange==="filter"||t&&a.filter&&a.filter!=="none")return i;i=i.parentNode}return null}function uT(e){for(var t=Au(e),n=UY(e);n&&N3e(n)&&ip(n).position==="static";)n=UY(n);return n&&(Qf(n)==="html"||Qf(n)==="body"&&ip(n).position==="static")?t:n||P3e(e)||t}function pF(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function D2(e,t,n){return t1(e,X_(t,n))}function M3e(e,t,n){var r=D2(e,t,n);return r>n?n:r}function zoe(){return{top:0,right:0,bottom:0,left:0}}function joe(e){return Object.assign({},zoe(),e)}function Hoe(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var L3e=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,joe(typeof t!="number"?t:Hoe(t,lT))};function $3e(e){var t,n=e.state,r=e.name,i=e.options,a=n.elements.arrow,s=n.modifiersData.popperOffsets,o=Ff(n.placement),l=pF(o),u=[kl,Ic].indexOf(o)>=0,c=u?"height":"width";if(!(!a||!s)){var f=L3e(i.padding,n),h=hF(a),g=l==="y"?Tl:kl,b=l==="y"?Rc:Ic,S=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],w=s[l]-n.rects.reference[l],E=uT(a),x=E?l==="y"?E.clientHeight||0:E.clientWidth||0:0,k=S/2-w/2,C=f[g],I=x-h[c]-f[b],A=x/2-h[c]/2+k,D=D2(C,A,I),B=l;n.modifiersData[r]=(t={},t[B]=D,t.centerOffset=D-A,t)}}function F3e(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)||Uoe(t.elements.popper,i)&&(t.elements.arrow=i))}const B3e={name:"arrow",enabled:!0,phase:"main",fn:$3e,effect:F3e,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Kv(e){return e.split("-")[1]}var U3e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function z3e(e,t){var n=e.x,r=e.y,i=t.devicePixelRatio||1;return{x:Zv(n*i)/i||0,y:Zv(r*i)/i||0}}function zY(e){var t,n=e.popper,r=e.popperRect,i=e.placement,a=e.variation,s=e.offsets,o=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,f=e.isFixed,h=s.x,g=h===void 0?0:h,b=s.y,S=b===void 0?0:b,w=typeof c=="function"?c({x:g,y:S}):{x:g,y:S};g=w.x,S=w.y;var E=s.hasOwnProperty("x"),x=s.hasOwnProperty("y"),k=kl,C=Tl,I=window;if(u){var A=uT(n),D="clientHeight",B="clientWidth";if(A===Au(n)&&(A=E0(n),ip(A).position!=="static"&&o==="absolute"&&(D="scrollHeight",B="scrollWidth")),A=A,i===Tl||(i===kl||i===Ic)&&a===Pw){C=Rc;var L=f&&A===I&&I.visualViewport?I.visualViewport.height:A[D];S-=L-r.height,S*=l?1:-1}if(i===kl||(i===Tl||i===Rc)&&a===Pw){k=Ic;var F=f&&A===I&&I.visualViewport?I.visualViewport.width:A[B];g-=F-r.width,g*=l?1:-1}}var W=Object.assign({position:o},u&&U3e),V=c===!0?z3e({x:g,y:S},Au(n)):{x:g,y:S};if(g=V.x,S=V.y,l){var Z;return Object.assign({},W,(Z={},Z[C]=x?"0":"",Z[k]=E?"0":"",Z.transform=(I.devicePixelRatio||1)<=1?"translate("+g+"px, "+S+"px)":"translate3d("+g+"px, "+S+"px, 0)",Z))}return Object.assign({},W,(t={},t[C]=x?S+"px":"",t[k]=E?g+"px":"",t.transform="",t))}function j3e(e){var t=e.state,n=e.options,r=n.gpuAcceleration,i=r===void 0?!0:r,a=n.adaptive,s=a===void 0?!0:a,o=n.roundOffsets,l=o===void 0?!0:o,u={placement:Ff(t.placement),variation:Kv(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,zY(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:s,roundOffsets:l})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,zY(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 H3e={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:j3e,data:{}};var VC={passive:!0};function V3e(e){var t=e.state,n=e.instance,r=e.options,i=r.scroll,a=i===void 0?!0:i,s=r.resize,o=s===void 0?!0:s,l=Au(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return a&&u.forEach(function(c){c.addEventListener("scroll",n.update,VC)}),o&&l.addEventListener("resize",n.update,VC),function(){a&&u.forEach(function(c){c.removeEventListener("scroll",n.update,VC)}),o&&l.removeEventListener("resize",n.update,VC)}}const W3e={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:V3e,data:{}};var Q3e={left:"right",right:"left",bottom:"top",top:"bottom"};function C4(e){return e.replace(/left|right|bottom|top/g,function(t){return Q3e[t]})}var q3e={start:"end",end:"start"};function jY(e){return e.replace(/start|end/g,function(t){return q3e[t]})}function mF(e){var t=Au(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function gF(e){return Xv(E0(e)).left+mF(e).scrollLeft}function G3e(e,t){var n=Au(e),r=E0(e),i=n.visualViewport,a=r.clientWidth,s=r.clientHeight,o=0,l=0;if(i){a=i.width,s=i.height;var u=Boe();(u||!u&&t==="fixed")&&(o=i.offsetLeft,l=i.offsetTop)}return{width:a,height:s,x:o+gF(e),y:l}}function Y3e(e){var t,n=E0(e),r=mF(e),i=(t=e.ownerDocument)==null?void 0:t.body,a=t1(n.scrollWidth,n.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=t1(n.scrollHeight,n.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0),o=-r.scrollLeft+gF(e),l=-r.scrollTop;return ip(i||n).direction==="rtl"&&(o+=t1(n.clientWidth,i?i.clientWidth:0)-a),{width:a,height:s,x:o,y:l}}function bF(e){var t=ip(e),n=t.overflow,r=t.overflowX,i=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+i+r)}function Voe(e){return["html","body","#document"].indexOf(Qf(e))>=0?e.ownerDocument.body:Sc(e)&&bF(e)?e:Voe(RR(e))}function N2(e,t){var n;t===void 0&&(t=[]);var r=Voe(e),i=r===((n=e.ownerDocument)==null?void 0:n.body),a=Au(r),s=i?[a].concat(a.visualViewport||[],bF(r)?r:[]):r,o=t.concat(s);return i?o:o.concat(N2(RR(s)))}function P8(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Z3e(e,t){var n=Xv(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 HY(e,t,n){return t===$oe?P8(G3e(e,n)):f1(t)?Z3e(t,n):P8(Y3e(E0(e)))}function X3e(e){var t=N2(RR(e)),n=["absolute","fixed"].indexOf(ip(e).position)>=0,r=n&&Sc(e)?uT(e):e;return f1(r)?t.filter(function(i){return f1(i)&&Uoe(i,r)&&Qf(i)!=="body"}):[]}function K3e(e,t,n,r){var i=t==="clippingParents"?X3e(e):[].concat(t),a=[].concat(i,[n]),s=a[0],o=a.reduce(function(l,u){var c=HY(e,u,r);return l.top=t1(c.top,l.top),l.right=X_(c.right,l.right),l.bottom=X_(c.bottom,l.bottom),l.left=t1(c.left,l.left),l},HY(e,s,r));return o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}function Woe(e){var t=e.reference,n=e.element,r=e.placement,i=r?Ff(r):null,a=r?Kv(r):null,s=t.x+t.width/2-n.width/2,o=t.y+t.height/2-n.height/2,l;switch(i){case Tl:l={x:s,y:t.y-n.height};break;case Rc:l={x:s,y:t.y+t.height};break;case Ic:l={x:t.x+t.width,y:o};break;case kl:l={x:t.x-n.width,y:o};break;default:l={x:t.x,y:t.y}}var u=i?pF(i):null;if(u!=null){var c=u==="y"?"height":"width";switch(a){case Yv:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Pw:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Mw(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=r===void 0?e.placement:r,a=n.strategy,s=a===void 0?e.strategy:a,o=n.boundary,l=o===void 0?y3e:o,u=n.rootBoundary,c=u===void 0?$oe:u,f=n.elementContext,h=f===void 0?bE:f,g=n.altBoundary,b=g===void 0?!1:g,S=n.padding,w=S===void 0?0:S,E=joe(typeof w!="number"?w:Hoe(w,lT)),x=h===bE?v3e:bE,k=e.rects.popper,C=e.elements[b?x:h],I=K3e(f1(C)?C:C.contextElement||E0(e.elements.popper),l,c,s),A=Xv(e.elements.reference),D=Woe({reference:A,element:k,strategy:"absolute",placement:i}),B=P8(Object.assign({},k,D)),L=h===bE?B:A,F={top:I.top-L.top+E.top,bottom:L.bottom-I.bottom+E.bottom,left:I.left-L.left+E.left,right:L.right-I.right+E.right},W=e.modifiersData.offset;if(h===bE&&W){var V=W[i];Object.keys(F).forEach(function(Z){var Q=[Ic,Rc].indexOf(Z)>=0?1:-1,H=[Tl,Rc].indexOf(Z)>=0?"y":"x";F[Z]+=V[H]*Q})}return F}function J3e(e,t){t===void 0&&(t={});var n=t,r=n.placement,i=n.boundary,a=n.rootBoundary,s=n.padding,o=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Foe:l,c=Kv(r),f=c?o?BY:BY.filter(function(b){return Kv(b)===c}):lT,h=f.filter(function(b){return u.indexOf(b)>=0});h.length===0&&(h=f);var g=h.reduce(function(b,S){return b[S]=Mw(e,{placement:S,boundary:i,rootBoundary:a,padding:s})[Ff(S)],b},{});return Object.keys(g).sort(function(b,S){return g[b]-g[S]})}function e5e(e){if(Ff(e)===dF)return[];var t=C4(e);return[jY(e),t,jY(t)]}function t5e(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,f=n.rootBoundary,h=n.altBoundary,g=n.flipVariations,b=g===void 0?!0:g,S=n.allowedAutoPlacements,w=t.options.placement,E=Ff(w),x=E===w,k=l||(x||!b?[C4(w)]:e5e(w)),C=[w].concat(k).reduce(function(ye,Oe){return ye.concat(Ff(Oe)===dF?J3e(t,{placement:Oe,boundary:c,rootBoundary:f,padding:u,flipVariations:b,allowedAutoPlacements:S}):Oe)},[]),I=t.rects.reference,A=t.rects.popper,D=new Map,B=!0,L=C[0],F=0;F=0,H=Q?"width":"height",J=Mw(t,{placement:W,boundary:c,rootBoundary:f,altBoundary:h,padding:u}),K=Q?Z?Ic:kl:Z?Rc:Tl;I[H]>A[H]&&(K=C4(K));var X=C4(K),te=[];if(a&&te.push(J[V]<=0),o&&te.push(J[K]<=0,J[X]<=0),te.every(function(ye){return ye})){L=W,B=!1;break}D.set(W,te)}if(B)for(var z=b?3:1,Te=function(Oe){var ie=C.find(function(_e){var Ie=D.get(_e);if(Ie)return Ie.slice(0,Oe).every(function(qe){return qe})});if(ie)return L=ie,"break"},be=z;be>0;be--){var ee=Te(be);if(ee==="break")break}t.placement!==L&&(t.modifiersData[r]._skip=!0,t.placement=L,t.reset=!0)}}const n5e={name:"flip",enabled:!0,phase:"main",fn:t5e,requiresIfExists:["offset"],data:{_skip:!1}};function VY(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 WY(e){return[Tl,Ic,Rc,kl].some(function(t){return e[t]>=0})}function r5e(e){var t=e.state,n=e.name,r=t.rects.reference,i=t.rects.popper,a=t.modifiersData.preventOverflow,s=Mw(t,{elementContext:"reference"}),o=Mw(t,{altBoundary:!0}),l=VY(s,r),u=VY(o,i,a),c=WY(l),f=WY(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:f},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":f})}const i5e={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:r5e};function a5e(e,t,n){var r=Ff(e),i=[kl,Tl].indexOf(r)>=0?-1:1,a=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=a[0],o=a[1];return s=s||0,o=(o||0)*i,[kl,Ic].indexOf(r)>=0?{x:o,y:s}:{x:s,y:o}}function s5e(e){var t=e.state,n=e.options,r=e.name,i=n.offset,a=i===void 0?[0,0]:i,s=Foe.reduce(function(c,f){return c[f]=a5e(f,t.rects,a),c},{}),o=s[t.placement],l=o.x,u=o.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const o5e={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:s5e};function l5e(e){var t=e.state,n=e.name;t.modifiersData[n]=Woe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})}const u5e={name:"popperOffsets",enabled:!0,phase:"read",fn:l5e,data:{}};function c5e(e){return e==="x"?"y":"x"}function d5e(e){var t=e.state,n=e.options,r=e.name,i=n.mainAxis,a=i===void 0?!0:i,s=n.altAxis,o=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,f=n.padding,h=n.tether,g=h===void 0?!0:h,b=n.tetherOffset,S=b===void 0?0:b,w=Mw(t,{boundary:l,rootBoundary:u,padding:f,altBoundary:c}),E=Ff(t.placement),x=Kv(t.placement),k=!x,C=pF(E),I=c5e(C),A=t.modifiersData.popperOffsets,D=t.rects.reference,B=t.rects.popper,L=typeof S=="function"?S(Object.assign({},t.rects,{placement:t.placement})):S,F=typeof L=="number"?{mainAxis:L,altAxis:L}:Object.assign({mainAxis:0,altAxis:0},L),W=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,V={x:0,y:0};if(A){if(a){var Z,Q=C==="y"?Tl:kl,H=C==="y"?Rc:Ic,J=C==="y"?"height":"width",K=A[C],X=K+w[Q],te=K-w[H],z=g?-B[J]/2:0,Te=x===Yv?D[J]:B[J],be=x===Yv?-B[J]:-D[J],ee=t.elements.arrow,ye=g&&ee?hF(ee):{width:0,height:0},Oe=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:zoe(),ie=Oe[Q],_e=Oe[H],Ie=D2(0,D[J],ye[J]),qe=k?D[J]/2-z-Ie-ie-F.mainAxis:Te-Ie-ie-F.mainAxis,st=k?-D[J]/2+z+Ie+_e+F.mainAxis:be+Ie+_e+F.mainAxis,Pe=t.elements.arrow&&uT(t.elements.arrow),tt=Pe?C==="y"?Pe.clientTop||0:Pe.clientLeft||0:0,Ve=(Z=W==null?void 0:W[C])!=null?Z:0,Xe=K+qe-Ve-tt,et=K+st-Ve,ft=D2(g?X_(X,Xe):X,K,g?t1(te,et):te);A[C]=ft,V[C]=ft-K}if(o){var At,Je=C==="x"?Tl:kl,pe=C==="x"?Rc:Ic,le=A[I],he=I==="y"?"height":"width",je=le+w[Je],Ze=le-w[pe],We=[Tl,kl].indexOf(E)!==-1,fe=(At=W==null?void 0:W[I])!=null?At:0,xe=We?je:le-D[he]-B[he]-fe+F.altAxis,ve=We?le+D[he]+B[he]-fe-F.altAxis:Ze,De=g&&We?M3e(xe,le,ve):D2(g?xe:je,le,g?ve:Ze);A[I]=De,V[I]=De-le}t.modifiersData[r]=V}}const f5e={name:"preventOverflow",enabled:!0,phase:"main",fn:d5e,requiresIfExists:["offset"]};function h5e(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function p5e(e){return e===Au(e)||!Sc(e)?mF(e):h5e(e)}function m5e(e){var t=e.getBoundingClientRect(),n=Zv(t.width)/e.offsetWidth||1,r=Zv(t.height)/e.offsetHeight||1;return n!==1||r!==1}function g5e(e,t,n){n===void 0&&(n=!1);var r=Sc(t),i=Sc(t)&&m5e(t),a=E0(t),s=Xv(e,i,n),o={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((Qf(t)!=="body"||bF(a))&&(o=p5e(t)),Sc(t)?(l=Xv(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):a&&(l.x=gF(a))),{x:s.left+o.scrollLeft-l.x,y:s.top+o.scrollTop-l.y,width:s.width,height:s.height}}function b5e(e){var t=new Map,n=new Set,r=[];e.forEach(function(a){t.set(a.name,a)});function i(a){n.add(a.name);var s=[].concat(a.requires||[],a.requiresIfExists||[]);s.forEach(function(o){if(!n.has(o)){var l=t.get(o);l&&i(l)}}),r.push(a)}return e.forEach(function(a){n.has(a.name)||i(a)}),r}function y5e(e){var t=b5e(e);return _3e.reduce(function(n,r){return n.concat(t.filter(function(i){return i.phase===r}))},[])}function v5e(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function O5e(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 QY={placement:"bottom",modifiers:[],strategy:"absolute"};function qY(){for(var e=arguments.length,t=new Array(e),n=0;n{a||o(x5e(i)||document.body)},[i,a]),da(()=>{if(s&&!a)return Nw(n,s),()=>{Nw(n,null)}},[n,s,a]),a){if(N.isValidElement(r)){const u={ref:l};return N.cloneElement(r,u)}return _.jsx(N.Fragment,{children:r})}return _.jsx(N.Fragment,{children:s&&A1.createPortal(r,s)})}),qoe="Popper";function T5e(e){return Moe(qoe,e)}u3e(qoe,["root"]);const k5e=["anchorEl","children","direction","disablePortal","modifiers","open","placement","popperOptions","popperRef","slotProps","slots","TransitionProps","ownerState"],C5e=["anchorEl","children","container","direction","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","style","transition","slotProps","slots"];function A5e(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 M8(e){return typeof e=="function"?e():e}function _5e(e){return e.nodeType!==void 0}const R5e=()=>Mt({root:["root"]},w_e(T5e)),I5e={},D5e=N.forwardRef(function(t,n){var r;const{anchorEl:i,children:a,direction:s,disablePortal:o,modifiers:l,open:u,placement:c,popperOptions:f,popperRef:h,slotProps:g={},slots:b={},TransitionProps:S}=t,w=at(t,k5e),E=N.useRef(null),x=Jn(E,n),k=N.useRef(null),C=Jn(k,h),I=N.useRef(C);da(()=>{I.current=C},[C]),N.useImperativeHandle(h,()=>k.current,[]);const A=A5e(c,s),[D,B]=N.useState(A),[L,F]=N.useState(M8(i));N.useEffect(()=>{k.current&&k.current.forceUpdate()}),N.useEffect(()=>{i&&F(M8(i))},[i]),da(()=>{if(!L||!u)return;const H=X=>{B(X.placement)};let J=[{name:"preventOverflow",options:{altBoundary:o}},{name:"flip",options:{altBoundary:o}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:X})=>{H(X)}}];l!=null&&(J=J.concat(l)),f&&f.modifiers!=null&&(J=J.concat(f.modifiers));const K=w5e(L,E.current,M({placement:A},f,{modifiers:J}));return I.current(K),()=>{K.destroy(),I.current(null)}},[L,o,l,u,f,A]);const W={placement:D};S!==null&&(W.TransitionProps=S);const V=R5e(),Z=(r=b.root)!=null?r:"div",Q=dr({elementType:Z,externalSlotProps:g.root,externalForwardedProps:w,additionalProps:{role:"tooltip",ref:x},ownerState:t,className:V.root});return _.jsx(Z,M({},Q,{children:typeof a=="function"?a(W):a}))}),N5e=N.forwardRef(function(t,n){const{anchorEl:r,children:i,container:a,direction:s="ltr",disablePortal:o=!1,keepMounted:l=!1,modifiers:u,open:c,placement:f="bottom",popperOptions:h=I5e,popperRef:g,style:b,transition:S=!1,slotProps:w={},slots:E={}}=t,x=at(t,C5e),[k,C]=N.useState(!0),I=()=>{C(!1)},A=()=>{C(!0)};if(!l&&!c&&(!S||k))return null;let D;if(a)D=a;else if(r){const F=M8(r);D=F&&_5e(F)?Ei(F).body:Ei(null).body}const B=!c&&l&&(!S||k)?"none":void 0,L=S?{in:c,onEnter:I,onExited:A}:void 0;return _.jsx(Qoe,{disablePortal:o,container:D,children:_.jsx(D5e,M({anchorEl:r,direction:s,disablePortal:o,modifiers:u,ref:n,open:S?!k:c,placement:f,popperOptions:h,popperRef:g,slotProps:w,slots:E},x,{style:M({position:"fixed",top:0,left:0,display:B},b),TransitionProps:L,children:i}))})});function P5e(e){const t=Ei(e);return t.body===e?_c(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function P2(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function GY(e){return parseInt(_c(e).getComputedStyle(e).paddingRight,10)||0}function M5e(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 YY(e,t,n,r,i){const a=[t,n,...r];[].forEach.call(e.children,s=>{const o=a.indexOf(s)===-1,l=!M5e(s);o&&l&&P2(s,i)})}function EN(e,t){let n=-1;return e.some((r,i)=>t(r)?(n=i,!0):!1),n}function L5e(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(P5e(r)){const s=boe(Ei(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${GY(r)+s}px`;const o=Ei(r).querySelectorAll(".mui-fixed");[].forEach.call(o,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${GY(l)+s}px`})}let a;if(r.parentNode instanceof DocumentFragment)a=Ei(r).body;else{const s=r.parentElement,o=_c(r);a=(s==null?void 0:s.nodeName)==="HTML"&&o.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:a.style.overflow,property:"overflow",el:a},{value:a.style.overflowX,property:"overflow-x",el:a},{value:a.style.overflowY,property:"overflow-y",el:a}),a.style.overflow="hidden"}return()=>{n.forEach(({value:a,el:s,property:o})=>{a?s.style.setProperty(o,a):s.style.removeProperty(o)})}}function $5e(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class F5e{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&&P2(t.modalRef,!1);const i=$5e(n);YY(n,t.mount,t.modalRef,i,!0);const a=EN(this.containers,s=>s.container===n);return a!==-1?(this.containers[a].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:i}),r)}mount(t,n){const r=EN(this.containers,a=>a.modals.indexOf(t)!==-1),i=this.containers[r];i.restore||(i.restore=L5e(i,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const i=EN(this.containers,s=>s.modals.indexOf(t)!==-1),a=this.containers[i];if(a.modals.splice(a.modals.indexOf(t),1),this.modals.splice(r,1),a.modals.length===0)a.restore&&a.restore(),t.modalRef&&P2(t.modalRef,n),YY(a.container,t.mount,t.modalRef,a.hiddenSiblings,!1),this.containers.splice(i,1);else{const s=a.modals[a.modals.length-1];s.modalRef&&P2(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}function B5e(e){return typeof e=="function"?e():e}function U5e(e){return e?e.props.hasOwnProperty("in"):!1}const z5e=new F5e;function j5e(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,manager:i=z5e,closeAfterTransition:a=!1,onTransitionEnter:s,onTransitionExited:o,children:l,onClose:u,open:c,rootRef:f}=e,h=N.useRef({}),g=N.useRef(null),b=N.useRef(null),S=Jn(b,f),[w,E]=N.useState(!c),x=U5e(l);let k=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(k=!1);const C=()=>Ei(g.current),I=()=>(h.current.modalRef=b.current,h.current.mount=g.current,h.current),A=()=>{i.mount(I(),{disableScrollLock:r}),b.current&&(b.current.scrollTop=0)},D=on(()=>{const J=B5e(t)||C().body;i.add(I(),J),b.current&&A()}),B=N.useCallback(()=>i.isTopModal(I()),[i]),L=on(J=>{g.current=J,J&&(c&&B()?A():b.current&&P2(b.current,k))}),F=N.useCallback(()=>{i.remove(I(),k)},[k,i]);N.useEffect(()=>()=>{F()},[F]),N.useEffect(()=>{c?D():(!x||!a)&&F()},[c,F,x,a,D]);const W=J=>K=>{var X;(X=J.onKeyDown)==null||X.call(J,K),!(K.key!=="Escape"||K.which===229||!B())&&(n||(K.stopPropagation(),u&&u(K,"escapeKeyDown")))},V=J=>K=>{var X;(X=J.onClick)==null||X.call(J,K),K.target===K.currentTarget&&u&&u(K,"backdropClick")};return{getRootProps:(J={})=>{const K=I2(e);delete K.onTransitionEnter,delete K.onTransitionExited;const X=M({},K,J);return M({role:"presentation"},X,{onKeyDown:W(X),ref:S})},getBackdropProps:(J={})=>{const K=J;return M({"aria-hidden":!0},K,{onClick:V(K),open:c})},getTransitionProps:()=>{const J=()=>{E(!1),s&&s()},K=()=>{E(!0),o&&o(),a&&F()};return{onEnter:Q_(J,l==null?void 0:l.props.onEnter),onExited:Q_(K,l==null?void 0:l.props.onExited)}},rootRef:S,portalRef:L,isTopModal:B,exited:w,hasTransition:x}}const H5e=2;function Goe(e,t){return e-t}function ZY(e,t){var n;const{index:r}=(n=e.reduce((i,a,s)=>{const o=Math.abs(t-a);return i===null||o({left:`${e}%`}),leap:e=>({width:`${e}%`})},"horizontal-reverse":{offset:e=>({right:`${e}%`}),leap:e=>({width:`${e}%`})},vertical:{offset:e=>({bottom:`${e}%`}),leap:e=>({height:`${e}%`})}},G5e=e=>e;let GC;function KY(){return GC===void 0&&(typeof CSS<"u"&&typeof CSS.supports=="function"?GC=CSS.supports("touch-action","none"):GC=!0),GC}function Y5e(e){const{"aria-labelledby":t,defaultValue:n,disabled:r=!1,disableSwap:i=!1,isRtl:a=!1,marks:s=!1,max:o=100,min:l=0,name:u,onChange:c,onChangeCommitted:f,orientation:h="horizontal",rootRef:g,scale:b=G5e,step:S=1,tabIndex:w,value:E}=e,x=N.useRef(),[k,C]=N.useState(-1),[I,A]=N.useState(-1),[D,B]=N.useState(!1),L=N.useRef(0),[F,W]=Cs({controlled:E,default:n??l,name:"Slider"}),V=c&&((fe,xe,ve)=>{const De=fe.nativeEvent||fe,$e=new De.constructor(De.type,De);Object.defineProperty($e,"target",{writable:!0,value:{value:xe,name:u}}),c($e,xe,ve)}),Z=Array.isArray(F);let Q=Z?F.slice().sort(Goe):[F];Q=Q.map(fe=>fe==null?l:oy(fe,l,o));const H=s===!0&&S!==null?[...Array(Math.floor((o-l)/S)+1)].map((fe,xe)=>({value:l+S*xe})):s||[],J=H.map(fe=>fe.value),{isFocusVisibleRef:K,onBlur:X,onFocus:te,ref:z}=gR(),[Te,be]=N.useState(-1),ee=N.useRef(),ye=Jn(z,ee),Oe=Jn(g,ye),ie=fe=>xe=>{var ve;const De=Number(xe.currentTarget.getAttribute("data-index"));te(xe),K.current===!0&&be(De),A(De),fe==null||(ve=fe.onFocus)==null||ve.call(fe,xe)},_e=fe=>xe=>{var ve;X(xe),K.current===!1&&be(-1),A(-1),fe==null||(ve=fe.onBlur)==null||ve.call(fe,xe)};da(()=>{if(r&&ee.current.contains(document.activeElement)){var fe;(fe=document.activeElement)==null||fe.blur()}},[r]),r&&k!==-1&&C(-1),r&&Te!==-1&&be(-1);const Ie=fe=>xe=>{var ve;(ve=fe.onChange)==null||ve.call(fe,xe);const De=Number(xe.currentTarget.getAttribute("data-index")),$e=Q[De],Ot=J.indexOf($e);let Wt=xe.target.valueAsNumber;if(H&&S==null){const Kt=J[J.length-1];Wt>Kt?Wt=Kt:Wt{const{current:ve}=ee,{width:De,height:$e,bottom:Ot,left:Wt}=ve.getBoundingClientRect();let Kt;st.indexOf("vertical")===0?Kt=(Ot-fe.y)/$e:Kt=(fe.x-Wt)/De,st.indexOf("-reverse")!==-1&&(Kt=1-Kt);let gt;if(gt=V5e(Kt,l,o),S)gt=Q5e(gt,S,l);else{const ut=ZY(J,gt);gt=J[ut]}gt=oy(gt,l,o);let Gt=0;if(Z){xe?Gt=qe.current:Gt=ZY(Q,gt),i&&(gt=oy(gt,Q[Gt-1]||-1/0,Q[Gt+1]||1/0));const ut=gt;gt=XY({values:Q,newValue:gt,index:Gt}),i&&xe||(Gt=gt.indexOf(ut),qe.current=Gt)}return{newValue:gt,activeIndex:Gt}},tt=on(fe=>{const xe=WC(fe,x);if(!xe)return;if(L.current+=1,fe.type==="mousemove"&&fe.buttons===0){Ve(fe);return}const{newValue:ve,activeIndex:De}=Pe({finger:xe,move:!0});QC({sliderRef:ee,activeIndex:De,setActive:C}),W(ve),!D&&L.current>H5e&&B(!0),V&&!qC(ve,F)&&V(fe,ve,De)}),Ve=on(fe=>{const xe=WC(fe,x);if(B(!1),!xe)return;const{newValue:ve}=Pe({finger:xe,move:!0});C(-1),fe.type==="touchend"&&A(-1),f&&f(fe,ve),x.current=void 0,et()}),Xe=on(fe=>{if(r)return;KY()||fe.preventDefault();const xe=fe.changedTouches[0];xe!=null&&(x.current=xe.identifier);const ve=WC(fe,x);if(ve!==!1){const{newValue:$e,activeIndex:Ot}=Pe({finger:ve});QC({sliderRef:ee,activeIndex:Ot,setActive:C}),W($e),V&&!qC($e,F)&&V(fe,$e,Ot)}L.current=0;const De=Ei(ee.current);De.addEventListener("touchmove",tt,{passive:!0}),De.addEventListener("touchend",Ve,{passive:!0})}),et=N.useCallback(()=>{const fe=Ei(ee.current);fe.removeEventListener("mousemove",tt),fe.removeEventListener("mouseup",Ve),fe.removeEventListener("touchmove",tt),fe.removeEventListener("touchend",Ve)},[Ve,tt]);N.useEffect(()=>{const{current:fe}=ee;return fe.addEventListener("touchstart",Xe,{passive:KY()}),()=>{fe.removeEventListener("touchstart",Xe),et()}},[et,Xe]),N.useEffect(()=>{r&&et()},[r,et]);const ft=fe=>xe=>{var ve;if((ve=fe.onMouseDown)==null||ve.call(fe,xe),r||xe.defaultPrevented||xe.button!==0)return;xe.preventDefault();const De=WC(xe,x);if(De!==!1){const{newValue:Ot,activeIndex:Wt}=Pe({finger:De});QC({sliderRef:ee,activeIndex:Wt,setActive:C}),W(Ot),V&&!qC(Ot,F)&&V(xe,Ot,Wt)}L.current=0;const $e=Ei(ee.current);$e.addEventListener("mousemove",tt,{passive:!0}),$e.addEventListener("mouseup",Ve)},At=K_(Z?Q[0]:l,l,o),Je=K_(Q[Q.length-1],l,o)-At,pe=(fe={})=>{const xe=I2(fe),ve={onMouseDown:ft(xe||{})},De=M({},xe,ve);return M({},fe,{ref:Oe},De)},le=fe=>xe=>{var ve;(ve=fe.onMouseOver)==null||ve.call(fe,xe);const De=Number(xe.currentTarget.getAttribute("data-index"));A(De)},he=fe=>xe=>{var ve;(ve=fe.onMouseLeave)==null||ve.call(fe,xe),A(-1)};return{active:k,axis:st,axisProps:q5e,dragging:D,focusedThumbIndex:Te,getHiddenInputProps:(fe={})=>{var xe;const ve=I2(fe),De={onChange:Ie(ve||{}),onFocus:ie(ve||{}),onBlur:_e(ve||{})},$e=M({},ve,De);return M({tabIndex:w,"aria-labelledby":t,"aria-orientation":h,"aria-valuemax":b(o),"aria-valuemin":b(l),name:u,type:"range",min:e.min,max:e.max,step:e.step===null&&e.marks?"any":(xe=e.step)!=null?xe:void 0,disabled:r},fe,$e,{style:M({},PCe,{direction:a?"rtl":"ltr",width:"100%",height:"100%"})})},getRootProps:pe,getThumbProps:(fe={})=>{const xe=I2(fe),ve={onMouseOver:le(xe||{}),onMouseLeave:he(xe||{})};return M({},fe,xe,ve)},marks:H,open:I,range:Z,rootRef:Oe,trackLeap:Je,trackOffset:At,values:Q,getThumbStyle:fe=>({pointerEvents:k!==-1&&k!==fe?"none":void 0})}}const Z5e=["onChange","maxRows","minRows","style","value"];function YC(e){return parseInt(e,10)||0}const X5e={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function JY(e){return e==null||Object.keys(e).length===0||e.outerHeightStyle===0&&!e.overflow}const Yoe=N.forwardRef(function(t,n){const{onChange:r,maxRows:i,minRows:a=1,style:s,value:o}=t,l=at(t,Z5e),{current:u}=N.useRef(o!=null),c=N.useRef(null),f=Jn(n,c),h=N.useRef(null),g=N.useRef(0),[b,S]=N.useState({outerHeightStyle:0}),w=N.useCallback(()=>{const C=c.current,A=_c(C).getComputedStyle(C);if(A.width==="0px")return{outerHeightStyle:0};const D=h.current;D.style.width=A.width,D.value=C.value||t.placeholder||"x",D.value.slice(-1)===` -`&&(D.value+=" ");const B=A.boxSizing,L=YC(A.paddingBottom)+YC(A.paddingTop),F=YC(A.borderBottomWidth)+YC(A.borderTopWidth),W=D.scrollHeight;D.value="x";const V=D.scrollHeight;let Z=W;a&&(Z=Math.max(Number(a)*V,Z)),i&&(Z=Math.min(Number(i)*V,Z)),Z=Math.max(Z,V);const Q=Z+(B==="border-box"?L+F:0),H=Math.abs(Z-W)<=1;return{outerHeightStyle:Q,overflow:H}},[i,a,t.placeholder]),E=(C,I)=>{const{outerHeightStyle:A,overflow:D}=I;return g.current<20&&(A>0&&Math.abs((C.outerHeightStyle||0)-A)>1||C.overflow!==D)?(g.current+=1,{overflow:D,outerHeightStyle:A}):C},x=N.useCallback(()=>{const C=w();JY(C)||S(I=>E(I,C))},[w]);da(()=>{const C=()=>{const W=w();JY(W)||A1.flushSync(()=>{S(V=>E(V,W))})},I=()=>{g.current=0,C()};let A;const D=kO(I),B=c.current,L=_c(B);L.addEventListener("resize",D);let F;return typeof ResizeObserver<"u"&&(F=new ResizeObserver(I),F.observe(B)),()=>{D.clear(),cancelAnimationFrame(A),L.removeEventListener("resize",D),F&&F.disconnect()}},[w]),da(()=>{x()}),N.useEffect(()=>{g.current=0},[o]);const k=C=>{g.current=0,u||x(),r&&r(C)};return _.jsxs(N.Fragment,{children:[_.jsx("textarea",M({value:o,onChange:k,ref:f,rows:a,style:M({height:b.outerHeightStyle,overflow:b.overflow?"hidden":void 0},s)},l)),_.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:h,tabIndex:-1,style:M({},X5e.shadow,s,{paddingTop:0,paddingBottom:0})})]})});function eZ(e){return typeof e.normalize<"u"?e.normalize("NFD").replace(/[\u0300-\u036f]/g,""):e}function K5e(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:i="any",stringify:a,trim:s=!1}=e;return(o,{inputValue:l,getOptionLabel:u})=>{let c=s?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=eZ(c));const f=c?o.filter(h=>{let g=(a||u)(h);return n&&(g=g.toLowerCase()),t&&(g=eZ(g)),i==="start"?g.indexOf(c)===0:g.indexOf(c)>-1}):o;return typeof r=="number"?f.slice(0,r):f}}function wN(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 tRe(e){const{unstable_isActiveElementInListbox:t=eRe,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:i=!1,autoSelect:a=!1,blurOnSelect:s=!1,clearOnBlur:o=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?[]:null,disableClearable:f=!1,disableCloseOnSelect:h=!1,disabled:g,disabledItemsFocusable:b=!1,disableListWrap:S=!1,filterOptions:w=J5e,filterSelectedOptions:E=!1,freeSolo:x=!1,getOptionDisabled:k,getOptionKey:C,getOptionLabel:I=nt=>{var Be;return(Be=nt.label)!=null?Be:nt},groupBy:A,handleHomeEndKeys:D=!e.freeSolo,id:B,includeInputInList:L=!1,inputValue:F,isOptionEqualToValue:W=(nt,Be)=>nt===Be,multiple:V=!1,onChange:Z,onClose:Q,onHighlightChange:H,onInputChange:J,onOpen:K,open:X,openOnFocus:te=!1,options:z,readOnly:Te=!1,selectOnFocus:be=!e.freeSolo,value:ee}=e,ye=Rd(B);let Oe=I;Oe=nt=>{const Be=I(nt);return typeof Be!="string"?String(Be):Be};const ie=N.useRef(!1),_e=N.useRef(!0),Ie=N.useRef(null),qe=N.useRef(null),[st,Pe]=N.useState(null),[tt,Ve]=N.useState(-1),Xe=i?0:-1,et=N.useRef(Xe),[ft,At]=Cs({controlled:ee,default:c,name:u}),[Je,pe]=Cs({controlled:F,default:"",name:u,state:"inputValue"}),[le,he]=N.useState(!1),je=N.useCallback((nt,Be)=>{if(!(V?ft.length!(E&&(V?ft:[ft]).some(Be=>Be!==null&&W(nt,Be)))),{inputValue:ve&&fe?"":Je,getOptionLabel:Oe}):[],Ot=ICe({filteredOptions:$e,value:ft,inputValue:Je});N.useEffect(()=>{const nt=ft!==Ot.value;le&&!nt||x&&!nt||je(null,ft)},[ft,je,le,Ot.value,x]);const Wt=Ze&&$e.length>0&&!Te,Kt=on(nt=>{nt===-1?Ie.current.focus():st.querySelector(`[data-tag-index="${nt}"]`).focus()});N.useEffect(()=>{V&&tt>ft.length-1&&(Ve(-1),Kt(-1))},[ft,V,tt,Kt]);function gt(nt,Be){if(!qe.current||nt<0||nt>=$e.length)return-1;let Dt=nt;for(;;){const en=qe.current.querySelector(`[data-option-index="${Dt}"]`),Vn=b?!1:!en||en.disabled||en.getAttribute("aria-disabled")==="true";if(en&&en.hasAttribute("tabindex")&&!Vn)return Dt;if(Be==="next"?Dt=(Dt+1)%$e.length:Dt=(Dt-1+$e.length)%$e.length,Dt===nt)return-1}}const Gt=on(({event:nt,index:Be,reason:Dt="auto"})=>{if(et.current=Be,Be===-1?Ie.current.removeAttribute("aria-activedescendant"):Ie.current.setAttribute("aria-activedescendant",`${ye}-option-${Be}`),H&&H(nt,Be===-1?null:$e[Be],Dt),!qe.current)return;const en=qe.current.querySelector(`[role="option"].${n}-focused`);en&&(en.classList.remove(`${n}-focused`),en.classList.remove(`${n}-focusVisible`));let Vn=qe.current;if(qe.current.getAttribute("role")!=="listbox"&&(Vn=qe.current.parentElement.querySelector('[role="listbox"]')),!Vn)return;if(Be===-1){Vn.scrollTop=0;return}const Kr=qe.current.querySelector(`[data-option-index="${Be}"]`);if(Kr&&(Kr.classList.add(`${n}-focused`),Dt==="keyboard"&&Kr.classList.add(`${n}-focusVisible`),Vn.scrollHeight>Vn.clientHeight&&Dt!=="mouse"&&Dt!=="touch")){const wr=Kr,In=Vn.clientHeight+Vn.scrollTop,Wn=wr.offsetTop+wr.offsetHeight;Wn>In?Vn.scrollTop=Wn-Vn.clientHeight:wr.offsetTop-wr.offsetHeight*(A?1.3:0){if(!De)return;const Kr=gt((()=>{const wr=$e.length-1;if(Be==="reset")return Xe;if(Be==="start")return 0;if(Be==="end")return wr;const In=et.current+Be;return In<0?In===-1&&L?-1:S&&et.current!==-1||Math.abs(Be)>1?0:wr:In>wr?In===wr+1&&L?-1:S||Math.abs(Be)>1?wr:0:In})(),Dt);if(Gt({index:Kr,reason:en,event:nt}),r&&Be!=="reset")if(Kr===-1)Ie.current.value=Je;else{const wr=Oe($e[Kr]);Ie.current.value=wr,wr.toLowerCase().indexOf(Je.toLowerCase())===0&&Je.length>0&&Ie.current.setSelectionRange(Je.length,wr.length)}}),wt=()=>{const nt=(Be,Dt)=>{const en=Be?Oe(Be):"",Vn=Dt?Oe(Dt):"";return en===Vn};if(et.current!==-1&&Ot.filteredOptions&&Ot.filteredOptions.length!==$e.length&&Ot.inputValue===Je&&(V?ft.length===Ot.value.length&&Ot.value.every((Be,Dt)=>Oe(ft[Dt])===Oe(Be)):nt(Ot.value,ft))){const Be=Ot.filteredOptions[et.current];if(Be&&$e.some(en=>Oe(en)===Oe(Be)))return!0}return!1},Xt=N.useCallback(()=>{if(!De||wt())return;const nt=V?ft[0]:ft;if($e.length===0||nt==null){ut({diff:"reset"});return}if(qe.current){if(nt!=null){const Be=$e[et.current];if(V&&Be&&wN(ft,en=>W(Be,en))!==-1)return;const Dt=wN($e,en=>W(en,nt));Dt===-1?ut({diff:"reset"}):Gt({index:Dt});return}if(et.current>=$e.length-1){Gt({index:$e.length-1});return}Gt({index:et.current})}},[$e.length,V?!1:ft,E,ut,Gt,De,Je,V]),Ln=on(nt=>{Nw(qe,nt),nt&&Xt()});N.useEffect(()=>{Xt()},[Xt]);const $n=nt=>{Ze||(We(!0),xe(!0),K&&K(nt))},jn=(nt,Be)=>{Ze&&(We(!1),Q&&Q(nt,Be))},sr=(nt,Be,Dt,en)=>{if(V){if(ft.length===Be.length&&ft.every((Vn,Kr)=>Vn===Be[Kr]))return}else if(ft===Be)return;Z&&Z(nt,Be,Dt,en),At(Be)},zr=N.useRef(!1),Me=(nt,Be,Dt="selectOption",en="options")=>{let Vn=Dt,Kr=Be;if(V){Kr=Array.isArray(ft)?ft.slice():[];const wr=wN(Kr,In=>W(Be,In));wr===-1?Kr.push(Be):en!=="freeSolo"&&(Kr.splice(wr,1),Vn="removeOption")}je(nt,Kr),sr(nt,Kr,Vn,{option:Be}),!h&&(!nt||!nt.ctrlKey&&!nt.metaKey)&&jn(nt,Vn),(s===!0||s==="touch"&&zr.current||s==="mouse"&&!zr.current)&&Ie.current.blur()};function Ue(nt,Be){if(nt===-1)return-1;let Dt=nt;for(;;){if(Be==="next"&&Dt===ft.length||Be==="previous"&&Dt===-1)return-1;const en=st.querySelector(`[data-tag-index="${Dt}"]`);if(!en||!en.hasAttribute("tabindex")||en.disabled||en.getAttribute("aria-disabled")==="true")Dt+=Be==="next"?1:-1;else return Dt}}const lt=(nt,Be)=>{if(!V)return;Je===""&&jn(nt,"toggleInput");let Dt=tt;tt===-1?Je===""&&Be==="previous"&&(Dt=ft.length-1):(Dt+=Be==="next"?1:-1,Dt<0&&(Dt=0),Dt===ft.length&&(Dt=-1)),Dt=Ue(Dt,Be),Ve(Dt),Kt(Dt)},Nt=nt=>{ie.current=!0,pe(""),J&&J(nt,"","clear"),sr(nt,V?[]:null,"clear")},Qt=nt=>Be=>{if(nt.onKeyDown&&nt.onKeyDown(Be),!Be.defaultMuiPrevented&&(tt!==-1&&["ArrowLeft","ArrowRight"].indexOf(Be.key)===-1&&(Ve(-1),Kt(-1)),Be.which!==229))switch(Be.key){case"Home":De&&D&&(Be.preventDefault(),ut({diff:"start",direction:"next",reason:"keyboard",event:Be}));break;case"End":De&&D&&(Be.preventDefault(),ut({diff:"end",direction:"previous",reason:"keyboard",event:Be}));break;case"PageUp":Be.preventDefault(),ut({diff:-tZ,direction:"previous",reason:"keyboard",event:Be}),$n(Be);break;case"PageDown":Be.preventDefault(),ut({diff:tZ,direction:"next",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowDown":Be.preventDefault(),ut({diff:1,direction:"next",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowUp":Be.preventDefault(),ut({diff:-1,direction:"previous",reason:"keyboard",event:Be}),$n(Be);break;case"ArrowLeft":lt(Be,"previous");break;case"ArrowRight":lt(Be,"next");break;case"Enter":if(et.current!==-1&&De){const Dt=$e[et.current],en=k?k(Dt):!1;if(Be.preventDefault(),en)return;Me(Be,Dt,"selectOption"),r&&Ie.current.setSelectionRange(Ie.current.value.length,Ie.current.value.length)}else x&&Je!==""&&ve===!1&&(V&&Be.preventDefault(),Me(Be,Je,"createOption","freeSolo"));break;case"Escape":De?(Be.preventDefault(),Be.stopPropagation(),jn(Be,"escape")):l&&(Je!==""||V&&ft.length>0)&&(Be.preventDefault(),Be.stopPropagation(),Nt(Be));break;case"Backspace":if(V&&!Te&&Je===""&&ft.length>0){const Dt=tt===-1?ft.length-1:tt,en=ft.slice();en.splice(Dt,1),sr(Be,en,"removeOption",{option:ft[Dt]})}break;case"Delete":if(V&&!Te&&Je===""&&ft.length>0&&tt!==-1){const Dt=tt,en=ft.slice();en.splice(Dt,1),sr(Be,en,"removeOption",{option:ft[Dt]})}break}},Hn=nt=>{he(!0),te&&!ie.current&&$n(nt)},yn=nt=>{if(t(qe)){Ie.current.focus();return}he(!1),_e.current=!0,ie.current=!1,a&&et.current!==-1&&De?Me(nt,$e[et.current],"blur"):a&&x&&Je!==""?Me(nt,Je,"blur","freeSolo"):o&&je(nt,ft),jn(nt,"blur")},rn=nt=>{const Be=nt.target.value;Je!==Be&&(pe(Be),xe(!1),J&&J(nt,Be,"input")),Be===""?!f&&!V&&sr(nt,null,"clear"):$n(nt)},Yt=nt=>{const Be=Number(nt.currentTarget.getAttribute("data-option-index"));et.current!==Be&&Gt({event:nt,index:Be,reason:"mouse"})},xn=nt=>{Gt({event:nt,index:Number(nt.currentTarget.getAttribute("data-option-index")),reason:"touch"}),zr.current=!0},Qe=nt=>{const Be=Number(nt.currentTarget.getAttribute("data-option-index"));Me(nt,$e[Be],"selectOption"),zr.current=!1},Ye=nt=>Be=>{const Dt=ft.slice();Dt.splice(nt,1),sr(Be,Dt,"removeOption",{option:ft[nt]})},ot=nt=>{Ze?jn(nt,"toggleInput"):$n(nt)},yt=nt=>{nt.currentTarget.contains(nt.target)&&nt.target.getAttribute("id")!==ye&&nt.preventDefault()},Yn=nt=>{nt.currentTarget.contains(nt.target)&&(Ie.current.focus(),be&&_e.current&&Ie.current.selectionEnd-Ie.current.selectionStart===0&&Ie.current.select(),_e.current=!1)},pn=nt=>{!g&&(Je===""||!Ze)&&ot(nt)};let Fn=x&&Je.length>0;Fn=Fn||(V?ft.length>0:ft!==null);let Pi=$e;return A&&(Pi=$e.reduce((nt,Be,Dt)=>{const en=A(Be);return nt.length>0&&nt[nt.length-1].group===en?nt[nt.length-1].options.push(Be):nt.push({key:Dt,index:Dt,group:en,options:[Be]}),nt},[])),g&&le&&yn(),{getRootProps:(nt={})=>M({"aria-owns":Wt?`${ye}-listbox`:null},nt,{onKeyDown:Qt(nt),onMouseDown:yt,onClick:Yn}),getInputLabelProps:()=>({id:`${ye}-label`,htmlFor:ye}),getInputProps:()=>({id:ye,value:Je,onBlur:yn,onFocus:Hn,onChange:rn,onMouseDown:pn,"aria-activedescendant":De?"":null,"aria-autocomplete":r?"both":"list","aria-controls":Wt?`${ye}-listbox`:void 0,"aria-expanded":Wt,autoComplete:"off",ref:Ie,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:g}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:Nt}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:ot}),getTagProps:({index:nt})=>M({key:nt,"data-tag-index":nt,tabIndex:-1},!Te&&{onDelete:Ye(nt)}),getListboxProps:()=>({role:"listbox",id:`${ye}-listbox`,"aria-labelledby":`${ye}-label`,ref:Ln,onMouseDown:nt=>{nt.preventDefault()}}),getOptionProps:({index:nt,option:Be})=>{var Dt;const en=(V?ft:[ft]).some(Kr=>Kr!=null&&W(Be,Kr)),Vn=k?k(Be):!1;return{key:(Dt=C==null?void 0:C(Be))!=null?Dt:Oe(Be),tabIndex:-1,role:"option",id:`${ye}-option-${nt}`,onMouseMove:Yt,onClick:Qe,onTouchStart:xn,"data-option-index":nt,"aria-disabled":Vn,"aria-selected":en}},id:ye,inputValue:Je,value:ft,dirty:Fn,expanded:De&&st,popupOpen:De,focused:le||tt!==-1,anchorEl:st,setAnchorEl:Pe,focusedTag:tt,groupedOptions:Pi}}const nRe=["anchorEl","component","components","componentsProps","container","disablePortal","keepMounted","modifiers","open","placement","popperOptions","popperRef","transition","slots","slotProps"],rRe=Re(N5e,{name:"MuiPopper",slot:"Root",overridesResolver:(e,t)=>t.root})({}),iRe=N.forwardRef(function(t,n){var r;const i=TR(),a=_t({props:t,name:"MuiPopper"}),{anchorEl:s,component:o,components:l,componentsProps:u,container:c,disablePortal:f,keepMounted:h,modifiers:g,open:b,placement:S,popperOptions:w,popperRef:E,transition:x,slots:k,slotProps:C}=a,I=at(a,nRe),A=(r=k==null?void 0:k.root)!=null?r:l==null?void 0:l.Root,D=M({anchorEl:s,container:c,disablePortal:f,keepMounted:h,modifiers:g,open:b,placement:S,popperOptions:w,popperRef:E,transition:x},I);return _.jsx(rRe,M({as:o,direction:i==null?void 0:i.direction,slots:{root:A},slotProps:C??u},D,{ref:n}))}),AO=iRe;function aRe(e){return $t("MuiListSubheader",e)}Ft("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const sRe=["className","color","component","disableGutters","disableSticky","inset"],oRe=e=>{const{classes:t,color:n,disableGutters:r,inset:i,disableSticky:a}=e,s={root:["root",n!=="default"&&`color${ht(n)}`,!r&&"gutters",i&&"inset",!a&&"sticky"]};return Mt(s,aRe,t)},lRe=Re("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${ht(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(({theme:e,ownerState:t})=>M({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})),Zoe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListSubheader"}),{className:i,color:a="default",component:s="li",disableGutters:o=!1,disableSticky:l=!1,inset:u=!1}=r,c=at(r,sRe),f=M({},r,{color:a,component:s,disableGutters:o,disableSticky:l,inset:u}),h=oRe(f);return _.jsx(lRe,M({as:s,className:dt(h.root,i),ref:n,ownerState:f},c))});Zoe.muiSkipListHighlight=!0;const uRe=Zoe,cRe=Ba(_.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 dRe(e){return $t("MuiChip",e)}const fRe=Ft("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"]),Jr=fRe,hRe=["avatar","className","clickable","color","component","deleteIcon","disabled","icon","label","onClick","onDelete","onKeyDown","onKeyUp","size","variant","tabIndex","skipFocusWhenDisabled"],pRe=e=>{const{classes:t,disabled:n,size:r,color:i,iconColor:a,onDelete:s,clickable:o,variant:l}=e,u={root:["root",l,n&&"disabled",`size${ht(r)}`,`color${ht(i)}`,o&&"clickable",o&&`clickableColor${ht(i)}`,s&&"deletable",s&&`deletableColor${ht(i)}`,`${l}${ht(i)}`],label:["label",`label${ht(r)}`],avatar:["avatar",`avatar${ht(r)}`,`avatarColor${ht(i)}`],icon:["icon",`icon${ht(r)}`,`iconColor${ht(a)}`],deleteIcon:["deleteIcon",`deleteIcon${ht(r)}`,`deleteIconColor${ht(i)}`,`deleteIcon${ht(l)}Color${ht(i)}`]};return Mt(u,dRe,t)},mRe=Re("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:i,clickable:a,onDelete:s,size:o,variant:l}=n;return[{[`& .${Jr.avatar}`]:t.avatar},{[`& .${Jr.avatar}`]:t[`avatar${ht(o)}`]},{[`& .${Jr.avatar}`]:t[`avatarColor${ht(r)}`]},{[`& .${Jr.icon}`]:t.icon},{[`& .${Jr.icon}`]:t[`icon${ht(o)}`]},{[`& .${Jr.icon}`]:t[`iconColor${ht(i)}`]},{[`& .${Jr.deleteIcon}`]:t.deleteIcon},{[`& .${Jr.deleteIcon}`]:t[`deleteIcon${ht(o)}`]},{[`& .${Jr.deleteIcon}`]:t[`deleteIconColor${ht(r)}`]},{[`& .${Jr.deleteIcon}`]:t[`deleteIcon${ht(l)}Color${ht(r)}`]},t.root,t[`size${ht(o)}`],t[`color${ht(r)}`],a&&t.clickable,a&&r!=="default"&&t[`clickableColor${ht(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${ht(r)}`],t[l],t[`${l}${ht(r)}`]]}})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return M({maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,color:(e.vars||e).palette.text.primary,backgroundColor:(e.vars||e).palette.action.selected,borderRadius:32/2,whiteSpace:"nowrap",transition:e.transitions.create(["background-color","box-shadow"]),cursor:"unset",outline:0,textDecoration:"none",border:0,padding:0,verticalAlign:"middle",boxSizing:"border-box",[`&.${Jr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${Jr.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:n,fontSize:e.typography.pxToRem(12)},[`& .${Jr.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${Jr.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${Jr.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${Jr.icon}`]:M({marginLeft:5,marginRight:-6},t.size==="small"&&{fontSize:18,marginLeft:4,marginRight:-4},t.iconColor===t.color&&M({color:e.vars?e.vars.palette.Chip.defaultIconColor:n},t.color!=="default"&&{color:"inherit"})),[`& .${Jr.deleteIcon}`]:M({WebkitTapHighlightColor:"transparent",color:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / 0.26)`:Rn(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)`:Rn(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)`:Rn(e.palette[t.color].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].contrastText}})},t.size==="small"&&{height:24},t.color!=="default"&&{backgroundColor:(e.vars||e).palette[t.color].main,color:(e.vars||e).palette[t.color].contrastText},t.onDelete&&{[`&.${Jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},t.onDelete&&t.color!=="default"&&{[`&.${Jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}})},({theme:e,ownerState:t})=>M({},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}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)},[`&.${Jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.action.selectedChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.action.selected,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)},"&:active":{boxShadow:(e.vars||e).shadows[1]}},t.clickable&&t.color!=="default"&&{[`&:hover, &.${Jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette[t.color].dark}}),({theme:e,ownerState:t})=>M({},t.variant==="outlined"&&{backgroundColor:"transparent",border:e.vars?`1px solid ${e.vars.palette.Chip.defaultBorder}`:`1px solid ${e.palette.mode==="light"?e.palette.grey[400]:e.palette.grey[700]}`,[`&.${Jr.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${Jr.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${Jr.avatar}`]:{marginLeft:4},[`& .${Jr.avatarSmall}`]:{marginLeft:2},[`& .${Jr.icon}`]:{marginLeft:4},[`& .${Jr.iconSmall}`]:{marginLeft:2},[`& .${Jr.deleteIcon}`]:{marginRight:5},[`& .${Jr.deleteIconSmall}`]:{marginRight:3}},t.variant==="outlined"&&t.color!=="default"&&{color:(e.vars||e).palette[t.color].main,border:`1px solid ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rn(e.palette[t.color].main,.7)}`,[`&.${Jr.clickable}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity)},[`&.${Jr.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette[t.color].main,e.palette.action.focusOpacity)},[`& .${Jr.deleteIcon}`]:{color:e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.7)`:Rn(e.palette[t.color].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[t.color].main}}})),gRe=Re("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${ht(r)}`]]}})(({ownerState:e})=>M({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 nZ(e){return e.key==="Backspace"||e.key==="Delete"}const bRe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiChip"}),{avatar:i,className:a,clickable:s,color:o="default",component:l,deleteIcon:u,disabled:c=!1,icon:f,label:h,onClick:g,onDelete:b,onKeyDown:S,onKeyUp:w,size:E="medium",variant:x="filled",tabIndex:k,skipFocusWhenDisabled:C=!1}=r,I=at(r,hRe),A=N.useRef(null),D=Jn(A,n),B=te=>{te.stopPropagation(),b&&b(te)},L=te=>{te.currentTarget===te.target&&nZ(te)&&te.preventDefault(),S&&S(te)},F=te=>{te.currentTarget===te.target&&(b&&nZ(te)?b(te):te.key==="Escape"&&A.current&&A.current.blur()),w&&w(te)},W=s!==!1&&g?!0:s,V=W||b?Cu:l||"div",Z=M({},r,{component:V,disabled:c,size:E,color:o,iconColor:N.isValidElement(f)&&f.props.color||o,onDelete:!!b,clickable:W,variant:x}),Q=pRe(Z),H=V===Cu?M({component:l||"div",focusVisibleClassName:Q.focusVisible},b&&{disableRipple:!0}):{};let J=null;b&&(J=u&&N.isValidElement(u)?N.cloneElement(u,{className:dt(u.props.className,Q.deleteIcon),onClick:B}):_.jsx(cRe,{className:dt(Q.deleteIcon),onClick:B}));let K=null;i&&N.isValidElement(i)&&(K=N.cloneElement(i,{className:dt(Q.avatar,i.props.className)}));let X=null;return f&&N.isValidElement(f)&&(X=N.cloneElement(f,{className:dt(Q.icon,f.props.className)})),_.jsxs(mRe,M({as:V,className:dt(Q.root,a),disabled:W&&c?!0:void 0,onClick:g,onKeyDown:L,onKeyUp:F,ref:D,tabIndex:C&&c?-1:k,ownerState:Z},H,I,{children:[K||X,_.jsx(gRe,{className:dt(Q.label),ownerState:Z,children:h}),J]}))}),yF=bRe;function w0({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 yRe=N.createContext(void 0),IR=yRe;function Yf(){return N.useContext(IR)}function Xoe(e){return _.jsx(PAe,M({},e,{defaultTheme:AR,themeId:u1}))}function rZ(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function J_(e,t=!1){return e&&(rZ(e.value)&&e.value!==""||t&&rZ(e.defaultValue)&&e.defaultValue!=="")}function vRe(e){return e.startAdornment}function ORe(e){return $t("MuiInputBase",e)}const SRe=Ft("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]),uu=SRe,ERe=["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"],DR=(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${ht(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},NR=(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]},wRe=e=>{const{classes:t,color:n,disabled:r,error:i,endAdornment:a,focused:s,formControl:o,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:f,size:h,startAdornment:g,type:b}=e,S={root:["root",`color${ht(n)}`,r&&"disabled",i&&"error",l&&"fullWidth",s&&"focused",o&&"formControl",h&&h!=="medium"&&`size${ht(h)}`,c&&"multiline",g&&"adornedStart",a&&"adornedEnd",u&&"hiddenLabel",f&&"readOnly"],input:["input",r&&"disabled",b==="search"&&"inputTypeSearch",c&&"inputMultiline",h==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",g&&"inputAdornedStart",a&&"inputAdornedEnd",f&&"readOnly"]};return Mt(S,ORe,t)},PR=Re("div",{name:"MuiInputBase",slot:"Root",overridesResolver:DR})(({theme:e,ownerState:t})=>M({},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",[`&.${uu.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"}},t.multiline&&M({padding:"4px 0 5px"},t.size==="small"&&{paddingTop:1}),t.fullWidth&&{width:"100%"})),MR=Re("input",{name:"MuiInputBase",slot:"Input",overridesResolver:NR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light",r=M({color:"currentColor"},e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5},{transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})}),i={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:n?.42:.5};return M({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] + .${uu.formControl} &`]:{"&::-webkit-input-placeholder":i,"&::-moz-placeholder":i,"&:-ms-input-placeholder":i,"&::-ms-input-placeholder":i,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus:-ms-input-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${uu.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"})}),xRe=_.jsx(Xoe,{styles:{"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}}),TRe=N.forwardRef(function(t,n){var r;const i=_t({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:s,autoFocus:o,className:l,components:u={},componentsProps:c={},defaultValue:f,disabled:h,disableInjectingGlobalStyles:g,endAdornment:b,fullWidth:S=!1,id:w,inputComponent:E="input",inputProps:x={},inputRef:k,maxRows:C,minRows:I,multiline:A=!1,name:D,onBlur:B,onChange:L,onClick:F,onFocus:W,onKeyDown:V,onKeyUp:Z,placeholder:Q,readOnly:H,renderSuffix:J,rows:K,slotProps:X={},slots:te={},startAdornment:z,type:Te="text",value:be}=i,ee=at(i,ERe),ye=x.value!=null?x.value:be,{current:Oe}=N.useRef(ye!=null),ie=N.useRef(),_e=N.useCallback(De=>{},[]),Ie=Jn(ie,k,x.ref,_e),[qe,st]=N.useState(!1),Pe=Yf(),tt=w0({props:i,muiFormControl:Pe,states:["color","disabled","error","hiddenLabel","size","required","filled"]});tt.focused=Pe?Pe.focused:qe,N.useEffect(()=>{!Pe&&h&&qe&&(st(!1),B&&B())},[Pe,h,qe,B]);const Ve=Pe&&Pe.onFilled,Xe=Pe&&Pe.onEmpty,et=N.useCallback(De=>{J_(De)?Ve&&Ve():Xe&&Xe()},[Ve,Xe]);da(()=>{Oe&&et({value:ye})},[ye,et,Oe]);const ft=De=>{if(tt.disabled){De.stopPropagation();return}W&&W(De),x.onFocus&&x.onFocus(De),Pe&&Pe.onFocus?Pe.onFocus(De):st(!0)},At=De=>{B&&B(De),x.onBlur&&x.onBlur(De),Pe&&Pe.onBlur?Pe.onBlur(De):st(!1)},Je=(De,...$e)=>{if(!Oe){const Ot=De.target||ie.current;if(Ot==null)throw new Error(n0(1));et({value:Ot.value})}x.onChange&&x.onChange(De,...$e),L&&L(De,...$e)};N.useEffect(()=>{et(ie.current)},[]);const pe=De=>{ie.current&&De.currentTarget===De.target&&ie.current.focus(),F&&F(De)};let le=E,he=x;A&&le==="input"&&(K?he=M({type:void 0,minRows:K,maxRows:K},he):he=M({type:void 0,maxRows:C,minRows:I},he),le=Yoe);const je=De=>{et(De.animationName==="mui-auto-fill-cancel"?ie.current:{value:"x"})};N.useEffect(()=>{Pe&&Pe.setAdornedStart(!!z)},[Pe,z]);const Ze=M({},i,{color:tt.color||"primary",disabled:tt.disabled,endAdornment:b,error:tt.error,focused:tt.focused,formControl:Pe,fullWidth:S,hiddenLabel:tt.hiddenLabel,multiline:A,size:tt.size,startAdornment:z,type:Te}),We=wRe(Ze),fe=te.root||u.Root||PR,xe=X.root||c.root||{},ve=te.input||u.Input||MR;return he=M({},he,(r=X.input)!=null?r:c.input),_.jsxs(N.Fragment,{children:[!g&&xRe,_.jsxs(fe,M({},xe,!$f(fe)&&{ownerState:M({},Ze,xe.ownerState)},{ref:n,onClick:pe},ee,{className:dt(We.root,xe.className,l,H&&"MuiInputBase-readOnly"),children:[z,_.jsx(IR.Provider,{value:null,children:_.jsx(ve,M({ownerState:Ze,"aria-invalid":tt.error,"aria-describedby":a,autoComplete:s,autoFocus:o,defaultValue:f,disabled:tt.disabled,id:w,onAnimationStart:je,name:D,placeholder:Q,readOnly:H,required:tt.required,rows:K,value:ye,onKeyDown:V,onKeyUp:Z,type:Te},he,!$f(ve)&&{as:le,ownerState:M({},Ze,he.ownerState)},{ref:Ie,className:dt(We.input,he.className,H&&"MuiInputBase-readOnly"),onBlur:At,onChange:Je,onFocus:ft}))}),b,J?J(M({},tt,{startAdornment:z})):null]}))]})}),vF=TRe;function kRe(e){return $t("MuiInput",e)}const CRe=M({},uu,Ft("MuiInput",["root","underline","input"])),mm=CRe;function ARe(e){return $t("MuiOutlinedInput",e)}const _Re=M({},uu,Ft("MuiOutlinedInput",["root","notchedOutline","input"])),uf=_Re;function RRe(e){return $t("MuiFilledInput",e)}const IRe=M({},uu,Ft("MuiFilledInput",["root","underline","input"])),cu=IRe,Koe=Ba(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown");function DRe(e){return $t("MuiAutocomplete",e)}const NRe=Ft("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"]),_r=NRe;var iZ,aZ;const PRe=["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"],MRe=["ref"],LRe=["key"],$Re=e=>{const{classes:t,disablePortal:n,expanded:r,focused:i,fullWidth:a,hasClearIcon:s,hasPopupIcon:o,inputFocused:l,popupOpen:u,size:c}=e,f={root:["root",r&&"expanded",i&&"focused",a&&"fullWidth",s&&"hasClearIcon",o&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${ht(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 Mt(f,DRe,t)},FRe=Re("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:i,hasPopupIcon:a,inputFocused:s,size:o}=n;return[{[`& .${_r.tag}`]:t.tag},{[`& .${_r.tag}`]:t[`tagSize${ht(o)}`]},{[`& .${_r.inputRoot}`]:t.inputRoot},{[`& .${_r.input}`]:t.input},{[`& .${_r.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,a&&t.hasPopupIcon,i&&t.hasClearIcon]}})(({ownerState:e})=>M({[`&.${_r.focused} .${_r.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${_r.clearIndicator}`]:{visibility:"visible"}}},e.fullWidth&&{width:"100%"},{[`& .${_r.tag}`]:M({margin:3,maxWidth:"calc(100% - 6px)"},e.size==="small"&&{margin:2,maxWidth:"calc(100% - 4px)"}),[`& .${_r.inputRoot}`]:{flexWrap:"wrap",[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:30},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:56},[`& .${_r.input}`]:{width:0,minWidth:30}},[`& .${mm.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${mm.root}.${uu.sizeSmall}`]:{[`& .${mm.input}`]:{padding:"2px 4px 3px 0"}},[`& .${uf.root}`]:{padding:9,[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:39},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:65},[`& .${_r.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${_r.endAdornment}`]:{right:9}},[`& .${uf.root}.${uu.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${_r.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${cu.root}`]:{paddingTop:19,paddingLeft:8,[`.${_r.hasPopupIcon}&, .${_r.hasClearIcon}&`]:{paddingRight:39},[`.${_r.hasPopupIcon}.${_r.hasClearIcon}&`]:{paddingRight:65},[`& .${cu.input}`]:{padding:"7px 4px"},[`& .${_r.endAdornment}`]:{right:9}},[`& .${cu.root}.${uu.sizeSmall}`]:{paddingBottom:1,[`& .${cu.input}`]:{padding:"2.5px 4px"}},[`& .${uu.hiddenLabel}`]:{paddingTop:8},[`& .${cu.root}.${uu.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${_r.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${cu.root}.${uu.hiddenLabel}.${uu.sizeSmall}`]:{[`& .${_r.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${_r.input}`]:M({flexGrow:1,textOverflow:"ellipsis",opacity:0},e.inputFocused&&{opacity:1})})),BRe=Re("div",{name:"MuiAutocomplete",slot:"EndAdornment",overridesResolver:(e,t)=>t.endAdornment})({position:"absolute",right:0,top:"calc(50% - 14px)"}),URe=Re(Vi,{name:"MuiAutocomplete",slot:"ClearIndicator",overridesResolver:(e,t)=>t.clearIndicator})({marginRight:-2,padding:4,visibility:"hidden"}),zRe=Re(Vi,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:({ownerState:e},t)=>M({},t.popupIndicator,e.popupOpen&&t.popupIndicatorOpen)})(({ownerState:e})=>M({padding:2,marginRight:-2},e.popupOpen&&{transform:"rotate(180deg)"})),jRe=Re(AO,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${_r.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(({theme:e,ownerState:t})=>M({zIndex:(e.vars||e).zIndex.modal},t.disablePortal&&{position:"absolute"})),HRe=Re(hs,{name:"MuiAutocomplete",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({theme:e})=>M({},e.typography.body1,{overflow:"auto"})),VRe=Re("div",{name:"MuiAutocomplete",slot:"Loading",overridesResolver:(e,t)=>t.loading})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),WRe=Re("div",{name:"MuiAutocomplete",slot:"NoOptions",overridesResolver:(e,t)=>t.noOptions})(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"})),QRe=Re("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",[`& .${_r.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"},[`&.${_r.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"},[`&.${_r.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})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${_r.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${_r.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}}})),qRe=Re(uRe,{name:"MuiAutocomplete",slot:"GroupLabel",overridesResolver:(e,t)=>t.groupLabel})(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8})),GRe=Re("ul",{name:"MuiAutocomplete",slot:"GroupUl",overridesResolver:(e,t)=>t.groupUl})({padding:0,[`& .${_r.option}`]:{paddingLeft:24}}),YRe=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiAutocomplete"}),{autoComplete:l=!1,autoHighlight:u=!1,autoSelect:c=!1,blurOnSelect:f=!1,ChipProps:h,className:g,clearIcon:b=iZ||(iZ=_.jsx(G_e,{fontSize:"small"})),clearOnBlur:S=!o.freeSolo,clearOnEscape:w=!1,clearText:E="Clear",closeText:x="Close",componentsProps:k={},defaultValue:C=o.multiple?[]:null,disableClearable:I=!1,disableCloseOnSelect:A=!1,disabled:D=!1,disabledItemsFocusable:B=!1,disableListWrap:L=!1,disablePortal:F=!1,filterSelectedOptions:W=!1,forcePopupIcon:V="auto",freeSolo:Z=!1,fullWidth:Q=!1,getLimitTagsText:H=Be=>`+${Be}`,getOptionLabel:J,groupBy:K,handleHomeEndKeys:X=!o.freeSolo,includeInputInList:te=!1,limitTags:z=-1,ListboxComponent:Te="ul",ListboxProps:be,loading:ee=!1,loadingText:ye="Loading…",multiple:Oe=!1,noOptionsText:ie="No options",openOnFocus:_e=!1,openText:Ie="Open",PaperComponent:qe=hs,PopperComponent:st=AO,popupIcon:Pe=aZ||(aZ=_.jsx(Koe,{})),readOnly:tt=!1,renderGroup:Ve,renderInput:Xe,renderOption:et,renderTags:ft,selectOnFocus:At=!o.freeSolo,size:Je="medium",slotProps:pe={}}=o,le=at(o,PRe),{getRootProps:he,getInputProps:je,getInputLabelProps:Ze,getPopupIndicatorProps:We,getClearProps:fe,getTagProps:xe,getListboxProps:ve,getOptionProps:De,value:$e,dirty:Ot,expanded:Wt,id:Kt,popupOpen:gt,focused:Gt,focusedTag:ut,anchorEl:wt,setAnchorEl:Xt,inputValue:Ln,groupedOptions:$n}=tRe(M({},o,{componentName:"Autocomplete"})),jn=!I&&!D&&Ot&&!tt,sr=(!Z||V===!0)&&V!==!1,{onMouseDown:zr}=je(),{ref:Me}=be??{},Ue=ve(),{ref:lt}=Ue,Nt=at(Ue,MRe),Qt=Jn(lt,Me),yn=J||(Be=>{var Dt;return(Dt=Be.label)!=null?Dt:Be}),rn=M({},o,{disablePortal:F,expanded:Wt,focused:Gt,fullWidth:Q,getOptionLabel:yn,hasClearIcon:jn,hasPopupIcon:sr,inputFocused:ut===-1,popupOpen:gt,size:Je}),Yt=$Re(rn);let xn;if(Oe&&$e.length>0){const Be=Dt=>M({className:Yt.tag,disabled:D},xe(Dt));ft?xn=ft($e,Be,rn):xn=$e.map((Dt,en)=>_.jsx(yF,M({label:yn(Dt),size:Je},Be({index:en}),h)))}if(z>-1&&Array.isArray(xn)){const Be=xn.length-z;!Gt&&Be>0&&(xn=xn.splice(0,z),xn.push(_.jsx("span",{className:Yt.tag,children:H(Be)},xn.length)))}const Ye=Ve||(Be=>_.jsxs("li",{children:[_.jsx(qRe,{className:Yt.groupLabel,ownerState:rn,component:"div",children:Be.group}),_.jsx(GRe,{className:Yt.groupUl,ownerState:rn,children:Be.children})]},Be.key)),yt=et||((Be,Dt)=>{const{key:en}=Be,Vn=at(Be,LRe);return _.jsx("li",M({},Vn,{children:yn(Dt)}),en)}),Yn=(Be,Dt)=>{const en=De({option:Be,index:Dt});return yt(M({},en,{className:Yt.option}),Be,{selected:en["aria-selected"],index:Dt,inputValue:Ln},rn)},pn=(r=pe.clearIndicator)!=null?r:k.clearIndicator,Fn=(i=pe.paper)!=null?i:k.paper,Pi=(a=pe.popper)!=null?a:k.popper,nt=(s=pe.popupIndicator)!=null?s:k.popupIndicator;return _.jsxs(N.Fragment,{children:[_.jsx(FRe,M({ref:n,className:dt(Yt.root,g),ownerState:rn},he(le),{children:Xe({id:Kt,disabled:D,fullWidth:!0,size:Je==="small"?"small":void 0,InputLabelProps:Ze(),InputProps:M({ref:Xt,className:Yt.inputRoot,startAdornment:xn,onClick:Be=>{Be.target===Be.currentTarget&&zr(Be)}},(jn||sr)&&{endAdornment:_.jsxs(BRe,{className:Yt.endAdornment,ownerState:rn,children:[jn?_.jsx(URe,M({},fe(),{"aria-label":E,title:E,ownerState:rn},pn,{className:dt(Yt.clearIndicator,pn==null?void 0:pn.className),children:b})):null,sr?_.jsx(zRe,M({},We(),{disabled:D,"aria-label":gt?x:Ie,title:gt?x:Ie,ownerState:rn},nt,{className:dt(Yt.popupIndicator,nt==null?void 0:nt.className),children:Pe})):null]})}),inputProps:M({className:Yt.input,disabled:D,readOnly:tt},je())})})),wt?_.jsx(jRe,M({as:st,disablePortal:F,style:{width:wt?wt.clientWidth:null},ownerState:rn,role:"presentation",anchorEl:wt,open:gt},Pi,{className:dt(Yt.popper,Pi==null?void 0:Pi.className),children:_.jsxs(HRe,M({ownerState:rn,as:qe},Fn,{className:dt(Yt.paper,Fn==null?void 0:Fn.className),children:[ee&&$n.length===0?_.jsx(VRe,{className:Yt.loading,ownerState:rn,children:ye}):null,$n.length===0&&!Z&&!ee?_.jsx(WRe,{className:Yt.noOptions,ownerState:rn,role:"presentation",onMouseDown:Be=>{Be.preventDefault()},children:ie}):null,$n.length>0?_.jsx(QRe,M({as:Te,className:Yt.listbox,ownerState:rn},Nt,be,{ref:Qt,children:$n.map((Be,Dt)=>K?Ye({key:Be.key,group:Be.group,children:Be.options.map((en,Vn)=>Yn(en,Be.index+Vn))}):Yn(Be,Dt))})):null]}))})):null]})}),ZRe=YRe,XRe=Ba(_.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 KRe(e){return $t("MuiAvatar",e)}const JRe=Ft("MuiAvatar",["root","colorDefault","circular","rounded","square","img","fallback"]),eIe=["alt","children","className","component","imgProps","sizes","src","srcSet","variant"],tIe=e=>{const{classes:t,variant:n,colorDefault:r}=e;return Mt({root:["root",n,r&&"colorDefault"],img:["img"],fallback:["fallback"]},KRe,t)},nIe=Re("div",{name:"MuiAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],n.colorDefault&&t.colorDefault]}})(({theme:e})=>({position:"relative",display:"flex",alignItems:"center",justifyContent:"center",flexShrink:0,width:40,height:40,fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(20),lineHeight:1,borderRadius:"50%",overflow:"hidden",userSelect:"none",variants:[{props:{variant:"rounded"},style:{borderRadius:(e.vars||e).shape.borderRadius}},{props:{variant:"square"},style:{borderRadius:0}},{props:{colorDefault:!0},style:M({color:(e.vars||e).palette.background.default},e.vars?{backgroundColor:e.vars.palette.Avatar.defaultBg}:M({backgroundColor:e.palette.grey[400]},e.applyStyles("dark",{backgroundColor:e.palette.grey[600]})))}]})),rIe=Re("img",{name:"MuiAvatar",slot:"Img",overridesResolver:(e,t)=>t.img})({width:"100%",height:"100%",textAlign:"center",objectFit:"cover",color:"transparent",textIndent:1e4}),iIe=Re(XRe,{name:"MuiAvatar",slot:"Fallback",overridesResolver:(e,t)=>t.fallback})({width:"75%",height:"75%"});function aIe({crossOrigin:e,referrerPolicy:t,src:n,srcSet:r}){const[i,a]=N.useState(!1);return N.useEffect(()=>{if(!n&&!r)return;a(!1);let s=!0;const o=new Image;return o.onload=()=>{s&&a("loaded")},o.onerror=()=>{s&&a("error")},o.crossOrigin=e,o.referrerPolicy=t,o.src=n,r&&(o.srcset=r),()=>{s=!1}},[e,t,n,r]),i}const sIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiAvatar"}),{alt:i,children:a,className:s,component:o="div",imgProps:l,sizes:u,src:c,srcSet:f,variant:h="circular"}=r,g=at(r,eIe);let b=null;const S=aIe(M({},l,{src:c,srcSet:f})),w=c||f,E=w&&S!=="error",x=M({},r,{colorDefault:!E,component:o,variant:h}),k=tIe(x);return E?b=_.jsx(rIe,M({alt:i,srcSet:f,src:c,sizes:u,ownerState:x,className:k.img},l)):a!=null&&a!==""&&typeof a!="boolean"?b=a:w&&i?b=i[0]:b=_.jsx(iIe,{ownerState:x,className:k.fallback}),_.jsx(nIe,M({as:o,ownerState:x,className:dt(k.root,s),ref:n},g,{children:b}))}),n1=sIe;function oIe(e){return $t("MuiAvatarGroup",e)}const lIe=Ft("MuiAvatarGroup",["root","avatar"]),uIe=lIe,cIe=["children","className","component","componentsProps","max","renderSurplus","slotProps","spacing","total","variant"],sZ={small:-16,medium:null},dIe=e=>{const{classes:t}=e;return Mt({root:["root"],avatar:["avatar"]},oIe,t)},fIe=Re("div",{name:"MuiAvatarGroup",slot:"Root",overridesResolver:(e,t)=>M({[`& .${uIe.avatar}`]:t.avatar},t.root)})(({theme:e,ownerState:t})=>{const n=t.spacing&&sZ[t.spacing]!==void 0?sZ[t.spacing]:-t.spacing;return{[`& .${JRe.root}`]:{border:`2px solid ${(e.vars||e).palette.background.default}`,boxSizing:"content-box",marginLeft:n??-8,"&:last-child":{marginLeft:0}},display:"flex",flexDirection:"row-reverse"}}),hIe=N.forwardRef(function(t,n){var r;const i=_t({props:t,name:"MuiAvatarGroup"}),{children:a,className:s,component:o="div",componentsProps:l={},max:u=5,renderSurplus:c,slotProps:f={},spacing:h="medium",total:g,variant:b="circular"}=i,S=at(i,cIe);let w=u<2?2:u;const E=M({},i,{max:u,spacing:h,component:o,variant:b}),x=dIe(E),k=N.Children.toArray(a).filter(L=>N.isValidElement(L)),C=g||k.length;C===w&&(w+=1),w=Math.min(C+1,w);const I=Math.min(k.length,w-1),A=Math.max(C-w,C-I,0),D=c?c(A):`+${A}`,B=(r=f.additionalAvatar)!=null?r:l.additionalAvatar;return _.jsxs(fIe,M({as:o,ownerState:E,className:dt(x.root,s),ref:n},S,{children:[A?_.jsx(n1,M({variant:b},B,{className:dt(x.avatar,B==null?void 0:B.className),children:D})):null,k.slice(0,I).reverse().map(L=>N.cloneElement(L,{className:dt(L.props.className,x.avatar),variant:L.props.variant||b}))]}))}),pIe=hIe,mIe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"],gIe={entering:{opacity:1},entered:{opacity:1}},bIe=N.forwardRef(function(t,n){const r=Ni(),i={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:a,appear:s=!0,children:o,easing:l,in:u,onEnter:c,onEntered:f,onEntering:h,onExit:g,onExited:b,onExiting:S,style:w,timeout:E=i,TransitionComponent:x=oT}=t,k=at(t,mIe),C=N.useRef(null),I=Jn(C,o.ref,n),A=Q=>H=>{if(Q){const J=C.current;H===void 0?Q(J):Q(J,H)}},D=A(h),B=A((Q,H)=>{cF(Q);const J=i0({style:w,timeout:E,easing:l},{mode:"enter"});Q.style.webkitTransition=r.transitions.create("opacity",J),Q.style.transition=r.transitions.create("opacity",J),c&&c(Q,H)}),L=A(f),F=A(S),W=A(Q=>{const H=i0({style:w,timeout:E,easing:l},{mode:"exit"});Q.style.webkitTransition=r.transitions.create("opacity",H),Q.style.transition=r.transitions.create("opacity",H),g&&g(Q)}),V=A(b),Z=Q=>{a&&a(C.current,Q)};return _.jsx(x,M({appear:s,in:u,nodeRef:C,onEnter:B,onEntered:L,onEntering:D,onExit:W,onExited:V,onExiting:F,addEndListener:Z,timeout:E},k,{children:(Q,H)=>N.cloneElement(o,M({style:M({opacity:0,visibility:Q==="exited"&&!u?"hidden":void 0},gIe[Q],w,o.props.style),ref:I},H))}))}),ap=bIe;function yIe(e){return $t("MuiBackdrop",e)}Ft("MuiBackdrop",["root","invisible"]);const vIe=["children","className","component","components","componentsProps","invisible","open","slotProps","slots","TransitionComponent","transitionDuration"],OIe=e=>{const{classes:t,invisible:n}=e;return Mt({root:["root",n&&"invisible"]},yIe,t)},SIe=Re("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})(({ownerState:e})=>M({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"})),EIe=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiBackdrop"}),{children:o,className:l,component:u="div",components:c={},componentsProps:f={},invisible:h=!1,open:g,slotProps:b={},slots:S={},TransitionComponent:w=ap,transitionDuration:E}=s,x=at(s,vIe),k=M({},s,{component:u,invisible:h}),C=OIe(k),I=(r=b.root)!=null?r:f.root;return _.jsx(w,M({in:g,timeout:E},x,{children:_.jsx(SIe,M({"aria-hidden":!0},I,{as:(i=(a=S.root)!=null?a:c.Root)!=null?i:u,className:dt(C.root,l,I==null?void 0:I.className),ownerState:M({},k,I==null?void 0:I.ownerState),classes:C,ref:n,children:o}))}))}),_1=EIe,wIe=Ft("MuiBox",["root"]),xIe=wIe,TIe=rF(),kIe=FAe({themeId:u1,defaultTheme:TIe,defaultClassName:xIe.root,generateClassName:Y$.generate}),Qa=kIe;function CIe(e){return $t("MuiButton",e)}const AIe=Ft("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"]),ZC=AIe,_Ie=N.createContext({}),RIe=_Ie,IIe=N.createContext(void 0),DIe=IIe,NIe=["children","color","component","className","disabled","disableElevation","disableFocusRipple","endIcon","focusVisibleClassName","fullWidth","size","startIcon","type","variant"],PIe=e=>{const{color:t,disableElevation:n,fullWidth:r,size:i,variant:a,classes:s}=e,o={root:["root",a,`${a}${ht(t)}`,`size${ht(i)}`,`${a}Size${ht(i)}`,t==="inherit"&&"colorInherit",n&&"disableElevation",r&&"fullWidth"],label:["label"],startIcon:["startIcon",`iconSize${ht(i)}`],endIcon:["endIcon",`iconSize${ht(i)}`]},l=Mt(o,CIe,s);return M({},s,l)},Joe=e=>M({},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}}),MIe=Re(Cu,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${ht(n.color)}`],t[`size${ht(n.size)}`],t[`${n.variant}Size${ht(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth]}})(({theme:e,ownerState:t})=>{var n,r;const i=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],a=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return M({},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":M({textDecoration:"none",backgroundColor:e.vars?`rgba(${e.vars.palette.text.primaryChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(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})`:Rn(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})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},t.variant==="contained"&&{backgroundColor:e.vars?e.vars.palette.Button.inheritContainedHoverBg:a,boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2],backgroundColor:(e.vars||e).palette.grey[300]}},t.variant==="contained"&&t.color!=="inherit"&&{backgroundColor:(e.vars||e).palette[t.color].dark,"@media (hover: none)":{backgroundColor:(e.vars||e).palette[t.color].main}}),"&:active":M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[8]}),[`&.${ZC.focusVisible}`]:M({},t.variant==="contained"&&{boxShadow:(e.vars||e).shadows[6]}),[`&.${ZC.disabled}`]:M({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 ${Rn(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"},[`&.${ZC.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ZC.disabled}`]:{boxShadow:"none"}}),LIe=Re("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,t[`iconSize${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:8,marginLeft:-4},e.size==="small"&&{marginLeft:-2},Joe(e))),$Ie=Re("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,t[`iconSize${ht(n.size)}`]]}})(({ownerState:e})=>M({display:"inherit",marginRight:-4,marginLeft:8},e.size==="small"&&{marginRight:-2},Joe(e))),FIe=N.forwardRef(function(t,n){const r=N.useContext(RIe),i=N.useContext(DIe),a=bR(r,t),s=_t({props:a,name:"MuiButton"}),{children:o,color:l="primary",component:u="button",className:c,disabled:f=!1,disableElevation:h=!1,disableFocusRipple:g=!1,endIcon:b,focusVisibleClassName:S,fullWidth:w=!1,size:E="medium",startIcon:x,type:k,variant:C="text"}=s,I=at(s,NIe),A=M({},s,{color:l,component:u,disabled:f,disableElevation:h,disableFocusRipple:g,fullWidth:w,size:E,type:k,variant:C}),D=PIe(A),B=x&&_.jsx(LIe,{className:D.startIcon,ownerState:A,children:x}),L=b&&_.jsx($Ie,{className:D.endIcon,ownerState:A,children:b}),F=i||"";return _.jsxs(MIe,M({ownerState:A,className:dt(r.className,D.root,c,F),component:u,disabled:f,focusRipple:!g,focusVisibleClassName:dt(D.focusVisible,S),ref:n,type:k},I,{classes:D,children:[B,o,L]}))}),ss=FIe;function BIe(e){return $t("MuiCard",e)}Ft("MuiCard",["root"]);const UIe=["className","raised"],zIe=e=>{const{classes:t}=e;return Mt({root:["root"]},BIe,t)},jIe=Re(hs,{name:"MuiCard",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({overflow:"hidden"})),HIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCard"}),{className:i,raised:a=!1}=r,s=at(r,UIe),o=M({},r,{raised:a}),l=zIe(o);return _.jsx(jIe,M({className:dt(l.root,i),elevation:a?8:void 0,ref:n,ownerState:o},s))}),OF=HIe;function VIe(e){return $t("MuiCardActionArea",e)}const WIe=Ft("MuiCardActionArea",["root","focusVisible","focusHighlight"]),xN=WIe,QIe=["children","className","focusVisibleClassName"],qIe=e=>{const{classes:t}=e;return Mt({root:["root"],focusHighlight:["focusHighlight"]},VIe,t)},GIe=Re(Cu,{name:"MuiCardActionArea",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"block",textAlign:"inherit",borderRadius:"inherit",width:"100%",[`&:hover .${xN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.hoverOpacity,"@media (hover: none)":{opacity:0}},[`&.${xN.focusVisible} .${xN.focusHighlight}`]:{opacity:(e.vars||e).palette.action.focusOpacity}})),YIe=Re("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})})),ZIe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCardActionArea"}),{children:i,className:a,focusVisibleClassName:s}=r,o=at(r,QIe),l=r,u=qIe(l);return _.jsxs(GIe,M({className:dt(u.root,a),focusVisibleClassName:dt(s,u.focusVisible),ref:n,ownerState:l},o,{children:[i,_.jsx(YIe,{className:u.focusHighlight,ownerState:l})]}))}),ele=ZIe;function XIe(e){return $t("MuiCardContent",e)}Ft("MuiCardContent",["root"]);const KIe=["className","component"],JIe=e=>{const{classes:t}=e;return Mt({root:["root"]},XIe,t)},e6e=Re("div",{name:"MuiCardContent",slot:"Root",overridesResolver:(e,t)=>t.root})(()=>({padding:16,"&:last-child":{paddingBottom:24}})),t6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCardContent"}),{className:i,component:a="div"}=r,s=at(r,KIe),o=M({},r,{component:a}),l=JIe(o);return _.jsx(e6e,M({as:a,className:dt(l.root,i),ownerState:o,ref:n},s))}),n6e=t6e;function r6e(e){return $t("PrivateSwitchBase",e)}Ft("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const i6e=["autoFocus","checked","checkedIcon","className","defaultChecked","disabled","disableFocusRipple","edge","icon","id","inputProps","inputRef","name","onBlur","onChange","onFocus","readOnly","required","tabIndex","type","value"],a6e=e=>{const{classes:t,checked:n,disabled:r,edge:i}=e,a={root:["root",n&&"checked",r&&"disabled",i&&`edge${ht(i)}`],input:["input"]};return Mt(a,r6e,t)},s6e=Re(Cu)(({ownerState:e})=>M({padding:9,borderRadius:"50%"},e.edge==="start"&&{marginLeft:e.size==="small"?-3:-12},e.edge==="end"&&{marginRight:e.size==="small"?-3:-12})),o6e=Re("input",{shouldForwardProp:_s})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),l6e=N.forwardRef(function(t,n){const{autoFocus:r,checked:i,checkedIcon:a,className:s,defaultChecked:o,disabled:l,disableFocusRipple:u=!1,edge:c=!1,icon:f,id:h,inputProps:g,inputRef:b,name:S,onBlur:w,onChange:E,onFocus:x,readOnly:k,required:C=!1,tabIndex:I,type:A,value:D}=t,B=at(t,i6e),[L,F]=Cs({controlled:i,default:!!o,name:"SwitchBase",state:"checked"}),W=Yf(),V=te=>{x&&x(te),W&&W.onFocus&&W.onFocus(te)},Z=te=>{w&&w(te),W&&W.onBlur&&W.onBlur(te)},Q=te=>{if(te.nativeEvent.defaultPrevented)return;const z=te.target.checked;F(z),E&&E(te,z)};let H=l;W&&typeof H>"u"&&(H=W.disabled);const J=A==="checkbox"||A==="radio",K=M({},t,{checked:L,disabled:H,disableFocusRipple:u,edge:c}),X=a6e(K);return _.jsxs(s6e,M({component:"span",className:dt(X.root,s),centerRipple:!0,focusRipple:!u,disabled:H,tabIndex:null,role:void 0,onFocus:V,onBlur:Z,ownerState:K,ref:n},B,{children:[_.jsx(o6e,M({autoFocus:r,checked:i,defaultChecked:o,className:X.input,disabled:H,id:J?h:void 0,name:S,onChange:Q,readOnly:k,ref:b,required:C,ownerState:K,tabIndex:I,type:A},A==="checkbox"&&D===void 0?{}:{value:D},g)),L?a:f]}))}),SF=l6e,u6e=Ba(_.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"),c6e=Ba(_.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"),d6e=Ba(_.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 f6e(e){return $t("MuiCheckbox",e)}const h6e=Ft("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),TN=h6e,p6e=["checkedIcon","color","icon","indeterminate","indeterminateIcon","inputProps","size","className"],m6e=e=>{const{classes:t,indeterminate:n,color:r,size:i}=e,a={root:["root",n&&"indeterminate",`color${ht(r)}`,`size${ht(i)}`]},s=Mt(a,f6e,t);return M({},t,s)},g6e=Re(SF,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${ht(n.size)}`],n.color!=="default"&&t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>M({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})`:Rn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${TN.checked}, &.${TN.indeterminate}`]:{color:(e.vars||e).palette[t.color].main},[`&.${TN.disabled}`]:{color:(e.vars||e).palette.action.disabled}})),b6e=_.jsx(c6e,{}),y6e=_.jsx(u6e,{}),v6e=_.jsx(d6e,{}),O6e=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiCheckbox"}),{checkedIcon:s=b6e,color:o="primary",icon:l=y6e,indeterminate:u=!1,indeterminateIcon:c=v6e,inputProps:f,size:h="medium",className:g}=a,b=at(a,p6e),S=u?c:l,w=u?c:s,E=M({},a,{color:o,indeterminate:u,size:h}),x=m6e(E);return _.jsx(g6e,M({type:"checkbox",inputProps:M({"data-indeterminate":u},f),icon:N.cloneElement(S,{fontSize:(r=S.props.fontSize)!=null?r:h}),checkedIcon:N.cloneElement(w,{fontSize:(i=w.props.fontSize)!=null?i:h}),ownerState:E,ref:n,className:dt(x.root,g)},b,{classes:x}))}),LR=O6e;function S6e(e){return $t("MuiCircularProgress",e)}Ft("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const E6e=["className","color","disableShrink","size","style","thickness","value","variant"];let $R=e=>e,oZ,lZ,uZ,cZ;const Xp=44,w6e=eT(oZ||(oZ=$R` - 0% { - transform: rotate(0deg); - } - - 100% { - transform: rotate(360deg); - } -`)),x6e=eT(lZ||(lZ=$R` - 0% { - stroke-dasharray: 1px, 200px; - stroke-dashoffset: 0; - } - - 50% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -15px; - } - - 100% { - stroke-dasharray: 100px, 200px; - stroke-dashoffset: -125px; - } -`)),T6e=e=>{const{classes:t,variant:n,color:r,disableShrink:i}=e,a={root:["root",n,`color${ht(r)}`],svg:["svg"],circle:["circle",`circle${ht(n)}`,i&&"circleDisableShrink"]};return Mt(a,S6e,t)},k6e=Re("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${ht(n.color)}`]]}})(({ownerState:e,theme:t})=>M({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"&&Q$(uZ||(uZ=$R` - animation: ${0} 1.4s linear infinite; - `),w6e)),C6e=Re("svg",{name:"MuiCircularProgress",slot:"Svg",overridesResolver:(e,t)=>t.svg})({display:"block"}),A6e=Re("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${ht(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(({ownerState:e,theme:t})=>M({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&&Q$(cZ||(cZ=$R` - animation: ${0} 1.4s ease-in-out infinite; - `),x6e)),_6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiCircularProgress"}),{className:i,color:a="primary",disableShrink:s=!1,size:o=40,style:l,thickness:u=3.6,value:c=0,variant:f="indeterminate"}=r,h=at(r,E6e),g=M({},r,{color:a,disableShrink:s,size:o,thickness:u,value:c,variant:f}),b=T6e(g),S={},w={},E={};if(f==="determinate"){const x=2*Math.PI*((Xp-u)/2);S.strokeDasharray=x.toFixed(3),E["aria-valuenow"]=Math.round(c),S.strokeDashoffset=`${((100-c)/100*x).toFixed(3)}px`,w.transform="rotate(-90deg)"}return _.jsx(k6e,M({className:dt(b.root,i),style:M({width:o,height:o},w,l),ownerState:g,ref:n,role:"progressbar"},E,h,{children:_.jsx(C6e,{className:b.svg,ownerState:g,viewBox:`${Xp/2} ${Xp/2} ${Xp} ${Xp}`,children:_.jsx(A6e,{className:b.circle,style:S,ownerState:g,cx:Xp,cy:Xp,r:(Xp-u)/2,fill:"none",strokeWidth:u})})}))}),wd=_6e,R6e=c4e({createStyledComponent:Re("div",{name:"MuiContainer",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`maxWidth${ht(String(n.maxWidth))}`],n.fixed&&t.fixed,n.disableGutters&&t.disableGutters]}}),useThemeProps:e=>_t({props:e,name:"MuiContainer"})}),EF=R6e,I6e=(e,t)=>M({WebkitFontSmoothing:"antialiased",MozOsxFontSmoothing:"grayscale",boxSizing:"border-box",WebkitTextSizeAdjust:"100%"},t&&!e.vars&&{colorScheme:e.palette.mode}),D6e=e=>M({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}}),N6e=(e,t=!1)=>{var n;const r={};t&&e.colorSchemes&&Object.entries(e.colorSchemes).forEach(([s,o])=>{var l;r[e.getColorSchemeSelector(s).replace(/\s*&/,"")]={colorScheme:(l=o.palette)==null?void 0:l.mode}});let i=M({html:I6e(e,t),"*, *::before, *::after":{boxSizing:"inherit"},"strong, b":{fontWeight:e.typography.fontWeightBold},body:M({margin:0},D6e(e),{"&::backdrop":{backgroundColor:(e.vars||e).palette.background.default}})},r);const a=(n=e.components)==null||(n=n.MuiCssBaseline)==null?void 0:n.styleOverrides;return a&&(i=[i,a]),i};function P6e(e){const t=_t({props:e,name:"MuiCssBaseline"}),{children:n,enableColorScheme:r=!1}=t;return _.jsxs(N.Fragment,{children:[_.jsx(Xoe,{styles:i=>N6e(i,r)}),n]})}function M6e(e){return $t("MuiModal",e)}Ft("MuiModal",["root","hidden","backdrop"]);const L6e=["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"],$6e=e=>{const{open:t,exited:n,classes:r}=e;return Mt({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},M6e,r)},F6e=Re("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})=>M({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0},!t.open&&t.exited&&{visibility:"hidden"})),B6e=Re(_1,{name:"MuiModal",slot:"Backdrop",overridesResolver:(e,t)=>t.backdrop})({zIndex:-1}),U6e=N.forwardRef(function(t,n){var r,i,a,s,o,l;const u=_t({name:"MuiModal",props:t}),{BackdropComponent:c=B6e,BackdropProps:f,className:h,closeAfterTransition:g=!1,children:b,container:S,component:w,components:E={},componentsProps:x={},disableAutoFocus:k=!1,disableEnforceFocus:C=!1,disableEscapeKeyDown:I=!1,disablePortal:A=!1,disableRestoreFocus:D=!1,disableScrollLock:B=!1,hideBackdrop:L=!1,keepMounted:F=!1,onBackdropClick:W,open:V,slotProps:Z,slots:Q}=u,H=at(u,L6e),J=M({},u,{closeAfterTransition:g,disableAutoFocus:k,disableEnforceFocus:C,disableEscapeKeyDown:I,disablePortal:A,disableRestoreFocus:D,disableScrollLock:B,hideBackdrop:L,keepMounted:F}),{getRootProps:K,getBackdropProps:X,getTransitionProps:te,portalRef:z,isTopModal:Te,exited:be,hasTransition:ee}=j5e(M({},J,{rootRef:n})),ye=M({},J,{exited:be}),Oe=$6e(ye),ie={};if(b.props.tabIndex===void 0&&(ie.tabIndex="-1"),ee){const{onEnter:Ve,onExited:Xe}=te();ie.onEnter=Ve,ie.onExited=Xe}const _e=(r=(i=Q==null?void 0:Q.root)!=null?i:E.Root)!=null?r:F6e,Ie=(a=(s=Q==null?void 0:Q.backdrop)!=null?s:E.Backdrop)!=null?a:c,qe=(o=Z==null?void 0:Z.root)!=null?o:x.root,st=(l=Z==null?void 0:Z.backdrop)!=null?l:x.backdrop,Pe=dr({elementType:_e,externalSlotProps:qe,externalForwardedProps:H,getSlotProps:K,additionalProps:{ref:n,as:w},ownerState:ye,className:dt(h,qe==null?void 0:qe.className,Oe==null?void 0:Oe.root,!ye.open&&ye.exited&&(Oe==null?void 0:Oe.hidden))}),tt=dr({elementType:Ie,externalSlotProps:st,additionalProps:f,getSlotProps:Ve=>X(M({},Ve,{onClick:Xe=>{W&&W(Xe),Ve!=null&&Ve.onClick&&Ve.onClick(Xe)}})),className:dt(st==null?void 0:st.className,f==null?void 0:f.className,Oe==null?void 0:Oe.backdrop),ownerState:ye});return!F&&!V&&(!ee||be)?null:_.jsx(Qoe,{ref:z,container:S,disablePortal:A,children:_.jsxs(_e,M({},Pe,{children:[!L&&c?_.jsx(Ie,M({},tt)):null,_.jsx(Loe,{disableEnforceFocus:C,disableAutoFocus:k,disableRestoreFocus:D,isEnabled:Te,open:V,children:N.cloneElement(b,ie)})]}))})}),x0=U6e;function z6e(e){return $t("MuiDialog",e)}const M2=Ft("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),j6e=N.createContext({}),H6e=j6e,V6e=["aria-describedby","aria-labelledby","BackdropComponent","BackdropProps","children","className","disableEscapeKeyDown","fullScreen","fullWidth","maxWidth","onBackdropClick","onClose","open","PaperComponent","PaperProps","scroll","TransitionComponent","transitionDuration","TransitionProps"],W6e=Re(_1,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),Q6e=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:i,fullScreen:a}=e,s={root:["root"],container:["container",`scroll${ht(n)}`],paper:["paper",`paperScroll${ht(n)}`,`paperWidth${ht(String(r))}`,i&&"paperFullWidth",a&&"paperFullScreen"]};return Mt(s,z6e,t)},q6e=Re(x0,{name:"MuiDialog",slot:"Root",overridesResolver:(e,t)=>t.root})({"@media print":{position:"absolute !important"}}),G6e=Re("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${ht(n.scroll)}`]]}})(({ownerState:e})=>M({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"}})),Y6e=Re(hs,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${ht(n.scroll)}`],t[`paperWidth${ht(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(({theme:e,ownerState:t})=>M({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)`,[`&.${M2.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}`,[`&.${M2.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,[`&.${M2.paperScrollBody}`]:{margin:0,maxWidth:"100%"}})),Z6e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialog"}),i=Ni(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":o,BackdropComponent:l,BackdropProps:u,children:c,className:f,disableEscapeKeyDown:h=!1,fullScreen:g=!1,fullWidth:b=!1,maxWidth:S="sm",onBackdropClick:w,onClose:E,open:x,PaperComponent:k=hs,PaperProps:C={},scroll:I="paper",TransitionComponent:A=ap,transitionDuration:D=a,TransitionProps:B}=r,L=at(r,V6e),F=M({},r,{disableEscapeKeyDown:h,fullScreen:g,fullWidth:b,maxWidth:S,scroll:I}),W=Q6e(F),V=N.useRef(),Z=K=>{V.current=K.target===K.currentTarget},Q=K=>{V.current&&(V.current=null,w&&w(K),E&&E(K,"backdropClick"))},H=Rd(o),J=N.useMemo(()=>({titleId:H}),[H]);return _.jsx(q6e,M({className:dt(W.root,f),closeAfterTransition:!0,components:{Backdrop:W6e},componentsProps:{backdrop:M({transitionDuration:D,as:l},u)},disableEscapeKeyDown:h,onClose:E,open:x,ref:n,onClick:Q,ownerState:F},L,{children:_.jsx(A,M({appear:!0,in:x,timeout:D,role:"presentation"},B,{children:_.jsx(G6e,{className:dt(W.container),onMouseDown:Z,ownerState:F,children:_.jsx(Y6e,M({as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":H},C,{className:dt(W.paper,C.className),ownerState:F,children:_.jsx(H6e.Provider,{value:J,children:c})}))})}))}))}),X6e=Z6e;function K6e(e){return $t("MuiDialogActions",e)}Ft("MuiDialogActions",["root","spacing"]);const J6e=["className","disableSpacing"],eDe=e=>{const{classes:t,disableSpacing:n}=e;return Mt({root:["root",!n&&"spacing"]},K6e,t)},tDe=Re("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})(({ownerState:e})=>M({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto"},!e.disableSpacing&&{"& > :not(style) ~ :not(style)":{marginLeft:8}})),nDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialogActions"}),{className:i,disableSpacing:a=!1}=r,s=at(r,J6e),o=M({},r,{disableSpacing:a}),l=eDe(o);return _.jsx(tDe,M({className:dt(l.root,i),ownerState:o,ref:n},s))}),rDe=nDe;function iDe(e){return $t("MuiDialogContent",e)}Ft("MuiDialogContent",["root","dividers"]);const aDe=Ft("MuiDialogTitle",["root"]),sDe=aDe,oDe=["className","dividers"],lDe=e=>{const{classes:t,dividers:n}=e;return Mt({root:["root",n&&"dividers"]},iDe,t)},uDe=Re("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(({theme:e,ownerState:t})=>M({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}`}:{[`.${sDe.root} + &`]:{paddingTop:0}})),cDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDialogContent"}),{className:i,dividers:a=!1}=r,s=at(r,oDe),o=M({},r,{dividers:a}),l=lDe(o);return _.jsx(uDe,M({className:dt(l.root,i),ownerState:o,ref:n},s))}),dDe=cDe;function fDe(e){return $t("MuiDivider",e)}const hDe=Ft("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),dZ=hDe,pDe=["absolute","children","className","component","flexItem","light","orientation","role","textAlign","variant"],mDe=e=>{const{absolute:t,children:n,classes:r,flexItem:i,light:a,orientation:s,textAlign:o,variant:l}=e;return Mt({root:["root",t&&"absolute",l,a&&"light",s==="vertical"&&"vertical",i&&"flexItem",n&&"withChildren",n&&s==="vertical"&&"withChildrenVertical",o==="right"&&s!=="vertical"&&"textAlignRight",o==="left"&&s!=="vertical"&&"textAlignLeft"],wrapper:["wrapper",s==="vertical"&&"wrapperVertical"]},fDe,r)},gDe=Re("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})=>M({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)`:Rn(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})=>M({},e.children&&{display:"flex",whiteSpace:"nowrap",textAlign:"center",border:0,"&::before, &::after":{content:'""',alignSelf:"center"}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation!=="vertical"&&{"&::before, &::after":{width:"100%",borderTop:`thin solid ${(e.vars||e).palette.divider}`}}),({theme:e,ownerState:t})=>M({},t.children&&t.orientation==="vertical"&&{flexDirection:"column","&::before, &::after":{height:"100%",borderLeft:`thin solid ${(e.vars||e).palette.divider}`}}),({ownerState:e})=>M({},e.textAlign==="right"&&e.orientation!=="vertical"&&{"&::before":{width:"90%"},"&::after":{width:"10%"}},e.textAlign==="left"&&e.orientation!=="vertical"&&{"&::before":{width:"10%"},"&::after":{width:"90%"}})),bDe=Re("span",{name:"MuiDivider",slot:"Wrapper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.wrapper,n.orientation==="vertical"&&t.wrapperVertical]}})(({theme:e,ownerState:t})=>M({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)`})),tle=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDivider"}),{absolute:i=!1,children:a,className:s,component:o=a?"div":"hr",flexItem:l=!1,light:u=!1,orientation:c="horizontal",role:f=o!=="hr"?"separator":void 0,textAlign:h="center",variant:g="fullWidth"}=r,b=at(r,pDe),S=M({},r,{absolute:i,component:o,flexItem:l,light:u,orientation:c,role:f,textAlign:h,variant:g}),w=mDe(S);return _.jsx(gDe,M({as:o,className:dt(w.root,s),role:f,ref:n,ownerState:S},b,{children:a?_.jsx(bDe,{className:w.wrapper,ownerState:S,children:a}):null}))});tle.muiSkipListHighlight=!0;const h1=tle,yDe=["addEndListener","appear","children","container","direction","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function vDe(e,t,n){const r=t.getBoundingClientRect(),i=n&&n.getBoundingClientRect(),a=_c(t);let s;if(t.fakeTransform)s=t.fakeTransform;else{const u=a.getComputedStyle(t);s=u.getPropertyValue("-webkit-transform")||u.getPropertyValue("transform")}let o=0,l=0;if(s&&s!=="none"&&typeof s=="string"){const u=s.split("(")[1].split(")")[0].split(",");o=parseInt(u[4],10),l=parseInt(u[5],10)}return e==="left"?i?`translateX(${i.right+o-r.left}px)`:`translateX(${a.innerWidth+o-r.left}px)`:e==="right"?i?`translateX(-${r.right-i.left-o}px)`:`translateX(-${r.left+r.width-o}px)`:e==="up"?i?`translateY(${i.bottom+l-r.top}px)`:`translateY(${a.innerHeight+l-r.top}px)`:i?`translateY(-${r.top-i.top+r.height-l}px)`:`translateY(-${r.top+r.height-l}px)`}function ODe(e){return typeof e=="function"?e():e}function XC(e,t,n){const r=ODe(n),i=vDe(e,t,r);i&&(t.style.webkitTransform=i,t.style.transform=i)}const SDe=N.forwardRef(function(t,n){const r=Ni(),i={enter:r.transitions.easing.easeOut,exit:r.transitions.easing.sharp},a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:s,appear:o=!0,children:l,container:u,direction:c="down",easing:f=i,in:h,onEnter:g,onEntered:b,onEntering:S,onExit:w,onExited:E,onExiting:x,style:k,timeout:C=a,TransitionComponent:I=oT}=t,A=at(t,yDe),D=N.useRef(null),B=Jn(l.ref,D,n),L=X=>te=>{X&&(te===void 0?X(D.current):X(D.current,te))},F=L((X,te)=>{XC(c,X,u),cF(X),g&&g(X,te)}),W=L((X,te)=>{const z=i0({timeout:C,style:k,easing:f},{mode:"enter"});X.style.webkitTransition=r.transitions.create("-webkit-transform",M({},z)),X.style.transition=r.transitions.create("transform",M({},z)),X.style.webkitTransform="none",X.style.transform="none",S&&S(X,te)}),V=L(b),Z=L(x),Q=L(X=>{const te=i0({timeout:C,style:k,easing:f},{mode:"exit"});X.style.webkitTransition=r.transitions.create("-webkit-transform",te),X.style.transition=r.transitions.create("transform",te),XC(c,X,u),w&&w(X)}),H=L(X=>{X.style.webkitTransition="",X.style.transition="",E&&E(X)}),J=X=>{s&&s(D.current,X)},K=N.useCallback(()=>{D.current&&XC(c,D.current,u)},[c,u]);return N.useEffect(()=>{if(h||c==="down"||c==="right")return;const X=kO(()=>{D.current&&XC(c,D.current,u)}),te=_c(D.current);return te.addEventListener("resize",X),()=>{X.clear(),te.removeEventListener("resize",X)}},[c,h,u]),N.useEffect(()=>{h||K()},[h,K]),_.jsx(I,M({nodeRef:D,onEnter:F,onEntered:V,onEntering:W,onExit:Q,onExited:H,onExiting:Z,addEndListener:J,appear:o,in:h,timeout:C},A,{children:(X,te)=>N.cloneElement(l,M({ref:B,style:M({visibility:X==="exited"&&!h?"hidden":void 0},k,l.props.style)},te))}))}),nle=SDe;function EDe(e){return $t("MuiDrawer",e)}Ft("MuiDrawer",["root","docked","paper","paperAnchorLeft","paperAnchorRight","paperAnchorTop","paperAnchorBottom","paperAnchorDockedLeft","paperAnchorDockedRight","paperAnchorDockedTop","paperAnchorDockedBottom","modal"]);const wDe=["BackdropProps"],xDe=["anchor","BackdropProps","children","className","elevation","hideBackdrop","ModalProps","onClose","open","PaperProps","SlideProps","TransitionComponent","transitionDuration","variant"],rle=(e,t)=>{const{ownerState:n}=e;return[t.root,(n.variant==="permanent"||n.variant==="persistent")&&t.docked,t.modal]},TDe=e=>{const{classes:t,anchor:n,variant:r}=e,i={root:["root"],docked:[(r==="permanent"||r==="persistent")&&"docked"],modal:["modal"],paper:["paper",`paperAnchor${ht(n)}`,r!=="temporary"&&`paperAnchorDocked${ht(n)}`]};return Mt(i,EDe,t)},kDe=Re(x0,{name:"MuiDrawer",slot:"Root",overridesResolver:rle})(({theme:e})=>({zIndex:(e.vars||e).zIndex.drawer})),fZ=Re("div",{shouldForwardProp:_s,name:"MuiDrawer",slot:"Docked",skipVariantsResolver:!1,overridesResolver:rle})({flex:"0 0 auto"}),CDe=Re(hs,{name:"MuiDrawer",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`paperAnchor${ht(n.anchor)}`],n.variant!=="temporary"&&t[`paperAnchorDocked${ht(n.anchor)}`]]}})(({theme:e,ownerState:t})=>M({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}`})),ile={left:"right",right:"left",top:"down",bottom:"up"};function ADe(e){return["left","right"].indexOf(e)!==-1}function _De(e,t){return e.direction==="rtl"&&ADe(t)?ile[t]:t}const RDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDrawer"}),i=Ni(),a={enter:i.transitions.duration.enteringScreen,exit:i.transitions.duration.leavingScreen},{anchor:s="left",BackdropProps:o,children:l,className:u,elevation:c=16,hideBackdrop:f=!1,ModalProps:{BackdropProps:h}={},onClose:g,open:b=!1,PaperProps:S={},SlideProps:w,TransitionComponent:E=nle,transitionDuration:x=a,variant:k="temporary"}=r,C=at(r.ModalProps,wDe),I=at(r,xDe),A=N.useRef(!1);N.useEffect(()=>{A.current=!0},[]);const D=_De(i,s),L=M({},r,{anchor:s,elevation:c,open:b,variant:k},I),F=TDe(L),W=_.jsx(CDe,M({elevation:k==="temporary"?c:0,square:!0},S,{className:dt(F.paper,S.className),ownerState:L,children:l}));if(k==="permanent")return _.jsx(fZ,M({className:dt(F.root,F.docked,u),ownerState:L,ref:n},I,{children:W}));const V=_.jsx(E,M({in:b,direction:ile[D],timeout:x,appear:A.current},w,{children:W}));return k==="persistent"?_.jsx(fZ,M({className:dt(F.root,F.docked,u),ownerState:L,ref:n},I,{children:V})):_.jsx(kDe,M({BackdropProps:M({},o,h,{transitionDuration:x}),className:dt(F.root,F.modal,u),open:b,ownerState:L,onClose:g,hideBackdrop:f,ref:n},I,C,{children:V}))}),IDe=RDe,DDe=["disableUnderline","components","componentsProps","fullWidth","hiddenLabel","inputComponent","multiline","slotProps","slots","type"],NDe=e=>{const{classes:t,disableUnderline:n}=e,i=Mt({root:["root",!n&&"underline"],input:["input"]},RRe,t);return M({},t,i)},PDe=Re(PR,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DR(e,t),!n.disableUnderline&&t.underline]}})(({theme:e,ownerState:t})=>{var n;const r=e.palette.mode==="light",i=r?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",a=r?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",s=r?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=r?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return M({position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:s,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a}},[`&.${cu.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:a},[`&.${cu.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o}},!t.disableUnderline&&{"&::after":{borderBottom:`2px solid ${(n=(e.vars||e).palette[t.color||"primary"])==null?void 0:n.main}`,left:0,bottom:0,content:'""',position:"absolute",right:0,transform:"scaleX(0)",transition:e.transitions.create("transform",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),pointerEvents:"none"},[`&.${cu.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${cu.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(.${cu.disabled}, .${cu.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${cu.disabled}:before`]:{borderBottomStyle:"dotted"}},t.startAdornment&&{paddingLeft:12},t.endAdornment&&{paddingRight:12},t.multiline&&M({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}))}),MDe=Re(MR,{name:"MuiFilledInput",slot:"Input",overridesResolver:NR})(({theme:e,ownerState:t})=>M({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})),ale=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiFilledInput"}),{components:l={},componentsProps:u,fullWidth:c=!1,inputComponent:f="input",multiline:h=!1,slotProps:g,slots:b={},type:S="text"}=o,w=at(o,DDe),E=M({},o,{fullWidth:c,inputComponent:f,multiline:h,type:S}),x=NDe(o),k={root:{ownerState:E},input:{ownerState:E}},C=g??u?yo(k,g??u):k,I=(r=(i=b.root)!=null?i:l.Root)!=null?r:PDe,A=(a=(s=b.input)!=null?s:l.Input)!=null?a:MDe;return _.jsx(vF,M({slots:{root:I,input:A},componentsProps:C,fullWidth:c,inputComponent:f,multiline:h,ref:n,type:S},w,{classes:x}))});ale.muiName="Input";const sle=ale;function LDe(e){return $t("MuiFormControl",e)}Ft("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const $De=["children","className","color","component","disabled","error","focused","fullWidth","hiddenLabel","margin","required","size","variant"],FDe=e=>{const{classes:t,margin:n,fullWidth:r}=e,i={root:["root",n!=="none"&&`margin${ht(n)}`,r&&"fullWidth"]};return Mt(i,LDe,t)},BDe=Re("div",{name:"MuiFormControl",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,t[`margin${ht(e.margin)}`],e.fullWidth&&t.fullWidth)})(({ownerState:e})=>M({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%"})),UDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormControl"}),{children:i,className:a,color:s="primary",component:o="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:f=!1,hiddenLabel:h=!1,margin:g="none",required:b=!1,size:S="medium",variant:w="outlined"}=r,E=at(r,$De),x=M({},r,{color:s,component:o,disabled:l,error:u,fullWidth:f,hiddenLabel:h,margin:g,required:b,size:S,variant:w}),k=FDe(x),[C,I]=N.useState(()=>{let Z=!1;return i&&N.Children.forEach(i,Q=>{if(!A2(Q,["Input","Select"]))return;const H=A2(Q,["Select"])?Q.props.input:Q;H&&vRe(H.props)&&(Z=!0)}),Z}),[A,D]=N.useState(()=>{let Z=!1;return i&&N.Children.forEach(i,Q=>{A2(Q,["Input","Select"])&&(J_(Q.props,!0)||J_(Q.props.inputProps,!0))&&(Z=!0)}),Z}),[B,L]=N.useState(!1);l&&B&&L(!1);const F=c!==void 0&&!l?c:B;let W;const V=N.useMemo(()=>({adornedStart:C,setAdornedStart:I,color:s,disabled:l,error:u,filled:A,focused:F,fullWidth:f,hiddenLabel:h,size:S,onBlur:()=>{L(!1)},onEmpty:()=>{D(!1)},onFilled:()=>{D(!0)},onFocus:()=>{L(!0)},registerEffect:W,required:b,variant:w}),[C,s,l,u,A,F,f,h,W,b,S,w]);return _.jsx(IR.Provider,{value:V,children:_.jsx(BDe,M({as:o,ownerState:x,className:dt(k.root,a),ref:n},E,{children:i}))})}),Lc=UDe,zDe=y4e({createStyledComponent:Re("div",{name:"MuiStack",slot:"Root",overridesResolver:(e,t)=>t.root}),useThemeProps:e=>_t({props:e,name:"MuiStack"})}),nr=zDe;function jDe(e){return $t("MuiFormControlLabel",e)}const HDe=Ft("MuiFormControlLabel",["root","labelPlacementStart","labelPlacementTop","labelPlacementBottom","disabled","label","error","required","asterisk"]),a2=HDe,VDe=["checked","className","componentsProps","control","disabled","disableTypography","inputRef","label","labelPlacement","name","onChange","required","slotProps","value"],WDe=e=>{const{classes:t,disabled:n,labelPlacement:r,error:i,required:a}=e,s={root:["root",n&&"disabled",`labelPlacement${ht(r)}`,i&&"error",a&&"required"],label:["label",n&&"disabled"],asterisk:["asterisk",i&&"error"]};return Mt(s,jDe,t)},QDe=Re("label",{name:"MuiFormControlLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${a2.label}`]:t.label},t.root,t[`labelPlacement${ht(n.labelPlacement)}`]]}})(({theme:e,ownerState:t})=>M({display:"inline-flex",alignItems:"center",cursor:"pointer",verticalAlign:"middle",WebkitTapHighlightColor:"transparent",marginLeft:-11,marginRight:16,[`&.${a2.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},{[`& .${a2.label}`]:{[`&.${a2.disabled}`]:{color:(e.vars||e).palette.text.disabled}}})),qDe=Re("span",{name:"MuiFormControlLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${a2.error}`]:{color:(e.vars||e).palette.error.main}})),GDe=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiFormControlLabel"}),{className:s,componentsProps:o={},control:l,disabled:u,disableTypography:c,label:f,labelPlacement:h="end",required:g,slotProps:b={}}=a,S=at(a,VDe),w=Yf(),E=(r=u??l.props.disabled)!=null?r:w==null?void 0:w.disabled,x=g??l.props.required,k={disabled:E,required:x};["checked","name","onChange","value","inputRef"].forEach(L=>{typeof l.props[L]>"u"&&typeof a[L]<"u"&&(k[L]=a[L])});const C=w0({props:a,muiFormControl:w,states:["error"]}),I=M({},a,{disabled:E,labelPlacement:h,required:x,error:C.error}),A=WDe(I),D=(i=b.typography)!=null?i:o.typography;let B=f;return B!=null&&B.type!==ur&&!c&&(B=_.jsx(ur,M({component:"span"},D,{className:dt(A.label,D==null?void 0:D.className),children:B}))),_.jsxs(QDe,M({className:dt(A.root,s),ownerState:I,ref:n},S,{children:[N.cloneElement(l,k),x?_.jsxs(nr,{display:"block",children:[B,_.jsxs(qDe,{ownerState:I,"aria-hidden":!0,className:A.asterisk,children:[" ","*"]})]}):B]}))}),Lw=GDe;function YDe(e){return $t("MuiFormGroup",e)}Ft("MuiFormGroup",["root","row","error"]);const ZDe=["className","row"],XDe=e=>{const{classes:t,row:n,error:r}=e;return Mt({root:["root",n&&"row",r&&"error"]},YDe,t)},KDe=Re("div",{name:"MuiFormGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.row&&t.row]}})(({ownerState:e})=>M({display:"flex",flexDirection:"column",flexWrap:"wrap"},e.row&&{flexDirection:"row"})),JDe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormGroup"}),{className:i,row:a=!1}=r,s=at(r,ZDe),o=Yf(),l=w0({props:r,muiFormControl:o,states:["error"]}),u=M({},r,{row:a,error:l.error}),c=XDe(u);return _.jsx(KDe,M({className:dt(c.root,i),ownerState:u,ref:n},s))}),wF=JDe;function eNe(e){return $t("MuiFormHelperText",e)}const tNe=Ft("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]),hZ=tNe;var pZ;const nNe=["children","className","component","disabled","error","filled","focused","margin","required","variant"],rNe=e=>{const{classes:t,contained:n,size:r,disabled:i,error:a,filled:s,focused:o,required:l}=e,u={root:["root",i&&"disabled",a&&"error",r&&`size${ht(r)}`,n&&"contained",o&&"focused",s&&"filled",l&&"required"]};return Mt(u,eNe,t)},iNe=Re("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${ht(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.caption,{textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${hZ.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${hZ.error}`]:{color:(e.vars||e).palette.error.main}},t.size==="small"&&{marginTop:4},t.contained&&{marginLeft:14,marginRight:14})),aNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormHelperText"}),{children:i,className:a,component:s="p"}=r,o=at(r,nNe),l=Yf(),u=w0({props:r,muiFormControl:l,states:["variant","size","disabled","error","filled","focused","required"]}),c=M({},r,{component:s,contained:u.variant==="filled"||u.variant==="outlined",variant:u.variant,size:u.size,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=rNe(c);return _.jsx(iNe,M({as:s,ownerState:c,className:dt(f.root,a),ref:n},o,{children:i===" "?pZ||(pZ=_.jsx("span",{className:"notranslate",children:"​"})):i}))}),_O=aNe;function sNe(e){return $t("MuiFormLabel",e)}const L2=Ft("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),oNe=["children","className","color","component","disabled","error","filled","focused","required"],lNe=e=>{const{classes:t,color:n,focused:r,disabled:i,error:a,filled:s,required:o}=e,l={root:["root",`color${ht(n)}`,i&&"disabled",a&&"error",s&&"filled",r&&"focused",o&&"required"],asterisk:["asterisk",a&&"error"]};return Mt(l,sNe,t)},uNe=Re("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:({ownerState:e},t)=>M({},t.root,e.color==="secondary"&&t.colorSecondary,e.filled&&t.filled)})(({theme:e,ownerState:t})=>M({color:(e.vars||e).palette.text.secondary},e.typography.body1,{lineHeight:"1.4375em",padding:0,position:"relative",[`&.${L2.focused}`]:{color:(e.vars||e).palette[t.color].main},[`&.${L2.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${L2.error}`]:{color:(e.vars||e).palette.error.main}})),cNe=Re("span",{name:"MuiFormLabel",slot:"Asterisk",overridesResolver:(e,t)=>t.asterisk})(({theme:e})=>({[`&.${L2.error}`]:{color:(e.vars||e).palette.error.main}})),dNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiFormLabel"}),{children:i,className:a,component:s="label"}=r,o=at(r,oNe),l=Yf(),u=w0({props:r,muiFormControl:l,states:["color","required","focused","disabled","error","filled"]}),c=M({},r,{color:u.color||"primary",component:s,disabled:u.disabled,error:u.error,filled:u.filled,focused:u.focused,required:u.required}),f=lNe(c);return _.jsxs(uNe,M({as:s,ownerState:c,className:dt(f.root,a),ref:n},o,{children:[i,u.required&&_.jsxs(cNe,{ownerState:c,"aria-hidden":!0,className:f.asterisk,children:[" ","*"]})]}))}),FR=dNe,fNe=N.createContext(),mZ=fNe;function hNe(e){return $t("MuiGrid",e)}const pNe=[0,1,2,3,4,5,6,7,8,9,10],mNe=["column-reverse","column","row-reverse","row"],gNe=["nowrap","wrap-reverse","wrap"],yE=["auto",!0,1,2,3,4,5,6,7,8,9,10,11,12],$w=Ft("MuiGrid",["root","container","item","zeroMinWidth",...pNe.map(e=>`spacing-xs-${e}`),...mNe.map(e=>`direction-xs-${e}`),...gNe.map(e=>`wrap-xs-${e}`),...yE.map(e=>`grid-xs-${e}`),...yE.map(e=>`grid-sm-${e}`),...yE.map(e=>`grid-md-${e}`),...yE.map(e=>`grid-lg-${e}`),...yE.map(e=>`grid-xl-${e}`)]),bNe=["className","columns","columnSpacing","component","container","direction","item","rowSpacing","spacing","wrap","zeroMinWidth"];function tv(e){const t=parseFloat(e);return`${t}${String(e).replace(String(t),"")||"px"}`}function yNe({theme:e,ownerState:t}){let n;return e.breakpoints.keys.reduce((r,i)=>{let a={};if(t[i]&&(n=t[i]),!n)return r;if(n===!0)a={flexBasis:0,flexGrow:1,maxWidth:"100%"};else if(n==="auto")a={flexBasis:"auto",flexGrow:0,flexShrink:0,maxWidth:"none",width:"auto"};else{const s=e1({values:t.columns,breakpoints:e.breakpoints.values}),o=typeof s=="object"?s[i]:s;if(o==null)return r;const l=`${Math.round(n/o*1e8)/1e6}%`;let u={};if(t.container&&t.item&&t.columnSpacing!==0){const c=e.spacing(t.columnSpacing);if(c!=="0px"){const f=`calc(${l} + ${tv(c)})`;u={flexBasis:f,maxWidth:f}}}a=M({flexBasis:l,flexGrow:0,maxWidth:l},u)}return e.breakpoints.values[i]===0?Object.assign(r,a):r[e.breakpoints.up(i)]=a,r},{})}function vNe({theme:e,ownerState:t}){const n=e1({values:t.direction,breakpoints:e.breakpoints.values});return _l({theme:e},n,r=>{const i={flexDirection:r};return r.indexOf("column")===0&&(i[`& > .${$w.item}`]={maxWidth:"none"}),i})}function ole({breakpoints:e,values:t}){let n="";Object.keys(t).forEach(i=>{n===""&&t[i]!==0&&(n=i)});const r=Object.keys(e).sort((i,a)=>e[i]-e[a]);return r.slice(0,r.indexOf(n))}function ONe({theme:e,ownerState:t}){const{container:n,rowSpacing:r}=t;let i={};if(n&&r!==0){const a=e1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=ole({breakpoints:e.breakpoints.values,values:a})),i=_l({theme:e},a,(o,l)=>{var u;const c=e.spacing(o);return c!=="0px"?{marginTop:`-${tv(c)}`,[`& > .${$w.item}`]:{paddingTop:tv(c)}}:(u=s)!=null&&u.includes(l)?{}:{marginTop:0,[`& > .${$w.item}`]:{paddingTop:0}}})}return i}function SNe({theme:e,ownerState:t}){const{container:n,columnSpacing:r}=t;let i={};if(n&&r!==0){const a=e1({values:r,breakpoints:e.breakpoints.values});let s;typeof a=="object"&&(s=ole({breakpoints:e.breakpoints.values,values:a})),i=_l({theme:e},a,(o,l)=>{var u;const c=e.spacing(o);return c!=="0px"?{width:`calc(100% + ${tv(c)})`,marginLeft:`-${tv(c)}`,[`& > .${$w.item}`]:{paddingLeft:tv(c)}}:(u=s)!=null&&u.includes(l)?{}:{width:"100%",marginLeft:0,[`& > .${$w.item}`]:{paddingLeft:0}}})}return i}function ENe(e,t,n={}){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[n[`spacing-xs-${String(e)}`]];const r=[];return t.forEach(i=>{const a=e[i];Number(a)>0&&r.push(n[`spacing-${i}-${String(a)}`])}),r}const wNe=Re("div",{name:"MuiGrid",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{container:r,direction:i,item:a,spacing:s,wrap:o,zeroMinWidth:l,breakpoints:u}=n;let c=[];r&&(c=ENe(s,u,t));const f=[];return u.forEach(h=>{const g=n[h];g&&f.push(t[`grid-${h}-${String(g)}`])}),[t.root,r&&t.container,a&&t.item,l&&t.zeroMinWidth,...c,i!=="row"&&t[`direction-xs-${String(i)}`],o!=="wrap"&&t[`wrap-xs-${String(o)}`],...f]}})(({ownerState:e})=>M({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}),vNe,ONe,SNe,yNe);function xNe(e,t){if(!e||e<=0)return[];if(typeof e=="string"&&!Number.isNaN(Number(e))||typeof e=="number")return[`spacing-xs-${String(e)}`];const n=[];return t.forEach(r=>{const i=e[r];if(Number(i)>0){const a=`spacing-${r}-${String(i)}`;n.push(a)}}),n}const TNe=e=>{const{classes:t,container:n,direction:r,item:i,spacing:a,wrap:s,zeroMinWidth:o,breakpoints:l}=e;let u=[];n&&(u=xNe(a,l));const c=[];l.forEach(h=>{const g=e[h];g&&c.push(`grid-${h}-${String(g)}`)});const f={root:["root",n&&"container",i&&"item",o&&"zeroMinWidth",...u,r!=="row"&&`direction-xs-${String(r)}`,s!=="wrap"&&`wrap-xs-${String(s)}`,...c]};return Mt(f,hNe,t)},kNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiGrid"}),{breakpoints:i}=Ni(),a=kR(r),{className:s,columns:o,columnSpacing:l,component:u="div",container:c=!1,direction:f="row",item:h=!1,rowSpacing:g,spacing:b=0,wrap:S="wrap",zeroMinWidth:w=!1}=a,E=at(a,bNe),x=g||b,k=l||b,C=N.useContext(mZ),I=c?o||12:C,A={},D=M({},E);i.keys.forEach(F=>{E[F]!=null&&(A[F]=E[F],delete D[F])});const B=M({},a,{columns:I,container:c,direction:f,item:h,rowSpacing:x,columnSpacing:k,wrap:S,zeroMinWidth:w,spacing:b},A,{breakpoints:i.keys}),L=TNe(B);return _.jsx(mZ.Provider,{value:I,children:_.jsx(wNe,M({ownerState:B,className:dt(L.root,s),as:u,ref:n},D))})}),Ny=kNe,CNe=["addEndListener","appear","children","easing","in","onEnter","onEntered","onEntering","onExit","onExited","onExiting","style","timeout","TransitionComponent"];function L8(e){return`scale(${e}, ${e**2})`}const ANe={entering:{opacity:1,transform:L8(1)},entered:{opacity:1,transform:"none"}},kN=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),lle=N.forwardRef(function(t,n){const{addEndListener:r,appear:i=!0,children:a,easing:s,in:o,onEnter:l,onEntered:u,onEntering:c,onExit:f,onExited:h,onExiting:g,style:b,timeout:S="auto",TransitionComponent:w=oT}=t,E=at(t,CNe),x=Ng(),k=N.useRef(),C=Ni(),I=N.useRef(null),A=Jn(I,a.ref,n),D=H=>J=>{if(H){const K=I.current;J===void 0?H(K):H(K,J)}},B=D(c),L=D((H,J)=>{cF(H);const{duration:K,delay:X,easing:te}=i0({style:b,timeout:S,easing:s},{mode:"enter"});let z;S==="auto"?(z=C.transitions.getAutoHeightDuration(H.clientHeight),k.current=z):z=K,H.style.transition=[C.transitions.create("opacity",{duration:z,delay:X}),C.transitions.create("transform",{duration:kN?z:z*.666,delay:X,easing:te})].join(","),l&&l(H,J)}),F=D(u),W=D(g),V=D(H=>{const{duration:J,delay:K,easing:X}=i0({style:b,timeout:S,easing:s},{mode:"exit"});let te;S==="auto"?(te=C.transitions.getAutoHeightDuration(H.clientHeight),k.current=te):te=J,H.style.transition=[C.transitions.create("opacity",{duration:te,delay:K}),C.transitions.create("transform",{duration:kN?te:te*.666,delay:kN?K:K||te*.333,easing:X})].join(","),H.style.opacity=0,H.style.transform=L8(.75),f&&f(H)}),Z=D(h),Q=H=>{S==="auto"&&x.start(k.current||0,H),r&&r(I.current,H)};return _.jsx(w,M({appear:i,in:o,nodeRef:I,onEnter:L,onEntered:F,onEntering:B,onExit:V,onExited:Z,onExiting:W,addEndListener:Q,timeout:S==="auto"?null:S},E,{children:(H,J)=>N.cloneElement(a,M({style:M({opacity:0,transform:L8(.75),visibility:H==="exited"&&!o?"hidden":void 0},ANe[H],b,a.props.style),ref:A},J))}))});lle.muiSupportAuto=!0;const e3=lle;function _Ne(e,t,n,r,i){const[a,s]=N.useState(()=>i&&n?n(e).matches:r?r(e).matches:t);return da(()=>{let o=!0;if(!n)return;const l=n(e),u=()=>{o&&s(l.matches)};return u(),l.addListener(u),()=>{o=!1,l.removeListener(u)}},[e,n]),a}const ule=N.useSyncExternalStore;function RNe(e,t,n,r,i){const a=N.useCallback(()=>t,[t]),s=N.useMemo(()=>{if(i&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return a},[a,e,r,i,n]),[o,l]=N.useMemo(()=>{if(n===null)return[a,()=>()=>{}];const c=n(e);return[()=>c.matches,f=>(c.addListener(f),()=>{c.removeListener(f)})]},[a,n,e]);return ule(l,o,s)}function RO(e,t={}){const n=TR(),r=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:a=r?window.matchMedia:null,ssrMatchMedia:s=null,noSsr:o=!1}=Coe({name:"MuiUseMediaQuery",props:t,theme:n});let l=typeof e=="function"?e(n):e;return l=l.replace(/^@media( ?)/m,""),(ule!==void 0?RNe:_Ne)(l,i,a,s,o)}function INe(e){return $t("MuiIcon",e)}Ft("MuiIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const DNe=["baseClassName","className","color","component","fontSize"],NNe=e=>{const{color:t,fontSize:n,classes:r}=e,i={root:["root",t!=="inherit"&&`color${ht(t)}`,`fontSize${ht(n)}`]};return Mt(i,INe,r)},PNe=Re("span",{name:"MuiIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${ht(n.color)}`],t[`fontSize${ht(n.fontSize)}`]]}})(({theme:e,ownerState:t})=>({userSelect:"none",width:"1em",height:"1em",overflow:"hidden",display:"inline-block",textAlign:"center",flexShrink:0,fontSize:{inherit:"inherit",small:e.typography.pxToRem(20),medium:e.typography.pxToRem(24),large:e.typography.pxToRem(36)}[t.fontSize],color:{primary:(e.vars||e).palette.primary.main,secondary:(e.vars||e).palette.secondary.main,info:(e.vars||e).palette.info.main,success:(e.vars||e).palette.success.main,warning:(e.vars||e).palette.warning.main,action:(e.vars||e).palette.action.active,error:(e.vars||e).palette.error.main,disabled:(e.vars||e).palette.action.disabled,inherit:void 0}[t.color]})),cle=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiIcon"}),{baseClassName:i="material-icons",className:a,color:s="inherit",component:o="span",fontSize:l="medium"}=r,u=at(r,DNe),c=M({},r,{baseClassName:i,color:s,component:o,fontSize:l}),f=NNe(c);return _.jsx(PNe,M({as:o,className:dt(i,"notranslate",f.root,a),ownerState:c,"aria-hidden":!0,ref:n},u))});cle.muiName="Icon";const MNe=cle,LNe=["disableUnderline","components","componentsProps","fullWidth","inputComponent","multiline","slotProps","slots","type"],$Ne=e=>{const{classes:t,disableUnderline:n}=e,i=Mt({root:["root",!n&&"underline"],input:["input"]},kRe,t);return M({},t,i)},FNe=Re(PR,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...DR(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})`),M({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"},[`&.${mm.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${mm.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(.${mm.disabled}, .${mm.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${r}`}},[`&.${mm.disabled}:before`]:{borderBottomStyle:"dotted"}})}),BNe=Re(MR,{name:"MuiInput",slot:"Input",overridesResolver:NR})({}),dle=N.forwardRef(function(t,n){var r,i,a,s;const o=_t({props:t,name:"MuiInput"}),{disableUnderline:l,components:u={},componentsProps:c,fullWidth:f=!1,inputComponent:h="input",multiline:g=!1,slotProps:b,slots:S={},type:w="text"}=o,E=at(o,LNe),x=$Ne(o),C={root:{ownerState:{disableUnderline:l}}},I=b??c?yo(b??c,C):C,A=(r=(i=S.root)!=null?i:u.Root)!=null?r:FNe,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:BNe;return _.jsx(vF,M({slots:{root:A,input:D},slotProps:I,fullWidth:f,inputComponent:h,multiline:g,ref:n,type:w},E,{classes:x}))});dle.muiName="Input";const fle=dle;function UNe(e){return $t("MuiInputAdornment",e)}const zNe=Ft("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]),gZ=zNe;var bZ;const jNe=["children","className","component","disablePointerEvents","disableTypography","position","variant"],HNe=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${ht(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},VNe=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:i,size:a,variant:s}=e,o={root:["root",n&&"disablePointerEvents",i&&`position${ht(i)}`,s,r&&"hiddenLabel",a&&`size${ht(a)}`]};return Mt(o,UNe,t)},WNe=Re("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:HNe})(({theme:e,ownerState:t})=>M({display:"flex",height:"0.01em",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active},t.variant==="filled"&&{[`&.${gZ.positionStart}&:not(.${gZ.hiddenLabel})`]:{marginTop:16}},t.position==="start"&&{marginRight:8},t.position==="end"&&{marginLeft:8},t.disablePointerEvents===!0&&{pointerEvents:"none"})),QNe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiInputAdornment"}),{children:i,className:a,component:s="div",disablePointerEvents:o=!1,disableTypography:l=!1,position:u,variant:c}=r,f=at(r,jNe),h=Yf()||{};let g=c;c&&h.variant,h&&!g&&(g=h.variant);const b=M({},r,{hiddenLabel:h.hiddenLabel,size:h.size,disablePointerEvents:o,position:u,variant:g}),S=VNe(b);return _.jsx(IR.Provider,{value:null,children:_.jsx(WNe,M({as:s,ownerState:b,className:dt(S.root,a),ref:n},f,{children:typeof i=="string"&&!l?_.jsx(ur,{color:"text.secondary",children:i}):_.jsxs(N.Fragment,{children:[u==="start"?bZ||(bZ=_.jsx("span",{className:"notranslate",children:"​"})):null,i]})}))})}),Fw=QNe;function qNe(e){return $t("MuiInputLabel",e)}Ft("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const GNe=["disableAnimation","margin","shrink","variant","className"],YNe=e=>{const{classes:t,formControl:n,size:r,shrink:i,disableAnimation:a,variant:s,required:o}=e,l={root:["root",n&&"formControl",!a&&"animated",i&&"shrink",r&&r!=="normal"&&`size${ht(r)}`,s],asterisk:[o&&"asterisk"]},u=Mt(l,qNe,t);return M({},t,u)},ZNe=Re(FR,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${L2.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})=>M({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"&&M({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&&M({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"&&M({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)"}))),XNe=N.forwardRef(function(t,n){const r=_t({name:"MuiInputLabel",props:t}),{disableAnimation:i=!1,shrink:a,className:s}=r,o=at(r,GNe),l=Yf();let u=a;typeof u>"u"&&l&&(u=l.filled||l.focused||l.adornedStart);const c=w0({props:r,muiFormControl:l,states:["size","variant","required","focused"]}),f=M({},r,{disableAnimation:i,formControl:l,shrink:u,size:c.size,variant:c.variant,required:c.required,focused:c.focused}),h=YNe(f);return _.jsx(ZNe,M({"data-shrink":u,ownerState:f,ref:n,className:dt(h.root,s)},o,{classes:h}))}),hle=XNe,KNe=N.createContext({}),Ec=KNe;function JNe(e){return $t("MuiList",e)}Ft("MuiList",["root","padding","dense","subheader"]);const ePe=["children","className","component","dense","disablePadding","subheader"],tPe=e=>{const{classes:t,disablePadding:n,dense:r,subheader:i}=e;return Mt({root:["root",!n&&"padding",r&&"dense",i&&"subheader"]},JNe,t)},nPe=Re("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})=>M({listStyle:"none",margin:0,padding:0,position:"relative"},!e.disablePadding&&{paddingTop:8,paddingBottom:8},e.subheader&&{paddingTop:0})),rPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiList"}),{children:i,className:a,component:s="ul",dense:o=!1,disablePadding:l=!1,subheader:u}=r,c=at(r,ePe),f=N.useMemo(()=>({dense:o}),[o]),h=M({},r,{component:s,dense:o,disablePadding:l}),g=tPe(h);return _.jsx(Ec.Provider,{value:f,children:_.jsxs(nPe,M({as:s,className:dt(g.root,a),ref:n,ownerState:h},c,{children:[u,i]}))})}),ple=rPe;function iPe(e){return $t("MuiListItem",e)}const aPe=Ft("MuiListItem",["root","container","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","padding","button","secondaryAction","selected"]),uy=aPe;function sPe(e){return $t("MuiListItemButton",e)}const oPe=Ft("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]),cy=oPe,lPe=["alignItems","autoFocus","component","children","dense","disableGutters","divider","focusVisibleClassName","selected","className"],uPe=(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]},cPe=e=>{const{alignItems:t,classes:n,dense:r,disabled:i,disableGutters:a,divider:s,selected:o}=e,u=Mt({root:["root",r&&"dense",!a&&"gutters",s&&"divider",i&&"disabled",t==="flex-start"&&"alignItemsFlexStart",o&&"selected"]},sPe,n);return M({},n,u)},dPe=Re(Cu,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiListItemButton",slot:"Root",overridesResolver:uPe})(({theme:e,ownerState:t})=>M({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"}},[`&.${cy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${cy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${cy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(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})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${cy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${cy.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})),fPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemButton"}),{alignItems:i="center",autoFocus:a=!1,component:s="div",children:o,dense:l=!1,disableGutters:u=!1,divider:c=!1,focusVisibleClassName:f,selected:h=!1,className:g}=r,b=at(r,lPe),S=N.useContext(Ec),w=N.useMemo(()=>({dense:l||S.dense||!1,alignItems:i,disableGutters:u}),[i,S.dense,l,u]),E=N.useRef(null);da(()=>{a&&E.current&&E.current.focus()},[a]);const x=M({},r,{alignItems:i,dense:w.dense,disableGutters:u,divider:c,selected:h}),k=cPe(x),C=Jn(E,n);return _.jsx(Ec.Provider,{value:w,children:_.jsx(dPe,M({ref:C,href:b.href||b.to,component:(b.href||b.to)&&s==="div"?"button":s,focusVisibleClassName:dt(k.focusVisible,f),ownerState:x,className:dt(k.root,g)},b,{classes:k,children:o}))})}),yZ=fPe;function hPe(e){return $t("MuiListItemSecondaryAction",e)}Ft("MuiListItemSecondaryAction",["root","disableGutters"]);const pPe=["className"],mPe=e=>{const{disableGutters:t,classes:n}=e;return Mt({root:["root",t&&"disableGutters"]},hPe,n)},gPe=Re("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})(({ownerState:e})=>M({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)"},e.disableGutters&&{right:0})),mle=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemSecondaryAction"}),{className:i}=r,a=at(r,pPe),s=N.useContext(Ec),o=M({},r,{disableGutters:s.disableGutters}),l=mPe(o);return _.jsx(gPe,M({className:dt(l.root,i),ownerState:o,ref:n},a))});mle.muiName="ListItemSecondaryAction";const xF=mle,bPe=["className"],yPe=["alignItems","autoFocus","button","children","className","component","components","componentsProps","ContainerComponent","ContainerProps","dense","disabled","disableGutters","disablePadding","divider","focusVisibleClassName","secondaryAction","selected","slotProps","slots"],vPe=(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]},OPe=e=>{const{alignItems:t,button:n,classes:r,dense:i,disabled:a,disableGutters:s,disablePadding:o,divider:l,hasSecondaryAction:u,selected:c}=e;return Mt({root:["root",i&&"dense",!s&&"gutters",!o&&"padding",l&&"divider",a&&"disabled",n&&"button",t==="flex-start"&&"alignItemsFlexStart",u&&"secondaryAction",c&&"selected"],container:["container"]},iPe,r)},SPe=Re("div",{name:"MuiListItem",slot:"Root",overridesResolver:vPe})(({theme:e,ownerState:t})=>M({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left"},!t.disablePadding&&M({paddingTop:8,paddingBottom:8},t.dense&&{paddingTop:4,paddingBottom:4},!t.disableGutters&&{paddingLeft:16,paddingRight:16},!!t.secondaryAction&&{paddingRight:48}),!!t.secondaryAction&&{[`& > .${cy.root}`]:{paddingRight:48}},{[`&.${uy.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${uy.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${uy.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${uy.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"}},[`&.${uy.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(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})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}}},t.hasSecondaryAction&&{paddingRight:48})),EPe=Re("li",{name:"MuiListItem",slot:"Container",overridesResolver:(e,t)=>t.container})({position:"relative"}),wPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItem"}),{alignItems:i="center",autoFocus:a=!1,button:s=!1,children:o,className:l,component:u,components:c={},componentsProps:f={},ContainerComponent:h="li",ContainerProps:{className:g}={},dense:b=!1,disabled:S=!1,disableGutters:w=!1,disablePadding:E=!1,divider:x=!1,focusVisibleClassName:k,secondaryAction:C,selected:I=!1,slotProps:A={},slots:D={}}=r,B=at(r.ContainerProps,bPe),L=at(r,yPe),F=N.useContext(Ec),W=N.useMemo(()=>({dense:b||F.dense||!1,alignItems:i,disableGutters:w}),[i,F.dense,b,w]),V=N.useRef(null);da(()=>{a&&V.current&&V.current.focus()},[a]);const Z=N.Children.toArray(o),Q=Z.length&&A2(Z[Z.length-1],["ListItemSecondaryAction"]),H=M({},r,{alignItems:i,autoFocus:a,button:s,dense:W.dense,disabled:S,disableGutters:w,disablePadding:E,divider:x,hasSecondaryAction:Q,selected:I}),J=OPe(H),K=Jn(V,n),X=D.root||c.Root||SPe,te=A.root||f.root||{},z=M({className:dt(J.root,te.className,l),disabled:S},L);let Te=u||"li";return s&&(z.component=u||"div",z.focusVisibleClassName=dt(uy.focusVisible,k),Te=Cu),Q?(Te=!z.component&&!u?"div":Te,h==="li"&&(Te==="li"?Te="div":z.component==="li"&&(z.component="div")),_.jsx(Ec.Provider,{value:W,children:_.jsxs(EPe,M({as:h,className:dt(J.container,g),ref:K,ownerState:H},B,{children:[_.jsx(X,M({},te,!$f(X)&&{as:Te,ownerState:M({},H,te.ownerState)},z,{children:Z})),Z.pop()]}))})):_.jsx(Ec.Provider,{value:W,children:_.jsxs(X,M({},te,{as:Te,ref:K},!$f(X)&&{ownerState:M({},H,te.ownerState)},z,{children:[Z,C&&_.jsx(xF,{children:C})]}))})}),t3=wPe;function xPe(e){return $t("MuiListItemAvatar",e)}Ft("MuiListItemAvatar",["root","alignItemsFlexStart"]);const TPe=["className"],kPe=e=>{const{alignItems:t,classes:n}=e;return Mt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},xPe,n)},CPe=Re("div",{name:"MuiListItemAvatar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.alignItems==="flex-start"&&t.alignItemsFlexStart]}})(({ownerState:e})=>M({minWidth:56,flexShrink:0},e.alignItems==="flex-start"&&{marginTop:8})),APe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemAvatar"}),{className:i}=r,a=at(r,TPe),s=N.useContext(Ec),o=M({},r,{alignItems:s.alignItems}),l=kPe(o);return _.jsx(CPe,M({className:dt(l.root,i),ownerState:o,ref:n},a))}),_Pe=APe;function RPe(e){return $t("MuiListItemIcon",e)}const IPe=Ft("MuiListItemIcon",["root","alignItemsFlexStart"]),vZ=IPe,DPe=["className"],NPe=e=>{const{alignItems:t,classes:n}=e;return Mt({root:["root",t==="flex-start"&&"alignItemsFlexStart"]},RPe,n)},PPe=Re("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})=>M({minWidth:56,color:(e.vars||e).palette.action.active,flexShrink:0,display:"inline-flex"},t.alignItems==="flex-start"&&{marginTop:8})),MPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemIcon"}),{className:i}=r,a=at(r,DPe),s=N.useContext(Ec),o=M({},r,{alignItems:s.alignItems}),l=NPe(o);return _.jsx(PPe,M({className:dt(l.root,i),ownerState:o,ref:n},a))}),nv=MPe;function LPe(e){return $t("MuiListItemText",e)}const $Pe=Ft("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]),n3=$Pe,FPe=["children","className","disableTypography","inset","primary","primaryTypographyProps","secondary","secondaryTypographyProps"],BPe=e=>{const{classes:t,inset:n,primary:r,secondary:i,dense:a}=e;return Mt({root:["root",n&&"inset",a&&"dense",r&&i&&"multiline"],primary:["primary"],secondary:["secondary"]},LPe,t)},UPe=Re("div",{name:"MuiListItemText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${n3.primary}`]:t.primary},{[`& .${n3.secondary}`]:t.secondary},t.root,n.inset&&t.inset,n.primary&&n.secondary&&t.multiline,n.dense&&t.dense]}})(({ownerState:e})=>M({flex:"1 1 auto",minWidth:0,marginTop:4,marginBottom:4},e.primary&&e.secondary&&{marginTop:6,marginBottom:6},e.inset&&{paddingLeft:56})),zPe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiListItemText"}),{children:i,className:a,disableTypography:s=!1,inset:o=!1,primary:l,primaryTypographyProps:u,secondary:c,secondaryTypographyProps:f}=r,h=at(r,FPe),{dense:g}=N.useContext(Ec);let b=l??i,S=c;const w=M({},r,{disableTypography:s,inset:o,primary:!!b,secondary:!!S,dense:g}),E=BPe(w);return b!=null&&b.type!==ur&&!s&&(b=_.jsx(ur,M({variant:g?"body2":"body1",className:E.primary,component:u!=null&&u.variant?void 0:"span",display:"block"},u,{children:b}))),S!=null&&S.type!==ur&&!s&&(S=_.jsx(ur,M({variant:"body2",className:E.secondary,color:"text.secondary",display:"block"},f,{children:S}))),_.jsxs(UPe,M({className:dt(E.root,a),ownerState:w,ref:n},h,{children:[b,S]}))}),Bf=zPe,jPe=["actions","autoFocus","autoFocusItem","children","className","disabledItemsFocusable","disableListWrap","onKeyDown","variant"];function CN(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function OZ(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function gle(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 vE(e,t,n,r,i,a){let s=!1,o=i(e,t,t?n:!1);for(;o;){if(o===e.firstChild){if(s)return!1;s=!0}const l=r?!1:o.disabled||o.getAttribute("aria-disabled")==="true";if(!o.hasAttribute("tabindex")||!gle(o,a)||l)o=i(e,o,n);else return o.focus(),!0}return!1}const HPe=N.forwardRef(function(t,n){const{actions:r,autoFocus:i=!1,autoFocusItem:a=!1,children:s,className:o,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:f="selectedMenu"}=t,h=at(t,jPe),g=N.useRef(null),b=N.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});da(()=>{i&&g.current.focus()},[i]),N.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(k,C)=>{const I=!g.current.style.width;if(k.clientHeight{const C=g.current,I=k.key,A=Ei(C).activeElement;if(I==="ArrowDown")k.preventDefault(),vE(C,A,u,l,CN);else if(I==="ArrowUp")k.preventDefault(),vE(C,A,u,l,OZ);else if(I==="Home")k.preventDefault(),vE(C,null,u,l,CN);else if(I==="End")k.preventDefault(),vE(C,null,u,l,OZ);else if(I.length===1){const D=b.current,B=I.toLowerCase(),L=performance.now();D.keys.length>0&&(L-D.lastTime>500?(D.keys=[],D.repeating=!0,D.previousKeyMatched=!0):D.repeating&&B!==D.keys[0]&&(D.repeating=!1)),D.lastTime=L,D.keys.push(B);const F=A&&!D.repeating&&gle(A,D);D.previousKeyMatched&&(F||vE(C,A,!1,l,CN,D))?k.preventDefault():D.previousKeyMatched=!1}c&&c(k)},w=Jn(g,n);let E=-1;N.Children.forEach(s,(k,C)=>{if(!N.isValidElement(k)){E===C&&(E+=1,E>=s.length&&(E=-1));return}k.props.disabled||(f==="selectedMenu"&&k.props.selected||E===-1)&&(E=C),E===C&&(k.props.disabled||k.props.muiSkipListHighlight||k.type.muiSkipListHighlight)&&(E+=1,E>=s.length&&(E=-1))});const x=N.Children.map(s,(k,C)=>{if(C===E){const I={};return a&&(I.autoFocus=!0),k.props.tabIndex===void 0&&f==="selectedMenu"&&(I.tabIndex=0),N.cloneElement(k,I)}return k});return _.jsx(ple,M({role:"menu",ref:w,className:o,onKeyDown:S,tabIndex:i?0:-1},h,{children:x}))}),IO=HPe;function VPe(e){return $t("MuiPopover",e)}Ft("MuiPopover",["root","paper"]);const WPe=["onEntering"],QPe=["action","anchorEl","anchorOrigin","anchorPosition","anchorReference","children","className","container","elevation","marginThreshold","open","PaperProps","slots","slotProps","transformOrigin","TransitionComponent","transitionDuration","TransitionProps","disableScrollLock"],qPe=["slotProps"];function SZ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function EZ(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function wZ(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function AN(e){return typeof e=="function"?e():e}const GPe=e=>{const{classes:t}=e;return Mt({root:["root"],paper:["paper"]},VPe,t)},YPe=Re(x0,{name:"MuiPopover",slot:"Root",overridesResolver:(e,t)=>t.root})({}),ble=Re(hs,{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}),ZPe=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiPopover"}),{action:o,anchorEl:l,anchorOrigin:u={vertical:"top",horizontal:"left"},anchorPosition:c,anchorReference:f="anchorEl",children:h,className:g,container:b,elevation:S=8,marginThreshold:w=16,open:E,PaperProps:x={},slots:k,slotProps:C,transformOrigin:I={vertical:"top",horizontal:"left"},TransitionComponent:A=e3,transitionDuration:D="auto",TransitionProps:{onEntering:B}={},disableScrollLock:L=!1}=s,F=at(s.TransitionProps,WPe),W=at(s,QPe),V=(r=C==null?void 0:C.paper)!=null?r:x,Z=N.useRef(),Q=Jn(Z,V.ref),H=M({},s,{anchorOrigin:u,anchorReference:f,elevation:S,marginThreshold:w,externalPaperSlotProps:V,transformOrigin:I,TransitionComponent:A,transitionDuration:D,TransitionProps:F}),J=GPe(H),K=N.useCallback(()=>{if(f==="anchorPosition")return c;const Ve=AN(l),et=(Ve&&Ve.nodeType===1?Ve:Ei(Z.current).body).getBoundingClientRect();return{top:et.top+SZ(et,u.vertical),left:et.left+EZ(et,u.horizontal)}},[l,u.horizontal,u.vertical,c,f]),X=N.useCallback(Ve=>({vertical:SZ(Ve,I.vertical),horizontal:EZ(Ve,I.horizontal)}),[I.horizontal,I.vertical]),te=N.useCallback(Ve=>{const Xe={width:Ve.offsetWidth,height:Ve.offsetHeight},et=X(Xe);if(f==="none")return{top:null,left:null,transformOrigin:wZ(et)};const ft=K();let At=ft.top-et.vertical,Je=ft.left-et.horizontal;const pe=At+Xe.height,le=Je+Xe.width,he=_c(AN(l)),je=he.innerHeight-w,Ze=he.innerWidth-w;if(w!==null&&Atje){const We=pe-je;At-=We,et.vertical+=We}if(w!==null&&JeZe){const We=le-Ze;Je-=We,et.horizontal+=We}return{top:`${Math.round(At)}px`,left:`${Math.round(Je)}px`,transformOrigin:wZ(et)}},[l,f,K,X,w]),[z,Te]=N.useState(E),be=N.useCallback(()=>{const Ve=Z.current;if(!Ve)return;const Xe=te(Ve);Xe.top!==null&&(Ve.style.top=Xe.top),Xe.left!==null&&(Ve.style.left=Xe.left),Ve.style.transformOrigin=Xe.transformOrigin,Te(!0)},[te]);N.useEffect(()=>(L&&window.addEventListener("scroll",be),()=>window.removeEventListener("scroll",be)),[l,L,be]);const ee=(Ve,Xe)=>{B&&B(Ve,Xe),be()},ye=()=>{Te(!1)};N.useEffect(()=>{E&&be()}),N.useImperativeHandle(o,()=>E?{updatePosition:()=>{be()}}:null,[E,be]),N.useEffect(()=>{if(!E)return;const Ve=kO(()=>{be()}),Xe=_c(l);return Xe.addEventListener("resize",Ve),()=>{Ve.clear(),Xe.removeEventListener("resize",Ve)}},[l,E,be]);let Oe=D;D==="auto"&&!A.muiSupportAuto&&(Oe=void 0);const ie=b||(l?Ei(AN(l)).body:void 0),_e=(i=k==null?void 0:k.root)!=null?i:YPe,Ie=(a=k==null?void 0:k.paper)!=null?a:ble,qe=dr({elementType:Ie,externalSlotProps:M({},V,{style:z?V.style:M({},V.style,{opacity:0})}),additionalProps:{elevation:S,ref:Q},ownerState:H,className:dt(J.paper,V==null?void 0:V.className)}),st=dr({elementType:_e,externalSlotProps:(C==null?void 0:C.root)||{},externalForwardedProps:W,additionalProps:{ref:n,slotProps:{backdrop:{invisible:!0}},container:ie,open:E},ownerState:H,className:dt(J.root,g)}),{slotProps:Pe}=st,tt=at(st,qPe);return _.jsx(_e,M({},tt,!$f(_e)&&{slotProps:Pe,disableScrollLock:L},{children:_.jsx(A,M({appear:!0,in:E,onEntering:ee,onExited:ye,timeout:Oe},F,{children:_.jsx(Ie,M({},qe,{children:h}))}))}))}),DO=ZPe;function XPe(e){return $t("MuiMenu",e)}Ft("MuiMenu",["root","paper","list"]);const KPe=["onEntering"],JPe=["autoFocus","children","className","disableAutoFocusItem","MenuListProps","onClose","open","PaperProps","PopoverClasses","transitionDuration","TransitionProps","variant","slots","slotProps"],e7e={vertical:"top",horizontal:"right"},t7e={vertical:"top",horizontal:"left"},n7e=e=>{const{classes:t}=e;return Mt({root:["root"],paper:["paper"],list:["list"]},XPe,t)},r7e=Re(DO,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiMenu",slot:"Root",overridesResolver:(e,t)=>t.root})({}),i7e=Re(ble,{name:"MuiMenu",slot:"Paper",overridesResolver:(e,t)=>t.paper})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),a7e=Re(IO,{name:"MuiMenu",slot:"List",overridesResolver:(e,t)=>t.list})({outline:0}),s7e=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiMenu"}),{autoFocus:s=!0,children:o,className:l,disableAutoFocusItem:u=!1,MenuListProps:c={},onClose:f,open:h,PaperProps:g={},PopoverClasses:b,transitionDuration:S="auto",TransitionProps:{onEntering:w}={},variant:E="selectedMenu",slots:x={},slotProps:k={}}=a,C=at(a.TransitionProps,KPe),I=at(a,JPe),A=Ni(),D=A.direction==="rtl",B=M({},a,{autoFocus:s,disableAutoFocusItem:u,MenuListProps:c,onEntering:w,PaperProps:g,transitionDuration:S,TransitionProps:C,variant:E}),L=n7e(B),F=s&&!u&&h,W=N.useRef(null),V=(te,z)=>{W.current&&W.current.adjustStyleForScrollbar(te,A),w&&w(te,z)},Z=te=>{te.key==="Tab"&&(te.preventDefault(),f&&f(te,"tabKeyDown"))};let Q=-1;N.Children.map(o,(te,z)=>{N.isValidElement(te)&&(te.props.disabled||(E==="selectedMenu"&&te.props.selected||Q===-1)&&(Q=z))});const H=(r=x.paper)!=null?r:i7e,J=(i=k.paper)!=null?i:g,K=dr({elementType:x.root,externalSlotProps:k.root,ownerState:B,className:[L.root,l]}),X=dr({elementType:H,externalSlotProps:J,ownerState:B,className:L.paper});return _.jsx(r7e,M({onClose:f,anchorOrigin:{vertical:"bottom",horizontal:D?"right":"left"},transformOrigin:D?e7e:t7e,slots:{paper:H,root:x.root},slotProps:{root:K,paper:X},open:h,ref:n,transitionDuration:S,TransitionProps:M({onEntering:V},C),ownerState:B},I,{classes:b,children:_.jsx(a7e,M({onKeyDown:Z,actions:W,autoFocus:s&&(Q===-1||u),autoFocusItem:F,variant:E},c,{className:dt(L.list,c.className),children:o}))}))}),yle=s7e;function o7e(e){return $t("MuiMenuItem",e)}const l7e=Ft("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),OE=l7e,u7e=["autoFocus","component","dense","divider","disableGutters","focusVisibleClassName","role","tabIndex","className"],c7e=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},d7e=e=>{const{disabled:t,dense:n,divider:r,disableGutters:i,selected:a,classes:s}=e,l=Mt({root:["root",n&&"dense",t&&"disabled",!i&&"gutters",r&&"divider",a&&"selected"]},o7e,s);return M({},s,l)},f7e=Re(Cu,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:c7e})(({theme:e,ownerState:t})=>M({},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"}},[`&.${OE.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),[`&.${OE.focusVisible}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`&.${OE.selected}:hover`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(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})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${OE.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${OE.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${dZ.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${dZ.inset}`]:{marginLeft:52},[`& .${n3.root}`]:{marginTop:0,marginBottom:0},[`& .${n3.inset}`]:{paddingLeft:36},[`& .${vZ.root}`]:{minWidth:36}},!t.dense&&{[e.breakpoints.up("sm")]:{minHeight:"auto"}},t.dense&&M({minHeight:32,paddingTop:4,paddingBottom:4},e.typography.body2,{[`& .${vZ.root} svg`]:{fontSize:"1.25rem"}}))),h7e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiMenuItem"}),{autoFocus:i=!1,component:a="li",dense:s=!1,divider:o=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:f,className:h}=r,g=at(r,u7e),b=N.useContext(Ec),S=N.useMemo(()=>({dense:s||b.dense||!1,disableGutters:l}),[b.dense,s,l]),w=N.useRef(null);da(()=>{i&&w.current&&w.current.focus()},[i]);const E=M({},r,{dense:S.dense,divider:o,disableGutters:l}),x=d7e(r),k=Jn(w,n);let C;return r.disabled||(C=f!==void 0?f:-1),_.jsx(Ec.Provider,{value:S,children:_.jsx(f7e,M({ref:k,role:c,tabIndex:C,component:a,focusVisibleClassName:dt(x.focusVisible,u),className:dt(x.root,h)},g,{ownerState:E,classes:x}))})}),xu=h7e;function p7e(e){return $t("MuiNativeSelect",e)}const m7e=Ft("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),TF=m7e,g7e=["className","disabled","error","IconComponent","inputRef","variant"],b7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ht(n)}`,a&&"iconOpen",r&&"disabled"]};return Mt(o,p7e,t)},vle=({ownerState:e,theme:t})=>M({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":M({},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"},[`&.${TF.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}}),y7e=Re("select",{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:_s,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${TF.multiple}`]:t.multiple}]}})(vle),Ole=({ownerState:e,theme:t})=>M({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(t.vars||t).palette.action.active,[`&.${TF.disabled}`]:{color:(t.vars||t).palette.action.disabled}},e.open&&{transform:"rotate(180deg)"},e.variant==="filled"&&{right:7},e.variant==="outlined"&&{right:7}),v7e=Re("svg",{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ht(n.variant)}`],n.open&&t.iconOpen]}})(Ole),O7e=N.forwardRef(function(t,n){const{className:r,disabled:i,error:a,IconComponent:s,inputRef:o,variant:l="standard"}=t,u=at(t,g7e),c=M({},t,{disabled:i,variant:l,error:a}),f=b7e(c);return _.jsxs(N.Fragment,{children:[_.jsx(y7e,M({ownerState:c,className:dt(f.select,r),disabled:i,ref:o||n},u)),t.multiple?null:_.jsx(v7e,{as:s,ownerState:c,className:f.icon})]})}),S7e=O7e;var xZ;const E7e=["children","classes","className","label","notched"],w7e=Re("fieldset",{shouldForwardProp:_s})({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%"}),x7e=Re("legend",{shouldForwardProp:_s})(({ownerState:e,theme:t})=>M({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&&M({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 T7e(e){const{className:t,label:n,notched:r}=e,i=at(e,E7e),a=n!=null&&n!=="",s=M({},e,{notched:r,withLabel:a});return _.jsx(w7e,M({"aria-hidden":!0,className:t,ownerState:s},i,{children:_.jsx(x7e,{ownerState:s,children:a?_.jsx("span",{children:n}):xZ||(xZ=_.jsx("span",{className:"notranslate",children:"​"}))})}))}const k7e=["components","fullWidth","inputComponent","label","multiline","notched","slots","type"],C7e=e=>{const{classes:t}=e,r=Mt({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},ARe,t);return M({},t,r)},A7e=Re(PR,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:DR})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return M({position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${uf.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${uf.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:n}},[`&.${uf.focused} .${uf.notchedOutline}`]:{borderColor:(e.vars||e).palette[t.color].main,borderWidth:2},[`&.${uf.error} .${uf.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${uf.disabled} .${uf.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}},t.startAdornment&&{paddingLeft:14},t.endAdornment&&{paddingRight:14},t.multiline&&M({padding:"16.5px 14px"},t.size==="small"&&{padding:"8.5px 14px"}))}),_7e=Re(T7e,{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}}),R7e=Re(MR,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:NR})(({theme:e,ownerState:t})=>M({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})),Sle=N.forwardRef(function(t,n){var r,i,a,s,o;const l=_t({props:t,name:"MuiOutlinedInput"}),{components:u={},fullWidth:c=!1,inputComponent:f="input",label:h,multiline:g=!1,notched:b,slots:S={},type:w="text"}=l,E=at(l,k7e),x=C7e(l),k=Yf(),C=w0({props:l,muiFormControl:k,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),I=M({},l,{color:C.color||"primary",disabled:C.disabled,error:C.error,focused:C.focused,formControl:k,fullWidth:c,hiddenLabel:C.hiddenLabel,multiline:g,size:C.size,type:w}),A=(r=(i=S.root)!=null?i:u.Root)!=null?r:A7e,D=(a=(s=S.input)!=null?s:u.Input)!=null?a:R7e;return _.jsx(vF,M({slots:{root:A,input:D},renderSuffix:B=>_.jsx(_7e,{ownerState:I,className:x.notchedOutline,label:h!=null&&h!==""&&C.required?o||(o=_.jsxs(N.Fragment,{children:[h," ","*"]})):h,notched:typeof b<"u"?b:!!(B.startAdornment||B.filled||B.focused)}),fullWidth:c,inputComponent:f,multiline:g,ref:n,type:w},E,{classes:M({},x,{notchedOutline:null})}))});Sle.muiName="Input";const Ele=Sle,I7e=Ba(_.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"),D7e=Ba(_.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"),N7e=Re("span",{shouldForwardProp:_s})({position:"relative",display:"flex"}),P7e=Re(I7e)({transform:"scale(1)"}),M7e=Re(D7e)(({theme:e,ownerState:t})=>M({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 wle(e){const{checked:t=!1,classes:n={},fontSize:r}=e,i=M({},e,{checked:t});return _.jsxs(N7e,{className:n.root,ownerState:i,children:[_.jsx(P7e,{fontSize:r,className:n.background,ownerState:i}),_.jsx(M7e,{fontSize:r,className:n.dot,ownerState:i})]})}const L7e=N.createContext(void 0),xle=L7e;function $7e(){return N.useContext(xle)}function F7e(e){return $t("MuiRadio",e)}const TZ=Ft("MuiRadio",["root","checked","disabled","colorPrimary","colorSecondary","sizeSmall"]),B7e=["checked","checkedIcon","color","icon","name","onChange","size","className"],U7e=e=>{const{classes:t,color:n,size:r}=e,i={root:["root",`color${ht(n)}`,r!=="medium"&&`size${ht(r)}`]};return M({},t,Mt(i,F7e,t))},z7e=Re(SF,{shouldForwardProp:e=>_s(e)||e==="classes",name:"MuiRadio",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size!=="medium"&&t[`size${ht(n.size)}`],t[`color${ht(n.color)}`]]}})(({theme:e,ownerState:t})=>M({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})`:Rn(t.color==="default"?e.palette.action.active:e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${TZ.checked}`]:{color:(e.vars||e).palette[t.color].main}},{[`&.${TZ.disabled}`]:{color:(e.vars||e).palette.action.disabled}}));function j7e(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}const kZ=_.jsx(wle,{checked:!0}),CZ=_.jsx(wle,{}),H7e=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiRadio"}),{checked:s,checkedIcon:o=kZ,color:l="primary",icon:u=CZ,name:c,onChange:f,size:h="medium",className:g}=a,b=at(a,B7e),S=M({},a,{color:l,size:h}),w=U7e(S),E=$7e();let x=s;const k=Q_(f,E&&E.onChange);let C=c;return E&&(typeof x>"u"&&(x=j7e(E.value,a.value)),typeof C>"u"&&(C=E.name)),_.jsx(z7e,M({type:"radio",icon:N.cloneElement(u,{fontSize:(r=CZ.props.fontSize)!=null?r:h}),checkedIcon:N.cloneElement(o,{fontSize:(i=kZ.props.fontSize)!=null?i:h}),ownerState:S,classes:w,name:C,checked:x,onChange:k,ref:n,className:dt(w.root,g)},b))}),AZ=H7e,V7e=["actions","children","defaultValue","name","onChange","value"],W7e=N.forwardRef(function(t,n){const{actions:r,children:i,defaultValue:a,name:s,onChange:o,value:l}=t,u=at(t,V7e),c=N.useRef(null),[f,h]=Cs({controlled:l,default:a,name:"RadioGroup"});N.useImperativeHandle(r,()=>({focus:()=>{let w=c.current.querySelector("input:not(:disabled):checked");w||(w=c.current.querySelector("input:not(:disabled)")),w&&w.focus()}}),[]);const g=Jn(n,c),b=Rd(s),S=N.useMemo(()=>({name:b,onChange(w){h(w.target.value),o&&o(w,w.target.value)},value:f}),[b,o,h,f]);return _.jsx(xle.Provider,{value:S,children:_.jsx(wF,M({role:"radiogroup",ref:g},u,{children:i}))})}),Q7e=W7e;function q7e(e){return $t("MuiSelect",e)}const SE=Ft("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var _Z;const G7e=["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"],Y7e=Re("div",{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${SE.select}`]:t.select},{[`&.${SE.select}`]:t[n.variant]},{[`&.${SE.error}`]:t.error},{[`&.${SE.multiple}`]:t.multiple}]}})(vle,{[`&.${SE.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),Z7e=Re("svg",{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${ht(n.variant)}`],n.open&&t.iconOpen]}})(Ole),X7e=Re("input",{shouldForwardProp:e=>iF(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 RZ(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function K7e(e){return e==null||typeof e=="string"&&!e.trim()}const J7e=e=>{const{classes:t,variant:n,disabled:r,multiple:i,open:a,error:s}=e,o={select:["select",n,r&&"disabled",i&&"multiple",s&&"error"],icon:["icon",`icon${ht(n)}`,a&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Mt(o,q7e,t)},e8e=N.forwardRef(function(t,n){var r;const{"aria-describedby":i,"aria-label":a,autoFocus:s,autoWidth:o,children:l,className:u,defaultOpen:c,defaultValue:f,disabled:h,displayEmpty:g,error:b=!1,IconComponent:S,inputRef:w,labelId:E,MenuProps:x={},multiple:k,name:C,onBlur:I,onChange:A,onClose:D,onFocus:B,onOpen:L,open:F,readOnly:W,renderValue:V,SelectDisplayProps:Z={},tabIndex:Q,value:H,variant:J="standard"}=t,K=at(t,G7e),[X,te]=Cs({controlled:H,default:f,name:"Select"}),[z,Te]=Cs({controlled:F,default:c,name:"Select"}),be=N.useRef(null),ee=N.useRef(null),[ye,Oe]=N.useState(null),{current:ie}=N.useRef(F!=null),[_e,Ie]=N.useState(),qe=Jn(n,w),st=N.useCallback(gt=>{ee.current=gt,gt&&Oe(gt)},[]),Pe=ye==null?void 0:ye.parentNode;N.useImperativeHandle(qe,()=>({focus:()=>{ee.current.focus()},node:be.current,value:X}),[X]),N.useEffect(()=>{c&&z&&ye&&!ie&&(Ie(o?null:Pe.clientWidth),ee.current.focus())},[ye,o]),N.useEffect(()=>{s&&ee.current.focus()},[s]),N.useEffect(()=>{if(!E)return;const gt=Ei(ee.current).getElementById(E);if(gt){const Gt=()=>{getSelection().isCollapsed&&ee.current.focus()};return gt.addEventListener("click",Gt),()=>{gt.removeEventListener("click",Gt)}}},[E]);const tt=(gt,Gt)=>{gt?L&&L(Gt):D&&D(Gt),ie||(Ie(o?null:Pe.clientWidth),Te(gt))},Ve=gt=>{gt.button===0&&(gt.preventDefault(),ee.current.focus(),tt(!0,gt))},Xe=gt=>{tt(!1,gt)},et=N.Children.toArray(l),ft=gt=>{const Gt=et.find(ut=>ut.props.value===gt.target.value);Gt!==void 0&&(te(Gt.props.value),A&&A(gt,Gt))},At=gt=>Gt=>{let ut;if(Gt.currentTarget.hasAttribute("tabindex")){if(k){ut=Array.isArray(X)?X.slice():[];const wt=X.indexOf(gt.props.value);wt===-1?ut.push(gt.props.value):ut.splice(wt,1)}else ut=gt.props.value;if(gt.props.onClick&>.props.onClick(Gt),X!==ut&&(te(ut),A)){const wt=Gt.nativeEvent||Gt,Xt=new wt.constructor(wt.type,wt);Object.defineProperty(Xt,"target",{writable:!0,value:{value:ut,name:C}}),A(Xt,gt)}k||tt(!1,Gt)}},Je=gt=>{W||[" ","ArrowUp","ArrowDown","Enter"].indexOf(gt.key)!==-1&&(gt.preventDefault(),tt(!0,gt))},pe=ye!==null&&z,le=gt=>{!pe&&I&&(Object.defineProperty(gt,"target",{writable:!0,value:{value:X,name:C}}),I(gt))};delete K["aria-invalid"];let he,je;const Ze=[];let We=!1;(J_({value:X})||g)&&(V?he=V(X):We=!0);const fe=et.map(gt=>{if(!N.isValidElement(gt))return null;let Gt;if(k){if(!Array.isArray(X))throw new Error(n0(2));Gt=X.some(ut=>RZ(ut,gt.props.value)),Gt&&We&&Ze.push(gt.props.children)}else Gt=RZ(X,gt.props.value),Gt&&We&&(je=gt.props.children);return N.cloneElement(gt,{"aria-selected":Gt?"true":"false",onClick:At(gt),onKeyUp:ut=>{ut.key===" "&&ut.preventDefault(),gt.props.onKeyUp&>.props.onKeyUp(ut)},role:"option",selected:Gt,value:void 0,"data-value":gt.props.value})});We&&(k?Ze.length===0?he=null:he=Ze.reduce((gt,Gt,ut)=>(gt.push(Gt),ut{const{classes:t}=e;return t},kF={name:"MuiSelect",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>_s(e)&&e!=="variant",slot:"Root"},a8e=Re(fle,kF)(""),s8e=Re(Ele,kF)(""),o8e=Re(sle,kF)(""),Tle=N.forwardRef(function(t,n){const r=_t({name:"MuiSelect",props:t}),{autoWidth:i=!1,children:a,classes:s={},className:o,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=Koe,id:f,input:h,inputProps:g,label:b,labelId:S,MenuProps:w,multiple:E=!1,native:x=!1,onClose:k,onOpen:C,open:I,renderValue:A,SelectDisplayProps:D,variant:B="outlined"}=r,L=at(r,n8e),F=x?S7e:t8e,W=Yf(),V=w0({props:r,muiFormControl:W,states:["variant","error"]}),Z=V.variant||B,Q=M({},r,{variant:Z,classes:s}),H=i8e(Q),J=at(H,r8e),K=h||{standard:_.jsx(a8e,{ownerState:Q}),outlined:_.jsx(s8e,{label:b,ownerState:Q}),filled:_.jsx(o8e,{ownerState:Q})}[Z],X=Jn(n,K.ref);return _.jsx(N.Fragment,{children:N.cloneElement(K,M({inputComponent:F,inputProps:M({children:a,error:V.error,IconComponent:c,variant:Z,type:void 0,multiple:E},x?{id:f}:{autoWidth:i,defaultOpen:l,displayEmpty:u,labelId:S,MenuProps:w,onClose:k,onOpen:C,open:I,renderValue:A,SelectDisplayProps:M({id:f},D)},g,{classes:g?yo(J,g.classes):J},h?h.props.inputProps:{})},(E&&x||u)&&Z==="outlined"?{notched:!0}:{},{ref:X,className:dt(K.props.className,o,H.root)},!h&&{variant:Z},L))})});Tle.muiName="Select";const kle=Tle,l8e=e=>!e||!$f(e);function u8e(e){return $t("MuiSlider",e)}const md=Ft("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"]),c8e=e=>{const{open:t}=e;return{offset:dt(t&&md.valueLabelOpen),circle:md.valueLabelCircle,label:md.valueLabelLabel}};function d8e(e){const{children:t,className:n,value:r}=e,i=c8e(e);return t?N.cloneElement(t,{className:dt(t.props.className)},_.jsxs(N.Fragment,{children:[t.props.children,_.jsx("span",{className:dt(i.offset,n),"aria-hidden":!0,children:_.jsx("span",{className:i.circle,children:_.jsx("span",{className:i.label,children:r})})})]})):null}const f8e=["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 IZ(e){return e}const h8e=Re("span",{name:"MuiSlider",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`color${ht(n.color)}`],n.size!=="medium"&&t[`size${ht(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})=>M({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"&&M({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"&&M({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"},[`&.${md.disabled}`]:{pointerEvents:"none",cursor:"default",color:(e.vars||e).palette.grey[400]},[`&.${md.dragging}`]:{[`& .${md.thumb}, & .${md.track}`]:{transition:"none"}}})),p8e=Re("span",{name:"MuiSlider",slot:"Rail",overridesResolver:(e,t)=>t.rail})(({ownerState:e})=>M({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})),m8e=Re("span",{name:"MuiSlider",slot:"Track",overridesResolver:(e,t)=>t.track})(({theme:e,ownerState:t})=>{const n=e.palette.mode==="light"?sT(e.palette[t.color].main,.62):aT(e.palette[t.color].main,.5);return M({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})}),g8e=Re("span",{name:"MuiSlider",slot:"Thumb",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.thumb,t[`thumbColor${ht(n.color)}`],n.size!=="medium"&&t[`thumbSize${ht(n.size)}`]]}})(({theme:e,ownerState:t})=>M({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":M({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, &.${md.focusVisible}`]:{boxShadow:`0px 0px 0px 8px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Rn(e.palette[t.color].main,.16)}`,"@media (hover: none)":{boxShadow:"none"}},[`&.${md.active}`]:{boxShadow:`0px 0px 0px 14px ${e.vars?`rgba(${e.vars.palette[t.color].mainChannel} / 0.16)`:Rn(e.palette[t.color].main,.16)}`},[`&.${md.disabled}`]:{"&:hover":{boxShadow:"none"}}})),b8e=Re(d8e,{name:"MuiSlider",slot:"ValueLabel",overridesResolver:(e,t)=>t.valueLabel})(({theme:e,ownerState:t})=>M({[`&.${md.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"})),y8e=Re("span",{name:"MuiSlider",slot:"Mark",shouldForwardProp:e=>iF(e)&&e!=="markActive",overridesResolver:(e,t)=>{const{markActive:n}=e;return[t.mark,n&&t.markActive]}})(({theme:e,ownerState:t,markActive:n})=>M({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})),v8e=Re("span",{name:"MuiSlider",slot:"MarkLabel",shouldForwardProp:e=>iF(e)&&e!=="markLabelActive",overridesResolver:(e,t)=>t.markLabel})(({theme:e,ownerState:t,markLabelActive:n})=>M({},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})),O8e=e=>{const{disabled:t,dragging:n,marked:r,orientation:i,track:a,classes:s,color:o,size:l}=e,u={root:["root",t&&"disabled",n&&"dragging",r&&"marked",i==="vertical"&&"vertical",a==="inverted"&&"trackInverted",a===!1&&"trackFalse",o&&`color${ht(o)}`,l&&`size${ht(l)}`],rail:["rail"],track:["track"],mark:["mark"],markActive:["markActive"],markLabel:["markLabel"],markLabelActive:["markLabelActive"],valueLabel:["valueLabel"],thumb:["thumb",t&&"disabled",l&&`thumbSize${ht(l)}`,o&&`thumbColor${ht(o)}`],active:["active"],disabled:["disabled"],focusVisible:["focusVisible"]};return Mt(u,u8e,s)},S8e=({children:e})=>e,E8e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u,c,f,h,g,b,S,w,E,x,k,C,I,A,D,B,L,F;const W=_t({props:t,name:"MuiSlider"}),Z=Ni().direction==="rtl",{"aria-label":Q,"aria-valuetext":H,"aria-labelledby":J,component:K="span",components:X={},componentsProps:te={},color:z="primary",classes:Te,className:be,disableSwap:ee=!1,disabled:ye=!1,getAriaLabel:Oe,getAriaValueText:ie,marks:_e=!1,max:Ie=100,min:qe=0,orientation:st="horizontal",size:Pe="medium",step:tt=1,scale:Ve=IZ,slotProps:Xe,slots:et,track:ft="normal",valueLabelDisplay:At="off",valueLabelFormat:Je=IZ}=W,pe=at(W,f8e),le=M({},W,{isRtl:Z,max:Ie,min:qe,classes:Te,disabled:ye,disableSwap:ee,orientation:st,marks:_e,color:z,size:Pe,step:tt,scale:Ve,track:ft,valueLabelDisplay:At,valueLabelFormat:Je}),{axisProps:he,getRootProps:je,getHiddenInputProps:Ze,getThumbProps:We,open:fe,active:xe,axis:ve,focusedThumbIndex:De,range:$e,dragging:Ot,marks:Wt,values:Kt,trackOffset:gt,trackLeap:Gt,getThumbStyle:ut}=Y5e(M({},le,{rootRef:n}));le.marked=Wt.length>0&&Wt.some(nt=>nt.label),le.dragging=Ot,le.focusedThumbIndex=De;const wt=O8e(le),Xt=(r=(i=et==null?void 0:et.root)!=null?i:X.Root)!=null?r:h8e,Ln=(a=(s=et==null?void 0:et.rail)!=null?s:X.Rail)!=null?a:p8e,$n=(o=(l=et==null?void 0:et.track)!=null?l:X.Track)!=null?o:m8e,jn=(u=(c=et==null?void 0:et.thumb)!=null?c:X.Thumb)!=null?u:g8e,sr=(f=(h=et==null?void 0:et.valueLabel)!=null?h:X.ValueLabel)!=null?f:b8e,zr=(g=(b=et==null?void 0:et.mark)!=null?b:X.Mark)!=null?g:y8e,Me=(S=(w=et==null?void 0:et.markLabel)!=null?w:X.MarkLabel)!=null?S:v8e,Ue=(E=(x=et==null?void 0:et.input)!=null?x:X.Input)!=null?E:"input",lt=(k=Xe==null?void 0:Xe.root)!=null?k:te.root,Nt=(C=Xe==null?void 0:Xe.rail)!=null?C:te.rail,Qt=(I=Xe==null?void 0:Xe.track)!=null?I:te.track,Hn=(A=Xe==null?void 0:Xe.thumb)!=null?A:te.thumb,yn=(D=Xe==null?void 0:Xe.valueLabel)!=null?D:te.valueLabel,rn=(B=Xe==null?void 0:Xe.mark)!=null?B:te.mark,Yt=(L=Xe==null?void 0:Xe.markLabel)!=null?L:te.markLabel,xn=(F=Xe==null?void 0:Xe.input)!=null?F:te.input,Qe=dr({elementType:Xt,getSlotProps:je,externalSlotProps:lt,externalForwardedProps:pe,additionalProps:M({},l8e(Xt)&&{as:K}),ownerState:M({},le,lt==null?void 0:lt.ownerState),className:[wt.root,be]}),Ye=dr({elementType:Ln,externalSlotProps:Nt,ownerState:le,className:wt.rail}),ot=dr({elementType:$n,externalSlotProps:Qt,additionalProps:{style:M({},he[ve].offset(gt),he[ve].leap(Gt))},ownerState:M({},le,Qt==null?void 0:Qt.ownerState),className:wt.track}),yt=dr({elementType:jn,getSlotProps:We,externalSlotProps:Hn,ownerState:M({},le,Hn==null?void 0:Hn.ownerState),className:wt.thumb}),Yn=dr({elementType:sr,externalSlotProps:yn,ownerState:M({},le,yn==null?void 0:yn.ownerState),className:wt.valueLabel}),pn=dr({elementType:zr,externalSlotProps:rn,ownerState:le,className:wt.mark}),Fn=dr({elementType:Me,externalSlotProps:Yt,ownerState:le,className:wt.markLabel}),Pi=dr({elementType:Ue,getSlotProps:Ze,externalSlotProps:xn,ownerState:le});return _.jsxs(Xt,M({},Qe,{children:[_.jsx(Ln,M({},Ye)),_.jsx($n,M({},ot)),Wt.filter(nt=>nt.value>=qe&&nt.value<=Ie).map((nt,Be)=>{const Dt=K_(nt.value,qe,Ie),en=he[ve].offset(Dt);let Vn;return ft===!1?Vn=Kt.indexOf(nt.value)!==-1:Vn=ft==="normal"&&($e?nt.value>=Kt[0]&&nt.value<=Kt[Kt.length-1]:nt.value<=Kt[0])||ft==="inverted"&&($e?nt.value<=Kt[0]||nt.value>=Kt[Kt.length-1]:nt.value>=Kt[0]),_.jsxs(N.Fragment,{children:[_.jsx(zr,M({"data-index":Be},pn,!$f(zr)&&{markActive:Vn},{style:M({},en,pn.style),className:dt(pn.className,Vn&&wt.markActive)})),nt.label!=null?_.jsx(Me,M({"aria-hidden":!0,"data-index":Be},Fn,!$f(Me)&&{markLabelActive:Vn},{style:M({},en,Fn.style),className:dt(wt.markLabel,Fn.className,Vn&&wt.markLabelActive),children:nt.label})):null]},Be)}),Kt.map((nt,Be)=>{const Dt=K_(nt,qe,Ie),en=he[ve].offset(Dt),Vn=At==="off"?S8e:sr;return _.jsx(Vn,M({},!$f(Vn)&&{valueLabelFormat:Je,valueLabelDisplay:At,value:typeof Je=="function"?Je(Ve(nt),Be):Je,index:Be,open:fe===Be||xe===Be||At==="on",disabled:ye},Yn,{children:_.jsx(jn,M({"data-index":Be},yt,{className:dt(wt.thumb,yt.className,xe===Be&&wt.active,De===Be&&wt.focusVisible),style:M({},en,ut(Be),yt.style),children:_.jsx(Ue,M({"data-index":Be,"aria-label":Oe?Oe(Be):Q,"aria-valuenow":Ve(nt),"aria-labelledby":J,"aria-valuetext":ie?ie(Ve(nt),Be):H,value:Kt[Be]},Pi))}))}),Be)})]}))}),w8e=E8e;function x8e(e){return $t("MuiTooltip",e)}const T8e=Ft("MuiTooltip",["popper","popperInteractive","popperArrow","popperClose","tooltip","tooltipArrow","touch","tooltipPlacementLeft","tooltipPlacementRight","tooltipPlacementTop","tooltipPlacementBottom","arrow"]),_m=T8e,k8e=["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 C8e(e){return Math.round(e*1e5)/1e5}const A8e=e=>{const{classes:t,disableInteractive:n,arrow:r,touch:i,placement:a}=e,s={popper:["popper",!n&&"popperInteractive",r&&"popperArrow"],tooltip:["tooltip",r&&"tooltipArrow",i&&"touch",`tooltipPlacement${ht(a.split("-")[0])}`],arrow:["arrow"]};return Mt(s,x8e,t)},_8e=Re(AO,{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})=>M({zIndex:(e.vars||e).zIndex.tooltip,pointerEvents:"none"},!t.disableInteractive&&{pointerEvents:"auto"},!n&&{pointerEvents:"none"},t.arrow&&{[`&[data-popper-placement*="bottom"] .${_m.arrow}`]:{top:0,marginTop:"-0.71em","&::before":{transformOrigin:"0 100%"}},[`&[data-popper-placement*="top"] .${_m.arrow}`]:{bottom:0,marginBottom:"-0.71em","&::before":{transformOrigin:"100% 0"}},[`&[data-popper-placement*="right"] .${_m.arrow}`]:M({},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"] .${_m.arrow}`]:M({},t.isRtl?{left:0,marginLeft:"-0.71em"}:{right:0,marginRight:"-0.71em"},{height:"1em",width:"0.71em","&::before":{transformOrigin:"0 0"}})})),R8e=Re("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${ht(n.placement.split("-")[0])}`]]}})(({theme:e,ownerState:t})=>M({backgroundColor:e.vars?e.vars.palette.Tooltip.bg:Rn(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:`${C8e(16/14)}em`,fontWeight:e.typography.fontWeightRegular},{[`.${_m.popper}[data-popper-placement*="left"] &`]:M({transformOrigin:"right center"},t.isRtl?M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"}):M({marginRight:"14px"},t.touch&&{marginRight:"24px"})),[`.${_m.popper}[data-popper-placement*="right"] &`]:M({transformOrigin:"left center"},t.isRtl?M({marginRight:"14px"},t.touch&&{marginRight:"24px"}):M({marginLeft:"14px"},t.touch&&{marginLeft:"24px"})),[`.${_m.popper}[data-popper-placement*="top"] &`]:M({transformOrigin:"center bottom",marginBottom:"14px"},t.touch&&{marginBottom:"24px"}),[`.${_m.popper}[data-popper-placement*="bottom"] &`]:M({transformOrigin:"center top",marginTop:"14px"},t.touch&&{marginTop:"24px"})})),I8e=Re("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:Rn(e.palette.grey[700],.9),"&::before":{content:'""',margin:"auto",display:"block",width:"100%",height:"100%",backgroundColor:"currentColor",transform:"rotate(45deg)"}}));let KC=!1;const DZ=new tT;let EE={x:0,y:0};function JC(e,t){return n=>{t&&t(n),e(n)}}const D8e=N.forwardRef(function(t,n){var r,i,a,s,o,l,u,c,f,h,g,b,S,w,E,x,k,C,I;const A=_t({props:t,name:"MuiTooltip"}),{arrow:D=!1,children:B,components:L={},componentsProps:F={},describeChild:W=!1,disableFocusListener:V=!1,disableHoverListener:Z=!1,disableInteractive:Q=!1,disableTouchListener:H=!1,enterDelay:J=100,enterNextDelay:K=0,enterTouchDelay:X=700,followCursor:te=!1,id:z,leaveDelay:Te=0,leaveTouchDelay:be=1500,onClose:ee,onOpen:ye,open:Oe,placement:ie="bottom",PopperComponent:_e,PopperProps:Ie={},slotProps:qe={},slots:st={},title:Pe,TransitionComponent:tt=e3,TransitionProps:Ve}=A,Xe=at(A,k8e),et=N.isValidElement(B)?B:_.jsx("span",{children:B}),ft=Ni(),At=ft.direction==="rtl",[Je,pe]=N.useState(),[le,he]=N.useState(null),je=N.useRef(!1),Ze=Q||te,We=Ng(),fe=Ng(),xe=Ng(),ve=Ng(),[De,$e]=Cs({controlled:Oe,default:!1,name:"Tooltip",state:"open"});let Ot=De;const Wt=Rd(z),Kt=N.useRef(),gt=on(()=>{Kt.current!==void 0&&(document.body.style.WebkitUserSelect=Kt.current,Kt.current=void 0),ve.clear()});N.useEffect(()=>gt,[gt]);const Gt=In=>{DZ.clear(),KC=!0,$e(!0),ye&&!Ot&&ye(In)},ut=on(In=>{DZ.start(800+Te,()=>{KC=!1}),$e(!1),ee&&Ot&&ee(In),We.start(ft.transitions.duration.shortest,()=>{je.current=!1})}),wt=In=>{je.current&&In.type!=="touchstart"||(Je&&Je.removeAttribute("title"),fe.clear(),xe.clear(),J||KC&&K?fe.start(KC?K:J,()=>{Gt(In)}):Gt(In))},Xt=In=>{fe.clear(),xe.start(Te,()=>{ut(In)})},{isFocusVisibleRef:Ln,onBlur:$n,onFocus:jn,ref:sr}=gR(),[,zr]=N.useState(!1),Me=In=>{$n(In),Ln.current===!1&&(zr(!1),Xt(In))},Ue=In=>{Je||pe(In.currentTarget),jn(In),Ln.current===!0&&(zr(!0),wt(In))},lt=In=>{je.current=!0;const Wn=et.props;Wn.onTouchStart&&Wn.onTouchStart(In)},Nt=wt,Qt=Xt,Hn=In=>{lt(In),xe.clear(),We.clear(),gt(),Kt.current=document.body.style.WebkitUserSelect,document.body.style.WebkitUserSelect="none",ve.start(X,()=>{document.body.style.WebkitUserSelect=Kt.current,wt(In)})},yn=In=>{et.props.onTouchEnd&&et.props.onTouchEnd(In),gt(),xe.start(be,()=>{ut(In)})};N.useEffect(()=>{if(!Ot)return;function In(Wn){(Wn.key==="Escape"||Wn.key==="Esc")&&ut(Wn)}return document.addEventListener("keydown",In),()=>{document.removeEventListener("keydown",In)}},[ut,Ot]);const rn=Jn(et.ref,sr,pe,n);!Pe&&Pe!==0&&(Ot=!1);const Yt=N.useRef(),xn=In=>{const Wn=et.props;Wn.onMouseMove&&Wn.onMouseMove(In),EE={x:In.clientX,y:In.clientY},Yt.current&&Yt.current.update()},Qe={},Ye=typeof Pe=="string";W?(Qe.title=!Ot&&Ye&&!Z?Pe:null,Qe["aria-describedby"]=Ot?Wt:null):(Qe["aria-label"]=Ye?Pe:null,Qe["aria-labelledby"]=Ot&&!Ye?Wt:null);const ot=M({},Qe,Xe,et.props,{className:dt(Xe.className,et.props.className),onTouchStart:lt,ref:rn},te?{onMouseMove:xn}:{}),yt={};H||(ot.onTouchStart=Hn,ot.onTouchEnd=yn),Z||(ot.onMouseOver=JC(Nt,ot.onMouseOver),ot.onMouseLeave=JC(Qt,ot.onMouseLeave),Ze||(yt.onMouseOver=Nt,yt.onMouseLeave=Qt)),V||(ot.onFocus=JC(Ue,ot.onFocus),ot.onBlur=JC(Me,ot.onBlur),Ze||(yt.onFocus=Ue,yt.onBlur=Me));const Yn=N.useMemo(()=>{var In;let Wn=[{name:"arrow",enabled:!!le,options:{element:le,padding:4}}];return(In=Ie.popperOptions)!=null&&In.modifiers&&(Wn=Wn.concat(Ie.popperOptions.modifiers)),M({},Ie.popperOptions,{modifiers:Wn})},[le,Ie]),pn=M({},A,{isRtl:At,arrow:D,disableInteractive:Ze,placement:ie,PopperComponentProp:_e,touch:je.current}),Fn=A8e(pn),Pi=(r=(i=st.popper)!=null?i:L.Popper)!=null?r:_8e,nt=(a=(s=(o=st.transition)!=null?o:L.Transition)!=null?s:tt)!=null?a:e3,Be=(l=(u=st.tooltip)!=null?u:L.Tooltip)!=null?l:R8e,Dt=(c=(f=st.arrow)!=null?f:L.Arrow)!=null?c:I8e,en=i2(Pi,M({},Ie,(h=qe.popper)!=null?h:F.popper,{className:dt(Fn.popper,Ie==null?void 0:Ie.className,(g=(b=qe.popper)!=null?b:F.popper)==null?void 0:g.className)}),pn),Vn=i2(nt,M({},Ve,(S=qe.transition)!=null?S:F.transition),pn),Kr=i2(Be,M({},(w=qe.tooltip)!=null?w:F.tooltip,{className:dt(Fn.tooltip,(E=(x=qe.tooltip)!=null?x:F.tooltip)==null?void 0:E.className)}),pn),wr=i2(Dt,M({},(k=qe.arrow)!=null?k:F.arrow,{className:dt(Fn.arrow,(C=(I=qe.arrow)!=null?I:F.arrow)==null?void 0:C.className)}),pn);return _.jsxs(N.Fragment,{children:[N.cloneElement(et,ot),_.jsx(Pi,M({as:_e??AO,placement:ie,anchorEl:te?{getBoundingClientRect:()=>({top:EE.y,left:EE.x,right:EE.x,bottom:EE.y,width:0,height:0})}:Je,popperRef:Yt,open:Je?Ot:!1,id:Wt,transition:!0},yt,en,{popperOptions:Yn,children:({TransitionProps:In})=>_.jsx(nt,M({timeout:ft.transitions.duration.shorter},In,Vn,{children:_.jsxs(Be,M({},Kr,{children:[Pe,D?_.jsx(Dt,M({},wr,{ref:he})):null]}))}))}))]})}),Rm=D8e;function N8e(e){return $t("MuiSwitch",e)}const P8e=Ft("MuiSwitch",["root","edgeStart","edgeEnd","switchBase","colorPrimary","colorSecondary","sizeSmall","sizeMedium","checked","disabled","input","thumb","track"]),Fo=P8e,M8e=["className","color","edge","size","sx"],L8e=e=>{const{classes:t,edge:n,size:r,color:i,checked:a,disabled:s}=e,o={root:["root",n&&`edge${ht(n)}`,`size${ht(r)}`],switchBase:["switchBase",`color${ht(i)}`,a&&"checked",s&&"disabled"],thumb:["thumb"],track:["track"],input:["input"]},l=Mt(o,N8e,t);return M({},t,l)},$8e=Re("span",{name:"MuiSwitch",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.edge&&t[`edge${ht(n.edge)}`],t[`size${ht(n.size)}`]]}})(({ownerState:e})=>M({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,[`& .${Fo.thumb}`]:{width:16,height:16},[`& .${Fo.switchBase}`]:{padding:4,[`&.${Fo.checked}`]:{transform:"translateX(16px)"}}})),F8e=Re(SF,{name:"MuiSwitch",slot:"SwitchBase",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.switchBase,{[`& .${Fo.input}`]:t.input},n.color!=="default"&&t[`color${ht(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}),[`&.${Fo.checked}`]:{transform:"translateX(20px)"},[`&.${Fo.disabled}`]:{color:e.vars?e.vars.palette.Switch.defaultDisabledColor:`${e.palette.mode==="light"?e.palette.grey[100]:e.palette.grey[600]}`},[`&.${Fo.checked} + .${Fo.track}`]:{opacity:.5},[`&.${Fo.disabled} + .${Fo.track}`]:{opacity:e.vars?e.vars.opacity.switchTrackDisabled:`${e.palette.mode==="light"?.12:.2}`},[`& .${Fo.input}`]:{left:"-100%",width:"300%"}}),({theme:e,ownerState:t})=>M({"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}}},t.color!=="default"&&{[`&.${Fo.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})`:Rn(e.palette[t.color].main,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Fo.disabled}`]:{color:e.vars?e.vars.palette.Switch[`${t.color}DisabledColor`]:`${e.palette.mode==="light"?sT(e.palette[t.color].main,.62):aT(e.palette[t.color].main,.55)}`}},[`&.${Fo.checked} + .${Fo.track}`]:{backgroundColor:(e.vars||e).palette[t.color].main}})),B8e=Re("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}`})),U8e=Re("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%"})),z8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiSwitch"}),{className:i,color:a="primary",edge:s=!1,size:o="medium",sx:l}=r,u=at(r,M8e),c=M({},r,{color:a,edge:s,size:o}),f=L8e(c),h=_.jsx(U8e,{className:f.thumb,ownerState:c});return _.jsxs($8e,{className:dt(f.root,i),sx:l,ownerState:c,children:[_.jsx(F8e,M({type:"checkbox",icon:h,checkedIcon:h,ref:n,ownerState:c},u,{classes:M({},f,{root:f.switchBase})})),_.jsx(B8e,{className:f.track,ownerState:c})]})}),j8e=z8e;function H8e(e){return $t("MuiTab",e)}const V8e=Ft("MuiTab",["root","labelIcon","textColorInherit","textColorPrimary","textColorSecondary","selected","disabled","fullWidth","wrapped","iconWrapper"]),dg=V8e,W8e=["className","disabled","disableFocusRipple","fullWidth","icon","iconPosition","indicator","label","onChange","onClick","onFocus","selected","selectionFollowsFocus","textColor","value","wrapped"],Q8e=e=>{const{classes:t,textColor:n,fullWidth:r,wrapped:i,icon:a,label:s,selected:o,disabled:l}=e,u={root:["root",a&&s&&"labelIcon",`textColor${ht(n)}`,r&&"fullWidth",i&&"wrapped",o&&"selected",l&&"disabled"],iconWrapper:["iconWrapper"]};return Mt(u,H8e,t)},q8e=Re(Cu,{name:"MuiTab",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.label&&n.icon&&t.labelIcon,t[`textColor${ht(n.textColor)}`],n.fullWidth&&t.fullWidth,n.wrapped&&t.wrapped]}})(({theme:e,ownerState:t})=>M({},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,[`& > .${dg.iconWrapper}`]:M({},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,[`&.${dg.selected}`]:{opacity:1},[`&.${dg.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity}},t.textColor==="primary"&&{color:(e.vars||e).palette.text.secondary,[`&.${dg.selected}`]:{color:(e.vars||e).palette.primary.main},[`&.${dg.disabled}`]:{color:(e.vars||e).palette.text.disabled}},t.textColor==="secondary"&&{color:(e.vars||e).palette.text.secondary,[`&.${dg.selected}`]:{color:(e.vars||e).palette.secondary.main},[`&.${dg.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)})),G8e=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTab"}),{className:i,disabled:a=!1,disableFocusRipple:s=!1,fullWidth:o,icon:l,iconPosition:u="top",indicator:c,label:f,onChange:h,onClick:g,onFocus:b,selected:S,selectionFollowsFocus:w,textColor:E="inherit",value:x,wrapped:k=!1}=r,C=at(r,W8e),I=M({},r,{disabled:a,disableFocusRipple:s,selected:S,icon:!!l,iconPosition:u,label:!!f,fullWidth:o,textColor:E,wrapped:k}),A=Q8e(I),D=l&&f&&N.isValidElement(l)?N.cloneElement(l,{className:dt(A.iconWrapper,l.props.className)}):l,B=F=>{!S&&h&&h(F,x),g&&g(F)},L=F=>{w&&!S&&h&&h(F,x),b&&b(F)};return _.jsxs(q8e,M({focusRipple:!s,className:dt(A.root,i),ref:n,role:"tab","aria-selected":S,disabled:a,onClick:B,onFocus:L,ownerState:I,tabIndex:S?0:-1},C,{children:[u==="top"||u==="start"?_.jsxs(N.Fragment,{children:[D,f]}):_.jsxs(N.Fragment,{children:[f,D]}),c]}))}),NZ=G8e,Y8e=N.createContext(),Cle=Y8e;function Z8e(e){return $t("MuiTable",e)}Ft("MuiTable",["root","stickyHeader"]);const X8e=["className","component","padding","size","stickyHeader"],K8e=e=>{const{classes:t,stickyHeader:n}=e;return Mt({root:["root",n&&"stickyHeader"]},Z8e,t)},J8e=Re("table",{name:"MuiTable",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({display:"table",width:"100%",borderCollapse:"collapse",borderSpacing:0,"& caption":M({},e.typography.body2,{padding:e.spacing(2),color:(e.vars||e).palette.text.secondary,textAlign:"left",captionSide:"bottom"})},t.stickyHeader&&{borderCollapse:"separate"})),PZ="table",eMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTable"}),{className:i,component:a=PZ,padding:s="normal",size:o="medium",stickyHeader:l=!1}=r,u=at(r,X8e),c=M({},r,{component:a,padding:s,size:o,stickyHeader:l}),f=K8e(c),h=N.useMemo(()=>({padding:s,size:o,stickyHeader:l}),[s,o,l]);return _.jsx(Cle.Provider,{value:h,children:_.jsx(J8e,M({as:a,role:a===PZ?null:"table",ref:n,className:dt(f.root,i),ownerState:c},u))})}),tMe=eMe,nMe=N.createContext(),BR=nMe;function rMe(e){return $t("MuiTableBody",e)}Ft("MuiTableBody",["root"]);const iMe=["className","component"],aMe=e=>{const{classes:t}=e;return Mt({root:["root"]},rMe,t)},sMe=Re("tbody",{name:"MuiTableBody",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-row-group"}),oMe={variant:"body"},MZ="tbody",lMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableBody"}),{className:i,component:a=MZ}=r,s=at(r,iMe),o=M({},r,{component:a}),l=aMe(o);return _.jsx(BR.Provider,{value:oMe,children:_.jsx(sMe,M({className:dt(l.root,i),as:a,ref:n,role:a===MZ?null:"rowgroup",ownerState:o},s))})}),uMe=lMe;function cMe(e){return $t("MuiTableCell",e)}const dMe=Ft("MuiTableCell",["root","head","body","footer","sizeSmall","sizeMedium","paddingCheckbox","paddingNone","alignLeft","alignCenter","alignRight","alignJustify","stickyHeader"]),fMe=dMe,hMe=["align","className","component","padding","scope","size","sortDirection","variant"],pMe=e=>{const{classes:t,variant:n,align:r,padding:i,size:a,stickyHeader:s}=e,o={root:["root",n,s&&"stickyHeader",r!=="inherit"&&`align${ht(r)}`,i!=="normal"&&`padding${ht(i)}`,`size${ht(a)}`]};return Mt(o,cMe,t)},mMe=Re("td",{name:"MuiTableCell",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`size${ht(n.size)}`],n.padding!=="normal"&&t[`padding${ht(n.padding)}`],n.align!=="inherit"&&t[`align${ht(n.align)}`],n.stickyHeader&&t.stickyHeader]}})(({theme:e,ownerState:t})=>M({},e.typography.body2,{display:"table-cell",verticalAlign:"inherit",borderBottom:e.vars?`1px solid ${e.vars.palette.TableCell.border}`:`1px solid - ${e.palette.mode==="light"?sT(Rn(e.palette.divider,1),.88):aT(Rn(e.palette.divider,1),.68)}`,textAlign:"left",padding:16},t.variant==="head"&&{color:(e.vars||e).palette.text.primary,lineHeight:e.typography.pxToRem(24),fontWeight:e.typography.fontWeightMedium},t.variant==="body"&&{color:(e.vars||e).palette.text.primary},t.variant==="footer"&&{color:(e.vars||e).palette.text.secondary,lineHeight:e.typography.pxToRem(21),fontSize:e.typography.pxToRem(12)},t.size==="small"&&{padding:"6px 16px",[`&.${fMe.paddingCheckbox}`]:{width:24,padding:"0 12px 0 16px","& > *":{padding:0}}},t.padding==="checkbox"&&{width:48,padding:"0 0 0 4px"},t.padding==="none"&&{padding:0},t.align==="left"&&{textAlign:"left"},t.align==="center"&&{textAlign:"center"},t.align==="right"&&{textAlign:"right",flexDirection:"row-reverse"},t.align==="justify"&&{textAlign:"justify"},t.stickyHeader&&{position:"sticky",top:0,zIndex:2,backgroundColor:(e.vars||e).palette.background.default})),gMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableCell"}),{align:i="inherit",className:a,component:s,padding:o,scope:l,size:u,sortDirection:c,variant:f}=r,h=at(r,hMe),g=N.useContext(Cle),b=N.useContext(BR),S=b&&b.variant==="head";let w;s?w=s:w=S?"th":"td";let E=l;w==="td"?E=void 0:!E&&S&&(E="col");const x=f||b&&b.variant,k=M({},r,{align:i,component:w,padding:o||(g&&g.padding?g.padding:"normal"),size:u||(g&&g.size?g.size:"medium"),sortDirection:c,stickyHeader:x==="head"&&g&&g.stickyHeader,variant:x}),C=pMe(k);let I=null;return c&&(I=c==="asc"?"ascending":"descending"),_.jsx(mMe,M({as:w,ref:n,className:dt(C.root,a),"aria-sort":I,scope:E,ownerState:k},h))}),Xb=gMe;function bMe(e){return $t("MuiTableContainer",e)}Ft("MuiTableContainer",["root"]);const yMe=["className","component"],vMe=e=>{const{classes:t}=e;return Mt({root:["root"]},bMe,t)},OMe=Re("div",{name:"MuiTableContainer",slot:"Root",overridesResolver:(e,t)=>t.root})({width:"100%",overflowX:"auto"}),SMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableContainer"}),{className:i,component:a="div"}=r,s=at(r,yMe),o=M({},r,{component:a}),l=vMe(o);return _.jsx(OMe,M({ref:n,as:a,className:dt(l.root,i),ownerState:o},s))}),EMe=SMe;function wMe(e){return $t("MuiTableHead",e)}Ft("MuiTableHead",["root"]);const xMe=["className","component"],TMe=e=>{const{classes:t}=e;return Mt({root:["root"]},wMe,t)},kMe=Re("thead",{name:"MuiTableHead",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"table-header-group"}),CMe={variant:"head"},LZ="thead",AMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableHead"}),{className:i,component:a=LZ}=r,s=at(r,xMe),o=M({},r,{component:a}),l=TMe(o);return _.jsx(BR.Provider,{value:CMe,children:_.jsx(kMe,M({as:a,className:dt(l.root,i),ref:n,role:a===LZ?null:"rowgroup",ownerState:o},s))})}),_Me=AMe;function RMe(e){return $t("MuiToolbar",e)}Ft("MuiToolbar",["root","gutters","regular","dense"]);const IMe=["className","component","disableGutters","variant"],DMe=e=>{const{classes:t,disableGutters:n,variant:r}=e;return Mt({root:["root",!n&&"gutters",r]},RMe,t)},NMe=Re("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})=>M({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),PMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiToolbar"}),{className:i,component:a="div",disableGutters:s=!1,variant:o="regular"}=r,l=at(r,IMe),u=M({},r,{component:a,disableGutters:s,variant:o}),c=DMe(u);return _.jsx(NMe,M({as:a,className:dt(c.root,i),ref:n,ownerState:u},l))}),CF=PMe,MMe=Ba(_.jsx("path",{d:"M15.41 16.09l-4.58-4.59 4.58-4.59L14 5.5l-6 6 6 6z"}),"KeyboardArrowLeft"),LMe=Ba(_.jsx("path",{d:"M8.59 16.34l4.58-4.59-4.58-4.59L10 5.75l6 6-6 6z"}),"KeyboardArrowRight");function $Me(e){return $t("MuiTableRow",e)}const FMe=Ft("MuiTableRow",["root","selected","hover","head","footer"]),$Z=FMe,BMe=["className","component","hover","selected"],UMe=e=>{const{classes:t,selected:n,hover:r,head:i,footer:a}=e;return Mt({root:["root",n&&"selected",r&&"hover",i&&"head",a&&"footer"]},$Me,t)},zMe=Re("tr",{name:"MuiTableRow",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.head&&t.head,n.footer&&t.footer]}})(({theme:e})=>({color:"inherit",display:"table-row",verticalAlign:"middle",outline:0,[`&.${$Z.hover}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${$Z.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity)}}})),FZ="tr",jMe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTableRow"}),{className:i,component:a=FZ,hover:s=!1,selected:o=!1}=r,l=at(r,BMe),u=N.useContext(BR),c=M({},r,{component:a,hover:s,selected:o,head:u&&u.variant==="head",footer:u&&u.variant==="footer"}),f=UMe(c);return _.jsx(zMe,M({as:a,ref:n,className:dt(f.root,i),role:a===FZ?null:"row",ownerState:c},l))}),BZ=jMe;function HMe(e){return(1+Math.sin(Math.PI*e-Math.PI/2))/2}function VMe(e,t,n,r={},i=()=>{}){const{ease:a=HMe,duration:s=300}=r;let o=null;const l=t[e];let u=!1;const c=()=>{u=!0},f=h=>{if(u){i(new Error("Animation cancelled"));return}o===null&&(o=h);const g=Math.min(1,(h-o)/s);if(t[e]=a(g)*(n-l)+l,g>=1){requestAnimationFrame(()=>{i(null)});return}requestAnimationFrame(f)};return l===n?(i(new Error("Element already at target position")),c):(requestAnimationFrame(f),c)}const WMe=["onChange"],QMe={width:99,height:99,position:"absolute",top:-9999,overflow:"scroll"};function qMe(e){const{onChange:t}=e,n=at(e,WMe),r=N.useRef(),i=N.useRef(null),a=()=>{r.current=i.current.offsetHeight-i.current.clientHeight};return da(()=>{const s=kO(()=>{const l=r.current;a(),l!==r.current&&t(r.current)}),o=_c(i.current);return o.addEventListener("resize",s),()=>{s.clear(),o.removeEventListener("resize",s)}},[t]),N.useEffect(()=>{a(),t(r.current)},[t]),_.jsx("div",M({style:QMe,ref:i},n))}function GMe(e){return $t("MuiTabScrollButton",e)}const YMe=Ft("MuiTabScrollButton",["root","vertical","horizontal","disabled"]),ZMe=YMe,XMe=["className","slots","slotProps","direction","orientation","disabled"],KMe=e=>{const{classes:t,orientation:n,disabled:r}=e;return Mt({root:["root",n,r&&"disabled"]},GMe,t)},JMe=Re(Cu,{name:"MuiTabScrollButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.orientation&&t[n.orientation]]}})(({ownerState:e})=>M({width:40,flexShrink:0,opacity:.8,[`&.${ZMe.disabled}`]:{opacity:0}},e.orientation==="vertical"&&{width:"100%",height:40,"& svg":{transform:`rotate(${e.isRtl?-90:90}deg)`}})),eLe=N.forwardRef(function(t,n){var r,i;const a=_t({props:t,name:"MuiTabScrollButton"}),{className:s,slots:o={},slotProps:l={},direction:u}=a,c=at(a,XMe),h=Ni().direction==="rtl",g=M({isRtl:h},a),b=KMe(g),S=(r=o.StartScrollButtonIcon)!=null?r:MMe,w=(i=o.EndScrollButtonIcon)!=null?i:LMe,E=dr({elementType:S,externalSlotProps:l.startScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g}),x=dr({elementType:w,externalSlotProps:l.endScrollButtonIcon,additionalProps:{fontSize:"small"},ownerState:g});return _.jsx(JMe,M({component:"div",className:dt(b.root,s),ref:n,role:null,ownerState:g,tabIndex:null},c,{children:u==="left"?_.jsx(S,M({},E)):_.jsx(w,M({},x))}))}),tLe=eLe;function nLe(e){return $t("MuiTabs",e)}const rLe=Ft("MuiTabs",["root","vertical","flexContainer","flexContainerVertical","centered","scroller","fixed","scrollableX","scrollableY","hideScrollbar","scrollButtons","scrollButtonsHideMobile","indicator"]),A4=rLe,iLe=["aria-label","aria-labelledby","action","centered","children","className","component","allowScrollButtonsMobile","indicatorColor","onChange","orientation","ScrollButtonComponent","scrollButtons","selectionFollowsFocus","slots","slotProps","TabIndicatorProps","TabScrollButtonProps","textColor","value","variant","visibleScrollbar"],UZ=(e,t)=>e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:e.firstChild,zZ=(e,t)=>e===t?e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:e.lastChild,eA=(e,t,n)=>{let r=!1,i=n(e,t);for(;i;){if(i===e.firstChild){if(r)return;r=!0}const a=i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||a)i=n(e,i);else{i.focus();return}}},aLe=e=>{const{vertical:t,fixed:n,hideScrollbar:r,scrollableX:i,scrollableY:a,centered:s,scrollButtonsHideMobile:o,classes:l}=e;return Mt({root:["root",t&&"vertical"],scroller:["scroller",n&&"fixed",r&&"hideScrollbar",i&&"scrollableX",a&&"scrollableY"],flexContainer:["flexContainer",t&&"flexContainerVertical",s&&"centered"],indicator:["indicator"],scrollButtons:["scrollButtons",o&&"scrollButtonsHideMobile"],scrollableX:[i&&"scrollableX"],hideScrollbar:[r&&"hideScrollbar"]},nLe,l)},sLe=Re("div",{name:"MuiTabs",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${A4.scrollButtons}`]:t.scrollButtons},{[`& .${A4.scrollButtons}`]:n.scrollButtonsHideMobile&&t.scrollButtonsHideMobile},t.root,n.vertical&&t.vertical]}})(({ownerState:e,theme:t})=>M({overflow:"hidden",minHeight:48,WebkitOverflowScrolling:"touch",display:"flex"},e.vertical&&{flexDirection:"column"},e.scrollButtonsHideMobile&&{[`& .${A4.scrollButtons}`]:{[t.breakpoints.down("sm")]:{display:"none"}}})),oLe=Re("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})=>M({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"})),lLe=Re("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})=>M({display:"flex"},e.vertical&&{flexDirection:"column"},e.centered&&{justifyContent:"center"})),uLe=Re("span",{name:"MuiTabs",slot:"Indicator",overridesResolver:(e,t)=>t.indicator})(({ownerState:e,theme:t})=>M({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})),cLe=Re(qMe)({overflowX:"auto",overflowY:"hidden",scrollbarWidth:"none","&::-webkit-scrollbar":{display:"none"}}),jZ={},dLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTabs"}),i=Ni(),a=i.direction==="rtl",{"aria-label":s,"aria-labelledby":o,action:l,centered:u=!1,children:c,className:f,component:h="div",allowScrollButtonsMobile:g=!1,indicatorColor:b="primary",onChange:S,orientation:w="horizontal",ScrollButtonComponent:E=tLe,scrollButtons:x="auto",selectionFollowsFocus:k,slots:C={},slotProps:I={},TabIndicatorProps:A={},TabScrollButtonProps:D={},textColor:B="primary",value:L,variant:F="standard",visibleScrollbar:W=!1}=r,V=at(r,iLe),Z=F==="scrollable",Q=w==="vertical",H=Q?"scrollTop":"scrollLeft",J=Q?"top":"left",K=Q?"bottom":"right",X=Q?"clientHeight":"clientWidth",te=Q?"height":"width",z=M({},r,{component:h,allowScrollButtonsMobile:g,indicatorColor:b,orientation:w,vertical:Q,scrollButtons:x,textColor:B,variant:F,visibleScrollbar:W,fixed:!Z,hideScrollbar:Z&&!W,scrollableX:Z&&!Q,scrollableY:Z&&Q,centered:u&&!Z,scrollButtonsHideMobile:!g}),Te=aLe(z),be=dr({elementType:C.StartScrollButtonIcon,externalSlotProps:I.startScrollButtonIcon,ownerState:z}),ee=dr({elementType:C.EndScrollButtonIcon,externalSlotProps:I.endScrollButtonIcon,ownerState:z}),[ye,Oe]=N.useState(!1),[ie,_e]=N.useState(jZ),[Ie,qe]=N.useState(!1),[st,Pe]=N.useState(!1),[tt,Ve]=N.useState(!1),[Xe,et]=N.useState({overflow:"hidden",scrollbarWidth:0}),ft=new Map,At=N.useRef(null),Je=N.useRef(null),pe=()=>{const ut=At.current;let wt;if(ut){const Ln=ut.getBoundingClientRect();wt={clientWidth:ut.clientWidth,scrollLeft:ut.scrollLeft,scrollTop:ut.scrollTop,scrollLeftNormalized:RCe(ut,i.direction),scrollWidth:ut.scrollWidth,top:Ln.top,bottom:Ln.bottom,left:Ln.left,right:Ln.right}}let Xt;if(ut&&L!==!1){const Ln=Je.current.children;if(Ln.length>0){const $n=Ln[ft.get(L)];Xt=$n?$n.getBoundingClientRect():null}}return{tabsMeta:wt,tabMeta:Xt}},le=on(()=>{const{tabsMeta:ut,tabMeta:wt}=pe();let Xt=0,Ln;if(Q)Ln="top",wt&&ut&&(Xt=wt.top-ut.top+ut.scrollTop);else if(Ln=a?"right":"left",wt&&ut){const jn=a?ut.scrollLeftNormalized+ut.clientWidth-ut.scrollWidth:ut.scrollLeft;Xt=(a?-1:1)*(wt[Ln]-ut[Ln]+jn)}const $n={[Ln]:Xt,[te]:wt?wt[te]:0};if(isNaN(ie[Ln])||isNaN(ie[te]))_e($n);else{const jn=Math.abs(ie[Ln]-$n[Ln]),sr=Math.abs(ie[te]-$n[te]);(jn>=1||sr>=1)&&_e($n)}}),he=(ut,{animation:wt=!0}={})=>{wt?VMe(H,At.current,ut,{duration:i.transitions.duration.standard}):At.current[H]=ut},je=ut=>{let wt=At.current[H];Q?wt+=ut:(wt+=ut*(a?-1:1),wt*=a&&yoe()==="reverse"?-1:1),he(wt)},Ze=()=>{const ut=At.current[X];let wt=0;const Xt=Array.from(Je.current.children);for(let Ln=0;Lnut){Ln===0&&(wt=ut);break}wt+=$n[X]}return wt},We=()=>{je(-1*Ze())},fe=()=>{je(Ze())},xe=N.useCallback(ut=>{et({overflow:null,scrollbarWidth:ut})},[]),ve=()=>{const ut={};ut.scrollbarSizeListener=Z?_.jsx(cLe,{onChange:xe,className:dt(Te.scrollableX,Te.hideScrollbar)}):null;const Xt=Z&&(x==="auto"&&(Ie||st)||x===!0);return ut.scrollButtonStart=Xt?_.jsx(E,M({slots:{StartScrollButtonIcon:C.StartScrollButtonIcon},slotProps:{startScrollButtonIcon:be},orientation:w,direction:a?"right":"left",onClick:We,disabled:!Ie},D,{className:dt(Te.scrollButtons,D.className)})):null,ut.scrollButtonEnd=Xt?_.jsx(E,M({slots:{EndScrollButtonIcon:C.EndScrollButtonIcon},slotProps:{endScrollButtonIcon:ee},orientation:w,direction:a?"left":"right",onClick:fe,disabled:!st},D,{className:dt(Te.scrollButtons,D.className)})):null,ut},De=on(ut=>{const{tabsMeta:wt,tabMeta:Xt}=pe();if(!(!Xt||!wt)){if(Xt[J]wt[K]){const Ln=wt[H]+(Xt[K]-wt[K]);he(Ln,{animation:ut})}}}),$e=on(()=>{Z&&x!==!1&&Ve(!tt)});N.useEffect(()=>{const ut=kO(()=>{At.current&&le()});let wt;const Xt=jn=>{jn.forEach(sr=>{sr.removedNodes.forEach(zr=>{var Me;(Me=wt)==null||Me.unobserve(zr)}),sr.addedNodes.forEach(zr=>{var Me;(Me=wt)==null||Me.observe(zr)})}),ut(),$e()},Ln=_c(At.current);Ln.addEventListener("resize",ut);let $n;return typeof ResizeObserver<"u"&&(wt=new ResizeObserver(ut),Array.from(Je.current.children).forEach(jn=>{wt.observe(jn)})),typeof MutationObserver<"u"&&($n=new MutationObserver(Xt),$n.observe(Je.current,{childList:!0})),()=>{var jn,sr;ut.clear(),Ln.removeEventListener("resize",ut),(jn=$n)==null||jn.disconnect(),(sr=wt)==null||sr.disconnect()}},[le,$e]),N.useEffect(()=>{const ut=Array.from(Je.current.children),wt=ut.length;if(typeof IntersectionObserver<"u"&&wt>0&&Z&&x!==!1){const Xt=ut[0],Ln=ut[wt-1],$n={root:At.current,threshold:.99},jn=Ue=>{qe(!Ue[0].isIntersecting)},sr=new IntersectionObserver(jn,$n);sr.observe(Xt);const zr=Ue=>{Pe(!Ue[0].isIntersecting)},Me=new IntersectionObserver(zr,$n);return Me.observe(Ln),()=>{sr.disconnect(),Me.disconnect()}}},[Z,x,tt,c==null?void 0:c.length]),N.useEffect(()=>{Oe(!0)},[]),N.useEffect(()=>{le()}),N.useEffect(()=>{De(jZ!==ie)},[De,ie]),N.useImperativeHandle(l,()=>({updateIndicator:le,updateScrollButtons:$e}),[le,$e]);const Ot=_.jsx(uLe,M({},A,{className:dt(Te.indicator,A.className),ownerState:z,style:M({},ie,A.style)}));let Wt=0;const Kt=N.Children.map(c,ut=>{if(!N.isValidElement(ut))return null;const wt=ut.props.value===void 0?Wt:ut.props.value;ft.set(wt,Wt);const Xt=wt===L;return Wt+=1,N.cloneElement(ut,M({fullWidth:F==="fullWidth",indicator:Xt&&!ye&&Ot,selected:Xt,selectionFollowsFocus:k,onChange:S,textColor:B,value:wt},Wt===1&&L===!1&&!ut.props.tabIndex?{tabIndex:0}:{}))}),gt=ut=>{const wt=Je.current,Xt=Ei(wt).activeElement;if(Xt.getAttribute("role")!=="tab")return;let $n=w==="horizontal"?"ArrowLeft":"ArrowUp",jn=w==="horizontal"?"ArrowRight":"ArrowDown";switch(w==="horizontal"&&a&&($n="ArrowRight",jn="ArrowLeft"),ut.key){case $n:ut.preventDefault(),eA(wt,Xt,zZ);break;case jn:ut.preventDefault(),eA(wt,Xt,UZ);break;case"Home":ut.preventDefault(),eA(wt,null,UZ);break;case"End":ut.preventDefault(),eA(wt,null,zZ);break}},Gt=ve();return _.jsxs(sLe,M({className:dt(Te.root,f),ownerState:z,ref:n,as:h},V,{children:[Gt.scrollButtonStart,Gt.scrollbarSizeListener,_.jsxs(oLe,{className:Te.scroller,ownerState:z,style:{overflow:Xe.overflow,[Q?`margin${a?"Left":"Right"}`:"marginBottom"]:W?void 0:-Xe.scrollbarWidth},ref:At,children:[_.jsx(lLe,{"aria-label":s,"aria-labelledby":o,"aria-orientation":w==="vertical"?"vertical":null,className:Te.flexContainer,ownerState:z,onKeyDown:gt,ref:Je,role:"tablist",children:Kt}),ye&&Ot]}),Gt.scrollButtonEnd]}))}),fLe=dLe;function hLe(e){return $t("MuiTextField",e)}Ft("MuiTextField",["root"]);const pLe=["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"],mLe={standard:fle,filled:sle,outlined:Ele},gLe=e=>{const{classes:t}=e;return Mt({root:["root"]},hLe,t)},bLe=Re(Lc,{name:"MuiTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({}),yLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTextField"}),{autoComplete:i,autoFocus:a=!1,children:s,className:o,color:l="primary",defaultValue:u,disabled:c=!1,error:f=!1,FormHelperTextProps:h,fullWidth:g=!1,helperText:b,id:S,InputLabelProps:w,inputProps:E,InputProps:x,inputRef:k,label:C,maxRows:I,minRows:A,multiline:D=!1,name:B,onBlur:L,onChange:F,onFocus:W,placeholder:V,required:Z=!1,rows:Q,select:H=!1,SelectProps:J,type:K,value:X,variant:te="outlined"}=r,z=at(r,pLe),Te=M({},r,{autoFocus:a,color:l,disabled:c,error:f,fullWidth:g,multiline:D,required:Z,select:H,variant:te}),be=gLe(Te),ee={};te==="outlined"&&(w&&typeof w.shrink<"u"&&(ee.notched=w.shrink),ee.label=C),H&&((!J||!J.native)&&(ee.id=void 0),ee["aria-describedby"]=void 0);const ye=Rd(S),Oe=b&&ye?`${ye}-helper-text`:void 0,ie=C&&ye?`${ye}-label`:void 0,_e=mLe[te],Ie=_.jsx(_e,M({"aria-describedby":Oe,autoComplete:i,autoFocus:a,defaultValue:u,fullWidth:g,multiline:D,name:B,rows:Q,maxRows:I,minRows:A,type:K,value:X,id:ye,inputRef:k,onBlur:L,onChange:F,onFocus:W,placeholder:V,inputProps:E},ee,x));return _.jsxs(bLe,M({className:dt(be.root,o),disabled:c,error:f,fullWidth:g,ref:n,required:Z,color:l,variant:te,ownerState:Te},z,{children:[C!=null&&C!==""&&_.jsx(hle,M({htmlFor:ye,id:ie},w,{children:C})),H?_.jsx(kle,M({"aria-describedby":Oe,id:ye,labelId:ie,value:X,input:Ie},J,{children:s})):Ie,b&&_.jsx(_O,M({id:Oe},h,{children:b}))]}))}),T0=yLe;function vLe(e){return $t("MuiToggleButton",e)}const OLe=Ft("MuiToggleButton",["root","disabled","selected","standard","primary","secondary","sizeSmall","sizeMedium","sizeLarge","fullWidth"]),Py=OLe,SLe=N.createContext({}),Ale=SLe,ELe=N.createContext(void 0),_le=ELe;function wLe(e,t){return t===void 0||e===void 0?!1:Array.isArray(t)?t.indexOf(e)>=0:e===t}const xLe=["value"],TLe=["children","className","color","disabled","disableFocusRipple","fullWidth","onChange","onClick","selected","size","value"],kLe=e=>{const{classes:t,fullWidth:n,selected:r,disabled:i,size:a,color:s}=e,o={root:["root",r&&"selected",i&&"disabled",n&&"fullWidth",`size${ht(a)}`,s]};return Mt(o,vLe,t)},CLe=Re(Cu,{name:"MuiToggleButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`size${ht(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),M({},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%"},{[`&.${Py.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})`:Rn(e.palette.text.primary,e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Py.selected}`]:{color:n,backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Rn(n,e.palette.action.selectedOpacity),"&:hover":{backgroundColor:e.vars?`rgba(${r} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.hoverOpacity}))`:Rn(n,e.palette.action.selectedOpacity+e.palette.action.hoverOpacity),"@media (hover: none)":{backgroundColor:e.vars?`rgba(${r} / ${e.vars.palette.action.selectedOpacity})`:Rn(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)})}),ALe=N.forwardRef(function(t,n){const r=N.useContext(Ale),{value:i}=r,a=at(r,xLe),s=N.useContext(_le),o=bR(M({},a,{selected:wLe(t.value,i)}),t),l=_t({props:o,name:"MuiToggleButton"}),{children:u,className:c,color:f="standard",disabled:h=!1,disableFocusRipple:g=!1,fullWidth:b=!1,onChange:S,onClick:w,selected:E,size:x="medium",value:k}=l,C=at(l,TLe),I=M({},l,{color:f,disabled:h,disableFocusRipple:g,fullWidth:b,size:x}),A=kLe(I),D=L=>{w&&(w(L,k),L.defaultPrevented)||S&&S(L,k)},B=s||"";return _.jsx(CLe,M({className:dt(a.className,A.root,c,B),disabled:h,focusRipple:!g,ref:n,onClick:D,onChange:S,value:k,ownerState:I,"aria-pressed":E},C,{children:u}))}),_4=ALe;function _Le(e){return $t("MuiToggleButtonGroup",e)}const RLe=Ft("MuiToggleButtonGroup",["root","selected","vertical","disabled","grouped","groupedHorizontal","groupedVertical","fullWidth","firstButton","lastButton","middleButton"]),Gi=RLe,ILe=["children","className","color","disabled","exclusive","fullWidth","onChange","orientation","size","value"],DLe=e=>{const{classes:t,orientation:n,fullWidth:r,disabled:i}=e,a={root:["root",n==="vertical"&&"vertical",r&&"fullWidth"],grouped:["grouped",`grouped${ht(n)}`,i&&"disabled"],firstButton:["firstButton"],lastButton:["lastButton"],middleButton:["middleButton"]};return Mt(a,_Le,t)},NLe=Re("div",{name:"MuiToggleButtonGroup",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Gi.grouped}`]:t.grouped},{[`& .${Gi.grouped}`]:t[`grouped${ht(n.orientation)}`]},{[`& .${Gi.firstButton}`]:t.firstButton},{[`& .${Gi.lastButton}`]:t.lastButton},{[`& .${Gi.middleButton}`]:t.middleButton},t.root,n.orientation==="vertical"&&t.vertical,n.fullWidth&&t.fullWidth]}})(({ownerState:e,theme:t})=>M({display:"inline-flex",borderRadius:(t.vars||t).shape.borderRadius},e.orientation==="vertical"&&{flexDirection:"column"},e.fullWidth&&{width:"100%"},{[`& .${Gi.grouped}`]:M({},e.orientation==="horizontal"?{[`&.${Gi.selected} + .${Gi.grouped}.${Gi.selected}`]:{borderLeft:0,marginLeft:0}}:{[`&.${Gi.selected} + .${Gi.grouped}.${Gi.selected}`]:{borderTop:0,marginTop:0}})},e.orientation==="horizontal"?{[`& .${Gi.firstButton},& .${Gi.middleButton}`]:{borderTopRightRadius:0,borderBottomRightRadius:0},[`& .${Gi.lastButton},& .${Gi.middleButton}`]:{marginLeft:-1,borderLeft:"1px solid transparent",borderTopLeftRadius:0,borderBottomLeftRadius:0}}:{[`& .${Gi.firstButton},& .${Gi.middleButton}`]:{borderBottomLeftRadius:0,borderBottomRightRadius:0},[`& .${Gi.lastButton},& .${Gi.middleButton}`]:{marginTop:-1,borderTop:"1px solid transparent",borderTopLeftRadius:0,borderTopRightRadius:0}},e.orientation==="horizontal"?{[`& .${Gi.lastButton}.${Py.disabled},& .${Gi.middleButton}.${Py.disabled}`]:{borderLeft:"1px solid transparent"}}:{[`& .${Gi.lastButton}.${Py.disabled},& .${Gi.middleButton}.${Py.disabled}`]:{borderTop:"1px solid transparent"}})),PLe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiToggleButtonGroup"}),{children:i,className:a,color:s="standard",disabled:o=!1,exclusive:l=!1,fullWidth:u=!1,onChange:c,orientation:f="horizontal",size:h="medium",value:g}=r,b=at(r,ILe),S=M({},r,{disabled:o,fullWidth:u,orientation:f,size:h}),w=DLe(S),E=N.useCallback((D,B)=>{if(!c)return;const L=g&&g.indexOf(B);let F;g&&L>=0?(F=g.slice(),F.splice(L,1)):F=g?g.concat(B):[B],c(D,F)},[c,g]),x=N.useCallback((D,B)=>{c&&c(D,g===B?null:B)},[c,g]),k=N.useMemo(()=>({className:w.grouped,onChange:l?x:E,value:g,size:h,fullWidth:u,color:s,disabled:o}),[w.grouped,l,x,E,g,h,u,s,o]),C=DCe(i),I=C.length,A=D=>{const B=D===0,L=D===I-1;return B&&L?"":B?w.firstButton:L?w.lastButton:w.middleButton};return _.jsx(NLe,M({role:"group",className:dt(w.root,a),ref:n,ownerState:S},b,{children:_.jsx(Ale.Provider,{value:k,children:C.map((D,B)=>_.jsx(_le.Provider,{value:A(B),children:D},B))})}))}),Rle=PLe;var Ile={exports:{}},Dle={};/** - * @license React - * use-sync-external-store-with-selector.production.min.js - * - * Copyright (c) Facebook, Inc. and its affiliates. - * - * This source code is licensed under the MIT license found in the - * LICENSE file in the root directory of this source tree. - */var cT=N;function MLe(e,t){return e===t&&(e!==0||1/e===1/t)||e!==e&&t!==t}var LLe=typeof Object.is=="function"?Object.is:MLe,$Le=cT.useSyncExternalStore,FLe=cT.useRef,BLe=cT.useEffect,ULe=cT.useMemo,zLe=cT.useDebugValue;Dle.useSyncExternalStoreWithSelector=function(e,t,n,r,i){var a=FLe(null);if(a.current===null){var s={hasValue:!1,value:null};a.current=s}else s=a.current;a=ULe(function(){function l(g){if(!u){if(u=!0,c=g,g=r(g),i!==void 0&&s.hasValue){var b=s.value;if(i(b,g))return f=b}return f=g}if(b=f,LLe(c,g))return b;var S=r(g);return i!==void 0&&i(b,S)?b:(c=g,f=S)}var u=!1,c,f,h=n===void 0?null:n;return[function(){return l(t())},h===null?void 0:function(){return l(h())}]},[t,n,r,i]);var o=$Le(e,a[0],a[1]);return BLe(function(){s.hasValue=!0,s.value=o},[o]),zLe(o),o};Ile.exports=Dle;var jLe=Ile.exports,vu="default"in Uv?hn:Uv,HZ=Symbol.for("react-redux-context"),VZ=typeof globalThis<"u"?globalThis:{};function HLe(){if(!vu.createContext)return{};const e=VZ[HZ]??(VZ[HZ]=new Map);let t=e.get(vu.createContext);return t||(t=vu.createContext(null),e.set(vu.createContext,t)),t}var a0=HLe(),VLe=()=>{throw new Error("uSES not initialized!")};function AF(e=a0){return function(){return vu.useContext(e)}}var Nle=AF(),Ple=VLe,WLe=e=>{Ple=e},QLe=(e,t)=>e===t;function qLe(e=a0){const t=e===a0?Nle:AF(e),n=(r,i={})=>{const{equalityFn:a=QLe,devModeChecks:s={}}=typeof i=="function"?{equalityFn:i}:i,{store:o,subscription:l,getServerState:u,stabilityCheck:c,identityFunctionCheck:f}=t();vu.useRef(!0);const h=vu.useCallback({[r.name](b){return r(b)}}[r.name],[r,c,s.stabilityCheck]),g=Ple(l.addNestedSub,o.getState,u||o.getState,h,a);return vu.useDebugValue(g),g};return Object.assign(n,{withTypes:()=>n}),n}var Qr=qLe();function GLe(e){e()}function YLe(){let e=null,t=null;return{clear(){e=null,t=null},notify(){GLe(()=>{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 WZ={notify(){},get:()=>[]};function ZLe(e,t){let n,r=WZ,i=0,a=!1;function s(S){c();const w=r.subscribe(S);let E=!1;return()=>{E||(E=!0,w(),f())}}function o(){r.notify()}function l(){b.onStateChange&&b.onStateChange()}function u(){return a}function c(){i++,n||(n=t?t.addNestedSub(l):e.subscribe(l),r=YLe())}function f(){i--,n&&i===0&&(n(),n=void 0,r.clear(),r=WZ)}function h(){a||(a=!0,c())}function g(){a&&(a=!1,f())}const b={addNestedSub:s,notifyNestedSubs:o,handleChangeWrapper:l,isSubscribed:u,trySubscribe:h,tryUnsubscribe:g,getListeners:()=>r};return b}var XLe=typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",KLe=XLe?vu.useLayoutEffect:vu.useEffect;function JLe({store:e,context:t,children:n,serverState:r,stabilityCheck:i="once",identityFunctionCheck:a="once"}){const s=vu.useMemo(()=>{const u=ZLe(e);return{store:e,subscription:u,getServerState:r?()=>r:void 0,stabilityCheck:i,identityFunctionCheck:a}},[e,r,i,a]),o=vu.useMemo(()=>e.getState(),[e]);KLe(()=>{const{subscription:u}=s;return u.onStateChange=u.notifyNestedSubs,u.trySubscribe(),o!==e.getState()&&u.notifyNestedSubs(),()=>{u.tryUnsubscribe(),u.onStateChange=void 0}},[s,o]);const l=t||a0;return vu.createElement(l.Provider,{value:s},n)}var e9e=JLe;function Mle(e=a0){const t=e===a0?Nle:AF(e),n=()=>{const{store:r}=t();return r};return Object.assign(n,{withTypes:()=>n}),n}var t9e=Mle();function n9e(e=a0){const t=e===a0?t9e:Mle(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Pu=n9e();WLe(jLe.useSyncExternalStoreWithSelector);/** - * @remix-run/router v1.14.2 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Ea(){return Ea=Object.assign?Object.assign.bind():function(e){for(var t=1;t"u")throw new Error(t)}function p1(e,t){if(!e){typeof console<"u"&&console.warn(t);try{throw new Error(t)}catch{}}}function i9e(){return Math.random().toString(36).substr(2,8)}function qZ(e,t){return{usr:e.state,key:e.key,idx:t}}function Bw(e,t,n,r){return n===void 0&&(n=null),Ea({pathname:typeof e=="string"?e:e.pathname,search:"",hash:""},typeof t=="string"?Op(t):t,{state:n,key:t&&t.key||r||i9e()})}function dT(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 Op(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 a9e(e,t,n,r){r===void 0&&(r={});let{window:i=document.defaultView,v5Compat:a=!1}=r,s=i.history,o=Ia.Pop,l=null,u=c();u==null&&(u=0,s.replaceState(Ea({},s.state,{idx:u}),""));function c(){return(s.state||{idx:null}).idx}function f(){o=Ia.Pop;let w=c(),E=w==null?null:w-u;u=w,l&&l({action:o,location:S.location,delta:E})}function h(w,E){o=Ia.Push;let x=Bw(S.location,w,E);n&&n(x,w),u=c()+1;let k=qZ(x,u),C=S.createHref(x);try{s.pushState(k,"",C)}catch(I){if(I instanceof DOMException&&I.name==="DataCloneError")throw I;i.location.assign(C)}a&&l&&l({action:o,location:S.location,delta:1})}function g(w,E){o=Ia.Replace;let x=Bw(S.location,w,E);n&&n(x,w),u=c();let k=qZ(x,u),C=S.createHref(x);s.replaceState(k,"",C),a&&l&&l({action:o,location:S.location,delta:0})}function b(w){let E=i.location.origin!=="null"?i.location.origin:i.location.href,x=typeof w=="string"?w:dT(w);return Rr(E,"No window.location.(origin|href) available to create URL for href: "+x),new URL(x,E)}let S={get action(){return o},get location(){return e(i,s)},listen(w){if(l)throw new Error("A history only accepts one active listener");return i.addEventListener(QZ,f),l=w,()=>{i.removeEventListener(QZ,f),l=null}},createHref(w){return t(i,w)},createURL:b,encodeLocation(w){let E=b(w);return{pathname:E.pathname,search:E.search,hash:E.hash}},push:h,replace:g,go(w){return s.go(w)}};return S}var Oa;(function(e){e.data="data",e.deferred="deferred",e.redirect="redirect",e.error="error"})(Oa||(Oa={}));const s9e=new Set(["lazy","caseSensitive","path","id","index","children"]);function o9e(e){return e.index===!0}function $8(e,t,n,r){return n===void 0&&(n=[]),r===void 0&&(r={}),e.map((i,a)=>{let s=[...n,a],o=typeof i.id=="string"?i.id:s.join("-");if(Rr(i.index!==!0||!i.children,"Cannot specify children on an index route"),Rr(!r[o],'Found a route id collision on id "'+o+`". Route id's must be globally unique within Data Router usages`),o9e(i)){let l=Ea({},i,t(i),{id:o});return r[o]=l,l}else{let l=Ea({},i,t(i),{id:o,children:void 0});return r[o]=l,i.children&&(l.children=$8(i.children,t,s,r)),l}})}function My(e,t,n){n===void 0&&(n="/");let r=typeof t=="string"?Op(t):t,i=fT(r.pathname||"/",n);if(i==null)return null;let a=Lle(e);u9e(a);let s=null;for(let o=0;s==null&&o{let l={relativePath:o===void 0?a.path||"":o,caseSensitive:a.caseSensitive===!0,childrenIndex:s,route:a};l.relativePath.startsWith("/")&&(Rr(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=Qm([r,l.relativePath]),c=n.concat(l);a.children&&a.children.length>0&&(Rr(a.index!==!0,"Index routes must not have child routes. Please remove "+('all child routes from route path "'+u+'".')),Lle(a.children,t,c,u)),!(a.path==null&&!a.index)&&t.push({path:u,score:g9e(u,a.index),routesMeta:c})};return e.forEach((a,s)=>{var o;if(a.path===""||!((o=a.path)!=null&&o.includes("?")))i(a,s);else for(let l of $le(a.path))i(a,s,l)}),t}function $le(e){let t=e.split("/");if(t.length===0)return[];let[n,...r]=t,i=n.endsWith("?"),a=n.replace(/\?$/,"");if(r.length===0)return i?[a,""]:[a];let s=$le(r.join("/")),o=[];return o.push(...s.map(l=>l===""?a:[a,l].join("/"))),i&&o.push(...s),o.map(l=>e.startsWith("/")&&l===""?"/":l)}function u9e(e){e.sort((t,n)=>t.score!==n.score?n.score-t.score:b9e(t.routesMeta.map(r=>r.childrenIndex),n.routesMeta.map(r=>r.childrenIndex)))}const c9e=/^:[\w-]+$/,d9e=3,f9e=2,h9e=1,p9e=10,m9e=-2,GZ=e=>e==="*";function g9e(e,t){let n=e.split("/"),r=n.length;return n.some(GZ)&&(r+=m9e),t&&(r+=f9e),n.filter(i=>!GZ(i)).reduce((i,a)=>i+(c9e.test(a)?d9e:a===""?h9e:p9e),r)}function b9e(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 y9e(e,t){let{routesMeta:n}=e,r={},i="/",a=[];for(let s=0;s{let{paramName:h,isOptional:g}=c;if(h==="*"){let S=o[f]||"";s=a.slice(0,a.length-S.length).replace(/(.)\/+$/,"$1")}const b=o[f];return g&&!b?u[h]=void 0:u[h]=E9e(b||"",h),u},{}),pathname:a,pathnameBase:s,pattern:e}}function O9e(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!0),p1(e==="*"||!e.endsWith("*")||e.endsWith("/*"),'Route path "'+e+'" will be treated as if it were '+('"'+e.replace(/\*$/,"/*")+'" because the `*` character must ')+"always follow a `/` in the pattern. To get rid of this warning, "+('please change the route path to "'+e.replace(/\*$/,"/*")+'".'));let r=[],i="^"+e.replace(/\/*\*?$/,"").replace(/^\/*/,"/").replace(/[\\.*+^${}|()[\]]/g,"\\$&").replace(/\/:([\w-]+)(\?)?/g,(s,o,l)=>(r.push({paramName:o,isOptional:l!=null}),l?"/?([^\\/]+)?":"/([^\\/]+)"));return e.endsWith("*")?(r.push({paramName:"*"}),i+=e==="*"||e==="/*"?"(.*)$":"(?:\\/(.+)|\\/*)$"):n?i+="\\/*$":e!==""&&e!=="/"&&(i+="(?:(?=\\/|$))"),[new RegExp(i,t?void 0:"i"),r]}function S9e(e){try{return decodeURI(e)}catch(t){return p1(!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 E9e(e,t){try{return decodeURIComponent(e)}catch(n){return p1(!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 fT(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 w9e(e,t){t===void 0&&(t="/");let{pathname:n,search:r="",hash:i=""}=typeof e=="string"?Op(e):e;return{pathname:n?n.startsWith("/")?n:x9e(n,t):t,search:k9e(r),hash:C9e(i)}}function x9e(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 _N(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 Fle(e){return e.filter((t,n)=>n===0||t.route.path&&t.route.path.length>0)}function _F(e,t){let n=Fle(e);return t?n.map((r,i)=>i===e.length-1?r.pathname:r.pathnameBase):n.map(r=>r.pathnameBase)}function RF(e,t,n,r){r===void 0&&(r=!1);let i;typeof e=="string"?i=Op(e):(i=Ea({},e),Rr(!i.pathname||!i.pathname.includes("?"),_N("?","pathname","search",i)),Rr(!i.pathname||!i.pathname.includes("#"),_N("#","pathname","hash",i)),Rr(!i.search||!i.search.includes("#"),_N("#","search","hash",i)));let a=e===""||i.pathname==="",s=a?"/":i.pathname,o;if(s==null)o=n;else{let f=t.length-1;if(!r&&s.startsWith("..")){let h=s.split("/");for(;h[0]==="..";)h.shift(),f-=1;i.pathname=h.join("/")}o=f>=0?t[f]:"/"}let l=w9e(i,o),u=s&&s!=="/"&&s.endsWith("/"),c=(a||s===".")&&n.endsWith("/");return!l.pathname.endsWith("/")&&(u||c)&&(l.pathname+="/"),l}const Qm=e=>e.join("/").replace(/\/\/+/g,"/"),T9e=e=>e.replace(/\/+$/,"").replace(/^\/*/,"/"),k9e=e=>!e||e==="?"?"":e.startsWith("?")?e:"?"+e,C9e=e=>!e||e==="#"?"":e.startsWith("#")?e:"#"+e;class IF{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 DF(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.internal=="boolean"&&"data"in e}const Ble=["post","put","patch","delete"],A9e=new Set(Ble),_9e=["get",...Ble],R9e=new Set(_9e),I9e=new Set([301,302,303,307,308]),D9e=new Set([307,308]),RN={state:"idle",location:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},N9e={state:"idle",data:void 0,formMethod:void 0,formAction:void 0,formEncType:void 0,formData:void 0,json:void 0,text:void 0},wE={state:"unblocked",proceed:void 0,reset:void 0,location:void 0},Ule=/^(?:[a-z][a-z0-9+.-]*:|\/\/)/i,P9e=e=>({hasErrorBoundary:!!e.hasErrorBoundary}),zle="remix-router-transitions";function M9e(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;Rr(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 Me=e.detectErrorBoundary;i=Ue=>({hasErrorBoundary:Me(Ue)})}else i=P9e;let a={},s=$8(e.routes,i,void 0,a),o,l=e.basename||"/",u=Ea({v7_fetcherPersist:!1,v7_normalizeFormMethod:!1,v7_partialHydration:!1,v7_prependBasename:!1,v7_relativeSplatPath:!1},e.future),c=null,f=new Set,h=null,g=null,b=null,S=e.hydrationData!=null,w=My(s,e.history.location,l),E=null;if(w==null){let Me=rc(404,{pathname:e.history.location.pathname}),{matches:Ue,route:lt}=nX(s);w=Ue,E={[lt.id]:Me}}let x,k=w.some(Me=>Me.route.lazy),C=w.some(Me=>Me.route.loader);if(k)x=!1;else if(!C)x=!0;else if(u.v7_partialHydration){let Me=e.hydrationData?e.hydrationData.loaderData:null,Ue=e.hydrationData?e.hydrationData.errors:null;x=w.every(lt=>lt.route.loader&<.route.loader.hydrate!==!0&&(Me&&Me[lt.route.id]!==void 0||Ue&&Ue[lt.route.id]!==void 0))}else x=e.hydrationData!=null;let I,A={historyAction:e.history.action,location:e.history.location,matches:w,initialized:x,navigation:RN,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||E,fetchers:new Map,blockers:new Map},D=Ia.Pop,B=!1,L,F=!1,W=new Map,V=null,Z=!1,Q=!1,H=[],J=[],K=new Map,X=0,te=-1,z=new Map,Te=new Set,be=new Map,ee=new Map,ye=new Set,Oe=new Map,ie=new Map,_e=!1;function Ie(){if(c=e.history.listen(Me=>{let{action:Ue,location:lt,delta:Nt}=Me;if(_e){_e=!1;return}p1(ie.size===0||Nt!=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 Qt=wt({currentLocation:A.location,nextLocation:lt,historyAction:Ue});if(Qt&&Nt!=null){_e=!0,e.history.go(Nt*-1),ut(Qt,{state:"blocked",location:lt,proceed(){ut(Qt,{state:"proceeding",proceed:void 0,reset:void 0,location:lt}),e.history.go(Nt)},reset(){let Hn=new Map(A.blockers);Hn.set(Qt,wE),Pe({blockers:Hn})}});return}return et(Ue,lt)}),n){Q9e(t,W);let Me=()=>q9e(t,W);t.addEventListener("pagehide",Me),V=()=>t.removeEventListener("pagehide",Me)}return A.initialized||et(Ia.Pop,A.location,{initialHydration:!0}),I}function qe(){c&&c(),V&&V(),f.clear(),L&&L.abort(),A.fetchers.forEach((Me,Ue)=>ve(Ue)),A.blockers.forEach((Me,Ue)=>Gt(Ue))}function st(Me){return f.add(Me),()=>f.delete(Me)}function Pe(Me,Ue){Ue===void 0&&(Ue={}),A=Ea({},A,Me);let lt=[],Nt=[];u.v7_fetcherPersist&&A.fetchers.forEach((Qt,Hn)=>{Qt.state==="idle"&&(ye.has(Hn)?Nt.push(Hn):lt.push(Hn))}),[...f].forEach(Qt=>Qt(A,{deletedFetchers:Nt,unstable_viewTransitionOpts:Ue.viewTransitionOpts,unstable_flushSync:Ue.flushSync===!0})),u.v7_fetcherPersist&&(lt.forEach(Qt=>A.fetchers.delete(Qt)),Nt.forEach(Qt=>ve(Qt)))}function tt(Me,Ue,lt){var Nt,Qt;let{flushSync:Hn}=lt===void 0?{}:lt,yn=A.actionData!=null&&A.navigation.formMethod!=null&&id(A.navigation.formMethod)&&A.navigation.state==="loading"&&((Nt=Me.state)==null?void 0:Nt._isRedirect)!==!0,rn;Ue.actionData?Object.keys(Ue.actionData).length>0?rn=Ue.actionData:rn=null:yn?rn=A.actionData:rn=null;let Yt=Ue.loaderData?tX(A.loaderData,Ue.loaderData,Ue.matches||[],Ue.errors):A.loaderData,xn=A.blockers;xn.size>0&&(xn=new Map(xn),xn.forEach((ot,yt)=>xn.set(yt,wE)));let Qe=B===!0||A.navigation.formMethod!=null&&id(A.navigation.formMethod)&&((Qt=Me.state)==null?void 0:Qt._isRedirect)!==!0;o&&(s=o,o=void 0),Z||D===Ia.Pop||(D===Ia.Push?e.history.push(Me,Me.state):D===Ia.Replace&&e.history.replace(Me,Me.state));let Ye;if(D===Ia.Pop){let ot=W.get(A.location.pathname);ot&&ot.has(Me.pathname)?Ye={currentLocation:A.location,nextLocation:Me}:W.has(Me.pathname)&&(Ye={currentLocation:Me,nextLocation:A.location})}else if(F){let ot=W.get(A.location.pathname);ot?ot.add(Me.pathname):(ot=new Set([Me.pathname]),W.set(A.location.pathname,ot)),Ye={currentLocation:A.location,nextLocation:Me}}Pe(Ea({},Ue,{actionData:rn,loaderData:Yt,historyAction:D,location:Me,initialized:!0,navigation:RN,revalidation:"idle",restoreScrollPosition:sr(Me,Ue.matches||A.matches),preventScrollReset:Qe,blockers:xn}),{viewTransitionOpts:Ye,flushSync:Hn===!0}),D=Ia.Pop,B=!1,F=!1,Z=!1,Q=!1,H=[],J=[]}async function Ve(Me,Ue){if(typeof Me=="number"){e.history.go(Me);return}let lt=F8(A.location,A.matches,l,u.v7_prependBasename,Me,u.v7_relativeSplatPath,Ue==null?void 0:Ue.fromRouteId,Ue==null?void 0:Ue.relative),{path:Nt,submission:Qt,error:Hn}=YZ(u.v7_normalizeFormMethod,!1,lt,Ue),yn=A.location,rn=Bw(A.location,Nt,Ue&&Ue.state);rn=Ea({},rn,e.history.encodeLocation(rn));let Yt=Ue&&Ue.replace!=null?Ue.replace:void 0,xn=Ia.Push;Yt===!0?xn=Ia.Replace:Yt===!1||Qt!=null&&id(Qt.formMethod)&&Qt.formAction===A.location.pathname+A.location.search&&(xn=Ia.Replace);let Qe=Ue&&"preventScrollReset"in Ue?Ue.preventScrollReset===!0:void 0,Ye=(Ue&&Ue.unstable_flushSync)===!0,ot=wt({currentLocation:yn,nextLocation:rn,historyAction:xn});if(ot){ut(ot,{state:"blocked",location:rn,proceed(){ut(ot,{state:"proceeding",proceed:void 0,reset:void 0,location:rn}),Ve(Me,Ue)},reset(){let yt=new Map(A.blockers);yt.set(ot,wE),Pe({blockers:yt})}});return}return await et(xn,rn,{submission:Qt,pendingError:Hn,preventScrollReset:Qe,replace:Ue&&Ue.replace,enableViewTransition:Ue&&Ue.unstable_viewTransition,flushSync:Ye})}function Xe(){if(Ze(),Pe({revalidation:"loading"}),A.navigation.state!=="submitting"){if(A.navigation.state==="idle"){et(A.historyAction,A.location,{startUninterruptedRevalidation:!0});return}et(D||A.historyAction,A.navigation.location,{overrideNavigation:A.navigation})}}async function et(Me,Ue,lt){L&&L.abort(),L=null,D=Me,Z=(lt&<.startUninterruptedRevalidation)===!0,jn(A.location,A.matches),B=(lt&<.preventScrollReset)===!0,F=(lt&<.enableViewTransition)===!0;let Nt=o||s,Qt=lt&<.overrideNavigation,Hn=My(Nt,Ue,l),yn=(lt&<.flushSync)===!0;if(!Hn){let yt=rc(404,{pathname:Ue.pathname}),{matches:Yn,route:pn}=nX(Nt);Xt(),tt(Ue,{matches:Yn,loaderData:{},errors:{[pn.id]:yt}},{flushSync:yn});return}if(A.initialized&&!Q&&U9e(A.location,Ue)&&!(lt&<.submission&&id(lt.submission.formMethod))){tt(Ue,{matches:Hn},{flushSync:yn});return}L=new AbortController;let rn=TE(e.history,Ue,L.signal,lt&<.submission),Yt,xn;if(lt&<.pendingError)xn={[$2(Hn).route.id]:lt.pendingError};else if(lt&<.submission&&id(lt.submission.formMethod)){let yt=await ft(rn,Ue,lt.submission,Hn,{replace:lt.replace,flushSync:yn});if(yt.shortCircuited)return;Yt=yt.pendingActionData,xn=yt.pendingActionError,Qt=IN(Ue,lt.submission),yn=!1,rn=new Request(rn.url,{signal:rn.signal})}let{shortCircuited:Qe,loaderData:Ye,errors:ot}=await At(rn,Ue,Hn,Qt,lt&<.submission,lt&<.fetcherSubmission,lt&<.replace,lt&<.initialHydration===!0,yn,Yt,xn);Qe||(L=null,tt(Ue,Ea({matches:Hn},Yt?{actionData:Yt}:{},{loaderData:Ye,errors:ot})))}async function ft(Me,Ue,lt,Nt,Qt){Qt===void 0&&(Qt={}),Ze();let Hn=V9e(Ue,lt);Pe({navigation:Hn},{flushSync:Qt.flushSync===!0});let yn,rn=U8(Nt,Ue);if(!rn.route.action&&!rn.route.lazy)yn={type:Oa.error,error:rc(405,{method:Me.method,pathname:Ue.pathname,routeId:rn.route.id})};else if(yn=await xE("action",Me,rn,Nt,a,i,l,u.v7_relativeSplatPath),Me.signal.aborted)return{shortCircuited:!0};if(Lg(yn)){let Yt;return Qt&&Qt.replace!=null?Yt=Qt.replace:Yt=yn.location===A.location.pathname+A.location.search,await he(A,yn,{submission:lt,replace:Yt}),{shortCircuited:!0}}if(Ly(yn)){let Yt=$2(Nt,rn.route.id);return(Qt&&Qt.replace)!==!0&&(D=Ia.Push),{pendingActionData:{},pendingActionError:{[Yt.route.id]:yn.error}}}if(Mg(yn))throw rc(400,{type:"defer-action"});return{pendingActionData:{[rn.route.id]:yn.data}}}async function At(Me,Ue,lt,Nt,Qt,Hn,yn,rn,Yt,xn,Qe){let Ye=Nt||IN(Ue,Qt),ot=Qt||Hn||aX(Ye),yt=o||s,[Yn,pn]=ZZ(e.history,A,lt,ot,Ue,u.v7_partialHydration&&rn===!0,Q,H,J,ye,be,Te,yt,l,xn,Qe);if(Xt(Wn=>!(lt&<.some(ni=>ni.route.id===Wn))||Yn&&Yn.some(ni=>ni.route.id===Wn)),te=++X,Yn.length===0&&pn.length===0){let Wn=Wt();return tt(Ue,Ea({matches:lt,loaderData:{},errors:Qe||null},xn?{actionData:xn}:{},Wn?{fetchers:new Map(A.fetchers)}:{}),{flushSync:Yt}),{shortCircuited:!0}}if(!Z&&(!u.v7_partialHydration||!rn)){pn.forEach(ni=>{let Ga=A.fetchers.get(ni.key),Hc=kE(void 0,Ga?Ga.data:void 0);A.fetchers.set(ni.key,Hc)});let Wn=xn||A.actionData;Pe(Ea({navigation:Ye},Wn?Object.keys(Wn).length===0?{actionData:null}:{actionData:Wn}:{},pn.length>0?{fetchers:new Map(A.fetchers)}:{}),{flushSync:Yt})}pn.forEach(Wn=>{K.has(Wn.key)&&$e(Wn.key),Wn.controller&&K.set(Wn.key,Wn.controller)});let Fn=()=>pn.forEach(Wn=>$e(Wn.key));L&&L.signal.addEventListener("abort",Fn);let{results:Pi,loaderResults:nt,fetcherResults:Be}=await je(A.matches,lt,Yn,pn,Me);if(Me.signal.aborted)return{shortCircuited:!0};L&&L.signal.removeEventListener("abort",Fn),pn.forEach(Wn=>K.delete(Wn.key));let Dt=rX(Pi);if(Dt){if(Dt.idx>=Yn.length){let Wn=pn[Dt.idx-Yn.length].key;Te.add(Wn)}return await he(A,Dt.result,{replace:yn}),{shortCircuited:!0}}let{loaderData:en,errors:Vn}=eX(A,lt,Yn,nt,Qe,pn,Be,Oe);Oe.forEach((Wn,ni)=>{Wn.subscribe(Ga=>{(Ga||Wn.done)&&Oe.delete(ni)})});let Kr=Wt(),wr=Kt(te),In=Kr||wr||pn.length>0;return Ea({loaderData:en,errors:Vn},In?{fetchers:new Map(A.fetchers)}:{})}function Je(Me,Ue,lt,Nt){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.");K.has(Me)&&$e(Me);let Qt=(Nt&&Nt.unstable_flushSync)===!0,Hn=o||s,yn=F8(A.location,A.matches,l,u.v7_prependBasename,lt,u.v7_relativeSplatPath,Ue,Nt==null?void 0:Nt.relative),rn=My(Hn,yn,l);if(!rn){fe(Me,Ue,rc(404,{pathname:yn}),{flushSync:Qt});return}let{path:Yt,submission:xn,error:Qe}=YZ(u.v7_normalizeFormMethod,!0,yn,Nt);if(Qe){fe(Me,Ue,Qe,{flushSync:Qt});return}let Ye=U8(rn,Yt);if(B=(Nt&&Nt.preventScrollReset)===!0,xn&&id(xn.formMethod)){pe(Me,Ue,Yt,Ye,rn,Qt,xn);return}be.set(Me,{routeId:Ue,path:Yt}),le(Me,Ue,Yt,Ye,rn,Qt,xn)}async function pe(Me,Ue,lt,Nt,Qt,Hn,yn){if(Ze(),be.delete(Me),!Nt.route.action&&!Nt.route.lazy){let ni=rc(405,{method:yn.formMethod,pathname:lt,routeId:Ue});fe(Me,Ue,ni,{flushSync:Hn});return}let rn=A.fetchers.get(Me);We(Me,W9e(yn,rn),{flushSync:Hn});let Yt=new AbortController,xn=TE(e.history,lt,Yt.signal,yn);K.set(Me,Yt);let Qe=X,Ye=await xE("action",xn,Nt,Qt,a,i,l,u.v7_relativeSplatPath);if(xn.signal.aborted){K.get(Me)===Yt&&K.delete(Me);return}if(u.v7_fetcherPersist&&ye.has(Me)){if(Lg(Ye)||Ly(Ye)){We(Me,rm(void 0));return}}else{if(Lg(Ye))if(K.delete(Me),te>Qe){We(Me,rm(void 0));return}else return Te.add(Me),We(Me,kE(yn)),he(A,Ye,{fetcherSubmission:yn});if(Ly(Ye)){fe(Me,Ue,Ye.error);return}}if(Mg(Ye))throw rc(400,{type:"defer-action"});let ot=A.navigation.location||A.location,yt=TE(e.history,ot,Yt.signal),Yn=o||s,pn=A.navigation.state!=="idle"?My(Yn,A.navigation.location,l):A.matches;Rr(pn,"Didn't find any matches after fetcher action");let Fn=++X;z.set(Me,Fn);let Pi=kE(yn,Ye.data);A.fetchers.set(Me,Pi);let[nt,Be]=ZZ(e.history,A,pn,yn,ot,!1,Q,H,J,ye,be,Te,Yn,l,{[Nt.route.id]:Ye.data},void 0);Be.filter(ni=>ni.key!==Me).forEach(ni=>{let Ga=ni.key,Hc=A.fetchers.get(Ga),_p=kE(void 0,Hc?Hc.data:void 0);A.fetchers.set(Ga,_p),K.has(Ga)&&$e(Ga),ni.controller&&K.set(Ga,ni.controller)}),Pe({fetchers:new Map(A.fetchers)});let Dt=()=>Be.forEach(ni=>$e(ni.key));Yt.signal.addEventListener("abort",Dt);let{results:en,loaderResults:Vn,fetcherResults:Kr}=await je(A.matches,pn,nt,Be,yt);if(Yt.signal.aborted)return;Yt.signal.removeEventListener("abort",Dt),z.delete(Me),K.delete(Me),Be.forEach(ni=>K.delete(ni.key));let wr=rX(en);if(wr){if(wr.idx>=nt.length){let ni=Be[wr.idx-nt.length].key;Te.add(ni)}return he(A,wr.result)}let{loaderData:In,errors:Wn}=eX(A,A.matches,nt,Vn,void 0,Be,Kr,Oe);if(A.fetchers.has(Me)){let ni=rm(Ye.data);A.fetchers.set(Me,ni)}Kt(Fn),A.navigation.state==="loading"&&Fn>te?(Rr(D,"Expected pending action"),L&&L.abort(),tt(A.navigation.location,{matches:pn,loaderData:In,errors:Wn,fetchers:new Map(A.fetchers)})):(Pe({errors:Wn,loaderData:tX(A.loaderData,In,pn,Wn),fetchers:new Map(A.fetchers)}),Q=!1)}async function le(Me,Ue,lt,Nt,Qt,Hn,yn){let rn=A.fetchers.get(Me);We(Me,kE(yn,rn?rn.data:void 0),{flushSync:Hn});let Yt=new AbortController,xn=TE(e.history,lt,Yt.signal);K.set(Me,Yt);let Qe=X,Ye=await xE("loader",xn,Nt,Qt,a,i,l,u.v7_relativeSplatPath);if(Mg(Ye)&&(Ye=await Vle(Ye,xn.signal,!0)||Ye),K.get(Me)===Yt&&K.delete(Me),!xn.signal.aborted){if(ye.has(Me)){We(Me,rm(void 0));return}if(Lg(Ye))if(te>Qe){We(Me,rm(void 0));return}else{Te.add(Me),await he(A,Ye);return}if(Ly(Ye)){fe(Me,Ue,Ye.error);return}Rr(!Mg(Ye),"Unhandled fetcher deferred data"),We(Me,rm(Ye.data))}}async function he(Me,Ue,lt){let{submission:Nt,fetcherSubmission:Qt,replace:Hn}=lt===void 0?{}:lt;Ue.revalidate&&(Q=!0);let yn=Bw(Me.location,Ue.location,{_isRedirect:!0});if(Rr(yn,"Expected a location on the redirect navigation"),n){let ot=!1;if(Ue.reloadDocument)ot=!0;else if(Ule.test(Ue.location)){const yt=e.history.createURL(Ue.location);ot=yt.origin!==t.location.origin||fT(yt.pathname,l)==null}if(ot){Hn?t.location.replace(Ue.location):t.location.assign(Ue.location);return}}L=null;let rn=Hn===!0?Ia.Replace:Ia.Push,{formMethod:Yt,formAction:xn,formEncType:Qe}=Me.navigation;!Nt&&!Qt&&Yt&&xn&&Qe&&(Nt=aX(Me.navigation));let Ye=Nt||Qt;if(D9e.has(Ue.status)&&Ye&&id(Ye.formMethod))await et(rn,yn,{submission:Ea({},Ye,{formAction:Ue.location}),preventScrollReset:B});else{let ot=IN(yn,Nt);await et(rn,yn,{overrideNavigation:ot,fetcherSubmission:Qt,preventScrollReset:B})}}async function je(Me,Ue,lt,Nt,Qt){let Hn=await Promise.all([...lt.map(Yt=>xE("loader",Qt,Yt,Ue,a,i,l,u.v7_relativeSplatPath)),...Nt.map(Yt=>Yt.matches&&Yt.match&&Yt.controller?xE("loader",TE(e.history,Yt.path,Yt.controller.signal),Yt.match,Yt.matches,a,i,l,u.v7_relativeSplatPath):{type:Oa.error,error:rc(404,{pathname:Yt.path})})]),yn=Hn.slice(0,lt.length),rn=Hn.slice(lt.length);return await Promise.all([iX(Me,lt,yn,yn.map(()=>Qt.signal),!1,A.loaderData),iX(Me,Nt.map(Yt=>Yt.match),rn,Nt.map(Yt=>Yt.controller?Yt.controller.signal:null),!0)]),{results:Hn,loaderResults:yn,fetcherResults:rn}}function Ze(){Q=!0,H.push(...Xt()),be.forEach((Me,Ue)=>{K.has(Ue)&&(J.push(Ue),$e(Ue))})}function We(Me,Ue,lt){lt===void 0&&(lt={}),A.fetchers.set(Me,Ue),Pe({fetchers:new Map(A.fetchers)},{flushSync:(lt&<.flushSync)===!0})}function fe(Me,Ue,lt,Nt){Nt===void 0&&(Nt={});let Qt=$2(A.matches,Ue);ve(Me),Pe({errors:{[Qt.route.id]:lt},fetchers:new Map(A.fetchers)},{flushSync:(Nt&&Nt.flushSync)===!0})}function xe(Me){return u.v7_fetcherPersist&&(ee.set(Me,(ee.get(Me)||0)+1),ye.has(Me)&&ye.delete(Me)),A.fetchers.get(Me)||N9e}function ve(Me){let Ue=A.fetchers.get(Me);K.has(Me)&&!(Ue&&Ue.state==="loading"&&z.has(Me))&&$e(Me),be.delete(Me),z.delete(Me),Te.delete(Me),ye.delete(Me),A.fetchers.delete(Me)}function De(Me){if(u.v7_fetcherPersist){let Ue=(ee.get(Me)||0)-1;Ue<=0?(ee.delete(Me),ye.add(Me)):ee.set(Me,Ue)}else ve(Me);Pe({fetchers:new Map(A.fetchers)})}function $e(Me){let Ue=K.get(Me);Rr(Ue,"Expected fetch controller: "+Me),Ue.abort(),K.delete(Me)}function Ot(Me){for(let Ue of Me){let lt=xe(Ue),Nt=rm(lt.data);A.fetchers.set(Ue,Nt)}}function Wt(){let Me=[],Ue=!1;for(let lt of Te){let Nt=A.fetchers.get(lt);Rr(Nt,"Expected fetcher: "+lt),Nt.state==="loading"&&(Te.delete(lt),Me.push(lt),Ue=!0)}return Ot(Me),Ue}function Kt(Me){let Ue=[];for(let[lt,Nt]of z)if(Nt0}function gt(Me,Ue){let lt=A.blockers.get(Me)||wE;return ie.get(Me)!==Ue&&ie.set(Me,Ue),lt}function Gt(Me){A.blockers.delete(Me),ie.delete(Me)}function ut(Me,Ue){let lt=A.blockers.get(Me)||wE;Rr(lt.state==="unblocked"&&Ue.state==="blocked"||lt.state==="blocked"&&Ue.state==="blocked"||lt.state==="blocked"&&Ue.state==="proceeding"||lt.state==="blocked"&&Ue.state==="unblocked"||lt.state==="proceeding"&&Ue.state==="unblocked","Invalid blocker state transition: "+lt.state+" -> "+Ue.state);let Nt=new Map(A.blockers);Nt.set(Me,Ue),Pe({blockers:Nt})}function wt(Me){let{currentLocation:Ue,nextLocation:lt,historyAction:Nt}=Me;if(ie.size===0)return;ie.size>1&&p1(!1,"A router only supports one blocker at a time");let Qt=Array.from(ie.entries()),[Hn,yn]=Qt[Qt.length-1],rn=A.blockers.get(Hn);if(!(rn&&rn.state==="proceeding")&&yn({currentLocation:Ue,nextLocation:lt,historyAction:Nt}))return Hn}function Xt(Me){let Ue=[];return Oe.forEach((lt,Nt)=>{(!Me||Me(Nt))&&(lt.cancel(),Ue.push(Nt),Oe.delete(Nt))}),Ue}function Ln(Me,Ue,lt){if(h=Me,b=Ue,g=lt||null,!S&&A.navigation===RN){S=!0;let Nt=sr(A.location,A.matches);Nt!=null&&Pe({restoreScrollPosition:Nt})}return()=>{h=null,b=null,g=null}}function $n(Me,Ue){return g&&g(Me,Ue.map(Nt=>l9e(Nt,A.loaderData)))||Me.key}function jn(Me,Ue){if(h&&b){let lt=$n(Me,Ue);h[lt]=b()}}function sr(Me,Ue){if(h){let lt=$n(Me,Ue),Nt=h[lt];if(typeof Nt=="number")return Nt}return null}function zr(Me){a={},o=$8(Me,i,void 0,a)}return I={get basename(){return l},get future(){return u},get state(){return A},get routes(){return s},get window(){return t},initialize:Ie,subscribe:st,enableScrollRestoration:Ln,navigate:Ve,fetch:Je,revalidate:Xe,createHref:Me=>e.history.createHref(Me),encodeLocation:Me=>e.history.encodeLocation(Me),getFetcher:xe,deleteFetcher:De,dispose:qe,getBlocker:gt,deleteBlocker:Gt,_internalFetchControllers:K,_internalActiveDeferreds:Oe,_internalSetRoutes:zr},I}function L9e(e){return e!=null&&("formData"in e&&e.formData!=null||"body"in e&&e.body!==void 0)}function F8(e,t,n,r,i,a,s,o){let l,u;if(s){l=[];for(let f of t)if(l.push(f),f.route.id===s){u=f;break}}else l=t,u=t[t.length-1];let c=RF(i||".",_F(l,a),fT(e.pathname,n)||e.pathname,o==="path");return i==null&&(c.search=e.search,c.hash=e.hash),(i==null||i===""||i===".")&&u&&u.route.index&&!NF(c.search)&&(c.search=c.search?c.search.replace(/^\?/,"?index&"):"?index"),r&&n!=="/"&&(c.pathname=c.pathname==="/"?n:Qm([n,c.pathname])),dT(c)}function YZ(e,t,n,r){if(!r||!L9e(r))return{path:n};if(r.formMethod&&!H9e(r.formMethod))return{path:n,error:rc(405,{method:r.formMethod})};let i=()=>({path:n,error:rc(400,{type:"invalid-body"})}),a=r.formMethod||"get",s=e?a.toUpperCase():a.toLowerCase(),o=Hle(n);if(r.body!==void 0){if(r.formEncType==="text/plain"){if(!id(s))return i();let h=typeof r.body=="string"?r.body:r.body instanceof FormData||r.body instanceof URLSearchParams?Array.from(r.body.entries()).reduce((g,b)=>{let[S,w]=b;return""+g+S+"="+w+` -`},""):String(r.body);return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:void 0,text:h}}}else if(r.formEncType==="application/json"){if(!id(s))return i();try{let h=typeof r.body=="string"?JSON.parse(r.body):r.body;return{path:n,submission:{formMethod:s,formAction:o,formEncType:r.formEncType,formData:void 0,json:h,text:void 0}}}catch{return i()}}}Rr(typeof FormData=="function","FormData is not available in this environment");let l,u;if(r.formData)l=B8(r.formData),u=r.formData;else if(r.body instanceof FormData)l=B8(r.body),u=r.body;else if(r.body instanceof URLSearchParams)l=r.body,u=JZ(l);else if(r.body==null)l=new URLSearchParams,u=new FormData;else try{l=new URLSearchParams(r.body),u=JZ(l)}catch{return i()}let c={formMethod:s,formAction:o,formEncType:r&&r.formEncType||"application/x-www-form-urlencoded",formData:u,json:void 0,text:void 0};if(id(c.formMethod))return{path:n,submission:c};let f=Op(n);return t&&f.search&&NF(f.search)&&l.append("index",""),f.search="?"+l,{path:dT(f),submission:c}}function $9e(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 ZZ(e,t,n,r,i,a,s,o,l,u,c,f,h,g,b,S){let w=S?Object.values(S)[0]:b?Object.values(b)[0]:void 0,E=e.createURL(t.location),x=e.createURL(i),k=S?Object.keys(S)[0]:void 0,I=$9e(n,k).filter((D,B)=>{let{route:L}=D;if(L.lazy)return!0;if(L.loader==null)return!1;if(a)return L.loader.hydrate?!0:t.loaderData[L.id]===void 0&&(!t.errors||t.errors[L.id]===void 0);if(F9e(t.loaderData,t.matches[B],D)||o.some(V=>V===D.route.id))return!0;let F=t.matches[B],W=D;return XZ(D,Ea({currentUrl:E,currentParams:F.params,nextUrl:x,nextParams:W.params},r,{actionResult:w,defaultShouldRevalidate:s||E.pathname+E.search===x.pathname+x.search||E.search!==x.search||jle(F,W)}))}),A=[];return c.forEach((D,B)=>{if(a||!n.some(Z=>Z.route.id===D.routeId)||u.has(B))return;let L=My(h,D.path,g);if(!L){A.push({key:B,routeId:D.routeId,path:D.path,matches:null,match:null,controller:null});return}let F=t.fetchers.get(B),W=U8(L,D.path),V=!1;f.has(B)?V=!1:l.includes(B)?V=!0:F&&F.state!=="idle"&&F.data===void 0?V=s:V=XZ(W,Ea({currentUrl:E,currentParams:t.matches[t.matches.length-1].params,nextUrl:x,nextParams:n[n.length-1].params},r,{actionResult:w,defaultShouldRevalidate:s})),V&&A.push({key:B,routeId:D.routeId,path:D.path,matches:L,match:W,controller:new AbortController})}),[I,A]}function F9e(e,t,n){let r=!t||n.route.id!==t.route.id,i=e[n.route.id]===void 0;return r||i}function jle(e,t){let n=e.route.path;return e.pathname!==t.pathname||n!=null&&n.endsWith("*")&&e.params["*"]!==t.params["*"]}function XZ(e,t){if(e.route.shouldRevalidate){let n=e.route.shouldRevalidate(t);if(typeof n=="boolean")return n}return t.defaultShouldRevalidate}async function KZ(e,t,n){if(!e.lazy)return;let r=await e.lazy();if(!e.lazy)return;let i=n[e.id];Rr(i,"No route found in manifest");let a={};for(let s in r){let l=i[s]!==void 0&&s!=="hasErrorBoundary";p1(!l,'Route "'+i.id+'" has a static property "'+s+'" defined but its lazy function is also returning a value for this property. '+('The lazy route property "'+s+'" will be ignored.')),!l&&!s9e.has(s)&&(a[s]=r[s])}Object.assign(i,a),Object.assign(i,Ea({},t(i),{lazy:void 0}))}async function xE(e,t,n,r,i,a,s,o,l){l===void 0&&(l={});let u,c,f,h=S=>{let w,E=new Promise((x,k)=>w=k);return f=()=>w(),t.signal.addEventListener("abort",f),Promise.race([S({request:t,params:n.params,context:l.requestContext}),E])};try{let S=n.route[e];if(n.route.lazy)if(S){let w,E=await Promise.all([h(S).catch(x=>{w=x}),KZ(n.route,a,i)]);if(w)throw w;c=E[0]}else if(await KZ(n.route,a,i),S=n.route[e],S)c=await h(S);else if(e==="action"){let w=new URL(t.url),E=w.pathname+w.search;throw rc(405,{method:t.method,pathname:E,routeId:n.route.id})}else return{type:Oa.data,data:void 0};else if(S)c=await h(S);else{let w=new URL(t.url),E=w.pathname+w.search;throw rc(404,{pathname:E})}Rr(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(S){u=Oa.error,c=S}finally{f&&t.signal.removeEventListener("abort",f)}if(j9e(c)){let S=c.status;if(I9e.has(S)){let E=c.headers.get("Location");if(Rr(E,"Redirects returned/thrown from loaders/actions must have a Location header"),!Ule.test(E))E=F8(new URL(t.url),r.slice(0,r.indexOf(n)+1),s,!0,E,o);else if(!l.isStaticRequest){let x=new URL(t.url),k=E.startsWith("//")?new URL(x.protocol+E):new URL(E),C=fT(k.pathname,s)!=null;k.origin===x.origin&&C&&(E=k.pathname+k.search+k.hash)}if(l.isStaticRequest)throw c.headers.set("Location",E),c;return{type:Oa.redirect,status:S,location:E,revalidate:c.headers.get("X-Remix-Revalidate")!==null,reloadDocument:c.headers.get("X-Remix-Reload-Document")!==null}}if(l.isRouteRequest)throw{type:u===Oa.error?Oa.error:Oa.data,response:c};let w;try{let E=c.headers.get("Content-Type");E&&/\bapplication\/json\b/.test(E)?c.body==null?w=null:w=await c.json():w=await c.text()}catch(E){return{type:Oa.error,error:E}}return u===Oa.error?{type:u,error:new IF(S,c.statusText,w),headers:c.headers}:{type:Oa.data,data:w,statusCode:c.status,headers:c.headers}}if(u===Oa.error)return{type:u,error:c};if(z9e(c)){var g,b;return{type:Oa.deferred,deferredData:c,statusCode:(g=c.init)==null?void 0:g.status,headers:((b=c.init)==null?void 0:b.headers)&&new Headers(c.init.headers)}}return{type:Oa.data,data:c}}function TE(e,t,n,r){let i=e.createURL(Hle(t)).toString(),a={signal:n};if(r&&id(r.formMethod)){let{formMethod:s,formEncType:o}=r;a.method=s.toUpperCase(),o==="application/json"?(a.headers=new Headers({"Content-Type":o}),a.body=JSON.stringify(r.json)):o==="text/plain"?a.body=r.text:o==="application/x-www-form-urlencoded"&&r.formData?a.body=B8(r.formData):a.body=r.formData}return new Request(i,a)}function B8(e){let t=new URLSearchParams;for(let[n,r]of e.entries())t.append(n,typeof r=="string"?r:r.name);return t}function JZ(e){let t=new FormData;for(let[n,r]of e.entries())t.append(n,r);return t}function B9e(e,t,n,r,i){let a={},s=null,o,l=!1,u={};return n.forEach((c,f)=>{let h=t[f].route.id;if(Rr(!Lg(c),"Cannot handle redirect results in processLoaderData"),Ly(c)){let g=$2(e,h),b=c.error;r&&(b=Object.values(r)[0],r=void 0),s=s||{},s[g.route.id]==null&&(s[g.route.id]=b),a[h]=void 0,l||(l=!0,o=DF(c.error)?c.error.status:500),c.headers&&(u[h]=c.headers)}else Mg(c)?(i.set(h,c.deferredData),a[h]=c.deferredData.data):a[h]=c.data,c.statusCode!=null&&c.statusCode!==200&&!l&&(o=c.statusCode),c.headers&&(u[h]=c.headers)}),r&&(s=r,a[Object.keys(r)[0]]=void 0),{loaderData:a,errors:s,statusCode:o||200,loaderHeaders:u}}function eX(e,t,n,r,i,a,s,o){let{loaderData:l,errors:u}=B9e(t,n,r,i,o);for(let c=0;cr.route.id===t)+1):[...e]).reverse().find(r=>r.route.hasErrorBoundary===!0)||e[0]}function nX(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 rc(e,t){let{pathname:n,routeId:r,method:i,type:a}=t===void 0?{}:t,s="Unknown Server Error",o="Unknown @remix-run/router error";return e===400?(s="Bad Request",i&&n&&r?o="You made a "+i+' request to "'+n+'" but '+('did not provide a `loader` for route "'+r+'", ')+"so there is no way to handle the request.":a==="defer-action"?o="defer() is not supported in actions":a==="invalid-body"&&(o="Unable to encode submission body")):e===403?(s="Forbidden",o='Route "'+r+'" does not match URL "'+n+'"'):e===404?(s="Not Found",o='No route matches URL "'+n+'"'):e===405&&(s="Method Not Allowed",i&&n&&r?o="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&&(o='Invalid request method "'+i.toUpperCase()+'"')),new IF(e||500,s,new Error(o),!0)}function rX(e){for(let t=e.length-1;t>=0;t--){let n=e[t];if(Lg(n))return{result:n,idx:t}}}function Hle(e){let t=typeof e=="string"?Op(e):e;return dT(Ea({},t,{hash:""}))}function U9e(e,t){return e.pathname!==t.pathname||e.search!==t.search?!1:e.hash===""?t.hash!=="":e.hash===t.hash?!0:t.hash!==""}function Mg(e){return e.type===Oa.deferred}function Ly(e){return e.type===Oa.error}function Lg(e){return(e&&e.type)===Oa.redirect}function z9e(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 j9e(e){return e!=null&&typeof e.status=="number"&&typeof e.statusText=="string"&&typeof e.headers=="object"&&typeof e.body<"u"}function H9e(e){return R9e.has(e.toLowerCase())}function id(e){return A9e.has(e.toLowerCase())}async function iX(e,t,n,r,i,a){for(let s=0;sf.route.id===l.route.id),c=u!=null&&!jle(u,l)&&(a&&a[l.route.id])!==void 0;if(Mg(o)&&(i||c)){let f=r[s];Rr(f,"Expected an AbortSignal for revalidating fetcher deferred result"),await Vle(o,f,i).then(h=>{h&&(n[s]=h||n[s])})}}}async function Vle(e,t,n){if(n===void 0&&(n=!1),!await e.deferredData.resolveData(t)){if(n)try{return{type:Oa.data,data:e.deferredData.unwrappedData}}catch(i){return{type:Oa.error,error:i}}return{type:Oa.data,data:e.deferredData.data}}}function NF(e){return new URLSearchParams(e).getAll("index").some(t=>t==="")}function U8(e,t){let n=typeof t=="string"?Op(t).search:t.search;if(e[e.length-1].route.index&&NF(n||""))return e[e.length-1];let r=Fle(e);return r[r.length-1]}function aX(e){let{formMethod:t,formAction:n,formEncType:r,text:i,formData:a,json:s}=e;if(!(!t||!n||!r)){if(i!=null)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:void 0,text:i};if(a!=null)return{formMethod:t,formAction:n,formEncType:r,formData:a,json:void 0,text:void 0};if(s!==void 0)return{formMethod:t,formAction:n,formEncType:r,formData:void 0,json:s,text:void 0}}}function IN(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 V9e(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 kE(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 W9e(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 rm(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 Q9e(e,t){try{let n=e.sessionStorage.getItem(zle);if(n){let r=JSON.parse(n);for(let[i,a]of Object.entries(r||{}))a&&Array.isArray(a)&&t.set(i,new Set(a||[]))}}catch{}}function q9e(e,t){if(t.size>0){let n={};for(let[r,i]of t)n[r]=[...i];try{e.sessionStorage.setItem(zle,JSON.stringify(n))}catch(r){p1(!1,"Failed to save applied view transitions in sessionStorage ("+r+").")}}}/** - * React Router v6.21.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function Uw(){return Uw=Object.assign?Object.assign.bind():function(e){for(var t=1;t{o.current=!0}),N.useCallback(function(u,c){if(c===void 0&&(c={}),!o.current)return;if(typeof u=="number"){r.go(u);return}let f=RF(u,JSON.parse(s),a,c.relative==="path");e==null&&t!=="/"&&(f.pathname=f.pathname==="/"?t:Qm([t,f.pathname])),(c.replace?r.replace:r.push)(f,c.state,c)},[t,r,s,a,e])}const Y9e=N.createContext(null);function Z9e(e){let t=N.useContext(Sp).outlet;return t&&N.createElement(Y9e.Provider,{value:e},t)}function C0(){let{matches:e}=N.useContext(Sp),t=e[e.length-1];return t?t.params:{}}function X9e(e,t,n,r){pT()||Rr(!1);let{navigator:i}=N.useContext(hT),{matches:a}=N.useContext(Sp),s=a[a.length-1],o=s?s.params:{};s&&s.pathname;let l=s?s.pathnameBase:"/";s&&s.route;let u=k0(),c;if(t){var f;let w=typeof t=="string"?Op(t):t;l==="/"||(f=w.pathname)!=null&&f.startsWith(l)||Rr(!1),c=w}else c=u;let h=c.pathname||"/",g=l==="/"?h:h.slice(l.length)||"/",b=My(e,{pathname:g}),S=n$e(b&&b.map(w=>Object.assign({},w,{params:Object.assign({},o,w.params),pathname:Qm([l,i.encodeLocation?i.encodeLocation(w.pathname).pathname:w.pathname]),pathnameBase:w.pathnameBase==="/"?l:Qm([l,i.encodeLocation?i.encodeLocation(w.pathnameBase).pathname:w.pathnameBase])})),a,n,r);return t&&S?N.createElement(zR.Provider,{value:{location:Uw({pathname:"/",search:"",hash:"",state:null,key:"default"},c),navigationType:Ia.Pop}},S):S}function K9e(){let e=Zle(),t=DF(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 N.createElement(N.Fragment,null,N.createElement("h2",null,"Unexpected Application Error!"),N.createElement("h3",{style:{fontStyle:"italic"}},t),n?N.createElement("pre",{style:i},n):null,null)}const J9e=N.createElement(K9e,null);class e$e extends N.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?N.createElement(Sp.Provider,{value:this.props.routeContext},N.createElement(Qle.Provider,{value:this.state.error,children:this.props.component})):this.props.children}}function t$e(e){let{routeContext:t,match:n,children:r}=e,i=N.useContext(UR);return i&&i.static&&i.staticContext&&(n.route.errorElement||n.route.ErrorBoundary)&&(i.staticContext._deepestRenderedBoundaryId=n.route.id),N.createElement(Sp.Provider,{value:t},r)}function n$e(e,t,n,r){var i;if(t===void 0&&(t=[]),n===void 0&&(n=null),r===void 0&&(r=null),e==null){var a;if((a=n)!=null&&a.errors)e=n.matches;else return null}let s=e,o=(i=n)==null?void 0:i.errors;if(o!=null){let c=s.findIndex(f=>f.route.id&&(o==null?void 0:o[f.route.id]));c>=0||Rr(!1),s=s.slice(0,Math.min(s.length,c+1))}let l=!1,u=-1;if(n&&r&&r.v7_partialHydration)for(let c=0;c=0?s=s.slice(0,u+1):s=[s[0]];break}}}return s.reduceRight((c,f,h)=>{let g,b=!1,S=null,w=null;n&&(g=o&&f.route.id?o[f.route.id]:void 0,S=f.route.errorElement||J9e,l&&(u<0&&h===0?(o$e("route-fallback",!1),b=!0,w=null):u===h&&(b=!0,w=f.route.hydrateFallbackElement||null)));let E=t.concat(s.slice(0,h+1)),x=()=>{let k;return g?k=S:b?k=w:f.route.Component?k=N.createElement(f.route.Component,null):f.route.element?k=f.route.element:k=c,N.createElement(t$e,{match:f,routeContext:{outlet:c,matches:E,isDataRoute:n!=null},children:k})};return n&&(f.route.ErrorBoundary||f.route.errorElement||h===0)?N.createElement(e$e,{location:n.location,revalidation:n.revalidation,component:S,error:g,children:x(),routeContext:{outlet:null,matches:E,isDataRoute:!0}}):x()},null)}var Gle=function(e){return e.UseBlocker="useBlocker",e.UseRevalidator="useRevalidator",e.UseNavigateStable="useNavigate",e}(Gle||{}),r3=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}(r3||{});function r$e(e){let t=N.useContext(UR);return t||Rr(!1),t}function i$e(e){let t=N.useContext(Wle);return t||Rr(!1),t}function a$e(e){let t=N.useContext(Sp);return t||Rr(!1),t}function Yle(e){let t=a$e(),n=t.matches[t.matches.length-1];return n.route.id||Rr(!1),n.route.id}function Zle(){var e;let t=N.useContext(Qle),n=i$e(r3.UseRouteError),r=Yle(r3.UseRouteError);return t!==void 0?t:(e=n.errors)==null?void 0:e[r]}function s$e(){let{router:e}=r$e(Gle.UseNavigateStable),t=Yle(r3.UseNavigateStable),n=N.useRef(!1);return qle(()=>{n.current=!0}),N.useCallback(function(i,a){a===void 0&&(a={}),n.current&&(typeof i=="number"?e.navigate(i):e.navigate(i,Uw({fromRouteId:t},a)))},[e,t])}const sX={};function o$e(e,t,n){!t&&!sX[e]&&(sX[e]=!0)}function PF(e){let{to:t,replace:n,state:r,relative:i}=e;pT()||Rr(!1);let{future:a,static:s}=N.useContext(hT),{matches:o}=N.useContext(Sp),{pathname:l}=k0(),u=Mu(),c=RF(t,_F(o,a.v7_relativeSplatPath),l,i==="path"),f=JSON.stringify(c);return N.useEffect(()=>u(JSON.parse(f),{replace:n,state:r,relative:i}),[u,f,i,n,r]),null}function jR(e){return Z9e(e.context)}function l$e(e){let{basename:t="/",children:n=null,location:r,navigationType:i=Ia.Pop,navigator:a,static:s=!1,future:o}=e;pT()&&Rr(!1);let l=t.replace(/^\/*/,"/"),u=N.useMemo(()=>({basename:l,navigator:a,static:s,future:Uw({v7_relativeSplatPath:!1},o)}),[l,o,a,s]);typeof r=="string"&&(r=Op(r));let{pathname:c="/",search:f="",hash:h="",state:g=null,key:b="default"}=r,S=N.useMemo(()=>{let w=fT(c,l);return w==null?null:{location:{pathname:w,search:f,hash:h,state:g,key:b},navigationType:i}},[l,c,f,h,g,b,i]);return S==null?null:N.createElement(hT.Provider,{value:u},N.createElement(zR.Provider,{children:n,value:S}))}new Promise(()=>{});function u$e(e){let t={hasErrorBoundary:e.ErrorBoundary!=null||e.errorElement!=null};return e.Component&&Object.assign(t,{element:N.createElement(e.Component),Component:void 0}),e.HydrateFallback&&Object.assign(t,{hydrateFallbackElement:N.createElement(e.HydrateFallback),HydrateFallback:void 0}),e.ErrorBoundary&&Object.assign(t,{errorElement:N.createElement(e.ErrorBoundary),ErrorBoundary:void 0}),t}/** - * React Router DOM v6.21.3 - * - * Copyright (c) Remix Software Inc. - * - * This source code is licensed under the MIT license found in the - * LICENSE.md file in the root directory of this source tree. - * - * @license MIT - */function i3(){return i3=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 c$e(e,t){let n=z8(e);return t&&t.forEach((r,i)=>{n.has(i)||t.getAll(i).forEach(a=>{n.append(i,a)})}),n}function d$e(e,t){return M9e({basename:t==null?void 0:t.basename,future:i3({},t==null?void 0:t.future,{v7_prependBasename:!0}),history:r9e({window:t==null?void 0:t.window}),hydrationData:(t==null?void 0:t.hydrationData)||f$e(),routes:e,mapRouteProperties:u$e,window:t==null?void 0:t.window}).initialize()}function f$e(){var e;let t=(e=window)==null?void 0:e.__staticRouterHydrationData;return t&&t.errors&&(t=i3({},t,{errors:h$e(t.errors)})),t}function h$e(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 IF(i.status,i.statusText,i.data,i.internal===!0);else if(i&&i.__type==="Error"){if(i.__subType){let a=window[i.__subType];if(typeof a=="function")try{let s=new a(i.message);s.stack="",n[r]=s}catch{}}if(n[r]==null){let a=new Error(i.message);a.stack="",n[r]=a}}else n[r]=i;return n}const p$e=N.createContext({isTransitioning:!1}),m$e=N.createContext(new Map),g$e="startTransition",oX=Uv[g$e],b$e="flushSync",lX=YTe[b$e];function y$e(e){oX?oX(e):e()}function CE(e){lX?lX(e):e()}class v$e{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 O$e(e){let{fallbackElement:t,router:n,future:r}=e,[i,a]=N.useState(n.state),[s,o]=N.useState(),[l,u]=N.useState({isTransitioning:!1}),[c,f]=N.useState(),[h,g]=N.useState(),[b,S]=N.useState(),w=N.useRef(new Map),{v7_startTransition:E}=r||{},x=N.useCallback(D=>{E?y$e(D):D()},[E]),k=N.useCallback((D,B)=>{let{deletedFetchers:L,unstable_flushSync:F,unstable_viewTransitionOpts:W}=B;L.forEach(Z=>w.current.delete(Z)),D.fetchers.forEach((Z,Q)=>{Z.data!==void 0&&w.current.set(Q,Z.data)});let V=n.window==null||typeof n.window.document.startViewTransition!="function";if(!W||V){F?CE(()=>a(D)):x(()=>a(D));return}if(F){CE(()=>{h&&(c&&c.resolve(),h.skipTransition()),u({isTransitioning:!0,flushSync:!0,currentLocation:W.currentLocation,nextLocation:W.nextLocation})});let Z=n.window.document.startViewTransition(()=>{CE(()=>a(D))});Z.finished.finally(()=>{CE(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})})}),CE(()=>g(Z));return}h?(c&&c.resolve(),h.skipTransition(),S({state:D,currentLocation:W.currentLocation,nextLocation:W.nextLocation})):(o(D),u({isTransitioning:!0,flushSync:!1,currentLocation:W.currentLocation,nextLocation:W.nextLocation}))},[n.window,h,c,w,x]);N.useLayoutEffect(()=>n.subscribe(k),[n,k]),N.useEffect(()=>{l.isTransitioning&&!l.flushSync&&f(new v$e)},[l]),N.useEffect(()=>{if(c&&s&&n.window){let D=s,B=c.promise,L=n.window.document.startViewTransition(async()=>{x(()=>a(D)),await B});L.finished.finally(()=>{f(void 0),g(void 0),o(void 0),u({isTransitioning:!1})}),g(L)}},[x,s,c,n.window]),N.useEffect(()=>{c&&s&&i.location.key===s.location.key&&c.resolve()},[c,h,i.location,s]),N.useEffect(()=>{!l.isTransitioning&&b&&(o(b.state),u({isTransitioning:!0,flushSync:!1,currentLocation:b.currentLocation,nextLocation:b.nextLocation}),S(void 0))},[l.isTransitioning,b]),N.useEffect(()=>{},[]);let C=N.useMemo(()=>({createHref:n.createHref,encodeLocation:n.encodeLocation,go:D=>n.navigate(D),push:(D,B,L)=>n.navigate(D,{state:B,preventScrollReset:L==null?void 0:L.preventScrollReset}),replace:(D,B,L)=>n.navigate(D,{replace:!0,state:B,preventScrollReset:L==null?void 0:L.preventScrollReset})}),[n]),I=n.basename||"/",A=N.useMemo(()=>({router:n,navigator:C,static:!1,basename:I}),[n,C,I]);return N.createElement(N.Fragment,null,N.createElement(UR.Provider,{value:A},N.createElement(Wle.Provider,{value:i},N.createElement(m$e.Provider,{value:w.current},N.createElement(p$e.Provider,{value:l},N.createElement(l$e,{basename:I,location:i.location,navigationType:i.historyAction,navigator:C,future:{v7_relativeSplatPath:n.future.v7_relativeSplatPath}},i.initialized||n.future.v7_partialHydration?N.createElement(S$e,{routes:n.routes,future:n.future,state:i}):t))))),null)}function S$e(e){let{routes:t,future:n,state:r}=e;return X9e(t,void 0,r,n)}var uX;(function(e){e.UseScrollRestoration="useScrollRestoration",e.UseSubmit="useSubmit",e.UseSubmitFetcher="useSubmitFetcher",e.UseFetcher="useFetcher",e.useViewTransitionState="useViewTransitionState"})(uX||(uX={}));var cX;(function(e){e.UseFetcher="useFetcher",e.UseFetchers="useFetchers",e.UseScrollRestoration="useScrollRestoration"})(cX||(cX={}));function MF(e){let t=N.useRef(z8(e)),n=N.useRef(!1),r=k0(),i=N.useMemo(()=>c$e(r.search,n.current?null:t.current),[r.search]),a=Mu(),s=N.useCallback((o,l)=>{const u=z8(typeof o=="function"?o(i):o);n.current=!0,a("?"+u,l)},[a,i]);return[i,s]}function Bs(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 E$e=typeof Symbol=="function"&&Symbol.observable||"@@observable",dX=E$e,DN=()=>Math.random().toString(36).substring(7).split("").join("."),w$e={INIT:`@@redux/INIT${DN()}`,REPLACE:`@@redux/REPLACE${DN()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${DN()}`},a3=w$e;function LF(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 $F(e,t,n){if(typeof e!="function")throw new Error(Bs(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(Bs(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(Bs(1));return n($F)(e,t)}let r=e,i=t,a=new Map,s=a,o=0,l=!1;function u(){s===a&&(s=new Map,a.forEach((w,E)=>{s.set(E,w)}))}function c(){if(l)throw new Error(Bs(3));return i}function f(w){if(typeof w!="function")throw new Error(Bs(4));if(l)throw new Error(Bs(5));let E=!0;u();const x=o++;return s.set(x,w),function(){if(E){if(l)throw new Error(Bs(6));E=!1,u(),s.delete(x),a=null}}}function h(w){if(!LF(w))throw new Error(Bs(7));if(typeof w.type>"u")throw new Error(Bs(8));if(typeof w.type!="string")throw new Error(Bs(17));if(l)throw new Error(Bs(9));try{l=!0,i=r(i,w)}finally{l=!1}return(a=s).forEach(x=>{x()}),w}function g(w){if(typeof w!="function")throw new Error(Bs(10));r=w,h({type:a3.REPLACE})}function b(){const w=f;return{subscribe(E){if(typeof E!="object"||E===null)throw new Error(Bs(11));function x(){const C=E;C.next&&C.next(c())}return x(),{unsubscribe:w(x)}},[dX](){return this}}}return h({type:a3.INIT}),{dispatch:h,subscribe:f,getState:c,replaceReducer:g,[dX]:b}}function x$e(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:a3.INIT})>"u")throw new Error(Bs(12));if(typeof n(void 0,{type:a3.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(Bs(13))})}function Xle(e){const t=Object.keys(e),n={};for(let a=0;a"u")throw o&&o.type,new Error(Bs(14));u[f]=b,l=l||b!==g}return l=l||r.length!==Object.keys(s).length,l?u:s}}function s3(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...r)=>t(n(...r)))}function T$e(...e){return t=>(n,r)=>{const i=t(n,r);let a=()=>{throw new Error(Bs(15))};const s={getState:i.getState,dispatch:(l,...u)=>a(l,...u)},o=e.map(l=>l(s));return a=s3(...o)(i.dispatch),{...i,dispatch:a}}}function k$e(e){return LF(e)&&"type"in e&&typeof e.type=="string"}var Kle=Symbol.for("immer-nothing"),fX=Symbol.for("immer-draftable"),_u=Symbol.for("immer-state");function hd(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Jv=Object.getPrototypeOf;function s0(e){return!!e&&!!e[_u]}function sp(e){var t;return e?Jle(e)||Array.isArray(e)||!!e[fX]||!!((t=e.constructor)!=null&&t[fX])||VR(e)||WR(e):!1}var C$e=Object.prototype.constructor.toString();function Jle(e){if(!e||typeof e!="object")return!1;const t=Jv(e);if(t===null)return!0;const n=Object.hasOwnProperty.call(t,"constructor")&&t.constructor;return n===Object?!0:typeof n=="function"&&Function.toString.call(n)===C$e}function zw(e,t){HR(e)===0?Object.entries(e).forEach(([n,r])=>{t(n,r,e)}):e.forEach((n,r)=>t(r,n,e))}function HR(e){const t=e[_u];return t?t.type_:Array.isArray(e)?1:VR(e)?2:WR(e)?3:0}function j8(e,t){return HR(e)===2?e.has(t):Object.prototype.hasOwnProperty.call(e,t)}function eue(e,t,n){const r=HR(e);r===2?e.set(t,n):r===3?e.add(n):e[t]=n}function A$e(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}function VR(e){return e instanceof Map}function WR(e){return e instanceof Set}function Tg(e){return e.copy_||e.base_}function H8(e,t){if(VR(e))return new Map(e);if(WR(e))return new Set(e);if(Array.isArray(e))return Array.prototype.slice.call(e);if(!t&&Jle(e))return Jv(e)?{...e}:Object.assign(Object.create(null),e);const n=Object.getOwnPropertyDescriptors(e);delete n[_u];let r=Reflect.ownKeys(n);for(let i=0;i1&&(e.set=e.add=e.clear=e.delete=_$e),Object.freeze(e),t&&zw(e,(n,r)=>FF(r,!0))),e}function _$e(){hd(2)}function QR(e){return Object.isFrozen(e)}var R$e={};function m1(e){const t=R$e[e];return t||hd(0,e),t}var jw;function tue(){return jw}function I$e(e,t){return{drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0}}function hX(e,t){t&&(m1("Patches"),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function V8(e){W8(e),e.drafts_.forEach(D$e),e.drafts_=null}function W8(e){e===jw&&(jw=e.parent_)}function pX(e){return jw=I$e(jw,e)}function D$e(e){const t=e[_u];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function mX(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];return e!==void 0&&e!==n?(n[_u].modified_&&(V8(t),hd(4)),sp(e)&&(e=o3(t,e),t.parent_||l3(t,e)),t.patches_&&m1("Patches").generateReplacementPatches_(n[_u].base_,e,t.patches_,t.inversePatches_)):e=o3(t,n,[]),V8(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Kle?e:void 0}function o3(e,t,n){if(QR(t))return t;const r=t[_u];if(!r)return zw(t,(i,a)=>gX(e,r,t,i,a,n)),t;if(r.scope_!==e)return t;if(!r.modified_)return l3(e,r.base_,!0),r.base_;if(!r.finalized_){r.finalized_=!0,r.scope_.unfinalizedDrafts_--;const i=r.copy_;let a=i,s=!1;r.type_===3&&(a=new Set(i),i.clear(),s=!0),zw(a,(o,l)=>gX(e,r,i,o,l,n,s)),l3(e,i,!1),n&&e.patches_&&m1("Patches").generatePatches_(r,n,e.patches_,e.inversePatches_)}return r.copy_}function gX(e,t,n,r,i,a,s){if(s0(i)){const o=a&&t&&t.type_!==3&&!j8(t.assigned_,r)?a.concat(r):void 0,l=o3(e,i,o);if(eue(n,r,l),s0(l))e.canAutoFreeze_=!1;else return}else s&&n.add(i);if(sp(i)&&!QR(i)){if(!e.immer_.autoFreeze_&&e.unfinalizedDrafts_<1)return;o3(e,i),(!t||!t.scope_.parent_)&&l3(e,i)}}function l3(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&FF(t,n)}function N$e(e,t){const n=Array.isArray(e),r={type_:n?1:0,scope_:t?t.scope_:tue(),modified_:!1,finalized_:!1,assigned_:{},parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1};let i=r,a=BF;n&&(i=[r],a=Hw);const{revoke:s,proxy:o}=Proxy.revocable(i,a);return r.draft_=o,r.revoke_=s,o}var BF={get(e,t){if(t===_u)return e;const n=Tg(e);if(!j8(n,t))return P$e(e,n,t);const r=n[t];return e.finalized_||!sp(r)?r:r===NN(e.base_,t)?(PN(e),e.copy_[t]=q8(r,e)):r},has(e,t){return t in Tg(e)},ownKeys(e){return Reflect.ownKeys(Tg(e))},set(e,t,n){const r=nue(Tg(e),t);if(r!=null&&r.set)return r.set.call(e.draft_,n),!0;if(!e.modified_){const i=NN(Tg(e),t),a=i==null?void 0:i[_u];if(a&&a.base_===n)return e.copy_[t]=n,e.assigned_[t]=!1,!0;if(A$e(n,i)&&(n!==void 0||j8(e.base_,t)))return!0;PN(e),Q8(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 NN(e.base_,t)!==void 0||t in e.base_?(e.assigned_[t]=!1,PN(e),Q8(e)):delete e.assigned_[t],e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Tg(e),r=Reflect.getOwnPropertyDescriptor(n,t);return r&&{writable:!0,configurable:e.type_!==1||t!=="length",enumerable:r.enumerable,value:n[t]}},defineProperty(){hd(11)},getPrototypeOf(e){return Jv(e.base_)},setPrototypeOf(){hd(12)}},Hw={};zw(BF,(e,t)=>{Hw[e]=function(){return arguments[0]=arguments[0][0],t.apply(this,arguments)}});Hw.deleteProperty=function(e,t){return Hw.set.call(this,e,t,void 0)};Hw.set=function(e,t,n){return BF.set.call(this,e[0],t,n,e[0])};function NN(e,t){const n=e[_u];return(n?Tg(n):e)[t]}function P$e(e,t,n){var i;const r=nue(t,n);return r?"value"in r?r.value:(i=r.get)==null?void 0:i.call(e.draft_):void 0}function nue(e,t){if(!(t in e))return;let n=Jv(e);for(;n;){const r=Object.getOwnPropertyDescriptor(n,t);if(r)return r;n=Jv(n)}}function Q8(e){e.modified_||(e.modified_=!0,e.parent_&&Q8(e.parent_))}function PN(e){e.copy_||(e.copy_=H8(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var M$e=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.produce=(t,n,r)=>{if(typeof t=="function"&&typeof n!="function"){const a=n;n=t;const s=this;return function(l=a,...u){return s.produce(l,c=>n.call(this,c,...u))}}typeof n!="function"&&hd(6),r!==void 0&&typeof r!="function"&&hd(7);let i;if(sp(t)){const a=pX(this),s=q8(t,void 0);let o=!0;try{i=n(s),o=!1}finally{o?V8(a):W8(a)}return hX(a,r),mX(i,a)}else if(!t||typeof t!="object"){if(i=n(t),i===void 0&&(i=t),i===Kle&&(i=void 0),this.autoFreeze_&&FF(i,!0),r){const a=[],s=[];m1("Patches").generateReplacementPatches_(t,i,a,s),r(a,s)}return i}else hd(1,t)},this.produceWithPatches=(t,n)=>{if(typeof t=="function")return(s,...o)=>this.produceWithPatches(s,l=>t(l,...o));let r,i;return[this.produce(t,n,(s,o)=>{r=s,i=o}),r,i]},typeof(e==null?void 0:e.autoFreeze)=="boolean"&&this.setAutoFreeze(e.autoFreeze),typeof(e==null?void 0:e.useStrictShallowCopy)=="boolean"&&this.setUseStrictShallowCopy(e.useStrictShallowCopy)}createDraft(e){sp(e)||hd(8),s0(e)&&(e=rue(e));const t=pX(this),n=q8(e,void 0);return n[_u].isManual_=!0,W8(t),n}finishDraft(e,t){const n=e&&e[_u];(!n||!n.isManual_)&&hd(9);const{scope_:r}=n;return hX(r,t),mX(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=m1("Patches").applyPatches_;return s0(e)?r(e,t):this.produce(e,i=>r(i,t))}};function q8(e,t){const n=VR(e)?m1("MapSet").proxyMap_(e,t):WR(e)?m1("MapSet").proxySet_(e,t):N$e(e,t);return(t?t.scope_:tue()).drafts_.push(n),n}function rue(e){return s0(e)||hd(10,e),iue(e)}function iue(e){if(!sp(e)||QR(e))return e;const t=e[_u];let n;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=H8(e,t.scope_.immer_.useStrictShallowCopy_)}else n=H8(e,!0);return zw(n,(r,i)=>{eue(n,r,iue(i))}),t&&(t.finalized_=!1),n}var Ru=new M$e,aue=Ru.produce;Ru.produceWithPatches.bind(Ru);Ru.setAutoFreeze.bind(Ru);Ru.setUseStrictShallowCopy.bind(Ru);Ru.applyPatches.bind(Ru);Ru.createDraft.bind(Ru);Ru.finishDraft.bind(Ru);function L$e(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function $$e(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function F$e(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 bX=e=>Array.isArray(e)?e:[e];function B$e(e){const t=Array.isArray(e[0])?e[0]:e;return F$e(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function U$e(e,t){const n=[],{length:r}=e;for(let i=0;i{n=tA(),s.resetResultsCount()},s.resultsCount=()=>a,s.resetResultsCount=()=>{a=0},s}function sue(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,r=(...i)=>{let a=0,s=0,o,l={},u=i.pop();typeof u=="object"&&(l=u,u=i.pop()),L$e(u,`createSelector expects an output function after the inputs, but received: [${typeof u}]`);const c={...n,...l},{memoize:f,memoizeOptions:h=[],argsMemoize:g=UF,argsMemoizeOptions:b=[],devModeChecks:S={}}=c,w=bX(h),E=bX(b),x=B$e(i),k=f(function(){return a++,u.apply(null,arguments)},...w),C=g(function(){s++;const A=U$e(x,arguments);return o=k.apply(null,A),o},...E);return Object.assign(C,{resultFunc:u,memoizedResultFunc:k,dependencies:x,dependencyRecomputations:()=>s,resetDependencyRecomputations:()=>{s=0},lastResult:()=>o,recomputations:()=>a,resetRecomputations:()=>{a=0},memoize:f,argsMemoize:g})};return Object.assign(r,{withTypes:()=>r}),r}var V$e=sue(UF),W$e=Object.assign((e,t=V$e)=>{$$e(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(a=>e[a]);return t(r,(...a)=>a.reduce((s,o,l)=>(s[n[l]]=o,s),{}))},{withTypes:()=>W$e});function oue(e){return({dispatch:n,getState:r})=>i=>a=>typeof a=="function"?a(n,r,e):i(a)}var Q$e=oue(),q$e=oue,G$e=(...e)=>{const t=sue(...e),n=Object.assign((...r)=>{const i=t(...r),a=(s,...o)=>i(s0(s)?rue(s):s,...o);return Object.assign(a,i),a},{withTypes:()=>n});return n};G$e(UF);var Y$e=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?s3:s3.apply(null,arguments)};function eO(e,t){function n(...r){if(t){let i=t(...r);if(!i)throw new Error(Cl(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=>k$e(r)&&r.type===e,n}var lue=class s2 extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,s2.prototype)}static get[Symbol.species](){return s2}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new s2(...t[0].concat(this)):new s2(...t.concat(this))}};function vX(e){return sp(e)?aue(e,()=>{}):e}function OX(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(Cl(10));const r=n.insert(t,e);return e.set(t,r),r}function Z$e(e){return typeof e=="boolean"}var X$e=()=>function(t){const{thunk:n=!0,immutableCheck:r=!0,serializableCheck:i=!0,actionCreatorCheck:a=!0}=t??{};let s=new lue;return n&&(Z$e(n)?s.push(Q$e):s.push(q$e(n.extraArgument))),s},K$e="RTK_autoBatch",uue=e=>t=>{setTimeout(t,e)},J$e=typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:uue(10),eFe=(e={type:"raf"})=>t=>(...n)=>{const r=t(...n);let i=!0,a=!1,s=!1;const o=new Set,l=e.type==="tick"?queueMicrotask:e.type==="raf"?J$e:e.type==="callback"?e.queueNotification:uue(e.timeout),u=()=>{s=!1,a&&(a=!1,o.forEach(c=>c()))};return Object.assign({},r,{subscribe(c){const f=()=>i&&c(),h=r.subscribe(f);return o.add(c),()=>{h(),o.delete(c)}},dispatch(c){var f;try{return i=!((f=c==null?void 0:c.meta)!=null&&f[K$e]),a=!i,a&&(s||(s=!0,l(u))),r.dispatch(c)}finally{i=!0}}})},tFe=e=>function(n){const{autoBatch:r=!0}=n??{};let i=new lue(e);return r&&i.push(eFe(typeof r=="object"?r:void 0)),i},nFe=!0;function rFe(e){const t=X$e(),{reducer:n=void 0,middleware:r,devTools:i=!0,preloadedState:a=void 0,enhancers:s=void 0}=e||{};let o;if(typeof n=="function")o=n;else if(LF(n))o=Xle(n);else throw new Error(Cl(1));let l;typeof r=="function"?l=r(t):l=t();let u=s3;i&&(u=Y$e({trace:!nFe,...typeof i=="object"&&i}));const c=T$e(...l),f=tFe(c);let h=typeof s=="function"?s(f):f();const g=u(...h);return $F(o,a,g)}function cue(e){const t={},n=[];let r;const i={addCase(a,s){const o=typeof a=="string"?a:a.type;if(!o)throw new Error(Cl(28));if(o in t)throw new Error(Cl(29));return t[o]=s,i},addMatcher(a,s){return n.push({matcher:a,reducer:s}),i},addDefaultCase(a){return r=a,i}};return e(i),[t,n,r]}function iFe(e){return typeof e=="function"}function aFe(e,t){let[n,r,i]=cue(t),a;if(iFe(e))a=()=>vX(e());else{const o=vX(e);a=()=>o}function s(o=a(),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,f)=>{if(f)if(s0(c)){const g=f(c,l);return g===void 0?c:g}else{if(sp(c))return aue(c,h=>f(h,l));{const h=f(c,l);if(h===void 0){if(c===null)return c;throw new Error(Cl(9))}return h}}return c},o)}return s.getInitialState=a,s}var sFe="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",oFe=(e=21)=>{let t="",n=e;for(;n--;)t+=sFe[Math.random()*64|0];return t},lFe=Symbol.for("rtk-slice-createasyncthunk");function uFe(e,t){return`${e}/${t}`}function cFe({creators:e}={}){var n;const t=(n=e==null?void 0:e.asyncThunk)==null?void 0:n[lFe];return function(i){const{name:a,reducerPath:s=a}=i;if(!a)throw new Error(Cl(11));typeof process<"u";const o=(typeof i.reducers=="function"?i.reducers(fFe()):i.reducers)||{},l=Object.keys(o),u={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},c={addCase(k,C){const I=typeof k=="string"?k:k.type;if(!I)throw new Error(Cl(12));if(I in u.sliceCaseReducersByType)throw new Error(Cl(13));return u.sliceCaseReducersByType[I]=C,c},addMatcher(k,C){return u.sliceMatchers.push({matcher:k,reducer:C}),c},exposeAction(k,C){return u.actionCreators[k]=C,c},exposeCaseReducer(k,C){return u.sliceCaseReducersByName[k]=C,c}};l.forEach(k=>{const C=o[k],I={reducerName:k,type:uFe(a,k),createNotation:typeof i.reducers=="function"};pFe(C)?gFe(I,C,c,t):hFe(I,C,c)});function f(){const[k={},C=[],I=void 0]=typeof i.extraReducers=="function"?cue(i.extraReducers):[i.extraReducers],A={...k,...u.sliceCaseReducersByType};return aFe(i.initialState,D=>{for(let B in A)D.addCase(B,A[B]);for(let B of u.sliceMatchers)D.addMatcher(B.matcher,B.reducer);for(let B of C)D.addMatcher(B.matcher,B.reducer);I&&D.addDefaultCase(I)})}const h=k=>k,g=new Map;let b;function S(k,C){return b||(b=f()),b(k,C)}function w(){return b||(b=f()),b.getInitialState()}function E(k,C=!1){function I(D){let B=D[k];return typeof B>"u"&&C&&(B=w()),B}function A(D=h){const B=OX(g,C,{insert:()=>new WeakMap});return OX(B,D,{insert:()=>{const L={};for(const[F,W]of Object.entries(i.selectors??{}))L[F]=dFe(W,D,w,C);return L}})}return{reducerPath:k,getSelectors:A,get selectors(){return A(I)},selectSlice:I}}const x={name:a,reducer:S,actions:u.actionCreators,caseReducers:u.sliceCaseReducersByName,getInitialState:w,...E(s),injectInto(k,{reducerPath:C,...I}={}){const A=C??s;return k.inject({reducerPath:A,reducer:S},I),{...x,...E(A,!0)}}};return x}}function dFe(e,t,n,r){function i(a,...s){let o=t(a);return typeof o>"u"&&r&&(o=n()),e(o,...s)}return i.unwrapped=e,i}var R1=cFe();function fFe(){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 hFe({type:e,reducerName:t,createNotation:n},r,i){let a,s;if("reducer"in r){if(n&&!mFe(r))throw new Error(Cl(17));a=r.reducer,s=r.prepare}else a=r;i.addCase(e,a).exposeCaseReducer(t,a).exposeAction(t,s?eO(e,s):eO(e))}function pFe(e){return e._reducerDefinitionType==="asyncThunk"}function mFe(e){return e._reducerDefinitionType==="reducerWithPrepare"}function gFe({type:e,reducerName:t},n,r,i){if(!i)throw new Error(Cl(18));const{payloadCreator:a,fulfilled:s,pending:o,rejected:l,settled:u,options:c}=n,f=i(e,a,c);r.exposeAction(t,f),s&&r.addCase(f.fulfilled,s),o&&r.addCase(f.pending,o),l&&r.addCase(f.rejected,l),u&&r.addMatcher(f.settled,u),r.exposeCaseReducer(t,{fulfilled:s||nA,pending:o||nA,rejected:l||nA,settled:u||nA})}function nA(){}var bFe=(e,t)=>{if(typeof e!="function")throw new Error(Cl(32))},zF="listenerMiddleware",yFe=e=>{let{type:t,actionCreator:n,matcher:r,predicate:i,effect:a}=e;if(t)i=eO(t).match;else if(n)t=n.type,i=n.match;else if(r)i=r;else if(!i)throw new Error(Cl(21));return bFe(a),{predicate:i,type:t,effect:a}},vFe=Object.assign(e=>{const{type:t,predicate:n,effect:r}=yFe(e);return{id:oFe(),effect:r,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(Cl(22))}}},{withTypes:()=>vFe}),OFe=Object.assign(eO(`${zF}/add`),{withTypes:()=>OFe});eO(`${zF}/removeAll`);var SFe=Object.assign(eO(`${zF}/remove`),{withTypes:()=>SFe});function Cl(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 EFe={theme:"default",drawerOpen:!0},due=R1({name:"editor",initialState:EFe,reducers:{setTheme:(e,t)=>{e.theme=t.payload},setDrawerOpen:(e,t)=>{e.drawerOpen=t.payload}}}),{setTheme:fue,setDrawerOpen:wFe}=due.actions,jF=e=>e.config,xFe=due.reducer;function hue(e,t){return function(){return e.apply(t,arguments)}}const{toString:TFe}=Object.prototype,{getPrototypeOf:HF}=Object,qR=(e=>t=>{const n=TFe.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())})(Object.create(null)),Zf=e=>(e=e.toLowerCase(),t=>qR(t)===e),GR=e=>t=>typeof t===e,{isArray:NO}=Array,Vw=GR("undefined");function kFe(e){return e!==null&&!Vw(e)&&e.constructor!==null&&!Vw(e.constructor)&&wc(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}const pue=Zf("ArrayBuffer");function CFe(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&pue(e.buffer),t}const AFe=GR("string"),wc=GR("function"),mue=GR("number"),YR=e=>e!==null&&typeof e=="object",_Fe=e=>e===!0||e===!1,R4=e=>{if(qR(e)!=="object")return!1;const t=HF(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(Symbol.toStringTag in e)&&!(Symbol.iterator in e)},RFe=Zf("Date"),IFe=Zf("File"),DFe=Zf("Blob"),NFe=Zf("FileList"),PFe=e=>YR(e)&&wc(e.pipe),MFe=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||wc(e.append)&&((t=qR(e))==="formdata"||t==="object"&&wc(e.toString)&&e.toString()==="[object FormData]"))},LFe=Zf("URLSearchParams"),$Fe=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function mT(e,t,{allOwnKeys:n=!1}={}){if(e===null||typeof e>"u")return;let r,i;if(typeof e!="object"&&(e=[e]),NO(e))for(r=0,i=e.length;r0;)if(i=n[r],t===i.toLowerCase())return i;return null}const bue=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,yue=e=>!Vw(e)&&e!==bue;function G8(){const{caseless:e}=yue(this)&&this||{},t={},n=(r,i)=>{const a=e&&gue(t,i)||i;R4(t[a])&&R4(r)?t[a]=G8(t[a],r):R4(r)?t[a]=G8({},r):NO(r)?t[a]=r.slice():t[a]=r};for(let r=0,i=arguments.length;r(mT(t,(i,a)=>{n&&wc(i)?e[a]=hue(i,n):e[a]=i},{allOwnKeys:r}),e),BFe=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),UFe=(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)},zFe=(e,t,n,r)=>{let i,a,s;const o={};if(t=t||{},e==null)return t;do{for(i=Object.getOwnPropertyNames(e),a=i.length;a-- >0;)s=i[a],(!r||r(s,e,t))&&!o[s]&&(t[s]=e[s],o[s]=!0);e=n!==!1&&HF(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t},jFe=(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},HFe=e=>{if(!e)return null;if(NO(e))return e;let t=e.length;if(!mue(t))return null;const n=new Array(t);for(;t-- >0;)n[t]=e[t];return n},VFe=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&HF(Uint8Array)),WFe=(e,t)=>{const r=(e&&e[Symbol.iterator]).call(e);let i;for(;(i=r.next())&&!i.done;){const a=i.value;t.call(e,a[0],a[1])}},QFe=(e,t)=>{let n;const r=[];for(;(n=e.exec(t))!==null;)r.push(n);return r},qFe=Zf("HTMLFormElement"),GFe=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(n,r,i){return r.toUpperCase()+i}),SX=(({hasOwnProperty:e})=>(t,n)=>e.call(t,n))(Object.prototype),YFe=Zf("RegExp"),vue=(e,t)=>{const n=Object.getOwnPropertyDescriptors(e),r={};mT(n,(i,a)=>{let s;(s=t(i,a,e))!==!1&&(r[a]=s||i)}),Object.defineProperties(e,r)},ZFe=e=>{vue(e,(t,n)=>{if(wc(e)&&["arguments","caller","callee"].indexOf(n)!==-1)return!1;const r=e[n];if(wc(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+"'")})}})},XFe=(e,t)=>{const n={},r=i=>{i.forEach(a=>{n[a]=!0})};return NO(e)?r(e):r(String(e).split(t)),n},KFe=()=>{},JFe=(e,t)=>(e=+e,Number.isFinite(e)?e:t),MN="abcdefghijklmnopqrstuvwxyz",EX="0123456789",Oue={DIGIT:EX,ALPHA:MN,ALPHA_DIGIT:MN+MN.toUpperCase()+EX},eBe=(e=16,t=Oue.ALPHA_DIGIT)=>{let n="";const{length:r}=t;for(;e--;)n+=t[Math.random()*r|0];return n};function tBe(e){return!!(e&&wc(e.append)&&e[Symbol.toStringTag]==="FormData"&&e[Symbol.iterator])}const nBe=e=>{const t=new Array(10),n=(r,i)=>{if(YR(r)){if(t.indexOf(r)>=0)return;if(!("toJSON"in r)){t[i]=r;const a=NO(r)?[]:{};return mT(r,(s,o)=>{const l=n(s,i+1);!Vw(l)&&(a[o]=l)}),t[i]=void 0,a}}return r};return n(e,0)},rBe=Zf("AsyncFunction"),iBe=e=>e&&(YR(e)||wc(e))&&wc(e.then)&&wc(e.catch),kt={isArray:NO,isArrayBuffer:pue,isBuffer:kFe,isFormData:MFe,isArrayBufferView:CFe,isString:AFe,isNumber:mue,isBoolean:_Fe,isObject:YR,isPlainObject:R4,isUndefined:Vw,isDate:RFe,isFile:IFe,isBlob:DFe,isRegExp:YFe,isFunction:wc,isStream:PFe,isURLSearchParams:LFe,isTypedArray:VFe,isFileList:NFe,forEach:mT,merge:G8,extend:FFe,trim:$Fe,stripBOM:BFe,inherits:UFe,toFlatObject:zFe,kindOf:qR,kindOfTest:Zf,endsWith:jFe,toArray:HFe,forEachEntry:WFe,matchAll:QFe,isHTMLForm:qFe,hasOwnProperty:SX,hasOwnProp:SX,reduceDescriptors:vue,freezeMethods:ZFe,toObjectSet:XFe,toCamelCase:GFe,noop:KFe,toFiniteNumber:JFe,findKey:gue,global:bue,isContextDefined:yue,ALPHABET:Oue,generateString:eBe,isSpecCompliantForm:tBe,toJSONObject:nBe,isAsyncFn:rBe,isThenable:iBe};function Wr(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)}kt.inherits(Wr,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:kt.toJSONObject(this.config),code:this.code,status:this.response&&this.response.status?this.response.status:null}}});const Sue=Wr.prototype,Eue={};["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=>{Eue[e]={value:e}});Object.defineProperties(Wr,Eue);Object.defineProperty(Sue,"isAxiosError",{value:!0});Wr.from=(e,t,n,r,i,a)=>{const s=Object.create(Sue);return kt.toFlatObject(e,s,function(l){return l!==Error.prototype},o=>o!=="isAxiosError"),Wr.call(s,e.message,t,n,r,i),s.cause=e,s.name=e.name,a&&Object.assign(s,a),s};const aBe=null;function Y8(e){return kt.isPlainObject(e)||kt.isArray(e)}function wue(e){return kt.endsWith(e,"[]")?e.slice(0,-2):e}function wX(e,t,n){return e?e.concat(t).map(function(i,a){return i=wue(i),!n&&a?"["+i+"]":i}).join(n?".":""):t}function sBe(e){return kt.isArray(e)&&!e.some(Y8)}const oBe=kt.toFlatObject(kt,{},null,function(t){return/^is[A-Z]/.test(t)});function ZR(e,t,n){if(!kt.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,n=kt.toFlatObject(n,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,w){return!kt.isUndefined(w[S])});const r=n.metaTokens,i=n.visitor||c,a=n.dots,s=n.indexes,l=(n.Blob||typeof Blob<"u"&&Blob)&&kt.isSpecCompliantForm(t);if(!kt.isFunction(i))throw new TypeError("visitor must be a function");function u(b){if(b===null)return"";if(kt.isDate(b))return b.toISOString();if(!l&&kt.isBlob(b))throw new Wr("Blob is not supported. Use a Buffer instead.");return kt.isArrayBuffer(b)||kt.isTypedArray(b)?l&&typeof Blob=="function"?new Blob([b]):Buffer.from(b):b}function c(b,S,w){let E=b;if(b&&!w&&typeof b=="object"){if(kt.endsWith(S,"{}"))S=r?S:S.slice(0,-2),b=JSON.stringify(b);else if(kt.isArray(b)&&sBe(b)||(kt.isFileList(b)||kt.endsWith(S,"[]"))&&(E=kt.toArray(b)))return S=wue(S),E.forEach(function(k,C){!(kt.isUndefined(k)||k===null)&&t.append(s===!0?wX([S],C,a):s===null?S:S+"[]",u(k))}),!1}return Y8(b)?!0:(t.append(wX(w,S,a),u(b)),!1)}const f=[],h=Object.assign(oBe,{defaultVisitor:c,convertValue:u,isVisitable:Y8});function g(b,S){if(!kt.isUndefined(b)){if(f.indexOf(b)!==-1)throw Error("Circular reference detected in "+S.join("."));f.push(b),kt.forEach(b,function(E,x){(!(kt.isUndefined(E)||E===null)&&i.call(t,E,kt.isString(x)?x.trim():x,S,h))===!0&&g(E,S?S.concat(x):[x])}),f.pop()}}if(!kt.isObject(e))throw new TypeError("data must be an object");return g(e),t}function xX(e){const t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(r){return t[r]})}function VF(e,t){this._pairs=[],e&&ZR(e,this,t)}const xue=VF.prototype;xue.append=function(t,n){this._pairs.push([t,n])};xue.toString=function(t){const n=t?function(r){return t.call(this,r,xX)}:xX;return this._pairs.map(function(i){return n(i[0])+"="+n(i[1])},"").join("&")};function lBe(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function Tue(e,t,n){if(!t)return e;const r=n&&n.encode||lBe,i=n&&n.serialize;let a;if(i?a=i(t,n):a=kt.isURLSearchParams(t)?t.toString():new VF(t,n).toString(r),a){const s=e.indexOf("#");s!==-1&&(e=e.slice(0,s)),e+=(e.indexOf("?")===-1?"?":"&")+a}return e}class TX{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){kt.forEach(this.handlers,function(r){r!==null&&t(r)})}}const kue={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},uBe=typeof URLSearchParams<"u"?URLSearchParams:VF,cBe=typeof FormData<"u"?FormData:null,dBe=typeof Blob<"u"?Blob:null,fBe={isBrowser:!0,classes:{URLSearchParams:uBe,FormData:cBe,Blob:dBe},protocols:["http","https","file","blob","url","data"]},Cue=typeof window<"u"&&typeof document<"u",hBe=(e=>Cue&&["ReactNative","NativeScript","NS"].indexOf(e)<0)(typeof navigator<"u"&&navigator.product),pBe=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",mBe=Object.freeze(Object.defineProperty({__proto__:null,hasBrowserEnv:Cue,hasStandardBrowserEnv:hBe,hasStandardBrowserWebWorkerEnv:pBe},Symbol.toStringTag,{value:"Module"})),Tf={...mBe,...fBe};function gBe(e,t){return ZR(e,new Tf.classes.URLSearchParams,Object.assign({visitor:function(n,r,i,a){return Tf.isNode&&kt.isBuffer(n)?(this.append(r,n.toString("base64")),!1):a.defaultVisitor.apply(this,arguments)}},t))}function bBe(e){return kt.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function yBe(e){const t={},n=Object.keys(e);let r;const i=n.length;let a;for(r=0;r=n.length;return s=!s&&kt.isArray(i)?i.length:s,l?(kt.hasOwnProp(i,s)?i[s]=[i[s],r]:i[s]=r,!o):((!i[s]||!kt.isObject(i[s]))&&(i[s]=[]),t(n,r,i[s],a)&&kt.isArray(i[s])&&(i[s]=yBe(i[s])),!o)}if(kt.isFormData(e)&&kt.isFunction(e.entries)){const n={};return kt.forEachEntry(e,(r,i)=>{t(bBe(r),i,n,0)}),n}return null}function vBe(e,t,n){if(kt.isString(e))try{return(t||JSON.parse)(e),kt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}const WF={transitional:kue,adapter:["xhr","http"],transformRequest:[function(t,n){const r=n.getContentType()||"",i=r.indexOf("application/json")>-1,a=kt.isObject(t);if(a&&kt.isHTMLForm(t)&&(t=new FormData(t)),kt.isFormData(t))return i?JSON.stringify(Aue(t)):t;if(kt.isArrayBuffer(t)||kt.isBuffer(t)||kt.isStream(t)||kt.isFile(t)||kt.isBlob(t))return t;if(kt.isArrayBufferView(t))return t.buffer;if(kt.isURLSearchParams(t))return n.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let o;if(a){if(r.indexOf("application/x-www-form-urlencoded")>-1)return gBe(t,this.formSerializer).toString();if((o=kt.isFileList(t))||r.indexOf("multipart/form-data")>-1){const l=this.env&&this.env.FormData;return ZR(o?{"files[]":t}:t,l&&new l,this.formSerializer)}}return a||i?(n.setContentType("application/json",!1),vBe(t)):t}],transformResponse:[function(t){const n=this.transitional||WF.transitional,r=n&&n.forcedJSONParsing,i=this.responseType==="json";if(t&&kt.isString(t)&&(r&&!this.responseType||i)){const s=!(n&&n.silentJSONParsing)&&i;try{return JSON.parse(t)}catch(o){if(s)throw o.name==="SyntaxError"?Wr.from(o,Wr.ERR_BAD_RESPONSE,this,null,this.response):o}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Tf.classes.FormData,Blob:Tf.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};kt.forEach(["delete","get","head","post","put","patch"],e=>{WF.headers[e]={}});const QF=WF,OBe=kt.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"]),SBe=e=>{const t={};let n,r,i;return e&&e.split(` -`).forEach(function(s){i=s.indexOf(":"),n=s.substring(0,i).trim().toLowerCase(),r=s.substring(i+1).trim(),!(!n||t[n]&&OBe[n])&&(n==="set-cookie"?t[n]?t[n].push(r):t[n]=[r]:t[n]=t[n]?t[n]+", "+r:r)}),t},kX=Symbol("internals");function AE(e){return e&&String(e).trim().toLowerCase()}function I4(e){return e===!1||e==null?e:kt.isArray(e)?e.map(I4):String(e)}function EBe(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 wBe=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function LN(e,t,n,r,i){if(kt.isFunction(r))return r.call(this,t,n);if(i&&(t=n),!!kt.isString(t)){if(kt.isString(r))return t.indexOf(r)!==-1;if(kt.isRegExp(r))return r.test(t)}}function xBe(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,n,r)=>n.toUpperCase()+r)}function TBe(e,t){const n=kt.toCamelCase(" "+t);["get","set","has"].forEach(r=>{Object.defineProperty(e,r+n,{value:function(i,a,s){return this[r].call(this,t,i,a,s)},configurable:!0})})}let XR=class{constructor(t){t&&this.set(t)}set(t,n,r){const i=this;function a(o,l,u){const c=AE(l);if(!c)throw new Error("header name must be a non-empty string");const f=kt.findKey(i,c);(!f||i[f]===void 0||u===!0||u===void 0&&i[f]!==!1)&&(i[f||l]=I4(o))}const s=(o,l)=>kt.forEach(o,(u,c)=>a(u,c,l));return kt.isPlainObject(t)||t instanceof this.constructor?s(t,n):kt.isString(t)&&(t=t.trim())&&!wBe(t)?s(SBe(t),n):t!=null&&a(n,t,r),this}get(t,n){if(t=AE(t),t){const r=kt.findKey(this,t);if(r){const i=this[r];if(!n)return i;if(n===!0)return EBe(i);if(kt.isFunction(n))return n.call(this,i,r);if(kt.isRegExp(n))return n.exec(i);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,n){if(t=AE(t),t){const r=kt.findKey(this,t);return!!(r&&this[r]!==void 0&&(!n||LN(this,this[r],r,n)))}return!1}delete(t,n){const r=this;let i=!1;function a(s){if(s=AE(s),s){const o=kt.findKey(r,s);o&&(!n||LN(r,r[o],o,n))&&(delete r[o],i=!0)}}return kt.isArray(t)?t.forEach(a):a(t),i}clear(t){const n=Object.keys(this);let r=n.length,i=!1;for(;r--;){const a=n[r];(!t||LN(this,this[a],a,t,!0))&&(delete this[a],i=!0)}return i}normalize(t){const n=this,r={};return kt.forEach(this,(i,a)=>{const s=kt.findKey(r,a);if(s){n[s]=I4(i),delete n[a];return}const o=t?xBe(a):String(a).trim();o!==a&&delete n[a],n[o]=I4(i),r[o]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){const n=Object.create(null);return kt.forEach(this,(r,i)=>{r!=null&&r!==!1&&(n[i]=t&&kt.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[kX]=this[kX]={accessors:{}}).accessors,i=this.prototype;function a(s){const o=AE(s);r[o]||(TBe(i,s),r[o]=!0)}return kt.isArray(t)?t.forEach(a):a(t),this}};XR.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);kt.reduceDescriptors(XR.prototype,({value:e},t)=>{let n=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(r){this[n]=r}}});kt.freezeMethods(XR);const Gh=XR;function $N(e,t){const n=this||QF,r=t||n,i=Gh.from(r.headers);let a=r.data;return kt.forEach(e,function(o){a=o.call(n,a,i.normalize(),t?t.status:void 0)}),i.normalize(),a}function _ue(e){return!!(e&&e.__CANCEL__)}function gT(e,t,n){Wr.call(this,e??"canceled",Wr.ERR_CANCELED,t,n),this.name="CanceledError"}kt.inherits(gT,Wr,{__CANCEL__:!0});function kBe(e,t,n){const r=n.config.validateStatus;!n.status||!r||r(n.status)?e(n):t(new Wr("Request failed with status code "+n.status,[Wr.ERR_BAD_REQUEST,Wr.ERR_BAD_RESPONSE][Math.floor(n.status/100)-4],n.config,n.request,n))}const CBe=Tf.hasStandardBrowserEnv?{write(e,t,n,r,i,a){const s=[e+"="+encodeURIComponent(t)];kt.isNumber(n)&&s.push("expires="+new Date(n).toGMTString()),kt.isString(r)&&s.push("path="+r),kt.isString(i)&&s.push("domain="+i),a===!0&&s.push("secure"),document.cookie=s.join("; ")},read(e){const t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function ABe(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function _Be(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function Rue(e,t){return e&&!ABe(t)?_Be(e,t):t}const RBe=Tf.hasStandardBrowserEnv?function(){const t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");let r;function i(a){let s=a;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=i(window.location.href),function(s){const o=kt.isString(s)?i(s):s;return o.protocol===r.protocol&&o.host===r.host}}():function(){return function(){return!0}}();function IBe(e){const t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function DBe(e,t){e=e||10;const n=new Array(e),r=new Array(e);let i=0,a=0,s;return t=t!==void 0?t:1e3,function(l){const u=Date.now(),c=r[a];s||(s=u),n[i]=l,r[i]=u;let f=a,h=0;for(;f!==i;)h+=n[f++],f=f%e;if(i=(i+1)%e,i===a&&(a=(a+1)%e),u-s{const a=i.loaded,s=i.lengthComputable?i.total:void 0,o=a-n,l=r(o),u=a<=s;n=a;const c={loaded:a,total:s,progress:s?a/s:void 0,bytes:o,rate:l||void 0,estimated:l&&s&&u?(s-a)/l:void 0,event:i};c[t?"download":"upload"]=!0,e(c)}}const NBe=typeof XMLHttpRequest<"u",PBe=NBe&&function(e){return new Promise(function(n,r){let i=e.data;const a=Gh.from(e.headers).normalize();let{responseType:s,withXSRFToken:o}=e,l;function u(){e.cancelToken&&e.cancelToken.unsubscribe(l),e.signal&&e.signal.removeEventListener("abort",l)}let c;if(kt.isFormData(i)){if(Tf.hasStandardBrowserEnv||Tf.hasStandardBrowserWebWorkerEnv)a.setContentType(!1);else if((c=a.getContentType())!==!1){const[S,...w]=c?c.split(";").map(E=>E.trim()).filter(Boolean):[];a.setContentType([S||"multipart/form-data",...w].join("; "))}}let f=new XMLHttpRequest;if(e.auth){const S=e.auth.username||"",w=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";a.set("Authorization","Basic "+btoa(S+":"+w))}const h=Rue(e.baseURL,e.url);f.open(e.method.toUpperCase(),Tue(h,e.params,e.paramsSerializer),!0),f.timeout=e.timeout;function g(){if(!f)return;const S=Gh.from("getAllResponseHeaders"in f&&f.getAllResponseHeaders()),E={data:!s||s==="text"||s==="json"?f.responseText:f.response,status:f.status,statusText:f.statusText,headers:S,config:e,request:f};kBe(function(k){n(k),u()},function(k){r(k),u()},E),f=null}if("onloadend"in f?f.onloadend=g:f.onreadystatechange=function(){!f||f.readyState!==4||f.status===0&&!(f.responseURL&&f.responseURL.indexOf("file:")===0)||setTimeout(g)},f.onabort=function(){f&&(r(new Wr("Request aborted",Wr.ECONNABORTED,e,f)),f=null)},f.onerror=function(){r(new Wr("Network Error",Wr.ERR_NETWORK,e,f)),f=null},f.ontimeout=function(){let w=e.timeout?"timeout of "+e.timeout+"ms exceeded":"timeout exceeded";const E=e.transitional||kue;e.timeoutErrorMessage&&(w=e.timeoutErrorMessage),r(new Wr(w,E.clarifyTimeoutError?Wr.ETIMEDOUT:Wr.ECONNABORTED,e,f)),f=null},Tf.hasStandardBrowserEnv&&(o&&kt.isFunction(o)&&(o=o(e)),o||o!==!1&&RBe(h))){const S=e.xsrfHeaderName&&e.xsrfCookieName&&CBe.read(e.xsrfCookieName);S&&a.set(e.xsrfHeaderName,S)}i===void 0&&a.setContentType(null),"setRequestHeader"in f&&kt.forEach(a.toJSON(),function(w,E){f.setRequestHeader(E,w)}),kt.isUndefined(e.withCredentials)||(f.withCredentials=!!e.withCredentials),s&&s!=="json"&&(f.responseType=e.responseType),typeof e.onDownloadProgress=="function"&&f.addEventListener("progress",CX(e.onDownloadProgress,!0)),typeof e.onUploadProgress=="function"&&f.upload&&f.upload.addEventListener("progress",CX(e.onUploadProgress)),(e.cancelToken||e.signal)&&(l=S=>{f&&(r(!S||S.type?new gT(null,e,f):S),f.abort(),f=null)},e.cancelToken&&e.cancelToken.subscribe(l),e.signal&&(e.signal.aborted?l():e.signal.addEventListener("abort",l)));const b=IBe(h);if(b&&Tf.protocols.indexOf(b)===-1){r(new Wr("Unsupported protocol "+b+":",Wr.ERR_BAD_REQUEST,e));return}f.send(i||null)})},Z8={http:aBe,xhr:PBe};kt.forEach(Z8,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});const AX=e=>`- ${e}`,MBe=e=>kt.isFunction(e)||e===null||e===!1,Iue={getAdapter:e=>{e=kt.isArray(e)?e:[e];const{length:t}=e;let n,r;const i={};for(let a=0;a`adapter ${o} `+(l===!1?"is not supported by the environment":"is not available in the build"));let s=t?a.length>1?`since : -`+a.map(AX).join(` -`):" "+AX(a[0]):"as no adapter specified";throw new Wr("There is no suitable adapter to dispatch the request "+s,"ERR_NOT_SUPPORT")}return r},adapters:Z8};function FN(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new gT(null,e)}function _X(e){return FN(e),e.headers=Gh.from(e.headers),e.data=$N.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Iue.getAdapter(e.adapter||QF.adapter)(e).then(function(r){return FN(e),r.data=$N.call(e,e.transformResponse,r),r.headers=Gh.from(r.headers),r},function(r){return _ue(r)||(FN(e),r&&r.response&&(r.response.data=$N.call(e,e.transformResponse,r.response),r.response.headers=Gh.from(r.response.headers))),Promise.reject(r)})}const RX=e=>e instanceof Gh?e.toJSON():e;function tO(e,t){t=t||{};const n={};function r(u,c,f){return kt.isPlainObject(u)&&kt.isPlainObject(c)?kt.merge.call({caseless:f},u,c):kt.isPlainObject(c)?kt.merge({},c):kt.isArray(c)?c.slice():c}function i(u,c,f){if(kt.isUndefined(c)){if(!kt.isUndefined(u))return r(void 0,u,f)}else return r(u,c,f)}function a(u,c){if(!kt.isUndefined(c))return r(void 0,c)}function s(u,c){if(kt.isUndefined(c)){if(!kt.isUndefined(u))return r(void 0,u)}else return r(void 0,c)}function o(u,c,f){if(f in t)return r(u,c);if(f in e)return r(void 0,u)}const l={url:a,method:a,data:a,baseURL:s,transformRequest:s,transformResponse:s,paramsSerializer:s,timeout:s,timeoutMessage:s,withCredentials:s,withXSRFToken:s,adapter:s,responseType:s,xsrfCookieName:s,xsrfHeaderName:s,onUploadProgress:s,onDownloadProgress:s,decompress:s,maxContentLength:s,maxBodyLength:s,beforeRedirect:s,transport:s,httpAgent:s,httpsAgent:s,cancelToken:s,socketPath:s,responseEncoding:s,validateStatus:o,headers:(u,c)=>i(RX(u),RX(c),!0)};return kt.forEach(Object.keys(Object.assign({},e,t)),function(c){const f=l[c]||i,h=f(e[c],t[c],c);kt.isUndefined(h)&&f!==o||(n[c]=h)}),n}const Due="1.6.7",qF={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{qF[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});const IX={};qF.transitional=function(t,n,r){function i(a,s){return"[Axios v"+Due+"] Transitional option '"+a+"'"+s+(r?". "+r:"")}return(a,s,o)=>{if(t===!1)throw new Wr(i(s," has been removed"+(n?" in "+n:"")),Wr.ERR_DEPRECATED);return n&&!IX[s]&&(IX[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(a,s,o):!0}};function LBe(e,t,n){if(typeof e!="object")throw new Wr("options must be an object",Wr.ERR_BAD_OPTION_VALUE);const r=Object.keys(e);let i=r.length;for(;i-- >0;){const a=r[i],s=t[a];if(s){const o=e[a],l=o===void 0||s(o,a,e);if(l!==!0)throw new Wr("option "+a+" must be "+l,Wr.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Wr("Unknown option "+a,Wr.ERR_BAD_OPTION)}}const X8={assertOptions:LBe,validators:qF},Kp=X8.validators;let u3=class{constructor(t){this.defaults=t,this.interceptors={request:new TX,response:new TX}}async request(t,n){try{return await this._request(t,n)}catch(r){if(r instanceof Error){let i;Error.captureStackTrace?Error.captureStackTrace(i={}):i=new Error;const a=i.stack?i.stack.replace(/^.+\n/,""):"";r.stack?a&&!String(r.stack).endsWith(a.replace(/^.+\n.+\n/,""))&&(r.stack+=` -`+a):r.stack=a}throw r}}_request(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=tO(this.defaults,n);const{transitional:r,paramsSerializer:i,headers:a}=n;r!==void 0&&X8.assertOptions(r,{silentJSONParsing:Kp.transitional(Kp.boolean),forcedJSONParsing:Kp.transitional(Kp.boolean),clarifyTimeoutError:Kp.transitional(Kp.boolean)},!1),i!=null&&(kt.isFunction(i)?n.paramsSerializer={serialize:i}:X8.assertOptions(i,{encode:Kp.function,serialize:Kp.function},!0)),n.method=(n.method||this.defaults.method||"get").toLowerCase();let s=a&&kt.merge(a.common,a[n.method]);a&&kt.forEach(["delete","get","head","post","put","patch","common"],b=>{delete a[b]}),n.headers=Gh.concat(s,a);const o=[];let l=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(n)===!1||(l=l&&S.synchronous,o.unshift(S.fulfilled,S.rejected))});const u=[];this.interceptors.response.forEach(function(S){u.push(S.fulfilled,S.rejected)});let c,f=0,h;if(!l){const b=[_X.bind(this),void 0];for(b.unshift.apply(b,o),b.push.apply(b,u),h=b.length,c=Promise.resolve(n);f{if(!r._listeners)return;let a=r._listeners.length;for(;a-- >0;)r._listeners[a](i);r._listeners=null}),this.promise.then=i=>{let a;const s=new Promise(o=>{r.subscribe(o),a=o}).then(i);return s.cancel=function(){r.unsubscribe(a)},s},t(function(a,s,o){r.reason||(r.reason=new gT(a,s,o),n(r.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;const n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}static source(){let t;return{token:new Nue(function(i){t=i}),cancel:t}}};const FBe=$Be;function BBe(e){return function(n){return e.apply(null,n)}}function UBe(e){return kt.isObject(e)&&e.isAxiosError===!0}const K8={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(K8).forEach(([e,t])=>{K8[t]=e});const zBe=K8;function Pue(e){const t=new D4(e),n=hue(D4.prototype.request,t);return kt.extend(n,D4.prototype,t,{allOwnKeys:!0}),kt.extend(n,t,null,{allOwnKeys:!0}),n.create=function(i){return Pue(tO(e,i))},n}const yr=Pue(QF);yr.Axios=D4;yr.CanceledError=gT;yr.CancelToken=FBe;yr.isCancel=_ue;yr.VERSION=Due;yr.toFormData=ZR;yr.AxiosError=Wr;yr.Cancel=yr.CanceledError;yr.all=function(t){return Promise.all(t)};yr.spread=BBe;yr.isAxiosError=UBe;yr.mergeConfig=tO;yr.AxiosHeaders=Gh;yr.formToJSON=e=>Aue(kt.isHTMLForm(e)?new FormData(e):e);yr.getAdapter=Iue.getAdapter;yr.HttpStatusCode=zBe;yr.default=yr;const{Axios:wAt,AxiosError:Mue,CanceledError:xAt,isCancel:TAt,CancelToken:kAt,VERSION:CAt,all:AAt,Cancel:_At,isAxiosError:RAt,spread:IAt,toFormData:DAt,AxiosHeaders:NAt,HttpStatusCode:PAt,formToJSON:MAt,getAdapter:LAt,mergeConfig:$At}=yr;function jBe(){const e=Zle();return _.jsx(nr,{width:1,height:"100vh",alignItems:"center",justifyContent:"center",children:_.jsxs(nr,{alignItems:"center",children:[_.jsx(ur,{variant:"h5",children:"Something went wrong"}),DF(e)&&_.jsxs(ur,{variant:"subtitle1",children:["Status Code: ",e.status]})]})})}const GF=hn.createContext({isLoading:!0,isLoggedIn:!1}),HBe={data:null},Lue=R1({name:"user",initialState:HBe,reducers:{setUserData:(e,t)=>{e.data=t.payload}}}),{setUserData:J8}=Lue.actions,bT=e=>e.user,VBe=Lue.reducer,WBe=e=>{var a;const{children:t}=e,{isLoggedIn:n}=N.useContext(GF),r=k0(),i=Qr(bT);return n?_.jsx(PF,{to:`/${(a=i.data)==null?void 0:a.lastWorkspaceSlug}`,state:{from:r},replace:!0}):t},QBe=e=>{const{children:t}=e,{isLoggedIn:n,isLoading:r}=N.useContext(GF),i=k0();return r?_.jsx(_1,{open:!0,children:_.jsx(wd,{color:"inherit"})}):n?t:_.jsx(PF,{to:"/",state:{from:i},replace:!0})};var YF={},$ue={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})($ue);var Ji=$ue.exports,BN={};const qBe=xwe(Z4e);var DX;function ea(){return DX||(DX=1,function(e){"use client";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"default",{enumerable:!0,get:function(){return t.createSvgIcon}});var t=qBe}(BN)),BN}var GBe=Ji;Object.defineProperty(YF,"__esModule",{value:!0});var Fue=YF.default=void 0,YBe=GBe(ea()),ZBe=_;Fue=YF.default=(0,YBe.default)((0,ZBe.jsx)("path",{d:"M17.77 3.77 16 2 6 12l10 10 1.77-1.77L9.54 12z"}),"ArrowBackIosNew");var ZF={},XBe=Ji;Object.defineProperty(ZF,"__esModule",{value:!0});var Bue=ZF.default=void 0,KBe=XBe(ea()),JBe=_;Bue=ZF.default=(0,KBe.default)((0,JBe.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 XF={},eUe=Ji;Object.defineProperty(XF,"__esModule",{value:!0});var Uue=XF.default=void 0,tUe=eUe(ea()),nUe=_;Uue=XF.default=(0,tUe.default)((0,nUe.jsx)("path",{d:"M3 15h8v-2H3zm0 4h8v-2H3zm0-8h8V9H3zm0-6v2h8V5zm10 0h8v14h-8z"}),"VerticalSplit");var KF={},rUe=Ji;Object.defineProperty(KF,"__esModule",{value:!0});var JF=KF.default=void 0,iUe=rUe(ea()),aUe=_;JF=KF.default=(0,iUe.default)((0,aUe.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 sUe=function(e){return(e+1)%1e6};function oUe(){var e=N.useReducer(sUe,0),t=e[1];return t}function UN(e,t){return typeof e=="function"?e.length?e(t):e():e}function lUe(e,t){t===void 0&&(t=0);var n=N.useRef(!1),r=N.useRef(),i=N.useRef(e),a=N.useCallback(function(){return n.current},[]),s=N.useCallback(function(){n.current=!1,r.current&&clearTimeout(r.current),r.current=setTimeout(function(){n.current=!0,i.current()},t)},[t]),o=N.useCallback(function(){n.current=null,r.current&&clearTimeout(r.current)},[]);return N.useEffect(function(){i.current=e},[e]),N.useEffect(function(){return s(),o},[t]),[a,o,s]}function KR(e,t,n){t===void 0&&(t=0),n===void 0&&(n=[]);var r=lUe(e,t),i=r[0],a=r[1],s=r[2];return N.useEffect(s,n),[i,a]}function uUe(e){e===void 0&&(e=[]);var t=N.useRef(UN(e)),n=oUe(),r=N.useMemo(function(){var i={set:function(a){t.current=UN(a,t.current),n()},push:function(){for(var a=[],s=0;sl.length?l[a]=s:l.splice(a,0,s),l})},update:function(a,s){r.set(function(o){return o.map(function(l){return a(l,s)?s:l})})},updateFirst:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0&&r.updateAt(o,s)},upsert:function(a,s){var o=t.current.findIndex(function(l){return a(l,s)});o>=0?r.updateAt(o,s):r.push(s)},sort:function(a){r.set(function(s){return s.slice().sort(a)})},filter:function(a,s){r.set(function(o){return o.slice().filter(a,s)})},removeAt:function(a){r.set(function(s){var o=s.slice();return o.splice(a,1),o})},clear:function(){r.set([])},reset:function(){r.set(UN(e).slice())}};return i.remove=i.removeAt,i},[]);return[t.current,r]}const cUe={mode:"both",shareRole:null,doc:null,client:null,cmView:null},zue=R1({name:"editor",initialState:cUe,reducers:{setMode:(e,t)=>{e.mode=t.payload},setShareRole:(e,t)=>{e.shareRole=t.payload},setDoc:(e,t)=>{e.doc=t.payload},setClient:(e,t)=>{e.client=t.payload},setCmView:(e,t)=>{Object.assign(e,{cmView:t.payload})}}}),{setMode:eM,setDoc:c3,setClient:d3,setShareRole:dUe,setCmView:fUe}=zue.actions,A0=e=>e.editor,hUe=zue.reducer,pUe={data:null},jue=R1({name:"workspace",initialState:pUe,reducers:{setWorkspaceData:(e,t)=>{e.data=t.payload}}}),{setWorkspaceData:NX}=jue.actions,yT=e=>e.workspace,mUe=jue.reducer,gUe=Ba(_.jsx("path",{d:"M19 12v7H5v-7H3v7c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-7zm-6 .67 2.59-2.58L17 11.5l-5 5-5-5 1.41-1.41L11 12.67V3h2z"}),"SaveAlt");function Hue(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 MX(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var Vue=hn.createContext(),vUe={mui:{root:{},anchorOriginTopCenter:{},anchorOriginBottomCenter:{},anchorOriginTopRight:{},anchorOriginBottomRight:{},anchorOriginTopLeft:{},anchorOriginBottomLeft:{}},container:{containerRoot:{},containerAnchorOriginTopCenter:{},containerAnchorOriginBottomCenter:{},containerAnchorOriginTopRight:{},containerAnchorOriginBottomRight:{},containerAnchorOriginTopLeft:{},containerAnchorOriginBottomLeft:{}}},Th={view:{default:20,dense:4},snackbar:{default:6,dense:2}},$g={maxSnack:3,dense:!1,hideIconVariant:!1,variant:"default",autoHideDuration:5e3,anchorOrigin:{vertical:"bottom",horizontal:"left"},TransitionComponent:nle,transitionDuration:{enter:225,exit:195}},F2=function(t){return t.charAt(0).toUpperCase()+t.slice(1)},OUe=function(t){return""+F2(t.vertical)+F2(t.horizontal)},SUe=function(t){return Object.keys(t).filter(function(n){return!vUe.container[n]}).reduce(function(n,r){var i;return Bi({},n,(i={},i[r]=t[r],i))},{})},gm={TIMEOUT:"timeout",CLICKAWAY:"clickaway",MAXSNACK:"maxsnack",INSTRUCTED:"instructed"},N4={toContainerAnchorOrigin:function(t){return"containerAnchorOrigin"+t},toAnchorOrigin:function(t){var n=t.vertical,r=t.horizontal;return"anchorOrigin"+F2(n)+F2(r)},toVariant:function(t){return"variant"+F2(t)}},rA=function(t){return!!t||t===0},LX=function(t){return typeof t=="number"||t===null},EUe=function(t,n,r){return function(i){return i==="autoHideDuration"?LX(t.autoHideDuration)?t.autoHideDuration:LX(n.autoHideDuration)?n.autoHideDuration:$g.autoHideDuration:t[i]||n[i]||r[i]}};function zN(e,t,n){return e===void 0&&(e={}),t===void 0&&(t={}),n===void 0&&(n={}),Bi({},n,{},t,{},e)}var wUe="SnackbarContent",Wue={root:wUe+"-root"},xUe=Re("div")(function(e){var t,n,r=e.theme;return n={},n["&."+Wue.root]=(t={display:"flex",flexWrap:"wrap",flexGrow:1},t[r.breakpoints.up("sm")]={flexGrow:"initial",minWidth:288},t),n}),TUe=N.forwardRef(function(e,t){var n=e.className,r=qm(e,["className"]);return hn.createElement(xUe,Object.assign({ref:t,className:Ww(Wue.root,n)},r))}),$X={right:"left",left:"right",bottom:"up",top:"down"},kUe=function(t){return t.horizontal!=="center"?$X[t.horizontal]:$X[t.vertical]},CUe=function(t){return hn.createElement(r0,Object.assign({},t),hn.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`}))},AUe=function(t){return hn.createElement(r0,Object.assign({},t),hn.createElement("path",{d:"M13,14H11V10H13M13,18H11V16H13M1,21H23L12,2L1,21Z"}))},_Ue=function(t){return hn.createElement(r0,Object.assign({},t),hn.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`}))},RUe=function(t){return hn.createElement(r0,Object.assign({},t),hn.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`}))},iA={fontSize:20,marginInlineEnd:8},IUe={default:void 0,success:hn.createElement(CUe,{style:iA}),warning:hn.createElement(AUe,{style:iA}),error:hn.createElement(_Ue,{style:iA}),info:hn.createElement(RUe,{style:iA})};function B2(e,t){return e.reduce(function(n,r){return r==null?n:function(){for(var a=arguments.length,s=new Array(a),o=0;o .MuiCollapse-container, & > .MuiCollapse-root",wrapper:"& > .MuiCollapse-container > .MuiCollapse-wrapper, & > .MuiCollapse-root > .MuiCollapse-wrapper"},HN=16,fg="SnackbarContainer",ad={root:fg+"-root",rootDense:fg+"-rootDense",top:fg+"-top",bottom:fg+"-bottom",left:fg+"-left",right:fg+"-right",center:fg+"-center"},LUe=Re("div")(function(e){var t,n,r,i,a,s,o=e.theme;return s={},s["&."+ad.root]=(t={boxSizing:"border-box",display:"flex",maxHeight:"100%",position:"fixed",zIndex:o.zIndex.snackbar,height:"auto",width:"auto",transition:"top 300ms ease 0ms, right 300ms ease 0ms, bottom 300ms ease 0ms, left 300ms ease 0ms, margin 300ms ease 0ms, max-width 300ms ease 0ms",pointerEvents:"none"},t[jN.container]={pointerEvents:"all"},t[jN.wrapper]={padding:Th.snackbar.default+"px 0px",transition:"padding 300ms ease 0ms"},t.maxWidth="calc(100% - "+Th.view.default*2+"px)",t[o.breakpoints.down("sm")]={width:"100%",maxWidth:"calc(100% - "+HN*2+"px)"},t),s["&."+ad.rootDense]=(n={},n[jN.wrapper]={padding:Th.snackbar.dense+"px 0px"},n),s["&."+ad.top]={top:Th.view.default-Th.snackbar.default,flexDirection:"column"},s["&."+ad.bottom]={bottom:Th.view.default-Th.snackbar.default,flexDirection:"column-reverse"},s["&."+ad.left]=(r={left:Th.view.default},r[o.breakpoints.up("sm")]={alignItems:"flex-start"},r[o.breakpoints.down("sm")]={left:HN+"px"},r),s["&."+ad.right]=(i={right:Th.view.default},i[o.breakpoints.up("sm")]={alignItems:"flex-end"},i[o.breakpoints.down("sm")]={right:HN+"px"},i),s["&."+ad.center]=(a={left:"50%",transform:"translateX(-50%)"},a[o.breakpoints.up("sm")]={alignItems:"center"},a),s}),$Ue=function(t){var n=t.className,r=t.anchorOrigin,i=t.dense,a=qm(t,["className","anchorOrigin","dense"]),s=Ww(ad[r.vertical],ad[r.horizontal],ad.root,n,i&&ad.rootDense);return hn.createElement(LUe,Object.assign({className:s},a))},FUe=hn.memo($Ue),BUe=function(e){yUe(t,e);function t(r){var i;return i=e.call(this,r)||this,i.enqueueSnackbar=function(a,s){s===void 0&&(s={});var o=s,l=o.key,u=o.preventDuplicate,c=qm(o,["key","preventDuplicate"]),f=rA(l),h=f?l:new Date().getTime()+Math.random(),g=EUe(c,i.props,$g),b=Bi({key:h},c,{message:a,open:!0,entered:!1,requestClose:!1,variant:g("variant"),anchorOrigin:g("anchorOrigin"),autoHideDuration:g("autoHideDuration")});return c.persist&&(b.autoHideDuration=void 0),i.setState(function(S){if(u===void 0&&i.props.preventDuplicate||u){var w=function(C){return f?C.key===l:C.message===a},E=S.queue.findIndex(w)>-1,x=S.snacks.findIndex(w)>-1;if(E||x)return S}return i.handleDisplaySnack(Bi({},S,{queue:[].concat(S.queue,[b])}))}),h},i.handleDisplaySnack=function(a){var s=a.snacks;return s.length>=i.maxSnack?i.handleDismissOldest(a):i.processQueue(a)},i.processQueue=function(a){var s=a.queue,o=a.snacks;return s.length>0?Bi({},a,{snacks:[].concat(o,[s[0]]),queue:s.slice(1,s.length)}):a},i.handleDismissOldest=function(a){if(a.snacks.some(function(c){return!c.open||c.requestClose}))return a;var s=!1,o=!1,l=a.snacks.reduce(function(c,f){return c+(f.open&&f.persist?1:0)},0);l===i.maxSnack&&(o=!0);var u=a.snacks.map(function(c){return!s&&(!c.persist||o)?(s=!0,c.entered?(c.onClose&&c.onClose(null,gm.MAXSNACK,c.key),i.props.onClose&&i.props.onClose(null,gm.MAXSNACK,c.key),Bi({},c,{open:!1})):Bi({},c,{requestClose:!0})):Bi({},c)});return Bi({},a,{snacks:u})},i.handleEnteredSnack=function(a,s,o){if(!rA(o))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===o?Bi({},c,{entered:!0}):Bi({},c)})}})},i.handleCloseSnack=function(a,s,o){if(i.props.onClose&&i.props.onClose(a,s,o),s!==gm.CLICKAWAY){var l=o===void 0;i.setState(function(u){var c=u.snacks,f=u.queue;return{snacks:c.map(function(h){return!l&&h.key!==o?Bi({},h):h.entered?Bi({},h,{open:!1}):Bi({},h,{requestClose:!0})}),queue:f.filter(function(h){return h.key!==o})}})}},i.closeSnackbar=function(a){var s=i.state.snacks.find(function(o){return o.key===a});rA(a)&&s&&s.onClose&&s.onClose(null,gm.INSTRUCTED,a),i.handleCloseSnack(null,gm.INSTRUCTED,a)},i.handleExitedSnack=function(a,s,o){var l=s||o;if(!rA(l))throw new Error("handleExitedSnack Cannot be called with undefined key");i.setState(function(u){var c=i.processQueue(Bi({},u,{snacks:u.snacks.filter(function(f){return f.key!==l})}));return c.queue.length===0?c:i.handleDismissOldest(c)})},i.state={snacks:[],queue:[],contextValue:{enqueueSnackbar:i.enqueueSnackbar.bind(MX(i)),closeSnackbar:i.closeSnackbar.bind(MX(i))}},i}var n=t.prototype;return n.render=function(){var i=this,a=this.state.contextValue,s=this.props,o=s.iconVariant,l=s.dense,u=l===void 0?$g.dense:l,c=s.hideIconVariant,f=c===void 0?$g.hideIconVariant:c,h=s.domRoot,g=s.children,b=s.classes,S=b===void 0?{}:b,w=qm(s,["maxSnack","preventDuplicate","variant","anchorOrigin","iconVariant","dense","hideIconVariant","domRoot","children","classes"]),E=this.state.snacks.reduce(function(k,C){var I,A=OUe(C.anchorOrigin),D=k[A]||[];return Bi({},k,(I={},I[A]=[].concat(D,[C]),I))},{}),x=Object.keys(E).map(function(k){var C=E[k];return hn.createElement(FUe,{key:k,dense:u,anchorOrigin:C[0].anchorOrigin,className:Ww(S.containerRoot,S[N4.toContainerAnchorOrigin(k)])},C.map(function(I){return hn.createElement(MUe,Object.assign({},w,{key:I.key,snack:I,dense:u,iconVariant:o,hideIconVariant:f,classes:SUe(S),onClose:i.handleCloseSnack,onExited:B2([i.handleExitedSnack,i.props.onExited]),onEntered:B2([i.handleEnteredSnack,i.props.onEntered])}))}))});return hn.createElement(Vue.Provider,{value:a},g,h?A1.createPortal(x,h):x)},bUe(t,[{key:"maxSnack",get:function(){return this.props.maxSnack||$g.maxSnack}}]),t}(N.Component),vT=function(){return N.useContext(Vue)};const UUe={data:null},Que=R1({name:"document",initialState:UUe,reducers:{setDocumentData:(e,t)=>{e.data=t.payload}}}),{setDocumentData:f3}=Que.actions,JR=e=>e.document,zUe=Que.reducer;var PO=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(){}},nO=typeof window>"u"||"Deno"in window;function ic(){}function jUe(e,t){return typeof e=="function"?e(t):e}function tM(e){return typeof e=="number"&&e>=0&&e!==1/0}function que(e,t){return Math.max(e+(t||0)-Date.now(),0)}function BX(e,t){const{type:n="all",exact:r,fetchStatus:i,predicate:a,queryKey:s,stale:o}=e;if(s){if(r){if(t.queryHash!==eB(s,t.options))return!1}else if(!Qw(t.queryKey,s))return!1}if(n!=="all"){const l=t.isActive();if(n==="active"&&!l||n==="inactive"&&l)return!1}return!(typeof o=="boolean"&&t.isStale()!==o||typeof i<"u"&&i!==t.state.fetchStatus||a&&!a(t))}function UX(e,t){const{exact:n,status:r,predicate:i,mutationKey:a}=e;if(a){if(!t.options.mutationKey)return!1;if(n){if(g1(t.options.mutationKey)!==g1(a))return!1}else if(!Qw(t.options.mutationKey,a))return!1}return!(r&&t.state.status!==r||i&&!i(t))}function eB(e,t){return((t==null?void 0:t.queryKeyHashFn)||g1)(e)}function g1(e){return JSON.stringify(e,(t,n)=>nM(n)?Object.keys(n).sort().reduce((r,i)=>(r[i]=n[i],r),{}):n)}function Qw(e,t){return e===t?!0:typeof e!=typeof t?!1:e&&t&&typeof e=="object"&&typeof t=="object"?!Object.keys(t).some(n=>!Qw(e[n],t[n])):!1}function Gue(e,t){if(e===t)return e;const n=zX(e)&&zX(t);if(n||nM(e)&&nM(t)){const r=n?e:Object.keys(e),i=r.length,a=n?t:Object.keys(t),s=a.length,o=n?[]:{};let l=0;for(let u=0;u"u")return!0;const n=t.prototype;return!(!jX(n)||!n.hasOwnProperty("isPrototypeOf"))}function jX(e){return Object.prototype.toString.call(e)==="[object Object]"}function HUe(e){return new Promise(t=>{setTimeout(t,e)})}function rM(e,t,n){return typeof n.structuralSharing=="function"?n.structuralSharing(e,t):n.structuralSharing!==!1?Gue(e,t):t}function VUe(e,t,n=0){const r=[...e,t];return n&&r.length>n?r.slice(1):r}function WUe(e,t,n=0){const r=[t,...e];return n&&r.length>n?r.slice(0,-1):r}var Vg,vm,xv,wie,QUe=(wie=class extends PO{constructor(){super();En(this,Vg,void 0);En(this,vm,void 0);En(this,xv,void 0);sn(this,xv,t=>{if(!nO&&window.addEventListener){const n=()=>t();return window.addEventListener("visibilitychange",n,!1),()=>{window.removeEventListener("visibilitychange",n)}}})}onSubscribe(){Le(this,vm)||this.setEventListener(Le(this,xv))}onUnsubscribe(){var t;this.hasListeners()||((t=Le(this,vm))==null||t.call(this),sn(this,vm,void 0))}setEventListener(t){var n;sn(this,xv,t),(n=Le(this,vm))==null||n.call(this),sn(this,vm,t(r=>{typeof r=="boolean"?this.setFocused(r):this.onFocus()}))}setFocused(t){Le(this,Vg)!==t&&(sn(this,Vg,t),this.onFocus())}onFocus(){this.listeners.forEach(t=>{t()})}isFocused(){var t;return typeof Le(this,Vg)=="boolean"?Le(this,Vg):((t=globalThis.document)==null?void 0:t.visibilityState)!=="hidden"}},Vg=new WeakMap,vm=new WeakMap,xv=new WeakMap,wie),p3=new QUe,Tv,Om,kv,xie,qUe=(xie=class extends PO{constructor(){super();En(this,Tv,!0);En(this,Om,void 0);En(this,kv,void 0);sn(this,kv,t=>{if(!nO&&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(){Le(this,Om)||this.setEventListener(Le(this,kv))}onUnsubscribe(){var t;this.hasListeners()||((t=Le(this,Om))==null||t.call(this),sn(this,Om,void 0))}setEventListener(t){var n;sn(this,kv,t),(n=Le(this,Om))==null||n.call(this),sn(this,Om,t(this.setOnline.bind(this)))}setOnline(t){Le(this,Tv)!==t&&(sn(this,Tv,t),this.listeners.forEach(r=>{r(t)}))}isOnline(){return Le(this,Tv)}},Tv=new WeakMap,Om=new WeakMap,kv=new WeakMap,xie),m3=new qUe;function GUe(e){return Math.min(1e3*2**e,3e4)}function eI(e){return(e??"online")==="online"?m3.isOnline():!0}var Yue=class{constructor(e){this.revert=e==null?void 0:e.revert,this.silent=e==null?void 0:e.silent}};function VN(e){return e instanceof Yue}function Zue(e){let t=!1,n=0,r=!1,i,a,s;const o=new Promise((w,E)=>{a=w,s=E}),l=w=>{var E;r||(g(new Yue(w)),(E=e.abort)==null||E.call(e))},u=()=>{t=!0},c=()=>{t=!1},f=()=>!p3.isFocused()||e.networkMode!=="always"&&!m3.isOnline(),h=w=>{var E;r||(r=!0,(E=e.onSuccess)==null||E.call(e,w),i==null||i(),a(w))},g=w=>{var E;r||(r=!0,(E=e.onError)==null||E.call(e,w),i==null||i(),s(w))},b=()=>new Promise(w=>{var E;i=x=>{const k=r||!f();return k&&w(x),k},(E=e.onPause)==null||E.call(e)}).then(()=>{var w;i=void 0,r||(w=e.onContinue)==null||w.call(e)}),S=()=>{if(r)return;let w;try{w=e.fn()}catch(E){w=Promise.reject(E)}Promise.resolve(w).then(h).catch(E=>{var A;if(r)return;const x=e.retry??(nO?0:3),k=e.retryDelay??GUe,C=typeof k=="function"?k(n,E):k,I=x===!0||typeof x=="number"&&n{if(f())return b()}).then(()=>{t?g(E):S()})})};return eI(e.networkMode)?S():b().then(S),{promise:o,cancel:l,continue:()=>(i==null?void 0:i())?o:Promise.resolve(),cancelRetry:u,continueRetry:c}}function YUe(){let e=[],t=0,n=h=>{h()},r=h=>{h()},i=h=>setTimeout(h,0);const a=h=>{i=h},s=h=>{let g;t++;try{g=h()}finally{t--,t||u()}return g},o=h=>{t?e.push(h):i(()=>{n(h)})},l=h=>(...g)=>{o(()=>{h(...g)})},u=()=>{const h=e;e=[],h.length&&i(()=>{r(()=>{h.forEach(g=>{n(g)})})})};return{batch:s,batchCalls:l,schedule:o,setNotifyFunction:h=>{n=h},setBatchNotifyFunction:h=>{r=h},setScheduler:a}}var is=YUe(),Wg,Tie,Xue=(Tie=class{constructor(){En(this,Wg,void 0)}destroy(){this.clearGcTimeout()}scheduleGc(){this.clearGcTimeout(),tM(this.gcTime)&&sn(this,Wg,setTimeout(()=>{this.optionalRemove()},this.gcTime))}updateGcTime(e){this.gcTime=Math.max(this.gcTime||0,e??(nO?1/0:5*60*1e3))}clearGcTimeout(){Le(this,Wg)&&(clearTimeout(Le(this,Wg)),sn(this,Wg,void 0))}},Wg=new WeakMap,Tie),Cv,Av,ec,Sm,tc,Es,Mx,Qg,_v,P4,nd,Dh,kie,ZUe=(kie=class extends Xue{constructor(t){super();En(this,_v);En(this,nd);En(this,Cv,void 0);En(this,Av,void 0);En(this,ec,void 0);En(this,Sm,void 0);En(this,tc,void 0);En(this,Es,void 0);En(this,Mx,void 0);En(this,Qg,void 0);sn(this,Qg,!1),sn(this,Mx,t.defaultOptions),lr(this,_v,P4).call(this,t.options),sn(this,Es,[]),sn(this,ec,t.cache),this.queryKey=t.queryKey,this.queryHash=t.queryHash,sn(this,Cv,t.state||XUe(this.options)),this.state=Le(this,Cv),this.scheduleGc()}get meta(){return this.options.meta}optionalRemove(){!Le(this,Es).length&&this.state.fetchStatus==="idle"&&Le(this,ec).remove(this)}setData(t,n){const r=rM(this.state.data,t,this.options);return lr(this,nd,Dh).call(this,{data:r,type:"success",dataUpdatedAt:n==null?void 0:n.updatedAt,manual:n==null?void 0:n.manual}),r}setState(t,n){lr(this,nd,Dh).call(this,{type:"setState",state:t,setStateOptions:n})}cancel(t){var r;const n=Le(this,Sm);return(r=Le(this,tc))==null||r.cancel(t),n?n.then(ic).catch(ic):Promise.resolve()}destroy(){super.destroy(),this.cancel({silent:!0})}reset(){this.destroy(),this.setState(Le(this,Cv))}isActive(){return Le(this,Es).some(t=>t.options.enabled!==!1)}isDisabled(){return this.getObserversCount()>0&&!this.isActive()}isStale(){return this.state.isInvalidated||!this.state.dataUpdatedAt||Le(this,Es).some(t=>t.getCurrentResult().isStale)}isStaleByTime(t=0){return this.state.isInvalidated||!this.state.dataUpdatedAt||!que(this.state.dataUpdatedAt,t)}onFocus(){var n;const t=Le(this,Es).find(r=>r.shouldFetchOnWindowFocus());t==null||t.refetch({cancelRefetch:!1}),(n=Le(this,tc))==null||n.continue()}onOnline(){var n;const t=Le(this,Es).find(r=>r.shouldFetchOnReconnect());t==null||t.refetch({cancelRefetch:!1}),(n=Le(this,tc))==null||n.continue()}addObserver(t){Le(this,Es).includes(t)||(Le(this,Es).push(t),this.clearGcTimeout(),Le(this,ec).notify({type:"observerAdded",query:this,observer:t}))}removeObserver(t){Le(this,Es).includes(t)&&(sn(this,Es,Le(this,Es).filter(n=>n!==t)),Le(this,Es).length||(Le(this,tc)&&(Le(this,Qg)?Le(this,tc).cancel({revert:!0}):Le(this,tc).cancelRetry()),this.scheduleGc()),Le(this,ec).notify({type:"observerRemoved",query:this,observer:t}))}getObserversCount(){return Le(this,Es).length}invalidate(){this.state.isInvalidated||lr(this,nd,Dh).call(this,{type:"invalidate"})}fetch(t,n){var u,c,f,h;if(this.state.fetchStatus!=="idle"){if(this.state.dataUpdatedAt&&(n!=null&&n.cancelRefetch))this.cancel({silent:!0});else if(Le(this,Sm))return(u=Le(this,tc))==null||u.continueRetry(),Le(this,Sm)}if(t&&lr(this,_v,P4).call(this,t),!this.options.queryFn){const g=Le(this,Es).find(b=>b.options.queryFn);g&&lr(this,_v,P4).call(this,g.options)}const r=new AbortController,i={queryKey:this.queryKey,meta:this.meta},a=g=>{Object.defineProperty(g,"signal",{enumerable:!0,get:()=>(sn(this,Qg,!0),r.signal)})};a(i);const s=()=>this.options.queryFn?(sn(this,Qg,!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}'`)),o={fetchOptions:n,options:this.options,queryKey:this.queryKey,state:this.state,fetchFn:s};a(o),(c=this.options.behavior)==null||c.onFetch(o,this),sn(this,Av,this.state),(this.state.fetchStatus==="idle"||this.state.fetchMeta!==((f=o.fetchOptions)==null?void 0:f.meta))&&lr(this,nd,Dh).call(this,{type:"fetch",meta:(h=o.fetchOptions)==null?void 0:h.meta});const l=g=>{var b,S,w,E;VN(g)&&g.silent||lr(this,nd,Dh).call(this,{type:"error",error:g}),VN(g)||((S=(b=Le(this,ec).config).onError)==null||S.call(b,g,this),(E=(w=Le(this,ec).config).onSettled)==null||E.call(w,this.state.data,g,this)),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1};return sn(this,tc,Zue({fn:o.fetchFn,abort:r.abort.bind(r),onSuccess:g=>{var b,S,w,E;if(typeof g>"u"){l(new Error(`${this.queryHash} data is undefined`));return}this.setData(g),(S=(b=Le(this,ec).config).onSuccess)==null||S.call(b,g,this),(E=(w=Le(this,ec).config).onSettled)==null||E.call(w,g,this.state.error,this),this.isFetchingOptimistic||this.scheduleGc(),this.isFetchingOptimistic=!1},onError:l,onFail:(g,b)=>{lr(this,nd,Dh).call(this,{type:"failed",failureCount:g,error:b})},onPause:()=>{lr(this,nd,Dh).call(this,{type:"pause"})},onContinue:()=>{lr(this,nd,Dh).call(this,{type:"continue"})},retry:o.options.retry,retryDelay:o.options.retryDelay,networkMode:o.options.networkMode})),sn(this,Sm,Le(this,tc).promise),Le(this,Sm)}},Cv=new WeakMap,Av=new WeakMap,ec=new WeakMap,Sm=new WeakMap,tc=new WeakMap,Es=new WeakMap,Mx=new WeakMap,Qg=new WeakMap,_v=new WeakSet,P4=function(t){this.options={...Le(this,Mx),...t},this.updateGcTime(this.options.gcTime)},nd=new WeakSet,Dh=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:eI(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 VN(i)&&i.revert&&Le(this,Av)?{...Le(this,Av),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),is.batch(()=>{Le(this,Es).forEach(r=>{r.onQueryUpdate()}),Le(this,ec).notify({query:this,type:"updated",action:t})})},kie);function XUe(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 ff,Cie,Kue=(Cie=class extends PO{constructor(t={}){super();En(this,ff,void 0);this.config=t,sn(this,ff,new Map)}build(t,n,r){const i=n.queryKey,a=n.queryHash??eB(i,n);let s=this.get(a);return s||(s=new ZUe({cache:this,queryKey:i,queryHash:a,options:t.defaultQueryOptions(n),state:r,defaultOptions:t.getQueryDefaults(i)}),this.add(s)),s}add(t){Le(this,ff).has(t.queryHash)||(Le(this,ff).set(t.queryHash,t),this.notify({type:"added",query:t}))}remove(t){const n=Le(this,ff).get(t.queryHash);n&&(t.destroy(),n===t&&Le(this,ff).delete(t.queryHash),this.notify({type:"removed",query:t}))}clear(){is.batch(()=>{this.getAll().forEach(t=>{this.remove(t)})})}get(t){return Le(this,ff).get(t)}getAll(){return[...Le(this,ff).values()]}find(t){const n={exact:!0,...t};return this.getAll().find(r=>BX(n,r))}findAll(t={}){const n=this.getAll();return Object.keys(t).length>0?n.filter(r=>BX(t,r)):n}notify(t){is.batch(()=>{this.listeners.forEach(n=>{n(t)})})}onFocus(){is.batch(()=>{this.getAll().forEach(t=>{t.onFocus()})})}onOnline(){is.batch(()=>{this.getAll().forEach(t=>{t.onOnline()})})}},ff=new WeakMap,Cie),hf,Lx,ru,Rv,pf,im,Aie,KUe=(Aie=class extends Xue{constructor(t){super();En(this,pf);En(this,hf,void 0);En(this,Lx,void 0);En(this,ru,void 0);En(this,Rv,void 0);this.mutationId=t.mutationId,sn(this,Lx,t.defaultOptions),sn(this,ru,t.mutationCache),sn(this,hf,[]),this.state=t.state||Jue(),this.setOptions(t.options),this.scheduleGc()}setOptions(t){this.options={...Le(this,Lx),...t},this.updateGcTime(this.options.gcTime)}get meta(){return this.options.meta}addObserver(t){Le(this,hf).includes(t)||(Le(this,hf).push(t),this.clearGcTimeout(),Le(this,ru).notify({type:"observerAdded",mutation:this,observer:t}))}removeObserver(t){sn(this,hf,Le(this,hf).filter(n=>n!==t)),this.scheduleGc(),Le(this,ru).notify({type:"observerRemoved",mutation:this,observer:t})}optionalRemove(){Le(this,hf).length||(this.state.status==="pending"?this.scheduleGc():Le(this,ru).remove(this))}continue(){var t;return((t=Le(this,Rv))==null?void 0:t.continue())??this.execute(this.state.variables)}async execute(t){var i,a,s,o,l,u,c,f,h,g,b,S,w,E,x,k,C,I,A,D;const n=()=>(sn(this,Rv,Zue({fn:()=>this.options.mutationFn?this.options.mutationFn(t):Promise.reject(new Error("No mutationFn found")),onFail:(B,L)=>{lr(this,pf,im).call(this,{type:"failed",failureCount:B,error:L})},onPause:()=>{lr(this,pf,im).call(this,{type:"pause"})},onContinue:()=>{lr(this,pf,im).call(this,{type:"continue"})},retry:this.options.retry??0,retryDelay:this.options.retryDelay,networkMode:this.options.networkMode})),Le(this,Rv).promise),r=this.state.status==="pending";try{if(!r){lr(this,pf,im).call(this,{type:"pending",variables:t}),await((a=(i=Le(this,ru).config).onMutate)==null?void 0:a.call(i,t,this));const L=await((o=(s=this.options).onMutate)==null?void 0:o.call(s,t));L!==this.state.context&&lr(this,pf,im).call(this,{type:"pending",context:L,variables:t})}const B=await n();return await((u=(l=Le(this,ru).config).onSuccess)==null?void 0:u.call(l,B,t,this.state.context,this)),await((f=(c=this.options).onSuccess)==null?void 0:f.call(c,B,t,this.state.context)),await((g=(h=Le(this,ru).config).onSettled)==null?void 0:g.call(h,B,null,this.state.variables,this.state.context,this)),await((S=(b=this.options).onSettled)==null?void 0:S.call(b,B,null,t,this.state.context)),lr(this,pf,im).call(this,{type:"success",data:B}),B}catch(B){try{throw await((E=(w=Le(this,ru).config).onError)==null?void 0:E.call(w,B,t,this.state.context,this)),await((k=(x=this.options).onError)==null?void 0:k.call(x,B,t,this.state.context)),await((I=(C=Le(this,ru).config).onSettled)==null?void 0:I.call(C,void 0,B,this.state.variables,this.state.context,this)),await((D=(A=this.options).onSettled)==null?void 0:D.call(A,void 0,B,t,this.state.context)),B}finally{lr(this,pf,im).call(this,{type:"error",error:B})}}}},hf=new WeakMap,Lx=new WeakMap,ru=new WeakMap,Rv=new WeakMap,pf=new WeakSet,im=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:!eI(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),is.batch(()=>{Le(this,hf).forEach(r=>{r.onMutationUpdate(t)}),Le(this,ru).notify({mutation:this,type:"updated",action:t})})},Aie);function Jue(){return{context:void 0,data:void 0,error:null,failureCount:0,failureReason:null,isPaused:!1,status:"idle",variables:void 0,submittedAt:0}}var nc,$x,qg,_ie,JUe=(_ie=class extends PO{constructor(t={}){super();En(this,nc,void 0);En(this,$x,void 0);En(this,qg,void 0);this.config=t,sn(this,nc,[]),sn(this,$x,0)}build(t,n,r){const i=new KUe({mutationCache:this,mutationId:++xC(this,$x)._,options:t.defaultMutationOptions(n),state:r});return this.add(i),i}add(t){Le(this,nc).push(t),this.notify({type:"added",mutation:t})}remove(t){sn(this,nc,Le(this,nc).filter(n=>n!==t)),this.notify({type:"removed",mutation:t})}clear(){is.batch(()=>{Le(this,nc).forEach(t=>{this.remove(t)})})}getAll(){return Le(this,nc)}find(t){const n={exact:!0,...t};return Le(this,nc).find(r=>UX(n,r))}findAll(t={}){return Le(this,nc).filter(n=>UX(t,n))}notify(t){is.batch(()=>{this.listeners.forEach(n=>{n(t)})})}resumePausedMutations(){return sn(this,qg,(Le(this,qg)??Promise.resolve()).then(()=>{const t=Le(this,nc).filter(n=>n.state.isPaused);return is.batch(()=>t.reduce((n,r)=>n.then(()=>r.continue().catch(ic)),Promise.resolve()))}).then(()=>{sn(this,qg,void 0)})),Le(this,qg)}},nc=new WeakMap,$x=new WeakMap,qg=new WeakMap,_ie);function iM(e){return{onFetch:(t,n)=>{const r=async()=>{var b,S,w,E,x;const i=t.options,a=(w=(S=(b=t.fetchOptions)==null?void 0:b.meta)==null?void 0:S.fetchMore)==null?void 0:w.direction,s=((E=t.state.data)==null?void 0:E.pages)||[],o=((x=t.state.data)==null?void 0:x.pageParams)||[],l={pages:[],pageParams:[]};let u=!1;const c=k=>{Object.defineProperty(k,"signal",{enumerable:!0,get:()=>(t.signal.aborted?u=!0:t.signal.addEventListener("abort",()=>{u=!0}),t.signal)})},f=t.options.queryFn||(()=>Promise.reject(new Error(`Missing queryFn: '${t.options.queryHash}'`))),h=async(k,C,I)=>{if(u)return Promise.reject();if(C==null&&k.pages.length)return Promise.resolve(k);const A={queryKey:t.queryKey,pageParam:C,direction:I?"backward":"forward",meta:t.options.meta};c(A);const D=await f(A),{maxPages:B}=t.options,L=I?WUe:VUe;return{pages:L(k.pages,D,B),pageParams:L(k.pageParams,C,B)}};let g;if(a&&s.length){const k=a==="backward",C=k?ece:aM,I={pages:s,pageParams:o},A=C(i,I);g=await h(I,A,k)}else{g=await h(l,o[0]??i.initialPageParam);const k=e??s.length;for(let C=1;C{var i,a;return(a=(i=t.options).persister)==null?void 0:a.call(i,r,{queryKey:t.queryKey,meta:t.options.meta,signal:t.signal},n)}:t.fetchFn=r}}}function aM(e,{pages:t,pageParams:n}){const r=t.length-1;return e.getNextPageParam(t[r],t,n[r],n)}function ece(e,{pages:t,pageParams:n}){var r;return(r=e.getPreviousPageParam)==null?void 0:r.call(e,t[0],t,n[0],n)}function eze(e,t){return t?aM(e,t)!=null:!1}function tze(e,t){return!t||!e.getPreviousPageParam?!1:ece(e,t)!=null}var Ja,Em,wm,Iv,Dv,xm,Nv,Pv,Rie,nze=(Rie=class{constructor(e={}){En(this,Ja,void 0);En(this,Em,void 0);En(this,wm,void 0);En(this,Iv,void 0);En(this,Dv,void 0);En(this,xm,void 0);En(this,Nv,void 0);En(this,Pv,void 0);sn(this,Ja,e.queryCache||new Kue),sn(this,Em,e.mutationCache||new JUe),sn(this,wm,e.defaultOptions||{}),sn(this,Iv,new Map),sn(this,Dv,new Map),sn(this,xm,0)}mount(){xC(this,xm)._++,Le(this,xm)===1&&(sn(this,Nv,p3.subscribe(()=>{p3.isFocused()&&(this.resumePausedMutations(),Le(this,Ja).onFocus())})),sn(this,Pv,m3.subscribe(()=>{m3.isOnline()&&(this.resumePausedMutations(),Le(this,Ja).onOnline())})))}unmount(){var e,t;xC(this,xm)._--,Le(this,xm)===0&&((e=Le(this,Nv))==null||e.call(this),sn(this,Nv,void 0),(t=Le(this,Pv))==null||t.call(this),sn(this,Pv,void 0))}isFetching(e){return Le(this,Ja).findAll({...e,fetchStatus:"fetching"}).length}isMutating(e){return Le(this,Em).findAll({...e,status:"pending"}).length}getQueryData(e){var t;return(t=Le(this,Ja).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=Le(this,Ja).find({queryKey:e}),i=r==null?void 0:r.state.data,a=jUe(t,i);if(typeof a>"u")return;const s=this.defaultQueryOptions({queryKey:e});return Le(this,Ja).build(this,s).setData(a,{...n,manual:!0})}setQueriesData(e,t,n){return is.batch(()=>this.getQueryCache().findAll(e).map(({queryKey:r})=>[r,this.setQueryData(r,t,n)]))}getQueryState(e){var t;return(t=Le(this,Ja).find({queryKey:e}))==null?void 0:t.state}removeQueries(e){const t=Le(this,Ja);is.batch(()=>{t.findAll(e).forEach(n=>{t.remove(n)})})}resetQueries(e,t){const n=Le(this,Ja),r={type:"active",...e};return is.batch(()=>(n.findAll(e).forEach(i=>{i.reset()}),this.refetchQueries(r,t)))}cancelQueries(e={},t={}){const n={revert:!0,...t},r=is.batch(()=>Le(this,Ja).findAll(e).map(i=>i.cancel(n)));return Promise.all(r).then(ic).catch(ic)}invalidateQueries(e={},t={}){return is.batch(()=>{if(Le(this,Ja).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=is.batch(()=>Le(this,Ja).findAll(e).filter(i=>!i.isDisabled()).map(i=>{let a=i.fetch(void 0,n);return n.throwOnError||(a=a.catch(ic)),i.state.fetchStatus==="paused"?Promise.resolve():a}));return Promise.all(r).then(ic)}fetchQuery(e){const t=this.defaultQueryOptions(e);typeof t.retry>"u"&&(t.retry=!1);const n=Le(this,Ja).build(this,t);return n.isStaleByTime(t.staleTime)?n.fetch(t):Promise.resolve(n.state.data)}prefetchQuery(e){return this.fetchQuery(e).then(ic).catch(ic)}fetchInfiniteQuery(e){return e.behavior=iM(e.pages),this.fetchQuery(e)}prefetchInfiniteQuery(e){return this.fetchInfiniteQuery(e).then(ic).catch(ic)}resumePausedMutations(){return Le(this,Em).resumePausedMutations()}getQueryCache(){return Le(this,Ja)}getMutationCache(){return Le(this,Em)}getDefaultOptions(){return Le(this,wm)}setDefaultOptions(e){sn(this,wm,e)}setQueryDefaults(e,t){Le(this,Iv).set(g1(e),{queryKey:e,defaultOptions:t})}getQueryDefaults(e){const t=[...Le(this,Iv).values()];let n={};return t.forEach(r=>{Qw(e,r.queryKey)&&(n={...n,...r.defaultOptions})}),n}setMutationDefaults(e,t){Le(this,Dv).set(g1(e),{mutationKey:e,defaultOptions:t})}getMutationDefaults(e){const t=[...Le(this,Dv).values()];let n={};return t.forEach(r=>{Qw(e,r.mutationKey)&&(n={...n,...r.defaultOptions})}),n}defaultQueryOptions(e){if(e!=null&&e._defaulted)return e;const t={...Le(this,wm).queries,...(e==null?void 0:e.queryKey)&&this.getQueryDefaults(e.queryKey),...e,_defaulted:!0};return t.queryHash||(t.queryHash=eB(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:{...Le(this,wm).mutations,...(e==null?void 0:e.mutationKey)&&this.getMutationDefaults(e.mutationKey),...e,_defaulted:!0}}clear(){Le(this,Ja).clear(),Le(this,Em).clear()}},Ja=new WeakMap,Em=new WeakMap,wm=new WeakMap,Iv=new WeakMap,Dv=new WeakMap,xm=new WeakMap,Nv=new WeakMap,Pv=new WeakMap,Rie),ml,Fi,Fx,Bo,Gg,Mv,mf,Bx,Lv,$v,Yg,Zg,Tm,Fv,Xg,o2,Ux,sM,zx,oM,jx,lM,Hx,uM,Vx,cM,Wx,dM,Qx,fM,A5,nce,Iie,tce=(Iie=class extends PO{constructor(t,n){super();En(this,Xg);En(this,Ux);En(this,zx);En(this,jx);En(this,Hx);En(this,Vx);En(this,Wx);En(this,Qx);En(this,A5);En(this,ml,void 0);En(this,Fi,void 0);En(this,Fx,void 0);En(this,Bo,void 0);En(this,Gg,void 0);En(this,Mv,void 0);En(this,mf,void 0);En(this,Bx,void 0);En(this,Lv,void 0);En(this,$v,void 0);En(this,Yg,void 0);En(this,Zg,void 0);En(this,Tm,void 0);En(this,Fv,new Set);this.options=n,sn(this,ml,t),sn(this,mf,null),this.bindMethods(),this.setOptions(n)}bindMethods(){this.refetch=this.refetch.bind(this)}onSubscribe(){this.listeners.size===1&&(Le(this,Fi).addObserver(this),HX(Le(this,Fi),this.options)?lr(this,Xg,o2).call(this):this.updateResult(),lr(this,Hx,uM).call(this))}onUnsubscribe(){this.hasListeners()||this.destroy()}shouldFetchOnReconnect(){return hM(Le(this,Fi),this.options,this.options.refetchOnReconnect)}shouldFetchOnWindowFocus(){return hM(Le(this,Fi),this.options,this.options.refetchOnWindowFocus)}destroy(){this.listeners=new Set,lr(this,Vx,cM).call(this),lr(this,Wx,dM).call(this),Le(this,Fi).removeObserver(this)}setOptions(t,n){const r=this.options,i=Le(this,Fi);if(this.options=Le(this,ml).defaultQueryOptions(t),h3(r,this.options)||Le(this,ml).getQueryCache().notify({type:"observerOptionsUpdated",query:Le(this,Fi),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),lr(this,Qx,fM).call(this);const a=this.hasListeners();a&&VX(Le(this,Fi),i,this.options,r)&&lr(this,Xg,o2).call(this),this.updateResult(n),a&&(Le(this,Fi)!==i||this.options.enabled!==r.enabled||this.options.staleTime!==r.staleTime)&&lr(this,Ux,sM).call(this);const s=lr(this,zx,oM).call(this);a&&(Le(this,Fi)!==i||this.options.enabled!==r.enabled||s!==Le(this,Tm))&&lr(this,jx,lM).call(this,s)}getOptimisticResult(t){const n=Le(this,ml).getQueryCache().build(Le(this,ml),t),r=this.createResult(n,t);return ize(this,r)&&(sn(this,Bo,r),sn(this,Mv,this.options),sn(this,Gg,Le(this,Fi).state)),r}getCurrentResult(){return Le(this,Bo)}trackResult(t){const n={};return Object.keys(t).forEach(r=>{Object.defineProperty(n,r,{configurable:!1,enumerable:!0,get:()=>(Le(this,Fv).add(r),t[r])})}),n}getCurrentQuery(){return Le(this,Fi)}refetch({...t}={}){return this.fetch({...t})}fetchOptimistic(t){const n=Le(this,ml).defaultQueryOptions(t),r=Le(this,ml).getQueryCache().build(Le(this,ml),n);return r.isFetchingOptimistic=!0,r.fetch().then(()=>this.createResult(r,n))}fetch(t){return lr(this,Xg,o2).call(this,{...t,cancelRefetch:t.cancelRefetch??!0}).then(()=>(this.updateResult(),Le(this,Bo)))}createResult(t,n){var A;const r=Le(this,Fi),i=this.options,a=Le(this,Bo),s=Le(this,Gg),o=Le(this,Mv),u=t!==r?t.state:Le(this,Fx),{state:c}=t;let{error:f,errorUpdatedAt:h,fetchStatus:g,status:b}=c,S=!1,w;if(n._optimisticResults){const D=this.hasListeners(),B=!D&&HX(t,n),L=D&&VX(t,r,n,i);(B||L)&&(g=eI(t.options.networkMode)?"fetching":"paused",c.dataUpdatedAt||(b="pending")),n._optimisticResults==="isRestoring"&&(g="idle")}if(n.select&&typeof c.data<"u")if(a&&c.data===(s==null?void 0:s.data)&&n.select===Le(this,Bx))w=Le(this,Lv);else try{sn(this,Bx,n.select),w=n.select(c.data),w=rM(a==null?void 0:a.data,w,n),sn(this,Lv,w),sn(this,mf,null)}catch(D){sn(this,mf,D)}else w=c.data;if(typeof n.placeholderData<"u"&&typeof w>"u"&&b==="pending"){let D;if(a!=null&&a.isPlaceholderData&&n.placeholderData===(o==null?void 0:o.placeholderData))D=a.data;else if(D=typeof n.placeholderData=="function"?n.placeholderData((A=Le(this,$v))==null?void 0:A.state.data,Le(this,$v)):n.placeholderData,n.select&&typeof D<"u")try{D=n.select(D),sn(this,mf,null)}catch(B){sn(this,mf,B)}typeof D<"u"&&(b="success",w=rM(a==null?void 0:a.data,D,n),S=!0)}Le(this,mf)&&(f=Le(this,mf),w=Le(this,Lv),h=Date.now(),b="error");const E=g==="fetching",x=b==="pending",k=b==="error",C=x&&E;return{status:b,fetchStatus:g,isPending:x,isSuccess:b==="success",isError:k,isInitialLoading:C,isLoading:C,data:w,dataUpdatedAt:c.dataUpdatedAt,error:f,errorUpdatedAt:h,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:E,isRefetching:E&&!x,isLoadingError:k&&c.dataUpdatedAt===0,isPaused:g==="paused",isPlaceholderData:S,isRefetchError:k&&c.dataUpdatedAt!==0,isStale:tB(t,n),refetch:this.refetch}}updateResult(t){const n=Le(this,Bo),r=this.createResult(Le(this,Fi),this.options);if(sn(this,Gg,Le(this,Fi).state),sn(this,Mv,this.options),Le(this,Gg).data!==void 0&&sn(this,$v,Le(this,Fi)),h3(r,n))return;sn(this,Bo,r);const i={},a=()=>{if(!n)return!0;const{notifyOnChangeProps:s}=this.options,o=typeof s=="function"?s():s;if(o==="all"||!o&&!Le(this,Fv).size)return!0;const l=new Set(o??Le(this,Fv));return this.options.throwOnError&&l.add("error"),Object.keys(Le(this,Bo)).some(u=>{const c=u;return Le(this,Bo)[c]!==n[c]&&l.has(c)})};(t==null?void 0:t.listeners)!==!1&&a()&&(i.listeners=!0),lr(this,A5,nce).call(this,{...i,...t})}onQueryUpdate(){this.updateResult(),this.hasListeners()&&lr(this,Hx,uM).call(this)}},ml=new WeakMap,Fi=new WeakMap,Fx=new WeakMap,Bo=new WeakMap,Gg=new WeakMap,Mv=new WeakMap,mf=new WeakMap,Bx=new WeakMap,Lv=new WeakMap,$v=new WeakMap,Yg=new WeakMap,Zg=new WeakMap,Tm=new WeakMap,Fv=new WeakMap,Xg=new WeakSet,o2=function(t){lr(this,Qx,fM).call(this);let n=Le(this,Fi).fetch(this.options,t);return t!=null&&t.throwOnError||(n=n.catch(ic)),n},Ux=new WeakSet,sM=function(){if(lr(this,Vx,cM).call(this),nO||Le(this,Bo).isStale||!tM(this.options.staleTime))return;const n=que(Le(this,Bo).dataUpdatedAt,this.options.staleTime)+1;sn(this,Yg,setTimeout(()=>{Le(this,Bo).isStale||this.updateResult()},n))},zx=new WeakSet,oM=function(){return(typeof this.options.refetchInterval=="function"?this.options.refetchInterval(Le(this,Fi)):this.options.refetchInterval)??!1},jx=new WeakSet,lM=function(t){lr(this,Wx,dM).call(this),sn(this,Tm,t),!(nO||this.options.enabled===!1||!tM(Le(this,Tm))||Le(this,Tm)===0)&&sn(this,Zg,setInterval(()=>{(this.options.refetchIntervalInBackground||p3.isFocused())&&lr(this,Xg,o2).call(this)},Le(this,Tm)))},Hx=new WeakSet,uM=function(){lr(this,Ux,sM).call(this),lr(this,jx,lM).call(this,lr(this,zx,oM).call(this))},Vx=new WeakSet,cM=function(){Le(this,Yg)&&(clearTimeout(Le(this,Yg)),sn(this,Yg,void 0))},Wx=new WeakSet,dM=function(){Le(this,Zg)&&(clearInterval(Le(this,Zg)),sn(this,Zg,void 0))},Qx=new WeakSet,fM=function(){const t=Le(this,ml).getQueryCache().build(Le(this,ml),this.options);if(t===Le(this,Fi))return;const n=Le(this,Fi);sn(this,Fi,t),sn(this,Fx,t.state),this.hasListeners()&&(n==null||n.removeObserver(this),t.addObserver(this))},A5=new WeakSet,nce=function(t){is.batch(()=>{t.listeners&&this.listeners.forEach(n=>{n(Le(this,Bo))}),Le(this,ml).getQueryCache().notify({query:Le(this,Fi),type:"observerResultsUpdated"})})},Iie);function rze(e,t){return t.enabled!==!1&&!e.state.dataUpdatedAt&&!(e.state.status==="error"&&t.retryOnMount===!1)}function HX(e,t){return rze(e,t)||e.state.dataUpdatedAt>0&&hM(e,t,t.refetchOnMount)}function hM(e,t,n){if(t.enabled!==!1){const r=typeof n=="function"?n(e):n;return r==="always"||r!==!1&&tB(e,t)}return!1}function VX(e,t,n,r){return n.enabled!==!1&&(e!==t||r.enabled===!1)&&(!n.suspense||e.state.status!=="error")&&tB(e,n)}function tB(e,t){return e.isStaleByTime(t.staleTime)}function ize(e,t){return!h3(e.getCurrentResult(),t)}var aze=class extends tce{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:iM()},t)}getOptimisticResult(e){return e.behavior=iM(),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,f;const{state:n}=e,r=super.createResult(e,t),{isFetching:i,isRefetching:a}=r,s=i&&((u=(l=n.fetchMeta)==null?void 0:l.fetchMore)==null?void 0:u.direction)==="forward",o=i&&((f=(c=n.fetchMeta)==null?void 0:c.fetchMore)==null?void 0:f.direction)==="backward";return{...r,fetchNextPage:this.fetchNextPage,fetchPreviousPage:this.fetchPreviousPage,hasNextPage:eze(t,n.data),hasPreviousPage:tze(t,n.data),isFetchingNextPage:s,isFetchingPreviousPage:o,isRefetching:a&&!s&&!o}}},km,Bh,iu,Uh,Bv,M4,qx,pM,Die,sze=(Die=class extends PO{constructor(n,r){super();En(this,Bv);En(this,qx);En(this,km,void 0);En(this,Bh,void 0);En(this,iu,void 0);En(this,Uh,void 0);sn(this,Bh,void 0),sn(this,km,n),this.setOptions(r),this.bindMethods(),lr(this,Bv,M4).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=Le(this,km).defaultMutationOptions(n),h3(r,this.options)||Le(this,km).getMutationCache().notify({type:"observerOptionsUpdated",mutation:Le(this,iu),observer:this}),(i=Le(this,iu))==null||i.setOptions(this.options),r!=null&&r.mutationKey&&this.options.mutationKey&&g1(r.mutationKey)!==g1(this.options.mutationKey)&&this.reset()}onUnsubscribe(){var n;this.hasListeners()||(n=Le(this,iu))==null||n.removeObserver(this)}onMutationUpdate(n){lr(this,Bv,M4).call(this),lr(this,qx,pM).call(this,n)}getCurrentResult(){return Le(this,Bh)}reset(){var n;(n=Le(this,iu))==null||n.removeObserver(this),sn(this,iu,void 0),lr(this,Bv,M4).call(this),lr(this,qx,pM).call(this)}mutate(n,r){var i;return sn(this,Uh,r),(i=Le(this,iu))==null||i.removeObserver(this),sn(this,iu,Le(this,km).getMutationCache().build(Le(this,km),this.options)),Le(this,iu).addObserver(this),Le(this,iu).execute(n)}},km=new WeakMap,Bh=new WeakMap,iu=new WeakMap,Uh=new WeakMap,Bv=new WeakSet,M4=function(){var r;const n=((r=Le(this,iu))==null?void 0:r.state)??Jue();sn(this,Bh,{...n,isPending:n.status==="pending",isSuccess:n.status==="success",isError:n.status==="error",isIdle:n.status==="idle",mutate:this.mutate,reset:this.reset})},qx=new WeakSet,pM=function(n){is.batch(()=>{var r,i,a,s,o,l,u,c;if(Le(this,Uh)&&this.hasListeners()){const f=Le(this,Bh).variables,h=Le(this,Bh).context;(n==null?void 0:n.type)==="success"?((i=(r=Le(this,Uh)).onSuccess)==null||i.call(r,n.data,f,h),(s=(a=Le(this,Uh)).onSettled)==null||s.call(a,n.data,null,f,h)):(n==null?void 0:n.type)==="error"&&((l=(o=Le(this,Uh)).onError)==null||l.call(o,n.error,f,h),(c=(u=Le(this,Uh)).onSettled)==null||c.call(u,void 0,n.error,f,h))}this.listeners.forEach(f=>{f(Le(this,Bh))})})},Die),rce=N.createContext(void 0),OT=e=>{const t=N.useContext(rce);if(e)return e;if(!t)throw new Error("No QueryClient set, use QueryClientProvider to set one");return t},oze=({client:e,children:t})=>(N.useEffect(()=>(e.mount(),()=>{e.unmount()}),[e]),N.createElement(rce.Provider,{value:e},t)),ice=N.createContext(!1),lze=()=>N.useContext(ice);ice.Provider;function uze(){let e=!1;return{clearReset:()=>{e=!1},reset:()=>{e=!0},isReset:()=>e}}var cze=N.createContext(uze()),dze=()=>N.useContext(cze);function ace(e,t){return typeof e=="function"?e(...t):!!e}var fze=(e,t)=>{(e.suspense||e.throwOnError)&&(t.isReset()||(e.retryOnMount=!1))},hze=e=>{N.useEffect(()=>{e.clearReset()},[e])},pze=({result:e,errorResetBoundary:t,throwOnError:n,query:r})=>e.isError&&!t.isReset()&&!e.isFetching&&r&&ace(n,[e.error,r]),mze=e=>{e.suspense&&typeof e.staleTime!="number"&&(e.staleTime=1e3)},gze=(e,t)=>(e==null?void 0:e.suspense)&&t.isPending,bze=(e,t,n)=>t.fetchOptimistic(e).catch(()=>{n.clearReset()});function sce(e,t,n){const r=OT(n),i=lze(),a=dze(),s=r.defaultQueryOptions(e);s._optimisticResults=i?"isRestoring":"optimistic",mze(s),fze(s,a),hze(a);const[o]=N.useState(()=>new t(r,s)),l=o.getOptimisticResult(s);if(N.useSyncExternalStore(N.useCallback(u=>{const c=i?()=>{}:o.subscribe(is.batchCalls(u));return o.updateResult(),c},[o,i]),()=>o.getCurrentResult(),()=>o.getCurrentResult()),N.useEffect(()=>{o.setOptions(s,{listeners:!1})},[s,o]),gze(s,l))throw bze(s,o,a);if(pze({result:l,errorResetBoundary:a,throwOnError:s.throwOnError,query:r.getQueryCache().get(s.queryHash)}))throw l.error;return s.notifyOnChangeProps?l:o.trackResult(l)}function MO(e,t){return sce(e,tce,t)}function Ep(e,t){const n=OT(t),[r]=N.useState(()=>new sze(n,e));N.useEffect(()=>{r.setOptions(e)},[r,e]);const i=N.useSyncExternalStore(N.useCallback(s=>r.subscribe(is.batchCalls(s)),[r]),()=>r.getCurrentResult(),()=>r.getCurrentResult()),a=N.useCallback((s,o)=>{r.mutate(s,o).catch(yze)},[r]);if(i.error&&ace(r.options.throwOnError,[i.error]))throw i.error;return{...i,mutate:a,mutateAsync:i.mutate}}function yze(){}function nB(e,t){return sce(e,aze,t)}const vze=()=>Ep({mutationFn:async e=>(await yr.post("/files",e)).data}),Oze=()=>Ep({mutationFn:async e=>yr.put(e.url,new Blob([e.file]),{headers:{Authorization:void 0,"Content-Type":e.file.type}})}),Sze=()=>Ep({mutationFn:async e=>{const{exportType:t,content:n,fileName:r}=e;return await yr.post("/files/export-markdown",{exportType:t,content:n,fileName:r},{responseType:"blob",headers:{Accept:"application/octet-stream"}})}}),Eze=()=>{const{enqueueSnackbar:e}=vT(),t=Qr(A0),n=Qr(JR),r=Sze(),i=N.useCallback(async l=>{var u,c,f;try{const h=((c=(u=t.doc)==null?void 0:u.getRoot().content)==null?void 0:c.toString())||"",g=((f=n.data)==null?void 0:f.title)||"codepair_document";e(`${l.toUpperCase()} file export started`,{variant:"info"});const b=await r.mutateAsync({exportType:l,content:h,fileName:g}),S=b.headers["content-disposition"],w=S==null?void 0:S.match(/filename="?(.+)"?\s*$/i),E=w?w[1]:`${g}.${l}`,x=new Blob([b.data],{type:b.headers["content-type"]}),k=window.URL.createObjectURL(x),C=document.createElement("a");C.href=k,C.setAttribute("download",E),document.body.appendChild(C),C.click(),document.body.removeChild(C),window.URL.revokeObjectURL(k),e(`${l.toUpperCase()} file exported successfully`,{variant:"success"})}catch(h){console.error("Error:",h),e(`Failed to export ${l.toUpperCase()} file`,{variant:"error"})}},[t,n,e,r]);return{handleExportToPDF:()=>i("pdf"),handleExportToHTML:()=>i("html"),handleExportToMarkdown:()=>i("markdown")}};function wze(){const[e,t]=N.useState(null),n=o=>{t(o.currentTarget)},r=()=>{t(null)},{handleExportToPDF:i,handleExportToHTML:a,handleExportToMarkdown:s}=Eze();return _.jsxs(hs,{children:[_.jsx(Vi,{"aria-controls":"download-menu","aria-haspopup":"true",onClick:n,children:_.jsx(gUe,{})}),_.jsxs(yle,{id:"download-menu",anchorEl:e,keepMounted:!0,open:!!e,onClose:r,children:[_.jsx(xu,{onClick:i,children:"Download as PDF"}),_.jsx(xu,{onClick:a,children:"Download as HTML"}),_.jsx(xu,{onClick:s,children:"Download as Markdown"})]})]})}var rB={},xze=Ji;Object.defineProperty(rB,"__esModule",{value:!0});var oce=rB.default=void 0,Tze=xze(ea()),kze=_;oce=rB.default=(0,Tze.default)((0,kze.jsx)("path",{d:"M18 16.08c-.76 0-1.44.3-1.96.77L8.91 12.7c.05-.23.09-.46.09-.7s-.04-.47-.09-.7l7.05-4.11c.54.5 1.25.81 2.04.81 1.66 0 3-1.34 3-3s-1.34-3-3-3-3 1.34-3 3c0 .24.04.47.09.7L8.04 9.81C7.5 9.31 6.79 9 6 9c-1.66 0-3 1.34-3 3s1.34 3 3 3c.79 0 1.5-.31 2.04-.81l7.12 4.16c-.05.21-.08.43-.08.65 0 1.61 1.31 2.92 2.92 2.92 1.61 0 2.92-1.31 2.92-2.92s-1.31-2.92-2.92-2.92"}),"Share");var ST=e=>e.type==="checkbox",$y=e=>e instanceof Date,jo=e=>e==null;const lce=e=>typeof e=="object";var us=e=>!jo(e)&&!Array.isArray(e)&&lce(e)&&!$y(e),uce=e=>us(e)&&e.target?ST(e.target)?e.target.checked:e.target.value:e,Cze=e=>e.substring(0,e.search(/\.\d+(\.|$)/))||e,cce=(e,t)=>e.has(Cze(t)),Aze=e=>{const t=e.constructor&&e.constructor.prototype;return us(t)&&t.hasOwnProperty("isPrototypeOf")},iB=typeof window<"u"&&typeof window.HTMLElement<"u"&&typeof document<"u";function fl(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(!(iB&&(e instanceof Blob||e instanceof FileList))&&(n||us(e)))if(t=n?[]:{},!n&&!Aze(e))t=e;else for(const r in e)e.hasOwnProperty(r)&&(t[r]=fl(e[r]));else return e;return t}var ET=e=>Array.isArray(e)?e.filter(Boolean):[],wa=e=>e===void 0,ln=(e,t,n)=>{if(!t||!us(e))return n;const r=ET(t.split(/[,[\].]+?/)).reduce((i,a)=>jo(i)?i:i[a],e);return wa(r)||r===e?wa(e[t])?n:e[t]:r},ld=e=>typeof e=="boolean";const g3={BLUR:"blur",FOCUS_OUT:"focusout",CHANGE:"change"},pd={onBlur:"onBlur",onChange:"onChange",onSubmit:"onSubmit",onTouched:"onTouched",all:"all"},Ch={max:"max",min:"min",maxLength:"maxLength",minLength:"minLength",pattern:"pattern",required:"required",validate:"validate"},dce=hn.createContext(null),aB=()=>hn.useContext(dce),fce=e=>{const{children:t,...n}=e;return hn.createElement(dce.Provider,{value:n},t)};var hce=(e,t,n,r=!0)=>{const i={defaultValues:t._defaultValues};for(const a in e)Object.defineProperty(i,a,{get:()=>{const s=a;return t._proxyFormState[s]!==pd.all&&(t._proxyFormState[s]=!r||pd.all),n&&(n[s]=!0),e[s]}});return i},ac=e=>us(e)&&!Object.keys(e).length,pce=(e,t,n,r)=>{n(e);const{name:i,...a}=e;return ac(a)||Object.keys(a).length>=Object.keys(t).length||Object.keys(a).find(s=>t[s]===(!r||pd.all))},L4=e=>Array.isArray(e)?e:[e],mce=(e,t,n)=>!e||!t||e===t||L4(e).some(r=>r&&(n?r===t:r.startsWith(t)||t.startsWith(r)));function sB(e){const t=hn.useRef(e);t.current=e,hn.useEffect(()=>{const n=!e.disabled&&t.current.subject&&t.current.subject.subscribe({next:t.current.next});return()=>{n&&n.unsubscribe()}},[e.disabled])}function _ze(e){const t=aB(),{control:n=t.control,disabled:r,name:i,exact:a}=e||{},[s,o]=hn.useState(n._formState),l=hn.useRef(!0),u=hn.useRef({isDirty:!1,isLoading:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1}),c=hn.useRef(i);return c.current=i,sB({disabled:r,next:f=>l.current&&mce(c.current,f.name,a)&&pce(f,u.current,n._updateFormState)&&o({...n._formState,...f}),subject:n._subjects.state}),hn.useEffect(()=>(l.current=!0,u.current.isValid&&n._updateValid(!0),()=>{l.current=!1}),[n]),hce(s,n,u.current,!1)}var kf=e=>typeof e=="string",gce=(e,t,n,r,i)=>kf(e)?(r&&t.watch.add(e),ln(n,e,i)):Array.isArray(e)?e.map(a=>(r&&t.watch.add(a),ln(n,a))):(r&&(t.watchAll=!0),n);function bce(e){const t=aB(),{control:n=t.control,name:r,defaultValue:i,disabled:a,exact:s}=e||{},o=hn.useRef(r);o.current=r,sB({disabled:a,subject:n._subjects.values,next:c=>{mce(o.current,c.name,s)&&u(fl(gce(o.current,n._names,c.values||n._formValues,!1,i)))}});const[l,u]=hn.useState(n._getWatch(r,i));return hn.useEffect(()=>n._removeUnmounted()),l}var oB=e=>/^\w*$/.test(e),yce=e=>ET(e.replace(/["|']|\]/g,"").split(/\.|\[/)),ki=(e,t,n)=>{let r=-1;const i=oB(t)?[t]:yce(t),a=i.length,s=a-1;for(;++r{const c=i._options.shouldUnregister||a,f=(h,g)=>{const b=ln(i._fields,h);b&&(b._f.mount=g)};if(f(n,!0),c){const h=fl(ln(i._options.defaultValues,n));ki(i._defaultValues,n,h),wa(ln(i._formValues,n))&&ki(i._formValues,n,h)}return()=>{(s?c&&!i._state.action:c)?i.unregister(n):f(n,!1)}},[n,i,s,a]),hn.useEffect(()=>{ln(i._fields,n)&&i._updateDisabledField({disabled:r,fields:i._fields,name:n,value:ln(i._fields,n)._f.value})},[r,n,i]),{field:{name:n,value:o,...ld(r)||l.disabled?{disabled:l.disabled||r}:{},onChange:hn.useCallback(c=>u.current.onChange({target:{value:uce(c),name:n},type:g3.CHANGE}),[n]),onBlur:hn.useCallback(()=>u.current.onBlur({target:{value:ln(i._formValues,n),name:n},type:g3.BLUR}),[n,i]),ref:c=>{const f=ln(i._fields,n);f&&c&&(f._f.ref={focus:()=>c.focus(),select:()=>c.select(),setCustomValidity:h=>c.setCustomValidity(h),reportValidity:()=>c.reportValidity()})}},formState:l,fieldState:Object.defineProperties({},{invalid:{enumerable:!0,get:()=>!!ln(l.errors,n)},isDirty:{enumerable:!0,get:()=>!!ln(l.dirtyFields,n)},isTouched:{enumerable:!0,get:()=>!!ln(l.touchedFields,n)},error:{enumerable:!0,get:()=>ln(l.errors,n)}})}}var Rze=(e,t,n,r,i)=>t?{...n[e],types:{...n[e]&&n[e].types?n[e].types:{},[r]:i||!0}}:{},WX=e=>({isOnSubmit:!e||e===pd.onSubmit,isOnBlur:e===pd.onBlur,isOnChange:e===pd.onChange,isOnAll:e===pd.all,isOnTouch:e===pd.onTouched}),QX=(e,t,n)=>!n&&(t.watchAll||t.watch.has(e)||[...t.watch].some(r=>e.startsWith(r)&&/^\.\w+/.test(e.slice(r.length))));const U2=(e,t,n,r)=>{for(const i of n||Object.keys(e)){const a=ln(e,i);if(a){const{_f:s,...o}=a;if(s){if(s.refs&&s.refs[0]&&t(s.refs[0],i)&&!r)break;if(s.ref&&t(s.ref,s.name)&&!r)break;U2(o,t)}else us(o)&&U2(o,t)}}};var Ize=(e,t,n)=>{const r=ET(ln(e,n));return ki(r,"root",t[n]),ki(e,n,r),e},lB=e=>e.type==="file",Im=e=>typeof e=="function",b3=e=>{if(!iB)return!1;const t=e?e.ownerDocument:0;return e instanceof(t&&t.defaultView?t.defaultView.HTMLElement:HTMLElement)},$4=e=>kf(e),uB=e=>e.type==="radio",y3=e=>e instanceof RegExp;const qX={value:!1,isValid:!1},GX={value:!0,isValid:!0};var vce=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&&!wa(e[0].attributes.value)?wa(e[0].value)||e[0].value===""?GX:{value:e[0].value,isValid:!0}:GX:qX}return qX};const YX={isValid:!1,value:null};var Oce=e=>Array.isArray(e)?e.reduce((t,n)=>n&&n.checked&&!n.disabled?{isValid:!0,value:n.value}:t,YX):YX;function ZX(e,t,n="validate"){if($4(e)||Array.isArray(e)&&e.every($4)||ld(e)&&!e)return{type:n,message:$4(e)?e:"",ref:t}}var Kb=e=>us(e)&&!y3(e)?e:{value:e,message:""},XX=async(e,t,n,r,i)=>{const{ref:a,refs:s,required:o,maxLength:l,minLength:u,min:c,max:f,pattern:h,validate:g,name:b,valueAsNumber:S,mount:w,disabled:E}=e._f,x=ln(t,b);if(!w||E)return{};const k=s?s[0]:a,C=V=>{r&&k.reportValidity&&(k.setCustomValidity(ld(V)?"":V||""),k.reportValidity())},I={},A=uB(a),D=ST(a),B=A||D,L=(S||lB(a))&&wa(a.value)&&wa(x)||b3(a)&&a.value===""||x===""||Array.isArray(x)&&!x.length,F=Rze.bind(null,b,n,I),W=(V,Z,Q,H=Ch.maxLength,J=Ch.minLength)=>{const K=V?Z:Q;I[b]={type:V?H:J,message:K,ref:a,...F(V?H:J,K)}};if(i?!Array.isArray(x)||!x.length:o&&(!B&&(L||jo(x))||ld(x)&&!x||D&&!vce(s).isValid||A&&!Oce(s).isValid)){const{value:V,message:Z}=$4(o)?{value:!!o,message:o}:Kb(o);if(V&&(I[b]={type:Ch.required,message:Z,ref:k,...F(Ch.required,Z)},!n))return C(Z),I}if(!L&&(!jo(c)||!jo(f))){let V,Z;const Q=Kb(f),H=Kb(c);if(!jo(x)&&!isNaN(x)){const J=a.valueAsNumber||x&&+x;jo(Q.value)||(V=J>Q.value),jo(H.value)||(Z=Jnew Date(new Date().toDateString()+" "+z),X=a.type=="time",te=a.type=="week";kf(Q.value)&&x&&(V=X?K(x)>K(Q.value):te?x>Q.value:J>new Date(Q.value)),kf(H.value)&&x&&(Z=X?K(x)+V.value,H=!jo(Z.value)&&x.length<+Z.value;if((Q||H)&&(W(Q,V.message,Z.message),!n))return C(I[b].message),I}if(h&&!L&&kf(x)){const{value:V,message:Z}=Kb(h);if(y3(V)&&!x.match(V)&&(I[b]={type:Ch.pattern,message:Z,ref:a,...F(Ch.pattern,Z)},!n))return C(Z),I}if(g){if(Im(g)){const V=await g(x,t),Z=ZX(V,k);if(Z&&(I[b]={...Z,...F(Ch.validate,Z.message)},!n))return C(Z.message),I}else if(us(g)){let V={};for(const Z in g){if(!ac(V)&&!n)break;const Q=ZX(await g[Z](x,t),k,Z);Q&&(V={...Q,...F(Z,Q.message)},C(Q.message),n&&(I[b]=V))}if(!ac(V)&&(I[b]={ref:k,...V},!n))return I}}return C(!0),I};function Dze(e,t){const n=t.slice(0,-1).length;let r=0;for(;r{let e=[];return{get observers(){return e},next:i=>{for(const a of e)a.next&&a.next(i)},subscribe:i=>(e.push(i),{unsubscribe:()=>{e=e.filter(a=>a!==i)}}),unsubscribe:()=>{e=[]}}},v3=e=>jo(e)||!lce(e);function Fg(e,t){if(v3(e)||v3(t))return e===t;if($y(e)&&$y(t))return e.getTime()===t.getTime();const n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(const i of n){const a=e[i];if(!r.includes(i))return!1;if(i!=="ref"){const s=t[i];if($y(a)&&$y(s)||us(a)&&us(s)||Array.isArray(a)&&Array.isArray(s)?!Fg(a,s):a!==s)return!1}}return!0}var Sce=e=>e.type==="select-multiple",Pze=e=>uB(e)||ST(e),QN=e=>b3(e)&&e.isConnected,Ece=e=>{for(const t in e)if(Im(e[t]))return!0;return!1};function O3(e,t={}){const n=Array.isArray(e);if(us(e)||n)for(const r in e)Array.isArray(e[r])||us(e[r])&&!Ece(e[r])?(t[r]=Array.isArray(e[r])?[]:{},O3(e[r],t[r])):jo(e[r])||(t[r]=!0);return t}function wce(e,t,n){const r=Array.isArray(e);if(us(e)||r)for(const i in e)Array.isArray(e[i])||us(e[i])&&!Ece(e[i])?wa(t)||v3(n[i])?n[i]=Array.isArray(e[i])?O3(e[i],[]):{...O3(e[i])}:wce(e[i],jo(t)?{}:t[i],n[i]):n[i]=!Fg(e[i],t[i]);return n}var aA=(e,t)=>wce(e,t,O3(t)),xce=(e,{valueAsNumber:t,valueAsDate:n,setValueAs:r})=>wa(e)?e:t?e===""?NaN:e&&+e:n&&kf(e)?new Date(e):r?r(e):e;function qN(e){const t=e.ref;if(!(e.refs?e.refs.every(n=>n.disabled):t.disabled))return lB(t)?t.files:uB(t)?Oce(e.refs).value:Sce(t)?[...t.selectedOptions].map(({value:n})=>n):ST(t)?vce(e.refs).value:xce(wa(t.value)?e.ref.value:t.value,e)}var Mze=(e,t,n,r)=>{const i={};for(const a of e){const s=ln(t,a);s&&ki(i,a,s._f)}return{criteriaMode:n,names:[...e],fields:i,shouldUseNativeValidation:r}},_E=e=>wa(e)?e:y3(e)?e.source:us(e)?y3(e.value)?e.value.source:e.value:e,Lze=e=>e.mount&&(e.required||e.min||e.max||e.maxLength||e.minLength||e.pattern||e.validate);function KX(e,t,n){const r=ln(e,n);if(r||oB(n))return{error:r,name:n};const i=n.split(".");for(;i.length;){const a=i.join("."),s=ln(t,a),o=ln(e,a);if(s&&!Array.isArray(s)&&n!==a)return{name:n};if(o&&o.type)return{name:a,error:o};i.pop()}return{name:n}}var $ze=(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,Fze=(e,t)=>!ET(ln(e,t)).length&&Fs(e,t);const Bze={mode:pd.onSubmit,reValidateMode:pd.onChange,shouldFocusError:!0};function Uze(e={},t){let n={...Bze,...e},r={submitCount:0,isDirty:!1,isLoading:Im(n.defaultValues),isValidating:!1,isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,touchedFields:{},dirtyFields:{},errors:n.errors||{},disabled:n.disabled||!1},i={},a=us(n.values)||us(n.defaultValues)?fl(n.values||n.defaultValues)||{}:{},s=n.shouldUnregister?{}:fl(a),o={action:!1,mount:!1,watch:!1},l={mount:new Set,unMount:new Set,array:new Set,watch:new Set},u,c=0;const f={isDirty:!1,dirtyFields:!1,touchedFields:!1,isValidating:!1,isValid:!1,errors:!1},h={values:WN(),array:WN(),state:WN()},g=WX(n.mode),b=WX(n.reValidateMode),S=n.criteriaMode===pd.all,w=pe=>le=>{clearTimeout(c),c=setTimeout(pe,le)},E=async pe=>{if(f.isValid||pe){const le=n.resolver?ac((await L()).errors):await W(i,!0);le!==r.isValid&&h.state.next({isValid:le})}},x=pe=>f.isValidating&&h.state.next({isValidating:pe}),k=(pe,le=[],he,je,Ze=!0,We=!0)=>{if(je&&he){if(o.action=!0,We&&Array.isArray(ln(i,pe))){const fe=he(ln(i,pe),je.argA,je.argB);Ze&&ki(i,pe,fe)}if(We&&Array.isArray(ln(r.errors,pe))){const fe=he(ln(r.errors,pe),je.argA,je.argB);Ze&&ki(r.errors,pe,fe),Fze(r.errors,pe)}if(f.touchedFields&&We&&Array.isArray(ln(r.touchedFields,pe))){const fe=he(ln(r.touchedFields,pe),je.argA,je.argB);Ze&&ki(r.touchedFields,pe,fe)}f.dirtyFields&&(r.dirtyFields=aA(a,s)),h.state.next({name:pe,isDirty:Z(pe,le),dirtyFields:r.dirtyFields,errors:r.errors,isValid:r.isValid})}else ki(s,pe,le)},C=(pe,le)=>{ki(r.errors,pe,le),h.state.next({errors:r.errors})},I=pe=>{r.errors=pe,h.state.next({errors:r.errors,isValid:!1})},A=(pe,le,he,je)=>{const Ze=ln(i,pe);if(Ze){const We=ln(s,pe,wa(he)?ln(a,pe):he);wa(We)||je&&je.defaultChecked||le?ki(s,pe,le?We:qN(Ze._f)):J(pe,We),o.mount&&E()}},D=(pe,le,he,je,Ze)=>{let We=!1,fe=!1;const xe={name:pe},ve=!!(ln(i,pe)&&ln(i,pe)._f.disabled);if(!he||je){f.isDirty&&(fe=r.isDirty,r.isDirty=xe.isDirty=Z(),We=fe!==xe.isDirty);const De=ve||Fg(ln(a,pe),le);fe=!!(!ve&&ln(r.dirtyFields,pe)),De||ve?Fs(r.dirtyFields,pe):ki(r.dirtyFields,pe,!0),xe.dirtyFields=r.dirtyFields,We=We||f.dirtyFields&&fe!==!De}if(he){const De=ln(r.touchedFields,pe);De||(ki(r.touchedFields,pe,he),xe.touchedFields=r.touchedFields,We=We||f.touchedFields&&De!==he)}return We&&Ze&&h.state.next(xe),We?xe:{}},B=(pe,le,he,je)=>{const Ze=ln(r.errors,pe),We=f.isValid&&ld(le)&&r.isValid!==le;if(e.delayError&&he?(u=w(()=>C(pe,he)),u(e.delayError)):(clearTimeout(c),u=null,he?ki(r.errors,pe,he):Fs(r.errors,pe)),(he?!Fg(Ze,he):Ze)||!ac(je)||We){const fe={...je,...We&&ld(le)?{isValid:le}:{},errors:r.errors,name:pe};r={...r,...fe},h.state.next(fe)}x(!1)},L=async pe=>n.resolver(s,n.context,Mze(pe||l.mount,i,n.criteriaMode,n.shouldUseNativeValidation)),F=async pe=>{const{errors:le}=await L(pe);if(pe)for(const he of pe){const je=ln(le,he);je?ki(r.errors,he,je):Fs(r.errors,he)}else r.errors=le;return le},W=async(pe,le,he={valid:!0})=>{for(const je in pe){const Ze=pe[je];if(Ze){const{_f:We,...fe}=Ze;if(We){const xe=l.array.has(We.name),ve=await XX(Ze,s,S,n.shouldUseNativeValidation&&!le,xe);if(ve[We.name]&&(he.valid=!1,le))break;!le&&(ln(ve,We.name)?xe?Ize(r.errors,ve,We.name):ki(r.errors,We.name,ve[We.name]):Fs(r.errors,We.name))}fe&&await W(fe,le,he)}}return he.valid},V=()=>{for(const pe of l.unMount){const le=ln(i,pe);le&&(le._f.refs?le._f.refs.every(he=>!QN(he)):!QN(le._f.ref))&&_e(pe)}l.unMount=new Set},Z=(pe,le)=>(pe&&le&&ki(s,pe,le),!Fg(be(),a)),Q=(pe,le,he)=>gce(pe,l,{...o.mount?s:wa(le)?a:kf(pe)?{[pe]:le}:le},he,le),H=pe=>ET(ln(o.mount?s:a,pe,e.shouldUnregister?ln(a,pe,[]):[])),J=(pe,le,he={})=>{const je=ln(i,pe);let Ze=le;if(je){const We=je._f;We&&(!We.disabled&&ki(s,pe,xce(le,We)),Ze=b3(We.ref)&&jo(le)?"":le,Sce(We.ref)?[...We.ref.options].forEach(fe=>fe.selected=Ze.includes(fe.value)):We.refs?ST(We.ref)?We.refs.length>1?We.refs.forEach(fe=>(!fe.defaultChecked||!fe.disabled)&&(fe.checked=Array.isArray(Ze)?!!Ze.find(xe=>xe===fe.value):Ze===fe.value)):We.refs[0]&&(We.refs[0].checked=!!Ze):We.refs.forEach(fe=>fe.checked=fe.value===Ze):lB(We.ref)?We.ref.value="":(We.ref.value=Ze,We.ref.type||h.values.next({name:pe,values:{...s}})))}(he.shouldDirty||he.shouldTouch)&&D(pe,Ze,he.shouldTouch,he.shouldDirty,!0),he.shouldValidate&&Te(pe)},K=(pe,le,he)=>{for(const je in le){const Ze=le[je],We=`${pe}.${je}`,fe=ln(i,We);(l.array.has(pe)||!v3(Ze)||fe&&!fe._f)&&!$y(Ze)?K(We,Ze,he):J(We,Ze,he)}},X=(pe,le,he={})=>{const je=ln(i,pe),Ze=l.array.has(pe),We=fl(le);ki(s,pe,We),Ze?(h.array.next({name:pe,values:{...s}}),(f.isDirty||f.dirtyFields)&&he.shouldDirty&&h.state.next({name:pe,dirtyFields:aA(a,s),isDirty:Z(pe,We)})):je&&!je._f&&!jo(We)?K(pe,We,he):J(pe,We,he),QX(pe,l)&&h.state.next({...r}),h.values.next({name:pe,values:{...s}}),!o.mount&&t()},te=async pe=>{const le=pe.target;let he=le.name,je=!0;const Ze=ln(i,he),We=()=>le.type?qN(Ze._f):uce(pe),fe=xe=>{je=Number.isNaN(xe)||xe===ln(s,he,xe)};if(Ze){let xe,ve;const De=We(),$e=pe.type===g3.BLUR||pe.type===g3.FOCUS_OUT,Ot=!Lze(Ze._f)&&!n.resolver&&!ln(r.errors,he)&&!Ze._f.deps||$ze($e,ln(r.touchedFields,he),r.isSubmitted,b,g),Wt=QX(he,l,$e);ki(s,he,De),$e?(Ze._f.onBlur&&Ze._f.onBlur(pe),u&&u(0)):Ze._f.onChange&&Ze._f.onChange(pe);const Kt=D(he,De,$e,!1),gt=!ac(Kt)||Wt;if(!$e&&h.values.next({name:he,type:pe.type,values:{...s}}),Ot)return f.isValid&&E(),gt&&h.state.next({name:he,...Wt?{}:Kt});if(!$e&&Wt&&h.state.next({...r}),x(!0),n.resolver){const{errors:Gt}=await L([he]);if(fe(De),je){const ut=KX(r.errors,i,he),wt=KX(Gt,i,ut.name||he);xe=wt.error,he=wt.name,ve=ac(Gt)}}else xe=(await XX(Ze,s,S,n.shouldUseNativeValidation))[he],fe(De),je&&(xe?ve=!1:f.isValid&&(ve=await W(i,!0)));je&&(Ze._f.deps&&Te(Ze._f.deps),B(he,ve,xe,Kt))}},z=(pe,le)=>{if(ln(r.errors,le)&&pe.focus)return pe.focus(),1},Te=async(pe,le={})=>{let he,je;const Ze=L4(pe);if(x(!0),n.resolver){const We=await F(wa(pe)?pe:Ze);he=ac(We),je=pe?!Ze.some(fe=>ln(We,fe)):he}else pe?(je=(await Promise.all(Ze.map(async We=>{const fe=ln(i,We);return await W(fe&&fe._f?{[We]:fe}:fe)}))).every(Boolean),!(!je&&!r.isValid)&&E()):je=he=await W(i);return h.state.next({...!kf(pe)||f.isValid&&he!==r.isValid?{}:{name:pe},...n.resolver||!pe?{isValid:he}:{},errors:r.errors,isValidating:!1}),le.shouldFocus&&!je&&U2(i,z,pe?Ze:l.mount),je},be=pe=>{const le={...a,...o.mount?s:{}};return wa(pe)?le:kf(pe)?ln(le,pe):pe.map(he=>ln(le,he))},ee=(pe,le)=>({invalid:!!ln((le||r).errors,pe),isDirty:!!ln((le||r).dirtyFields,pe),isTouched:!!ln((le||r).touchedFields,pe),error:ln((le||r).errors,pe)}),ye=pe=>{pe&&L4(pe).forEach(le=>Fs(r.errors,le)),h.state.next({errors:pe?r.errors:{}})},Oe=(pe,le,he)=>{const je=(ln(i,pe,{_f:{}})._f||{}).ref;ki(r.errors,pe,{...le,ref:je}),h.state.next({name:pe,errors:r.errors,isValid:!1}),he&&he.shouldFocus&&je&&je.focus&&je.focus()},ie=(pe,le)=>Im(pe)?h.values.subscribe({next:he=>pe(Q(void 0,le),he)}):Q(pe,le,!0),_e=(pe,le={})=>{for(const he of pe?L4(pe):l.mount)l.mount.delete(he),l.array.delete(he),le.keepValue||(Fs(i,he),Fs(s,he)),!le.keepError&&Fs(r.errors,he),!le.keepDirty&&Fs(r.dirtyFields,he),!le.keepTouched&&Fs(r.touchedFields,he),!n.shouldUnregister&&!le.keepDefaultValue&&Fs(a,he);h.values.next({values:{...s}}),h.state.next({...r,...le.keepDirty?{isDirty:Z()}:{}}),!le.keepIsValid&&E()},Ie=({disabled:pe,name:le,field:he,fields:je,value:Ze})=>{if(ld(pe)){const We=pe?void 0:wa(Ze)?qN(he?he._f:ln(je,le)._f):Ze;ki(s,le,We),D(le,We,!1,!1,!0)}},qe=(pe,le={})=>{let he=ln(i,pe);const je=ld(le.disabled);return ki(i,pe,{...he||{},_f:{...he&&he._f?he._f:{ref:{name:pe}},name:pe,mount:!0,...le}}),l.mount.add(pe),he?Ie({field:he,disabled:le.disabled,name:pe,value:le.value}):A(pe,!0,le.value),{...je?{disabled:le.disabled}:{},...n.progressive?{required:!!le.required,min:_E(le.min),max:_E(le.max),minLength:_E(le.minLength),maxLength:_E(le.maxLength),pattern:_E(le.pattern)}:{},name:pe,onChange:te,onBlur:te,ref:Ze=>{if(Ze){qe(pe,le),he=ln(i,pe);const We=wa(Ze.value)&&Ze.querySelectorAll&&Ze.querySelectorAll("input,select,textarea")[0]||Ze,fe=Pze(We),xe=he._f.refs||[];if(fe?xe.find(ve=>ve===We):We===he._f.ref)return;ki(i,pe,{_f:{...he._f,...fe?{refs:[...xe.filter(QN),We,...Array.isArray(ln(a,pe))?[{}]:[]],ref:{type:We.type,name:pe}}:{ref:We}}}),A(pe,!1,void 0,We)}else he=ln(i,pe,{}),he._f&&(he._f.mount=!1),(n.shouldUnregister||le.shouldUnregister)&&!(cce(l.array,pe)&&o.action)&&l.unMount.add(pe)}}},st=()=>n.shouldFocusError&&U2(i,z,l.mount),Pe=pe=>{ld(pe)&&(h.state.next({disabled:pe}),U2(i,(le,he)=>{let je=pe;const Ze=ln(i,he);Ze&&ld(Ze._f.disabled)&&(je||(je=Ze._f.disabled)),le.disabled=je},0,!1))},tt=(pe,le)=>async he=>{let je;he&&(he.preventDefault&&he.preventDefault(),he.persist&&he.persist());let Ze=fl(s);if(h.state.next({isSubmitting:!0}),n.resolver){const{errors:We,values:fe}=await L();r.errors=We,Ze=fe}else await W(i);if(Fs(r.errors,"root"),ac(r.errors)){h.state.next({errors:{}});try{await pe(Ze,he)}catch(We){je=We}}else le&&await le({...r.errors},he),st(),setTimeout(st);if(h.state.next({isSubmitted:!0,isSubmitting:!1,isSubmitSuccessful:ac(r.errors)&&!je,submitCount:r.submitCount+1,errors:r.errors}),je)throw je},Ve=(pe,le={})=>{ln(i,pe)&&(wa(le.defaultValue)?X(pe,fl(ln(a,pe))):(X(pe,le.defaultValue),ki(a,pe,fl(le.defaultValue))),le.keepTouched||Fs(r.touchedFields,pe),le.keepDirty||(Fs(r.dirtyFields,pe),r.isDirty=le.defaultValue?Z(pe,fl(ln(a,pe))):Z()),le.keepError||(Fs(r.errors,pe),f.isValid&&E()),h.state.next({...r}))},Xe=(pe,le={})=>{const he=pe?fl(pe):a,je=fl(he),Ze=pe&&!ac(pe)?je:a;if(le.keepDefaultValues||(a=he),!le.keepValues){if(le.keepDirtyValues)for(const We of l.mount)ln(r.dirtyFields,We)?ki(Ze,We,ln(s,We)):X(We,ln(Ze,We));else{if(iB&&wa(pe))for(const We of l.mount){const fe=ln(i,We);if(fe&&fe._f){const xe=Array.isArray(fe._f.refs)?fe._f.refs[0]:fe._f.ref;if(b3(xe)){const ve=xe.closest("form");if(ve){ve.reset();break}}}}i={}}s=e.shouldUnregister?le.keepDefaultValues?fl(a):{}:fl(Ze),h.array.next({values:{...Ze}}),h.values.next({values:{...Ze}})}l={mount:new Set,unMount:new Set,array:new Set,watch:new Set,watchAll:!1,focus:""},!o.mount&&t(),o.mount=!f.isValid||!!le.keepIsValid||!!le.keepDirtyValues,o.watch=!!e.shouldUnregister,h.state.next({submitCount:le.keepSubmitCount?r.submitCount:0,isDirty:le.keepDirty?r.isDirty:!!(le.keepDefaultValues&&!Fg(pe,a)),isSubmitted:le.keepIsSubmitted?r.isSubmitted:!1,dirtyFields:le.keepDirtyValues?le.keepDefaultValues&&s?aA(a,s):r.dirtyFields:le.keepDefaultValues&&pe?aA(a,pe):{},touchedFields:le.keepTouched?r.touchedFields:{},errors:le.keepErrors?r.errors:{},isSubmitSuccessful:le.keepIsSubmitSuccessful?r.isSubmitSuccessful:!1,isSubmitting:!1})},et=(pe,le)=>Xe(Im(pe)?pe(s):pe,le);return{control:{register:qe,unregister:_e,getFieldState:ee,handleSubmit:tt,setError:Oe,_executeSchema:L,_getWatch:Q,_getDirty:Z,_updateValid:E,_removeUnmounted:V,_updateFieldArray:k,_updateDisabledField:Ie,_getFieldArray:H,_reset:Xe,_resetDefaultValues:()=>Im(n.defaultValues)&&n.defaultValues().then(pe=>{et(pe,n.resetOptions),h.state.next({isLoading:!1})}),_updateFormState:pe=>{r={...r,...pe}},_disableForm:Pe,_subjects:h,_proxyFormState:f,_setErrors:I,get _fields(){return i},get _formValues(){return s},get _state(){return o},set _state(pe){o=pe},get _defaultValues(){return a},get _names(){return l},set _names(pe){l=pe},get _formState(){return r},set _formState(pe){r=pe},get _options(){return n},set _options(pe){n={...n,...pe}}},trigger:Te,register:qe,handleSubmit:tt,watch:ie,setValue:X,getValues:be,reset:et,resetField:Ve,clearErrors:ye,unregister:_e,setError:Oe,setFocus:(pe,le={})=>{const he=ln(i,pe),je=he&&he._f;if(je){const Ze=je.refs?je.refs[0]:je.ref;Ze.focus&&(Ze.focus(),le.shouldSelect&&Ze.select())}},getFieldState:ee}}function Tce(e={}){const t=hn.useRef(),n=hn.useRef(),[r,i]=hn.useState({isDirty:!1,isValidating:!1,isLoading:Im(e.defaultValues),isSubmitted:!1,isSubmitting:!1,isSubmitSuccessful:!1,isValid:!1,submitCount:0,dirtyFields:{},touchedFields:{},errors:e.errors||{},disabled:e.disabled||!1,defaultValues:Im(e.defaultValues)?void 0:e.defaultValues});t.current||(t.current={...Uze(e,()=>i(s=>({...s}))),formState:r});const a=t.current.control;return a._options=e,sB({subject:a._subjects.state,next:s=>{pce(s,a._proxyFormState,a._updateFormState,!0)&&i({...a._formState})}}),hn.useEffect(()=>a._disableForm(e.disabled),[a,e.disabled]),hn.useEffect(()=>{if(a._proxyFormState.isDirty){const s=a._getDirty();s!==r.isDirty&&a._subjects.state.next({isDirty:s})}},[a,r.isDirty]),hn.useEffect(()=>{e.values&&!Fg(e.values,n.current)?(a._reset(e.values,a._options.resetOptions),n.current=e.values,i(s=>({...s}))):a._resetDefaultValues()},[e.values,a]),hn.useEffect(()=>{e.errors&&a._setErrors(e.errors)},[e.errors,a]),hn.useEffect(()=>{a._state.mount||(a._updateValid(),a._state.mount=!0),a._state.watch&&(a._state.watch=!1,a._subjects.state.next({...a._formState})),a._removeUnmounted()}),hn.useEffect(()=>{e.shouldUnregister&&a._subjects.values.next({values:a._getWatch()})},[e.shouldUnregister,a]),t.current.formState=hce(r,a),t.current}const Sf=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),cB=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const i=n??r;let a;if(e!=null)a=e;else if(i.includes(t))a=t;else if(i.length>0)a=i[0];else throw new Error("MUI: The `views` prop must contain at least one view");return{views:i,openTo:a}},z2=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:i,isDateDisabled:a,utils:s,timezone:o})=>{const l=s.startOfDay(s.dateWithTimezone(void 0,o));n&&s.isBefore(i,l)&&(i=l),t&&s.isAfter(r,l)&&(r=l);let u=e,c=e;for(s.isBefore(e,i)&&(u=i,c=null),s.isAfter(e,r)&&(c&&(c=r),u=null);u||c;){if(u&&s.isAfter(u,r)&&(u=null),c&&s.isBefore(c,i)&&(c=null),u){if(!a(u))return u;u=s.addDays(u,1)}if(c){if(!a(c))return c;c=s.addDays(c,-1)}}return null},zze=(e,t)=>t==null||!e.isValid(t)?null:t,Eo=(e,t,n)=>t==null||!e.isValid(t)?n:t,jze=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),dB=(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},mM=(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},fB=(e,t,n)=>n==="date"?e.startOfDay(e.dateWithTimezone(void 0,t)):e.dateWithTimezone(void 0,t),gd=(e,t)=>{const n=e.setHours(e.date(),t==="am"?2:14);return e.format(n,"meridiem")},Hze=["year","month","day"],rv=e=>Hze.includes(e),qw=(e,{format:t,views:n},r)=>{if(t!=null)return t;const i=e.formats;return Sf(n,["year"])?i.year:Sf(n,["month"])?i.month:Sf(n,["day"])?i.dayOfMonth:Sf(n,["month","year"])?`${i.month} ${i.year}`:Sf(n,["day","month"])?`${i.month} ${i.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?i.normalDateWithWeekday:i.normalDate:i.keyboardDate},Vze=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},kce=["hours","minutes","seconds"],rO=e=>kce.includes(e),am=e=>kce.includes(e)||e==="meridiem",Wze=(e,t)=>e?t.getHours(e)>=12?"pm":"am":null,Gw=(e,t,n)=>n&&(e>=12?"pm":"am")!==t?t==="am"?e-12:e+12:e,Qze=(e,t,n,r)=>{const i=Gw(r.getHours(e),t,n);return r.setHours(e,i)},JX=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),wT=(e,t)=>(n,r)=>e?t.isAfter(n,r):JX(n,t)>JX(r,t),S3=(e,{format:t,views:n,ampm:r})=>{if(t!=null)return t;const i=e.formats;return Sf(n,["hours"])?r?`${i.hours12h} ${i.meridiem}`:i.hours24h:Sf(n,["minutes"])?i.minutes:Sf(n,["seconds"])?i.seconds:Sf(n,["minutes","seconds"])?`${i.minutes}:${i.seconds}`:Sf(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}`},ud={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},qze=e=>Math.max(...e.map(t=>{var n;return(n=ud[t.type])!=null?n:1})),RE=(e,t,n)=>{if(t===ud.year)return e.startOfYear(n);if(t===ud.month)return e.startOfMonth(n);if(t===ud.day)return e.startOfDay(n);let r=n;return t{var a;let s=i?i():RE(t,n,fB(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,s)&&(s=RE(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,s)&&(s=RE(t,n,e.maxDate));const o=wT((a=e.disableIgnoringDatePartForTimeValidation)!=null?a:!1,t);return e.minTime!=null&&o(e.minTime,s)&&(s=RE(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:mM(t,s,e.minTime))),e.maxTime!=null&&o(s,e.maxTime)&&(s=RE(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:mM(t,s,e.maxTime))),s},Cce=(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}},Yze=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},tI=(e,t,n)=>{const r=[],i=e.dateWithTimezone(void 0,t),a=e.startOfWeek(i),s=e.endOfWeek(i);let o=a;for(;e.isBefore(o,s);)r.push(o),o=e.addDays(o,1);return r.map(l=>e.formatByString(l,n))},Ace=(e,t,n,r)=>{switch(n){case"month":return dB(e,e.dateWithTimezone(void 0,t)).map(i=>e.formatByString(i,r));case"weekDay":return tI(e,t,r);case"meridiem":{const i=e.dateWithTimezone(void 0,t);return[e.startOfDay(i),e.endOfDay(i)].map(a=>e.formatByString(a,r))}default:return[]}},_ce=(e,t,n)=>{let r=t;for(r=Number(r).toString();r.length{if(i.type==="day"&&i.contentType==="digit-with-letter"){const s=e.setDate(r.longestMonth,n);return e.formatByString(s,i.format)}const a=n.toString();return i.hasLeadingZerosInInput?_ce(e,a,i.maxLength):a},Zze=(e,t,n,r,i,a,s)=>{const o=Yze(r),l=r==="Home",u=r==="End",c=n.value===""||l||u,f=()=>{const g=i[n.type]({currentDate:a,format:n.format,contentType:n.contentType}),b=x=>Rce(e,t,x,g,n),S=n.type==="minutes"&&s!=null&&s.minutesStep?s.minutesStep:1;let E=parseInt(n.value,10)+o*S;if(c){if(n.type==="year"&&!u&&!l)return e.formatByString(e.dateWithTimezone(void 0,t),n.format);o>0||l?E=g.minimum:E=g.maximum}return E%S!==0&&((o<0||l)&&(E+=S-(S+E)%S),(o>0||u)&&(E-=E%S)),E>g.maximum?b(g.minimum+(E-g.maximum-1)%(g.maximum-g.minimum+1)):E{const g=Ace(e,t,n.type,n.format);if(g.length===0)return n.value;if(c)return o>0||l?g[0]:g[g.length-1];const S=(g.indexOf(n.value)+g.length+o)%g.length;return g[S]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?f():h()},hB=(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},Fy=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),Ice=(e,t)=>{let n=0,r=t?1:0;const i=[];for(let a=0;a{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}},eK=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),Dce=(e,t,n)=>e.formatByString(e.dateWithTimezone(void 0,t),n).length===4,Nce=(e,t,n,r,i)=>{if(n!=="digit")return!1;const a=e.dateWithTimezone(void 0,t);switch(r){case"year":return Dce(e,t,i)?e.formatByString(e.setYear(a,1),i)==="0001":e.formatByString(e.setYear(a,2001),i)==="01";case"month":return e.formatByString(e.startOfYear(a),i).length>1;case"day":return e.formatByString(e.startOfMonth(a),i).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),i).length>1;case"hours":return e.formatByString(e.setHours(a,1),i).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),i).length>1;case"seconds":return e.formatByString(e.setSeconds(a,1),i).length>1;default:throw new Error("Invalid section type")}},Kze=(e,t)=>{const n=[],{start:r,end:i}=e.escapedCharacters,a=new RegExp(`(\\${r}[^\\${i}]*\\${i})+`,"g");let s=null;for(;s=a.exec(t);)n.push({start:s.index,end:a.lastIndex-1});return n},tK=(e,t,n,r,i,a,s,o)=>{let l="";const u=[],c=e.date(),f=k=>{if(k==="")return null;const C=Cce(e,k),I=Nce(e,t,C.contentType,C.type,k),A=s?I:C.contentType==="digit",D=i!=null&&e.isValid(i);let B=D?e.formatByString(i,k):"",L=null;if(A)if(I)L=B===""?e.formatByString(c,k).length:B.length;else{if(C.maxLength==null)throw new Error(`MUI: The token ${k} should have a 'maxDigitNumber' property on it's adapter`);L=C.maxLength,D&&(B=_ce(e,B,L))}return u.push(M({},C,{format:k,maxLength:L,value:B,placeholder:Xze(e,t,n,C,k),hasLeadingZeros:I,hasLeadingZerosInFormat:I,hasLeadingZerosInInput:A,startSeparator:u.length===0?l:"",endSeparator:"",modified:!1})),null};let h=10,g=r,b=e.expandFormat(r);for(;b!==g;)if(g=b,b=e.expandFormat(g),h-=1,h<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 S=b,w=Kze(e,S),E=new RegExp(`^(${Object.keys(e.formatTokenMap).sort((k,C)=>C.length-k.length).join("|")})`,"g");let x="";for(let k=0;kL.start<=k&&L.end>=k),I=S[k],A=C!=null,D=`${x}${S.slice(k)}`,B=E.test(D);!A&&I.match(/([A-Za-z]+)/)&&B?(x=D.slice(0,E.lastIndex),k+=E.lastIndex-1):A&&(C==null?void 0:C.start)===k||(C==null?void 0:C.end)===k||(f(x),x="",u.length===0?l+=I:u[u.length-1].endSeparator+=I)}return f(x),u.map(k=>{const C=I=>{let A=I;return o&&A!==null&&A.includes(" ")&&(A=`⁩${A}⁦`),a==="spacious"&&["/",".","-"].includes(A)&&(A=` ${A} `),A};return k.startSeparator=C(k.startSeparator),k.endSeparator=C(k.endSeparator),k})},Jze=(e,t)=>{const n=t.some(o=>o.type==="day"),r=[],i=[];for(let o=0;o{const r=e.map(i=>{const a=hB(i,t?"input-rtl":"input-ltr");return`${i.startSeparator}${a}${i.endSeparator}`}).join("");return t?`⁦${r}⁩`:r},tje=(e,t)=>{const n=e.dateWithTimezone(void 0,t),r=e.endOfYear(n),i=e.endOfDay(n),{maxDaysInMonth:a,longestMonth:s}=dB(e,n).reduce((o,l)=>{const u=e.getDaysInMonth(l);return u>o.maxDaysInMonth?{maxDaysInMonth:u,longestMonth:l}:o},{maxDaysInMonth:0,longestMonth:null});return{year:({format:o})=>({minimum:0,maximum:Dce(e,t,o)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(r)+1}),day:({currentDate:o})=>({minimum:1,maximum:o!=null&&e.isValid(o)?e.getDaysInMonth(o):a,longestMonth:s}),weekDay:({format:o,contentType:l})=>{if(l==="digit"){const u=tI(e,t,o).map(Number);return{minimum:Math.min(...u),maximum:Math.max(...u)}}return{minimum:1,maximum:7}},hours:({format:o})=>{const l=e.getHours(i);return e.formatByString(e.endOfDay(n),o)!==l.toString()?{minimum:1,maximum:Number(e.formatByString(e.startOfDay(n),o))}:{minimum:0,maximum:l}},minutes:()=>({minimum:0,maximum:e.getMinutes(i)}),seconds:()=>({minimum:0,maximum:e.getSeconds(i)}),meridiem:()=>({minimum:0,maximum:0})}},nje=(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 a=tI(e,t,n.format),s=e.formatByString(r,n.format),o=a.indexOf(s),u=a.indexOf(n.value)-o;return e.addDays(r,u)}case"day":return e.setDate(i,e.getDate(r));case"meridiem":{const a=e.getHours(r)<12,s=e.getHours(i);return a&&s>=12?e.addHours(i,-12):!a&&s<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}},nK={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8},rK=(e,t,n,r,i,a)=>[...r].sort((s,o)=>nK[s.type]-nK[o.type]).reduce((s,o)=>!a||o.modified?nje(e,t,o,n,s):s,i),rje=()=>navigator.userAgent.toLowerCase().indexOf("android")>-1,ije=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,f=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:f}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},i={};let a=0,s=0,o=e.length-1;for(;o>=0;){s=e.findIndex((l,u)=>{var c;return u>=a&&((c=l.endSeparator)==null?void 0:c.includes(" "))&&l.endSeparator!==" / "}),s===-1&&(s=e.length-1);for(let l=s;l>=a;l-=1)i[l]=o,r[o]=l,o-=1;a=s+1}return e.forEach((l,u)=>{const c=i[u],f=c===0?null:r[c-1],h=c===e.length-1?null:r[c+1];n[u]={leftIndex:f,rightIndex:h}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},aje=["value","referenceDate"],cs={emptyValue:null,getTodayValue:fB,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=at(e,aje);return t!=null&&r.utils.isValid(t)?t:n??Gze(r)},cleanValue:zze,areValuesEqual:jze,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)},pB={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r,i)=>!e.isValid(t)&&!!n?n:Ice(i(t),r),getValueStrFromSections:eje,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)},sje=["localeText"],gM=N.createContext(null),Pce=function(t){var n;const{localeText:r}=t,i=at(t,sje),{utils:a,localeText:s}=(n=N.useContext(gM))!=null?n:{utils:void 0,localeText:void 0},o=_t({props:i,name:"MuiLocalizationProvider"}),{children:l,dateAdapter:u,dateFormats:c,dateLibInstance:f,adapterLocale:h,localeText:g}=o,b=N.useMemo(()=>M({},g,s,r),[g,s,r]),S=N.useMemo(()=>{if(!u)return a||null;const x=new u({locale:h,formats:c,instance:f});if(!x.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 x},[u,h,c,f,a]),w=N.useMemo(()=>S?{minDate:S.date("1900-01-01T00:00:00.000"),maxDate:S.date("2099-12-31T00:00:00.000")}:null,[S]),E=N.useMemo(()=>({utils:S,defaultDates:w,localeText:b}),[w,S,b]);return _.jsx(gM.Provider,{value:E,children:l})},oje=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:M({},e)}}}}),Mce={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"},lje=Mce;oje(Mce);const Id=()=>{const e=N.useContext(gM);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=N.useMemo(()=>M({},lje,e.localeText),[e.localeText]);return N.useMemo(()=>M({},e,{localeText:t}),[e,t])},Or=()=>Id().utils,I1=()=>Id().defaultDates,ps=()=>Id().localeText,_0=e=>{const t=Or(),n=N.useRef();return n.current===void 0&&(n.current=t.dateWithTimezone(void 0,e)),n.current};function Lce(e){return $t("MuiPickersToolbar",e)}Ft("MuiPickersToolbar",["root","content"]);const uje=e=>{const{classes:t,isLandscape:n}=e;return Mt({root:["root"],content:["content"],penIconButton:["penIconButton",n&&"penIconButtonLandscape"]},Lce,t)},cje=Re("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>M({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"})),dje=Re("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"}}),mB=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbar"}),{children:i,className:a,toolbarTitle:s,hidden:o,titleId:l}=r,u=r,c=uje(u);return o?null:_.jsxs(cje,{ref:n,className:dt(c.root,a),ownerState:u,children:[_.jsx(ur,{color:"text.secondary",variant:"overline",id:l,children:s}),_.jsx(dje,{className:c.content,ownerState:u,children:i})]})});function fje(e){return $t("MuiDatePickerToolbar",e)}Ft("MuiDatePickerToolbar",["root","title"]);const hje=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views"],pje=e=>{const{classes:t}=e;return Mt({root:["root"],title:["title"]},fje,t)},mje=Re(mB,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),gje=Re(ur,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})(({ownerState:e})=>M({},e.isLandscape&&{margin:"auto 16px auto auto"})),bje=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePickerToolbar"}),{value:i,isLandscape:a,toolbarFormat:s,toolbarPlaceholder:o="––",views:l}=r,u=at(r,hje),c=Or(),f=ps(),h=pje(r),g=N.useMemo(()=>{if(!i)return o;const S=qw(c,{format:s,views:l},!0);return c.formatByString(i,S)},[i,s,o,c,l]),b=r;return _.jsx(mje,M({ref:n,toolbarTitle:f.datePickerToolbarTitle,isLandscape:a,className:h.root},u,{children:_.jsx(gje,{variant:"h4",align:a?"left":"center",ownerState:b,className:h.title,children:g})}))}),xT=e=>{if(e!==void 0)return Object.keys(e).reduce((t,n)=>M({},t,{[`${n.slice(0,1).toLowerCase()}${n.slice(1)}`]:e[n]}),{})};function $ce(e,t){var n,r,i,a;const s=Or(),o=I1(),l=_t({props:e,name:t}),u=N.useMemo(()=>{var f;return((f=l.localeText)==null?void 0:f.toolbarTitle)==null?l.localeText:M({},l.localeText,{datePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),c=(n=l.slots)!=null?n:xT(l.components);return M({},l,{localeText:u},cB({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:Eo(s,l.minDate,o.minDate),maxDate:Eo(s,l.maxDate,o.maxDate),slots:M({toolbar:bje},c),slotProps:(a=l.slotProps)!=null?a:l.componentsProps})}const yje=Ba(_.jsx("path",{d:"M7 10l5 5 5-5z"}),"ArrowDropDown"),vje=Ba(_.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"}),"ArrowLeft"),Oje=Ba(_.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"}),"ArrowRight"),Fce=Ba(_.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"),Sje=Ba(_.jsxs(N.Fragment,{children:[_.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"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Clock"),Eje=Ba(_.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"),wje=Ba(_.jsxs(N.Fragment,{children:[_.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"}),_.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}),"Time"),xje=Ba(_.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 Tje(e){return $t("MuiPickersArrowSwitcher",e)}Ft("MuiPickersArrowSwitcher",["root","spacer","button"]);const kje=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel"],Cje=["ownerState"],Aje=["ownerState"],_je=Re("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),Rje=Re("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),iK=Re(Vi,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})(({ownerState:e})=>M({},e.hidden&&{visibility:"hidden"})),Ije=e=>{const{classes:t}=e;return Mt({root:["root"],spacer:["spacer"],button:["button"]},Tje,t)},Bce=N.forwardRef(function(t,n){var r,i,a,s;const l=Ni().direction==="rtl",u=_t({props:t,name:"MuiPickersArrowSwitcher"}),{children:c,className:f,slots:h,slotProps:g,isNextDisabled:b,isNextHidden:S,onGoToNext:w,nextLabel:E,isPreviousDisabled:x,isPreviousHidden:k,onGoToPrevious:C,previousLabel:I}=u,A=at(u,kje),D=u,B=Ije(D),L={isDisabled:b,isHidden:S,goTo:w,label:E},F={isDisabled:x,isHidden:k,goTo:C,label:I},W=(r=h==null?void 0:h.previousIconButton)!=null?r:iK,V=dr({elementType:W,externalSlotProps:g==null?void 0:g.previousIconButton,additionalProps:{size:"medium",title:F.label,"aria-label":F.label,disabled:F.isDisabled,edge:"end",onClick:F.goTo},ownerState:M({},D,{hidden:F.isHidden}),className:B.button}),Z=(i=h==null?void 0:h.nextIconButton)!=null?i:iK,Q=dr({elementType:Z,externalSlotProps:g==null?void 0:g.nextIconButton,additionalProps:{size:"medium",title:L.label,"aria-label":L.label,disabled:L.isDisabled,edge:"start",onClick:L.goTo},ownerState:M({},D,{hidden:L.isHidden}),className:B.button}),H=(a=h==null?void 0:h.leftArrowIcon)!=null?a:vje,J=dr({elementType:H,externalSlotProps:g==null?void 0:g.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),K=at(J,Cje),X=(s=h==null?void 0:h.rightArrowIcon)!=null?s:Oje,te=dr({elementType:X,externalSlotProps:g==null?void 0:g.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:void 0}),z=at(te,Aje);return _.jsxs(_je,M({ref:n,className:dt(B.root,f),ownerState:D},A,{children:[_.jsx(W,M({},V,{children:l?_.jsx(X,M({},z)):_.jsx(H,M({},K))})),c?_.jsx(ur,{variant:"subtitle1",component:"span",children:c}):_.jsx(Rje,{className:B.spacer,ownerState:D}),_.jsx(Z,M({},Q,{children:l?_.jsx(H,M({},K)):_.jsx(X,M({},z))}))]}))}),Yw=36,nI=2,rI=320,Dje=280,iI=334,Uce=232,l2=48,Nje=Re(X6e)({[`& .${M2.container}`]:{outline:0},[`& .${M2.paper}`]:{outline:0,minWidth:rI}}),Pje=Re(dDe)({"&:first-of-type":{padding:0}});function Mje(e){var t,n;const{children:r,onDismiss:i,open:a,slots:s,slotProps:o}=e,l=(t=s==null?void 0:s.dialog)!=null?t:Nje,u=(n=s==null?void 0:s.mobileTransition)!=null?n:ap;return _.jsx(l,M({open:a,onClose:i},o==null?void 0:o.dialog,{TransitionComponent:u,TransitionProps:o==null?void 0:o.mobileTransition,PaperComponent:s==null?void 0:s.mobilePaper,PaperProps:o==null?void 0:o.mobilePaper,children:_.jsx(Pje,{children:r})}))}function Lje(e){return $t("MuiPickersPopper",e)}Ft("MuiPickersPopper",["root","paper"]);function dy(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const $je=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation()),t&&t(n)},E3=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?E3(t.shadowRoot):t:null},gB="@media (pointer: fine)",Fje="@media (prefers-reduced-motion: reduce)",iv=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),aK=iv&&iv[1]?parseInt(iv[1],10):null,sK=iv&&iv[2]?parseInt(iv[2],10):null,Bje=aK&&aK<10||sK&&sK<13||!1,zce=()=>RO(Fje,{defaultMatches:!1})||Bje,Uje=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],zje=e=>{const{classes:t}=e;return Mt({root:["root"],paper:["paper"]},Lje,t)},jje=Re(AO,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),Hje=Re(hs,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})(({ownerState:e})=>M({outline:0,transformOrigin:"top center"},e.placement.includes("top")&&{transformOrigin:"bottom center"}));function Vje(e,t){return t.documentElement.clientWidth{if(!e)return;function l(){a.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),a.current=!1}},[e]);const s=on(l=>{if(!a.current)return;const u=r.current;r.current=!1;const c=Ei(i.current);if(!i.current||"clientX"in l&&Vje(l,c))return;if(n.current){n.current=!1;return}let f;l.composedPath?f=l.composedPath().indexOf(i.current)>-1:f=!c.documentElement.contains(l.target)||i.current.contains(l.target),!f&&!u&&t(l)}),o=()=>{r.current=!0};return N.useEffect(()=>{if(e){const l=Ei(i.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[e,s]),N.useEffect(()=>{if(e){const l=Ei(i.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[i,o,o]}const Qje=N.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:i,children:a,paperSlotProps:s,paperClasses:o,onPaperClick:l,onPaperTouchStart:u}=e,c=at(e,Uje),f=M({},i,{placement:r}),h=dr({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:o,ownerState:f});return _.jsx(n,M({},c,h,{onClick:g=>{var b;l(g),(b=h.onClick)==null||b.call(h,g)},onTouchStart:g=>{var b;u(g),(b=h.onTouchStart)==null||b.call(h,g)},ownerState:f,children:a}))});function qje(e){var t,n,r,i;const a=_t({props:e,name:"MuiPickersPopper"}),{anchorEl:s,children:o,containerRef:l=null,shouldRestoreFocus:u,onBlur:c,onDismiss:f,open:h,role:g,placement:b,slots:S,slotProps:w,reduceAnimations:E}=a;N.useEffect(()=>{function te(z){h&&(z.key==="Escape"||z.key==="Esc")&&f()}return document.addEventListener("keydown",te),()=>{document.removeEventListener("keydown",te)}},[f,h]);const x=N.useRef(null);N.useEffect(()=>{g==="tooltip"||u&&!u()||(h?x.current=E3(document):x.current&&x.current instanceof HTMLElement&&setTimeout(()=>{x.current instanceof HTMLElement&&x.current.focus()}))},[h,g,u]);const[k,C,I]=Wje(h,c??f),A=N.useRef(null),D=Jn(A,l),B=Jn(D,k),L=a,F=zje(L),W=zce(),V=E??W,Z=te=>{te.key==="Escape"&&(te.stopPropagation(),f())},Q=((t=S==null?void 0:S.desktopTransition)!=null?t:V)?ap:e3,H=(n=S==null?void 0:S.desktopTrapFocus)!=null?n:Loe,J=(r=S==null?void 0:S.desktopPaper)!=null?r:Hje,K=(i=S==null?void 0:S.popper)!=null?i:jje,X=dr({elementType:K,externalSlotProps:w==null?void 0:w.popper,additionalProps:{transition:!0,role:g,open:h,anchorEl:s,placement:b,onKeyDown:Z},className:F.root,ownerState:a});return _.jsx(K,M({},X,{children:({TransitionProps:te,placement:z})=>_.jsx(H,M({open:h,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:g==="tooltip",isEnabled:()=>!0},w==null?void 0:w.desktopTrapFocus,{children:_.jsx(Q,M({},te,w==null?void 0:w.desktopTransition,{children:_.jsx(Qje,{PaperComponent:J,ownerState:L,popperPlacement:z,ref:B,onPaperClick:C,onPaperTouchStart:I,paperClasses:F.paper,paperSlotProps:w==null?void 0:w.desktopPaper,children:o})}))}))}))}function Gje(e){return $t("MuiPickersToolbarText",e)}const oK=Ft("MuiPickersToolbarText",["root","selected"]),Yje=["className","selected","value"],Zje=e=>{const{classes:t,selected:n}=e;return Mt({root:["root",n&&"selected"]},Gje,t)},Xje=Re(ur,{name:"MuiPickersToolbarText",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${oK.selected}`]:t.selected}]})(({theme:e})=>({transition:e.transitions.create("color"),color:(e.vars||e).palette.text.secondary,[`&.${oK.selected}`]:{color:(e.vars||e).palette.text.primary}})),bB=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbarText"}),{className:i,value:a}=r,s=at(r,Yje),o=Zje(r);return _.jsx(Xje,M({ref:n,className:dt(i,o.root),component:"span"},s,{children:a}))}),Kje=["align","className","selected","typographyClassName","value","variant","width"],Jje=e=>{const{classes:t}=e;return Mt({root:["root"]},Lce,t)},eHe=Re(ss,{name:"MuiPickersToolbarButton",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,minWidth:16,textTransform:"none"}),su=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbarButton"}),{align:i,className:a,selected:s,typographyClassName:o,value:l,variant:u,width:c}=r,f=at(r,Kje),h=Jje(r);return _.jsx(eHe,M({variant:"text",ref:n,className:dt(a,h.root)},c?{sx:{width:c}}:{},f,{children:_.jsx(bB,{align:i,className:o,variant:u,value:l,selected:s})}))}),yB=({timezone:e,value:t,defaultValue:n,onChange:r,valueManager:i})=>{var a,s;const o=Or(),l=N.useRef(n),u=(a=t??l.current)!=null?a:i.emptyValue,c=N.useMemo(()=>i.getTimezone(o,u),[o,i,u]),f=on(S=>c==null?S:i.setTimezone(o,c,S)),h=(s=e??c)!=null?s:"default",g=N.useMemo(()=>i.setTimezone(o,h,u),[i,o,h,u]),b=on((S,...w)=>{const E=f(S);r==null||r(E,...w)});return{value:g,handleValueChange:b,timezone:h}},LO=({name:e,timezone:t,value:n,defaultValue:r,onChange:i,valueManager:a})=>{const[s,o]=Cs({name:e,state:"value",controlled:n,default:r??a.emptyValue}),l=on((u,...c)=>{o(u),i==null||i(u,...c)});return yB({timezone:t,value:s,defaultValue:void 0,onChange:l,valueManager:a})};function jce(e,t,n,r){const{value:i,onError:a}=e,s=Id(),o=N.useRef(r),l=t({adapter:s,value:i,props:e});return N.useEffect(()=>{a&&!n(l,o.current)&&a(l,i),o.current=l},[n,a,o,l,i]),l}const tHe=e=>{const t=Or(),n=ps(),r=Id(),a=Ni().direction==="rtl",{valueManager:s,fieldValueManager:o,valueType:l,validator:u,internalProps:c,internalProps:{value:f,defaultValue:h,referenceDate:g,onChange:b,format:S,formatDensity:w="dense",selectedSections:E,onSelectedSectionsChange:x,shouldRespectLeadingZeros:k=!1,timezone:C}}=e,{timezone:I,value:A,handleValueChange:D}=yB({timezone:C,value:f,defaultValue:h,onChange:b,valueManager:s}),B=N.useMemo(()=>tje(t,I),[t,I]),L=N.useCallback((ye,Oe=null)=>o.getSectionsFromValue(t,ye,Oe,a,ie=>tK(t,I,n,S,ie,w,k,a)),[o,S,n,a,k,t,w,I]),F=N.useMemo(()=>o.getValueStrFromSections(L(s.emptyValue),a),[o,L,s.emptyValue,a]),[W,V]=N.useState(()=>{const ye=L(A),Oe={sections:ye,value:A,referenceValue:s.emptyValue,tempValueStrAndroid:null},ie=qze(ye),_e=s.getInitialReferenceValue({referenceDate:g,value:A,utils:t,props:c,granularity:ie,timezone:I});return M({},Oe,{referenceValue:_e})}),[Z,Q]=Cs({controlled:E,default:null,name:"useField",state:"selectedSectionIndexes"}),H=ye=>{Q(ye),x==null||x(ye),V(Oe=>M({},Oe,{selectedSectionQuery:null}))},J=N.useMemo(()=>{if(Z==null)return null;if(Z==="all")return{startIndex:0,endIndex:W.sections.length-1,shouldSelectBoundarySelectors:!0};if(typeof Z=="number")return{startIndex:Z,endIndex:Z};if(typeof Z=="string"){const ye=W.sections.findIndex(Oe=>Oe.type===Z);return{startIndex:ye,endIndex:ye}}return Z},[Z,W.sections]),K=({value:ye,referenceValue:Oe,sections:ie})=>{if(V(Ie=>M({},Ie,{sections:ie,value:ye,referenceValue:Oe,tempValueStrAndroid:null})),s.areValuesEqual(t,W.value,ye))return;const _e={validationError:u({adapter:r,value:ye,props:M({},c,{value:ye,timezone:I})})};D(ye,_e)},X=(ye,Oe)=>{const ie=[...W.sections];return ie[ye]=M({},ie[ye],{value:Oe,modified:!0}),Ice(ie,a)},te=()=>{K({value:s.emptyValue,referenceValue:W.referenceValue,sections:L(s.emptyValue)})},z=()=>{if(J==null)return;const ye=W.sections[J.startIndex],Oe=o.getActiveDateManager(t,W,ye),_e=Oe.getSections(W.sections).filter(Pe=>Pe.value!=="").length===(ye.value===""?0:1),Ie=X(J.startIndex,""),qe=_e?null:t.date(new Date("")),st=Oe.getNewValuesFromNewActiveDate(qe);(qe!=null&&!t.isValid(qe))!=(Oe.date!=null&&!t.isValid(Oe.date))?K(M({},st,{sections:Ie})):V(Pe=>M({},Pe,st,{sections:Ie,tempValueStrAndroid:null}))},Te=ye=>{const Oe=(Ie,qe)=>{const st=t.parse(Ie,S);if(st==null||!t.isValid(st))return null;const Pe=tK(t,I,n,S,st,w,k,a);return rK(t,I,st,Pe,qe,!1)},ie=o.parseValueStr(ye,W.referenceValue,Oe),_e=o.updateReferenceValue(t,ie,W.referenceValue);K({value:ie,referenceValue:_e,sections:L(ie,W.sections)})},be=({activeSection:ye,newSectionValue:Oe,shouldGoToNextSection:ie})=>{ie&&J&&J.startIndexM({},Ve,Pe,{sections:Ie,tempValueStrAndroid:null}))},ee=ye=>V(Oe=>M({},Oe,{tempValueStrAndroid:ye}));return N.useEffect(()=>{const ye=L(W.value);V(Oe=>M({},Oe,{sections:ye}))},[S,t.locale]),N.useEffect(()=>{let ye=!1;s.areValuesEqual(t,W.value,A)?ye=s.getTimezone(t,W.value)!==s.getTimezone(t,A):ye=!0,ye&&V(Oe=>M({},Oe,{value:A,referenceValue:o.updateReferenceValue(t,A,Oe.referenceValue),sections:L(A)}))},[A]),{state:W,selectedSectionIndexes:J,setSelectedSections:H,clearValue:te,clearActiveSection:z,updateSectionValue:be,updateValueFromValueStr:Te,setTempAndroidValueStr:ee,sectionsValueBoundaries:B,placeholder:F,timezone:I}},nHe=5e3,Jb=e=>e.saveQuery!=null,rHe=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,setTempAndroidValueStr:r,timezone:i})=>{const a=Or(),[s,o]=N.useState(null),l=on(()=>o(null));N.useEffect(()=>{var g;s!=null&&((g=e[s.sectionIndex])==null?void 0:g.type)!==s.sectionType&&l()},[e,s,l]),N.useEffect(()=>{if(s!=null){const g=setTimeout(()=>l(),nHe);return()=>{window.clearTimeout(g)}}return()=>{}},[s,l]);const u=({keyPressed:g,sectionIndex:b},S,w)=>{const E=g.toLowerCase(),x=e[b];if(s!=null&&(!w||w(s.value))&&s.sectionIndex===b){const C=`${s.value}${E}`,I=S(C,x);if(!Jb(I))return o({sectionIndex:b,value:C,sectionType:x.type}),I}const k=S(E,x);return Jb(k)&&!k.saveQuery?(l(),null):(o({sectionIndex:b,value:E,sectionType:x.type}),Jb(k)?null:k)},c=g=>{const b=(E,x,k)=>{const C=x.filter(I=>I.toLowerCase().startsWith(k));return C.length===0?{saveQuery:!1}:{sectionValue:C[0],shouldGoToNextSection:C.length===1}},S=(E,x,k,C)=>{const I=A=>Ace(a,i,x.type,A);if(x.contentType==="letter")return b(x.format,I(x.format),E);if(k&&C!=null&&Cce(a,k).contentType==="letter"){const A=I(k),D=b(k,A,E);return Jb(D)?{saveQuery:!1}:M({},D,{sectionValue:C(D.sectionValue,A)})}return{saveQuery:!1}};return u(g,(E,x)=>{switch(x.type){case"month":{const k=C=>eK(a,C,a.formats.month,x.format);return S(E,x,a.formats.month,k)}case"weekDay":{const k=(C,I)=>I.indexOf(C).toString();return S(E,x,a.formats.weekday,k)}case"meridiem":return S(E,x);default:return{saveQuery:!1}}})},f=g=>{const b=(w,E)=>{const x=+`${w}`,k=n[E.type]({currentDate:null,format:E.format,contentType:E.contentType});if(x>k.maximum)return{saveQuery:!1};if(xk.maximum||w.length===k.maximum.toString().length;return{sectionValue:Rce(a,i,x,k,E),shouldGoToNextSection:C}};return u(g,(w,E)=>{if(E.contentType==="digit"||E.contentType==="digit-with-letter")return b(w,E);if(E.type==="month"){const x=Nce(a,i,"digit","month","MM"),k=b(w,{type:E.type,format:"MM",hasLeadingZerosInFormat:x,hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(Jb(k))return k;const C=eK(a,k.sectionValue,"MM",E.format);return M({},k,{sectionValue:C})}if(E.type==="weekDay"){const x=b(w,E);if(Jb(x))return x;const k=tI(a,i,E.format)[Number(x.sectionValue)-1];return M({},x,{sectionValue:k})}return{saveQuery:!1}},w=>!Number.isNaN(Number(w)))};return{applyCharacterEditing:on(g=>{const b=e[g.sectionIndex],w=!Number.isNaN(Number(g.keyPressed))?f(g):c(g);w==null?r(null):t({activeSection:b,newSectionValue:w.sectionValue,shouldGoToNextSection:w.shouldGoToNextSection})}),resetCharacterQuery:l}},iHe=["onClick","onKeyDown","onFocus","onBlur","onMouseUp","onPaste","error","clearable","onClear","disabled"],vB=e=>{const t=Or(),{state:n,selectedSectionIndexes:r,setSelectedSections:i,clearValue:a,clearActiveSection:s,updateSectionValue:o,updateValueFromValueStr:l,setTempAndroidValueStr:u,sectionsValueBoundaries:c,placeholder:f,timezone:h}=tHe(e),{inputRef:g,internalProps:b,internalProps:{readOnly:S=!1,unstableFieldRef:w,minutesStep:E},forwardedProps:{onClick:x,onKeyDown:k,onFocus:C,onBlur:I,onMouseUp:A,onPaste:D,error:B,clearable:L,onClear:F,disabled:W},fieldValueManager:V,valueManager:Z,validator:Q}=e,H=at(e.forwardedProps,iHe),{applyCharacterEditing:J,resetCharacterQuery:K}=rHe({sections:n.sections,updateSectionValue:o,sectionsValueBoundaries:c,setTempAndroidValueStr:u,timezone:h}),X=N.useRef(null),te=Jn(g,X),z=N.useRef(void 0),be=Ni().direction==="rtl",ee=N.useMemo(()=>ije(n.sections,be),[n.sections,be]),ye=()=>{var le;if(S){i(null);return}const he=(le=X.current.selectionStart)!=null?le:0;let je;he<=n.sections[0].startInInput||he>=n.sections[n.sections.length-1].endInInput?je=1:je=n.sections.findIndex(We=>We.startInInput-We.startSeparator.length>he);const Ze=je===-1?n.sections.length-1:je-1;i(Ze)},Oe=on((le,...he)=>{le.isDefaultPrevented()||(x==null||x(le,...he),ye())}),ie=on(le=>{A==null||A(le),le.preventDefault()}),_e=on((...le)=>{C==null||C(...le);const he=X.current;window.clearTimeout(z.current),z.current=setTimeout(()=>{!he||he!==X.current||r!=null||S||(he.value.length&&Number(he.selectionEnd)-Number(he.selectionStart)===he.value.length?i("all"):ye())})}),Ie=on((...le)=>{I==null||I(...le),i(null)}),qe=on(le=>{if(D==null||D(le),S){le.preventDefault();return}const he=le.clipboardData.getData("text");if(r&&r.startIndex===r.endIndex){const je=n.sections[r.startIndex],Ze=/^[a-zA-Z]+$/.test(he),We=/^[0-9]+$/.test(he),fe=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(he);if(je.contentType==="letter"&&Ze||je.contentType==="digit"&&We||je.contentType==="digit-with-letter"&&fe){K(),o({activeSection:je,newSectionValue:he,shouldGoToNextSection:!0}),le.preventDefault();return}if(Ze||We){le.preventDefault();return}}le.preventDefault(),K(),l(he)}),st=on(le=>{if(S)return;const he=le.target.value;if(he===""){K(),a();return}const je=le.nativeEvent.data,Ze=je&&je.length>1,We=Ze?je:he,fe=Fy(We);if(r==null||Ze){l(Ze?je:fe);return}let xe;if(r.startIndex===0&&r.endIndex===n.sections.length-1&&fe.length===1)xe=fe;else{const ve=Fy(V.getValueStrFromSections(n.sections,be));let De=-1,$e=-1;for(let gt=0;gtOt.end)return;const Kt=fe.length-ve.length+Ot.end-Fy(Ot.endSeparator||"").length;xe=fe.slice(Ot.start+Fy(Ot.startSeparator||"").length,Kt)}if(xe.length===0){rje()?u(We):(K(),s());return}J({keyPressed:xe,sectionIndex:r.startIndex})}),Pe=on(le=>{switch(k==null||k(le),!0){case(le.key==="a"&&(le.ctrlKey||le.metaKey)):{le.preventDefault(),i("all");break}case le.key==="ArrowRight":{if(le.preventDefault(),r==null)i(ee.startIndex);else if(r.startIndex!==r.endIndex)i(r.endIndex);else{const he=ee.neighbors[r.startIndex].rightIndex;he!==null&&i(he)}break}case le.key==="ArrowLeft":{if(le.preventDefault(),r==null)i(ee.endIndex);else if(r.startIndex!==r.endIndex)i(r.startIndex);else{const he=ee.neighbors[r.startIndex].leftIndex;he!==null&&i(he)}break}case le.key==="Delete":{if(le.preventDefault(),S)break;r==null||r.startIndex===0&&r.endIndex===n.sections.length-1?a():s(),K();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(le.key):{if(le.preventDefault(),S||r==null)break;const he=n.sections[r.startIndex],je=V.getActiveDateManager(t,n,he),Ze=Zze(t,h,he,le.key,c,je.date,{minutesStep:E});o({activeSection:he,newSectionValue:Ze,shouldGoToNextSection:!1});break}}});da(()=>{if(!X.current)return;if(r==null){X.current.scrollLeft&&(X.current.scrollLeft=0);return}const le=n.sections[r.startIndex],he=n.sections[r.endIndex];let je=le.startInInput,Ze=he.endInInput;if(r.shouldSelectBoundarySelectors&&(je-=le.startSeparator.length,Ze+=he.endSeparator.length),je!==X.current.selectionStart||Ze!==X.current.selectionEnd){const We=X.current.scrollTop;X.current===E3(document)&&X.current.setSelectionRange(je,Ze),X.current.scrollTop=We}});const tt=jce(M({},b,{value:n.value,timezone:h}),Q,Z.isSameError,Z.defaultErrorState),Ve=N.useMemo(()=>B!==void 0?B:Z.hasError(tt),[Z,tt,B]);N.useEffect(()=>{!Ve&&!r&&K()},[n.referenceValue,r,Ve]),N.useEffect(()=>(X.current&&X.current===document.activeElement&&i("all"),()=>window.clearTimeout(z.current)),[]),N.useEffect(()=>{n.tempValueStrAndroid!=null&&r!=null&&(K(),s())},[n.tempValueStrAndroid]);const Xe=N.useMemo(()=>{var le;return(le=n.tempValueStrAndroid)!=null?le:V.getValueStrFromSections(n.sections,be)},[n.sections,V,n.tempValueStrAndroid,be]),et=N.useMemo(()=>r==null||n.sections[r.startIndex].contentType==="letter"?"text":"numeric",[r,n.sections]),ft=X.current&&X.current===E3(document),At=Z.areValuesEqual(t,n.value,Z.emptyValue),Je=!ft&&At;N.useImperativeHandle(w,()=>({getSections:()=>n.sections,getActiveSectionIndex:()=>{var le,he;const je=(le=X.current.selectionStart)!=null?le:0,Ze=(he=X.current.selectionEnd)!=null?he:0;if(je===0&&Ze===0)return null;const We=je<=n.sections[0].startInInput?1:n.sections.findIndex(fe=>fe.startInInput-fe.startSeparator.length>je);return We===-1?n.sections.length-1:We-1},setSelectedSections:le=>i(le)}));const pe=on((le,...he)=>{var je;le.preventDefault(),F==null||F(le,...he),a(),X==null||(je=X.current)==null||je.focus(),i(0)});return M({placeholder:f,autoComplete:"off",disabled:!!W},H,{value:Je?"":Xe,inputMode:et,readOnly:S,onClick:Oe,onFocus:_e,onBlur:Ie,onPaste:qe,onChange:st,onKeyDown:Pe,onMouseUp:ie,onClear:pe,error:Ve,ref:te,clearable:!!(L&&!At&&!S&&!W)})},aHe=({open:e,onOpen:t,onClose:n})=>{const r=N.useRef(typeof e=="boolean").current,[i,a]=N.useState(!1);N.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");a(e)}},[r,e]);const s=N.useCallback(o=>{r||a(o),o&&t&&t(),!o&&n&&n()},[r,t,n]);return{isOpen:i,setIsOpen:s}},sHe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i}=e,a=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?a&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?a?!0:n(r.lastPublishedValue):!1},oHe=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:i,closeOnSelect:a}=e,s=!i&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&a?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},lHe=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},uHe=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:i})=>{const{onAccept:a,onChange:s,value:o,defaultValue:l,closeOnSelect:u=r==="desktop",selectedSections:c,onSelectedSectionsChange:f,timezone:h}=e,{current:g}=N.useRef(l),{current:b}=N.useRef(o!==void 0),S=Or(),w=Id(),[E,x]=Cs({controlled:c,default:null,name:"usePickerValue",state:"selectedSections"}),{isOpen:k,setIsOpen:C}=aHe(e),[I,A]=N.useState(()=>{let _e;return o!==void 0?_e=o:g!==void 0?_e=g:_e=t.emptyValue,{draft:_e,lastPublishedValue:_e,lastCommittedValue:_e,lastControlledValue:o,hasBeenModifiedSinceMount:!1}}),{timezone:D,handleValueChange:B}=yB({timezone:h,value:o,defaultValue:g,onChange:s,valueManager:t});jce(M({},e,{value:I.draft,timezone:D}),i,t.isSameError,t.defaultErrorState);const L=on(_e=>{const Ie={action:_e,dateState:I,hasChanged:tt=>!t.areValuesEqual(S,_e.value,tt),isControlled:b,closeOnSelect:u},qe=sHe(Ie),st=oHe(Ie),Pe=lHe(Ie);if(A(tt=>M({},tt,{draft:_e.value,lastPublishedValue:qe?_e.value:tt.lastPublishedValue,lastCommittedValue:st?_e.value:tt.lastCommittedValue,hasBeenModifiedSinceMount:!0})),qe){const Ve={validationError:_e.name==="setValueFromField"?_e.context.validationError:i({adapter:w,value:_e.value,props:M({},e,{value:_e.value,timezone:D})})};_e.name==="setValueFromShortcut"&&_e.shortcut!=null&&(Ve.shortcut=_e.shortcut),B(_e.value,Ve)}st&&a&&a(_e.value),Pe&&C(!1)});if(o!==void 0&&(I.lastControlledValue===void 0||!t.areValuesEqual(S,I.lastControlledValue,o))){const _e=t.areValuesEqual(S,I.draft,o);A(Ie=>M({},Ie,{lastControlledValue:o},_e?{}:{lastCommittedValue:o,lastPublishedValue:o,draft:o,hasBeenModifiedSinceMount:!0}))}const F=on(()=>{L({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),W=on(()=>{L({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),V=on(()=>{L({value:I.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),Z=on(()=>{L({value:I.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),Q=on(()=>{L({value:t.getTodayValue(S,D,n),name:"setValueFromAction",pickerAction:"today"})}),H=on(()=>C(!0)),J=on(()=>C(!1)),K=on((_e,Ie="partial")=>L({name:"setValueFromView",value:_e,selectionState:Ie})),X=on((_e,Ie,qe)=>L({name:"setValueFromShortcut",value:_e,changeImportance:Ie??"accept",shortcut:qe})),te=on((_e,Ie)=>L({name:"setValueFromField",value:_e,context:Ie})),z=on(_e=>{x(_e),f==null||f(_e)}),Te={onClear:F,onAccept:W,onDismiss:V,onCancel:Z,onSetToday:Q,onOpen:H,onClose:J},be={value:I.draft,onChange:te,selectedSections:E,onSelectedSectionsChange:z},ee=N.useMemo(()=>t.cleanValue(S,I.draft),[S,t,I.draft]),ye={value:ee,onChange:K,onClose:J,open:k,onSelectedSectionsChange:z},ie=M({},Te,{value:ee,onChange:K,onSelectShortcut:X,isValid:_e=>{const Ie=i({adapter:w,value:_e,props:M({},e,{value:_e,timezone:D})});return!t.hasError(Ie)}});return{open:k,fieldProps:be,viewProps:ye,layoutProps:ie,actions:Te}};function TT({onChange:e,onViewChange:t,openTo:n,view:r,views:i,autoFocus:a,focusedView:s,onFocusedViewChange:o}){var l,u;const c=N.useRef(n),f=N.useRef(i),h=N.useRef(i.includes(n)?n:i[0]),[g,b]=Cs({name:"useViews",state:"view",controlled:r,default:h.current}),S=N.useRef(a?g:null),[w,E]=Cs({name:"useViews",state:"focusedView",controlled:s,default:S.current});N.useEffect(()=>{(c.current&&c.current!==n||f.current&&f.current.some(L=>!i.includes(L)))&&(b(i.includes(n)?n:i[0]),f.current=i,c.current=n)},[n,b,g,i]);const x=i.indexOf(g),k=(l=i[x-1])!=null?l:null,C=(u=i[x+1])!=null?u:null,I=on((L,F)=>{E(F?L:W=>L===W?null:W),o==null||o(L,F)}),A=on(L=>{I(L,!0),L!==g&&(b(L),t&&t(L))}),D=on(()=>{C&&A(C)}),B=on((L,F,W)=>{const V=F==="finish",Z=W?i.indexOf(W){const{onChange:a,open:s,onSelectedSectionsChange:o,onClose:l}=t,{views:u,openTo:c,onViewChange:f,disableOpenPicker:h,viewRenderers:g,timezone:b}=e,S=at(e,cHe),{view:w,setView:E,defaultView:x,focusedView:k,setFocusedView:C,setValueAndGoToNextView:I}=TT({view:void 0,views:u,openTo:c,onChange:a,onViewChange:f,autoFocus:i}),{hasUIView:A,viewModeLookup:D}=N.useMemo(()=>u.reduce((Q,H)=>{let J;return h?J="field":g[H]!=null?J="UI":J="field",Q.viewModeLookup[H]=J,J==="UI"&&(Q.hasUIView=!0),Q},{hasUIView:!1,viewModeLookup:{}}),[h,g,u]),B=N.useMemo(()=>u.reduce((Q,H)=>g[H]!=null&&rO(H)?Q+1:Q,0),[g,u]),L=D[w],F=on(()=>L==="UI"),[W,V]=N.useState(L==="UI"?w:null);return W!==w&&D[w]==="UI"&&V(w),da(()=>{L==="field"&&s&&(l(),setTimeout(()=>{r==null||r.current.focus(),o(w)}))},[w]),da(()=>{if(!s)return;let Q=w;L==="field"&&W!=null&&(Q=W),Q!==x&&D[Q]==="UI"&&D[x]==="UI"&&(Q=x),Q!==w&&E(Q),C(Q,!0)},[s]),{hasUIView:A,shouldRestoreFocus:F,layoutProps:{views:u,view:W,onViewChange:E},renderCurrentView:()=>{if(W==null)return null;const Q=g[W];return Q==null?null:Q(M({},S,n,t,{views:u,timezone:b,onChange:I,view:W,onViewChange:E,focusedView:k,onFocusedViewChange:C,showViewSwitcher:B>1,timeViewsCount:B}))}}};function lK(){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 fHe=(e,t)=>{const[n,r]=N.useState(lK);return da(()=>{const a=()=>{r(lK())};return window.addEventListener("orientationchange",a),()=>{window.removeEventListener("orientationchange",a)}},[]),dy(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},hHe=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:i}=e,a=fHe(n.views,i);return{layoutProps:M({},n,t,{isLandscape:a,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}},pHe=(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))}};pHe(["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 Hce=({props:e,valueManager:t,valueType:n,wrapperVariant:r,inputRef:i,additionalViewProps:a,validator:s,autoFocusView:o})=>{const l=uHe({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:s}),u=dHe({props:e,inputRef:i,additionalViewProps:a,autoFocusView:o,propsFromPickerValue:l.viewProps}),c=hHe({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 Vce(e){return $t("MuiPickersLayout",e)}const GN=Ft("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]),mHe=["onAccept","onClear","onCancel","onSetToday","actions"];function gHe(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:i,actions:a}=e,s=at(e,mHe),o=ps();if(a==null||a.length===0)return null;const l=a==null?void 0:a.map(u=>{switch(u){case"clear":return _.jsx(ss,{onClick:n,children:o.clearButtonLabel},u);case"cancel":return _.jsx(ss,{onClick:r,children:o.cancelButtonLabel},u);case"accept":return _.jsx(ss,{onClick:t,children:o.okButtonLabel},u);case"today":return _.jsx(ss,{onClick:i,children:o.todayButtonLabel},u);default:return null}});return _.jsx(rDe,M({},s,{children:l}))}const bHe=["items","changeImportance","isLandscape","onChange","isValid"],yHe=["getValue"];function vHe(e){const{items:t,changeImportance:n,onChange:r,isValid:i}=e,a=at(e,bHe);if(t==null||t.length===0)return null;const s=t.map(o=>{let{getValue:l}=o,u=at(o,yHe);const c=l({isValid:i});return{label:u.label,onClick:()=>{r(c,n,u)},disabled:!i(c)}});return _.jsx(ple,M({dense:!0,sx:[{maxHeight:iI,maxWidth:200,overflow:"auto"},...Array.isArray(a.sx)?a.sx:[a.sx]]},a,{children:s.map(o=>_.jsx(t3,{children:_.jsx(yF,M({},o))},o.label))}))}function OHe(e){return e.view!==null}const SHe=e=>{const{classes:t,isLandscape:n}=e;return Mt({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Vce,t)},EHe=e=>{var t,n;const{wrapperVariant:r,onAccept:i,onClear:a,onCancel:s,onSetToday:o,view:l,views:u,onViewChange:c,value:f,onChange:h,onSelectShortcut:g,isValid:b,isLandscape:S,disabled:w,readOnly:E,children:x,components:k,componentsProps:C,slots:I,slotProps:A}=e,D=I??xT(k),B=A??C,L=SHe(e),F=(t=D==null?void 0:D.actionBar)!=null?t:gHe,W=dr({elementType:F,externalSlotProps:B==null?void 0:B.actionBar,additionalProps:{onAccept:i,onClear:a,onCancel:s,onSetToday:o,actions:r==="desktop"?[]:["cancel","accept"],className:L.actionBar},ownerState:M({},e,{wrapperVariant:r})}),V=_.jsx(F,M({},W)),Z=D==null?void 0:D.toolbar,Q=dr({elementType:Z,externalSlotProps:B==null?void 0:B.toolbar,additionalProps:{isLandscape:S,onChange:h,value:f,view:l,onViewChange:c,views:u,disabled:w,readOnly:E,className:L.toolbar},ownerState:M({},e,{wrapperVariant:r})}),H=OHe(Q)&&Z?_.jsx(Z,M({},Q)):null,J=x,K=D==null?void 0:D.tabs,X=l&&K?_.jsx(K,M({view:l,onViewChange:c,className:L.tabs},B==null?void 0:B.tabs)):null,te=(n=D==null?void 0:D.shortcuts)!=null?n:vHe,z=dr({elementType:te,externalSlotProps:B==null?void 0:B.shortcuts,additionalProps:{isValid:b,isLandscape:S,onChange:g,className:L.shortcuts},ownerState:{isValid:b,isLandscape:S,onChange:g,className:L.shortcuts,wrapperVariant:r}}),Te=l&&te?_.jsx(te,M({},z)):null;return{toolbar:H,content:J,tabs:X,actionBar:V,shortcuts:Te}},wHe=e=>{const{isLandscape:t,classes:n}=e;return Mt({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Vce,n)},Wce=Re("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",[`& .${GN.toolbar}`]:t.isLandscape?{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"}:{gridColumn:"2 / 4",gridRow:1},[`.${GN.shortcuts}`]:t.isLandscape?{gridColumn:"2 / 4",gridRow:1}:{gridColumn:e.direction==="rtl"?3:1,gridRow:"2 / 3"},[`& .${GN.actionBar}`]:{gridColumn:"1 / 4",gridRow:3}}));Wce.propTypes={as:Y.elementType,ownerState:Y.shape({isLandscape:Y.bool.isRequired}).isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const xHe=Re("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),Qce=function(t){const n=_t({props:t,name:"MuiPickersLayout"}),{toolbar:r,content:i,tabs:a,actionBar:s,shortcuts:o}=EHe(n),{sx:l,className:u,isLandscape:c,ref:f,wrapperVariant:h}=n,g=n,b=wHe(g);return _.jsxs(Wce,{ref:f,sx:l,className:dt(u,b.root),ownerState:g,children:[c?o:r,c?r:o,_.jsx(xHe,{className:b.contentWrapper,children:h==="desktop"?_.jsxs(N.Fragment,{children:[i,a]}):_.jsxs(N.Fragment,{children:[a,i]})}),s]})};function THe(e,{disableFuture:t,maxDate:n,timezone:r}){const i=Or();return N.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isBefore(a,n)?a:n);return!i.isAfter(s,e)},[t,n,e,i,r])}function kHe(e,{disablePast:t,minDate:n,timezone:r}){const i=Or();return N.useMemo(()=>{const a=i.dateWithTimezone(void 0,r),s=i.startOfMonth(t&&i.isAfter(a,n)?a:n);return!i.isBefore(s,e)},[t,n,e,i,r])}function aI(e,t,n,r){const i=Or(),a=Wze(e,i),s=N.useCallback(o=>{const l=e==null?null:Qze(e,o,!!t,i);n(l,r??"partial")},[t,e,n,r,i]);return{meridiemMode:a,handleMeridiemChange:s}}const bM=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],yM=["disablePast","disableFuture","minTime","maxTime","shouldDisableClock","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],qce=["minDateTime","maxDateTime"],CHe=[...bM,...yM,...qce],$O=e=>CHe.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{}),AHe=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","readOnly","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef"],OB=(e,t)=>{const n=M({},e),r={},i=a=>{n.hasOwnProperty(a)&&(r[a]=n[a],delete n[a])};return AHe.forEach(i),t==="date"?bM.forEach(i):t==="time"?yM.forEach(i):t==="date-time"&&(bM.forEach(i),yM.forEach(i),qce.forEach(i)),{forwardedProps:n,internalProps:r}},D1=({props:e,value:t,adapter:n})=>{if(t===null)return null;const{shouldDisableDate:r,shouldDisableMonth:i,shouldDisableYear:a,disablePast:s,disableFuture:o,timezone:l}=e,u=n.utils.dateWithTimezone(void 0,l),c=Eo(n.utils,e.minDate,n.defaultDates.minDate),f=Eo(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!!(a&&a(t)):return"shouldDisableYear";case!!(o&&n.utils.isAfterDay(t,u)):return"disableFuture";case!!(s&&n.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&n.utils.isBeforeDay(t,c)):return"minDate";case!!(f&&n.utils.isAfterDay(t,f)):return"maxDate";default:return null}},kT=({adapter:e,value:t,props:n})=>{if(t===null)return null;const{minTime:r,maxTime:i,minutesStep:a,shouldDisableClock:s,shouldDisableTime:o,disableIgnoringDatePartForTimeValidation:l=!1,disablePast:u,disableFuture:c,timezone:f}=n,h=e.utils.dateWithTimezone(void 0,f),g=wT(l,e.utils);switch(!0){case!e.utils.isValid(t):return"invalidDate";case!!(r&&g(r,t)):return"minTime";case!!(i&&g(t,i)):return"maxTime";case!!(c&&e.utils.isAfter(t,h)):return"disableFuture";case!!(u&&e.utils.isBefore(t,h)):return"disablePast";case!!(o&&o(t,"hours")):return"shouldDisableTime-hours";case!!(o&&o(t,"minutes")):return"shouldDisableTime-minutes";case!!(o&&o(t,"seconds")):return"shouldDisableTime-seconds";case!!(s&&s(e.utils.getHours(t),"hours")):return"shouldDisableClock-hours";case!!(s&&s(e.utils.getMinutes(t),"minutes")):return"shouldDisableClock-minutes";case!!(s&&s(e.utils.getSeconds(t),"seconds")):return"shouldDisableClock-seconds";case!!(a&&e.utils.getMinutes(t)%a!==0):return"minutesStep";default:return null}},sI=({props:e,value:t,adapter:n})=>{const r=D1({adapter:n,value:t,props:e});return r!==null?r:kT({adapter:n,value:t,props:e})};function _He(e){return $t("MuiPickersDay",e)}const hg=Ft("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),RHe=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],IHe=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:i,disabled:a,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:o,classes:l}=e,u=s&&!o;return Mt({root:["root",t&&!u&&"selected",a&&"disabled",!n&&"dayWithMargin",!r&&i&&"today",s&&o&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},_He,l)},Gce=({theme:e,ownerState:t})=>M({},e.typography.caption,{width:Yw,height:Yw,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})`:Rn(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${hg.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${hg.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}},[`&.${hg.disabled}:not(.${hg.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${hg.disabled}&.${hg.selected}`]:{opacity:.6}},!t.disableMargin&&{margin:`0 ${nI}px`},t.outsideCurrentMonth&&t.showDaysOutsideCurrentMonth&&{color:(e.vars||e).palette.text.secondary},!t.disableHighlightToday&&t.today&&{[`&:not(.${hg.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}),Yce=(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]},DHe=Re(Cu,{name:"MuiPickersDay",slot:"Root",overridesResolver:Yce})(Gce),NHe=Re("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Yce})(({theme:e,ownerState:t})=>M({},Gce({theme:e,ownerState:t}),{opacity:0,pointerEvents:"none"})),IE=()=>{},PHe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersDay"}),{autoFocus:i=!1,className:a,day:s,disabled:o=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:f,onDaySelect:h,onFocus:g=IE,onBlur:b=IE,onKeyDown:S=IE,onMouseDown:w=IE,onMouseEnter:E=IE,outsideCurrentMonth:x,selected:k=!1,showDaysOutsideCurrentMonth:C=!1,children:I,today:A=!1}=r,D=at(r,RHe),B=M({},r,{autoFocus:i,disabled:o,disableHighlightToday:l,disableMargin:u,selected:k,showDaysOutsideCurrentMonth:C,today:A}),L=IHe(B),F=Or(),W=N.useRef(null),V=Jn(W,n);da(()=>{i&&!o&&!c&&!x&&W.current.focus()},[i,o,c,x]);const Z=H=>{w(H),x&&H.preventDefault()},Q=H=>{o||h(s),x&&H.currentTarget.focus(),f&&f(H)};return x&&!C?_.jsx(NHe,{className:dt(L.root,L.hiddenDaySpacingFiller,a),ownerState:B,role:D.role}):_.jsx(DHe,M({className:dt(L.root,a),ref:V,centerRipple:!0,disabled:o,tabIndex:k?0:-1,onKeyDown:H=>S(H,s),onFocus:H=>g(H,s),onBlur:H=>b(H,s),onMouseEnter:H=>E(H,s),onClick:Q,onMouseDown:Z},D,{ownerState:B,children:I||F.format(s,"dayOfMonth")}))}),MHe=N.memo(PHe),LHe=e=>$t("MuiPickersSlideTransition",e),Ju=Ft("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),$He=["children","className","reduceAnimations","slideDirection","transKey","classes"],FHe=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Mt(r,LHe,t)},BHe=Re(uF,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ju["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ju["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ju.slideEnterActive}`]:t.slideEnterActive},{[`.${Ju.slideExit}`]:t.slideExit},{[`.${Ju["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ju["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},[`& .${Ju["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ju["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ju.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ju.slideExit}`]:{transform:"translate(0%)"},[`& .${Ju["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ju["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function UHe(e){const t=_t({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=at(t,$He),o=FHe(t),l=Ni();if(i)return _.jsx("div",{className:dt(o.root,r),children:n});const u={exit:o.exit,enterActive:o.enterActive,enter:o.enter,exitActive:o.exitActive};return _.jsx(BHe,{className:dt(o.root,r),childFactory:c=>N.cloneElement(c,{classNames:u}),role:"presentation",children:_.jsx(t_e,M({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),a)})}const Zce=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o})=>{const l=Id();return N.useCallback(u=>D1({adapter:l,value:u,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:i,disableFuture:a,disablePast:s,timezone:o}})!==null,[l,e,t,n,r,i,a,s,o])},zHe=e=>$t("MuiDayCalendar",e);Ft("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const jHe=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],HHe=["ownerState"],VHe=e=>{const{classes:t}=e;return Mt({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},zHe,t)},Xce=(Yw+nI*2)*6,WHe=Re("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),QHe=Re("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),qHe=Re(ur,{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})),GHe=Re(ur,{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})),YHe=Re(ur,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>M({},e.typography.caption,{width:Yw,height:Yw,padding:0,margin:`0 ${nI}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),ZHe=Re("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:Xce}),XHe=Re(UHe,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:Xce}),KHe=Re("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),JHe=Re("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${nI}px 0`,display:"flex",justifyContent:"center"});function eVe(e){var t,n,r;let{parentProps:i,day:a,focusableDay:s,selectedDays:o,isDateDisabled:l,currentMonthNumber:u,isViewFocused:c}=e,f=at(e,jHe);const{disabled:h,disableHighlightToday:g,isMonthSwitchingAnimating:b,showDaysOutsideCurrentMonth:S,components:w,componentsProps:E,slots:x,slotProps:k,timezone:C}=i,I=Or(),A=_0(C),D=s!==null&&I.isSameDay(a,s),B=o.some(K=>I.isSameDay(K,a)),L=I.isSameDay(a,A),F=(t=(n=x==null?void 0:x.day)!=null?n:w==null?void 0:w.Day)!=null?t:MHe,W=dr({elementType:F,externalSlotProps:(r=k==null?void 0:k.day)!=null?r:E==null?void 0:E.day,additionalProps:M({disableHighlightToday:g,showDaysOutsideCurrentMonth:S,role:"gridcell",isAnimating:b,"data-timestamp":I.toJsDate(a).valueOf()},f),ownerState:M({},i,{day:a,selected:B})}),V=at(W,HHe),Z=N.useMemo(()=>h||l(a),[h,l,a]),Q=N.useMemo(()=>I.getMonth(a)!==u,[I,a,u]),H=N.useMemo(()=>{const K=I.startOfMonth(I.setMonth(a,u));return S?I.isSameDay(a,I.startOfWeek(K)):I.isSameDay(a,K)},[u,a,S,I]),J=N.useMemo(()=>{const K=I.endOfMonth(I.setMonth(a,u));return S?I.isSameDay(a,I.endOfWeek(K)):I.isSameDay(a,K)},[u,a,S,I]);return _.jsx(F,M({},V,{day:a,disabled:Z,autoFocus:c&&D,today:L,outsideCurrentMonth:Q,isFirstVisibleCell:H,isLastVisibleCell:J,selected:B,tabIndex:D?0:-1,"aria-selected":B,"aria-current":L?"date":void 0}))}function tVe(e){const t=_t({props:e,name:"MuiDayCalendar"}),{onFocusedDayChange:n,className:r,currentMonth:i,selectedDays:a,focusedDay:s,loading:o,onSelectedDaysChange:l,onMonthSwitchingAnimationEnd:u,readOnly:c,reduceAnimations:f,renderLoading:h=()=>_.jsx("span",{children:"..."}),slideDirection:g,TransitionProps:b,disablePast:S,disableFuture:w,minDate:E,maxDate:x,shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:I,dayOfWeekFormatter:A,hasFocus:D,onFocusedViewChange:B,gridLabelId:L,displayWeekNumber:F,fixedWeekNumber:W,autoFocus:V,timezone:Z}=t,Q=_0(Z),H=Or(),J=VHe(t),X=Ni().direction==="rtl",te=A||((Je,pe)=>H.format(pe,"weekdayShort").charAt(0).toUpperCase()),z=Zce({shouldDisableDate:k,shouldDisableMonth:C,shouldDisableYear:I,minDate:E,maxDate:x,disablePast:S,disableFuture:w,timezone:Z}),Te=ps(),[be,ee]=Cs({name:"DayCalendar",state:"hasFocus",controlled:D,default:V??!1}),[ye,Oe]=N.useState(()=>s||Q),ie=on(Je=>{c||l(Je)}),_e=Je=>{z(Je)||(n(Je),Oe(Je),B==null||B(!0),ee(!0))},Ie=on((Je,pe)=>{switch(Je.key){case"ArrowUp":_e(H.addDays(pe,-7)),Je.preventDefault();break;case"ArrowDown":_e(H.addDays(pe,7)),Je.preventDefault();break;case"ArrowLeft":{const le=H.addDays(pe,X?1:-1),he=H.addMonths(pe,X?1:-1),je=z2({utils:H,date:le,minDate:X?le:H.startOfMonth(he),maxDate:X?H.endOfMonth(he):le,isDateDisabled:z,timezone:Z});_e(je||le),Je.preventDefault();break}case"ArrowRight":{const le=H.addDays(pe,X?-1:1),he=H.addMonths(pe,X?-1:1),je=z2({utils:H,date:le,minDate:X?H.startOfMonth(he):le,maxDate:X?le:H.endOfMonth(he),isDateDisabled:z,timezone:Z});_e(je||le),Je.preventDefault();break}case"Home":_e(H.startOfWeek(pe)),Je.preventDefault();break;case"End":_e(H.endOfWeek(pe)),Je.preventDefault();break;case"PageUp":_e(H.addMonths(pe,1)),Je.preventDefault();break;case"PageDown":_e(H.addMonths(pe,-1)),Je.preventDefault();break}}),qe=on((Je,pe)=>_e(pe)),st=on((Je,pe)=>{be&&H.isSameDay(ye,pe)&&(B==null||B(!1))}),Pe=H.getMonth(i),tt=N.useMemo(()=>a.filter(Je=>!!Je).map(Je=>H.startOfDay(Je)),[H,a]),Ve=Pe,Xe=N.useMemo(()=>N.createRef(),[Ve]),et=H.startOfWeek(Q),ft=N.useMemo(()=>{const Je=H.startOfMonth(i),pe=H.endOfMonth(i);return z(ye)||H.isAfterDay(ye,pe)||H.isBeforeDay(ye,Je)?z2({utils:H,date:ye,minDate:Je,maxDate:pe,disablePast:S,disableFuture:w,isDateDisabled:z,timezone:Z}):ye},[i,w,S,ye,z,H,Z]),At=N.useMemo(()=>{const Je=H.setTimezone(i,Z),pe=H.getWeekArray(Je);let le=H.addMonths(Je,1);for(;W&&pe.length{pe.length{var le;const he=H.format(Je,"weekdayShort");return _.jsx(qHe,{variant:"caption",role:"columnheader","aria-label":H.format(H.addDays(et,pe),"weekday"),className:J.weekDayLabel,children:(le=te==null?void 0:te(he,Je))!=null?le:he},he+pe.toString())})]}),o?_.jsx(ZHe,{className:J.loadingContainer,children:h()}):_.jsx(XHe,M({transKey:Ve,onExited:u,reduceAnimations:f,slideDirection:g,className:dt(r,J.slideTransition)},b,{nodeRef:Xe,children:_.jsx(KHe,{ref:Xe,role:"rowgroup",className:J.monthContainer,children:At.map((Je,pe)=>_.jsxs(JHe,{role:"row",className:J.weekContainer,"aria-rowindex":pe+1,children:[F&&_.jsx(YHe,{className:J.weekNumber,role:"rowheader","aria-label":Te.calendarWeekNumberAriaLabelText(H.getWeekNumber(Je[0])),children:Te.calendarWeekNumberText(H.getWeekNumber(Je[0]))}),Je.map((le,he)=>_.jsx(eVe,{parentProps:t,day:le,selectedDays:tt,focusableDay:ft,onKeyDown:Ie,onFocus:qe,onBlur:st,onDaySelect:ie,isDateDisabled:z,currentMonthNumber:Pe,isViewFocused:be,"aria-colindex":he+1},le.toString()))]},`week-${Je[0]}`))})}))]})}const nVe=(e,t,n)=>(r,i)=>{switch(i.type){case"changeMonth":return M({},r,{slideDirection:i.direction,currentMonth:i.newMonth,isMonthSwitchingAnimating:!e});case"finishMonthSwitchingAnimation":return M({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&i.focusedDay!=null&&n.isSameDay(i.focusedDay,r.focusedDay))return r;const a=i.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,i.focusedDay);return M({},r,{focusedDay:i.focusedDay,isMonthSwitchingAnimating:a&&!e&&!i.withoutMonthSwitchingAnimation,currentMonth:a?n.startOfMonth(i.focusedDay):r.currentMonth,slideDirection:i.focusedDay!=null&&n.isAfterDay(i.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},rVe=e=>{const{value:t,referenceDate:n,defaultCalendarMonth:r,disableFuture:i,disablePast:a,disableSwitchToMonthOnDayFocus:s=!1,maxDate:o,minDate:l,onMonthChange:u,reduceAnimations:c,shouldDisableDate:f,timezone:h}=e,g=_0(h),b=Or(),S=N.useRef(nVe(!!c,s,b)).current,w=N.useMemo(()=>{let B=null;return n?B=n:r&&(B=b.startOfMonth(r)),cs.getInitialReferenceValue({value:t,utils:b,timezone:h,props:e,referenceDate:B,granularity:ud.day})},[]),[E,x]=N.useReducer(S,{isMonthSwitchingAnimating:!1,focusedDay:b.isValid(t)?t:g,currentMonth:b.startOfMonth(w),slideDirection:"left"}),k=N.useCallback(B=>{x(M({type:"changeMonth"},B)),u&&u(B.newMonth)},[u]),C=N.useCallback(B=>{const L=B;b.isSameMonth(L,E.currentMonth)||k({newMonth:b.startOfMonth(L),direction:b.isAfterDay(L,E.currentMonth)?"left":"right"})},[E.currentMonth,k,b]),I=Zce({shouldDisableDate:f,minDate:l,maxDate:o,disableFuture:i,disablePast:a,timezone:h}),A=N.useCallback(()=>{x({type:"finishMonthSwitchingAnimation"})},[]),D=on((B,L)=>{I(B)||x({type:"changeFocusedDay",focusedDay:B,withoutMonthSwitchingAnimation:L})});return{referenceDate:w,calendarState:E,changeMonth:C,changeFocusedDay:D,isDateDisabled:I,onMonthSwitchingAnimationEnd:A,handleChangeMonth:k}},iVe=["props","getOpenDialogAriaText"],aVe=["ownerState"],sVe=["ownerState"],SB=e=>{var t,n,r,i,a;let{props:s,getOpenDialogAriaText:o}=e,l=at(e,iVe);const{slots:u,slotProps:c,className:f,sx:h,format:g,formatDensity:b,timezone:S,name:w,label:E,inputRef:x,readOnly:k,disabled:C,autoFocus:I,localeText:A,reduceAnimations:D}=s,B=Or(),L=N.useRef(null),F=N.useRef(null),W=Rd(),V=(t=c==null||(n=c.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:Z,actions:Q,hasUIView:H,layoutProps:J,renderCurrentView:K,shouldRestoreFocus:X,fieldProps:te}=Hce(M({},l,{props:s,inputRef:L,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),z=(r=u.inputAdornment)!=null?r:Fw,Te=dr({elementType:z,externalSlotProps:c==null?void 0:c.inputAdornment,additionalProps:{position:"end"},ownerState:s}),be=at(Te,aVe),ee=(i=u.openPickerButton)!=null?i:Vi,ye=dr({elementType:ee,externalSlotProps:c==null?void 0:c.openPickerButton,additionalProps:{disabled:C||k,onClick:Z?Q.onClose:Q.onOpen,"aria-label":o(te.value,B),edge:be.position},ownerState:s}),Oe=at(ye,sVe),ie=u.openPickerIcon,_e=u.field,Ie=dr({elementType:_e,externalSlotProps:c==null?void 0:c.field,additionalProps:M({},te,V&&{id:W},{readOnly:k,disabled:C,className:f,sx:h,format:g,formatDensity:b,timezone:S,label:E,name:w,autoFocus:I&&!s.open,focused:Z?!0:void 0}),ownerState:s});H&&(Ie.InputProps=M({},Ie.InputProps,{ref:F,[`${be.position}Adornment`]:_.jsx(z,M({},be,{children:_.jsx(ee,M({},Oe,{children:_.jsx(ie,M({},c==null?void 0:c.openPickerIcon))}))}))}));const qe=M({textField:u.textField,clearIcon:u.clearIcon,clearButton:u.clearButton},Ie.slots),st=(a=u.layout)!=null?a:Qce,Pe=Jn(L,Ie.inputRef,x);let tt=W;V&&(E?tt=`${W}-label`:tt=void 0);const Ve=M({},c,{toolbar:M({},c==null?void 0:c.toolbar,{titleId:W}),popper:M({"aria-labelledby":tt},c==null?void 0:c.popper)});return{renderPicker:()=>_.jsxs(Pce,{localeText:A,children:[_.jsx(_e,M({},Ie,{slots:qe,slotProps:Ve,inputRef:Pe})),_.jsx(qje,M({role:"dialog",placement:"bottom-start",anchorEl:F.current},Q,{open:Z,slots:u,slotProps:Ve,shouldRestoreFocus:X,reduceAnimations:D,children:_.jsx(st,M({},J,Ve==null?void 0:Ve.layout,{slots:u,slotProps:Ve,children:K()}))}))]})}},oVe=e=>{var t,n,r;const i=Or(),a=I1();return M({},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:Eo(i,e.minDate,a.minDate),maxDate:Eo(i,e.maxDate,a.maxDate)})},lVe=({props:e,inputRef:t})=>{const n=oVe(e),{forwardedProps:r,internalProps:i}=OB(n,"date");return vB({inputRef:t,forwardedProps:r,internalProps:i,valueManager:cs,fieldValueManager:pB,validator:D1,valueType:"date"})},uVe=["ownerState"],EB=({clearable:e,fieldProps:t,InputProps:n,onClear:r,slots:i,slotProps:a,components:s,componentsProps:o})=>{var l,u,c,f,h,g;const b=ps(),S=(l=(u=i==null?void 0:i.clearButton)!=null?u:s==null?void 0:s.ClearButton)!=null?l:Vi,w=dr({elementType:S,externalSlotProps:(c=a==null?void 0:a.clearButton)!=null?c:o==null?void 0:o.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:b.fieldClearLabel}}),E=at(w,uVe),x=(f=(h=i==null?void 0:i.clearIcon)!=null?h:s==null?void 0:s.ClearIcon)!=null?f:xje,k=dr({elementType:x,externalSlotProps:(g=a==null?void 0:a.clearIcon)!=null?g:o==null?void 0:o.clearIcon,ownerState:{}}),C=M({},n,{endAdornment:_.jsxs(N.Fragment,{children:[e&&_.jsx(Fw,{position:"end",sx:{marginRight:n!=null&&n.endAdornment?-1:-1.5},children:_.jsx(S,M({},E,{onClick:r,children:_.jsx(x,M({fontSize:"small"},k))}))}),n==null?void 0:n.endAdornment]})}),I=M({},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:C,fieldProps:I}},cVe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],dVe=["inputRef"],fVe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],Kce=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiDateField"}),{components:o,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:h}=s,g=at(s,cVe),b=s,S=(r=(i=u==null?void 0:u.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:T0,w=dr({elementType:S,externalSlotProps:(a=c==null?void 0:c.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:b}),{inputRef:E}=w,x=at(w,dVe);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=lVe({props:x,inputRef:E}),{ref:C,onPaste:I,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,fVe),{InputProps:V,fieldProps:Z}=EB({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:o,componentsProps:l});return _.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:I,onKeyDown:A,ref:C})}))}),hVe=e=>$t("MuiPickersFadeTransitionGroup",e);Ft("MuiPickersFadeTransitionGroup",["root"]);const pVe=e=>{const{classes:t}=e;return Mt({root:["root"]},hVe,t)},mVe=Re(uF,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Jce(e){const t=_t({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:i,transKey:a}=t,s=pVe(t),o=Ni();return i?n:_.jsx(mVe,{className:dt(s.root,r),children:_.jsx(ap,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:o.transitions.duration.enteringScreen,enter:o.transitions.duration.enteringScreen,exit:0},children:n},a)})}function gVe(e){return $t("MuiPickersMonth",e)}const sA=Ft("MuiPickersMonth",["root","monthButton","disabled","selected"]),bVe=["autoFocus","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow"],yVe=e=>{const{disabled:t,selected:n,classes:r}=e;return Mt({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},gVe,r)},vVe=Re("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"})),OVe=Re("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${sA.disabled}`]:t.disabled},{[`&.${sA.selected}`]:t.selected}]})(({theme:e})=>M({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})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${sA.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${sA.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),SVe=N.memo(function(t){const n=_t({props:t,name:"MuiPickersMonth"}),{autoFocus:r,children:i,disabled:a,selected:s,value:o,tabIndex:l,onClick:u,onKeyDown:c,onFocus:f,onBlur:h,"aria-current":g,"aria-label":b}=n,S=at(n,bVe),w=N.useRef(null),E=yVe(n);return da(()=>{if(r){var x;(x=w.current)==null||x.focus()}},[r]),_.jsx(vVe,M({className:E.root,ownerState:n},S,{children:_.jsx(OVe,{ref:w,disabled:a,type:"button",role:"radio",tabIndex:a?-1:l,"aria-current":g,"aria-checked":s,"aria-label":b,onClick:x=>u(x,o),onKeyDown:x=>c(x,o),onFocus:x=>f(x,o),onBlur:x=>h(x,o),className:E.monthButton,ownerState:n,children:i})}))});function EVe(e){return $t("MuiMonthCalendar",e)}Ft("MuiMonthCalendar",["root"]);const wVe=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId"],xVe=e=>{const{classes:t}=e;return Mt({root:["root"]},EVe,t)};function TVe(e,t){const n=Or(),r=I1(),i=_t({props:e,name:t});return M({disableFuture:!1,disablePast:!1},i,{minDate:Eo(n,i.minDate,r.minDate),maxDate:Eo(n,i.maxDate,r.maxDate)})}const kVe=Re("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:rI,boxSizing:"border-box"}),CVe=N.forwardRef(function(t,n){const r=TVe(t,"MuiMonthCalendar"),{className:i,value:a,defaultValue:s,referenceDate:o,disabled:l,disableFuture:u,disablePast:c,maxDate:f,minDate:h,onChange:g,shouldDisableMonth:b,readOnly:S,disableHighlightToday:w,autoFocus:E=!1,onMonthFocus:x,hasFocus:k,onFocusedViewChange:C,monthsPerRow:I=3,timezone:A,gridLabelId:D}=r,B=at(r,wVe),{value:L,handleValueChange:F,timezone:W}=LO({name:"MonthCalendar",timezone:A,value:a,defaultValue:s,onChange:g,valueManager:cs}),V=_0(W),Z=CO(),Q=Or(),H=N.useMemo(()=>cs.getInitialReferenceValue({value:L,utils:Q,props:r,timezone:W,referenceDate:o,granularity:ud.month}),[]),J=r,K=xVe(J),X=N.useMemo(()=>Q.getMonth(V),[Q,V]),te=N.useMemo(()=>L!=null?Q.getMonth(L):w?null:Q.getMonth(H),[L,Q,w,H]),[z,Te]=N.useState(()=>te||X),[be,ee]=Cs({name:"MonthCalendar",state:"hasFocus",controlled:k,default:E??!1}),ye=on(Pe=>{ee(Pe),C&&C(Pe)}),Oe=N.useCallback(Pe=>{const tt=Q.startOfMonth(c&&Q.isAfter(V,h)?V:h),Ve=Q.startOfMonth(u&&Q.isBefore(V,f)?V:f),Xe=Q.startOfMonth(Pe);return Q.isBefore(Xe,tt)||Q.isAfter(Xe,Ve)?!0:b?b(Xe):!1},[u,c,f,h,V,b,Q]),ie=on((Pe,tt)=>{if(S)return;const Ve=Q.setMonth(L??H,tt);F(Ve)}),_e=on(Pe=>{Oe(Q.setMonth(L??H,Pe))||(Te(Pe),ye(!0),x&&x(Pe))});N.useEffect(()=>{Te(Pe=>te!==null&&Pe!==te?te:Pe)},[te]);const Ie=on((Pe,tt)=>{switch(Pe.key){case"ArrowUp":_e((12+tt-3)%12),Pe.preventDefault();break;case"ArrowDown":_e((12+tt+3)%12),Pe.preventDefault();break;case"ArrowLeft":_e((12+tt+(Z.direction==="ltr"?-1:1))%12),Pe.preventDefault();break;case"ArrowRight":_e((12+tt+(Z.direction==="ltr"?1:-1))%12),Pe.preventDefault();break}}),qe=on((Pe,tt)=>{_e(tt)}),st=on((Pe,tt)=>{z===tt&&ye(!1)});return _.jsx(kVe,M({ref:n,className:dt(K.root,i),ownerState:J,role:"radiogroup","aria-labelledby":D},B,{children:dB(Q,L??H).map(Pe=>{const tt=Q.getMonth(Pe),Ve=Q.format(Pe,"monthShort"),Xe=Q.format(Pe,"month"),et=tt===te,ft=l||Oe(Pe);return _.jsx(SVe,{selected:et,value:tt,onClick:ie,onKeyDown:Ie,autoFocus:be&&tt===z,disabled:ft,tabIndex:tt===z?0:-1,onFocus:qe,onBlur:st,"aria-current":X===tt?"date":void 0,"aria-label":Xe,monthsPerRow:I,children:Ve},Ve)})}))});function AVe(e){return $t("MuiPickersYear",e)}const oA=Ft("MuiPickersYear",["root","yearButton","selected","disabled"]),_Ve=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow"],RVe=e=>{const{disabled:t,selected:n,classes:r}=e;return Mt({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},AVe,r)},IVe=Re("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"})),DVe=Re("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${oA.disabled}`]:t.disabled},{[`&.${oA.selected}`]:t.selected}]})(({theme:e})=>M({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})`:Rn(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${oA.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${oA.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),NVe=N.memo(function(t){const n=_t({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:i,children:a,disabled:s,selected:o,value:l,tabIndex:u,onClick:c,onKeyDown:f,onFocus:h,onBlur:g,"aria-current":b}=n,S=at(n,_Ve),w=N.useRef(null),E=RVe(n);return N.useEffect(()=>{r&&w.current.focus()},[r]),_.jsx(IVe,M({className:dt(E.root,i),ownerState:n},S,{children:_.jsx(DVe,{ref:w,disabled:s,type:"button",role:"radio",tabIndex:s?-1:u,"aria-current":b,"aria-checked":o,onClick:x=>c(x,l),onKeyDown:x=>f(x,l),onFocus:x=>h(x,l),onBlur:x=>g(x,l),className:E.yearButton,ownerState:n,children:a})}))});function PVe(e){return $t("MuiYearCalendar",e)}Ft("MuiYearCalendar",["root"]);const MVe=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsPerRow","timezone","gridLabelId"],LVe=e=>{const{classes:t}=e;return Mt({root:["root"]},PVe,t)};function $Ve(e,t){var n;const r=Or(),i=I1(),a=_t({props:e,name:t});return M({disablePast:!1,disableFuture:!1},a,{yearsPerRow:(n=a.yearsPerRow)!=null?n:3,minDate:Eo(r,a.minDate,i.minDate),maxDate:Eo(r,a.maxDate,i.maxDate)})}const FVe=Re("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:rI,maxHeight:Dje,boxSizing:"border-box",position:"relative"}),BVe=N.forwardRef(function(t,n){const r=$Ve(t,"MuiYearCalendar"),{autoFocus:i,className:a,value:s,defaultValue:o,referenceDate:l,disabled:u,disableFuture:c,disablePast:f,maxDate:h,minDate:g,onChange:b,readOnly:S,shouldDisableYear:w,disableHighlightToday:E,onYearFocus:x,hasFocus:k,onFocusedViewChange:C,yearsPerRow:I,timezone:A,gridLabelId:D}=r,B=at(r,MVe),{value:L,handleValueChange:F,timezone:W}=LO({name:"YearCalendar",timezone:A,value:s,defaultValue:o,onChange:b,valueManager:cs}),V=_0(W),Z=CO(),Q=Or(),H=N.useMemo(()=>cs.getInitialReferenceValue({value:L,utils:Q,props:r,timezone:W,referenceDate:l,granularity:ud.year}),[]),J=r,K=LVe(J),X=N.useMemo(()=>Q.getYear(V),[Q,V]),te=N.useMemo(()=>L!=null?Q.getYear(L):E?null:Q.getYear(H),[L,Q,E,H]),[z,Te]=N.useState(()=>te||X),[be,ee]=Cs({name:"YearCalendar",state:"hasFocus",controlled:k,default:i??!1}),ye=on(Ve=>{ee(Ve),C&&C(Ve)}),Oe=N.useCallback(Ve=>{if(f&&Q.isBeforeYear(Ve,V)||c&&Q.isAfterYear(Ve,V)||g&&Q.isBeforeYear(Ve,g)||h&&Q.isAfterYear(Ve,h))return!0;if(!w)return!1;const Xe=Q.startOfYear(Ve);return w(Xe)},[c,f,h,g,V,w,Q]),ie=on((Ve,Xe)=>{if(S)return;const et=Q.setYear(L??H,Xe);F(et)}),_e=on(Ve=>{Oe(Q.setYear(L??H,Ve))||(Te(Ve),ye(!0),x==null||x(Ve))});N.useEffect(()=>{Te(Ve=>te!==null&&Ve!==te?te:Ve)},[te]);const Ie=on((Ve,Xe)=>{switch(Ve.key){case"ArrowUp":_e(Xe-I),Ve.preventDefault();break;case"ArrowDown":_e(Xe+I),Ve.preventDefault();break;case"ArrowLeft":_e(Xe+(Z.direction==="ltr"?-1:1)),Ve.preventDefault();break;case"ArrowRight":_e(Xe+(Z.direction==="ltr"?1:-1)),Ve.preventDefault();break}}),qe=on((Ve,Xe)=>{_e(Xe)}),st=on((Ve,Xe)=>{z===Xe&&ye(!1)}),Pe=N.useRef(null),tt=Jn(n,Pe);return N.useEffect(()=>{if(i||Pe.current===null)return;const Ve=Pe.current.querySelector('[tabindex="0"]');if(!Ve)return;const Xe=Ve.offsetHeight,et=Ve.offsetTop,ft=Pe.current.clientHeight,At=Pe.current.scrollTop,Je=et+Xe;Xe>ft||et{const Xe=Q.getYear(Ve),et=Xe===te,ft=u||Oe(Ve);return _.jsx(NVe,{selected:et,value:Xe,onClick:ie,onKeyDown:Ie,autoFocus:be&&Xe===z,disabled:ft,tabIndex:Xe===z?0:-1,onFocus:qe,onBlur:st,"aria-current":X===Xe?"date":void 0,yearsPerRow:I,children:Q.format(Ve,"year")},Q.format(Ve,"year"))})}))}),UVe=e=>$t("MuiPickersCalendarHeader",e),zVe=Ft("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]),jVe=["slots","slotProps","components","componentsProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone"],HVe=["ownerState"],VVe=e=>{const{classes:t}=e;return Mt({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},UVe,t)},WVe=Re("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}),QVe=Re("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>M({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),qVe=Re("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),GVe=Re(Vi,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})(({ownerState:e})=>M({marginRight:"auto"},e.view==="year"&&{[`.${zVe.switchViewIcon}`]:{transform:"rotate(180deg)"}})),YVe=Re(yje,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),ZVe=N.forwardRef(function(t,n){var r,i,a,s;const o=ps(),l=Or(),u=_t({props:t,name:"MuiPickersCalendarHeader"}),{slots:c,slotProps:f,components:h,currentMonth:g,disabled:b,disableFuture:S,disablePast:w,maxDate:E,minDate:x,onMonthChange:k,onViewChange:C,view:I,reduceAnimations:A,views:D,labelId:B,className:L,timezone:F}=u,W=at(u,jVe),V=u,Z=VVe(u),Q=(r=(i=c==null?void 0:c.switchViewButton)!=null?i:h==null?void 0:h.SwitchViewButton)!=null?r:GVe,H=dr({elementType:Q,externalSlotProps:f==null?void 0:f.switchViewButton,additionalProps:{size:"small","aria-label":o.calendarViewSwitchingButtonAriaLabel(I)},ownerState:V,className:Z.switchViewButton}),J=(a=(s=c==null?void 0:c.switchViewIcon)!=null?s:h==null?void 0:h.SwitchViewIcon)!=null?a:YVe,K=dr({elementType:J,externalSlotProps:f==null?void 0:f.switchViewIcon,ownerState:void 0,className:Z.switchViewIcon}),X=at(K,HVe),te=()=>k(l.addMonths(g,1),"left"),z=()=>k(l.addMonths(g,-1),"right"),Te=THe(g,{disableFuture:S,maxDate:E,timezone:F}),be=kHe(g,{disablePast:w,minDate:x,timezone:F}),ee=()=>{if(!(D.length===1||!C||b))if(D.length===2)C(D.find(ye=>ye!==I)||D[0]);else{const ye=D.indexOf(I)!==0?0:1;C(D[ye])}};return D.length===1&&D[0]==="year"?null:_.jsxs(WVe,M({},W,{ownerState:V,className:dt(L,Z.root),ref:n,children:[_.jsxs(QVe,{role:"presentation",onClick:ee,ownerState:V,"aria-live":"polite",className:Z.labelContainer,children:[_.jsx(Jce,{reduceAnimations:A,transKey:l.format(g,"monthAndYear"),children:_.jsx(qVe,{id:B,ownerState:V,className:Z.label,children:l.format(g,"monthAndYear")})}),D.length>1&&!b&&_.jsx(Q,M({},H,{children:_.jsx(J,M({},X))}))]}),_.jsx(ap,{in:I==="day",children:_.jsx(Bce,{slots:c,slotProps:f,onGoToPrevious:z,isPreviousDisabled:be,previousLabel:o.previousMonth,onGoToNext:te,isNextDisabled:Te,nextLabel:o.nextMonth})})]}))}),oI=Re("div")({overflow:"hidden",width:rI,maxHeight:iI,display:"flex",flexDirection:"column",margin:"0 auto"}),XVe=e=>$t("MuiDateCalendar",e);Ft("MuiDateCalendar",["root","viewTransitionContainer"]);const KVe=["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"],JVe=e=>{const{classes:t}=e;return Mt({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},XVe,t)};function eWe(e,t){var n,r,i,a,s,o,l;const u=Or(),c=I1(),f=zce(),h=_t({props:e,name:t});return M({},h,{loading:(n=h.loading)!=null?n:!1,disablePast:(r=h.disablePast)!=null?r:!1,disableFuture:(i=h.disableFuture)!=null?i:!1,openTo:(a=h.openTo)!=null?a:"day",views:(s=h.views)!=null?s:["year","day"],reduceAnimations:(o=h.reduceAnimations)!=null?o:f,renderLoading:(l=h.renderLoading)!=null?l:()=>_.jsx("span",{children:"..."}),minDate:Eo(u,h.minDate,c.minDate),maxDate:Eo(u,h.maxDate,c.maxDate)})}const tWe=Re(oI,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:iI}),nWe=Re(Jce,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),ede=N.forwardRef(function(t,n){var r,i,a;const s=Or(),o=Rd(),l=eWe(t,"MuiDateCalendar"),{autoFocus:u,onViewChange:c,value:f,defaultValue:h,referenceDate:g,disableFuture:b,disablePast:S,defaultCalendarMonth:w,onChange:E,onYearChange:x,onMonthChange:k,reduceAnimations:C,shouldDisableDate:I,shouldDisableMonth:A,shouldDisableYear:D,view:B,views:L,openTo:F,className:W,disabled:V,readOnly:Z,minDate:Q,maxDate:H,disableHighlightToday:J,focusedView:K,onFocusedViewChange:X,showDaysOutsideCurrentMonth:te,fixedWeekNumber:z,dayOfWeekFormatter:Te,components:be,componentsProps:ee,slots:ye,slotProps:Oe,loading:ie,renderLoading:_e,displayWeekNumber:Ie,yearsPerRow:qe,monthsPerRow:st,timezone:Pe}=l,tt=at(l,KVe),{value:Ve,handleValueChange:Xe,timezone:et}=LO({name:"DateCalendar",timezone:Pe,value:f,defaultValue:h,onChange:E,valueManager:cs}),{view:ft,setView:At,focusedView:Je,setFocusedView:pe,goToNextView:le,setValueAndGoToNextView:he}=TT({view:B,views:L,openTo:F,onChange:Xe,onViewChange:c,autoFocus:u,focusedView:K,onFocusedViewChange:X}),{referenceDate:je,calendarState:Ze,changeFocusedDay:We,changeMonth:fe,handleChangeMonth:xe,isDateDisabled:ve,onMonthSwitchingAnimationEnd:De}=rVe({value:Ve,defaultCalendarMonth:w,referenceDate:g,reduceAnimations:C,onMonthChange:k,minDate:Q,maxDate:H,shouldDisableDate:I,disablePast:S,disableFuture:b,timezone:et}),$e=V&&Ve||Q,Ot=V&&Ve||H,Wt=`${o}-grid-label`,Kt=Je!==null,gt=(r=(i=ye==null?void 0:ye.calendarHeader)!=null?i:be==null?void 0:be.CalendarHeader)!=null?r:ZVe,Gt=dr({elementType:gt,externalSlotProps:(a=Oe==null?void 0:Oe.calendarHeader)!=null?a:ee==null?void 0:ee.calendarHeader,additionalProps:{views:L,view:ft,currentMonth:Ze.currentMonth,onViewChange:At,onMonthChange:(Ue,lt)=>xe({newMonth:Ue,direction:lt}),minDate:$e,maxDate:Ot,disabled:V,disablePast:S,disableFuture:b,reduceAnimations:C,timezone:et,labelId:Wt,slots:ye,slotProps:Oe},ownerState:l}),ut=on(Ue=>{const lt=s.startOfMonth(Ue),Nt=s.endOfMonth(Ue),Qt=ve(Ue)?z2({utils:s,date:Ue,minDate:s.isBefore(Q,lt)?lt:Q,maxDate:s.isAfter(H,Nt)?Nt:H,disablePast:S,disableFuture:b,isDateDisabled:ve,timezone:et}):Ue;Qt?(he(Qt,"finish"),k==null||k(lt)):(le(),fe(lt)),We(Qt,!0)}),wt=on(Ue=>{const lt=s.startOfYear(Ue),Nt=s.endOfYear(Ue),Qt=ve(Ue)?z2({utils:s,date:Ue,minDate:s.isBefore(Q,lt)?lt:Q,maxDate:s.isAfter(H,Nt)?Nt:H,disablePast:S,disableFuture:b,isDateDisabled:ve,timezone:et}):Ue;Qt?(he(Qt,"finish"),x==null||x(Qt)):(le(),fe(lt)),We(Qt,!0)}),Xt=on(Ue=>Xe(Ue&&mM(s,Ue,Ve??je),"finish",ft));N.useEffect(()=>{Ve!=null&&s.isValid(Ve)&&fe(Ve)},[Ve]);const Ln=l,$n=JVe(Ln),jn={disablePast:S,disableFuture:b,maxDate:H,minDate:Q},sr={disableHighlightToday:J,readOnly:Z,disabled:V,timezone:et,gridLabelId:Wt},zr=N.useRef(ft);N.useEffect(()=>{zr.current!==ft&&(Je===zr.current&&pe(ft,!0),zr.current=ft)},[Je,pe,ft]);const Me=N.useMemo(()=>[Ve],[Ve]);return _.jsxs(tWe,M({ref:n,className:dt($n.root,W),ownerState:Ln},tt,{children:[_.jsx(gt,M({},Gt)),_.jsx(nWe,{reduceAnimations:C,className:$n.viewTransitionContainer,transKey:ft,ownerState:Ln,children:_.jsxs("div",{children:[ft==="year"&&_.jsx(BVe,M({},jn,sr,{value:Ve,onChange:wt,shouldDisableYear:D,hasFocus:Kt,onFocusedViewChange:Ue=>pe("year",Ue),yearsPerRow:qe,referenceDate:je})),ft==="month"&&_.jsx(CVe,M({},jn,sr,{hasFocus:Kt,className:W,value:Ve,onChange:ut,shouldDisableMonth:A,onFocusedViewChange:Ue=>pe("month",Ue),monthsPerRow:st,referenceDate:je})),ft==="day"&&_.jsx(tVe,M({},Ze,jn,sr,{onMonthSwitchingAnimationEnd:De,onFocusedDayChange:We,reduceAnimations:C,selectedDays:Me,onSelectedDaysChange:Xt,shouldDisableDate:I,shouldDisableMonth:A,shouldDisableYear:D,hasFocus:Kt,onFocusedViewChange:Ue=>pe("day",Ue),showDaysOutsideCurrentMonth:te,fixedWeekNumber:z,dayOfWeekFormatter:Te,displayWeekNumber:Ie,components:be,componentsProps:ee,slots:ye,slotProps:Oe,loading:ie,renderLoading:_e}))]})})]}))}),xc=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:b,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:E,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:I,yearsPerRow:A,defaultCalendarMonth:D,components:B,componentsProps:L,slots:F,slotProps:W,loading:V,renderLoading:Z,disableHighlightToday:Q,readOnly:H,disabled:J,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:X,sx:te,autoFocus:z,fixedWeekNumber:Te,displayWeekNumber:be,timezone:ee})=>_.jsx(ede,{view:e,onViewChange:t,views:n.filter(rv),focusedView:r&&rv(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:b,shouldDisableDate:S,shouldDisableMonth:w,shouldDisableYear:E,reduceAnimations:x,onMonthChange:k,monthsPerRow:C,onYearChange:I,yearsPerRow:A,defaultCalendarMonth:D,components:B,componentsProps:L,slots:F,slotProps:W,loading:V,renderLoading:Z,disableHighlightToday:Q,readOnly:H,disabled:J,showDaysOutsideCurrentMonth:K,dayOfWeekFormatter:X,sx:te,autoFocus:z,fixedWeekNumber:Te,displayWeekNumber:be,timezone:ee}),tde=N.forwardRef(function(t,n){var r,i,a,s;const o=ps(),l=Or(),u=$ce(t,"MuiDesktopDatePicker"),c=M({day:xc,month:xc,year:xc},u.viewRenderers),f=M({},u,{viewRenderers:c,format:qw(l,u,!1),yearsPerRow:(r=u.yearsPerRow)!=null?r:4,slots:M({openPickerIcon:Fce,field:Kce},u.slots),slotProps:M({},u.slotProps,{field:g=>{var b;return M({},S0((b=u.slotProps)==null?void 0:b.field,g),$O(u),{ref:n})},toolbar:M({hidden:!0},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:h}=SB({props:f,valueManager:cs,valueType:"date",getOpenDialogAriaText:(a=(s=f.localeText)==null?void 0:s.openDatePickerDialogue)!=null?a:o.openDatePickerDialogue,validator:D1});return h()});tde.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:TO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,minDate:Y.any,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const rWe=["props","getOpenDialogAriaText"],wB=e=>{var t,n,r;let{props:i,getOpenDialogAriaText:a}=e,s=at(e,rWe);const{slots:o,slotProps:l,className:u,sx:c,format:f,formatDensity:h,timezone:g,name:b,label:S,inputRef:w,readOnly:E,disabled:x,localeText:k}=i,C=Or(),I=N.useRef(null),A=Rd(),D=(t=l==null||(n=l.toolbar)==null?void 0:n.hidden)!=null?t:!1,{open:B,actions:L,layoutProps:F,renderCurrentView:W,fieldProps:V}=Hce(M({},s,{props:i,inputRef:I,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),Z=o.field,Q=dr({elementType:Z,externalSlotProps:l==null?void 0:l.field,additionalProps:M({},V,D&&{id:A},!(x||E)&&{onClick:L.onOpen,onKeyDown:$je(L.onOpen)},{readOnly:E??!0,disabled:x,className:u,sx:c,format:f,formatDensity:h,timezone:g,label:S,name:b}),ownerState:i});Q.inputProps=M({},Q.inputProps,{"aria-label":a(V.value,C)});const H=M({textField:o.textField},Q.slots),J=(r=o.layout)!=null?r:Qce,K=Jn(I,Q.inputRef,w);let X=A;D&&(S?X=`${A}-label`:X=void 0);const te=M({},l,{toolbar:M({},l==null?void 0:l.toolbar,{titleId:A}),mobilePaper:M({"aria-labelledby":X},l==null?void 0:l.mobilePaper)});return{renderPicker:()=>_.jsxs(Pce,{localeText:k,children:[_.jsx(Z,M({},Q,{slots:H,slotProps:te,inputRef:K})),_.jsx(Mje,M({},L,{open:B,slots:o,slotProps:te,children:_.jsx(J,M({},F,te==null?void 0:te.layout,{slots:o,slotProps:te,children:W()}))}))]})}},xB=N.forwardRef(function(t,n){var r,i,a;const s=ps(),o=Or(),l=$ce(t,"MuiMobileDatePicker"),u=M({day:xc,month:xc,year:xc},l.viewRenderers),c=M({},l,{viewRenderers:u,format:qw(o,l,!1),slots:M({field:Kce},l.slots),slotProps:M({},l.slotProps,{field:h=>{var g;return M({},S0((g=l.slotProps)==null?void 0:g.field,h),$O(l),{ref:n})},toolbar:M({hidden:!1},(r=l.slotProps)==null?void 0:r.toolbar)})}),{renderPicker:f}=wB({props:c,valueManager:cs,valueType:"date",getOpenDialogAriaText:(i=(a=c.localeText)==null?void 0:a.openDatePickerDialogue)!=null?i:s.openDatePickerDialogue,validator:D1});return f()});xB.propTypes={autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:TO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,minDate:Y.any,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","month","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","month","year"]),viewRenderers:Y.shape({day:Y.func,month:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","month","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const iWe=["desktopModeMediaQuery"],aWe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:i=gB}=r,a=at(r,iWe);return RO(i,{defaultMatches:!0})?_.jsx(tde,M({ref:n},a)):_.jsx(xB,M({ref:n},a))}),sWe=e=>{var t,n,r,i,a,s,o,l;const u=Or(),c=I1(),h=((t=e.ampm)!=null?t:u.is12HourCycleInCurrentLocale())?u.formats.keyboardDateTime12h:u.formats.keyboardDateTime24h;return M({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:h,disableIgnoringDatePartForTimeValidation:!!(e.minDateTime||e.maxDateTime),minDate:Eo(u,(a=e.minDateTime)!=null?a:e.minDate,c.minDate),maxDate:Eo(u,(s=e.maxDateTime)!=null?s:e.maxDate,c.maxDate),minTime:(o=e.minDateTime)!=null?o:e.minTime,maxTime:(l=e.maxDateTime)!=null?l:e.maxTime})},oWe=({props:e,inputRef:t})=>{const n=sWe(e),{forwardedProps:r,internalProps:i}=OB(n,"date-time");return vB({inputRef:t,forwardedProps:r,internalProps:i,valueManager:cs,fieldValueManager:pB,validator:sI,valueType:"date-time"})},lWe=["components","componentsProps","slots","slotProps","InputProps","inputProps"],uWe=["inputRef"],cWe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],nde=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiDateTimeField"}),{components:o,componentsProps:l,slots:u,slotProps:c,InputProps:f,inputProps:h}=s,g=at(s,lWe),b=s,S=(r=(i=u==null?void 0:u.textField)!=null?i:o==null?void 0:o.TextField)!=null?r:T0,w=dr({elementType:S,externalSlotProps:(a=c==null?void 0:c.textField)!=null?a:l==null?void 0:l.textField,externalForwardedProps:g,ownerState:b}),{inputRef:E}=w,x=at(w,uWe);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=oWe({props:x,inputRef:E}),{ref:C,onPaste:I,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,cWe),{InputProps:V,fieldProps:Z}=EB({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:u,slotProps:c,components:o,componentsProps:l});return _.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:I,onKeyDown:A,ref:C})}))});function dWe(e){return $t("MuiDateTimePickerTabs",e)}Ft("MuiDateTimePickerTabs",["root"]);const fWe=e=>rv(e)?"date":"time",hWe=e=>e==="date"?"day":"hours",pWe=e=>{const{classes:t}=e;return Mt({root:["root"]},dWe,t)},mWe=Re(fLe,{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}`,[`& .${A4.indicator}`]:{bottom:"auto",top:0}}})),gWe=function(t){const n=_t({props:t,name:"MuiDateTimePickerTabs"}),{dateIcon:r=_.jsx(Eje,{}),onViewChange:i,timeIcon:a=_.jsx(wje,{}),view:s,hidden:o=typeof window>"u"||window.innerHeight<667,className:l}=n,u=ps(),c=pWe(n),f=(h,g)=>{i(hWe(g))};return o?null:_.jsxs(mWe,{ownerState:n,variant:"fullWidth",value:fWe(s),onChange:f,className:dt(l,c.root),children:[_.jsx(NZ,{value:"date","aria-label":u.dateTableLabel,icon:_.jsx(N.Fragment,{children:r})}),_.jsx(NZ,{value:"time","aria-label":u.timeTableLabel,icon:_.jsx(N.Fragment,{children:a})})]})};function bWe(e){return $t("MuiDateTimePickerToolbar",e)}const YN=Ft("MuiDateTimePickerToolbar",["root","dateContainer","timeContainer","timeDigitsContainer","separator","timeLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),yWe=["ampm","ampmInClock","value","onChange","view","isLandscape","onViewChange","toolbarFormat","toolbarPlaceholder","views","disabled","readOnly","toolbarVariant"],vWe=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 Mt(i,bWe,t)},rde=Re(mB,{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"}));rde.propTypes={as:Y.elementType,classes:Y.object,className:Y.string,isLandscape:Y.bool.isRequired,isMobileKeyboardViewOpen:Y.bool,landscapeDirection:Y.oneOf(["column","row"]),ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),toggleMobileKeyboardView:Y.func,toolbarTitle:Y.node,viewType:Y.oneOf(["date","time"])};const OWe=Re("div",{name:"MuiDateTimePickerToolbar",slot:"DateContainer",overridesResolver:(e,t)=>t.dateContainer})({display:"flex",flexDirection:"column",alignItems:"flex-start"}),ide=Re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeContainer",overridesResolver:(e,t)=>t.timeContainer})(({theme:e,ownerState:t})=>{const n=t.isLandscape&&t.toolbarVariant!=="desktop"?"column":"row";return M({display:"flex",flexDirection:n},t.toolbarVariant==="desktop"&&M({},!t.isLandscape&&{gap:9,marginRight:4,alignSelf:"flex-end"}),e.direction==="rtl"&&{flexDirection:`${n}-reverse`})}),SWe=Re("div",{name:"MuiDateTimePickerToolbar",slot:"TimeDigitsContainer",overridesResolver:(e,t)=>t.timeDigitsContainer})(({theme:e,ownerState:t})=>M({display:"flex"},t.toolbarVariant==="desktop"&&{gap:1.5},e.direction==="rtl"&&{flexDirection:"row-reverse"}));ide.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const uK=Re(bB,{name:"MuiDateTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})(({ownerState:e})=>({margin:e.toolbarVariant==="desktop"?0:"0 4px 0 2px",cursor:"default"})),EWe=Re("div",{name:"MuiDateTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${YN.ampmLabel}`]:t.ampmLabel},{[`&.${YN.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>M({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",width:"100%"},{[`& .${YN.ampmLabel}`]:{fontSize:17}}));function wWe(e){const t=_t({props:e,name:"MuiDateTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,onChange:a,view:s,isLandscape:o,onViewChange:l,toolbarFormat:u,toolbarPlaceholder:c="––",views:f,disabled:h,readOnly:g,toolbarVariant:b="mobile"}=t,S=at(t,yWe),w=t,E=Or(),{meridiemMode:x,handleMeridiemChange:k}=aI(i,n,a),C=!!(n&&!r),I=b==="desktop",A=ps(),D=Ni(),B=vWe(M({},w,{theme:D})),L=W=>n?E.format(W,"hours12h"):E.format(W,"hours24h"),F=N.useMemo(()=>i?u?E.formatByString(i,u):E.format(i,"shortDate"):c,[i,u,c,E]);return _.jsxs(rde,M({toolbarTitle:A.dateTimePickerToolbarTitle,isLandscape:o,className:B.root},S,{ownerState:w,children:[_.jsxs(OWe,{className:B.dateContainer,ownerState:w,children:[f.includes("year")&&_.jsx(su,{tabIndex:-1,variant:"subtitle1",onClick:()=>l("year"),selected:s==="year",value:i?E.format(i,"year"):"–"}),f.includes("day")&&_.jsx(su,{tabIndex:-1,variant:I?"h5":"h4",onClick:()=>l("day"),selected:s==="day",value:F})]}),_.jsxs(ide,{className:B.timeContainer,ownerState:w,children:[_.jsxs(SWe,{className:B.timeDigitsContainer,ownerState:w,children:[f.includes("hours")&&_.jsx(su,{variant:I?"h5":"h3",width:I&&!o?l2:void 0,onClick:()=>l("hours"),selected:s==="hours",value:i?L(i):"--"}),f.includes("minutes")&&_.jsxs(N.Fragment,{children:[_.jsx(uK,{variant:I?"h5":"h3",value:":",className:B.separator,ownerState:w}),_.jsx(su,{variant:I?"h5":"h3",width:I&&!o?l2:void 0,onClick:()=>l("minutes"),selected:s==="minutes",value:i?E.format(i,"minutes"):"--"})]}),f.includes("seconds")&&_.jsxs(N.Fragment,{children:[_.jsx(uK,{variant:I?"h5":"h3",value:":",className:B.separator,ownerState:w}),_.jsx(su,{variant:I?"h5":"h3",width:I&&!o?l2:void 0,onClick:()=>l("seconds"),selected:s==="seconds",value:i?E.format(i,"seconds"):"--"})]})]}),C&&!I&&_.jsxs(EWe,{className:B.ampmSelection,ownerState:w,children:[_.jsx(su,{variant:"subtitle2",selected:x==="am",typographyClassName:B.ampmLabel,value:gd(E,"am"),onClick:g?void 0:()=>k("am"),disabled:h}),_.jsx(su,{variant:"subtitle2",selected:x==="pm",typographyClassName:B.ampmLabel,value:gd(E,"pm"),onClick:g?void 0:()=>k("pm"),disabled:h})]}),n&&I&&_.jsx(su,{variant:"h5",onClick:()=>l("meridiem"),selected:s==="meridiem",value:i&&x?gd(E,x):"--",width:l2})]})]}))}function ade(e,t){var n,r,i,a,s,o,l,u,c,f,h;const g=Or(),b=I1(),S=_t({props:e,name:t}),w=(n=S.ampm)!=null?n:g.is12HourCycleInCurrentLocale(),E=N.useMemo(()=>{var C;return((C=S.localeText)==null?void 0:C.toolbarTitle)==null?S.localeText:M({},S.localeText,{dateTimePickerToolbarTitle:S.localeText.toolbarTitle})},[S.localeText]),x=(r=S.slots)!=null?r:xT(S.components),k=(i=S.slotProps)!=null?i:S.componentsProps;return M({},S,cB({views:S.views,openTo:S.openTo,defaultViews:["year","day","hours","minutes"],defaultOpenTo:"day"}),{ampm:w,localeText:E,orientation:(a=S.orientation)!=null?a:"portrait",disableIgnoringDatePartForTimeValidation:(s=S.disableIgnoringDatePartForTimeValidation)!=null?s:!!(S.minDateTime||S.maxDateTime||S.disablePast||S.disableFuture),disableFuture:(o=S.disableFuture)!=null?o:!1,disablePast:(l=S.disablePast)!=null?l:!1,minDate:Eo(g,(u=S.minDateTime)!=null?u:S.minDate,b.minDate),maxDate:Eo(g,(c=S.maxDateTime)!=null?c:S.maxDate,b.maxDate),minTime:(f=S.minDateTime)!=null?f:S.minTime,maxTime:(h=S.maxDateTime)!=null?h:S.maxTime,slots:M({toolbar:wWe,tabs:gWe},x),slotProps:M({},k,{toolbar:M({ampm:w},k==null?void 0:k.toolbar)})})}function xWe(e){return $t("MuiMultiSectionDigitalClock",e)}Ft("MuiMultiSectionDigitalClock",["root"]);function TWe(e){return $t("MuiMultiSectionDigitalClockSection",e)}const kWe=Ft("MuiMultiSectionDigitalClockSection",["root","item"]),CWe=["autoFocus","onChange","className","disabled","readOnly","items","active","slots","slotProps","skipDisabled"],AWe=e=>{const{classes:t}=e;return Mt({root:["root"],item:["item"]},TWe,t)},_We=Re(IO,{name:"MuiMultiSectionDigitalClockSection",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>({maxHeight:Uce,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)"}})),RWe=Re(xu,{name:"MuiMultiSectionDigitalClockSection",slot:"Item",overridesResolver:(e,t)=>t.item})(({theme:e})=>({padding:8,margin:"2px 4px",width:l2,justifyContent:"center","&:first-of-type":{marginTop:4},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.hoverOpacity})`:Rn(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})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),IWe=N.forwardRef(function(t,n){var r;const i=N.useRef(null),a=Jn(n,i),s=N.useRef(null),o=_t({props:t,name:"MuiMultiSectionDigitalClockSection"}),{autoFocus:l,onChange:u,className:c,disabled:f,readOnly:h,items:g,active:b,slots:S,slotProps:w,skipDisabled:E}=o,x=at(o,CWe),k=N.useMemo(()=>M({},o,{alreadyRendered:!!i.current}),[o]),C=AWe(k),I=(r=S==null?void 0:S.digitalClockSectionItem)!=null?r:RWe;return N.useEffect(()=>{if(i.current===null)return;const A=i.current.querySelector('[role="option"][aria-selected="true"]');if(b&&l&&A&&A.focus(),!A||s.current===A)return;s.current=A;const D=A.offsetTop;i.current.scrollTop=D-4}),_.jsx(_We,M({ref:a,className:dt(C.root,c),ownerState:k,autoFocusItem:l&&b,role:"listbox"},x,{children:g.map(A=>{var D,B;if(E&&(D=A.isDisabled)!=null&&D.call(A,A.value))return null;const L=A.isSelected(A.value);return _.jsx(I,M({onClick:()=>!h&&u(A.value),selected:L,disabled:f||((B=A.isDisabled)==null?void 0:B.call(A,A.value)),disableRipple:h,role:"option","aria-disabled":h,"aria-label":A.ariaLabel,"aria-selected":L,className:C.item},w==null?void 0:w.digitalClockSectionItem,{children:A.label}),A.label)})}))}),DWe=({now:e,value:t,utils:n,ampm:r,isDisabled:i,resolveAriaLabel:a,timeStep:s})=>{const o=t?n.getHours(t):null,l=[],u=f=>o===null?!1:r?f===12?o===12||o===0:o===f||o-12===f:o===f,c=r?11:23;for(let f=0;f<=c;f+=s){let h=n.format(n.setHours(e,f),r?"hours12h":"hours24h");const g=a(parseInt(h,10).toString());h=n.formatNumber(h),l.push({value:f,label:h,isSelected:u,isDisabled:i,ariaLabel:g})}return l},cK=({value:e,utils:t,isDisabled:n,timeStep:r,resolveLabel:i,resolveAriaLabel:a,hasValue:s=!0})=>{const o=l=>e===null?!1:s&&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:o,ariaLabel:a(c.toString())}})]},TB=({value:e,referenceDate:t,utils:n,props:r,timezone:i})=>{const a=N.useMemo(()=>cs.getInitialReferenceValue({value:e,utils:n,props:r,referenceDate:t,granularity:ud.day,timezone:i,getTodayDate:()=>fB(n,i,"date")}),[]);return e??a},NWe=["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"],PWe=e=>{const{classes:t}=e;return Mt({root:["root"]},xWe,t)},MWe=Re(oI,{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}`})),LWe=N.forwardRef(function(t,n){const r=Or(),i=_t({props:t,name:"MuiMultiSectionDigitalClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),timeSteps:s,autoFocus:o,components:l,componentsProps:u,slots:c,slotProps:f,value:h,defaultValue:g,referenceDate:b,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:E,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:A,onChange:D,view:B,views:L=["hours","minutes"],openTo:F,onViewChange:W,focusedView:V,onFocusedViewChange:Z,className:Q,disabled:H,readOnly:J,skipDisabled:K=!1,timezone:X}=i,te=at(i,NWe),{value:z,handleValueChange:Te,timezone:be}=LO({name:"MultiSectionDigitalClock",timezone:X,value:h,defaultValue:g,onChange:D,valueManager:cs}),ee=ps(),ye=_0(be),Oe=N.useMemo(()=>M({hours:1,minutes:5,seconds:5},s),[s]),ie=TB({value:z,referenceDate:b,utils:r,props:i,timezone:be}),_e=on((le,he,je)=>Te(le,he,je)),Ie=N.useMemo(()=>!a||!L.includes("hours")||L.includes("meridiem")?L:[...L,"meridiem"],[a,L]),{view:qe,setValueAndGoToNextView:st,focusedView:Pe}=TT({view:B,views:Ie,openTo:F,onViewChange:W,onChange:_e,focusedView:V,onFocusedViewChange:Z}),tt=on(le=>{st(le,"finish","meridiem")}),{meridiemMode:Ve,handleMeridiemChange:Xe}=aI(ie,a,tt,"finish"),et=N.useCallback((le,he)=>{const je=wT(S,r),Ze=he==="hours"||he==="minutes"&&Ie.includes("seconds"),We=({start:xe,end:ve})=>!(E&&je(E,ve)||w&&je(xe,w)||x&&je(xe,ye)||k&&je(ye,Ze?ve:xe)),fe=(xe,ve=1)=>{if(xe%ve!==0||I!=null&&I(xe,he))return!1;if(A)switch(he){case"hours":return!A(r.setHours(ie,xe),"hours");case"minutes":return!A(r.setMinutes(ie,xe),"minutes");case"seconds":return!A(r.setSeconds(ie,xe),"seconds");default:return!1}return!0};switch(he){case"hours":{const xe=Gw(le,Ve,a),ve=r.setHours(ie,xe),De=r.setSeconds(r.setMinutes(ve,0),0),$e=r.setSeconds(r.setMinutes(ve,59),59);return!We({start:De,end:$e})||!fe(xe)}case"minutes":{const xe=r.setMinutes(ie,le),ve=r.setSeconds(xe,0),De=r.setSeconds(xe,59);return!We({start:ve,end:De})||!fe(le,C)}case"seconds":{const xe=r.setSeconds(ie,le);return!We({start:xe,end:xe})||!fe(le)}default:throw new Error("not supported")}},[a,ie,S,w,Ve,E,C,I,A,r,x,k,ye,Ie]),ft=N.useCallback(le=>{switch(le){case"hours":return{onChange:he=>{const je=Gw(he,Ve,a);st(r.setHours(ie,je),"finish","hours")},items:DWe({now:ye,value:z,ampm:a,utils:r,isDisabled:he=>H||et(he,"hours"),timeStep:Oe.hours,resolveAriaLabel:ee.hoursClockNumberText})};case"minutes":return{onChange:he=>{st(r.setMinutes(ie,he),"finish","minutes")},items:cK({value:r.getMinutes(ie),utils:r,isDisabled:he=>H||et(he,"minutes"),resolveLabel:he=>r.format(r.setMinutes(ye,he),"minutes"),timeStep:Oe.minutes,hasValue:!!z,resolveAriaLabel:ee.minutesClockNumberText})};case"seconds":return{onChange:he=>{st(r.setSeconds(ie,he),"finish","seconds")},items:cK({value:r.getSeconds(ie),utils:r,isDisabled:he=>H||et(he,"seconds"),resolveLabel:he=>r.format(r.setSeconds(ye,he),"seconds"),timeStep:Oe.seconds,hasValue:!!z,resolveAriaLabel:ee.secondsClockNumberText})};case"meridiem":{const he=gd(r,"am"),je=gd(r,"pm");return{onChange:Xe,items:[{value:"am",label:he,isSelected:()=>!!z&&Ve==="am",ariaLabel:he},{value:"pm",label:je,isSelected:()=>!!z&&Ve==="pm",ariaLabel:je}]}}default:throw new Error(`Unknown view: ${le} found.`)}},[ye,z,a,r,Oe.hours,Oe.minutes,Oe.seconds,ee.hoursClockNumberText,ee.minutesClockNumberText,ee.secondsClockNumberText,Ve,st,ie,H,et,Xe]),At=N.useMemo(()=>Ie.reduce((le,he)=>M({},le,{[he]:ft(he)}),{}),[Ie,ft]),Je=i,pe=PWe(Je);return _.jsx(MWe,M({ref:n,className:dt(pe.root,Q),ownerState:Je,role:"group"},te,{children:Object.entries(At).map(([le,he])=>_.jsx(IWe,{items:he.items,onChange:he.onChange,active:qe===le,autoFocus:o??Pe===le,disabled:H,readOnly:J,slots:c??l,slotProps:f??u,skipDisabled:K,"aria-label":ee.selectViewText(le)},le))}))}),$We=Re("div")({display:"flex",margin:"0 auto"});function FWe(e){return $t("MuiTimeClock",e)}Ft("MuiTimeClock",["root","arrowSwitcher"]);const iO=220,Uf=36,Zw={x:iO/2,y:iO/2},sde={x:Zw.x,y:0},BWe=sde.x-Zw.x,UWe=sde.y-Zw.y,zWe=e=>e*(180/Math.PI),ode=(e,t,n)=>{const r=t-Zw.x,i=n-Zw.y,a=Math.atan2(BWe,UWe)-Math.atan2(r,i);let s=zWe(a);s=Math.round(s/e)*e,s%=360;const o=Math.floor(s/e)||0,l=r**2+i**2,u=Math.sqrt(l);return{value:o,distance:u}},jWe=(e,t,n=1)=>{const r=n*6;let{value:i}=ode(r,e,t);return i=i*n%60,i},HWe=(e,t,n)=>{const{value:r,distance:i}=ode(30,e,t);let a=r||12;return n?a%=12:i{const{classes:t}=e;return Mt({root:["root"],thumb:["thumb"]},VWe,t)},qWe=Re("div",{name:"MuiClockPointer",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e,ownerState:t})=>M({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"])})),GWe=Re("div",{name:"MuiClockPointer",slot:"Thumb",overridesResolver:(e,t)=>t.thumb})(({theme:e,ownerState:t})=>M({width:4,height:4,backgroundColor:(e.vars||e).palette.primary.contrastText,borderRadius:"50%",position:"absolute",top:-21,left:`calc(50% - ${Uf/2}px)`,border:`${(Uf-4)/2}px solid ${(e.vars||e).palette.primary.main}`,boxSizing:"content-box"},t.hasSelected&&{backgroundColor:(e.vars||e).palette.primary.main}));function YWe(e){const t=_t({props:e,name:"MuiClockPointer"}),{className:n,isInner:r,type:i,viewValue:a}=t,s=at(t,WWe),o=N.useRef(i);N.useEffect(()=>{o.current=i},[i]);const l=M({},t,{shouldAnimate:o.current!==i}),u=QWe(l),c=()=>{let h=360/(i==="hours"?12:60)*a;return i==="hours"&&a>12&&(h-=360),{height:Math.round((r?.26:.4)*iO),transform:`rotateZ(${h}deg)`}};return _.jsx(qWe,M({style:c(),className:dt(n,u.root),ownerState:l},s,{children:_.jsx(GWe,{ownerState:l,className:u.thumb})}))}function ZWe(e){return $t("MuiClock",e)}Ft("MuiClock",["root","clock","wrapper","squareMask","pin","amButton","pmButton","meridiemText"]);const XWe=e=>{const{classes:t}=e;return Mt({root:["root"],clock:["clock"],wrapper:["wrapper"],squareMask:["squareMask"],pin:["pin"],amButton:["amButton"],pmButton:["pmButton"],meridiemText:["meridiemText"]},ZWe,t)},KWe=Re("div",{name:"MuiClock",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",justifyContent:"center",alignItems:"center",margin:e.spacing(2)})),JWe=Re("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"}),eQe=Re("div",{name:"MuiClock",slot:"Wrapper",overridesResolver:(e,t)=>t.wrapper})({"&:focus":{outline:"none"}}),tQe=Re("div",{name:"MuiClock",slot:"SquareMask",overridesResolver:(e,t)=>t.squareMask})(({ownerState:e})=>M({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"}})),nQe=Re("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%)"})),rQe=Re(Vi,{name:"MuiClock",slot:"AmButton",overridesResolver:(e,t)=>t.amButton})(({theme:e,ownerState:t})=>M({zIndex:1,position:"absolute",bottom:8,left:8,paddingLeft:4,paddingRight:4,width:Uf},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}})),iQe=Re(Vi,{name:"MuiClock",slot:"PmButton",overridesResolver:(e,t)=>t.pmButton})(({theme:e,ownerState:t})=>M({zIndex:1,position:"absolute",bottom:8,right:8,paddingLeft:4,paddingRight:4,width:Uf},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}})),dK=Re(ur,{name:"MuiClock",slot:"meridiemText",overridesResolver:(e,t)=>t.meridiemText})({overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"});function aQe(e){const t=_t({props:e,name:"MuiClock"}),{ampm:n,ampmInClock:r,autoFocus:i,children:a,value:s,handleMeridiemChange:o,isTimeDisabled:l,meridiemMode:u,minutesStep:c=1,onChange:f,selectedId:h,type:g,viewValue:b,disabled:S,readOnly:w,className:E}=t,x=t,k=Or(),C=ps(),I=N.useRef(!1),A=XWe(x),D=l(b,g),B=!n&&g==="hours"&&(b<1||b>12),L=(te,z)=>{S||w||l(te,g)||f(te,z)},F=(te,z)=>{let{offsetX:Te,offsetY:be}=te;if(Te===void 0){const ye=te.target.getBoundingClientRect();Te=te.changedTouches[0].clientX-ye.left,be=te.changedTouches[0].clientY-ye.top}const ee=g==="seconds"||g==="minutes"?jWe(Te,be,c):HWe(Te,be,!!n);L(ee,z)},W=te=>{I.current=!0,F(te,"shallow")},V=te=>{I.current&&(F(te,"finish"),I.current=!1)},Z=te=>{te.buttons>0&&F(te.nativeEvent,"shallow")},Q=te=>{I.current&&(I.current=!1),F(te.nativeEvent,"finish")},H=N.useMemo(()=>g==="hours"?!0:b%5===0,[g,b]),J=g==="minutes"?c:1,K=N.useRef(null);da(()=>{i&&K.current.focus()},[i]);const X=te=>{if(!I.current)switch(te.key){case"Home":L(0,"partial"),te.preventDefault();break;case"End":L(g==="minutes"?59:23,"partial"),te.preventDefault();break;case"ArrowUp":L(b+J,"partial"),te.preventDefault();break;case"ArrowDown":L(b-J,"partial"),te.preventDefault();break}};return _.jsxs(KWe,{className:dt(E,A.root),children:[_.jsxs(JWe,{className:A.clock,children:[_.jsx(tQe,{onTouchMove:W,onTouchEnd:V,onMouseUp:Q,onMouseMove:Z,ownerState:{disabled:S},className:A.squareMask}),!D&&_.jsxs(N.Fragment,{children:[_.jsx(nQe,{className:A.pin}),s!=null&&_.jsx(YWe,{type:g,viewValue:b,isInner:B,hasSelected:H})]}),_.jsx(eQe,{"aria-activedescendant":h,"aria-label":C.clockLabelText(g,s,k),ref:K,role:"listbox",onKeyDown:X,tabIndex:0,className:A.wrapper,children:a})]}),n&&r&&_.jsxs(N.Fragment,{children:[_.jsx(rQe,{onClick:w?void 0:()=>o("am"),disabled:S||u===null,ownerState:x,className:A.amButton,title:gd(k,"am"),children:_.jsx(dK,{variant:"caption",className:A.meridiemText,children:gd(k,"am")})}),_.jsx(iQe,{disabled:S||u===null,onClick:w?void 0:()=>o("pm"),ownerState:x,className:A.pmButton,title:gd(k,"pm"),children:_.jsx(dK,{variant:"caption",className:A.meridiemText,children:gd(k,"pm")})})]})]})}function sQe(e){return $t("MuiClockNumber",e)}const lA=Ft("MuiClockNumber",["root","selected","disabled"]),oQe=["className","disabled","index","inner","label","selected"],lQe=e=>{const{classes:t,selected:n,disabled:r}=e;return Mt({root:["root",n&&"selected",r&&"disabled"]},sQe,t)},uQe=Re("span",{name:"MuiClockNumber",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`&.${lA.disabled}`]:t.disabled},{[`&.${lA.selected}`]:t.selected}]})(({theme:e,ownerState:t})=>M({height:Uf,width:Uf,position:"absolute",left:`calc((100% - ${Uf}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},[`&.${lA.selected}`]:{color:(e.vars||e).palette.primary.contrastText},[`&.${lA.disabled}`]:{pointerEvents:"none",color:(e.vars||e).palette.text.disabled}},t.inner&&M({},e.typography.body2,{color:(e.vars||e).palette.text.secondary})));function lde(e){const t=_t({props:e,name:"MuiClockNumber"}),{className:n,disabled:r,index:i,inner:a,label:s,selected:o}=t,l=at(t,oQe),u=t,c=lQe(u),f=i%12/12*Math.PI*2-Math.PI/2,h=(iO-Uf-2)/2*(a?.65:1),g=Math.round(Math.cos(f)*h),b=Math.round(Math.sin(f)*h);return _.jsx(uQe,M({className:dt(n,c.root),"aria-disabled":r?!0:void 0,"aria-selected":o?!0:void 0,role:"option",style:{transform:`translate(${g}px, ${b+(iO-Uf)/2}px`},ownerState:u},l,{children:s}))}const cQe=({ampm:e,value:t,getClockNumberText:n,isDisabled:r,selectedId:i,utils:a})=>{const s=t?a.getHours(t):null,o=[],l=e?1:0,u=e?12:23,c=f=>s===null?!1:e?f===12?s===12||s===0:s===f||s-12===f:s===f;for(let f=l;f<=u;f+=1){let h=f.toString();f===0&&(h="00");const g=!e&&(f===0||f>12);h=a.formatNumber(h);const b=c(f);o.push(_.jsx(lde,{id:b?i:void 0,index:f,inner:g,selected:b,disabled:r(f),label:h,"aria-label":n(h)},f))}return o},fK=({utils:e,value:t,isDisabled:n,getClockNumberText:r,selectedId:i})=>{const a=e.formatNumber;return[[5,a("05")],[10,a("10")],[15,a("15")],[20,a("20")],[25,a("25")],[30,a("30")],[35,a("35")],[40,a("40")],[45,a("45")],[50,a("50")],[55,a("55")],[0,a("00")]].map(([s,o],l)=>{const u=s===t;return _.jsx(lde,{label:o,id:u?i:void 0,index:l+1,inner:!1,disabled:n(s),selected:u,"aria-label":r(o)},s)})},dQe=["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"],fQe=e=>{const{classes:t}=e;return Mt({root:["root"],arrowSwitcher:["arrowSwitcher"]},FWe,t)},hQe=Re(oI,{name:"MuiTimeClock",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",position:"relative"}),pQe=Re(Bce,{name:"MuiTimeClock",slot:"ArrowSwitcher",overridesResolver:(e,t)=>t.arrowSwitcher})({position:"absolute",right:12,top:15}),mQe=["hours","minutes"],gQe=N.forwardRef(function(t,n){const r=Or(),i=_t({props:t,name:"MuiTimeClock"}),{ampm:a=r.is12HourCycleInCurrentLocale(),ampmInClock:s=!1,autoFocus:o,components:l,componentsProps:u,slots:c,slotProps:f,value:h,defaultValue:g,referenceDate:b,disableIgnoringDatePartForTimeValidation:S=!1,maxTime:w,minTime:E,disableFuture:x,disablePast:k,minutesStep:C=1,shouldDisableClock:I,shouldDisableTime:A,showViewSwitcher:D,onChange:B,view:L,views:F=mQe,openTo:W,onViewChange:V,focusedView:Z,onFocusedViewChange:Q,className:H,disabled:J,readOnly:K,timezone:X}=i,te=at(i,dQe),z=c??xT(l),Te=f??u,{value:be,handleValueChange:ee,timezone:ye}=LO({name:"TimeClock",timezone:X,value:h,defaultValue:g,onChange:B,valueManager:cs}),Oe=TB({value:be,referenceDate:b,utils:r,props:i,timezone:ye}),ie=ps(),_e=_0(ye),{view:Ie,setView:qe,previousView:st,nextView:Pe,setValueAndGoToNextView:tt}=TT({view:L,views:F,openTo:W,onViewChange:V,onChange:ee,focusedView:Z,onFocusedViewChange:Q}),{meridiemMode:Ve,handleMeridiemChange:Xe}=aI(Oe,a,tt),et=N.useCallback((le,he)=>{const je=wT(S,r),Ze=he==="hours"||he==="minutes"&&F.includes("seconds"),We=({start:xe,end:ve})=>!(E&&je(E,ve)||w&&je(xe,w)||x&&je(xe,_e)||k&&je(_e,Ze?ve:xe)),fe=(xe,ve=1)=>{if(xe%ve!==0||I!=null&&I(xe,he))return!1;if(A)switch(he){case"hours":return!A(r.setHours(Oe,xe),"hours");case"minutes":return!A(r.setMinutes(Oe,xe),"minutes");case"seconds":return!A(r.setSeconds(Oe,xe),"seconds");default:return!1}return!0};switch(he){case"hours":{const xe=Gw(le,Ve,a),ve=r.setHours(Oe,xe),De=r.setSeconds(r.setMinutes(ve,0),0),$e=r.setSeconds(r.setMinutes(ve,59),59);return!We({start:De,end:$e})||!fe(xe)}case"minutes":{const xe=r.setMinutes(Oe,le),ve=r.setSeconds(xe,0),De=r.setSeconds(xe,59);return!We({start:ve,end:De})||!fe(le,C)}case"seconds":{const xe=r.setSeconds(Oe,le);return!We({start:xe,end:xe})||!fe(le)}default:throw new Error("not supported")}},[a,Oe,S,w,Ve,E,C,I,A,r,x,k,_e,F]),ft=Rd(),At=N.useMemo(()=>{switch(Ie){case"hours":{const le=(he,je)=>{const Ze=Gw(he,Ve,a);tt(r.setHours(Oe,Ze),je)};return{onChange:le,viewValue:r.getHours(Oe),children:cQe({value:be,utils:r,ampm:a,onChange:le,getClockNumberText:ie.hoursClockNumberText,isDisabled:he=>J||et(he,"hours"),selectedId:ft})}}case"minutes":{const le=r.getMinutes(Oe),he=(je,Ze)=>{tt(r.setMinutes(Oe,je),Ze)};return{viewValue:le,onChange:he,children:fK({utils:r,value:le,onChange:he,getClockNumberText:ie.minutesClockNumberText,isDisabled:je=>J||et(je,"minutes"),selectedId:ft})}}case"seconds":{const le=r.getSeconds(Oe),he=(je,Ze)=>{tt(r.setSeconds(Oe,je),Ze)};return{viewValue:le,onChange:he,children:fK({utils:r,value:le,onChange:he,getClockNumberText:ie.secondsClockNumberText,isDisabled:je=>J||et(je,"seconds"),selectedId:ft})}}default:throw new Error("You must provide the type for ClockView")}},[Ie,r,be,a,ie.hoursClockNumberText,ie.minutesClockNumberText,ie.secondsClockNumberText,Ve,tt,Oe,et,ft,J]),Je=i,pe=fQe(Je);return _.jsxs(hQe,M({ref:n,className:dt(pe.root,H),ownerState:Je},te,{children:[_.jsx(aQe,M({autoFocus:o??!!Z,ampmInClock:s&&F.includes("hours"),value:be,type:Ie,ampm:a,minutesStep:C,isTimeDisabled:et,meridiemMode:Ve,handleMeridiemChange:Xe,selectedId:ft,disabled:J,readOnly:K},At)),D&&_.jsx(pQe,{className:pe.arrowSwitcher,slots:z,slotProps:Te,onGoToPrevious:()=>qe(st),isPreviousDisabled:!st,previousLabel:ie.openPreviousView,onGoToNext:()=>qe(Pe),isNextDisabled:!Pe,nextLabel:ie.openNextView,ownerState:Je})]}))});function bQe(e){return $t("MuiDigitalClock",e)}const yQe=Ft("MuiDigitalClock",["root","list","item"]),vQe=["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"],OQe=e=>{const{classes:t}=e;return Mt({root:["root"],list:["list"],item:["item"]},bQe,t)},SQe=Re(oI,{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:Uce})),EQe=Re(IO,{name:"MuiDigitalClock",slot:"List",overridesResolver:(e,t)=>t.list})({padding:0}),wQe=Re(xu,{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})`:Rn(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})`:Rn(e.palette.primary.main,e.palette.action.focusOpacity)}})),xQe=N.forwardRef(function(t,n){var r,i,a;const s=Or(),o=N.useRef(null),l=Jn(n,o),u=_t({props:t,name:"MuiDigitalClock"}),{ampm:c=s.is12HourCycleInCurrentLocale(),timeStep:f=30,autoFocus:h,components:g,componentsProps:b,slots:S,slotProps:w,value:E,defaultValue:x,referenceDate:k,disableIgnoringDatePartForTimeValidation:C=!1,maxTime:I,minTime:A,disableFuture:D,disablePast:B,minutesStep:L=1,shouldDisableClock:F,shouldDisableTime:W,onChange:V,view:Z,openTo:Q,onViewChange:H,focusedView:J,onFocusedViewChange:K,className:X,disabled:te,readOnly:z,views:Te=["hours"],skipDisabled:be=!1,timezone:ee}=u,ye=at(u,vQe),{value:Oe,handleValueChange:ie,timezone:_e}=LO({name:"DigitalClock",timezone:ee,value:E,defaultValue:x,onChange:V,valueManager:cs}),Ie=ps(),qe=_0(_e),st=N.useMemo(()=>M({},u,{alreadyRendered:!!o.current}),[u]),Pe=OQe(st),tt=(r=(i=S==null?void 0:S.digitalClockItem)!=null?i:g==null?void 0:g.DigitalClockItem)!=null?r:wQe,Ve=dr({elementType:tt,externalSlotProps:(a=w==null?void 0:w.digitalClockItem)!=null?a:b==null?void 0:b.digitalClockItem,ownerState:{},className:Pe.item}),Xe=TB({value:Oe,referenceDate:k,utils:s,props:u,timezone:_e}),et=on(le=>ie(le,"finish","hours")),{setValueAndGoToNextView:ft}=TT({view:Z,views:Te,openTo:Q,onViewChange:H,onChange:et,focusedView:J,onFocusedViewChange:K}),At=on(le=>{ft(le,"finish")});N.useEffect(()=>{if(o.current===null)return;const le=o.current.querySelector('[role="listbox"] [role="option"][aria-selected="true"]');if(!le)return;const he=le.offsetTop;o.current.scrollTop=he-4});const Je=N.useCallback(le=>{const he=wT(C,s),je=()=>!(A&&he(A,le)||I&&he(le,I)||D&&he(le,qe)||B&&he(qe,le)),Ze=()=>s.getMinutes(le)%L!==0||F!=null&&F(s.toJsDate(le).getTime(),"hours")?!1:W?!W(le,"hours"):!0;return!je()||!Ze()},[C,s,A,I,D,qe,B,L,F,W]),pe=N.useMemo(()=>{const le=s.startOfDay(Xe);return[le,...Array.from({length:Math.ceil(24*60/f)-1},(he,je)=>s.addMinutes(le,f*(je+1)))]},[Xe,f,s]);return _.jsx(SQe,M({ref:l,className:dt(Pe.root,X),ownerState:st},ye,{children:_.jsx(EQe,{autoFocusItem:h||!!J,role:"listbox","aria-label":Ie.timePickerToolbarTitle,className:Pe.list,children:pe.map(le=>{if(be&&Je(le))return null;const he=s.isEqual(le,Oe);return _.jsx(tt,M({onClick:()=>!z&&At(le),selected:he,disabled:te||Je(le),disableRipple:z,role:"option","aria-disabled":z,"aria-selected":he},Ve,{children:s.format(le,c?"fullTime12h":"fullTime24h")}),s.toISO(le))})})}))}),av=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,ampmInClock:k,components:C,componentsProps:I,slots:A,slotProps:D,readOnly:B,disabled:L,sx:F,autoFocus:W,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:Z,timezone:Q})=>_.jsx(gQe,{view:e,onViewChange:t,focusedView:n&&rO(n)?n:null,onFocusedViewChange:r,views:i.filter(rO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,ampmInClock:k,components:C,componentsProps:I,slots:A,slotProps:D,readOnly:B,disabled:L,sx:F,autoFocus:W,showViewSwitcher:V,disableIgnoringDatePartForTimeValidation:Z,timezone:Q}),ude=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:I,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q})=>_.jsx(xQe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(rO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:I,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeStep:V==null?void 0:V.minutes,skipDisabled:Z,timezone:Q}),vM=({view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:I,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q})=>_.jsx(LWe,{view:e,onViewChange:t,focusedView:n,onFocusedViewChange:r,views:i.filter(rO),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:g,maxTime:b,shouldDisableTime:S,shouldDisableClock:w,minutesStep:E,ampm:x,components:k,componentsProps:C,slots:I,slotProps:A,readOnly:D,disabled:B,sx:L,autoFocus:F,disableIgnoringDatePartForTimeValidation:W,timeSteps:V,skipDisabled:Z,timezone:Q}),pg=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,minTime:b,maxDate:S,maxTime:w,shouldDisableDate:E,shouldDisableMonth:x,shouldDisableYear:k,shouldDisableTime:C,shouldDisableClock:I,reduceAnimations:A,minutesStep:D,ampm:B,onMonthChange:L,monthsPerRow:F,onYearChange:W,yearsPerRow:V,defaultCalendarMonth:Z,components:Q,componentsProps:H,slots:J,slotProps:K,loading:X,renderLoading:te,disableHighlightToday:z,readOnly:Te,disabled:be,showDaysOutsideCurrentMonth:ee,dayOfWeekFormatter:ye,sx:Oe,autoFocus:ie,fixedWeekNumber:_e,displayWeekNumber:Ie,timezone:qe,disableIgnoringDatePartForTimeValidation:st,timeSteps:Pe,skipDisabled:tt,timeViewsCount:Ve,shouldRenderTimeInASingleColumn:Xe})=>{var et,ft;const At=!!((et=S0((ft=K==null?void 0:K.actionBar)!=null?ft:H==null?void 0:H.actionBar,{}))!=null&&(et=et.actions)!=null&&et.length),Je={view:am(e)?e:"hours",onViewChange:t,focusedView:r&&am(r)?r:null,onFocusedViewChange:i,views:n.filter(am),value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minTime:b,maxTime:w,shouldDisableTime:C,shouldDisableClock:I,minutesStep:D,ampm:B,components:Q,componentsProps:H,slots:J,slotProps:K,readOnly:Te,disabled:be,autoFocus:ie,disableIgnoringDatePartForTimeValidation:st,timeSteps:Pe,skipDisabled:tt,timezone:qe};return _.jsxs(N.Fragment,{children:[_.jsxs($We,{children:[_.jsx(ede,{view:rv(e)?e:"day",onViewChange:t,views:n.filter(rv),focusedView:r&&rv(r)?r:null,onFocusedViewChange:i,value:a,defaultValue:s,referenceDate:o,onChange:l,className:u,classes:c,disableFuture:f,disablePast:h,minDate:g,maxDate:S,shouldDisableDate:E,shouldDisableMonth:x,shouldDisableYear:k,reduceAnimations:A,onMonthChange:L,monthsPerRow:F,onYearChange:W,yearsPerRow:V,defaultCalendarMonth:Z,components:Q,componentsProps:H,slots:J,slotProps:K,loading:X,renderLoading:te,disableHighlightToday:z,readOnly:Te,disabled:be,showDaysOutsideCurrentMonth:ee,dayOfWeekFormatter:ye,sx:Oe,autoFocus:ie,fixedWeekNumber:_e,displayWeekNumber:Ie,timezone:qe}),Ve>0&&_.jsxs(N.Fragment,{children:[_.jsx(h1,{orientation:"vertical"}),Xe?ude(M({},Je,{view:"hours",views:["hours"],focusedView:r&&am(r)?"hours":null,sx:M({width:"auto",[`&.${yQe.root}`]:{maxHeight:iI}},Array.isArray(Oe)?Oe:[Oe])})):vM(M({},Je,{view:am(e)?e:"hours",views:n.filter(am),focusedView:r&&am(r)?r:null,sx:M({borderBottom:0,width:"auto",[`.${kWe.root}`]:{maxHeight:"100%"}},Array.isArray(Oe)?Oe:[Oe])}))]})]}),At&&_.jsx(h1,{})]})},TQe=["views","format"],cde=(e,t)=>{let{views:n,format:r}=t,i=at(t,TQe);if(r)return r;const a=[],s=[];if(n.forEach(u=>{rO(u)?s.push(u):a.push(u)}),s.length===0)return qw(e,M({views:a},i),!1);if(a.length===0)return S3(e,M({views:s},i));const o=S3(e,M({views:s},i));return`${qw(e,M({views:a},i),!1)} ${o}`},kQe=(e,t,n)=>n?t.filter(r=>!am(r)||r==="hours"):e?[...t,"meridiem"]:t,CQe=(e,t)=>{var n,r;return 24*60/(((n=e.hours)!=null?n:1)*((r=e.minutes)!=null?r:5))<=t};function dde({thresholdToRenderTimeInASingleColumn:e,ampm:t,timeSteps:n,views:r}){const i=e??24,a=M({hours:1,minutes:5,seconds:5},n),s=CQe(a,i);return{thresholdToRenderTimeInASingleColumn:i,timeSteps:a,shouldRenderTimeInASingleColumn:s,views:kQe(t,r,s)}}const fde=N.forwardRef(function(t,n){var r,i,a,s,o,l,u;const c=ps(),f=Or(),h=ade(t,"MuiDesktopDateTimePicker"),{shouldRenderTimeInASingleColumn:g,thresholdToRenderTimeInASingleColumn:b,views:S,timeSteps:w}=dde(h),E=!h.viewRenderers||Object.keys(h.viewRenderers).length===0,x=E?{day:pg,month:pg,year:pg,hours:pg,minutes:pg,seconds:pg,meridiem:pg}:M({day:xc,month:xc,year:xc,hours:null,minutes:null,seconds:null,meridiem:null},h.viewRenderers),k=(r=h.ampmInClock)!=null?r:!0,C=E?["accept"]:[],I=M({},h,{viewRenderers:x,format:cde(f,h),views:S,yearsPerRow:(i=h.yearsPerRow)!=null?i:4,ampmInClock:k,timeSteps:w,thresholdToRenderTimeInASingleColumn:b,shouldRenderTimeInASingleColumn:g,slots:M({field:nde,openPickerIcon:Fce},h.slots),slotProps:M({},h.slotProps,{field:D=>{var B;return M({},S0((B=h.slotProps)==null?void 0:B.field,D),$O(h),{ref:n})},toolbar:M({hidden:!0,ampmInClock:k,toolbarVariant:E?"desktop":"mobile"},(a=h.slotProps)==null?void 0:a.toolbar),tabs:M({hidden:!0},(s=h.slotProps)==null?void 0:s.tabs),actionBar:M({actions:C},(o=h.slotProps)==null?void 0:o.actionBar)})}),{renderPicker:A}=SB({props:I,valueManager:cs,valueType:"date-time",getOpenDialogAriaText:(l=(u=I.localeText)==null?void 0:u.openDatePickerDialogue)!=null?l:c.openDatePickerDialogue,validator:sI});return A()});fde.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:TO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,maxDateTime:Y.any,maxTime:Y.any,minDate:Y.any,minDateTime:Y.any,minTime:Y.any,minutesStep:Y.number,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableTime:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,skipDisabled:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),thresholdToRenderTimeInASingleColumn:Y.number,timeSteps:Y.shape({hours:Y.number,minutes:Y.number,seconds:Y.number}),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","hours","meridiem","minutes","month","seconds","year"]),viewRenderers:Y.shape({day:Y.func,hours:Y.func,meridiem:Y.func,minutes:Y.func,month:Y.func,seconds:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const hde=N.forwardRef(function(t,n){var r,i,a,s,o;const l=ps(),u=Or(),c=ade(t,"MuiMobileDateTimePicker"),f=M({day:xc,month:xc,year:xc,hours:av,minutes:av,seconds:av},c.viewRenderers),h=(r=c.ampmInClock)!=null?r:!1,g=M({},c,{viewRenderers:f,format:cde(u,c),ampmInClock:h,slots:M({field:nde},c.slots),slotProps:M({},c.slotProps,{field:S=>{var w;return M({},S0((w=c.slotProps)==null?void 0:w.field,S),$O(c),{ref:n})},toolbar:M({hidden:!1,ampmInClock:h},(i=c.slotProps)==null?void 0:i.toolbar),tabs:M({hidden:!1},(a=c.slotProps)==null?void 0:a.tabs)})}),{renderPicker:b}=wB({props:g,valueManager:cs,valueType:"date-time",getOpenDialogAriaText:(s=(o=g.localeText)==null?void 0:o.openDatePickerDialogue)!=null?s:l.openDatePickerDialogue,validator:sI});return b()});hde.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,dayOfWeekFormatter:Y.func,defaultCalendarMonth:Y.any,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableHighlightToday:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,displayWeekNumber:Y.bool,fixedWeekNumber:Y.number,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:TO,label:Y.node,loading:Y.bool,localeText:Y.object,maxDate:Y.any,maxDateTime:Y.any,maxTime:Y.any,minDate:Y.any,minDateTime:Y.any,minTime:Y.any,minutesStep:Y.number,monthsPerRow:Y.oneOf([3,4]),name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onMonthChange:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,onYearChange:Y.func,open:Y.bool,openTo:Y.oneOf(["day","hours","minutes","month","seconds","year"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,renderLoading:Y.func,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableDate:Y.func,shouldDisableMonth:Y.func,shouldDisableTime:Y.func,shouldDisableYear:Y.func,showDaysOutsideCurrentMonth:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["day","hours","minutes","month","seconds","year"]),viewRenderers:Y.shape({day:Y.func,hours:Y.func,minutes:Y.func,month:Y.func,seconds:Y.func,year:Y.func}),views:Y.arrayOf(Y.oneOf(["day","hours","minutes","month","seconds","year"]).isRequired),yearsPerRow:Y.oneOf([3,4])};const AQe=["desktopModeMediaQuery"],_Qe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDateTimePicker"}),{desktopModeMediaQuery:i=gB}=r,a=at(r,AQe);return RO(i,{defaultMatches:!0})?_.jsx(fde,M({ref:n},a)):_.jsx(hde,M({ref:n},a))}),RQe=e=>{var t,n,r,i;const a=Or(),o=((t=e.ampm)!=null?t:a.is12HourCycleInCurrentLocale())?a.formats.fullTime12h:a.formats.fullTime24h;return M({},e,{disablePast:(n=e.disablePast)!=null?n:!1,disableFuture:(r=e.disableFuture)!=null?r:!1,format:(i=e.format)!=null?i:o})},IQe=({props:e,inputRef:t})=>{const n=RQe(e),{forwardedProps:r,internalProps:i}=OB(n,"time");return vB({inputRef:t,forwardedProps:r,internalProps:i,valueManager:cs,fieldValueManager:pB,validator:kT,valueType:"time"})},DQe=["slots","slotProps","components","componentsProps","InputProps","inputProps"],NQe=["inputRef"],PQe=["ref","onPaste","onKeyDown","inputMode","readOnly","clearable","onClear"],pde=N.forwardRef(function(t,n){var r,i,a;const s=_t({props:t,name:"MuiTimeField"}),{slots:o,slotProps:l,components:u,componentsProps:c,InputProps:f,inputProps:h}=s,g=at(s,DQe),b=s,S=(r=(i=o==null?void 0:o.textField)!=null?i:u==null?void 0:u.TextField)!=null?r:T0,w=dr({elementType:S,externalSlotProps:(a=l==null?void 0:l.textField)!=null?a:c==null?void 0:c.textField,externalForwardedProps:g,ownerState:b}),{inputRef:E}=w,x=at(w,NQe);x.inputProps=M({},h,x.inputProps),x.InputProps=M({},f,x.InputProps);const k=IQe({props:x,inputRef:E}),{ref:C,onPaste:I,onKeyDown:A,inputMode:D,readOnly:B,clearable:L,onClear:F}=k,W=at(k,PQe),{InputProps:V,fieldProps:Z}=EB({onClear:F,clearable:L,fieldProps:W,InputProps:W.InputProps,slots:o,slotProps:l,components:u,componentsProps:c});return _.jsx(S,M({ref:n},Z,{InputProps:M({},V,{readOnly:B}),inputProps:M({},W.inputProps,{inputMode:D,onPaste:I,onKeyDown:A,ref:C})}))});function MQe(e){return $t("MuiTimePickerToolbar",e)}const j2=Ft("MuiTimePickerToolbar",["root","separator","hourMinuteLabel","hourMinuteLabelLandscape","hourMinuteLabelReverse","ampmSelection","ampmLandscape","ampmLabel"]),LQe=["ampm","ampmInClock","value","isLandscape","onChange","view","onViewChange","views","disabled","readOnly"],$Qe=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 Mt(i,MQe,r)},FQe=Re(mB,{name:"MuiTimePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),BQe=Re(bB,{name:"MuiTimePickerToolbar",slot:"Separator",overridesResolver:(e,t)=>t.separator})({outline:0,margin:"0 4px 0 2px",cursor:"default"}),mde=Re("div",{name:"MuiTimePickerToolbar",slot:"HourMinuteLabel",overridesResolver:(e,t)=>[{[`&.${j2.hourMinuteLabelLandscape}`]:t.hourMinuteLabelLandscape,[`&.${j2.hourMinuteLabelReverse}`]:t.hourMinuteLabelReverse},t.hourMinuteLabel]})(({theme:e,ownerState:t})=>M({display:"flex",justifyContent:"flex-end",alignItems:"flex-end"},t.isLandscape&&{marginTop:"auto"},e.direction==="rtl"&&{flexDirection:"row-reverse"}));mde.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};const gde=Re("div",{name:"MuiTimePickerToolbar",slot:"AmPmSelection",overridesResolver:(e,t)=>[{[`.${j2.ampmLabel}`]:t.ampmLabel},{[`&.${j2.ampmLandscape}`]:t.ampmLandscape},t.ampmSelection]})(({ownerState:e})=>M({display:"flex",flexDirection:"column",marginRight:"auto",marginLeft:12},e.isLandscape&&{margin:"4px 0 auto",flexDirection:"row",justifyContent:"space-around",flexBasis:"100%"},{[`& .${j2.ampmLabel}`]:{fontSize:17}}));gde.propTypes={as:Y.elementType,ownerState:Y.object.isRequired,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object])};function UQe(e){const t=_t({props:e,name:"MuiTimePickerToolbar"}),{ampm:n,ampmInClock:r,value:i,isLandscape:a,onChange:s,view:o,onViewChange:l,views:u,disabled:c,readOnly:f}=t,h=at(t,LQe),g=Or(),b=ps(),S=Ni(),w=!!(n&&!r&&u.includes("hours")),{meridiemMode:E,handleMeridiemChange:x}=aI(i,n,s),k=D=>n?g.format(D,"hours12h"):g.format(D,"hours24h"),C=t,I=$Qe(M({},C,{theme:S})),A=_.jsx(BQe,{tabIndex:-1,value:":",variant:"h3",selected:!1,className:I.separator});return _.jsxs(FQe,M({landscapeDirection:"row",toolbarTitle:b.timePickerToolbarTitle,isLandscape:a,ownerState:C,className:I.root},h,{children:[_.jsxs(mde,{className:I.hourMinuteLabel,ownerState:C,children:[dy(u,"hours")&&_.jsx(su,{tabIndex:-1,variant:"h3",onClick:()=>l("hours"),selected:o==="hours",value:i?k(i):"--"}),dy(u,["hours","minutes"])&&A,dy(u,"minutes")&&_.jsx(su,{tabIndex:-1,variant:"h3",onClick:()=>l("minutes"),selected:o==="minutes",value:i?g.format(i,"minutes"):"--"}),dy(u,["minutes","seconds"])&&A,dy(u,"seconds")&&_.jsx(su,{variant:"h3",onClick:()=>l("seconds"),selected:o==="seconds",value:i?g.format(i,"seconds"):"--"})]}),w&&_.jsxs(gde,{className:I.ampmSelection,ownerState:C,children:[_.jsx(su,{disableRipple:!0,variant:"subtitle2",selected:E==="am",typographyClassName:I.ampmLabel,value:gd(g,"am"),onClick:f?void 0:()=>x("am"),disabled:c}),_.jsx(su,{disableRipple:!0,variant:"subtitle2",selected:E==="pm",typographyClassName:I.ampmLabel,value:gd(g,"pm"),onClick:f?void 0:()=>x("pm"),disabled:c})]})]}))}function bde(e,t){var n,r,i,a,s;const o=Or(),l=_t({props:e,name:t}),u=(n=l.ampm)!=null?n:o.is12HourCycleInCurrentLocale(),c=N.useMemo(()=>{var g;return((g=l.localeText)==null?void 0:g.toolbarTitle)==null?l.localeText:M({},l.localeText,{timePickerToolbarTitle:l.localeText.toolbarTitle})},[l.localeText]),f=(r=l.slots)!=null?r:xT(l.components),h=(i=l.slotProps)!=null?i:l.componentsProps;return M({},l,{ampm:u,localeText:c},cB({views:l.views,openTo:l.openTo,defaultViews:["hours","minutes"],defaultOpenTo:"hours"}),{disableFuture:(a=l.disableFuture)!=null?a:!1,disablePast:(s=l.disablePast)!=null?s:!1,slots:M({toolbar:UQe},f),slotProps:M({},h,{toolbar:M({ampm:u,ampmInClock:l.ampmInClock},h==null?void 0:h.toolbar)})})}const yde=N.forwardRef(function(t,n){var r,i,a,s,o,l;const u=ps(),c=Or(),f=bde(t,"MuiDesktopTimePicker"),{shouldRenderTimeInASingleColumn:h,views:g,timeSteps:b}=dde(f),S=h?ude:vM,w=M({hours:S,minutes:S,seconds:S,meridiem:S},f.viewRenderers),E=(r=f.ampmInClock)!=null?r:!0,x=h?[]:["accept"],C=((i=w.hours)==null?void 0:i.name)===vM.name?g:g.filter(D=>D!=="meridiem"),I=M({},f,{ampmInClock:E,timeSteps:b,viewRenderers:w,format:S3(c,f),views:h?["hours"]:C,slots:M({field:pde,openPickerIcon:Sje},f.slots),slotProps:M({},f.slotProps,{field:D=>{var B;return M({},S0((B=f.slotProps)==null?void 0:B.field,D),$O(f),{ref:n})},toolbar:M({hidden:!0,ampmInClock:E},(a=f.slotProps)==null?void 0:a.toolbar),actionBar:M({actions:x},(s=f.slotProps)==null?void 0:s.actionBar)})}),{renderPicker:A}=SB({props:I,valueManager:cs,valueType:"time",getOpenDialogAriaText:(o=(l=I.localeText)==null?void 0:l.openTimePickerDialogue)!=null?o:u.openTimePickerDialogue,validator:kT});return A()});yde.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:TO,label:Y.node,localeText:Y.object,maxTime:Y.any,minTime:Y.any,minutesStep:Y.number,name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,open:Y.bool,openTo:Y.oneOf(["hours","meridiem","minutes","seconds"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableTime:Y.func,skipDisabled:Y.bool,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),thresholdToRenderTimeInASingleColumn:Y.number,timeSteps:Y.shape({hours:Y.number,minutes:Y.number,seconds:Y.number}),timezone:Y.string,value:Y.any,view:Y.oneOf(["hours","meridiem","minutes","seconds"]),viewRenderers:Y.shape({hours:Y.func,meridiem:Y.func,minutes:Y.func,seconds:Y.func}),views:Y.arrayOf(Y.oneOf(["hours","minutes","seconds"]).isRequired)};const vde=N.forwardRef(function(t,n){var r,i,a,s;const o=ps(),l=Or(),u=bde(t,"MuiMobileTimePicker"),c=M({hours:av,minutes:av,seconds:av},u.viewRenderers),f=(r=u.ampmInClock)!=null?r:!1,h=M({},u,{ampmInClock:f,viewRenderers:c,format:S3(l,u),slots:M({field:pde},u.slots),slotProps:M({},u.slotProps,{field:b=>{var S;return M({},S0((S=u.slotProps)==null?void 0:S.field,b),$O(u),{ref:n})},toolbar:M({hidden:!1,ampmInClock:f},(i=u.slotProps)==null?void 0:i.toolbar)})}),{renderPicker:g}=wB({props:h,valueManager:cs,valueType:"time",getOpenDialogAriaText:(a=(s=h.localeText)==null?void 0:s.openTimePickerDialogue)!=null?a:o.openTimePickerDialogue,validator:kT});return g()});vde.propTypes={ampm:Y.bool,ampmInClock:Y.bool,autoFocus:Y.bool,className:Y.string,closeOnSelect:Y.bool,components:Y.object,componentsProps:Y.object,defaultValue:Y.any,disabled:Y.bool,disableFuture:Y.bool,disableIgnoringDatePartForTimeValidation:Y.bool,disableOpenPicker:Y.bool,disablePast:Y.bool,format:Y.string,formatDensity:Y.oneOf(["dense","spacious"]),inputRef:TO,label:Y.node,localeText:Y.object,maxTime:Y.any,minTime:Y.any,minutesStep:Y.number,name:Y.string,onAccept:Y.func,onChange:Y.func,onClose:Y.func,onError:Y.func,onOpen:Y.func,onSelectedSectionsChange:Y.func,onViewChange:Y.func,open:Y.bool,openTo:Y.oneOf(["hours","minutes","seconds"]),orientation:Y.oneOf(["landscape","portrait"]),readOnly:Y.bool,reduceAnimations:Y.bool,referenceDate:Y.any,selectedSections:Y.oneOfType([Y.oneOf(["all","day","hours","meridiem","minutes","month","seconds","weekDay","year"]),Y.number,Y.shape({endIndex:Y.number.isRequired,startIndex:Y.number.isRequired})]),shouldDisableClock:Y.func,shouldDisableTime:Y.func,slotProps:Y.object,slots:Y.object,sx:Y.oneOfType([Y.arrayOf(Y.oneOfType([Y.func,Y.object,Y.bool])),Y.func,Y.object]),timezone:Y.string,value:Y.any,view:Y.oneOf(["hours","minutes","seconds"]),viewRenderers:Y.shape({hours:Y.func,minutes:Y.func,seconds:Y.func}),views:Y.arrayOf(Y.oneOf(["hours","minutes","seconds"]).isRequired)};const zQe=["desktopModeMediaQuery"],jQe=N.forwardRef(function(t,n){const r=_t({props:t,name:"MuiTimePicker"}),{desktopModeMediaQuery:i=gB}=r,a=at(r,zQe);return RO(i,{defaultMatches:!0})?_.jsx(yde,M({ref:n},a)):_.jsx(vde,M({ref:n},a))});var kB={},HQe=Ji;Object.defineProperty(kB,"__esModule",{value:!0});var Ode=kB.default=void 0,VQe=HQe(ea()),WQe=_;Ode=kB.default=(0,VQe.default)((0,WQe.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 CB={},QQe=Ji;Object.defineProperty(CB,"__esModule",{value:!0});var Sde=CB.default=void 0,qQe=QQe(ea()),GQe=_;Sde=CB.default=(0,qQe.default)((0,GQe.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 OM(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 rqe(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}function iqe(e,t){return YQe(e)||JQe(e,t)||Ede(e,t)||eqe()}function o0(e){return ZQe(e)||KQe(e)||Ede(e)||tqe()}function aqe(e){"@swc/helpers - typeof";return e&&typeof Symbol<"u"&&e.constructor===Symbol?"symbol":typeof e}function Ede(e,t){if(e){if(typeof e=="string")return OM(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 OM(e,t)}}var sqe=N.createContext({onError:function(e){return e==null?void 0:e.message}}),Lu=function(){var e;return(e=N.useContext(sqe))===null||e===void 0?void 0:e.onError};function Il(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"}}),E=Rl({name:o,control:l,disabled:g.disabled,rules:w}),x=E.field,k=E.fieldState,C=k.error,I=Il({value:x.value,onChange:x.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(L){return L||""},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(L){var F=L.target.value;return a==="number"&&F?+F:F}}}),A=I.value,D=I.onChange,B=Jn(x.ref,f);return _.jsx(c,fr(cn({},g),{name:x.name,value:A,onChange:function(L){D(L),typeof g.onChange=="function"&&g.onChange(L)},onBlur:x.onBlur,required:s,type:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:g.helperText,ref:t,inputRef:B}))});wde.displayName="TextFieldElement";var CT=wde;function FO(e){var t=e.handleSubmit,n=e.children,r=e.FormProps,i=e.formContext,a=e.onSuccess,s=e.onError,o=Xs(e,["handleSubmit","children","FormProps","formContext","onSuccess","onError"]);return i?(typeof a=="function"&&typeof t=="function"&&console.warn("Property `onSuccess` will be ignored because handleSubmit is provided"),_.jsx(fce,fr(cn({},i),{children:_.jsx("form",fr(cn({noValidate:!0},r),{onSubmit:t||(a?i.handleSubmit(a,s):function(){return console.log("submit handler `onSuccess` is missing")}),children:n}))}))):_.jsx(oqe,cn({onSuccess:a,onError:s,FormProps:r,children:n},o))}function oqe(e){var t=e.onSuccess,n=e.onError,r=e.FormProps,i=e.children,a=Xs(e,["onSuccess","onError","FormProps","children"]),s=Tce(cn({},a)),o=s.handleSubmit;return _.jsx(fce,fr(cn({},s),{children:_.jsx("form",fr(cn({onSubmit:o(t||function(){return console.log("submit handler `onSuccess` is missing")},n),noValidate:!0},r),{children:i}))}))}var xde={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"},lqe=N.forwardRef(function(e,t){var n=e.parseError,r=e.name,i=e.required,a=e.validation,s=a===void 0?{}:a,o=e.inputProps,l=e.control,u=e.textReadOnly,c=e.slotProps,f=e.overwriteErrorMessages,h=e.inputRef,g=e.transform,b=Xs(e,["parseError","name","required","validation","inputProps","control","textReadOnly","slotProps","overwriteErrorMessages","inputRef","transform"]),S=Id(),w=Lu(),E=n||w,x=cn({},xde,f),k=fr(cn({},s,i&&!s.required&&{required:"This field is required"}),{validate:cn({internal:function(Z){var Q,H,J=Z==null||!S.utils.isValid(Z)?null:S.utils.getTimezone(Z),K=D1({props:{shouldDisableDate:b.shouldDisableDate,shouldDisableMonth:b.shouldDisableMonth,shouldDisableYear:b.shouldDisableYear,disablePast:!!b.disablePast,disableFuture:!!b.disableFuture,minDate:b.minDate,maxDate:b.maxDate,timezone:(H=(Q=b.timezone)!==null&&Q!==void 0?Q:J)!==null&&H!==void 0?H:"default"},value:Z,adapter:S});return K==null||x[K]}},s.validate)}),C=Rl({name:r,control:l,rules:k,disabled:b.disabled,defaultValue:null}),I=C.field,A=C.fieldState,D=A.error,B=Il({value:I.value,onChange:I.onChange,transform:{input:typeof(g==null?void 0:g.input)=="function"?g.input:function(Z){return Z&&Z==="string"?new Date(Z):Z},output:typeof(g==null?void 0:g.output)=="function"?g.output:function(Z){return Z}}}),L=B.value,F=B.onChange,W=Jn(I.ref,h),V=D?typeof E=="function"?E(D):D.message:null;return _.jsx(aWe,fr(cn({},b,I),{value:L,ref:t,inputRef:W,onClose:function(){for(var Z=arguments.length,Q=new Array(Z),H=0;H"u"?"undefined":aqe(Z))<"u"&&(k.InputLabelProps=k.InputLabelProps||{},k.InputLabelProps.shrink=!0),_.jsxs(T0,fr(cn({},k),{name:r,value:Z,onBlur:L.onBlur,ref:t,onChange:function(J){if(Q(J),typeof k.onChange=="function"){var K=J.target.value;h==="number"&&K&&(K=Number(K)),g&&(K=c.find(function(X){return X[s]===K})),k.onChange(K)}},select:!0,required:i,error:!!W,helperText:W?typeof I=="function"?I(W):W.message:k.helperText,inputRef:H,children:[A&&_.jsx("option",{}),c.map(function(J){var K,X={key:"".concat(r,"_").concat(J[s]),value:(K=J==null?void 0:J[s])!==null&&K!==void 0?K:J,disabled:yl(J,"disabled")?!!J.disabled:!1,children:J[l]};return A?_.jsx("option",cn({},X)):_.jsx(xu,cn({},X))})]}))});Tde.displayName="SelectElement";var SM=Tde,mqe=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.required,l=e.labelKey,u=l===void 0?"label":l,c=e.valueKey,f=c===void 0?"id":c,h=e.returnObject,g=e.disabled,b=e.row,S=e.control,w=e.checkboxColor,E=e.rules,x=e.labelProps,k=e.transform,C=e.defaultValue,I=C===void 0?[]:C,A=Xs(e,["helperText","options","label","name","parseError","required","labelKey","valueKey","returnObject","disabled","row","control","checkboxColor","rules","labelProps","transform","defaultValue"]),D=Ni(),B=Lu(),L=s||B,F=Rl({name:a,rules:o?{required:"This field is required"}:E,disabled:g,control:S,defaultValue:I}),W=F.field,V=F.fieldState,Z=V.error,Q=V.invalid,H=Il({value:W.value,onChange:W.onChange,transform:{input:typeof(k==null?void 0:k.input)=="function"?k.input:function(z){return Array.isArray(z)?z:[]},output:k==null?void 0:k.output}}),J=H.value,K=H.onChange,X=function(z){var Te=yl(z,f)?z[f]:z,be=J.findIndex(function(ye){var Oe=yl(ye,f)?ye[f]:ye;return Te===Oe}),ee=(be===-1?o0(J).concat([z]):J.filter(function(ye,Oe){return be!==Oe})).map(function(ye){return h||!yl(ye,f)?ye:ye[f]});K(ee),typeof A.onChange=="function"&&A.onChange(ee)},te=Z?typeof L=="function"?L(Z):Z.message:n;return _.jsxs(Lc,{error:Q,required:o,ref:t,children:[i?_.jsx(FR,{children:i}):null,_.jsx(wF,{row:b,children:r.map(function(z){var Te=yl(z,f)?z[f]:z,be=yl(z,u)?z[u]:z,ee=J.some(function(ye){return(yl(ye,f)?ye[f]:ye)===Te});return N.createElement(Lw,fr(cn({},x),{control:_.jsx(LR,{sx:{color:Z?D.palette.error.main:void 0},color:w,value:Te,checked:ee,disabled:g,onChange:function(){return X(z)}}),label:"".concat(be),key:"".concat(Te)}))})}),te&&_.jsx(_O,{children:te})]})});mqe.displayName="CheckboxButtonGroup";var gqe=48,bqe=8,yqe=N.forwardRef(function(e,t){var n,r,i,a,s,o=e.options,l=e.label,u=l===void 0?"":l,c=e.itemKey,f=c===void 0?"id":c,h=e.itemValue,g=h===void 0?"":h,b=e.itemLabel,S=b===void 0?"label":b,w=e.required,E=w===void 0?!1:w,x=e.validation,k=x===void 0?{}:x,C=e.parseError,I=e.name,A=e.menuMaxHeight,D=A===void 0?gqe*4.5+bqe:A,B=e.menuMaxWidth,L=B===void 0?250:B,F=e.minWidth,W=F===void 0?120:F,V=e.helperText,Z=e.showChips,Q=e.preserveOrder,H=e.control,J=e.showCheckbox,K=e.formControlProps,X=e.inputRef,te=e.transform,z=Xs(e,["options","label","itemKey","itemValue","itemLabel","required","validation","parseError","name","menuMaxHeight","menuMaxWidth","minWidth","helperText","showChips","preserveOrder","control","showCheckbox","formControlProps","inputRef","transform"]),Te=Lu(),be=C||Te,ee=function(et){var ft,At;return(At=(ft=o.find(function(Je){var pe;return((pe=Je[g||f])!==null&&pe!==void 0?pe:Je)===et}))===null||ft===void 0?void 0:ft[S])!==null&&At!==void 0?At:et},ye=cn({},k,E&&!k.required&&{required:"This field is required"}),Oe=Rl({name:I,rules:ye,disabled:z.disabled,control:H}),ie=Oe.field,_e=Oe.fieldState,Ie=_e.error,qe=Il({value:ie.value,onChange:ie.onChange,transform:{input:typeof(te==null?void 0:te.input)=="function"?te.input:function(et){return Array.isArray(et)?et:[]},output:te==null?void 0:te.output}}),st=qe.value,Pe=qe.onChange,tt=Jn(ie.ref,X),Ve=Ie?typeof be=="function"?be(Ie):Ie.message:V,Xe;return _.jsxs(Lc,fr(cn({},K),{style:cn({minWidth:W},K==null?void 0:K.style),variant:z.variant,fullWidth:z.fullWidth,error:!!Ie,size:z.size,ref:t,children:[u&&_.jsx(hle,{size:z.size==="small"?"small":void 0,error:!!Ie,htmlFor:z.id||"select-multi-select-".concat(I),required:E,children:u}),_.jsx(kle,fr(cn({},z),{id:z.id||"select-multi-select-".concat(I),multiple:!0,label:u||void 0,error:!!Ie,value:st,required:E,onChange:Pe,onBlur:ie.onBlur,MenuProps:fr(cn({},z.MenuProps),{slotProps:fr(cn({},(n=z.MenuProps)===null||n===void 0?void 0:n.slotProps),{paper:cn({},(Xe=(i=z.MenuProps)===null||i===void 0||(r=i.slotProps)===null||r===void 0?void 0:r.paper)!==null&&Xe!==void 0?Xe:{style:cn({maxHeight:D,width:L},yl((s=z.MenuProps)===null||s===void 0||(a=s.slotProps)===null||a===void 0?void 0:a.paper,"style")&&typeof z.MenuProps.slotProps.paper.style=="object"&&cn({},z.MenuProps.slotProps.paper.style))})})}),renderValue:typeof z.renderValue=="function"?z.renderValue:Z?function(et){return _.jsx("div",{style:{display:"flex",flexWrap:"wrap"},children:(Q?o.filter(function(ft){return et.includes(ft)}):et||[]).map(function(ft){return _.jsx(yF,{label:ee(ft),style:{display:"flex",flexWrap:"wrap"},onDelete:function(){Pe((Array.isArray(st)?st:[]).filter(function(At){return At!==ft}))},deleteIcon:_.jsx(Ode,{onMouseDown:function(At){At.stopPropagation()}})},ft)})})}:function(et){return Array.isArray(et)?et.map(ee).join(", "):""},inputRef:tt,children:o.map(function(et){var ft=et[g||f]||et,At=Array.isArray(st)?st.some(function(Je){return Je===ft}):!1;return _.jsxs(xu,{value:ft,sx:{fontWeight:function(Je){return At?Je.typography.fontWeightBold:Je.typography.fontWeightRegular}},children:[J&&_.jsx(LR,{checked:At}),_.jsx(Bf,{primary:et[S]||et})]},ft)})})),Ve&&_.jsx(_O,{error:!!Ie,children:Ve})]}))});yqe.displayName="MultiSelectElement";var kde=N.forwardRef(function(e,t){var n=e.iconColor,r=e.renderIcon,i=r===void 0?function(u){return u?_.jsx(JF,{}):_.jsx(Sde,{})}:r,a=Xs(e,["iconColor","renderIcon"]),s=iqe(N.useState(!0),2),o=s[0],l=s[1];return _.jsx(CT,fr(cn({},a),{ref:t,InputProps:{endAdornment:_.jsx(Fw,{position:"end",children:_.jsx(Vi,{onMouseDown:function(u){return u.preventDefault()},onClick:function(){return l(!o)},tabIndex:-1,color:n??"default",children:i(o)})})},type:o?"password":"text"}))});kde.displayName="PasswordElement";var vqe=kde,Oqe=N.forwardRef(function(e,t){var n=e.helperText,r=e.options,i=e.label,a=e.name,s=e.parseError,o=e.labelKey,l=o===void 0?"label":o,u=e.valueKey,c=u===void 0?"id":u,f=e.required,h=e.emptyOptionLabel,g=e.returnObject,b=e.row,S=e.control,w=e.type,E=e.labelProps,x=e.disabled,k=e.formLabelProps,C=e.transform,I=Xs(e,["helperText","options","label","name","parseError","labelKey","valueKey","required","emptyOptionLabel","returnObject","row","control","type","labelProps","disabled","formLabelProps","transform"]),A=Ni(),D=Lu(),B=s||D,L=Rl({name:a,rules:f?{required:"This field is required"}:void 0,disabled:x,control:S}),F=L.field,W=L.fieldState,V=W.error,Z=Il({value:F.value,onChange:F.onChange,transform:{input:typeof(C==null?void 0:C.input)=="function"?C.input:function(X){return X||""},output:typeof(C==null?void 0:C.output)=="function"?C==null?void 0:C.output:function(X,te){return te}}}),Q=Z.value,H=Z.onChange,J=V?typeof B=="function"?B(V):V.message:n,K=function(X,te){var z=g?r.find(function(Te){return Te[c]===te}):te;H(X,z),typeof I.onChange=="function"&&I.onChange(z)};return _.jsxs(Lc,{error:!!V,ref:t,children:[i&&_.jsx(FR,fr(cn({},k),{required:f,error:!!V,children:i})),_.jsxs(Q7e,{onChange:K,name:a,row:b,value:Q,children:[h&&_.jsx(Lw,fr(cn({},E),{control:_.jsx(AZ,{sx:{color:V?A.palette.error.main:void 0},checked:!Q}),label:h,value:""})),r.map(function(X){var te=X[c];te||console.error("CheckboxButtonGroup: valueKey ".concat(c," does not exist on option"),X);var z=g?Q==null?void 0:Q[c]:Q;w==="number"&&(z=Number(z));var Te=z===te;return N.createElement(Lw,fr(cn({},E),{control:_.jsx(AZ,{sx:{color:V?A.palette.error.main:void 0},disabled:x,checked:Te}),value:te,label:X[l],key:te}))})]}),J&&_.jsx(_O,{children:J})]})});Oqe.displayName="RadioButtonGroup";var Sqe=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.switchProps,a=e.transform,s=Xs(e,["name","control","switchProps","transform"]),o=Rl({name:n,control:r,disabled:s.disabled}),l=o.field,u=Il({value:l.value,onChange:l.onChange,transform:{input:a==null?void 0:a.input,output:typeof(a==null?void 0:a.output)=="function"?a.output:function(g,b){return b}}}),c=u.value,f=u.onChange,h=Jn(l.ref,i==null?void 0:i.ref);return _.jsx(Lw,cn({ref:t,control:_.jsx(j8e,fr(cn({},i),{name:l.name,value:c,onChange:function(g,b){f(g,b),typeof(i==null?void 0:i.onChange)=="function"&&i.onChange(g,b)},onBlur:function(g){l.onBlur(),typeof(i==null?void 0:i.onBlur)=="function"&&(i==null||i.onBlur(g))},ref:h,checked:!!c}))},s))});Sqe.displayName="SwitchElement";var Eqe=N.forwardRef(function(e,t){var n=e.passwordFieldName,r=e.customInvalidFieldMessage,i=e.control,a=Xs(e,["passwordFieldName","customInvalidFieldMessage","control"]),s=bce({name:n,control:i});return _.jsx(vqe,fr(cn({control:i},a),{ref:t,validation:{validate:function(o){return o===s||(r??"Password should match")}}}))});Eqe.displayName="PasswordRepeatElement";var wqe=N.forwardRef(function(e,t){var n=e.textFieldProps,r=e.autocompleteProps,i=e.name,a=e.control,s=e.options,o=e.loading,l=e.showCheckbox,u=e.rules,c=e.loadingIndicator,f=e.required,h=e.multiple,g=e.label,b=e.parseError,S=e.transform,w=e.matchId,E=Lu(),x=b||E,k=cn({},u,f&&{required:(u==null?void 0:u.required)||"This field is required"}),C=Rl({name:i,control:a,disabled:r==null?void 0:r.disabled,rules:k}),I=C.field,A=C.fieldState,D=A.error,B=function(K){return typeof(r==null?void 0:r.getOptionLabel)=="function"?r.getOptionLabel(K):yl(K,"label")?"".concat(K==null?void 0:K.label):"".concat(K)},L=function(K,X){if(typeof(r==null?void 0:r.isOptionEqualToValue)=="function")return r.isOptionEqualToValue(K,X);var te=yl(K,"id")?K.id:K,z=yl(X,"id")?X.id:X;return te===z},F=function(K){return s.find(function(X){return w&&yl(X,"id")?X.id===K:L(X,K)})},W=Il({value:I.value,onChange:I.onChange,transform:{input:typeof(S==null?void 0:S.input)=="function"?S.input:function(K){var X;return h?(Array.isArray(K)?K:[]).map(F):(X=F(K))!==null&&X!==void 0?X:null},output:typeof(S==null?void 0:S.output)=="function"?S.output:function(K,X){if(h){var te=Array.isArray(X)?X:[];return w?te.map(function(z){return yl(z,"id")?z.id:z}):te}return w&&yl(X,"id")?X.id:X}}}),V=W.value,Z=W.onChange,Q=Jn(I.ref,n==null?void 0:n.inputRef),H=c||_.jsx(wd,{color:"inherit",size:20}),J;return _.jsx(ZRe,fr(cn({},r),{value:V,loading:o,multiple:h,options:s,disableCloseOnSelect:typeof(r==null?void 0:r.disableCloseOnSelect)=="boolean"?r.disableCloseOnSelect:!!h,isOptionEqualToValue:L,getOptionLabel:B,onChange:function(K,X,te,z){Z(K,X,te,z),r!=null&&r.onChange&&r.onChange(K,X,te,z)},ref:t,renderOption:(J=r==null?void 0:r.renderOption)!==null&&J!==void 0?J:l?function(K,X,te){var z=te.selected;return _.jsxs("li",fr(cn({},K),{children:[_.jsx(LR,{sx:{marginRight:1},checked:z}),B(X)]}))}:void 0,onBlur:function(K){I.onBlur(),typeof(r==null?void 0:r.onBlur)=="function"&&r.onBlur(K)},renderInput:function(K){return _.jsx(T0,fr(cn({name:i,required:u!=null&&u.required?!0:f,label:g},n,K),{error:!!D,InputLabelProps:cn({},K.InputLabelProps,n==null?void 0:n.InputLabelProps),InputProps:cn(fr(cn({},K.InputProps),{endAdornment:_.jsxs(_.Fragment,{children:[o?H:null,K.InputProps.endAdornment]})}),n==null?void 0:n.InputProps),inputProps:cn({},K.inputProps,n==null?void 0:n.inputProps),helperText:D?typeof x=="function"?x(D):D.message:n==null?void 0:n.helperText,inputRef:Q}))}}))});wqe.displayName="AutocompleteElement";var xqe=N.forwardRef(function(e,t){var n=e.name,r=e.control,i=e.label,a=e.rules,s=a===void 0?{}:a,o=e.parseError,l=e.required,u=e.formControlProps,c=e.transform,f=Xs(e,["name","control","label","rules","parseError","required","formControlProps","transform"]),h=Lu(),g=o||h,b=cn({},s,l&&!s.required&&{required:"This field is required"}),S=Rl({name:n,control:r,disabled:f.disabled,rules:b}),w=S.field,E=S.fieldState,x=E.error,k=E.invalid,C=Il({value:w.value,onChange:w.onChange,transform:c}),I=C.value,A=C.onChange,D=x?typeof g=="function"?g(x):x.message:null;return _.jsxs(Lc,fr(cn({error:k,required:l,fullWidth:!0},u),{ref:t,children:[i&&_.jsx(FR,{component:"legend",error:k,children:i}),_.jsx(w8e,fr(cn({},f),{value:I,onChange:A,valueLabelDisplay:f.valueLabelDisplay||"auto"})),D&&_.jsx(_O,{error:k,children:D})]}))});xqe.displayName="SliderElement";var Tqe=N.forwardRef(function(e,t){var n=e.validation,r=n===void 0?{}:n,i=e.parseError,a=e.required,s=e.name,o=e.control,l=e.rows,u=e.resizeStyle,c=e.inputRef,f=e.inputProps,h=e.transform,g=Xs(e,["validation","parseError","required","name","control","rows","resizeStyle","inputRef","inputProps","transform"]),b=Lu(),S=i||b,w=cn({},r,a&&!r.required&&{required:"This field is required"}),E=Rl({name:s,control:o,rules:w,disabled:g.disabled}),x=E.field,k=E.fieldState,C=k.error,I=Il({value:x.value,onChange:x.onChange,transform:{input:typeof(h==null?void 0:h.input)=="function"?h.input:function(L){return L??""},output:typeof(h==null?void 0:h.output)=="function"?h.output:function(L){return L.target.value}}}),A=I.value,D=I.onChange,B=Jn(x.ref,c);return _.jsx(T0,fr(cn({},g),{name:s,value:A,onChange:function(L){D(L),typeof g.onChange=="function"&&g.onChange(L)},onBlur:x.onBlur,required:a,error:!!C,helperText:C?typeof S=="function"?S(C):C.message:g.helperText,inputRef:B,multiline:!0,InputProps:{inputComponent:Yoe,inputProps:cn({minRows:l,style:{resize:u||"both"}},f||{})},ref:t}))});Tqe.displayName="TextareaAutosizeElement";const sv=["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 Cde;function un(){return Cde.apply(null,arguments)}function kqe(e){Cde=e}function xd(e){return e instanceof Array||Object.prototype.toString.call(e)==="[object Array]"}function r1(e){return e!=null&&Object.prototype.toString.call(e)==="[object Object]"}function ei(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function AB(e){if(Object.getOwnPropertyNames)return Object.getOwnPropertyNames(e).length===0;var t;for(t in e)if(ei(e,t))return!1;return!0}function hl(e){return e===void 0}function op(e){return typeof e=="number"||Object.prototype.toString.call(e)==="[object Number]"}function AT(e){return e instanceof Date||Object.prototype.toString.call(e)==="[object Date]"}function Ade(e,t){var n=[],r,i=e.length;for(r=0;r>>0,r;for(r=0;r0)for(n=0;n=0;return(a?n?"+":"":"-")+Math.pow(10,Math.max(0,i)).toString().substr(1)+r}var DB=/(\[[^\[]*\])|(\\)?([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,uA=/(\[[^\[]*\])|(\\)?(LTS|LT|LL?L?L?|l{1,4})/g,XN={},ov={};function Un(e,t,n,r){var i=r;typeof r=="string"&&(i=function(){return this[r]()}),e&&(ov[e]=i),t&&(ov[t[0]]=function(){return qf(i.apply(this,arguments),t[1],t[2])}),n&&(ov[n]=function(){return this.localeData().ordinal(i.apply(this,arguments),e)})}function Iqe(e){return e.match(/\[[\s\S]/)?e.replace(/^\[|\]$/g,""):e.replace(/\\/g,"")}function Dqe(e){var t=e.match(DB),n,r;for(n=0,r=t.length;n=0&&uA.test(e);)e=e.replace(uA,r),uA.lastIndex=0,n-=1;return e}var Nqe={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 Pqe(e){var t=this._longDateFormat[e],n=this._longDateFormat[e.toUpperCase()];return t||!n?t:(this._longDateFormat[e]=n.match(DB).map(function(r){return r==="MMMM"||r==="MM"||r==="DD"||r==="dddd"?r.slice(1):r}).join(""),this._longDateFormat[e])}var Mqe="Invalid date";function Lqe(){return this._invalidDate}var $qe="%d",Fqe=/\d{1,2}/;function Bqe(e){return this._ordinal.replace("%d",e)}var Uqe={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 zqe(e,t,n,r){var i=this._relativeTime[n];return Kf(i)?i(e,t,n,r):i.replace(/%d/i,e)}function jqe(e,t){var n=this._relativeTime[e>0?"future":"past"];return Kf(n)?n(t):n.replace(/%s/i,t)}var mK={D:"date",dates:"date",date:"date",d:"day",days:"day",day:"day",e:"weekday",weekdays:"weekday",weekday:"weekday",E:"isoWeekday",isoweekdays:"isoWeekday",isoweekday:"isoWeekday",DDD:"dayOfYear",dayofyears:"dayOfYear",dayofyear:"dayOfYear",h:"hour",hours:"hour",hour:"hour",ms:"millisecond",milliseconds:"millisecond",millisecond:"millisecond",m:"minute",minutes:"minute",minute:"minute",M:"month",months:"month",month:"month",Q:"quarter",quarters:"quarter",quarter:"quarter",s:"second",seconds:"second",second:"second",gg:"weekYear",weekyears:"weekYear",weekyear:"weekYear",GG:"isoWeekYear",isoweekyears:"isoWeekYear",isoweekyear:"isoWeekYear",w:"week",weeks:"week",week:"week",W:"isoWeek",isoweeks:"isoWeek",isoweek:"isoWeek",y:"year",years:"year",year:"year"};function Fc(e){return typeof e=="string"?mK[e]||mK[e.toLowerCase()]:void 0}function NB(e){var t={},n,r;for(r in e)ei(e,r)&&(n=Fc(r),n&&(t[n]=e[r]));return t}var Hqe={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 Vqe(e){var t=[],n;for(n in e)ei(e,n)&&t.push({unit:n,priority:Hqe[n]});return t.sort(function(r,i){return r.priority-i.priority}),t}var Dde=/\d/,$u=/\d\d/,Nde=/\d{3}/,PB=/\d{4}/,uI=/[+-]?\d{6}/,Qi=/\d\d?/,Pde=/\d\d\d\d?/,Mde=/\d\d\d\d\d\d?/,cI=/\d{1,3}/,MB=/\d{1,4}/,dI=/[+-]?\d{1,6}/,BO=/\d+/,fI=/[+-]?\d+/,Wqe=/Z|[+-]\d\d:?\d\d/gi,hI=/Z|[+-]\d\d(?::?\d\d)?/gi,Qqe=/[+-]?\d+(\.\d{1,3})?/,RT=/[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,UO=/^[1-9]\d?/,LB=/^([1-9]\d|\d)/,w3;w3={};function bn(e,t,n){w3[e]=Kf(t)?t:function(r,i){return r&&n?n:t}}function qqe(e,t){return ei(w3,e)?w3[e](t._strict,t._locale):new RegExp(Gqe(e))}function Gqe(e){return Yh(e.replace("\\","").replace(/\\(\[)|\\(\])|\[([^\]\[]*)\]|\\(.)/g,function(t,n,r,i,a){return n||r||i||a}))}function Yh(e){return e.replace(/[-\/\\^$*+?.()|[\]{}]/g,"\\$&")}function cc(e){return e<0?Math.ceil(e)||0:Math.floor(e)}function Pr(e){var t=+e,n=0;return t!==0&&isFinite(t)&&(n=cc(t)),n}var TM={};function vi(e,t){var n,r=t,i;for(typeof e=="string"&&(e=[e]),op(t)&&(r=function(a,s){s[t]=Pr(a)}),i=e.length,n=0;n68?1900:2e3)};var Lde=zO("FullYear",!0);function Kqe(){return pI(this.year())}function zO(e,t){return function(n){return n!=null?($de(this,e,n),un.updateOffset(this,t),this):Xw(this,e)}}function Xw(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 $de(e,t,n){var r,i,a,s,o;if(!(!e.isValid()||isNaN(n))){switch(r=e._d,i=e._isUTC,t){case"Milliseconds":return void(i?r.setUTCMilliseconds(n):r.setMilliseconds(n));case"Seconds":return void(i?r.setUTCSeconds(n):r.setSeconds(n));case"Minutes":return void(i?r.setUTCMinutes(n):r.setMinutes(n));case"Hours":return void(i?r.setUTCHours(n):r.setHours(n));case"Date":return void(i?r.setUTCDate(n):r.setDate(n));case"FullYear":break;default:return}a=n,s=e.month(),o=e.date(),o=o===29&&s===1&&!pI(a)?28:o,i?r.setUTCFullYear(a,s,o):r.setFullYear(a,s,o)}}function Jqe(e){return e=Fc(e),Kf(this[e])?this[e]():this}function eGe(e,t){if(typeof e=="object"){e=NB(e);var n=Vqe(e),r,i=n.length;for(r=0;r=0?(o=new Date(e+400,t,n,r,i,a,s),isFinite(o.getFullYear())&&o.setFullYear(e)):o=new Date(e,t,n,r,i,a,s),o}function Kw(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 x3(e,t,n){var r=7+t-n,i=(7+Kw(e,0,r).getUTCDay()-t)%7;return-i+r-1}function Hde(e,t,n,r,i){var a=(7+n-r)%7,s=x3(e,r,i),o=1+7*(t-1)+a+s,l,u;return o<=0?(l=e-1,u=H2(l)+o):o>H2(e)?(l=e+1,u=o-H2(e)):(l=e,u=o),{year:l,dayOfYear:u}}function Jw(e,t,n){var r=x3(e.year(),t,n),i=Math.floor((e.dayOfYear()-r-1)/7)+1,a,s;return i<1?(s=e.year()-1,a=i+Zh(s,t,n)):i>Zh(e.year(),t,n)?(a=i-Zh(e.year(),t,n),s=e.year()+1):(s=e.year(),a=i),{week:a,year:s}}function Zh(e,t,n){var r=x3(e,t,n),i=x3(e+1,t,n);return(H2(e)-r+i)/7}Un("w",["ww",2],"wo","week");Un("W",["WW",2],"Wo","isoWeek");bn("w",Qi,UO);bn("ww",Qi,$u);bn("W",Qi,UO);bn("WW",Qi,$u);IT(["w","ww","W","WW"],function(e,t,n,r){t[r.substr(0,1)]=Pr(e)});function hGe(e){return Jw(e,this._week.dow,this._week.doy).week}var pGe={dow:0,doy:6};function mGe(){return this._week.dow}function gGe(){return this._week.doy}function bGe(e){var t=this.localeData().week(this);return e==null?t:this.add((e-t)*7,"d")}function yGe(e){var t=Jw(this,1,4).week;return e==null?t:this.add((e-t)*7,"d")}Un("d",0,"do","day");Un("dd",0,0,function(e){return this.localeData().weekdaysMin(this,e)});Un("ddd",0,0,function(e){return this.localeData().weekdaysShort(this,e)});Un("dddd",0,0,function(e){return this.localeData().weekdays(this,e)});Un("e",0,0,"weekday");Un("E",0,0,"isoWeekday");bn("d",Qi);bn("e",Qi);bn("E",Qi);bn("dd",function(e,t){return t.weekdaysMinRegex(e)});bn("ddd",function(e,t){return t.weekdaysShortRegex(e)});bn("dddd",function(e,t){return t.weekdaysRegex(e)});IT(["dd","ddd","dddd"],function(e,t,n,r){var i=n._locale.weekdaysParse(e,r,n._strict);i!=null?t.d=i:br(n).invalidWeekday=e});IT(["d","e","E"],function(e,t,n,r){t[r]=Pr(e)});function vGe(e,t){return typeof e!="string"?e:isNaN(e)?(e=t.weekdaysParse(e),typeof e=="number"?e:null):parseInt(e,10)}function OGe(e,t){return typeof e=="string"?t.weekdaysParse(e)%7||7:isNaN(e)?null:e}function FB(e,t){return e.slice(t,7).concat(e.slice(0,t))}var SGe="Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),Vde="Sun_Mon_Tue_Wed_Thu_Fri_Sat".split("_"),EGe="Su_Mo_Tu_We_Th_Fr_Sa".split("_"),wGe=RT,xGe=RT,TGe=RT;function kGe(e,t){var n=xd(this._weekdays)?this._weekdays:this._weekdays[e&&e!==!0&&this._weekdays.isFormat.test(t)?"format":"standalone"];return e===!0?FB(n,this._week.dow):e?n[e.day()]:n}function CGe(e){return e===!0?FB(this._weekdaysShort,this._week.dow):e?this._weekdaysShort[e.day()]:this._weekdaysShort}function AGe(e){return e===!0?FB(this._weekdaysMin,this._week.dow):e?this._weekdaysMin[e.day()]:this._weekdaysMin}function _Ge(e,t,n){var r,i,a,s=e.toLocaleLowerCase();if(!this._weekdaysParse)for(this._weekdaysParse=[],this._shortWeekdaysParse=[],this._minWeekdaysParse=[],r=0;r<7;++r)a=Xf([2e3,1]).day(r),this._minWeekdaysParse[r]=this.weekdaysMin(a,"").toLocaleLowerCase(),this._shortWeekdaysParse[r]=this.weekdaysShort(a,"").toLocaleLowerCase(),this._weekdaysParse[r]=this.weekdays(a,"").toLocaleLowerCase();return n?t==="dddd"?(i=Da.call(this._weekdaysParse,s),i!==-1?i:null):t==="ddd"?(i=Da.call(this._shortWeekdaysParse,s),i!==-1?i:null):(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null):t==="dddd"?(i=Da.call(this._weekdaysParse,s),i!==-1||(i=Da.call(this._shortWeekdaysParse,s),i!==-1)?i:(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null)):t==="ddd"?(i=Da.call(this._shortWeekdaysParse,s),i!==-1||(i=Da.call(this._weekdaysParse,s),i!==-1)?i:(i=Da.call(this._minWeekdaysParse,s),i!==-1?i:null)):(i=Da.call(this._minWeekdaysParse,s),i!==-1||(i=Da.call(this._weekdaysParse,s),i!==-1)?i:(i=Da.call(this._shortWeekdaysParse,s),i!==-1?i:null))}function RGe(e,t,n){var r,i,a;if(this._weekdaysParseExact)return _Ge.call(this,e,t,n);for(this._weekdaysParse||(this._weekdaysParse=[],this._minWeekdaysParse=[],this._shortWeekdaysParse=[],this._fullWeekdaysParse=[]),r=0;r<7;r++){if(i=Xf([2e3,1]).day(r),n&&!this._fullWeekdaysParse[r]&&(this._fullWeekdaysParse[r]=new RegExp("^"+this.weekdays(i,"").replace(".","\\.?")+"$","i"),this._shortWeekdaysParse[r]=new RegExp("^"+this.weekdaysShort(i,"").replace(".","\\.?")+"$","i"),this._minWeekdaysParse[r]=new RegExp("^"+this.weekdaysMin(i,"").replace(".","\\.?")+"$","i")),this._weekdaysParse[r]||(a="^"+this.weekdays(i,"")+"|^"+this.weekdaysShort(i,"")+"|^"+this.weekdaysMin(i,""),this._weekdaysParse[r]=new RegExp(a.replace(".",""),"i")),n&&t==="dddd"&&this._fullWeekdaysParse[r].test(e))return r;if(n&&t==="ddd"&&this._shortWeekdaysParse[r].test(e))return r;if(n&&t==="dd"&&this._minWeekdaysParse[r].test(e))return r;if(!n&&this._weekdaysParse[r].test(e))return r}}function IGe(e){if(!this.isValid())return e!=null?this:NaN;var t=Xw(this,"Day");return e!=null?(e=vGe(e,this.localeData()),this.add(e-t,"d")):t}function DGe(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 NGe(e){if(!this.isValid())return e!=null?this:NaN;if(e!=null){var t=OGe(e,this.localeData());return this.day(this.day()%7?t:t-7)}else return this.day()||7}function PGe(e){return this._weekdaysParseExact?(ei(this,"_weekdaysRegex")||BB.call(this),e?this._weekdaysStrictRegex:this._weekdaysRegex):(ei(this,"_weekdaysRegex")||(this._weekdaysRegex=wGe),this._weekdaysStrictRegex&&e?this._weekdaysStrictRegex:this._weekdaysRegex)}function MGe(e){return this._weekdaysParseExact?(ei(this,"_weekdaysRegex")||BB.call(this),e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex):(ei(this,"_weekdaysShortRegex")||(this._weekdaysShortRegex=xGe),this._weekdaysShortStrictRegex&&e?this._weekdaysShortStrictRegex:this._weekdaysShortRegex)}function LGe(e){return this._weekdaysParseExact?(ei(this,"_weekdaysRegex")||BB.call(this),e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex):(ei(this,"_weekdaysMinRegex")||(this._weekdaysMinRegex=TGe),this._weekdaysMinStrictRegex&&e?this._weekdaysMinStrictRegex:this._weekdaysMinRegex)}function BB(){function e(c,f){return f.length-c.length}var t=[],n=[],r=[],i=[],a,s,o,l,u;for(a=0;a<7;a++)s=Xf([2e3,1]).day(a),o=Yh(this.weekdaysMin(s,"")),l=Yh(this.weekdaysShort(s,"")),u=Yh(this.weekdays(s,"")),t.push(o),n.push(l),r.push(u),i.push(o),i.push(l),i.push(u);t.sort(e),n.sort(e),r.sort(e),i.sort(e),this._weekdaysRegex=new RegExp("^("+i.join("|")+")","i"),this._weekdaysShortRegex=this._weekdaysRegex,this._weekdaysMinRegex=this._weekdaysRegex,this._weekdaysStrictRegex=new RegExp("^("+r.join("|")+")","i"),this._weekdaysShortStrictRegex=new RegExp("^("+n.join("|")+")","i"),this._weekdaysMinStrictRegex=new RegExp("^("+t.join("|")+")","i")}function UB(){return this.hours()%12||12}function $Ge(){return this.hours()||24}Un("H",["HH",2],0,"hour");Un("h",["hh",2],0,UB);Un("k",["kk",2],0,$Ge);Un("hmm",0,0,function(){return""+UB.apply(this)+qf(this.minutes(),2)});Un("hmmss",0,0,function(){return""+UB.apply(this)+qf(this.minutes(),2)+qf(this.seconds(),2)});Un("Hmm",0,0,function(){return""+this.hours()+qf(this.minutes(),2)});Un("Hmmss",0,0,function(){return""+this.hours()+qf(this.minutes(),2)+qf(this.seconds(),2)});function Wde(e,t){Un(e,0,0,function(){return this.localeData().meridiem(this.hours(),this.minutes(),t)})}Wde("a",!0);Wde("A",!1);function Qde(e,t){return t._meridiemParse}bn("a",Qde);bn("A",Qde);bn("H",Qi,LB);bn("h",Qi,UO);bn("k",Qi,UO);bn("HH",Qi,$u);bn("hh",Qi,$u);bn("kk",Qi,$u);bn("hmm",Pde);bn("hmmss",Mde);bn("Hmm",Pde);bn("Hmmss",Mde);vi(["H","HH"],os);vi(["k","kk"],function(e,t,n){var r=Pr(e);t[os]=r===24?0:r});vi(["a","A"],function(e,t,n){n._isPm=n._locale.isPM(e),n._meridiem=e});vi(["h","hh"],function(e,t,n){t[os]=Pr(e),br(n).bigHour=!0});vi("hmm",function(e,t,n){var r=e.length-2;t[os]=Pr(e.substr(0,r)),t[bd]=Pr(e.substr(r)),br(n).bigHour=!0});vi("hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[os]=Pr(e.substr(0,r)),t[bd]=Pr(e.substr(r,2)),t[Wh]=Pr(e.substr(i)),br(n).bigHour=!0});vi("Hmm",function(e,t,n){var r=e.length-2;t[os]=Pr(e.substr(0,r)),t[bd]=Pr(e.substr(r))});vi("Hmmss",function(e,t,n){var r=e.length-4,i=e.length-2;t[os]=Pr(e.substr(0,r)),t[bd]=Pr(e.substr(r,2)),t[Wh]=Pr(e.substr(i))});function FGe(e){return(e+"").toLowerCase().charAt(0)==="p"}var BGe=/[ap]\.?m?\.?/i,UGe=zO("Hours",!0);function zGe(e,t,n){return e>11?n?"pm":"PM":n?"am":"AM"}var qde={calendar:_qe,longDateFormat:Nqe,invalidDate:Mqe,ordinal:$qe,dayOfMonthOrdinalParse:Fqe,relativeTime:Uqe,months:nGe,monthsShort:Fde,week:pGe,weekdays:SGe,weekdaysMin:EGe,weekdaysShort:Vde,meridiemParse:BGe},Zi={},DE={},ex;function jGe(e,t){var n,r=Math.min(e.length,t.length);for(n=0;n0;){if(i=mI(a.slice(0,n).join("-")),i)return i;if(r&&r.length>=n&&jGe(a,r)>=n-1)break;n--}t++}return ex}function VGe(e){return!!(e&&e.match("^[^/\\\\]*$"))}function mI(e){var t=null,n;if(Zi[e]===void 0&&typeof O_<"u"&&O_&&O_.exports&&VGe(e))try{t=ex._abbr,n=require,n("./locale/"+e),Gm(t)}catch{Zi[e]=null}return Zi[e]}function Gm(e,t){var n;return e&&(hl(t)?n=wp(e):n=zB(e,t),n?ex=n:typeof console<"u"&&console.warn&&console.warn("Locale "+e+" not found. Did you forget to load it?")),ex._abbr}function zB(e,t){if(t!==null){var n,r=qde;if(t.abbr=e,Zi[e]!=null)Rde("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=Zi[e]._config;else if(t.parentLocale!=null)if(Zi[t.parentLocale]!=null)r=Zi[t.parentLocale]._config;else if(n=mI(t.parentLocale),n!=null)r=n._config;else return DE[t.parentLocale]||(DE[t.parentLocale]=[]),DE[t.parentLocale].push({name:e,config:t}),null;return Zi[e]=new IB(wM(r,t)),DE[e]&&DE[e].forEach(function(i){zB(i.name,i.config)}),Gm(e),Zi[e]}else return delete Zi[e],null}function WGe(e,t){if(t!=null){var n,r,i=qde;Zi[e]!=null&&Zi[e].parentLocale!=null?Zi[e].set(wM(Zi[e]._config,t)):(r=mI(e),r!=null&&(i=r._config),t=wM(i,t),r==null&&(t.abbr=e),n=new IB(t),n.parentLocale=Zi[e],Zi[e]=n),Gm(e)}else Zi[e]!=null&&(Zi[e].parentLocale!=null?(Zi[e]=Zi[e].parentLocale,e===Gm()&&Gm(e)):Zi[e]!=null&&delete Zi[e]);return Zi[e]}function wp(e){var t;if(e&&e._locale&&e._locale._abbr&&(e=e._locale._abbr),!e)return ex;if(!xd(e)){if(t=mI(e),t)return t;e=[e]}return HGe(e)}function QGe(){return xM(Zi)}function jB(e){var t,n=e._a;return n&&br(e).overflow===-2&&(t=n[Vh]<0||n[Vh]>11?Vh:n[Ef]<1||n[Ef]>$B(n[vo],n[Vh])?Ef:n[os]<0||n[os]>24||n[os]===24&&(n[bd]!==0||n[Wh]!==0||n[Bg]!==0)?os:n[bd]<0||n[bd]>59?bd:n[Wh]<0||n[Wh]>59?Wh:n[Bg]<0||n[Bg]>999?Bg:-1,br(e)._overflowDayOfYear&&(tEf)&&(t=Ef),br(e)._overflowWeeks&&t===-1&&(t=Zqe),br(e)._overflowWeekday&&t===-1&&(t=Xqe),br(e).overflow=t),e}var qGe=/^\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)?)?$/,GGe=/^\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)?)?$/,YGe=/Z|[+-]\d\d(?::?\d\d)?/,cA=[["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]],KN=[["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/]],ZGe=/^\/?Date\((-?\d+)/i,XGe=/^(?:(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}))$/,KGe={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 Gde(e){var t,n,r=e._i,i=qGe.exec(r)||GGe.exec(r),a,s,o,l,u=cA.length,c=KN.length;if(i){for(br(e).iso=!0,t=0,n=u;tH2(s)||e._dayOfYear===0)&&(br(e)._overflowDayOfYear=!0),n=Kw(s,0,e._dayOfYear),e._a[Vh]=n.getUTCMonth(),e._a[Ef]=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[os]===24&&e._a[bd]===0&&e._a[Wh]===0&&e._a[Bg]===0&&(e._nextDay=!0,e._a[os]=0),e._d=(e._useUTC?Kw:fGe).apply(null,r),a=e._useUTC?e._d.getUTCDay():e._d.getDay(),e._tzm!=null&&e._d.setUTCMinutes(e._d.getUTCMinutes()-e._tzm),e._nextDay&&(e._a[os]=24),e._w&&typeof e._w.d<"u"&&e._w.d!==a&&(br(e).weekdayMismatch=!0)}}function sYe(e){var t,n,r,i,a,s,o,l,u;t=e._w,t.GG!=null||t.W!=null||t.E!=null?(a=1,s=4,n=fy(t.GG,e._a[vo],Jw(Wi(),1,4).year),r=fy(t.W,1),i=fy(t.E,1),(i<1||i>7)&&(l=!0)):(a=e._locale._week.dow,s=e._locale._week.doy,u=Jw(Wi(),a,s),n=fy(t.gg,e._a[vo],u.year),r=fy(t.w,u.week),t.d!=null?(i=t.d,(i<0||i>6)&&(l=!0)):t.e!=null?(i=t.e+a,(t.e<0||t.e>6)&&(l=!0)):i=a),r<1||r>Zh(n,a,s)?br(e)._overflowWeeks=!0:l!=null?br(e)._overflowWeekday=!0:(o=Hde(n,r,i,a,s),e._a[vo]=o.year,e._dayOfYear=o.dayOfYear)}un.ISO_8601=function(){};un.RFC_2822=function(){};function VB(e){if(e._f===un.ISO_8601){Gde(e);return}if(e._f===un.RFC_2822){Yde(e);return}e._a=[],br(e).empty=!0;var t=""+e._i,n,r,i,a,s,o=t.length,l=0,u,c;for(i=Ide(e._f,e._locale).match(DB)||[],c=i.length,n=0;n0&&br(e).unusedInput.push(s),t=t.slice(t.indexOf(r)+r.length),l+=r.length),ov[a]?(r?br(e).empty=!1:br(e).unusedTokens.push(a),Yqe(a,r,e)):e._strict&&!r&&br(e).unusedTokens.push(a);br(e).charsLeftOver=o-l,t.length>0&&br(e).unusedInput.push(t),e._a[os]<=12&&br(e).bigHour===!0&&e._a[os]>0&&(br(e).bigHour=void 0),br(e).parsedDateParts=e._a.slice(0),br(e).meridiem=e._meridiem,e._a[os]=oYe(e._locale,e._a[os],e._meridiem),u=br(e).era,u!==null&&(e._a[vo]=e._locale.erasConvertYear(u,e._a[vo])),HB(e),jB(e)}function oYe(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 lYe(e){var t,n,r,i,a,s,o=!1,l=e._f.length;if(l===0){br(e).invalidFormat=!0,e._d=new Date(NaN);return}for(i=0;ithis?this:e:lI()});function Kde(e,t){var n,r;if(t.length===1&&xd(t[0])&&(t=t[0]),!t.length)return Wi();for(n=t[0],r=1;rthis.clone().month(0).utcOffset()||this.utcOffset()>this.clone().month(5).utcOffset()}function _Ye(){if(!hl(this._isDSTShifted))return this._isDSTShifted;var e={},t;return RB(e,this),e=Zde(e),e._a?(t=e._isUTC?Xf(e._a):Wi(e._a),this._isDSTShifted=this.isValid()&&OYe(e._a,t.toArray())>0):this._isDSTShifted=!1,this._isDSTShifted}function RYe(){return this.isValid()?!this._isUTC:!1}function IYe(){return this.isValid()?this._isUTC:!1}function efe(){return this.isValid()?this._isUTC&&this._offset===0:!1}var DYe=/^(-|\+)?(?:(\d*)[. ])?(\d+):(\d+)(?::(\d+)(\.\d*)?)?$/,NYe=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/;function Dd(e,t){var n=e,r=null,i,a,s;return B4(e)?n={ms:e._milliseconds,d:e._days,M:e._months}:op(e)||!isNaN(+e)?(n={},t?n[t]=+e:n.milliseconds=+e):(r=DYe.exec(e))?(i=r[1]==="-"?-1:1,n={y:0,d:Pr(r[Ef])*i,h:Pr(r[os])*i,m:Pr(r[bd])*i,s:Pr(r[Wh])*i,ms:Pr(kM(r[Bg]*1e3))*i}):(r=NYe.exec(e))?(i=r[1]==="-"?-1:1,n={y:mg(r[2],i),M:mg(r[3],i),w:mg(r[4],i),d:mg(r[5],i),h:mg(r[6],i),m:mg(r[7],i),s:mg(r[8],i)}):n==null?n={}:typeof n=="object"&&("from"in n||"to"in n)&&(s=PYe(Wi(n.from),Wi(n.to)),n={},n.ms=s.milliseconds,n.M=s.months),a=new gI(n),B4(e)&&ei(e,"_locale")&&(a._locale=e._locale),B4(e)&&ei(e,"_isValid")&&(a._isValid=e._isValid),a}Dd.fn=gI.prototype;Dd.invalid=vYe;function mg(e,t){var n=e&&parseFloat(e.replace(",","."));return(isNaN(n)?0:n)*t}function bK(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 PYe(e,t){var n;return e.isValid()&&t.isValid()?(t=QB(t,e),e.isBefore(t)?n=bK(e,t):(n=bK(t,e),n.milliseconds=-n.milliseconds,n.months=-n.months),n):{milliseconds:0,months:0}}function tfe(e,t){return function(n,r){var i,a;return r!==null&&!isNaN(+r)&&(Rde(t,"moment()."+t+"(period, number) is deprecated. Please use moment()."+t+"(number, period). See http://momentjs.com/guides/#/warnings/add-inverted-param/ for more info."),a=n,n=r,r=a),i=Dd(n,r),nfe(this,i,e),this}}function nfe(e,t,n,r){var i=t._milliseconds,a=kM(t._days),s=kM(t._months);e.isValid()&&(r=r??!0,s&&Ude(e,Xw(e,"Month")+s*n),a&&$de(e,"Date",Xw(e,"Date")+a*n),i&&e._d.setTime(e._d.valueOf()+i*n),r&&un.updateOffset(e,a||s))}var MYe=tfe(1,"add"),LYe=tfe(-1,"subtract");function rfe(e){return typeof e=="string"||e instanceof String}function $Ye(e){return Td(e)||AT(e)||rfe(e)||op(e)||BYe(e)||FYe(e)||e===null||e===void 0}function FYe(e){var t=r1(e)&&!AB(e),n=!1,r=["years","year","y","months","month","M","days","day","d","dates","date","D","hours","hour","h","minutes","minute","m","seconds","second","s","milliseconds","millisecond","ms"],i,a,s=r.length;for(i=0;in.valueOf():n.valueOf()9999?F4(n,t?"YYYYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYYYY-MM-DD[T]HH:mm:ss.SSSZ"):Kf(Date.prototype.toISOString)?t?this.toDate().toISOString():new Date(this.valueOf()+this.utcOffset()*60*1e3).toISOString().replace("Z",F4(n,"Z")):F4(n,t?"YYYY-MM-DD[T]HH:mm:ss.SSS[Z]":"YYYY-MM-DD[T]HH:mm:ss.SSSZ")}function JYe(){if(!this.isValid())return"moment.invalid(/* "+this._i+" */)";var e="moment",t="",n,r,i,a;return this.isLocal()||(e=this.utcOffset()===0?"moment.utc":"moment.parseZone",t="Z"),n="["+e+'("]',r=0<=this.year()&&this.year()<=9999?"YYYY":"YYYYYY",i="-MM-DD[T]HH:mm:ss.SSS",a=t+'[")]',this.format(n+r+i+a)}function eZe(e){e||(e=this.isUtc()?un.defaultFormatUtc:un.defaultFormat);var t=F4(this,e);return this.localeData().postformat(t)}function tZe(e,t){return this.isValid()&&(Td(e)&&e.isValid()||Wi(e).isValid())?Dd({to:this,from:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function nZe(e){return this.from(Wi(),e)}function rZe(e,t){return this.isValid()&&(Td(e)&&e.isValid()||Wi(e).isValid())?Dd({from:this,to:e}).locale(this.locale()).humanize(!t):this.localeData().invalidDate()}function iZe(e){return this.to(Wi(),e)}function ife(e){var t;return e===void 0?this._locale._abbr:(t=wp(e),t!=null&&(this._locale=t),this)}var afe=$c("moment().lang() is deprecated. Instead, use moment().localeData() to get the language configuration. Use moment().locale() to change languages.",function(e){return e===void 0?this.localeData():this.locale(e)});function sfe(){return this._locale}var T3=1e3,lv=60*T3,k3=60*lv,ofe=(365*400+97)*24*k3;function uv(e,t){return(e%t+t)%t}function lfe(e,t,n){return e<100&&e>=0?new Date(e+400,t,n)-ofe:new Date(e,t,n).valueOf()}function ufe(e,t,n){return e<100&&e>=0?Date.UTC(e+400,t,n)-ofe:Date.UTC(e,t,n)}function aZe(e){var t,n;if(e=Fc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ufe:lfe,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-=uv(t+(this._isUTC?0:this.utcOffset()*lv),k3);break;case"minute":t=this._d.valueOf(),t-=uv(t,lv);break;case"second":t=this._d.valueOf(),t-=uv(t,T3);break}return this._d.setTime(t),un.updateOffset(this,!0),this}function sZe(e){var t,n;if(e=Fc(e),e===void 0||e==="millisecond"||!this.isValid())return this;switch(n=this._isUTC?ufe:lfe,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+=k3-uv(t+(this._isUTC?0:this.utcOffset()*lv),k3)-1;break;case"minute":t=this._d.valueOf(),t+=lv-uv(t,lv)-1;break;case"second":t=this._d.valueOf(),t+=T3-uv(t,T3)-1;break}return this._d.setTime(t),un.updateOffset(this,!0),this}function oZe(){return this._d.valueOf()-(this._offset||0)*6e4}function lZe(){return Math.floor(this.valueOf()/1e3)}function uZe(){return new Date(this.valueOf())}function cZe(){var e=this;return[e.year(),e.month(),e.date(),e.hour(),e.minute(),e.second(),e.millisecond()]}function dZe(){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 fZe(){return this.isValid()?this.toISOString():null}function hZe(){return _B(this)}function pZe(){return Dm({},br(this))}function mZe(){return br(this).overflow}function gZe(){return{input:this._i,format:this._f,locale:this._locale,isUTC:this._isUTC,strict:this._strict}}Un("N",0,0,"eraAbbr");Un("NN",0,0,"eraAbbr");Un("NNN",0,0,"eraAbbr");Un("NNNN",0,0,"eraName");Un("NNNNN",0,0,"eraNarrow");Un("y",["y",1],"yo","eraYear");Un("y",["yy",2],0,"eraYear");Un("y",["yyy",3],0,"eraYear");Un("y",["yyyy",4],0,"eraYear");bn("N",qB);bn("NN",qB);bn("NNN",qB);bn("NNNN",CZe);bn("NNNNN",AZe);vi(["N","NN","NNN","NNNN","NNNNN"],function(e,t,n,r){var i=n._locale.erasParse(e,r,n._strict);i?br(n).era=i:br(n).invalidEra=e});bn("y",BO);bn("yy",BO);bn("yyy",BO);bn("yyyy",BO);bn("yo",_Ze);vi(["y","yy","yyy","yyyy"],vo);vi(["yo"],function(e,t,n,r){var i;n._locale._eraYearOrdinalRegex&&(i=e.match(n._locale._eraYearOrdinalRegex)),n._locale.eraYearOrdinalParse?t[vo]=n._locale.eraYearOrdinalParse(e,i):t[vo]=parseInt(e,10)});function bZe(e,t){var n,r,i,a=this._eras||wp("en")._eras;for(n=0,r=a.length;n=0)return a[r]}function vZe(e,t){var n=e.since<=e.until?1:-1;return t===void 0?un(e.since).year():un(e.since).year()+(t-e.offset)*n}function OZe(){var e,t,n,r=this.localeData().eras();for(e=0,t=r.length;ea&&(t=a),LZe.call(this,e,t,n,r,i))}function LZe(e,t,n,r,i){var a=Hde(e,t,n,r,i),s=Kw(a.year,0,a.dayOfYear);return this.year(s.getUTCFullYear()),this.month(s.getUTCMonth()),this.date(s.getUTCDate()),this}Un("Q",0,"Qo","quarter");bn("Q",Dde);vi("Q",function(e,t){t[Vh]=(Pr(e)-1)*3});function $Ze(e){return e==null?Math.ceil((this.month()+1)/3):this.month((e-1)*3+this.month()%3)}Un("D",["DD",2],"Do","date");bn("D",Qi,UO);bn("DD",Qi,$u);bn("Do",function(e,t){return e?t._dayOfMonthOrdinalParse||t._ordinalParse:t._dayOfMonthOrdinalParseLenient});vi(["D","DD"],Ef);vi("Do",function(e,t){t[Ef]=Pr(e.match(Qi)[0])});var dfe=zO("Date",!0);Un("DDD",["DDDD",3],"DDDo","dayOfYear");bn("DDD",cI);bn("DDDD",Nde);vi(["DDD","DDDD"],function(e,t,n){n._dayOfYear=Pr(e)});function FZe(e){var t=Math.round((this.clone().startOf("day")-this.clone().startOf("year"))/864e5)+1;return e==null?t:this.add(e-t,"d")}Un("m",["mm",2],0,"minute");bn("m",Qi,LB);bn("mm",Qi,$u);vi(["m","mm"],bd);var BZe=zO("Minutes",!1);Un("s",["ss",2],0,"second");bn("s",Qi,LB);bn("ss",Qi,$u);vi(["s","ss"],Wh);var UZe=zO("Seconds",!1);Un("S",0,0,function(){return~~(this.millisecond()/100)});Un(0,["SS",2],0,function(){return~~(this.millisecond()/10)});Un(0,["SSS",3],0,"millisecond");Un(0,["SSSS",4],0,function(){return this.millisecond()*10});Un(0,["SSSSS",5],0,function(){return this.millisecond()*100});Un(0,["SSSSSS",6],0,function(){return this.millisecond()*1e3});Un(0,["SSSSSSS",7],0,function(){return this.millisecond()*1e4});Un(0,["SSSSSSSS",8],0,function(){return this.millisecond()*1e5});Un(0,["SSSSSSSSS",9],0,function(){return this.millisecond()*1e6});bn("S",cI,Dde);bn("SS",cI,$u);bn("SSS",cI,Nde);var Nm,ffe;for(Nm="SSSS";Nm.length<=9;Nm+="S")bn(Nm,BO);function zZe(e,t){t[Bg]=Pr(("0."+e)*1e3)}for(Nm="S";Nm.length<=9;Nm+="S")vi(Nm,zZe);ffe=zO("Milliseconds",!1);Un("z",0,0,"zoneAbbr");Un("zz",0,0,"zoneName");function jZe(){return this._isUTC?"UTC":""}function HZe(){return this._isUTC?"Coordinated Universal Time":""}var Vt=_T.prototype;Vt.add=MYe;Vt.calendar=jYe;Vt.clone=HYe;Vt.diff=ZYe;Vt.endOf=sZe;Vt.format=eZe;Vt.from=tZe;Vt.fromNow=nZe;Vt.to=rZe;Vt.toNow=iZe;Vt.get=Jqe;Vt.invalidAt=mZe;Vt.isAfter=VYe;Vt.isBefore=WYe;Vt.isBetween=QYe;Vt.isSame=qYe;Vt.isSameOrAfter=GYe;Vt.isSameOrBefore=YYe;Vt.isValid=hZe;Vt.lang=afe;Vt.locale=ife;Vt.localeData=sfe;Vt.max=hYe;Vt.min=fYe;Vt.parsingFlags=pZe;Vt.set=eGe;Vt.startOf=aZe;Vt.subtract=LYe;Vt.toArray=cZe;Vt.toObject=dZe;Vt.toDate=uZe;Vt.toISOString=KYe;Vt.inspect=JYe;typeof Symbol<"u"&&Symbol.for!=null&&(Vt[Symbol.for("nodejs.util.inspect.custom")]=function(){return"Moment<"+this.format()+">"});Vt.toJSON=fZe;Vt.toString=XYe;Vt.unix=lZe;Vt.valueOf=oZe;Vt.creationData=gZe;Vt.eraName=OZe;Vt.eraNarrow=SZe;Vt.eraAbbr=EZe;Vt.eraYear=wZe;Vt.year=Lde;Vt.isLeapYear=Kqe;Vt.weekYear=RZe;Vt.isoWeekYear=IZe;Vt.quarter=Vt.quarters=$Ze;Vt.month=zde;Vt.daysInMonth=uGe;Vt.week=Vt.weeks=bGe;Vt.isoWeek=Vt.isoWeeks=yGe;Vt.weeksInYear=PZe;Vt.weeksInWeekYear=MZe;Vt.isoWeeksInYear=DZe;Vt.isoWeeksInISOWeekYear=NZe;Vt.date=dfe;Vt.day=Vt.days=IGe;Vt.weekday=DGe;Vt.isoWeekday=NGe;Vt.dayOfYear=FZe;Vt.hour=Vt.hours=UGe;Vt.minute=Vt.minutes=BZe;Vt.second=Vt.seconds=UZe;Vt.millisecond=Vt.milliseconds=ffe;Vt.utcOffset=EYe;Vt.utc=xYe;Vt.local=TYe;Vt.parseZone=kYe;Vt.hasAlignedHourOffset=CYe;Vt.isDST=AYe;Vt.isLocal=RYe;Vt.isUtcOffset=IYe;Vt.isUtc=efe;Vt.isUTC=efe;Vt.zoneAbbr=jZe;Vt.zoneName=HZe;Vt.dates=$c("dates accessor is deprecated. Use date instead.",dfe);Vt.months=$c("months accessor is deprecated. Use month instead",zde);Vt.years=$c("years accessor is deprecated. Use year instead",Lde);Vt.zone=$c("moment().zone is deprecated, use moment().utcOffset instead. http://momentjs.com/guides/#/warnings/zone/",wYe);Vt.isDSTShifted=$c("isDSTShifted is deprecated. See http://momentjs.com/guides/#/warnings/dst-shifted/ for more information",_Ye);function VZe(e){return Wi(e*1e3)}function WZe(){return Wi.apply(null,arguments).parseZone()}function hfe(e){return e}var ti=IB.prototype;ti.calendar=Rqe;ti.longDateFormat=Pqe;ti.invalidDate=Lqe;ti.ordinal=Bqe;ti.preparse=hfe;ti.postformat=hfe;ti.relativeTime=zqe;ti.pastFuture=jqe;ti.set=Aqe;ti.eras=bZe;ti.erasParse=yZe;ti.erasConvertYear=vZe;ti.erasAbbrRegex=TZe;ti.erasNameRegex=xZe;ti.erasNarrowRegex=kZe;ti.months=aGe;ti.monthsShort=sGe;ti.monthsParse=lGe;ti.monthsRegex=dGe;ti.monthsShortRegex=cGe;ti.week=hGe;ti.firstDayOfYear=gGe;ti.firstDayOfWeek=mGe;ti.weekdays=kGe;ti.weekdaysMin=AGe;ti.weekdaysShort=CGe;ti.weekdaysParse=RGe;ti.weekdaysRegex=PGe;ti.weekdaysShortRegex=MGe;ti.weekdaysMinRegex=LGe;ti.isPM=FGe;ti.meridiem=zGe;function C3(e,t,n,r){var i=wp(),a=Xf().set(r,t);return i[n](a,e)}function pfe(e,t,n){if(op(e)&&(t=e,e=void 0),e=e||"",t!=null)return C3(e,t,n,"month");var r,i=[];for(r=0;r<12;r++)i[r]=C3(e,r,n,"month");return i}function YB(e,t,n,r){typeof e=="boolean"?(op(t)&&(n=t,t=void 0),t=t||""):(t=e,n=t,e=!1,op(t)&&(n=t,t=void 0),t=t||"");var i=wp(),a=e?i._week.dow:0,s,o=[];if(n!=null)return C3(t,(n+a)%7,r,"day");for(s=0;s<7;s++)o[s]=C3(t,(s+a)%7,r,"day");return o}function QZe(e,t){return pfe(e,t,"months")}function qZe(e,t){return pfe(e,t,"monthsShort")}function GZe(e,t,n){return YB(e,t,n,"weekdays")}function YZe(e,t,n){return YB(e,t,n,"weekdaysShort")}function ZZe(e,t,n){return YB(e,t,n,"weekdaysMin")}Gm("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=Pr(e%100/10)===1?"th":t===1?"st":t===2?"nd":t===3?"rd":"th";return e+n}});un.lang=$c("moment.lang is deprecated. Use moment.locale instead.",Gm);un.langData=$c("moment.langData is deprecated. Use moment.localeData instead.",wp);var Ah=Math.abs;function XZe(){var e=this._data;return this._milliseconds=Ah(this._milliseconds),this._days=Ah(this._days),this._months=Ah(this._months),e.milliseconds=Ah(e.milliseconds),e.seconds=Ah(e.seconds),e.minutes=Ah(e.minutes),e.hours=Ah(e.hours),e.months=Ah(e.months),e.years=Ah(e.years),this}function mfe(e,t,n,r){var i=Dd(t,n);return e._milliseconds+=r*i._milliseconds,e._days+=r*i._days,e._months+=r*i._months,e._bubble()}function KZe(e,t){return mfe(this,e,t,1)}function JZe(e,t){return mfe(this,e,t,-1)}function yK(e){return e<0?Math.floor(e):Math.ceil(e)}function eXe(){var e=this._milliseconds,t=this._days,n=this._months,r=this._data,i,a,s,o,l;return e>=0&&t>=0&&n>=0||e<=0&&t<=0&&n<=0||(e+=yK(AM(n)+t)*864e5,t=0,n=0),r.milliseconds=e%1e3,i=cc(e/1e3),r.seconds=i%60,a=cc(i/60),r.minutes=a%60,s=cc(a/60),r.hours=s%24,t+=cc(s/24),l=cc(gfe(t)),n+=l,t-=yK(AM(l)),o=cc(n/12),n%=12,r.days=t,r.months=n,r.years=o,this}function gfe(e){return e*4800/146097}function AM(e){return e*146097/4800}function tXe(e){if(!this.isValid())return NaN;var t,n,r=this._milliseconds;if(e=Fc(e),e==="month"||e==="quarter"||e==="year")switch(t=this._days+r/864e5,n=this._months+gfe(t),e){case"month":return n;case"quarter":return n/3;case"year":return n/12}else switch(t=this._days+Math.round(AM(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 xp(e){return function(){return this.as(e)}}var bfe=xp("ms"),nXe=xp("s"),rXe=xp("m"),iXe=xp("h"),aXe=xp("d"),sXe=xp("w"),oXe=xp("M"),lXe=xp("Q"),uXe=xp("y"),cXe=bfe;function dXe(){return Dd(this)}function fXe(e){return e=Fc(e),this.isValid()?this[e+"s"]():NaN}function N1(e){return function(){return this.isValid()?this._data[e]:NaN}}var hXe=N1("milliseconds"),pXe=N1("seconds"),mXe=N1("minutes"),gXe=N1("hours"),bXe=N1("days"),yXe=N1("months"),vXe=N1("years");function OXe(){return cc(this.days()/7)}var Ph=Math.round,By={ss:44,s:45,m:45,h:22,d:26,w:null,M:11};function SXe(e,t,n,r,i){return i.relativeTime(t||1,!!n,e,r)}function EXe(e,t,n,r){var i=Dd(e).abs(),a=Ph(i.as("s")),s=Ph(i.as("m")),o=Ph(i.as("h")),l=Ph(i.as("d")),u=Ph(i.as("M")),c=Ph(i.as("w")),f=Ph(i.as("y")),h=a<=n.ss&&["s",a]||a0,h[4]=r,SXe.apply(null,h)}function wXe(e){return e===void 0?Ph:typeof e=="function"?(Ph=e,!0):!1}function xXe(e,t){return By[e]===void 0?!1:t===void 0?By[e]:(By[e]=t,e==="s"&&(By.ss=t-1),!0)}function TXe(e,t){if(!this.isValid())return this.localeData().invalidDate();var n=!1,r=By,i,a;return typeof e=="object"&&(t=e,e=!1),typeof e=="boolean"&&(n=e),typeof t=="object"&&(r=Object.assign({},By,t),t.s!=null&&t.ss==null&&(r.ss=t.s-1)),i=this.localeData(),a=EXe(this,!n,r,i),n&&(a=i.pastFuture(+this,a)),i.postformat(a)}var JN=Math.abs;function ey(e){return(e>0)-(e<0)||+e}function yI(){if(!this.isValid())return this.localeData().invalidDate();var e=JN(this._milliseconds)/1e3,t=JN(this._days),n=JN(this._months),r,i,a,s,o=this.asSeconds(),l,u,c,f;return o?(r=cc(e/60),i=cc(r/60),e%=60,r%=60,a=cc(n/12),n%=12,s=e?e.toFixed(3).replace(/\.?0+$/,""):"",l=o<0?"-":"",u=ey(this._months)!==ey(o)?"-":"",c=ey(this._days)!==ey(o)?"-":"",f=ey(this._milliseconds)!==ey(o)?"-":"",l+"P"+(a?u+a+"Y":"")+(n?u+n+"M":"")+(t?c+t+"D":"")+(i||r||e?"T":"")+(i?f+i+"H":"")+(r?f+r+"M":"")+(e?f+s+"S":"")):"P0D"}var qr=gI.prototype;qr.isValid=yYe;qr.abs=XZe;qr.add=KZe;qr.subtract=JZe;qr.as=tXe;qr.asMilliseconds=bfe;qr.asSeconds=nXe;qr.asMinutes=rXe;qr.asHours=iXe;qr.asDays=aXe;qr.asWeeks=sXe;qr.asMonths=oXe;qr.asQuarters=lXe;qr.asYears=uXe;qr.valueOf=cXe;qr._bubble=eXe;qr.clone=dXe;qr.get=fXe;qr.milliseconds=hXe;qr.seconds=pXe;qr.minutes=mXe;qr.hours=gXe;qr.days=bXe;qr.weeks=OXe;qr.months=yXe;qr.years=vXe;qr.humanize=TXe;qr.toISOString=yI;qr.toString=yI;qr.toJSON=yI;qr.locale=ife;qr.localeData=sfe;qr.toIsoString=$c("toIsoString() is deprecated. Please use toISOString() instead (notice the capitals)",yI);qr.lang=afe;Un("X",0,0,"unix");Un("x",0,0,"valueOf");bn("x",fI);bn("X",Qqe);vi("X",function(e,t,n){n._d=new Date(parseFloat(e)*1e3)});vi("x",function(e,t,n){n._d=new Date(Pr(e))});//! moment.js -un.version="2.30.1";kqe(Wi);un.fn=Vt;un.min=pYe;un.max=mYe;un.now=gYe;un.utc=Xf;un.unix=VZe;un.months=QZe;un.isDate=AT;un.locale=Gm;un.invalid=lI;un.duration=Dd;un.isMoment=Td;un.weekdays=GZe;un.parseZone=WZe;un.localeData=wp;un.isDuration=B4;un.monthsShort=qZe;un.weekdaysMin=ZZe;un.defineLocale=zB;un.updateLocale=WGe;un.locales=QGe;un.weekdaysShort=YZe;un.normalizeUnits=Fc;un.relativeTimeRounding=wXe;un.relativeTimeThreshold=xXe;un.calendarFormat=zYe;un.prototype=Vt;un.HTML5_FMT={DATETIME_LOCAL:"YYYY-MM-DDTHH:mm",DATETIME_LOCAL_SECONDS:"YYYY-MM-DDTHH:mm:ss",DATETIME_LOCAL_MS:"YYYY-MM-DDTHH:mm:ss.SSS",DATE:"YYYY-MM-DD",TIME:"HH:mm",TIME_SECONDS:"HH:mm:ss",TIME_MS:"HH:mm:ss.SSS",WEEK:"GGGG-[W]WW",MONTH:"YYYY-MM"};const yfe=e=>["workspaces",e,"documents"],kXe=(e,t)=>["workpsaces",e,"documents",t],CXe=e=>nB({queryKey:yfe(e||""),queryFn:async({pageParam:n})=>(await yr.get(`/workspaces/${e}/documents`,{params:{cursor:n,page_size:30}})).data,enabled:!!e,initialPageParam:void 0,getPreviousPageParam:n=>n.cursor??void 0,getNextPageParam:n=>n.cursor??void 0}),AXe=(e,t)=>{const n=Pu(),r=MO({queryKey:kXe(e||"",t||""),enabled:!!(e&&t),queryFn:async()=>(await yr.get(`/workspaces/${e}/documents/${t}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized document."}});return N.useEffect(()=>(r.data&&n(f3(r.data)),()=>{n(f3(null))}),[n,r.data]),r},_Xe=e=>{const t=OT();return Ep({mutationFn:async n=>(await yr.post(`/workspaces/${e}/documents`,n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:yfe(e)})}})},RXe=(e,t)=>Ep({mutationFn:async n=>(await yr.post(`/workspaces/${e}/documents/${t}/share-token`,n)).data});var _M=(e=>(e.READ="READ",e.EDIT="EDIT",e))(_M||{});const P1={};P1.write=async e=>{await navigator.clipboard.writeText(e)};P1.read=async()=>navigator.clipboard.readText();P1.readSync=()=>{throw new Error("`.readSync()` is not supported in browsers!")};P1.writeSync=()=>{throw new Error("`.writeSync()` is not supported in browsers!")};var ZB={},IXe=Ji;Object.defineProperty(ZB,"__esModule",{value:!0});var vI=ZB.default=void 0,DXe=IXe(ea()),NXe=_;vI=ZB.default=(0,DXe.default)((0,NXe.jsx)("path",{d:"M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2m0 16H8V7h11z"}),"ContentCopy");var XB={},PXe=Ji;Object.defineProperty(XB,"__esModule",{value:!0});var OI=XB.default=void 0,MXe=PXe(ea()),LXe=_;OI=XB.default=(0,MXe.default)((0,LXe.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 $Xe(e){var c,f;const{...t}=e,n=C0(),[r,i]=N.useState(null),a=Qr(JR),{mutateAsync:s}=RXe(((c=a.data)==null?void 0:c.workspaceId)||"",((f=a.data)==null?void 0:f.id)||""),{enqueueSnackbar:o}=vT(),l=async h=>{let g;if(h.expiredString===sv[0])g=null;else{const[S,w]=h.expiredString.split(" ");g=un().add(Number(S),w).toDate()}const{sharingToken:b}=await s({role:h.role,expiredAt:g});i(`${window.location.origin}/${n.workspaceSlug}/${n.documentId}/share?token=${b}`)},u=async()=>{r&&(await P1.write(r),o("URL Copied!",{variant:"success"}))};return _.jsx(x0,{disableAutoFocus:!0,...t,children:_.jsxs(hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[_.jsx(Vi,{sx:{position:"absolute",top:28,right:28},onClick:h=>{var g;return(g=e.onClose)==null?void 0:g.call(e,h,"backdropClick")},children:_.jsx(OI,{})}),_.jsxs(nr,{gap:1,children:[_.jsx(ur,{variant:"subtitle1",children:"Share Link"}),_.jsx(Lc,{children:_.jsx(FO,{defaultValues:{expiredString:sv[0],role:Object.values(_M)[0]},onSuccess:l,children:_.jsxs(nr,{gap:2,children:[_.jsx(SM,{label:"Role",name:"role",options:Object.values(_M).map(h=>({id:h,label:h})),size:"small",sx:{width:1},variant:"filled"}),_.jsx(SM,{label:"Expired Date",name:"expiredString",options:sv.map(h=>({id:h,label:h})),size:"small",sx:{width:1},variant:"filled"}),_.jsx(ss,{type:"submit",variant:"contained",children:"Generate"})]})})}),!!r&&_.jsxs(nr,{direction:"row",alignItems:"center",gap:2,children:[_.jsx(ur,{variant:"body1",width:1,noWrap:!0,children:r}),_.jsx(Rm,{title:"Copy URL",children:_.jsx(Vi,{onClick:u,children:_.jsx(vI,{})})})]})]})]})})}function FXe(){const[e,t]=N.useState(!1),n=()=>{t(r=>!r)};return _.jsxs(_.Fragment,{children:[_.jsx(Vi,{onClick:n,color:"inherit",children:_.jsx(oce,{})}),_.jsx($Xe,{open:e,onClose:n})]})}var KB={},BXe=Ji;Object.defineProperty(KB,"__esModule",{value:!0});var JB=KB.default=void 0,UXe=BXe(ea()),zXe=_;JB=KB.default=(0,UXe.default)((0,zXe.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 eU={},jXe=Ji;Object.defineProperty(eU,"__esModule",{value:!0});var tU=eU.default=void 0,HXe=jXe(ea()),VXe=_;tU=eU.default=(0,HXe.default)((0,VXe.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 DT(){const e=RO("(prefers-color-scheme: dark)"),t=Qr(jF);return N.useMemo(()=>{const r=e?"dark":"light";return t.theme==="default"?r:t.theme},[t.theme,e])}function WXe(){const e=Pu(),t=DT(),n=()=>{e(fue(t=="light"?"dark":"light"))};return _.jsx(Vi,{onClick:n,color:"inherit",children:t==="light"?_.jsx(tU,{}):_.jsx(JB,{})})}function QXe(e){const{presenceList:t}=e,[n,r]=N.useState(null),i=!!n,a=c=>{r(c.currentTarget)},s=()=>{r(null)},o=4,l=t.slice(o),u=c=>_.jsx(Rm,{title:c.presence.name,children:_.jsx(n1,{alt:c.presence.name,sx:{bgcolor:c.presence.color},children:c.presence.name[0]})},c.clientID);return _.jsxs(_.Fragment,{children:[_.jsxs(pIe,{children:[t.slice(0,o).map(u),t.length>o&&_.jsxs(n1,{onClick:a,children:["+",t.length-o]})]}),_.jsx(DO,{open:i,anchorEl:n,onClose:s,anchorOrigin:{vertical:"bottom",horizontal:"left"},children:_.jsxs(hs,{sx:{padding:2},children:[_.jsx(ur,{variant:"subtitle2",children:"Additional Users"}),l.map(c=>_.jsxs(t3,{sx:{paddingY:1},children:[_.jsx(_Pe,{children:_.jsx(n1,{sx:{bgcolor:c.presence.color,width:24,height:24,fontSize:12},children:c.presence.name[0]})}),_.jsx(Bf,{primary:c.presence.name,primaryTypographyProps:{variant:"body2"}})]},c.clientID))]})})]})}function qXe(){const e=Pu(),t=Mu(),n=Qr(A0),r=Qr(yT),[i,{set:a,push:s,removeAt:o,clear:l,filter:u}]=uUe([]);N.useEffect(()=>{n.shareRole==="READ"&&e(eM("read"))},[e,n.shareRole]),N.useEffect(()=>{if(!n.doc)return;a(n.doc.getPresences());const h=n.doc.subscribe("others",g=>{var b,S;g.type==="watched"&&a(((S=(b=n.doc)==null?void 0:b.getPresences)==null?void 0:S.call(b))??[]),g.type==="unwatched"&&u(w=>w.clientID!==g.value.clientID)});return()=>{h(),l()}},[n.doc,l,s,o,a,u]);const c=h=>{h&&e(eM(h))},f=()=>{var h;t(`/${(h=r.data)==null?void 0:h.slug}`)};return _.jsx(Noe,{position:"static",sx:{zIndex:100},children:_.jsx(CF,{children:_.jsxs(nr,{width:"100%",direction:"row",justifyContent:"space-between",children:[_.jsxs(nr,{direction:"row",spacing:1,alignItems:"center",children:[!n.shareRole&&_.jsx(Rm,{title:"Back to Previous Page",children:_.jsx(Vi,{color:"inherit",onClick:f,children:_.jsx(Fue,{})})}),_.jsx(hs,{children:n.shareRole!=="READ"&&_.jsxs(Rle,{value:n.mode,exclusive:!0,onChange:(h,g)=>c(g),size:"small",children:[_.jsx(_4,{value:"edit","aria-label":"edit",children:_.jsx(Rm,{title:"Edit Mode",children:_.jsx(Bue,{})})}),_.jsx(_4,{value:"both","aria-label":"both",children:_.jsx(Rm,{title:"Both Mode",children:_.jsx(Uue,{})})}),_.jsx(_4,{value:"read","aria-label":"read",children:_.jsx(Rm,{title:"Read Mode",children:_.jsx(JF,{})})})]})}),_.jsx(wze,{})]}),_.jsxs(nr,{direction:"row",alignItems:"center",gap:1,children:[_.jsx(QXe,{presenceList:i}),!n.shareRole&&_.jsx(FXe,{}),_.jsx(WXe,{})]})]})})})}function GXe(){return _.jsxs(Qa,{sx:{flexGrow:1},height:"100vh",children:[_.jsx(qXe,{}),_.jsx(jR,{})]})}function YXe(){return _.jsx(nr,{sx:{flexGrow:1,height:"100vh"},children:_.jsx(jR,{})})}var nU={},ZXe=Ji;Object.defineProperty(nU,"__esModule",{value:!0});var vfe=nU.default=void 0,XXe=ZXe(ea()),KXe=_;vfe=nU.default=(0,XXe.default)((0,KXe.jsx)("path",{d:"M3 18h18v-2H3zm0-5h18v-2H3zm0-7v2h18V6z"}),"Menu");var rU={},JXe=Ji;Object.defineProperty(rU,"__esModule",{value:!0});var Ofe=rU.default=void 0,eKe=JXe(ea()),tKe=_;Ofe=rU.default=(0,eKe.default)((0,tKe.jsx)("path",{d:"m17 7-1.41 1.41L18.17 11H8v2h10.17l-2.58 2.58L17 17l5-5zM4 5h8V3H4c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h8v-2H4z"}),"Logout");var iU={},nKe=Ji;Object.defineProperty(iU,"__esModule",{value:!0});var Sfe=iU.default=void 0,rKe=nKe(ea()),vK=_;Sfe=iU.default=(0,rKe.default)([(0,vK.jsx)("circle",{cx:"10",cy:"8",r:"4"},"0"),(0,vK.jsx)("path",{d:"M10.67 13.02c-.22-.01-.44-.02-.67-.02-2.42 0-4.68.67-6.61 1.82-.88.52-1.39 1.5-1.39 2.53V20h9.26c-.79-1.13-1.26-2.51-1.26-4 0-1.07.25-2.07.67-2.98M20.75 16c0-.22-.03-.42-.06-.63l1.14-1.01-1-1.73-1.45.49c-.32-.27-.68-.48-1.08-.63L18 11h-2l-.3 1.49c-.4.15-.76.36-1.08.63l-1.45-.49-1 1.73 1.14 1.01c-.03.21-.06.41-.06.63s.03.42.06.63l-1.14 1.01 1 1.73 1.45-.49c.32.27.68.48 1.08.63L16 21h2l.3-1.49c.4-.15.76-.36 1.08-.63l1.45.49 1-1.73-1.14-1.01c.03-.21.06-.41.06-.63M17 18c-1.1 0-2-.9-2-2s.9-2 2-2 2 .9 2 2-.9 2-2 2"},"1")],"ManageAccounts");const iKe={accessToken:null},Efe=R1({name:"auth",initialState:iKe,reducers:{setAccessToken:(e,t)=>{e.accessToken=t.payload}}}),{setAccessToken:aU}=Efe.actions,NT=e=>e.auth,aKe=Efe.reducer;function wfe(e){const t=Pu(),n=DT(),r=Mu(),i=()=>{t(aU(null)),t(J8(null))},a=()=>{r("/settings/profile")},s=()=>{t(fue(n=="light"?"dark":"light"))};return _.jsx(DO,{anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},...e,children:_.jsxs(IO,{children:[_.jsxs(xu,{onClick:s,children:[_.jsx(nv,{children:n==="light"?_.jsx(tU,{}):_.jsx(JB,{})}),_.jsx(Bf,{children:"Appearance"})]}),_.jsxs(xu,{onClick:a,children:[_.jsx(nv,{children:_.jsx(Sfe,{fontSize:"small"})}),_.jsx(Bf,{children:"Profile"})]}),_.jsxs(xu,{onClick:i,children:[_.jsx(nv,{children:_.jsx(Ofe,{fontSize:"small"})}),_.jsx(Bf,{children:"Logout"})]})]})})}var sU={},sKe=Ji;Object.defineProperty(sU,"__esModule",{value:!0});var xfe=sU.default=void 0,oKe=sKe(ea()),OK=_;xfe=sU.default=(0,oKe.default)([(0,OK.jsx)("path",{d:"M17.59 18 19 16.59 14.42 12 19 7.41 17.59 6l-6 6z"},"0"),(0,OK.jsx)("path",{d:"m11 18 1.41-1.41L7.83 12l4.58-4.59L11 6l-6 6z"},"1")],"KeyboardDoubleArrowLeft");var oU={},lKe=Ji;Object.defineProperty(oU,"__esModule",{value:!0});var Tfe=oU.default=void 0,uKe=lKe(ea()),SK=_;Tfe=oU.default=(0,uKe.default)([(0,SK.jsx)("path",{d:"M6.41 6 5 7.41 9.58 12 5 16.59 6.41 18l6-6z"},"0"),(0,SK.jsx)("path",{d:"m13 6-1.41 1.41L16.17 12l-4.58 4.59L13 18l6-6z"},"1")],"KeyboardDoubleArrowRight");function lU(e){return _.jsx(r0,{...e,children:_.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:[_.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"}),_.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"}),_.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"})]})})}const cv=282,kfe=Re(Noe,{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),...t&&{width:`calc(100% - ${cv}px)`,marginLeft:`${cv}px`,transition:e.transitions.create(["margin","width"],{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen})}}));function cKe(e){var h,g;const{open:t,onDrawerOpen:n}=e,r=Ni(),i=Mu(),a=Qr(bT),s=Qr(yT),[o,l]=N.useState(null),u=b=>{l(b.currentTarget)},c=()=>{l(null)},f=()=>{var b;i(`/${(b=s.data)==null?void 0:b.slug}`)};return _.jsxs(kfe,{position:"fixed",open:t,children:[_.jsx(CF,{children:_.jsxs(nr,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[_.jsx(Vi,{onClick:u,children:_.jsx(n1,{children:(g=(h=a.data)==null?void 0:h.nickname)==null?void 0:g.charAt(0)})}),_.jsxs(nr,{direction:"row",children:[_.jsx(Vi,{color:"inherit","aria-label":"open drawer",onClick:n,edge:"start",sx:{mr:2},children:t?r.direction==="ltr"?_.jsx(xfe,{}):_.jsx(Tfe,{}):_.jsx(vfe,{})}),_.jsx(Vi,{onClick:f,children:_.jsx(lU,{})})]})]})}),_.jsx(wfe,{open:!!o,anchorEl:o,onClose:c})]})}var uU={},dKe=Ji;Object.defineProperty(uU,"__esModule",{value:!0});var Cfe=uU.default=void 0,fKe=dKe(ea()),hKe=_;Cfe=uU.default=(0,fKe.default)((0,hKe.jsx)("path",{d:"M7.41 8.59 12 13.17l4.59-4.58L18 10l-6 6-6-6z"}),"KeyboardArrowDown");var cU={},pKe=Ji;Object.defineProperty(cU,"__esModule",{value:!0});var Afe=cU.default=void 0,mKe=pKe(ea()),gKe=_;Afe=cU.default=(0,mKe.default)((0,gKe.jsx)("path",{d:"M7.41 15.41 12 10.83l4.59 4.58L18 14l-6-6-6 6z"}),"KeyboardArrowUp");const bKe=e=>["workspaces",e],_fe=()=>["workspaces"],dU=e=>{const t=Pu(),n=MO({queryKey:bKe(e||""),enabled:!!e,queryFn:async()=>(await yr.get(`/workspaces/${e}`)).data,meta:{errorMessage:"This is a non-existent or unauthorized Workspace."}});return N.useEffect(()=>(n.data&&t(NX(n.data)),()=>{t(NX(null))}),[t,n.data]),n},yKe=()=>nB({queryKey:_fe(),queryFn:async({pageParam:t})=>(await yr.get("/workspaces",{params:{cursor:t}})).data,initialPageParam:void 0,getPreviousPageParam:t=>t.cursor??void 0,getNextPageParam:t=>t.cursor??void 0}),vKe=()=>{const e=OT();return Ep({mutationFn:async t=>(await yr.post("/workspaces",t)).data,onSuccess:()=>{e.invalidateQueries({queryKey:_fe()})}})},OKe=e=>Ep({mutationFn:async t=>(await yr.post(`/workspaces/${e}/invite-token`,t)).data}),SKe=()=>Ep({mutationFn:async e=>(await yr.post("/workspaces/join",e)).data});class tx extends N.Component{constructor(t){super(t),this.scrollListener=this.scrollListener.bind(this),this.eventListenerOptions=this.eventListenerOptions.bind(this),this.mousewheelListener=this.mousewheelListener.bind(this)}componentDidMount(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}componentDidUpdate(){if(this.props.isReverse&&this.loadMore){const t=this.getParentElement(this.scrollComponent);t.scrollTop=t.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}componentWillUnmount(){this.detachScrollListener(),this.detachMousewheelListener()}isPassiveSupported(){let t=!1;const n={get passive(){t=!0}};try{document.addEventListener("test",null,n),document.removeEventListener("test",null,n)}catch{}return t}eventListenerOptions(){let t=this.props.useCapture;return this.isPassiveSupported()?t={useCapture:this.props.useCapture,passive:!0}:t={passive:!1},t}setDefaultLoader(t){this.defaultLoader=t}detachMousewheelListener(){let t=window;this.props.useWindow===!1&&(t=this.scrollComponent.parentNode),t.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}detachScrollListener(){let t=window;this.props.useWindow===!1&&(t=this.getParentElement(this.scrollComponent)),t.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}getParentElement(t){const n=this.props.getScrollParent&&this.props.getScrollParent();return n??(t&&t.parentNode)}filterProps(t){return t}attachScrollListener(){const t=this.getParentElement(this.scrollComponent);if(!this.props.hasMore||!t)return;let n=window;this.props.useWindow===!1&&(n=t),n.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),n.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),n.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}mousewheelListener(t){t.deltaY===1&&!this.isPassiveSupported()&&t.preventDefault()}scrollListener(){const t=this.scrollComponent,n=window,r=this.getParentElement(t);let i;if(this.props.useWindow){const a=document.documentElement||document.body.parentNode||document.body,s=n.pageYOffset!==void 0?n.pageYOffset:a.scrollTop;this.props.isReverse?i=s:i=this.calculateOffset(t,s)}else this.props.isReverse?i=r.scrollTop:i=t.scrollHeight-r.scrollTop-r.clientHeight;i{this.scrollComponent=E,c&&c(E)};const w=[n];return i&&(o?s?w.unshift(o):w.push(o):this.defaultLoader&&(s?w.unshift(this.defaultLoader):w.push(this.defaultLoader))),hn.createElement(r,S,w)}}$s(tx,"propTypes",{children:Y.node.isRequired,element:Y.node,hasMore:Y.bool,initialLoad:Y.bool,isReverse:Y.bool,loader:Y.node,loadMore:Y.func.isRequired,pageStart:Y.number,ref:Y.func,getScrollParent:Y.func,threshold:Y.number,useCapture:Y.bool,useWindow:Y.bool}),$s(tx,"defaultProps",{element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null});var fU={},EKe=Ji;Object.defineProperty(fU,"__esModule",{value:!0});var Rfe=fU.default=void 0,wKe=EKe(ea()),xKe=_;Rfe=fU.default=(0,wKe.default)((0,xKe.jsx)("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"}),"Check");var hU={},TKe=Ji;Object.defineProperty(hU,"__esModule",{value:!0});var SI=hU.default=void 0,kKe=TKe(ea()),CKe=_;SI=hU.default=(0,kKe.default)((0,CKe.jsx)("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"}),"Add");const AKe=e=>["check","name-conflict",e],pU=e=>MO({queryKey:AKe(e||""),enabled:!!e,queryFn:async()=>(await yr.post("/check/name-conflict",{name:e})).data});function Ife(e){const{title:t,onSuccess:n,enableConflictCheck:r,...i}=e,[a,s]=N.useState(""),[o,l]=N.useState(""),{data:u}=pU(o),c=N.useMemo(()=>r?a.length<2?"Title must be at least 2 characters":u!=null&&u.conflict?"Already Exists":null:null,[r,a.length,u==null?void 0:u.conflict]);KR(()=>{l(a)},500,[a]);const f=()=>{var b;(b=i==null?void 0:i.onClose)==null||b.call(i,new Event("Close Modal"),"escapeKeyDown")},h=async b=>{b.title.length>=2&&(await n(b),f())},g=b=>{r&&s(b.target.value)};return _.jsx(x0,{disableAutoFocus:!0,...i,children:_.jsxs(hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:[_.jsx(Vi,{sx:{position:"absolute",top:28,right:28},onClick:f,children:_.jsx(OI,{})}),_.jsxs(nr,{gap:4,children:[_.jsxs(ur,{variant:"h5",children:["Create New ",t]}),_.jsx(Lc,{children:_.jsx(FO,{defaultValues:{title:""},onSuccess:h,children:_.jsxs(nr,{gap:4,alignItems:"flex-end",children:[_.jsx(CT,{variant:"standard",name:"title",label:`Title of New ${t}`,required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:g,error:!!c,helperText:c}),_.jsx(ss,{type:"submit",variant:"contained",size:"large",disabled:!!c,children:"OK"})]})})})]})]})})}function _Ke(e){const{width:t,...n}=e,r=Mu(),i=C0(),{data:a,hasNextPage:s,fetchNextPage:o}=yKe(),{mutateAsync:l}=vKe(),u=N.useMemo(()=>(a==null?void 0:a.pages.reduce((w,E)=>w.concat(E.workspaces),[]))??[],[a==null?void 0:a.pages]),[c,f]=N.useState(!1),h=w=>{r(`/${w}`)},g=w=>{var E;i.workspaceSlug!==w&&(h(w),(E=n==null?void 0:n.onClose)==null||E.call(n,new Event("Close Popover"),"backdropClick"))},b=()=>{var w;f(E=>!E),n.open&&((w=n==null?void 0:n.onClose)==null||w.call(n,new Event("Close Popover"),"backdropClick"))},S=async w=>{const E=await l(w);h(E.slug)};return _.jsxs(_.Fragment,{children:[_.jsx(DO,{anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...n,children:_.jsxs(IO,{sx:{width:t},children:[_.jsx(Qa,{style:{maxHeight:300,overflow:"auto"},children:_.jsx(tx,{pageStart:0,loadMore:()=>o(),hasMore:s,loader:_.jsx(Qa,{className:"loader",children:_.jsx(wd,{size:"sm"})},0),useWindow:!1,children:u.map(w=>_.jsxs(xu,{onClick:()=>g(w.slug),children:[_.jsx(Bf,{primaryTypographyProps:{noWrap:!0,variant:"body2"},children:w.title}),i.workspaceSlug===w.slug&&_.jsx(xF,{children:_.jsx(Rfe,{fontSize:"small"})})]},w.id))})}),_.jsx(h1,{}),_.jsxs(xu,{onClick:b,children:[_.jsx(nv,{children:_.jsx(SI,{fontSize:"small"})}),_.jsx(Bf,{children:"Create Workspace"})]})]})}),_.jsx(Ife,{open:c,title:"Workspace",onClose:b,onSuccess:S,enableConflictCheck:!0})]})}var mU={},RKe=Ji;Object.defineProperty(mU,"__esModule",{value:!0});var Dfe=mU.default=void 0,IKe=RKe(ea()),DKe=_;Dfe=mU.default=(0,IKe.default)((0,DKe.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");function NKe(e){var h;const{open:t}=e,n=k0(),r=C0(),i=Mu(),a=Qr(yT),[s,o]=N.useState(null),l=N.useMemo(()=>n.pathname.split("/")[2]??"main",[n.pathname]),u=g=>{o(g.currentTarget)},c=()=>{o(null)},f=()=>{i(`/${r.workspaceSlug}/member`)};return _.jsxs(IDe,{sx:{width:cv,flexShrink:0,"& .MuiDrawer-paper":{width:cv,boxSizing:"border-box"}},variant:"persistent",anchor:"left",open:t,children:[_.jsx(Nfe,{children:_.jsxs(t3,{disablePadding:!0,children:[_.jsxs(yZ,{onClick:u,children:[_.jsx(Bf,{primary:(h=a.data)==null?void 0:h.title,primaryTypographyProps:{variant:"subtitle1",noWrap:!0}}),_.jsx(xF,{children:_.jsx(Vi,{children:s?_.jsx(Afe,{}):_.jsx(Cfe,{})})})]}),_.jsx(_Ke,{open:!!s,anchorEl:s,onClose:c,width:cv-32})]})}),_.jsx(h1,{}),_.jsx(t3,{disablePadding:!0,children:_.jsxs(yZ,{onClick:f,selected:l==="member",children:[_.jsx(nv,{children:_.jsx(Dfe,{})}),_.jsx(Bf,{primary:"Members"})]})})]})}const PKe=Re("main",{shouldForwardProp:e=>e!=="open"})(({theme:e,open:t})=>({flexGrow:1,paddingLeft:e.spacing(3),paddingRight:e.spacing(3),paddingTop:e.spacing(3),transition:e.transitions.create("margin",{easing:e.transitions.easing.sharp,duration:e.transitions.duration.leavingScreen}),marginLeft:`-${cv}px`,...t&&{transition:e.transitions.create("margin",{easing:e.transitions.easing.easeOut,duration:e.transitions.duration.enteringScreen}),marginLeft:0}})),Nfe=Re("div")(({theme:e})=>({display:"flex",alignItems:"center",padding:e.spacing(0,1),...e.mixins.toolbar,justifyContent:"flex-end"}));function MKe(){const{drawerOpen:e}=Qr(jF),t=Pu(),n=()=>{t(wFe(!e))};return _.jsxs(Qa,{sx:{display:"flex"},children:[_.jsx(cKe,{open:e,onDrawerOpen:n}),_.jsx(NKe,{open:e}),_.jsxs(PKe,{open:e,children:[_.jsx(Nfe,{}),_.jsx(jR,{})]})]})}var LKe=function(e){var t={};function n(r){if(t[r])return t[r].exports;var i=t[r]={i:r,l:!1,exports:{}};return e[r].call(i.exports,i,i.exports,n),i.l=!0,i.exports}return n.m=e,n.c=t,n.d=function(r,i,a){n.o(r,i)||Object.defineProperty(r,i,{enumerable:!0,get:a})},n.r=function(r){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(r,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(r,"__esModule",{value:!0})},n.t=function(r,i){if(1&i&&(r=n(r)),8&i||4&i&&typeof r=="object"&&r&&r.__esModule)return r;var a=Object.create(null);if(n.r(a),Object.defineProperty(a,"default",{enumerable:!0,value:r}),2&i&&typeof r!="string")for(var s in r)n.d(a,s,(function(o){return r[o]}).bind(null,s));return a},n.n=function(r){var i=r&&r.__esModule?function(){return r.default}:function(){return r};return n.d(i,"a",i),i},n.o=function(r,i){return Object.prototype.hasOwnProperty.call(r,i)},n.p="",n(n.s=4)}([function(e,t,n){e.exports=n(2)()},function(e,t){e.exports=N},function(e,t,n){var r=n(3);function i(){}function a(){}a.resetWarningCache=i,e.exports=function(){function s(u,c,f,h,g,b){if(b!==r){var S=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw S.name="Invariant Violation",S}}function o(){return s}s.isRequired=s;var l={array:s,bool:s,func:s,number:s,object:s,string:s,symbol:s,any:s,arrayOf:o,element:s,elementType:s,instanceOf:o,node:s,objectOf:o,oneOf:o,oneOfType:o,shape:o,exact:o,checkPropTypes:a,resetWarningCache:i};return l.PropTypes=l,l}},function(e,t,n){e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},function(e,t,n){n.r(t),n.d(t,"FacebookLoginButton",function(){return K}),n.d(t,"GoogleLoginButton",function(){return z}),n.d(t,"GithubLoginButton",function(){return ee}),n.d(t,"TwitterLoginButton",function(){return ie}),n.d(t,"AmazonLoginButton",function(){return qe}),n.d(t,"InstagramLoginButton",function(){return tt}),n.d(t,"LinkedInLoginButton",function(){return et}),n.d(t,"MicrosoftLoginButton",function(){return Je}),n.d(t,"BufferLoginButton",function(){return he}),n.d(t,"TelegramLoginButton",function(){return We}),n.d(t,"AppleLoginButton",function(){return ve}),n.d(t,"DiscordLoginButton",function(){return Ot}),n.d(t,"OktaLoginButton",function(){return gt}),n.d(t,"SlackLoginButton",function(){return wt}),n.d(t,"YahooLoginButton",function(){return $n}),n.d(t,"createButton",function(){return Z}),n.d(t,"createSvgIcon",function(){return H}),n.d(t,"ZaloLoginButton",function(){return zr}),n.d(t,"TikTokLoginButton",function(){return lt}),n.d(t,"MetamaskLoginButton",function(){return yn});var r={};n.r(r),n.d(r,"FacebookLoginButton",function(){return K}),n.d(r,"GoogleLoginButton",function(){return z}),n.d(r,"GithubLoginButton",function(){return ee}),n.d(r,"TwitterLoginButton",function(){return ie}),n.d(r,"AmazonLoginButton",function(){return qe}),n.d(r,"InstagramLoginButton",function(){return tt}),n.d(r,"LinkedInLoginButton",function(){return et}),n.d(r,"MicrosoftLoginButton",function(){return Je}),n.d(r,"BufferLoginButton",function(){return he}),n.d(r,"TelegramLoginButton",function(){return We}),n.d(r,"AppleLoginButton",function(){return ve}),n.d(r,"DiscordLoginButton",function(){return Ot}),n.d(r,"OktaLoginButton",function(){return gt}),n.d(r,"SlackLoginButton",function(){return wt}),n.d(r,"YahooLoginButton",function(){return $n}),n.d(r,"createButton",function(){return Z}),n.d(r,"createSvgIcon",function(){return H}),n.d(r,"ZaloLoginButton",function(){return zr}),n.d(r,"TikTokLoginButton",function(){return lt}),n.d(r,"MetamaskLoginButton",function(){return yn});var i=n(1),a=n.n(i),s=n(0),o=n.n(s),l=function(Qe){var Ye=Qe.name,ot=Qe.size,yt=Qe.format;return a.a.createElement("i",{className:yt(Ye),style:{fontSize:ot}})};l.propTypes={format:o.a.func,name:o.a.string.isRequired,size:o.a.oneOfType([o.a.string,o.a.number]).isRequired},l.defaultProps={format:function(Qe){return"demo-icon icon-".concat(Qe)},size:26};var u=l,c=function(Qe){var Ye=Qe.type,ot=Qe.size,yt=Qe.format,Yn=Qe.color,pn=Yn===void 0?"#FFFFFF":Yn;return typeof Ye=="string"?a.a.createElement(u,{format:yt,name:Ye,size:ot}):a.a.createElement(Ye,{size:ot,color:pn})};c.propTypes={format:o.a.func,size:o.a.oneOfType([o.a.number,o.a.string]),type:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),color:o.a.string};var f=c;function h(Qe,Ye){var ot=Object.keys(Qe);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Qe);Ye&&(yt=yt.filter(function(Yn){return Object.getOwnPropertyDescriptor(Qe,Yn).enumerable})),ot.push.apply(ot,yt)}return ot}function g(Qe){for(var Ye=1;Ye"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 ot,yt=I(Qe);if(Ye){var Yn=I(this).constructor;ot=Reflect.construct(yt,arguments,Yn)}else ot=yt.apply(this,arguments);return C(this,ot)}}function C(Qe,Ye){return!Ye||S(Ye)!=="object"&&typeof Ye!="function"?function(ot){if(ot===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return ot}(Qe):Ye}function I(Qe){return(I=Object.setPrototypeOf?Object.getPrototypeOf:function(Ye){return Ye.__proto__||Object.getPrototypeOf(Ye)})(Qe)}var A=function(Qe){(function(pn,Fn){if(typeof Fn!="function"&&Fn!==null)throw new TypeError("Super expression must either be null or a function");pn.prototype=Object.create(Fn&&Fn.prototype,{constructor:{value:pn,writable:!0,configurable:!0}}),Fn&&x(pn,Fn)})(Yn,Qe);var Ye,ot,yt=k(Yn);function Yn(pn){var Fn;return function(Pi,nt){if(!(Pi instanceof nt))throw new TypeError("Cannot call a class as a function")}(this,Yn),(Fn=yt.call(this,pn)).state={focused:!1,hovered:!1},Fn.handleMouseEnter=function(){Fn.setState({hovered:!0}),typeof Fn.props.onMouseEnter=="function"&&Fn.props.onMouseEnter()},Fn.handleMouseLeave=function(){Fn.setState({hovered:!1}),typeof Fn.props.onMouseLeave=="function"&&Fn.props.onMouseLeave()},Fn.handleFocus=function(){Fn.setState({focused:!0})},Fn.handleBlur=function(){Fn.setState({focused:!1})},Fn.handleClick=function(Pi){typeof Fn.props.onClick=="function"&&Fn.props.onClick(Pi)},Fn}return Ye=Yn,(ot=[{key:"render",value:function(){var pn=this.props,Fn=pn.activeStyle,Pi=pn.align,nt=pn.text,Be=pn.children,Dt=Be===void 0?nt:Be,en=pn.className,Vn=pn.icon,Kr=pn.iconFormat,wr=pn.iconSize,In=pn.iconColor,Wn=In===void 0?"#FFFFFF":In,ni=pn.preventActiveStyles,Ga=pn.size,Hc=pn.style,_p=pn.disabled,q1=this.state,G1=q1.focused,Y1=q1.hovered,Z1=B(L.button,{activeStyle:ni?Hc:Fn,customStyle:Hc,active:Y1||G1,size:Ga});return a.a.createElement("button",w({type:"button",style:Z1,onClick:this.handleClick,onMouseEnter:this.handleMouseEnter,onMouseLeave:this.handleMouseLeave,onFocus:this.handleFocus,onBlur:this.handleBlur},{className:en},{disabled:_p}),a.a.createElement("div",{style:L.flex},!D(wr)&&a.a.createElement("div",{style:{display:"flex",justifyContent:"center",minWidth:wr}},a.a.createElement(f,{type:Vn,size:wr,format:Kr,color:Wn})),!D(wr)&&a.a.createElement("div",{style:L.divider}),a.a.createElement("div",{style:{textAlign:Pi,width:"100%"}},Dt)))}}])&&E(Ye.prototype,ot),Yn}(i.Component),D=function(Qe){return Qe==="0"||Qe==="0px"||Qe===0},B=function(Qe,Ye){var ot=Ye.size,yt=Ye.customStyle,Yn=Ye.active,pn=Ye.activeStyle;return g(g(g({},Qe),{},{height:ot},yt),Yn&&pn)};A.propTypes={activeStyle:o.a.object,align:o.a.oneOf(["left","right","center"]),children:o.a.node,className:o.a.string,icon:o.a.oneOfType([o.a.string,o.a.node,o.a.func]),iconFormat:o.a.func,iconSize:o.a.string,iconColor:o.a.string,onClick:o.a.func,onMouseEnter:o.a.func,onMouseLeave:o.a.func,preventActiveStyles:o.a.bool,size:o.a.string,style:o.a.object,text:o.a.string,disabled:o.a.bool},A.defaultProps={align:"left",iconSize:"26px",preventActiveStyles:!1,size:"50px"};var L={button:{display:"block",border:0,borderRadius:3,boxShadow:"rgba(0, 0, 0, 0.5) 0 1px 2px",color:"#ffffff",cursor:"pointer",fontSize:"19px",margin:"5px",width:"calc(100% - 10px)",overflow:"hidden",padding:"0 10px",userSelect:"none"},divider:{width:"10px"},flex:{alignItems:"center",display:"flex",height:"100%"}};function F(Qe,Ye){var ot=Object.keys(Qe);if(Object.getOwnPropertySymbols){var yt=Object.getOwnPropertySymbols(Qe);Ye&&(yt=yt.filter(function(Yn){return Object.getOwnPropertyDescriptor(Qe,Yn).enumerable})),ot.push.apply(ot,yt)}return ot}function W(Qe){for(var Ye=1;Ye{window.location.href=`https://codepair-api.yorkie.dev/auth/login/${t}`};return _.jsx(EF,{sx:{height:1},children:_.jsx(nr,{alignItems:"center",justifyContent:"center",sx:{height:1},children:_.jsx(hs,{sx:{p:5,width:"small",boxShadow:2,maxWidth:"80%"},children:_.jsxs(nr,{gap:4,children:[_.jsxs(Qa,{children:[_.jsxs(nr,{direction:"row",gap:1,children:[_.jsx(lU,{}),_.jsx(ur,{variant:"h6",children:"Login"})]}),_.jsx(ur,{variant:"body2",color:"text.secondary",maxWidth:320,children:"Real-time markdown editor for interviews, meetings and more..."})]}),_.jsxs(nr,{gap:2,children:[_.jsxs(Ny,{container:!0,spacing:1,alignItems:"center",children:[_.jsx(Ny,{item:!0,xs:!0,children:_.jsx(h1,{sx:{width:1}})}),_.jsx(Ny,{item:!0,xs:"auto",children:_.jsx(ur,{variant:"body2",color:"text.secondary",children:"Login with"})}),_.jsx(Ny,{item:!0,xs:!0,children:_.jsx(h1,{sx:{width:1}})})]}),$Ke.map(({SocailLoginComponent:t,provider:n})=>_.jsx(t,{size:"48px",onClick:()=>e(n)},n))]})]})})})})}function BKe(){const e=Pu(),t=Mu(),[n]=MF();return N.useEffect(()=>{const r=n.get("token");if(!r){t("/");return}e(aU(r))},[e,t,n]),_.jsx(Qa,{})}var gU={},UKe=Ji;Object.defineProperty(gU,"__esModule",{value:!0});var Pfe=gU.default=void 0,zKe=UKe(ea()),EK=_;Pfe=gU.default=(0,zKe.default)([(0,EK.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,EK.jsx)("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"},"1")],"AccessTime");function jKe(e){const{document:t}=e,n=Mu(),r=C0(),i=()=>{n(`/${r.workspaceSlug}/${t.id}`)};return _.jsx(OF,{sx:{width:"100%"},children:_.jsx(ele,{onClick:i,children:_.jsxs(n6e,{children:[_.jsx(ur,{variant:"h5",component:"div",noWrap:!0,children:t.title}),_.jsxs(nr,{direction:"row",alignItems:"center",gap:1,children:[_.jsx(Pfe,{fontSize:"small",sx:{color:"text.secondary"}}),_.jsxs(ur,{variant:"body2",color:"text.secondary",noWrap:!0,children:["Changed ",un(t.updatedAt).fromNow()]})]})]})})})}function HKe(){const e=C0(),t=Mu(),{data:n,isLoading:r}=dU(e.workspaceSlug),{data:i,fetchNextPage:a,hasNextPage:s}=CXe(n==null?void 0:n.id),{mutateAsync:o}=_Xe((n==null?void 0:n.id)||""),[l,u]=N.useState(!1),c=N.useMemo(()=>(i==null?void 0:i.pages.reduce((g,b)=>g.concat(b.documents),[]))??[],[i==null?void 0:i.pages]);if(r)return _.jsx(_1,{open:!0,children:_.jsx(wd,{color:"inherit"})});const f=()=>{u(g=>!g)},h=async g=>{const b=await o(g);t(b.id)};return _.jsxs(nr,{gap:2,children:[_.jsxs(nr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[_.jsxs(ur,{variant:"h5",fontWeight:"bold",children:[n==null?void 0:n.title," ",_.jsx(ur,{component:"span",variant:"inherit",color:"primary",children:i==null?void 0:i.pages[0].totalLength})]}),_.jsx(ss,{variant:"contained",startIcon:_.jsx(SI,{}),onClick:f,children:"New Note"})]}),_.jsx(nr,{style:{maxHeight:"calc(100vh - 144px)",overflow:"auto"},children:_.jsx(tx,{pageStart:0,loadMore:()=>a(),hasMore:s,loader:_.jsx(nr,{className:"loader",alignItems:"center",children:_.jsx(wd,{size:20})},0),useWindow:!1,children:_.jsx(Qa,{p:2,width:1,children:_.jsx(Ny,{container:!0,spacing:{xs:2,md:3},columns:{xs:4,sm:8,md:12,lg:12},children:c.map(g=>_.jsx(Ny,{item:!0,xs:4,sm:4,md:4,lg:3,children:_.jsx(jKe,{document:g})},g.id))})})})}),_.jsx(Ife,{open:l,title:"Note",onSuccess:h,onClose:f})]})}function A3(){return A3=Object.assign?Object.assign.bind():function(e){for(var t=1;tu?(L(u),F.current=u):(L(ye),F.current=ye),w&&w({position:F.current})}}},[r,t,S,b,h,c,B,o,u,w,a]),te=N.useCallback(function(){r||(L(a),F.current=a)},[r,a]);return{position:B,endPosition:V,isDragging:I,separatorProps:A3({},Q,{onPointerDown:K,onKeyDown:X,onDoubleClick:te}),setPosition:L,splitterProps:A3({},Q,{onPointerDown:K,onKeyDown:X,onDoubleClick:te})}},GKe=function(e){var t=e.disabled,n=e.initial,r=e.min,i=e.max;return(0,e.children)(qKe({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 YKe=e=>{const t=N.useRef(e);return N.useEffect(()=>{t.current=e}),t},ZKe=(e,t=100,n=!1)=>{const r=YKe(e),i=N.useRef(),a=[t,n,r];function s(){i.current&&clearTimeout(i.current),i.current=void 0}N.useEffect(()=>s,a);function o(){i.current=void 0}return N.useCallback(function(){const l=arguments,{current:u}=i;if(u===void 0&&n)return i.current=setTimeout(o,t),r.current.apply(null,l);u&&clearTimeout(u),i.current=setTimeout(()=>{i.current=void 0,r.current.apply(null,l)},t)},a)},XKe=(e,t,n)=>{const r=N.useState(e);return[r[0],ZKe(r[1],t,n)]};function eP(e,t,n,r){const i=N.useRef(n),a=N.useRef(r);N.useEffect(()=>{i.current=n,a.current=r}),N.useEffect(()=>{const s=e&&"current"in e?e.current:e;if(!s)return;let o=0;function l(...c){o||i.current.apply(this,c)}s.addEventListener(t,l);const u=a.current;return()=>{o=1,s.removeEventListener(t,l),u&&u()}},[e,t])}const KKe={},V2=typeof window>"u"?null:window,JKe=V2&&typeof V2.visualViewport<"u"?V2.visualViewport:null,wK=()=>[document.documentElement.clientWidth,document.documentElement.clientHeight],eJe=function(e){e===void 0&&(e=KKe);const{wait:t,leading:n,initialWidth:r=0,initialHeight:i=0}=e,[a,s]=XKe(typeof document>"u"?[r,i]:wK,t,n),o=()=>s(wK);return eP(V2,"resize",o),eP(JKe,"resize",o),eP(V2,"orientationchange",o),a},tJe=e=>eJe(e)[0];class Nr{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]=aO(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),z4.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]=aO(this,t,n);let r=[];return this.decompose(t,n,r,0),z4.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 W2(this),a=new W2(t);for(let s=n,o=n;;){if(i.next(s),a.next(s),s=0,i.lineBreak!=a.lineBreak||i.done!=a.done||i.value!=a.value)return!1;if(o+=i.value.length,i.done||o>=r)return!0}}iter(t=1){return new W2(this,t)}iterRange(t,n=this.length){return new $fe(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 Ffe(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]?Nr.empty:t.length<=32?new Na(t):z4.from(Na.split(t,[]))}}class Na extends Nr{constructor(t,n=nJe(t)){super(),this.text=t,this.length=n}get lines(){return this.text.length}get children(){return null}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.text[a],o=i+s.length;if((n?r:o)>=t)return new rJe(i,o,r,s);i=o+1,r++}}decompose(t,n,r,i){let a=t<=0&&n>=this.length?this:new Na(xK(this.text,t,n),Math.min(n,this.length)-Math.max(0,t));if(i&1){let s=r.pop(),o=j4(a.text,s.text.slice(),0,a.length);if(o.length<=32)r.push(new Na(o,s.length+a.length));else{let l=o.length>>1;r.push(new Na(o.slice(0,l)),new Na(o.slice(l)))}}else r.push(a)}replace(t,n,r){if(!(r instanceof Na))return super.replace(t,n,r);[t,n]=aO(this,t,n);let i=j4(this.text,j4(r.text,xK(this.text,0,t)),n),a=this.length+r.length-(n-t);return i.length<=32?new Na(i,a):z4.from(Na.split(i,[]),a)}sliceString(t,n=this.length,r=` -`){[t,n]=aO(this,t,n);let i="";for(let a=0,s=0;a<=n&&st&&s&&(i+=r),ta&&(i+=o.slice(Math.max(0,t-a),n-a)),a=l+1}return i}flatten(t){for(let n of this.text)t.push(n)}scanIdentical(){return 0}static split(t,n){let r=[],i=-1;for(let a of t)r.push(a),i+=a.length+1,r.length==32&&(n.push(new Na(r,i)),r=[],i=-1);return i>-1&&n.push(new Na(r,i)),n}}let z4=class hy extends Nr{constructor(t,n){super(),this.children=t,this.length=n,this.lines=0;for(let r of t)this.lines+=r.lines}lineInner(t,n,r,i){for(let a=0;;a++){let s=this.children[a],o=i+s.length,l=r+s.lines-1;if((n?l:o)>=t)return s.lineInner(t,n,r,i);i=o+1,r=l+1}}decompose(t,n,r,i){for(let a=0,s=0;s<=n&&a=s){let u=i&((s<=t?1:0)|(l>=n?2:0));s>=t&&l<=n&&!u?r.push(o):o.decompose(t-s,n-s,r,u)}s=l+1}}replace(t,n,r){if([t,n]=aO(this,t,n),r.lines=a&&n<=o){let l=s.replace(t-a,n-a,r),u=this.lines-s.lines+l.lines;if(l.lines>4&&l.lines>u>>6){let c=this.children.slice();return c[i]=l,new hy(c,this.length-(n-t)+r.length)}return super.replace(a,o,l)}a=o+1}return super.replace(t,n,r)}sliceString(t,n=this.length,r=` -`){[t,n]=aO(this,t,n);let i="";for(let a=0,s=0;at&&a&&(i+=r),ts&&(i+=o.sliceString(t-s,n-s,r)),s=l+1}return i}flatten(t){for(let n of this.children)n.flatten(t)}scanIdentical(t,n){if(!(t instanceof hy))return 0;let r=0,[i,a,s,o]=n>0?[0,0,this.children.length,t.children.length]:[this.children.length-1,t.children.length-1,-1,-1];for(;;i+=n,a+=n){if(i==s||a==o)return r;let l=this.children[i],u=t.children[a];if(l!=u)return r+l.scanIdentical(u,n);r+=l.length+1}}static from(t,n=t.reduce((r,i)=>r+i.length+1,-1)){let r=0;for(let g of t)r+=g.lines;if(r<32){let g=[];for(let b of t)b.flatten(g);return new Na(g,n)}let i=Math.max(32,r>>5),a=i<<1,s=i>>1,o=[],l=0,u=-1,c=[];function f(g){let b;if(g.lines>a&&g instanceof hy)for(let S of g.children)f(S);else g.lines>s&&(l>s||!l)?(h(),o.push(g)):g instanceof Na&&l&&(b=c[c.length-1])instanceof Na&&g.lines+b.lines<=32?(l+=g.lines,u+=g.length+1,c[c.length-1]=new Na(b.text.concat(g.text),b.length+1+g.length)):(l+g.lines>i&&h(),l+=g.lines,u+=g.length+1,c.push(g))}function h(){l!=0&&(o.push(c.length==1?c[0]:hy.from(c,u)),u=-1,l=c.length=0)}for(let g of t)f(g);return h(),o.length==1?o[0]:new hy(o,n)}};Nr.empty=new Na([""],0);function nJe(e){let t=-1;for(let n of e)t+=n.length+1;return t}function j4(e,t,n=0,r=1e9){for(let i=0,a=0,s=!0;a=n&&(l>r&&(o=o.slice(0,r-i)),i0?1:(t instanceof Na?t.text.length:t.children.length)<<1]}nextInner(t,n){for(this.done=this.lineBreak=!1;;){let r=this.nodes.length-1,i=this.nodes[r],a=this.offsets[r],s=a>>1,o=i instanceof Na?i.text.length:i.children.length;if(s==(n>0?o:0)){if(r==0)return this.done=!0,this.value="",this;n>0&&this.offsets[r-1]++,this.nodes.pop(),this.offsets.pop()}else if((a&1)==(n>0?0:1)){if(this.offsets[r]+=n,t==0)return this.lineBreak=!0,this.value=` -`,this;t--}else if(i instanceof Na){let l=i.text[s+(n<0?-1:0)];if(this.offsets[r]+=n,l.length>Math.max(0,t))return this.value=t==0?l:n>0?l.slice(t):l.slice(0,l.length-t),this;t-=l.length}else{let l=i.children[s+(n<0?-1:0)];t>l.length?(t-=l.length,this.offsets[r]+=n):(n<0&&this.offsets[r]--,this.nodes.push(l),this.offsets.push(n>0?1:(l instanceof Na?l.text.length:l.children.length)<<1))}}}next(t=0){return t<0&&(this.nextInner(-t,-this.dir),t=this.value.length),this.nextInner(t,this.dir)}}class $fe{constructor(t,n,r){this.value="",this.done=!1,this.cursor=new W2(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 Ffe{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"&&(Nr.prototype[Symbol.iterator]=function(){return this.iter()},W2.prototype[Symbol.iterator]=$fe.prototype[Symbol.iterator]=Ffe.prototype[Symbol.iterator]=function(){return this});let rJe=class{constructor(t,n,r,i){this.from=t,this.to=n,this.number=r,this.text=i}get length(){return this.to-this.from}};function aO(e,t,n){return t=Math.max(0,Math.min(e.length,t)),[t,Math.max(t,Math.min(e.length,n))]}let dv="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 dv[t-1]<=e;return!1}function TK(e){return e>=127462&&e<=127487}const kK=8205;function qs(e,t,n=!0,r=!0){return(n?Bfe:aJe)(e,t,r)}function Bfe(e,t,n){if(t==e.length)return t;t&&Ufe(e.charCodeAt(t))&&zfe(e.charCodeAt(t-1))&&t--;let r=Hs(e,t);for(t+=fc(r);t=0&&TK(Hs(e,s));)a++,s-=2;if(a%2==0)break;t+=2}else break}return t}function aJe(e,t,n){for(;t>0;){let r=Bfe(e,t-2,n);if(r=56320&&e<57344}function zfe(e){return e>=55296&&e<56320}function Hs(e,t){let n=e.charCodeAt(t);if(!zfe(n)||t+1==e.length)return n;let r=e.charCodeAt(t+1);return Ufe(r)?(n-55296<<10)+(r-56320)+65536:n}function bU(e){return e<=65535?String.fromCharCode(e):(e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320))}function fc(e){return e<65536?1:2}const RM=/\r\n?|\n/;var Ws=function(e){return e[e.Simple=0]="Simple",e[e.TrackDel=1]="TrackDel",e[e.TrackBefore=2]="TrackBefore",e[e.TrackAfter=3]="TrackAfter",e}(Ws||(Ws={}));class zf{constructor(t){this.sections=t}get length(){let t=0;for(let n=0;nt)return a+(t-i);a+=o}else{if(r!=Ws.Simple&&u>=t&&(r==Ws.TrackDel&&it||r==Ws.TrackBefore&&it))return null;if(u>t||u==t&&n<0&&!o)return t==i||n<0?a:a+l;a+=l}i=u}if(t>i)throw new RangeError(`Position ${t} is out of range for changeset of length ${i}`);return a}touchesRange(t,n=t){for(let r=0,i=0;r=0&&i<=n&&o>=t)return in?"cover":!0;i=o}return!1}toString(){let t="";for(let n=0;n=0?":"+i:"")}return t}toJSON(){return this.sections}static fromJSON(t){if(!Array.isArray(t)||t.length%2||t.some(n=>typeof n!="number"))throw new RangeError("Invalid JSON representation of ChangeDesc");return new zf(t)}static create(t){return new zf(t)}}class ns extends zf{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 IM(this,(n,r,i,a,s)=>t=t.replace(i,i+(r-n),s),!1),t}mapDesc(t,n=!1){return DM(this,t,n,!0)}invert(t){let n=this.sections.slice(),r=[];for(let i=0,a=0;i=0){n[i]=o,n[i+1]=s;let l=i>>1;for(;r.length0&&Pm(r,n,a.text),a.forward(c),o+=c}let u=t[s++];for(;o>1].toJSON()))}return t}static of(t,n,r){let i=[],a=[],s=0,o=null;function l(c=!1){if(!c&&!i.length)return;sh||f<0||h>n)throw new RangeError(`Invalid change range ${f} to ${h} (in doc of length ${n})`);let b=g?typeof g=="string"?Nr.of(g.split(r||RM)):g:Nr.empty,S=b.length;if(f==h&&S==0)return;fs&&po(i,f-s,-1),po(i,h-f,S),Pm(a,i,b),s=h}}return u(t),l(!o),o}static empty(t){return new ns(t?[t,-1]:[],[])}static fromJSON(t){if(!Array.isArray(t))throw new RangeError("Invalid JSON representation of ChangeSet");let n=[],r=[];for(let i=0;io&&typeof s!="string"))throw new RangeError("Invalid JSON representation of ChangeSet");if(a.length==1)n.push(a[0],0);else{for(;r.length=0&&n<=0&&n==e[i+1]?e[i]+=t:t==0&&e[i]==0?e[i+1]+=n:r?(e[i]+=t,e[i+1]+=n):e.push(t,n)}function Pm(e,t,n){if(n.length==0)return;let r=t.length-2>>1;if(r>1])),!(n||s==e.sections.length||e.sections[s+1]<0);)o=e.sections[s++],l=e.sections[s++];t(i,u,a,c,f),i=u,a=c}}}function DM(e,t,n,r=!1){let i=[],a=r?[]:null,s=new nx(e),o=new nx(t);for(let l=-1;;)if(s.ins==-1&&o.ins==-1){let u=Math.min(s.len,o.len);po(i,u,-1),s.forward(u),o.forward(u)}else if(o.ins>=0&&(s.ins<0||l==s.i||s.off==0&&(o.len=0&&l=0){let u=0,c=s.len;for(;c;)if(o.ins==-1){let f=Math.min(c,o.len);u+=f,c-=f,o.forward(f)}else if(o.ins==0&&o.lenl||s.ins>=0&&s.len>l)&&(o||r.length>u),a.forward2(l),s.forward(l)}}}}class nx{constructor(t){this.set=t,this.i=0,this.next()}next(){let{sections:t}=this.set;this.i>1;return n>=t.length?Nr.empty:t[n]}textBit(t){let{inserted:n}=this.set,r=this.i-2>>1;return r>=n.length&&!t?Nr.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 Ug{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 Ug(r,i,this.flags)}extend(t,n=t){if(t<=this.anchor&&n>=this.anchor)return vt.range(t,n);let r=Math.abs(t-this.anchor)>Math.abs(n-this.anchor)?t:n;return vt.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 vt.range(t.anchor,t.head)}static create(t,n,r){return new Ug(t,n,r)}}class vt{constructor(t,n){this.ranges=t,this.mainIndex=n}map(t,n=-1){return t.empty?this:vt.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 vt(t.ranges.map(n=>Ug.fromJSON(n)),t.main)}static single(t,n=t){return new vt([vt.range(t,n)],0)}static create(t,n=0){if(t.length==0)throw new RangeError("A selection needs at least one range");for(let r=0,i=0;it?8:0)|a)}static normalized(t,n=0){let r=t[n];t.sort((i,a)=>i.from-a.from),n=t.indexOf(r);for(let i=1;ia.head?vt.range(l,o):vt.range(o,l))}}return new vt(t,n)}}function Hfe(e,t){for(let n of e.ranges)if(n.to>t)throw new RangeError("Selection points outside of document")}let yU=0;class Sn{constructor(t,n,r,i,a){this.combine=t,this.compareInput=n,this.compare=r,this.isStatic=i,this.id=yU++,this.default=t([]),this.extensions=typeof a=="function"?a(this):a}get reader(){return this}static define(t={}){return new Sn(t.combine||(n=>n),t.compareInput||((n,r)=>n===r),t.compare||(t.combine?(n,r)=>n===r:vU),!!t.static,t.enables)}of(t){return new H4([],this,0,t)}compute(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new H4(t,this,1,n)}computeN(t,n){if(this.isStatic)throw new Error("Can't compute a static facet");return new H4(t,this,2,n)}from(t,n){return n||(n=r=>r),this.compute([t],r=>n(r.field(t)))}}function vU(e,t){return e==t||e.length==t.length&&e.every((n,r)=>n===t[r])}class H4{constructor(t,n,r,i){this.dependencies=t,this.facet=n,this.type=r,this.value=i,this.id=yU++}dynamicSlot(t){var n;let r=this.value,i=this.facet.compareInput,a=this.id,s=t[a]>>1,o=this.type==2,l=!1,u=!1,c=[];for(let f of this.dependencies)f=="doc"?l=!0:f=="selection"?u=!0:((n=t[f.id])!==null&&n!==void 0?n:1)&1||c.push(t[f.id]);return{create(f){return f.values[s]=r(f),1},update(f,h){if(l&&h.docChanged||u&&(h.docChanged||h.selection)||NM(f,c)){let g=r(f);if(o?!CK(g,f.values[s],i):!i(g,f.values[s]))return f.values[s]=g,1}return 0},reconfigure:(f,h)=>{let g,b=h.config.address[a];if(b!=null){let S=R3(h,b);if(this.dependencies.every(w=>w instanceof Sn?h.facet(w)===f.facet(w):w instanceof Rs?h.field(w,!1)==f.field(w,!1):!0)||(o?CK(g=r(f),S,i):i(g=r(f),S)))return f.values[s]=S,0}else g=r(f);return f.values[s]=g,1}}}}function CK(e,t,n){if(e.length!=t.length)return!1;for(let r=0;re[l.id]),i=n.map(l=>l.type),a=r.filter(l=>!(l&1)),s=e[t.id]>>1;function o(l){let u=[];for(let c=0;cr===i),t);return t.provide&&(n.provides=t.provide(n)),n}create(t){let n=t.facet(AK).find(r=>r.field==this);return((n==null?void 0:n.create)||this.createF)(t)}slot(t){let n=t[this.id]>>1;return{create:r=>(r.values[n]=this.create(r),1),update:(r,i)=>{let a=r.values[n],s=this.updateF(a,i);return this.compareF(a,s)?0:(r.values[n]=s,1)},reconfigure:(r,i)=>i.config.address[this.id]!=null?(r.values[n]=i.field(this),0):(r.values[n]=this.create(r),1)}}init(t){return[this,AK.of({field:this,create:t})]}get extension(){return this}}const kg={lowest:4,low:3,default:2,high:1,highest:0};function PE(e){return t=>new Vfe(t,e)}const R0={highest:PE(kg.highest),high:PE(kg.high),default:PE(kg.default),low:PE(kg.low),lowest:PE(kg.lowest)};class Vfe{constructor(t,n){this.inner=t,this.prec=n}}class EI{of(t){return new PM(this,t)}reconfigure(t){return EI.reconfigure.of({compartment:this,extension:t})}get(t){return t.config.compartments.get(this)}}class PM{constructor(t,n){this.compartment=t,this.inner=n}}class _3{constructor(t,n,r,i,a,s){for(this.base=t,this.compartments=n,this.dynamicSlots=r,this.address=i,this.staticValues=a,this.facets=s,this.statusTemplate=[];this.statusTemplate.length>1]}static resolve(t,n,r){let i=[],a=Object.create(null),s=new Map;for(let h of oJe(t,n,s))h instanceof Rs?i.push(h):(a[h.facet.id]||(a[h.facet.id]=[])).push(h);let o=Object.create(null),l=[],u=[];for(let h of i)o[h.id]=u.length<<1,u.push(g=>h.slot(g));let c=r==null?void 0:r.config.facets;for(let h in a){let g=a[h],b=g[0].facet,S=c&&c[h]||[];if(g.every(w=>w.type==0))if(o[b.id]=l.length<<1|1,vU(S,g))l.push(r.facet(b));else{let w=b.combine(g.map(E=>E.value));l.push(r&&b.compare(w,r.facet(b))?r.facet(b):w)}else{for(let w of g)w.type==0?(o[w.id]=l.length<<1|1,l.push(w.value)):(o[w.id]=u.length<<1,u.push(E=>w.dynamicSlot(E)));o[b.id]=u.length<<1,u.push(w=>sJe(w,b,g))}}let f=u.map(h=>h(o));return new _3(t,s,f,o,l,a)}}function oJe(e,t,n){let r=[[],[],[],[],[]],i=new Map;function a(s,o){let l=i.get(s);if(l!=null){if(l<=o)return;let u=r[l].indexOf(s);u>-1&&r[l].splice(u,1),s instanceof PM&&n.delete(s.compartment)}if(i.set(s,o),Array.isArray(s))for(let u of s)a(u,o);else if(s instanceof PM){if(n.has(s.compartment))throw new RangeError("Duplicate use of compartment in extensions");let u=t.get(s.compartment)||s.inner;n.set(s.compartment,u),a(u,o)}else if(s instanceof Vfe)a(s.inner,s.prec);else if(s instanceof Rs)r[o].push(s),s.provides&&a(s.provides,o);else if(s instanceof H4)r[o].push(s),s.facet.extensions&&a(s.facet.extensions,kg.default);else{let u=s.extension;if(!u)throw new Error(`Unrecognized extension value in extension set (${s}). This sometimes happens because multiple instances of @codemirror/state are loaded, breaking instanceof checks.`);a(u,o)}}return a(e,kg.default),r.reduce((s,o)=>s.concat(o))}function Q2(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 R3(e,t){return t&1?e.config.staticValues[t>>1]:e.values[t>>1]}const Wfe=Sn.define(),MM=Sn.define({combine:e=>e.some(t=>t),static:!0}),Qfe=Sn.define({combine:e=>e.length?e[0]:void 0,static:!0}),qfe=Sn.define(),Gfe=Sn.define(),Yfe=Sn.define(),Zfe=Sn.define({combine:e=>e.length?e[0]:!1});class Nd{constructor(t,n){this.type=t,this.value=n}static define(){return new lJe}}class lJe{of(t){return new Nd(this,t)}}class uJe{constructor(t){this.map=t}of(t){return new hr(this,t)}}class hr{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 hr(this.type,n)}is(t){return this.type==t}static define(t={}){return new uJe(t.map||(n=>n))}static mapEffects(t,n){if(!t.length)return t;let r=[];for(let i of t){let a=i.map(n);a&&r.push(a)}return r}}hr.reconfigure=hr.define();hr.appendConfig=hr.define();let ls=class u2{constructor(t,n,r,i,a,s){this.startState=t,this.changes=n,this.selection=r,this.effects=i,this.annotations=a,this.scrollIntoView=s,this._doc=null,this._state=null,r&&Hfe(r,n.newLength),a.some(o=>o.type==u2.time)||(this.annotations=a.concat(u2.time.of(Date.now())))}static create(t,n,r,i,a,s){return new u2(t,n,r,i,a,s)}get newDoc(){return this._doc||(this._doc=this.changes.apply(this.startState.doc))}get newSelection(){return this.selection||this.startState.selection.map(this.changes)}get state(){return this._state||this.startState.applyTransaction(this),this._state}annotation(t){for(let n of this.annotations)if(n.type==t)return n.value}get docChanged(){return!this.changes.empty}get reconfigured(){return this.startState.config!=this.state.config}isUserEvent(t){let n=this.annotation(u2.userEvent);return!!(n&&(n==t||n.length>t.length&&n.slice(0,t.length)==t&&n[t.length]=="."))}};ls.time=Nd.define();ls.userEvent=Nd.define();ls.addToHistory=Nd.define();ls.remote=Nd.define();function cJe(e,t){let n=[];for(let r=0,i=0;;){let a,s;if(r=e[r]))a=e[r++],s=e[r++];else if(i=0;i--){let a=r[i](e);a instanceof ls?e=a:Array.isArray(a)&&a.length==1&&a[0]instanceof ls?e=a[0]:e=Kfe(t,fv(a),!1)}return e}function fJe(e){let t=e.startState,n=t.facet(Yfe),r=e;for(let i=n.length-1;i>=0;i--){let a=n[i](e);a&&Object.keys(a).length&&(r=Xfe(r,LM(t,a,e.changes.newLength),!0))}return r==e?e:ls.create(t,e.changes,e.selection,r.effects,r.annotations,r.scrollIntoView)}const hJe=[];function fv(e){return e==null?hJe:Array.isArray(e)?e:[e]}var Ki=function(e){return e[e.Word=0]="Word",e[e.Space=1]="Space",e[e.Other=2]="Other",e}(Ki||(Ki={}));const pJe=/[\u00df\u0587\u0590-\u05f4\u0600-\u06ff\u3040-\u309f\u30a0-\u30ff\u3400-\u4db5\u4e00-\u9fcc\uac00-\ud7af]/;let $M;try{$M=new RegExp("[\\p{Alphabetic}\\p{Number}_]","u")}catch{}function mJe(e){if($M)return $M.test(e);for(let t=0;t"€"&&(n.toUpperCase()!=n.toLowerCase()||pJe.test(n)))return!0}return!1}function gJe(e){return t=>{if(!/\S/.test(t))return Ki.Space;if(mJe(t))return Ki.Word;for(let n=0;n-1)return Ki.Word;return Ki.Other}}class Vr{constructor(t,n,r,i,a,s){this.config=t,this.doc=n,this.selection=r,this.values=i,this.status=t.statusTemplate.slice(),this.computeSlot=a,s&&(s._state=this);for(let o=0;oi.set(u,l)),n=null),i.set(o.value.compartment,o.value.extension)):o.is(hr.reconfigure)?(n=null,r=o.value):o.is(hr.appendConfig)&&(n=null,r=fv(r).concat(o.value));let a;n?a=t.startState.values.slice():(n=_3.resolve(r,i,this),a=new Vr(n,this.doc,this.selection,n.dynamicSlots.map(()=>null),(l,u)=>u.reconfigure(l,this),null).values);let s=t.startState.facet(MM)?t.newSelection:t.newSelection.asSingle();new Vr(n,t.newDoc,s,a,(o,l)=>l.update(o,t),t)}replaceSelection(t){return typeof t=="string"&&(t=this.toText(t)),this.changeByRange(n=>({changes:{from:n.from,to:n.to,insert:t},range:vt.cursor(n.from+t.length)}))}changeByRange(t){let n=this.selection,r=t(n.ranges[0]),i=this.changes(r.changes),a=[r.range],s=fv(r.effects);for(let o=1;os.spec.fromJSON(o,l)))}}return Vr.create({doc:t.doc,selection:vt.fromJSON(t.selection),extensions:n.extensions?i.concat([n.extensions]):i})}static create(t={}){let n=_3.resolve(t.extensions||[],new Map),r=t.doc instanceof Nr?t.doc:Nr.of((t.doc||"").split(n.staticFacet(Vr.lineSeparator)||RM)),i=t.selection?t.selection instanceof vt?t.selection:vt.single(t.selection.anchor,t.selection.head):vt.single(0);return Hfe(i,r.length),n.staticFacet(MM)||(i=i.asSingle()),new Vr(n,r,i,n.dynamicSlots.map(()=>null),(a,s)=>s.create(a),null)}get tabSize(){return this.facet(Vr.tabSize)}get lineBreak(){return this.facet(Vr.lineSeparator)||` -`}get readOnly(){return this.facet(Zfe)}phrase(t,...n){for(let r of this.facet(Vr.phrases))if(Object.prototype.hasOwnProperty.call(r,t)){t=r[t];break}return n.length&&(t=t.replace(/\$(\$|\d*)/g,(r,i)=>{if(i=="$")return"$";let a=+(i||1);return!a||a>n.length?r:n[a-1]})),t}languageDataAt(t,n,r=-1){let i=[];for(let a of this.facet(Wfe))for(let s of a(this,n,r))Object.prototype.hasOwnProperty.call(s,t)&&i.push(s[t]);return i}charCategorizer(t){return gJe(this.languageDataAt("wordChars",t).join(""))}wordAt(t){let{text:n,from:r,length:i}=this.doc.lineAt(t),a=this.charCategorizer(t),s=t-r,o=t-r;for(;s>0;){let l=qs(n,s,!1);if(a(n.slice(l,s))!=Ki.Word)break;s=l}for(;oe.length?e[0]:4});Vr.lineSeparator=Qfe;Vr.readOnly=Zfe;Vr.phrases=Sn.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])}});Vr.languageData=Wfe;Vr.changeFilter=qfe;Vr.transactionFilter=Gfe;Vr.transactionExtender=Yfe;EI.reconfigure=hr.define();function Jf(e,t,n={}){let r={};for(let i of e)for(let a of Object.keys(i)){let s=i[a],o=r[a];if(o===void 0)r[a]=s;else if(!(o===s||s===void 0))if(Object.hasOwnProperty.call(n,a))r[a]=n[a](o,s);else throw new Error("Config merge conflict for field "+a)}for(let i in t)r[i]===void 0&&(r[i]=t[i]);return r}class b1{eq(t){return this==t}range(t,n=t){return FM.create(t,n,this)}}b1.prototype.startSide=b1.prototype.endSide=0;b1.prototype.point=!1;b1.prototype.mapMode=Ws.TrackDel;let FM=class Jfe{constructor(t,n,r){this.from=t,this.to=n,this.value=r}static create(t,n,r){return new Jfe(t,n,r)}};function BM(e,t){return e.from-t.from||e.value.startSide-t.value.startSide}class OU{constructor(t,n,r,i){this.from=t,this.to=n,this.value=r,this.maxPoint=i}get length(){return this.to[this.to.length-1]}findIndex(t,n,r,i=0){let a=r?this.to:this.from;for(let s=i,o=a.length;;){if(s==o)return s;let l=s+o>>1,u=a[l]-t||(r?this.value[l].endSide:this.value[l].startSide)-n;if(l==s)return u>=0?s:o;u>=0?o=l:s=l+1}}between(t,n,r,i){for(let a=this.findIndex(n,-1e9,!0),s=this.findIndex(r,1e9,!1,a);ag||h==g&&u.startSide>0&&u.endSide<=0)continue;(g-h||u.endSide-u.startSide)<0||(s<0&&(s=h),u.point&&(o=Math.max(o,g-h)),r.push(u),i.push(h-s),a.push(g-s))}return{mapped:r.length?new OU(i,a,r,o):null,pos:s}}}class Ur{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 Ur(t,n,r,i)}get length(){let t=this.chunk.length-1;return t<0?0:Math.max(this.chunkEnd(t),this.nextLayer.length)}get size(){if(this.isEmpty)return 0;let t=this.nextLayer.size;for(let n of this.chunk)t+=n.value.length;return t}chunkEnd(t){return this.chunkPos[t]+this.chunk[t].length}update(t){let{add:n=[],sort:r=!1,filterFrom:i=0,filterTo:a=this.length}=t,s=t.filter;if(n.length==0&&!s)return this;if(r&&(n=n.slice().sort(BM)),this.isEmpty)return n.length?Ur.of(n):this;let o=new ehe(this,null,-1).goto(0),l=0,u=[],c=new l0;for(;o.value||l=0){let f=n[l++];c.addInner(f.from,f.to,f.value)||u.push(f)}else o.rangeIndex==1&&o.chunkIndexthis.chunkEnd(o.chunkIndex)||ao.to||a=a&&t<=a+s.length&&s.between(a,t-a,n-a,r)===!1)return}this.nextLayer.between(t,n,r)}}iter(t=0){return rx.from([this]).goto(t)}get isEmpty(){return this.nextLayer==this}static iter(t,n=0){return rx.from(t).goto(n)}static compare(t,n,r,i,a=-1){let s=t.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),o=n.filter(f=>f.maxPoint>0||!f.isEmpty&&f.maxPoint>=a),l=_K(s,o,r),u=new ME(s,l,a),c=new ME(o,l,a);r.iterGaps((f,h,g)=>RK(u,f,c,h,g,i)),r.empty&&r.length==0&&RK(u,0,c,0,0,i)}static eq(t,n,r=0,i){i==null&&(i=999999999);let a=t.filter(c=>!c.isEmpty&&n.indexOf(c)<0),s=n.filter(c=>!c.isEmpty&&t.indexOf(c)<0);if(a.length!=s.length)return!1;if(!a.length)return!0;let o=_K(a,s),l=new ME(a,o,0).goto(r),u=new ME(s,o,0).goto(r);for(;;){if(l.to!=u.to||!UM(l.active,u.active)||l.point&&(!u.point||!l.point.eq(u.point)))return!1;if(l.to>i)return!0;l.next(),u.next()}}static spans(t,n,r,i,a=-1){let s=new ME(t,null,a).goto(n),o=n,l=s.openStart;for(;;){let u=Math.min(s.to,r);if(s.point){let c=s.activeForPoint(s.to),f=s.pointFromo&&(i.span(o,u,s.active,l),l=s.openEnd(u));if(s.to>r)return l+(s.point&&s.to>r?1:0);o=s.to,s.next()}}static of(t,n=!1){let r=new l0;for(let i of t instanceof FM?[t]:n?bJe(t):t)r.add(i.from,i.to,i.value);return r.finish()}static join(t){if(!t.length)return Ur.empty;let n=t[t.length-1];for(let r=t.length-2;r>=0;r--)for(let i=t[r];i!=Ur.empty;i=i.nextLayer)n=new Ur(i.chunkPos,i.chunk,n,Math.max(i.maxPoint,n.maxPoint));return n}}Ur.empty=new Ur([],[],null,-1);function bJe(e){if(e.length>1)for(let t=e[0],n=1;n0)return e.slice().sort(BM);t=r}return e}Ur.empty.nextLayer=Ur.empty;class l0{finishChunk(t){this.chunks.push(new OU(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 l0)).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(Ur.empty)}finishInner(t){if(this.from.length&&this.finishChunk(!1),this.chunks.length==0)return t;let n=Ur.create(this.chunkPos,this.chunks,this.nextLayer?this.nextLayer.finishInner(t):t,this.setMaxPoint);return this.from=null,n}}function _K(e,t,n){let r=new Map;for(let a of e)for(let s=0;s=this.minPoint)break}}setRangeIndex(t){if(t==this.layer.chunk[this.chunkIndex].value.length){if(this.chunkIndex++,this.skip)for(;this.chunkIndex=r&&i.push(new ehe(s,n,r,a));return i.length==1?i[0]:new rx(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--)tP(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--)tP(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(),tP(this.heap,0)}}}function tP(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 ME{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=rx.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){dA(this.active,t),dA(this.activeTo,t),dA(this.activeRank,t),this.minActive=IK(this.active,this.activeTo)}addActive(t){let n=0,{value:r,to:i,rank:a}=this.cursor;for(;n0;)n++;fA(this.active,n,r),fA(this.activeTo,n,i),fA(this.activeRank,n,a),t&&fA(t,n,this.cursor.from),this.minActive=IK(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&&dA(r,i)}else if(this.cursor.value)if(this.cursor.from>t){this.to=this.cursor.from,this.endSide=this.cursor.startSide;break}else{let a=this.cursor.value;if(!a.point)this.addActive(r),this.cursor.next();else if(n&&this.cursor.to==this.to&&this.cursor.from=0&&r[i]=0&&!(this.activeRank[r]t||this.activeTo[r]==t&&this.active[r].endSide>=this.point.endSide)&&n.push(this.active[r]);return n.reverse()}openEnd(t){let n=0;for(let r=this.activeTo.length-1;r>=0&&this.activeTo[r]>t;r--)n++;return n}}function RK(e,t,n,r,i,a){e.goto(t),n.goto(r);let s=r+i,o=r,l=r-t;for(;;){let u=e.to+l-n.to||e.endSide-n.endSide,c=u<0?e.to+l:n.to,f=Math.min(c,s);if(e.point||n.point?e.point&&n.point&&(e.point==n.point||e.point.eq(n.point))&&UM(e.activeForPoint(e.to),n.activeForPoint(n.to))||a.comparePoint(o,f,e.point,n.point):f>o&&!UM(e.active,n.active)&&a.compareRange(o,f,e.active,n.active),c>s)break;o=c,u<=0&&e.next(),u>=0&&n.next()}}function UM(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 IK(e,t){let n=-1,r=1e9;for(let i=0;i=t)return i;if(i==e.length)break;a+=e.charCodeAt(i)==9?n-a%n:1,i=qs(e,i)}return r===!0?-1:e.length}const jM="ͼ",DK=typeof Symbol>"u"?"__"+jM:Symbol.for(jM),HM=typeof Symbol>"u"?"__styleSet"+Math.floor(Math.random()*1e8):Symbol("styleSet"),NK=typeof globalThis<"u"?globalThis:typeof window<"u"?window:{};class u0{constructor(t,n){this.rules=[];let{finish:r}=n||{};function i(s){return/^@/.test(s)?[s]:s.split(/,\s*/)}function a(s,o,l,u){let c=[],f=/^@(\w+)\b/.exec(s[0]),h=f&&f[1]=="keyframes";if(f&&o==null)return l.push(s[0]+";");for(let g in o){let b=o[g];if(/&/.test(g))a(g.split(/,\s*/).map(S=>s.map(w=>S.replace(/&/,w))).reduce((S,w)=>S.concat(w)),b,l);else if(b&&typeof b=="object"){if(!f)throw new RangeError("The value of a property ("+g+") should be a primitive value.");a(i(g),b,c,h)}else b!=null&&c.push(g.replace(/_.*/,"").replace(/[A-Z]/g,S=>"-"+S.toLowerCase())+": "+b+";")}(c.length||h)&&l.push((r&&!f&&!u?s.map(r):s).join(", ")+" {"+c.join(" ")+"}")}for(let s in t)a(i(s),t[s],this.rules)}getRules(){return this.rules.join(` -`)}static newName(){let t=NK[DK]||1;return NK[DK]=t+1,jM+t.toString(36)}static mount(t,n,r){let i=t[HM],a=r&&r.nonce;i?a&&i.setNonce(a):i=new yJe(t,a),i.mount(Array.isArray(n)?n:[n])}}let PK=new Map;class yJe{constructor(t,n){let r=t.ownerDocument||t,i=r.defaultView;if(!t.head&&t.adoptedStyleSheets&&i.CSSStyleSheet){let a=PK.get(r);if(a)return t.adoptedStyleSheets=[a.sheet,...t.adoptedStyleSheets],t[HM]=a;this.sheet=new i.CSSStyleSheet,t.adoptedStyleSheets=[this.sheet,...t.adoptedStyleSheets],PK.set(r,this)}else{this.styleTag=r.createElement("style"),n&&this.styleTag.setAttribute("nonce",n);let a=t.head||t;a.insertBefore(this.styleTag,a.firstChild)}this.modules=[],t[HM]=this}mount(t){let n=this.sheet,r=0,i=0;for(let a=0;a-1&&(this.modules.splice(o,1),i--,o=-1),o==-1){if(this.modules.splice(i++,0,s),n)for(let l=0;l",191:"?",192:"~",219:"{",220:"|",221:"}",222:'"'},vJe=typeof navigator<"u"&&/Mac/.test(navigator.platform),OJe=typeof navigator<"u"&&/MSIE \d|Trident\/(?:[7-9]|\d{2,})\..*rv:(\d+)/.exec(navigator.userAgent);for(var Vs=0;Vs<10;Vs++)c0[48+Vs]=c0[96+Vs]=String(Vs);for(var Vs=1;Vs<=24;Vs++)c0[Vs+111]="F"+Vs;for(var Vs=65;Vs<=90;Vs++)c0[Vs]=String.fromCharCode(Vs+32),ix[Vs]=String.fromCharCode(Vs);for(var nP in c0)ix.hasOwnProperty(nP)||(ix[nP]=c0[nP]);function SJe(e){var t=vJe&&e.metaKey&&e.shiftKey&&!e.ctrlKey&&!e.altKey||OJe&&e.shiftKey&&e.key&&e.key.length==1||e.key=="Unidentified",n=!t&&e.key||(e.shiftKey?ix:c0)[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 I3(e){let t;return e.nodeType==11?t=e.getSelection?e:e.ownerDocument:t=e,t.getSelection()}function VM(e,t){return t?e==t||e.contains(t.nodeType!=1?t.parentNode:t):!1}function EJe(e){let t=e.activeElement;for(;t&&t.shadowRoot;)t=t.shadowRoot.activeElement;return t}function V4(e,t){if(!t.anchorNode)return!1;try{return VM(e,t.anchorNode)}catch{return!1}}function ax(e){return e.nodeType==3?y1(e,0,e.nodeValue.length).getClientRects():e.nodeType==1?e.getClientRects():[]}function q2(e,t,n,r){return n?MK(e,t,n,r,-1)||MK(e,t,n,r,1):!1}function sx(e){for(var t=0;;t++)if(e=e.previousSibling,!e)return t}function MK(e,t,n,r,i){for(;;){if(e==n&&t==r)return!0;if(t==(i<0?0:lp(e))){if(e.nodeName=="DIV")return!1;let a=e.parentNode;if(!a||a.nodeType!=1)return!1;t=sx(e)+(i<0?0:1),e=a}else if(e.nodeType==1){if(e=e.childNodes[t+(i<0?-1:0)],e.nodeType==1&&e.contentEditable=="false")return!1;t=i<0?lp(e):0}else return!1}}function lp(e){return e.nodeType==3?e.nodeValue.length:e.childNodes.length}function SU(e,t){let n=t?e.left:e.right;return{left:n,right:n,top:e.top,bottom:e.bottom}}function wJe(e){return{left:0,right:e.innerWidth,top:0,bottom:e.innerHeight}}function the(e,t){let n=t.width/e.offsetWidth,r=t.height/e.offsetHeight;return(n>.995&&n<1.005||!isFinite(n)||Math.abs(t.width-e.offsetWidth)<1)&&(n=1),(r>.995&&r<1.005||!isFinite(r)||Math.abs(t.height-e.offsetHeight)<1)&&(r=1),{scaleX:n,scaleY:r}}function xJe(e,t,n,r,i,a,s,o){let l=e.ownerDocument,u=l.defaultView||window;for(let c=e,f=!1;c&&!f;)if(c.nodeType==1){let h,g=c==l.body,b=1,S=1;if(g)h=wJe(u);else{if(/^(fixed|sticky)$/.test(getComputedStyle(c).position)&&(f=!0),c.scrollHeight<=c.clientHeight&&c.scrollWidth<=c.clientWidth){c=c.assignedSlot||c.parentNode;continue}let x=c.getBoundingClientRect();({scaleX:b,scaleY:S}=the(c,x)),h={left:x.left,right:x.left+c.clientWidth*b,top:x.top,bottom:x.top+c.clientHeight*S}}let w=0,E=0;if(i=="nearest")t.top0&&t.bottom>h.bottom+E&&(E=t.bottom-h.bottom+E+s)):t.bottom>h.bottom&&(E=t.bottom-h.bottom+s,n<0&&t.top-E0&&t.right>h.right+w&&(w=t.right-h.right+w+a)):t.right>h.right&&(w=t.right-h.right+a,n<0&&t.leftn.clientHeight||n.scrollWidth>n.clientWidth)return n;n=n.assignedSlot||n.parentNode}else if(n.nodeType==11)n=n.host;else break;return null}class kJe{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?lp(n):0),r,Math.min(t.focusOffset,r?lp(r):0))}set(t,n,r,i){this.anchorNode=t,this.anchorOffset=n,this.focusNode=r,this.focusOffset=i}}let ty=null;function nhe(e){if(e.setActive)return e.setActive();if(ty)return e.focus(ty);let t=[];for(let n=e;n&&(t.push(n,n.scrollTop,n.scrollLeft),n!=n.ownerDocument);n=n.parentNode);if(e.focus(ty==null?{get preventScroll(){return ty={preventScroll:!0},!0}}:void 0),!ty){ty=!1;for(let n=0;nMath.max(1,e.scrollHeight-e.clientHeight-4)}class go{constructor(t,n,r=!0){this.node=t,this.offset=n,this.precise=r}static before(t,n){return new go(t.parentNode,sx(t),n)}static after(t,n){return new go(t.parentNode,sx(t)+1,n)}}const EU=[];class zi{constructor(){this.parent=null,this.dom=null,this.flags=2}get overrideDOMText(){return null}get posAtStart(){return this.parent?this.parent.posBefore(this):0}get posAtEnd(){return this.posAtStart+this.length}posBefore(t){let n=this.posAtStart;for(let r of this.children){if(r==t)return n;n+=r.length+r.breakAfter}throw new RangeError("Invalid child in posBefore")}posAfter(t){return this.posBefore(t)+t.length}sync(t,n){if(this.flags&2){let r=this.dom,i=null,a;for(let s of this.children){if(s.flags&7){if(!s.dom&&(a=i?i.nextSibling:r.firstChild)){let o=zi.get(a);(!o||!o.parent&&o.canReuseDOM(s))&&s.reuseDOM(a)}s.sync(t,n),s.flags&=-8}if(a=i?i.nextSibling:r.firstChild,n&&!n.written&&n.node==r&&a!=s.dom&&(n.written=!0),s.dom.parentNode==r)for(;a&&a!=s.dom;)a=$K(a);else r.insertBefore(s.dom,a);i=s.dom}for(a=i?i.nextSibling:r.firstChild,a&&n&&n.node==r&&(n.written=!0);a;)a=$K(a)}else if(this.flags&1)for(let r of this.children)r.flags&7&&(r.sync(t,n),r.flags&=-8)}reuseDOM(t){}localPosFromDOM(t,n){let r;if(t==this.dom)r=this.dom.childNodes[n];else{let i=lp(t)==0?0:n==0?-1:1;for(;;){let a=t.parentNode;if(a==this.dom)break;i==0&&a.firstChild!=a.lastChild&&(t==a.firstChild?i=-1:i=1),t=a}i<0?r=t:r=t.nextSibling}if(r==this.dom.firstChild)return 0;for(;r&&!zi.get(r);)r=r.nextSibling;if(!r)return this.length;for(let i=0,a=0;;i++){let s=this.children[i];if(s.dom==r)return a;a+=s.length+s.breakAfter}}domBoundsAround(t,n,r=0){let i=-1,a=-1,s=-1,o=-1;for(let l=0,u=r,c=r;ln)return f.domBoundsAround(t,n,u);if(h>=t&&i==-1&&(i=l,a=u),u>n&&f.dom.parentNode==this.dom){s=l,o=c;break}c=h,u=h+f.breakAfter}return{from:a,to:o<0?r+this.length:o,startDOM:(i?this.children[i-1].dom.nextSibling:null)||this.dom.firstChild,endDOM:s=0?this.children[s].dom:null}}markDirty(t=!1){this.flags|=2,this.markParentsDirty(t)}markParentsDirty(t){for(let n=this.parent;n;n=n.parent){if(t&&(n.flags|=2),n.flags&1)return;n.flags|=1,t=!1}}setParent(t){this.parent!=t&&(this.parent=t,this.flags&7&&this.markParentsDirty(!0))}setDOM(t){this.dom!=t&&(this.dom&&(this.dom.cmView=null),this.dom=t,t.cmView=this)}get rootView(){for(let t=this;;){let n=t.parent;if(!n)return t;t=n}}replaceChildren(t,n,r=EU){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 she(e,t,n,r,i,a,s,o,l){let{children:u}=e,c=u.length?u[t]:null,f=a.length?a[a.length-1]:null,h=f?f.breakAfter:s;if(!(t==r&&c&&!s&&!h&&a.length<2&&c.merge(n,i,a.length?f:null,n==0,o,l))){if(r0&&(!s&&a.length&&c.merge(n,c.length,a[0],!1,o,0)?c.breakAfter=a.shift().breakAfter:(n2);var wn={mac:UK||/Mac/.test(gu.platform),windows:/Win/.test(gu.platform),linux:/Linux|X11/.test(gu.platform),ie:wI,ie_version:lhe?WM.documentMode||6:qM?+qM[1]:QM?+QM[1]:0,gecko:FK,gecko_version:FK?+(/Firefox\/(\d+)/.exec(gu.userAgent)||[0,0])[1]:0,chrome:!!rP,chrome_version:rP?+rP[1]:0,ios:UK,android:/Android\b/.test(gu.userAgent),webkit:BK,safari:uhe,webkit_version:BK?+(/\bAppleWebKit\/(\d+)/.exec(navigator.userAgent)||[0,0])[1]:0,tabSize:WM.documentElement.style.tabSize!=null?"tab-size":"-moz-tab-size"};const _Je=256;class up extends zi{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 up)||this.length-(n-t)+r.length>_Je||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 up(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 go(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 RJe(this.dom,t,n)}}class cp extends zi{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(rhe(t),this.mark.class&&(t.className=this.mark.class),this.mark.attrs)for(let n in this.mark.attrs)t.setAttribute(n,this.mark.attrs[n]);return t}canReuseDOM(t){return super.canReuseDOM(t)&&!((this.flags|t.flags)&8)}reuseDOM(t){t.nodeName==this.mark.tagName.toUpperCase()&&(this.setDOM(t),this.flags|=6)}sync(t,n){this.dom?this.flags&4&&this.setAttrs(this.dom):this.setDOM(this.setAttrs(document.createElement(this.mark.tagName))),super.sync(t,n)}merge(t,n,r,i,a,s){return r&&(!(r instanceof cp&&r.mark.eq(this.mark))||t&&a<=0||nt&&n.push(r=t&&(i=a),r=l,a++}let s=this.length-t;return this.length=t,i>-1&&(this.children.length=i,this.markDirty()),new cp(this.mark,n,s)}domAtPos(t){return che(this,t)}coordsAt(t,n){return fhe(this,t,n)}}function RJe(e,t,n){let r=e.nodeValue.length;t>r&&(t=r);let i=t,a=t,s=0;t==0&&n<0||t==r&&n>=0?wn.chrome||wn.gecko||(t?(i--,s=1):a=0)?0:o.length-1];return wn.safari&&!s&&l.width==0&&(l=Array.prototype.find.call(o,u=>u.width)||l),s?SU(l,s<0):l||null}class Mm extends zi{static create(t,n,r){return new Mm(t,n,r)}constructor(t,n,r){super(),this.widget=t,this.length=n,this.side=r,this.prevWidget=null}split(t){let n=Mm.create(this.widget,this.length-t,this.side);return this.length-=t,n}sync(t){(!this.dom||!this.widget.updateDOM(this.dom,t))&&(this.dom&&this.prevWidget&&this.prevWidget.destroy(this.dom),this.prevWidget=null,this.setDOM(this.widget.toDOM(t)),this.widget.editable||(this.dom.contentEditable="false"))}getSide(){return this.side}merge(t,n,r,i,a,s){return r&&(!(r instanceof Mm)||!this.widget.compare(r.widget)||t>0&&a<=0||n0)?go.before(this.dom):go.after(this.dom,t==this.length)}domBoundsAround(){return null}coordsAt(t,n){let r=this.widget.coordsAt(this.dom,t,n);if(r)return r;let i=this.dom.getClientRects(),a=null;if(!i.length)return null;let s=this.side?this.side<0:t>0;for(let o=s?i.length-1:0;a=i[o],!(t>0?o==0:o==i.length-1||a.top0?go.before(this.dom):go.after(this.dom)}localPosFromDOM(){return 0}domBoundsAround(){return null}coordsAt(t){return this.dom.getBoundingClientRect()}get overrideDOMText(){return Nr.empty}get isHidden(){return!0}}up.prototype.children=Mm.prototype.children=sO.prototype.children=EU;function che(e,t){let n=e.dom,{children:r}=e,i=0;for(let a=0;ia&&t0;a--){let s=r[a-1];if(s.dom.parentNode==n)return s.domAtPos(s.length)}for(let a=i;a0&&t instanceof cp&&i.length&&(r=i[i.length-1])instanceof cp&&r.mark.eq(t.mark)?dhe(r,t.children[0],n-1):(i.push(t),t.setParent(e)),e.length+=t.length}function fhe(e,t,n){let r=null,i=-1,a=null,s=-1;function o(u,c){for(let f=0,h=0;f=c&&(g.children.length?o(g,c-h):(!a||a.isHidden&&n>0)&&(b>c||h==b&&g.getSide()>0)?(a=g,s=c-h):(h-1?1:0)!=i.length-(n&&i.indexOf(n)>-1?1:0))return!1;for(let a of r)if(a!=n&&(i.indexOf(a)==-1||e[a]!==t[a]))return!1;return!0}function YM(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 DJe(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){wU(this.attrs,t)||(this.dom&&(this.prevAttrs=this.attrs,this.markDirty()),this.attrs=t)}append(t,n){dhe(this,t,n)}addLineDeco(t){let n=t.spec.attributes,r=t.spec.class;n&&(this.attrs=GM(n,this.attrs||{})),r&&(this.attrs=GM({class:r},this.attrs||{}))}domAtPos(t){return che(this,t)}reuseDOM(t){t.nodeName=="DIV"&&(this.setDOM(t),this.flags|=6)}sync(t,n){var r;this.dom?this.flags&4&&(rhe(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&&(YM(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&&zi.get(i)instanceof cp;)i=i.lastChild;if(!i||!this.length||i.nodeName!="BR"&&((r=zi.get(i))===null||r===void 0?void 0:r.isEditable)==!1&&(!wn.ios||!this.children.some(a=>a instanceof up))){let a=document.createElement("BR");a.cmIgnore=!0,this.dom.appendChild(a)}}measureTextSize(){if(this.children.length==0||this.length>20)return null;let t=0,n;for(let r of this.children){if(!(r instanceof up)||/[^ -~]/.test(r.text))return null;let i=ax(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=fhe(this,t,n);if(!this.children.length&&r&&this.parent){let{heightOracle:i}=this.parent.view.viewState,a=r.bottom-r.top;if(Math.abs(a-i.lineHeight)<2&&i.textHeight=n){if(a instanceof es)return a;if(s>n)break}i=s+a.breakAfter}return null}}class Ym extends zi{constructor(t,n,r){super(),this.widget=t,this.length=n,this.deco=r,this.breakAfter=0,this.prevWidget=null}merge(t,n,r,i,a,s){return r&&(!(r instanceof Ym)||!this.widget.compare(r.widget)||t>0&&a<=0||n0}}class Pd{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 qo=function(e){return e[e.Text=0]="Text",e[e.WidgetBefore=1]="WidgetBefore",e[e.WidgetAfter=2]="WidgetAfter",e[e.WidgetRange=3]="WidgetRange",e}(qo||(qo={}));class An extends b1{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 PT(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 d0(t,n,n,r,t.widget||null,!1)}static replace(t){let n=!!t.block,r,i;if(t.isBlockGap)r=-5e8,i=4e8;else{let{start:a,end:s}=hhe(t,n);r=(a?n?-3e8:-1:5e8)-1,i=(s?n?2e8:1:-6e8)+1}return new d0(t,r,i,n,t.widget||null,!0)}static line(t){return new MT(t)}static set(t,n=!1){return Ur.of(t,n)}hasHeight(){return this.widget?this.widget.estimatedHeight>-1:!1}}An.none=Ur.empty;class PT extends An{constructor(t){let{start:n,end:r}=hhe(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 PT&&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))&&wU(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)}}PT.prototype.point=!1;class MT extends An{constructor(t){super(-2e8,-2e8,null,t)}eq(t){return t instanceof MT&&this.spec.class==t.spec.class&&wU(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)}}MT.prototype.mapMode=Ws.TrackBefore;MT.prototype.point=!0;class d0 extends An{constructor(t,n,r,i,a,s){super(n,r,a,t),this.block=i,this.isReplace=s,this.mapMode=i?n<=0?Ws.TrackBefore:Ws.TrackAfter:Ws.TrackDel}get type(){return this.startSide!=this.endSide?qo.WidgetRange:this.startSide<=0?qo.WidgetBefore:qo.WidgetAfter}get heightRelevant(){return this.block||!!this.widget&&(this.widget.estimatedHeight>=5||this.widget.lineBreaks>0)}eq(t){return t instanceof d0&&NJe(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)}}d0.prototype.point=!0;function hhe(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 NJe(e,t){return e==t||!!(e&&t&&e.compare(t))}function ZM(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 G2{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 Ym&&t.deco.endSide<0)}getLine(){return this.curLine||(this.content.push(this.curLine=new es),this.atCursorPos=!0),this.curLine}flushBuffer(t=this.bufferMarks){this.pendingBuffer&&(this.curLine.append(hA(new sO(-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 Ym)&&this.getLine()}buildText(t,n,r){for(;t>0;){if(this.textOff==this.text.length){let{value:a,lineBreak:s,done:o}=this.cursor.next(this.skip);if(this.skip=0,o)throw new Error("Ran out of text content when drawing inline views");if(s){this.posCovered()||this.getLine(),this.content.length?this.content[this.content.length-1].breakAfter=1:this.breakAtStart=1,this.flushBuffer(),this.curLine=null,this.atCursorPos=!0,t--;continue}else this.text=a,this.textOff=0}let i=Math.min(this.text.length-this.textOff,t,512);this.flushBuffer(n.slice(n.length-r)),this.getLine().append(hA(new up(this.text.slice(this.textOff,this.textOff+i)),n),r),this.atCursorPos=!0,this.textOff+=i,t-=i,r=0}}span(t,n,r,i){this.buildText(n-t,r,i),this.pos=n,this.openStart<0&&(this.openStart=i)}point(t,n,r,i,a,s){if(this.disallowBlockEffectsFor[s]&&r instanceof d0){if(r.block)throw new RangeError("Block decorations may not be specified via plugins");if(n>this.doc.lineAt(this.pos).to)throw new RangeError("Decorations that replace line breaks may not be specified via plugins")}let o=n-t;if(r instanceof d0)if(r.block)r.startSide>0&&!this.posCovered()&&this.getLine(),this.addBlockWidget(new Ym(r.widget||new jK("div"),o,r));else{let l=Mm.create(r.widget||new jK("span"),o,o?0:r.startSide),u=this.atCursorPos&&!l.isEditable&&a<=i.length&&(t0),c=!l.isEditable&&(ti.length||r.startSide<=0),f=this.getLine();this.pendingBuffer==2&&!u&&!l.isEditable&&(this.pendingBuffer=0),this.flushBuffer(i),u&&(f.append(hA(new sO(1),i),a),a=i.length+Math.max(0,a-i.length)),f.append(hA(l,i),a),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);o&&(this.textOff+o<=this.text.length?this.textOff+=o:(this.skip+=o-(this.text.length-this.textOff),this.text="",this.textOff=0),this.pos=n),this.openStart<0&&(this.openStart=a)}static build(t,n,r,i,a){let s=new G2(t,n,r,a);return s.openEnd=Ur.spans(i,n,r,s),s.openStart<0&&(s.openStart=s.openEnd),s.finish(s.openEnd),s}}function hA(e,t){for(let n of t)e=new cp(n,[e],e.length);return e}class jK extends Pd{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 Hi=function(e){return e[e.LTR=0]="LTR",e[e.RTL=1]="RTL",e}(Hi||(Hi={}));const v1=Hi.LTR,xU=Hi.RTL;function phe(e){let t=[];for(let n=0;n=n){if(o.level==r)return s;(a<0||(i!=0?i<0?o.fromn:t[a].level>o.level))&&(a=s)}}if(a<0)throw new RangeError("Index out of range");return a}}function ghe(e,t){if(e.length!=t.length)return!1;for(let n=0;n=0;S-=3)if(nf[S+1]==-g){let w=nf[S+2],E=w&2?i:w&4?w&1?a:i:0;E&&(Si[f]=Si[nf[S]]=E),o=S;break}}else{if(nf.length==189)break;nf[o++]=f,nf[o++]=h,nf[o++]=l}else if((b=Si[f])==2||b==1){let S=b==i;l=S?0:1;for(let w=o-3;w>=0;w-=3){let E=nf[w+2];if(E&2)break;if(S)nf[w+2]|=2;else{if(E&4)break;nf[w+2]|=4}}}}}function BJe(e,t,n,r){for(let i=0,a=r;i<=n.length;i++){let s=i?n[i-1].to:e,o=il;)b==w&&(b=n[--S].from,w=S?n[S-1].to:e),Si[--b]=g;l=c}else a=u,l++}}}function KM(e,t,n,r,i,a,s){let o=r%2?2:1;if(r%2==i%2)for(let l=t,u=0;ll&&s.push(new Lm(l,S.from,g));let w=S.direction==v1!=!(g%2);JM(e,w?r+1:r,i,S.inner,S.from,S.to,s),l=S.to}b=S.to}else{if(b==n||(c?Si[b]!=o:Si[b]==o))break;b++}h?KM(e,l,b,r+1,i,h,s):lt;){let c=!0,f=!1;if(!u||l>a[u-1].to){let S=Si[l-1];S!=o&&(c=!1,f=S==16)}let h=!c&&o==1?[]:null,g=c?r:r+1,b=l;e:for(;;)if(u&&b==a[u-1].to){if(f)break e;let S=a[--u];if(!c)for(let w=S.from,E=u;;){if(w==t)break e;if(E&&a[E-1].to==w)w=a[--E].from;else{if(Si[w-1]==o)break e;break}}if(h)h.push(S);else{S.toSi.length;)Si[Si.length]=256;let r=[],i=t==v1?0:1;return JM(e,i,i,n,0,e.length,r),r}function bhe(e){return[new Lm(0,e,0)]}let yhe="";function zJe(e,t,n,r,i){var a;let s=r.head-e.from,o=Lm.find(t,s,(a=r.bidiLevel)!==null&&a!==void 0?a:-1,r.assoc),l=t[o],u=l.side(i,n);if(s==u){let h=o+=i?1:-1;if(h<0||h>=t.length)return null;l=t[o=h],s=l.side(!i,n),u=l.side(i,n)}let c=qs(e.text,s,l.forward(i,n));(cl.to)&&(c=u),yhe=e.text.slice(Math.min(s,c),Math.max(s,c));let f=o==(i?t.length-1:0)?null:t[o+(i?1:-1)];return f&&c==u&&f.level+(i?0:1)e.some(t=>t)}),khe=Sn.define({combine:e=>e.some(t=>t)});class pv{constructor(t,n="nearest",r="nearest",i=5,a=5,s=!1){this.range=t,this.y=n,this.x=r,this.yMargin=i,this.xMargin=a,this.isSnapshot=s}map(t){return t.empty?this:new pv(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 pv(vt.cursor(t.doc.length),this.y,this.x,this.yMargin,this.xMargin,this.isSnapshot)}}const pA=hr.define({map:(e,t)=>e.map(t)});function Tc(e,t,n){let r=e.facet(Ehe);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 xI=Sn.define({combine:e=>e.length?e[0]:!0});let HJe=0;const c2=Sn.define();class fa{constructor(t,n,r,i,a){this.id=t,this.create=n,this.domEventHandlers=r,this.domEventObservers=i,this.extension=a(this)}static define(t,n){const{eventHandlers:r,eventObservers:i,provide:a,decorations:s}=n||{};return new fa(HJe++,t,r,i,o=>{let l=[c2.of(o)];return s&&l.push(ox.of(u=>{let c=u.plugin(o);return c?s(c):An.none})),a&&l.push(a(o)),l})}static fromClass(t,n){return fa.define(r=>new t(r),n)}}class iP{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(Tc(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){Tc(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){Tc(t.state,r,"CodeMirror plugin crashed")}}deactivate(){this.spec=this.value=null}}const Che=Sn.define(),TU=Sn.define(),ox=Sn.define(),Ahe=Sn.define(),kU=Sn.define(),_he=Sn.define();function HK(e,t){let n=e.state.facet(_he);if(!n.length)return n;let r=n.map(a=>a instanceof Function?a(e):a),i=[];return Ur.spans(r,t.from,t.to,{point(){},span(a,s,o,l){let u=a-t.from,c=s-t.from,f=i;for(let h=o.length-1;h>=0;h--,l--){let g=o[h].spec.bidiIsolate,b;if(g==null&&(g=jJe(t.text,u,c)),l>0&&f.length&&(b=f[f.length-1]).to==u&&b.direction==g)b.to=c,f=b.inner;else{let S={from:u,to:c,direction:g,inner:[]};f.push(S),f=S.inner}}}}),i}const Rhe=Sn.define();function Ihe(e){let t=0,n=0,r=0,i=0;for(let a of e.state.facet(Rhe)){let s=a(e);s&&(s.left!=null&&(t=Math.max(t,s.left)),s.right!=null&&(n=Math.max(n,s.right)),s.top!=null&&(r=Math.max(r,s.top)),s.bottom!=null&&(i=Math.max(i,s.bottom)))}return{left:t,right:n,top:r,bottom:i}}const d2=Sn.define();class kc{constructor(t,n,r,i){this.fromA=t,this.toA=n,this.fromB=r,this.toB=i}join(t){return new kc(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;a+=2}if(!l)return r;new kc(l.fromA,l.toA,l.fromB,l.toB).addToSet(r),s=l.toA,o=l.toB}}}class D3{constructor(t,n,r){this.view=t,this.state=n,this.transactions=r,this.flags=0,this.startState=t.state,this.changes=ns.empty(this.startState.doc.length);for(let a of r)this.changes=this.changes.compose(a.changes);let i=[];this.changes.iterChangedRanges((a,s,o,l)=>i.push(new kc(a,s,o,l))),this.changedRanges=i}static create(t,n,r){return new D3(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 VK extends zi{get length(){return this.view.state.doc.length}constructor(t){super(),this.view=t,this.decorations=[],this.dynamicDecorationMap=[],this.domChanged=null,this.hasComposition=null,this.markedForComposition=new Set,this.minWidth=0,this.minWidthFrom=0,this.minWidthTo=0,this.impreciseAnchor=null,this.impreciseHead=null,this.forceSelection=!1,this.lastUpdate=Date.now(),this.setDOM(t.contentDOM),this.children=[new es],this.children[0].setParent(this),this.updateDeco(),this.updateInner([new kc(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:!ZJe(t.changes,this.hasComposition)&&!t.selectionSet&&(i=t.state.selection.main.head));let a=i>-1?WJe(this.view,t.changes,i):null;if(this.domChanged=null,this.hasComposition){this.markedForComposition.clear();let{from:u,to:c}=this.hasComposition;r=new kc(u,c,t.changes.mapPos(u,-1),t.changes.mapPos(c,1)).addToSet(r.slice())}this.hasComposition=a?{from:a.range.fromB,to:a.range.toB}:null,(wn.ie||wn.chrome)&&!a&&t&&t.state.doc.lines!=t.startState.doc.lines&&(this.forceSelection=!0);let s=this.decorations,o=this.updateDeco(),l=GJe(s,o,t.changes);return r=kc.extendWithRanges(r,l),!(this.flags&7)&&r.length==0?!1:(this.updateInner(r,t.startState.doc.length,a),t.transactions.length&&(this.lastUpdate=Date.now()),!0)}updateInner(t,n,r){this.view.viewState.mustMeasureContent=!0,this.updateChildren(t,n,r);let{observer:i}=this.view;i.ignore(()=>{this.dom.style.height=this.view.viewState.contentHeight/this.view.scaleY+"px",this.dom.style.flexBasis=this.minWidth?this.minWidth+"px":"";let s=wn.chrome||wn.ios?{node:i.selectionRange.focusNode,written:!1}:void 0;this.sync(this.view,s),this.flags&=-8,s&&(s.written||i.selectionRange.focusNode!=s.node)&&(this.forceSelection=!0),this.dom.style.height=""}),this.markedForComposition.forEach(s=>s.flags&=-9);let a=[];if(this.view.viewport.from||this.view.viewport.to=0?i[s]:null;if(!o)break;let{fromA:l,toA:u,fromB:c,toB:f}=o,h,g,b,S;if(r&&r.range.fromBc){let C=G2.build(this.view.state.doc,c,r.range.fromB,this.decorations,this.dynamicDecorationMap),I=G2.build(this.view.state.doc,r.range.toB,f,this.decorations,this.dynamicDecorationMap);g=C.breakAtStart,b=C.openStart,S=I.openEnd;let A=this.compositionView(r);I.breakAtStart?A.breakAfter=1:I.content.length&&A.merge(A.length,A.length,I.content[0],!1,I.openStart,0)&&(A.breakAfter=I.content[0].breakAfter,I.content.shift()),C.content.length&&A.merge(0,0,C.content[C.content.length-1],!0,0,C.openEnd)&&C.content.pop(),h=C.content.concat(A).concat(I.content)}else({content:h,breakAtStart:g,openStart:b,openEnd:S}=G2.build(this.view.state.doc,c,f,this.decorations,this.dynamicDecorationMap));let{i:w,off:E}=a.findPos(u,1),{i:x,off:k}=a.findPos(l,-1);she(this,x,k,w,E,h,g,b,S)}r&&this.fixCompositionDOM(r)}compositionView(t){let n=new up(t.text.nodeValue);n.flags|=8;for(let{deco:i}of t.marks)n=new cp(i,[n],n.length);let r=new es;return r.append(n,0),r}fixCompositionDOM(t){let n=(a,s)=>{s.flags|=8|(s.children.some(l=>l.flags&7)?1:0),this.markedForComposition.add(s);let o=zi.get(a);o&&o!=s&&(o.dom=null),s.setDOM(a)},r=this.childPos(t.range.fromB,1),i=this.children[r.i];n(t.line,i);for(let a=t.marks.length-1;a>=-1;a--)r=i.childPos(r.off,1),i=i.children[r.i],n(a>=0?t.marks[a].node:t.text,i)}updateSelection(t=!1,n=!1){(t||!this.view.observer.selectionRange.focusNode)&&this.view.observer.readSelectionRange();let r=this.view.root.activeElement,i=r==this.dom,a=!i&&V4(this.dom,this.view.observer.selectionRange)&&!(r&&this.dom.contains(r));if(!(i||n||a))return;let s=this.forceSelection;this.forceSelection=!1;let o=this.view.state.selection.main,l=this.moveToLine(this.domAtPos(o.anchor)),u=o.empty?l:this.moveToLine(this.domAtPos(o.head));if(wn.gecko&&o.empty&&!this.hasComposition&&VJe(l)){let f=document.createTextNode("");this.view.observer.ignore(()=>l.node.insertBefore(f,l.node.childNodes[l.offset]||null)),l=u=new go(f,0),s=!0}let c=this.view.observer.selectionRange;(s||!c.focusNode||(!q2(l.node,l.offset,c.anchorNode,c.anchorOffset)||!q2(u.node,u.offset,c.focusNode,c.focusOffset))&&!this.suppressWidgetCursorChange(c,o))&&(this.view.observer.ignore(()=>{wn.android&&wn.chrome&&this.dom.contains(c.focusNode)&&YJe(c.focusNode,this.dom)&&(this.dom.blur(),this.dom.focus({preventScroll:!0}));let f=I3(this.view.root);if(f)if(o.empty){if(wn.gecko){let h=QJe(l.node,l.offset);if(h&&h!=3){let g=Nhe(l.node,l.offset,h==1?1:-1);g&&(l=new go(g.node,g.offset))}}f.collapse(l.node,l.offset),o.bidiLevel!=null&&f.caretBidiLevel!==void 0&&(f.caretBidiLevel=o.bidiLevel)}else if(f.extend){f.collapse(l.node,l.offset);try{f.extend(u.node,u.offset)}catch{}}else{let h=document.createRange();o.anchor>o.head&&([l,u]=[u,l]),h.setEnd(u.node,u.offset),h.setStart(l.node,l.offset),f.removeAllRanges(),f.addRange(h)}a&&this.view.root.activeElement==this.dom&&(this.dom.blur(),r&&r.focus())}),this.view.observer.setSelectionRange(l,u)),this.impreciseAnchor=l.precise?null:new go(c.anchorNode,c.anchorOffset),this.impreciseHead=u.precise?null:new go(c.focusNode,c.focusOffset)}suppressWidgetCursorChange(t,n){return this.hasComposition&&n.empty&&q2(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=I3(t.root),{anchorNode:i,anchorOffset:a}=t.observer.selectionRange;if(!r||!n.empty||!n.assoc||!r.modify)return;let s=es.find(this,n.head);if(!s)return;let o=s.posAtStart;if(n.head==o||n.head==o+s.length)return;let l=this.coordsAt(n.head,-1),u=this.coordsAt(n.head,1);if(!l||!u||l.bottom>u.top)return;let 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 f=t.observer.selectionRange;t.docView.posFromDOM(f.anchorNode,f.anchorOffset)!=n.from&&r.collapse(i,a)}moveToLine(t){let n=this.dom,r;if(t.node!=n)return t;for(let i=t.offset;!r&&i=0;i--){let a=zi.get(n.childNodes[i]);a instanceof es&&(r=a.domAtPos(a.length))}return r?new go(r.node,r.offset,!0):t}nearest(t){for(let n=t;n;){let r=zi.get(n);if(r&&r.rootView==this)return r;n=n.parentNode}return null}posFromDOM(t,n){let r=this.nearest(t);if(!r)throw new RangeError("Trying to find position for a DOM position outside of the document");return r.localPosFromDOM(t,n)+r.posAtStart}domAtPos(t){let{i:n,off:r}=this.childCursor().findPos(t,-1);for(;n=0;s--){let o=this.children[s],l=a-o.breakAfter,u=l-o.length;if(lt||o.covers(1))&&(!r||o instanceof es&&!(r instanceof es&&n>=0))&&(r=o,i=u),a=u}return r?r.coordsAt(t-i,n):null}coordsForChar(t){let{i:n,off:r}=this.childPos(t,1),i=this.children[n];if(!(i instanceof es))return null;for(;i.children.length;){let{i:o,off:l}=i.childPos(r,1);for(;;o++){if(o==i.children.length)return null;if((i=i.children[o]).length)break}r=l}if(!(i instanceof up))return null;let a=qs(i.text,r);if(a==r)return null;let s=y1(i.dom,r,a).getClientRects();for(let o=0;oMath.max(this.view.scrollDOM.clientWidth,this.minWidth)+1,o=-1,l=this.view.textDirection==Hi.LTR;for(let u=0,c=0;ci)break;if(u>=r){let g=f.dom.getBoundingClientRect();if(n.push(g.height),s){let b=f.dom.lastChild,S=b?ax(b):[];if(S.length){let w=S[S.length-1],E=l?w.right-g.left:g.right-w.left;E>o&&(o=E,this.minWidth=a,this.minWidthFrom=u,this.minWidthTo=h)}}}u=h+f.breakAfter}return n}textDirectionAt(t){let{i:n}=this.childPos(t,1);return getComputedStyle(this.children[n].dom).direction=="rtl"?Hi.RTL:Hi.LTR}measureTextSize(){for(let a of this.children)if(a instanceof es){let s=a.measureTextSize();if(s)return s}let t=document.createElement("div"),n,r,i;return t.className="cm-line",t.style.width="99999px",t.style.position="absolute",t.textContent="abc def ghi jkl mno pqr stu",this.view.observer.ignore(()=>{this.dom.appendChild(t);let a=ax(t.firstChild)[0];n=t.getBoundingClientRect().height,r=a?a.width/27:7,i=a?a.height:n,t.remove()}),{lineHeight:n,charWidth:r,textHeight:i}}childCursor(t=this.length){let n=this.children.length;return n&&(t-=this.children[--n].length),new ahe(this.children,t,n)}computeBlockGapDeco(){let t=[],n=this.view.viewState;for(let r=0,i=0;;i++){let a=i==n.viewports.length?null:n.viewports[i],s=a?a.from-1:this.length;if(s>r){let o=(n.lineBlockAt(s).bottom-n.lineBlockAt(r).top)/this.view.scaleY;t.push(An.replace({widget:new WK(o),block:!0,inclusive:!0,isBlockGap:!0}).range(r,s))}if(!a)break;r=a.to+1}return An.set(t)}updateDeco(){let t=this.view.state.facet(ox).map((i,a)=>(this.dynamicDecorationMap[a]=typeof i=="function")?i(this.view):i),n=!1,r=this.view.state.facet(Ahe).map((i,a)=>{let s=typeof i=="function";return s&&(n=!0),s?i(this.view):i});r.length&&(this.dynamicDecorationMap[t.length]=n,t.push(Ur.join(r)));for(let i=t.length;in.anchor?-1:1),i;if(!r)return;!n.empty&&(i=this.coordsAt(n.anchor,n.anchor>n.head?-1:1))&&(r={left:Math.min(r.left,i.left),top:Math.min(r.top,i.top),right:Math.max(r.right,i.right),bottom:Math.max(r.bottom,i.bottom)});let a=Ihe(this.view),s={left:r.left-a.left,top:r.top-a.top,right:r.right+a.right,bottom:r.bottom+a.bottom},{offsetWidth:o,offsetHeight:l}=this.view.scrollDOM;xJe(this.view.scrollDOM,s,n.head0)r=r.childNodes[i-1],i=lp(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 QJe(e,t){return e.nodeType!=1?0:(t&&e.childNodes[t-1].contentEditable=="false"?1:0)|(t{rt.from&&(n=!0)}),n}function XJe(e,t,n=1){let r=e.charCategorizer(t),i=e.doc.lineAt(t),a=t-i.from;if(i.length==0)return vt.cursor(t);a==0?n=1:a==i.length&&(n=-1);let s=a,o=a;n<0?s=qs(i.text,a,!1):o=qs(i.text,a);let l=r(i.text.slice(s,o));for(;s>0;){let u=qs(i.text,s,!1);if(r(i.text.slice(u,s))!=l)break;s=u}for(;oe?t.left-e:Math.max(0,e-t.right)}function JJe(e,t){return t.top>e?t.top-e:Math.max(0,e-t.bottom)}function aP(e,t){return e.topt.top+1}function QK(e,t){return te.bottom?{top:e.top,left:e.left,right:e.right,bottom:t}:e}function tL(e,t,n){let r,i,a,s,o=!1,l,u,c,f;for(let b=e.firstChild;b;b=b.nextSibling){let S=ax(b);for(let w=0;wk||s==k&&a>x){r=b,i=E,a=x,s=k;let C=k?n0?w0)}x==0?n>E.bottom&&(!c||c.bottomE.top)&&(u=b,f=E):c&&aP(c,E)?c=qK(c,E.bottom):f&&aP(f,E)&&(f=QK(f,E.top))}}if(c&&c.bottom>=n?(r=l,i=c):f&&f.top<=n&&(r=u,i=f),!r)return{node:e,offset:0};let h=Math.max(i.left,Math.min(i.right,t));if(r.nodeType==3)return GK(r,h,n);if(o&&r.contentEditable!="false")return tL(r,h,n);let g=Array.prototype.indexOf.call(e.childNodes,r)+(t>=(i.left+i.right)/2?1:0);return{node:e,offset:g}}function GK(e,t,n){let r=e.nodeValue.length,i=-1,a=1e9,s=0;for(let o=0;on?c.top-n:n-c.bottom)-1;if(c.left-1<=t&&c.right+1>=t&&f=(c.left+c.right)/2,g=h;if((wn.chrome||wn.gecko)&&y1(e,o).getBoundingClientRect().left==c.right&&(g=!h),f<=0)return{node:e,offset:o+(g?1:0)};i=o+(g?1:0),a=f}}}return{node:e,offset:i>-1?i:s>0?e.nodeValue.length:0}}function Phe(e,t,n,r=-1){var i,a;let s=e.contentDOM.getBoundingClientRect(),o=s.top+e.viewState.paddingTop,l,{docHeight:u}=e.viewState,{x:c,y:f}=t,h=f-o;if(h<0)return 0;if(h>u)return e.state.doc.length;for(let C=e.viewState.heightOracle.textHeight/2,I=!1;l=e.elementAtHeight(h),l.type!=qo.Text;)for(;h=r>0?l.bottom+C:l.top-C,!(h>=0&&h<=u);){if(I)return n?null:0;I=!0,r=-r}f=o+h;let g=l.from;if(ge.viewport.to)return e.viewport.to==e.state.doc.length?e.state.doc.length:n?null:YK(e,s,l,c,f);let b=e.dom.ownerDocument,S=e.root.elementFromPoint?e.root:b,w=S.elementFromPoint(c,f);w&&!e.contentDOM.contains(w)&&(w=null),w||(c=Math.max(s.left+1,Math.min(s.right-1,c)),w=S.elementFromPoint(c,f),w&&!e.contentDOM.contains(w)&&(w=null));let E,x=-1;if(w&&((i=e.docView.nearest(w))===null||i===void 0?void 0:i.isEditable)!=!1){if(b.caretPositionFromPoint){let C=b.caretPositionFromPoint(c,f);C&&({offsetNode:E,offset:x}=C)}else if(b.caretRangeFromPoint){let C=b.caretRangeFromPoint(c,f);C&&({startContainer:E,startOffset:x}=C,(!e.contentDOM.contains(E)||wn.safari&&eet(E,x,c)||wn.chrome&&tet(E,x,c))&&(E=void 0))}}if(!E||!e.docView.dom.contains(E)){let C=es.find(e.docView,g);if(!C)return h>l.top+l.height/2?l.to:l.from;({node:E,offset:x}=tL(C.dom,c,f))}let k=e.docView.nearest(E);if(!k)return null;if(k.isWidget&&((a=k.dom)===null||a===void 0?void 0:a.nodeType)==1){let C=k.dom.getBoundingClientRect();return t.ye.defaultLineHeight*1.5){let o=e.viewState.heightOracle.textHeight,l=Math.floor((i-n.top-(e.defaultLineHeight-o)*.5)/o);a+=l*e.viewState.heightOracle.lineLength}let s=e.state.sliceDoc(n.from,n.to);return n.from+zM(s,a,e.state.tabSize)}function eet(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 y1(e,r-1,r).getBoundingClientRect().left>n}function tet(e,t,n){if(t!=0)return!1;for(let i=e;;){let a=i.parentNode;if(!a||a.nodeType!=1||a.firstChild!=i)return!1;if(a.classList.contains("cm-line"))break;i=a}let r=e.nodeType==1?e.getBoundingClientRect():y1(e,0,Math.max(e.nodeValue.length,1)).getBoundingClientRect();return n-r.left>5}function nL(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==qo.Text))return r}return n}function net(e,t,n,r){let i=nL(e,t.head),a=!r||i.type!=qo.Text||!(e.lineWrapping||i.widgetLineBreaks)?null:e.coordsAtPos(t.assoc<0&&t.head>i.from?t.head-1:t.head);if(a){let s=e.dom.getBoundingClientRect(),o=e.textDirectionAt(i.from),l=e.posAtCoords({x:n==(o==Hi.LTR)?s.right-1:s.left+1,y:(a.top+a.bottom)/2});if(l!=null)return vt.cursor(l,n?-1:1)}return vt.cursor(n?i.to:i.from,n?-1:1)}function ZK(e,t,n,r){let i=e.state.doc.lineAt(t.head),a=e.bidiSpans(i),s=e.textDirectionAt(i.from);for(let o=t,l=null;;){let u=zJe(i,a,s,o,n),c=yhe;if(!u){if(i.number==(n?e.state.doc.lines:1))return o;c=` -`,i=e.state.doc.line(i.number+(n?1:-1)),a=e.bidiSpans(i),u=e.visualLineSide(i,!n)}if(l){if(!l(c))return o}else{if(!r)return u;l=r(c)}o=u}}function ret(e,t,n){let r=e.state.charCategorizer(t),i=r(n);return a=>{let s=r(a);return i==Ki.Space&&(i=s),i==s}}function iet(e,t,n,r){let i=t.head,a=n?1:-1;if(i==(n?e.state.doc.length:0))return vt.cursor(i,t.assoc);let s=t.goalColumn,o,l=e.contentDOM.getBoundingClientRect(),u=e.coordsAtPos(i,t.assoc||-1),c=e.documentTop;if(u)s==null&&(s=u.left-l.left),o=a<0?u.top:u.bottom;else{let g=e.viewState.lineBlockAt(i);s==null&&(s=Math.min(l.right-l.left,e.defaultCharacterWidth*(i-g.from))),o=(a<0?g.top:g.bottom)+c}let f=l.left+s,h=r??e.viewState.heightOracle.textHeight>>1;for(let g=0;;g+=10){let b=o+(h+g)*a,S=Phe(e,{x:f,y:b},!1,a);if(bl.bottom||(a<0?Si)){let w=e.docView.coordsForChar(S),E=!w||b{if(t>a&&ti(e)),n.from,t.head>n.from?-1:1);return r==n.from?n:vt.cursor(r,rnull),wn.gecko&&wet(t.contentDOM.ownerDocument)}handleEvent(t){!pet(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=set(t),r=this.handlers,i=this.view.contentDOM;for(let a in n)if(a!="scroll"){let s=!n[a].handlers.length,o=r[a];o&&s!=!o.handlers.length&&(i.removeEventListener(a,this.handleEvent),o=null),o||i.addEventListener(a,this.handleEvent,{passive:s})}for(let a in r)a!="scroll"&&!n[a]&&i.removeEventListener(a,this.handleEvent);this.handlers=n}keydown(t){if(this.lastKeyCode=t.keyCode,this.lastKeyTime=Date.now(),t.keyCode==9&&Date.now()r.keyCode==t.keyCode))&&!t.ctrlKey||oet.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,hv(this.view.contentDOM,t.key,t.keyCode)):!1}ignoreDuringComposition(t){return/^key/.test(t.type)?this.composing>0?!0:wn.safari&&!wn.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 XK(e,t){return(n,r)=>{try{return t.call(e,r,n)}catch(i){Tc(n.state,i)}}}function set(e){let t=Object.create(null);function n(r){return t[r]||(t[r]={observers:[],handlers:[]})}for(let r of e){let i=r.spec;if(i&&i.domEventHandlers)for(let a in i.domEventHandlers){let s=i.domEventHandlers[a];s&&n(a).handlers.push(XK(r.value,s))}if(i&&i.domEventObservers)for(let a in i.domEventObservers){let s=i.domEventObservers[a];s&&n(a).observers.push(XK(r.value,s))}}for(let r in Cd)n(r).handlers.push(Cd[r]);for(let r in Ad)n(r).observers.push(Ad[r]);return t}const Mhe=[{key:"Backspace",keyCode:8,inputType:"deleteContentBackward"},{key:"Enter",keyCode:13,inputType:"insertParagraph"},{key:"Enter",keyCode:13,inputType:"insertLineBreak"},{key:"Delete",keyCode:46,inputType:"deleteContentForward"}],oet="dthko",Lhe=[16,17,18,20,91,92,224,225],mA=6;function gA(e){return Math.max(0,e)*.7+8}function uet(e,t){return Math.max(Math.abs(e.clientX-t.clientX),Math.abs(e.clientY-t.clientY))}class cet{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=TJe(t.contentDOM),this.atoms=t.state.facet(kU).map(s=>s(t));let a=t.contentDOM.ownerDocument;a.addEventListener("mousemove",this.move=this.move.bind(this)),a.addEventListener("mouseup",this.up=this.up.bind(this)),this.extend=n.shiftKey,this.multiple=t.state.facet(Vr.allowMultipleSelections)&&det(t,n),this.dragging=het(t,n)&&Uhe(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&&uet(this.startEvent,t)<10)return;this.select(this.lastEvent=t);let r=0,i=0,a=((n=this.scrollParent)===null||n===void 0?void 0:n.getBoundingClientRect())||{left:0,top:0,right:this.view.win.innerWidth,bottom:this.view.win.innerHeight},s=Ihe(this.view);t.clientX-s.left<=a.left+mA?r=-gA(a.left-t.clientX):t.clientX+s.right>=a.right-mA&&(r=gA(t.clientX-a.right)),t.clientY-s.top<=a.top+mA?i=-gA(a.top-t.clientY):t.clientY+s.bottom>=a.bottom-mA&&(i=gA(t.clientY-a.bottom)),this.setScrollSpeed(r,i)}up(t){this.dragging==null&&this.select(this.lastEvent),this.dragging||t.preventDefault(),this.destroy()}destroy(){this.setScrollSpeed(0,0);let t=this.view.contentDOM.ownerDocument;t.removeEventListener("mousemove",this.move),t.removeEventListener("mouseup",this.up),this.view.inputState.mouseSelection=this.view.inputState.draggedContent=null}setScrollSpeed(t,n){this.scrollSpeed={x:t,y:n},t||n?this.scrolling<0&&(this.scrolling=setInterval(()=>this.scroll(),50)):this.scrolling>-1&&(clearInterval(this.scrolling),this.scrolling=-1)}scroll(){this.scrollParent?(this.scrollParent.scrollLeft+=this.scrollSpeed.x,this.scrollParent.scrollTop+=this.scrollSpeed.y):this.view.win.scrollBy(this.scrollSpeed.x,this.scrollSpeed.y),this.dragging===!1&&this.select(this.lastEvent)}skipAtoms(t){let n=null;for(let r=0;rthis.select(this.lastEvent),20)}}function det(e,t){let n=e.state.facet(vhe);return n.length?n[0](t):wn.mac?t.metaKey:t.ctrlKey}function fet(e,t){let n=e.state.facet(Ohe);return n.length?n[0](t):wn.mac?!t.altKey:!t.ctrlKey}function het(e,t){let{main:n}=e.state.selection;if(n.empty)return!1;let r=I3(e.root);if(!r||r.rangeCount==0)return!0;let i=r.getRangeAt(0).getClientRects();for(let a=0;a=t.clientX&&s.top<=t.clientY&&s.bottom>=t.clientY)return!0}return!1}function pet(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=zi.get(n))&&r.ignoreEvent(t))return!1;return!0}const Cd=Object.create(null),Ad=Object.create(null),$he=wn.ie&&wn.ie_version<15||wn.ios&&wn.webkit_version<604;function met(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(),Fhe(e,n.value)},50)}function Fhe(e,t){let{state:n}=e,r,i=1,a=n.toText(t),s=a.lines==n.selection.ranges.length;if(rL!=null&&n.selection.ranges.every(l=>l.empty)&&rL==a.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 f=n.toText((s?a.line(i++).text:t)+n.lineBreak);return{changes:{from:c.from,insert:f},range:vt.cursor(u.from+f.length)}})}else s?r=n.changeByRange(l=>{let u=a.line(i++);return{changes:{from:l.from,to:l.to,insert:u.text},range:vt.cursor(l.from+u.length)}}):r=n.replaceSelection(a);e.dispatch(r,{userEvent:"input.paste",scrollIntoView:!0})}Ad.scroll=e=>{e.inputState.lastScrollTop=e.scrollDOM.scrollTop,e.inputState.lastScrollLeft=e.scrollDOM.scrollLeft};Cd.keydown=(e,t)=>(e.inputState.setSelectionOrigin("select"),t.keyCode==27&&(e.inputState.lastEscPress=Date.now()),!1);Ad.touchstart=(e,t)=>{e.inputState.lastTouchTime=Date.now(),e.inputState.setSelectionOrigin("select.pointer")};Ad.touchmove=e=>{e.inputState.setSelectionOrigin("select.pointer")};Cd.mousedown=(e,t)=>{if(e.observer.flush(),e.inputState.lastTouchTime>Date.now()-2e3)return!1;let n=null;for(let r of e.state.facet(She))if(n=r(e,t),n)break;if(!n&&t.button==0&&(n=yet(e,t)),n){let r=!e.hasFocus;e.inputState.startMouseSelection(new cet(e,t,n,r)),r&&e.observer.ignore(()=>nhe(e.contentDOM));let i=e.inputState.mouseSelection;if(i)return i.start(t),i.dragging===!1}return!1};function KK(e,t,n,r){if(r==1)return vt.cursor(t,n);if(r==2)return XJe(e.state,t,n);{let i=es.find(e.docView,t),a=e.state.doc.lineAt(i?i.posAtEnd:t),s=i?i.posAtStart:a.from,o=i?i.posAtEnd:a.to;return oe>=t.top&&e<=t.bottom,JK=(e,t,n)=>Bhe(t,n)&&e>=n.left&&e<=n.right;function get(e,t,n,r){let i=es.find(e.docView,t);if(!i)return 1;let a=t-i.posAtStart;if(a==0)return 1;if(a==i.length)return-1;let s=i.coordsAt(a,-1);if(s&&JK(n,r,s))return-1;let o=i.coordsAt(a,1);return o&&JK(n,r,o)?1:s&&Bhe(r,s)?-1:1}function eJ(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1);return{pos:n,bias:get(e,n,t.clientX,t.clientY)}}const bet=wn.ie&&wn.ie_version<=11;let tJ=null,nJ=0,rJ=0;function Uhe(e){if(!bet)return e.detail;let t=tJ,n=rJ;return tJ=e,rJ=Date.now(),nJ=!t||n>Date.now()-400&&Math.abs(t.clientX-e.clientX)<2&&Math.abs(t.clientY-e.clientY)<2?(nJ+1)%3:1}function yet(e,t){let n=eJ(e,t),r=Uhe(t),i=e.state.selection;return{update(a){a.docChanged&&(n.pos=a.changes.mapPos(n.pos),i=i.map(a.changes))},get(a,s,o){let l=eJ(e,a),u,c=KK(e,l.pos,l.bias,r);if(n.pos!=l.pos&&!s){let f=KK(e,n.pos,n.bias,r),h=Math.min(f.from,c.from),g=Math.max(f.to,c.to);c=h1&&(u=vet(i,l.pos))?u:o?i.addRange(c):vt.create([c])}}}function vet(e,t){for(let n=0;n=t)return vt.create(e.ranges.slice(0,n).concat(e.ranges.slice(n+1)),e.mainIndex==n?0:e.mainIndex-(e.mainIndex>n?1:0))}return null}Cd.dragstart=(e,t)=>{let{selection:{main:n}}=e.state;if(t.target.draggable){let i=e.docView.nearest(t.target);if(i&&i.isWidget){let a=i.posAtStart,s=a+i.length;(a>=n.to||s<=n.from)&&(n=vt.range(a,s))}}let{inputState:r}=e;return r.mouseSelection&&(r.mouseSelection.dragging=!0),r.draggedContent=n,t.dataTransfer&&(t.dataTransfer.setData("Text",e.state.sliceDoc(n.from,n.to)),t.dataTransfer.effectAllowed="copyMove"),!1};Cd.dragend=e=>(e.inputState.draggedContent=null,!1);function iJ(e,t,n,r){if(!n)return;let i=e.posAtCoords({x:t.clientX,y:t.clientY},!1),{draggedContent:a}=e.inputState,s=r&&a&&fet(e,t)?{from:a.from,to:a.to}:null,o={from:i,insert:n},l=e.state.changes(s?[s,o]:o);e.focus(),e.dispatch({changes:l,selection:{anchor:l.mapPos(i,-1),head:l.mapPos(i,1)},userEvent:s?"move.drop":"input.drop"}),e.inputState.draggedContent=null}Cd.drop=(e,t)=>{if(!t.dataTransfer)return!1;if(e.state.readOnly)return!0;let n=t.dataTransfer.files;if(n&&n.length){let r=Array(n.length),i=0,a=()=>{++i==n.length&&iJ(e,t,r.filter(s=>s!=null).join(e.state.lineBreak),!1)};for(let s=0;s{/[\x00-\x08\x0e-\x1f]{2}/.test(o.result)||(r[s]=o.result),a()},o.readAsText(n[s])}return!0}else{let r=t.dataTransfer.getData("Text");if(r)return iJ(e,t,r,!0),!0}return!1};Cd.paste=(e,t)=>{if(e.state.readOnly)return!0;e.observer.flush();let n=$he?null:t.clipboardData;return n?(Fhe(e,n.getData("text/plain")||n.getData("text/uri-text")),!0):(met(e),!1)};function Oet(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 Eet(e){let t=[],n=[],r=!1;for(let i of e.selection.ranges)i.empty||(t.push(e.sliceDoc(i.from,i.to)),n.push(i));if(!t.length){let i=-1;for(let{from:a}of e.selection.ranges){let s=e.doc.lineAt(a);s.number>i&&(t.push(s.text),n.push({from:s.from,to:Math.min(e.doc.length,s.to+1)})),i=s.number}r=!0}return{text:t.join(e.lineBreak),ranges:n,linewise:r}}let rL=null;Cd.copy=Cd.cut=(e,t)=>{let{text:n,ranges:r,linewise:i}=Eet(e.state);if(!n&&!i)return!1;rL=i?n:null,t.type=="cut"&&!e.state.readOnly&&e.dispatch({changes:r,scrollIntoView:!0,userEvent:"delete.cut"});let a=$he?null:t.clipboardData;return a?(a.clearData(),a.setData("text/plain",n),!0):(Oet(e,n),!1)};const zhe=Nd.define();function jhe(e,t){let n=[];for(let r of e.facet(xhe)){let i=r(e,t);i&&n.push(i)}return n?e.update({effects:n,annotations:zhe.of(!0)}):null}function Hhe(e){setTimeout(()=>{let t=e.hasFocus;if(t!=e.inputState.notifiedFocused){let n=jhe(e.state,t);n?e.dispatch(n):e.update([])}},10)}Ad.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),Hhe(e)};Ad.blur=e=>{e.observer.clearSelectionRange(),Hhe(e)};Ad.compositionstart=Ad.compositionupdate=e=>{e.inputState.compositionFirstChange==null&&(e.inputState.compositionFirstChange=!0),e.inputState.composing<0&&(e.inputState.composing=0)};Ad.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,wn.chrome&&wn.android?e.observer.flushSoon():e.inputState.compositionPendingChange?Promise.resolve().then(()=>e.observer.flush()):setTimeout(()=>{e.inputState.composing<0&&e.docView.hasComposition&&e.update([])},50)};Ad.contextmenu=e=>{e.inputState.lastContextMenu=Date.now()};Cd.beforeinput=(e,t)=>{var n;let r;if(wn.chrome&&wn.android&&(r=Mhe.find(i=>i.inputType==t.inputType))&&(e.observer.delayAndroidKey(r.key,r.keyCode),r.key=="Backspace"||r.key=="Delete")){let i=((n=window.visualViewport)===null||n===void 0?void 0:n.height)||0;setTimeout(()=>{var a;(((a=window.visualViewport)===null||a===void 0?void 0:a.height)||0)>i+10&&e.hasFocus&&(e.contentDOM.blur(),e.focus())},100)}return!1};const aJ=new Set;function wet(e){aJ.has(e)||(aJ.add(e),e.addEventListener("copy",()=>{}),e.addEventListener("cut",()=>{}))}const sJ=["pre-wrap","normal","pre-line","break-spaces"];class xet{constructor(t){this.lineWrapping=t,this.doc=Nr.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 sJ.indexOf(t)>-1!=this.lineWrapping}mustRefreshForHeights(t){let n=!1;for(let r=0;r-1,l=Math.round(n)!=Math.round(this.lineHeight)||this.lineWrapping!=o;if(this.lineWrapping=o,this.lineHeight=n,this.charWidth=r,this.textHeight=i,this.lineLength=a,l){this.heightSamples={};for(let u=0;u0}set outdated(t){this.flags=(t?2:0)|this.flags&-3}setHeight(t,n){this.height!=n&&(Math.abs(this.height-n)>Q4&&(t.heightChanged=!0),this.height=n)}replace(t,n,r){return Go.of(r)}decomposeLeft(t,n){n.push(this)}decomposeRight(t,n){n.push(this)}applyChanges(t,n,r,i){let a=this,s=r.doc;for(let o=i.length-1;o>=0;o--){let{fromA:l,toA:u,fromB:c,toB:f}=i[o],h=a.lineAt(l,Ui.ByPosNoHeight,r.setDoc(n),0,0),g=h.to>=u?h:a.lineAt(u,Ui.ByPosNoHeight,r,0,0);for(f+=g.to-u,u=g.to;o>0&&h.from<=i[o-1].toA;)l=i[o-1].fromA,c=i[o-1].fromB,o--,la*2){let o=t[n-1];o.break?t.splice(--n,1,o.left,null,o.right):t.splice(--n,1,o.left,o.right),r+=1+o.break,i-=o.size}else if(a>i*2){let o=t[r];o.break?t.splice(r,1,o.left,null,o.right):t.splice(r,1,o.left,o.right),r+=2+o.break,a-=o.size}else break;else if(i=a&&s(this.blockAt(0,r,i,a))}updateHeight(t,n=0,r=!1,i){return i&&i.from<=n&&i.more&&this.setHeight(t,i.heights[i.index++]),this.outdated=!1,this}toString(){return`block(${this.length})`}}class ou extends Vhe{constructor(t,n){super(t,n,null),this.collapsed=0,this.widgetHeight=0,this.breaks=0}blockAt(t,n,r,i){return new wf(i,this.length,r,this.height,this.breaks)}replace(t,n,r){let i=r[0];return r.length==1&&(i instanceof ou||i instanceof zs&&i.flags&4)&&Math.abs(this.length-i.length)<10?(i instanceof zs?i=new ou(i.length,this.height):i.height=this.height,this.outdated||(i.outdated=!1),i):Go.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 zs extends Go{constructor(t){super(t,0)}heightMetrics(t,n){let r=t.doc.lineAt(n).number,i=t.doc.lineAt(n+this.length).number,a=i-r+1,s,o=0;if(t.lineWrapping){let l=Math.min(this.height,t.lineHeight*a);s=l/a,this.length>a+1&&(o=(this.height-l)/(this.length-a-1))}else s=this.height/a;return{firstLine:r,lastLine:i,perLine:s,perChar:o}}blockAt(t,n,r,i){let{firstLine:a,lastLine:s,perLine:o,perChar:l}=this.heightMetrics(n,i);if(n.lineWrapping){let u=i+Math.round(Math.max(0,Math.min(1,(t-r)/this.height))*this.length),c=n.doc.lineAt(u),f=o+c.length*l,h=Math.max(r,t-f/2);return new wf(c.from,c.length,h,f,0)}else{let u=Math.max(0,Math.min(s-a,Math.floor((t-r)/o))),{from:c,length:f}=n.doc.line(a+u);return new wf(c,f,r+o*u,o,0)}}lineAt(t,n,r,i,a){if(n==Ui.ByHeight)return this.blockAt(t,r,i,a);if(n==Ui.ByPosNoHeight){let{from:g,to:b}=r.doc.lineAt(t);return new wf(g,b-g,0,0,0)}let{firstLine:s,perLine:o,perChar:l}=this.heightMetrics(r,a),u=r.doc.lineAt(t),c=o+u.length*l,f=u.number-s,h=i+o*f+l*(u.from-a-f);return new wf(u.from,u.length,Math.max(i,Math.min(h,i+this.height-c)),c,0)}forEachLine(t,n,r,i,a,s){t=Math.max(t,a),n=Math.min(n,a+this.length);let{firstLine:o,perLine:l,perChar:u}=this.heightMetrics(r,a);for(let c=t,f=i;c<=n;){let h=r.doc.lineAt(c);if(c==t){let b=h.number-o;f+=l*b+u*(t-a-b)}let g=l+u*h.length;s(new wf(h.from,h.length,f,g,0)),f+=g,c=h.to+1}}replace(t,n,r){let i=this.length-n;if(i>0){let a=r[r.length-1];a instanceof zs?r[r.length-1]=new zs(a.length+i):r.push(null,new zs(i-1))}if(t>0){let a=r[0];a instanceof zs?r[0]=new zs(t+a.length):r.unshift(new zs(t-1),null)}return Go.of(r)}decomposeLeft(t,n){n.push(new zs(t-1),null)}decomposeRight(t,n){n.push(null,new zs(this.length-t-1))}updateHeight(t,n=0,r=!1,i){let a=n+this.length;if(i&&i.from<=n+this.length&&i.more){let s=[],o=Math.max(n,i.from),l=-1;for(i.from>n&&s.push(new zs(i.from-n-1).updateHeight(t,n));o<=a&&i.more;){let c=t.doc.lineAt(o).length;s.length&&s.push(null);let f=i.heights[i.index++];l==-1?l=f:Math.abs(f-l)>=Q4&&(l=-2);let h=new ou(c,f);h.outdated=!1,s.push(h),o+=c+1}o<=a&&s.push(null,new zs(a-o).updateHeight(t,o));let u=Go.of(s);return(l<0||Math.abs(u.height-this.height)>=Q4||Math.abs(l-this.heightMetrics(t,n).perLine)>=Q4)&&(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 ket extends Go{constructor(t,n,r){super(t.length+n+r.length,t.height+r.height,n|(t.outdated||r.outdated?2:0)),this.left=t,this.right=r,this.size=t.size+r.size}get break(){return this.flags&1}blockAt(t,n,r,i){let a=r+this.left.height;return to))return u;let c=n==Ui.ByPosNoHeight?Ui.ByPosNoHeight:Ui.ByPos;return l?u.join(this.right.lineAt(o,c,r,s,o)):this.left.lineAt(o,c,r,i,a).join(u)}forEachLine(t,n,r,i,a,s){let o=i+this.left.height,l=a+this.left.length+this.break;if(this.break)t=l&&this.right.forEachLine(t,n,r,o,l,s);else{let u=this.lineAt(l,Ui.ByPos,r,i,a);t=t&&u.from<=n&&s(u),n>u.to&&this.right.forEachLine(u.to+1,n,r,o,l,s)}}replace(t,n,r){let i=this.left.length+this.break;if(nthis.left.length)return this.balanced(this.left,this.right.replace(t-i,n-i,r));let a=[];t>0&&this.decomposeLeft(t,a);let s=a.length;for(let o of r)a.push(o);if(t>0&&oJ(a,s-1),n=r&&n.push(null)),t>r&&this.right.decomposeLeft(t-r,n)}decomposeRight(t,n){let r=this.left.length,i=r+this.break;if(t>=i)return this.right.decomposeRight(t-i,n);t2*n.size||n.size>2*t.size?Go.of(this.break?[t,null,n]:[t,n]):(this.left=t,this.right=n,this.height=t.height+n.height,this.outdated=t.outdated||n.outdated,this.size=t.size+n.size,this.length=t.length+this.break+n.length,this)}updateHeight(t,n=0,r=!1,i){let{left:a,right:s}=this,o=n+a.length+this.break,l=null;return i&&i.from<=n+a.length&&i.more?l=a=a.updateHeight(t,n,r,i):a.updateHeight(t,n,r),i&&i.from<=o+s.length&&i.more?l=s=s.updateHeight(t,o,r,i):s.updateHeight(t,o,r),l?this.balanced(a,s):(this.height=this.left.height+this.right.height,this.outdated=!1,this)}toString(){return this.left+(this.break?" ":"-")+this.right}}function oJ(e,t){let n,r;e[t]==null&&(n=e[t-1])instanceof zs&&(r=e[t+1])instanceof zs&&e.splice(t-1,3,new zs(n.length+1+r.length))}const Cet=5;class CU{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 ou?i.length+=r-this.pos:(r>this.pos||!this.isCovered)&&this.nodes.push(new ou(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=Cet)&&this.addLineDeco(i,a,s)}else n>t&&this.span(t,n);this.lineEnd>-1&&this.lineEnd-1)return;let{from:t,to:n}=this.oracle.doc.lineAt(this.pos);this.lineStart=t,this.lineEnd=n,this.writtenTot&&this.nodes.push(new ou(this.pos-t,-1)),this.writtenTo=this.pos}blankContent(t,n){let r=new zs(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 ou)return t;let n=new ou(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 ou)&&!this.isCovered?this.nodes.push(new ou(0,-1)):(this.writtenToc.clientHeight||c.scrollWidth>c.clientWidth)&&f.overflow!="visible"){let h=c.getBoundingClientRect();a=Math.max(a,h.left),s=Math.min(s,h.right),o=Math.max(o,h.top),l=u==e.parentNode?h.bottom:Math.min(l,h.bottom)}u=f.position=="absolute"||f.position=="fixed"?c.offsetParent:c.parentNode}else if(u.nodeType==11)u=u.host;else break;return{left:a-n.left,right:Math.max(a,s)-n.left,top:o-(n.top+t),bottom:Math.max(o,l)-(n.top+t)}}function Iet(e,t){let n=e.getBoundingClientRect();return{left:0,right:n.right-n.left,top:t,bottom:n.bottom-(n.top+t)}}class oP{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 xet(n),this.stateDeco=t.facet(ox).filter(r=>typeof r!="function"),this.heightMap=Go.empty().applyChanges(this.stateDeco,Nr.empty,this.heightOracle.setDoc(t.doc),[new kc(0,0,0,t.doc.length)]),this.viewport=this.getViewport(0,null),this.updateViewportLines(),this.updateForViewport(),this.lineGaps=this.ensureLineGaps([]),this.lineGapDeco=An.set(this.lineGaps.map(r=>r.draw(this,!1))),this.computeVisibleRanges()}updateForViewport(){let t=[this.viewport],{main:n}=this.state.selection;for(let r=0;r<=1;r++){let i=r?n.head:n.anchor;if(!t.some(({from:a,to:s})=>i>=a&&i<=s)){let{from:a,to:s}=this.lineBlockAt(i);t.push(new bA(a,s))}}this.viewports=t.sort((r,i)=>r.from-i.from),this.scaler=this.heightMap.height<=7e6?uJ:new Met(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:f2(t,this.scaler))})}update(t,n=null){this.state=t.state;let r=this.stateDeco;this.stateDeco=this.state.facet(ox).filter(c=>typeof c!="function");let i=t.changedRanges,a=kc.extendWithRanges(i,Aet(r,this.stateDeco,t?t.changes:ns.empty(this.state.doc.length))),s=this.heightMap.height,o=this.scrolledToBottom?null:this.scrollAnchorAt(this.scrollTop);this.heightMap=this.heightMap.applyChanges(this.stateDeco,t.startState.doc,this.heightOracle.setDoc(this.state.doc),a),this.heightMap.height!=s&&(t.flags|=2),o?(this.scrollAnchorPos=t.changes.mapPos(o.from,-1),this.scrollAnchorHeight=o.top):(this.scrollAnchorPos=-1,this.scrollAnchorHeight=this.heightMap.height);let l=a.length?this.mapViewport(this.viewport,t.changes):this.viewport;(n&&(n.range.headl.to)||!this.viewportIsAppropriate(l))&&(l=this.getViewport(0,n));let u=!t.changes.empty||t.flags&2||l.from!=this.viewport.from||l.to!=this.viewport.to;this.viewport=l,this.updateForViewport(),u&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(this.mapLineGaps(this.lineGaps,t.changes))),t.flags|=this.computeVisibleRanges(),n&&(this.scrollTarget=n),!this.mustEnforceCursorAssoc&&t.selectionSet&&t.view.lineWrapping&&t.state.selection.main.empty&&t.state.selection.main.assoc&&!t.state.facet(khe)&&(this.mustEnforceCursorAssoc=!0)}measure(t){let n=t.contentDOM,r=window.getComputedStyle(n),i=this.heightOracle,a=r.whiteSpace;this.defaultTextDirection=r.direction=="rtl"?Hi.RTL:Hi.LTR;let s=this.heightOracle.mustRefreshForWrapping(a),o=n.getBoundingClientRect(),l=s||this.mustMeasureContent||this.contentDOMHeight!=o.height;this.contentDOMHeight=o.height,this.mustMeasureContent=!1;let u=0,c=0;if(o.width&&o.height){let{scaleX:C,scaleY:I}=the(n,o);(this.scaleX!=C||this.scaleY!=I)&&(this.scaleX=C,this.scaleY=I,u|=8,s=l=!0)}let f=(parseInt(r.paddingTop)||0)*this.scaleY,h=(parseInt(r.paddingBottom)||0)*this.scaleY;(this.paddingTop!=f||this.paddingBottom!=h)&&(this.paddingTop=f,this.paddingBottom=h,u|=10),this.editorWidth!=t.scrollDOM.clientWidth&&(i.lineWrapping&&(l=!0),this.editorWidth=t.scrollDOM.clientWidth,u|=8);let g=t.scrollDOM.scrollTop*this.scaleY;this.scrollTop!=g&&(this.scrollAnchorHeight=-1,this.scrollTop=g),this.scrolledToBottom=ihe(t.scrollDOM);let b=(this.printing?Iet:Ret)(n,this.paddingTop),S=b.top-this.pixelViewport.top,w=b.bottom-this.pixelViewport.bottom;this.pixelViewport=b;let E=this.pixelViewport.bottom>this.pixelViewport.top&&this.pixelViewport.right>this.pixelViewport.left;if(E!=this.inView&&(this.inView=E,E&&(l=!0)),!this.inView&&!this.scrollTarget)return 0;let x=o.width;if((this.contentDOMWidth!=x||this.editorHeight!=t.scrollDOM.clientHeight)&&(this.contentDOMWidth=o.width,this.editorHeight=t.scrollDOM.clientHeight,u|=8),l){let C=t.docView.measureVisibleLineHeights(this.viewport);if(i.mustRefreshForHeights(C)&&(s=!0),s||i.lineWrapping&&Math.abs(x-this.contentDOMWidth)>i.charWidth){let{lineHeight:I,charWidth:A,textHeight:D}=t.docView.measureTextSize();s=I>0&&i.refresh(a,I,A,D,x/A,C),s&&(t.docView.minWidth=0,u|=8)}S>0&&w>0?c=Math.max(S,w):S<0&&w<0&&(c=Math.min(S,w)),i.heightChanged=!1;for(let I of this.viewports){let A=I.from==this.viewport.from?C:t.docView.measureVisibleLineHeights(I);this.heightMap=(s?Go.empty().applyChanges(this.stateDeco,Nr.empty,this.heightOracle,[new kc(0,0,0,t.state.doc.length)]):this.heightMap).updateHeight(i,0,s,new Tet(I.from,A))}i.heightChanged&&(u|=2)}let k=!this.viewportIsAppropriate(this.viewport,c)||this.scrollTarget&&(this.scrollTarget.range.headthis.viewport.to);return k&&(this.viewport=this.getViewport(c,this.scrollTarget)),this.updateForViewport(),(u&2||k)&&this.updateViewportLines(),(this.lineGaps.length||this.viewport.to-this.viewport.from>4e3)&&this.updateLineGaps(this.ensureLineGaps(s?[]:this.lineGaps,t)),u|=this.computeVisibleRanges(),this.mustEnforceCursorAssoc&&(this.mustEnforceCursorAssoc=!1,t.docView.enforceCursorAssoc()),u}get visibleTop(){return this.scaler.fromDOM(this.pixelViewport.top)}get visibleBottom(){return this.scaler.fromDOM(this.pixelViewport.bottom)}getViewport(t,n){let r=.5-Math.max(-.5,Math.min(.5,t/1e3/2)),i=this.heightMap,a=this.heightOracle,{visibleTop:s,visibleBottom:o}=this,l=new bA(i.lineAt(s-r*1e3,Ui.ByHeight,a,0,0).from,i.lineAt(o+(1-r)*1e3,Ui.ByHeight,a,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),f=i.lineAt(u,Ui.ByPos,a,0,0),h;n.y=="center"?h=(f.top+f.bottom)/2-c/2:n.y=="start"||n.y=="nearest"&&u=o+Math.max(10,Math.min(r,250)))&&i>s-2*1e3&&a>1,s=i<<1;if(this.defaultTextDirection!=Hi.LTR&&!r)return[];let o=[],l=(u,c,f,h)=>{if(c-uu&&ww.from>=f.from&&w.to<=f.to&&Math.abs(w.from-u)w.fromE));if(!S){if(cw.from<=c&&w.to>=c)){let w=n.moveToLineBoundary(vt.cursor(c),!1,!0).head;w>u&&(c=w)}S=new oP(u,c,this.gapSize(f,u,c,h))}o.push(S)};for(let u of this.viewportLines){if(u.lengthu.from&&l(u.from,h,u,c),gn.draw(this,this.heightOracle.lineWrapping))))}computeVisibleRanges(){let t=this.stateDeco;this.lineGaps.length&&(t=t.concat(this.lineGapDeco));let n=[];Ur.spans(t,this.viewport.from,this.viewport.to,{span(i,a){n.push({from:i,to:a})},point(){}},20);let r=n.length!=this.visibleRanges.length||this.visibleRanges.some((i,a)=>i.from!=n[a].from||i.to!=n[a].to);return this.visibleRanges=n,r?4:0}lineBlockAt(t){return t>=this.viewport.from&&t<=this.viewport.to&&this.viewportLines.find(n=>n.from<=t&&n.to>=t)||f2(this.heightMap.lineAt(t,Ui.ByPos,this.heightOracle,0,0),this.scaler)}lineBlockAtHeight(t){return f2(this.heightMap.lineAt(this.scaler.fromDOM(t),Ui.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 f2(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 bA{constructor(t,n){this.from=t,this.to=n}}function Net(e,t,n){let r=[],i=e,a=0;return Ur.spans(n,e,t,{span(){},point(s,o){s>i&&(r.push({from:i,to:s}),a+=s-i),i=o}},20),i=1)return t[t.length-1].to;let r=Math.floor(e*n);for(let i=0;;i++){let{from:a,to:s}=t[i],o=s-a;if(r<=o)return a+r;r-=o}}function vA(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 Pet(e,t){for(let n of e)if(t(n))return n}const uJ={toDOM(e){return e},fromDOM(e){return e},scale:1};class Met{constructor(t,n,r){let i=0,a=0,s=0;this.viewports=r.map(({from:o,to:l})=>{let u=n.lineAt(o,Ui.ByPos,t,0,0).top,c=n.lineAt(l,Ui.ByPos,t,0,0).bottom;return i+=c-u,{from:o,to:l,top:u,bottom:c,domTop:0,domBottom:0}}),this.scale=(7e6-i)/(n.height-i);for(let o of this.viewports)o.domTop=s+(o.top-a)*this.scale,s=o.domBottom=o.domTop+(o.bottom-o.top),a=o.bottom}toDOM(t){for(let n=0,r=0,i=0;;n++){let a=nf2(i,t)):e._content)}const OA=Sn.define({combine:e=>e.join(" ")}),iL=Sn.define({combine:e=>e.indexOf(!0)>-1}),aL=u0.newName(),Whe=u0.newName(),Qhe=u0.newName(),qhe={"&light":"."+Whe,"&dark":"."+Qhe};function sL(e,t,n){return new u0(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 Let=sL("."+aL,{"&":{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"}},qhe),h2="￿";class $et{constructor(t,n){this.points=t,this.text="",this.lineSeparator=n.facet(Vr.lineSeparator)}append(t){this.text+=t}lineBreak(){this.text+=h2}readRange(t,n){if(!t)return this;let r=t.parentNode;for(let i=t;;){this.findPointBefore(r,i);let a=this.text.length;this.readNode(i);let s=i.nextSibling;if(s==n)break;let o=zi.get(i),l=zi.get(s);(o&&l?o.breakAfter:(o?o.breakAfter:cJ(i))||cJ(s)&&(i.nodeName!="BR"||i.cmIgnore)&&this.text.length>a)&&this.lineBreak(),i=s}return this.findPointBefore(r,n),this}readTextNode(t){let n=t.nodeValue;for(let r of this.points)r.node==t&&(r.pos=this.text.length+Math.min(r.offset,n.length));for(let r=0,i=this.lineSeparator?null:/\r\n?|\n/g;;){let a=-1,s=1,o;if(this.lineSeparator?(a=n.indexOf(this.lineSeparator,r),s=this.lineSeparator.length):(o=i.exec(n))&&(a=o.index,s=o[0].length),this.append(n.slice(r,a<0?n.length:a)),a<0)break;if(this.lineBreak(),s>1)for(let l of this.points)l.node==t&&l.pos>this.text.length&&(l.pos-=s-1);r=a+s}}readNode(t){if(t.cmIgnore)return;let n=zi.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+(Fet(t,r.node,r.offset)?n:0))}}function Fet(e,t,n){for(;;){if(!t||n-1)this.newSel=null;else if(n>-1&&(this.bounds=t.docView.domBoundsAround(n,r,0))){let o=a||s?[]:jet(t),l=new $et(o,t.state);l.readRange(this.bounds.startDOM,this.bounds.endDOM),this.text=l.text,this.newSel=Het(o,this.bounds.from)}else{let o=t.observer.selectionRange,l=a&&a.node==o.focusNode&&a.offset==o.focusOffset||!VM(t.contentDOM,o.focusNode)?t.state.selection.main.head:t.docView.posFromDOM(o.focusNode,o.focusOffset),u=s&&s.node==o.anchorNode&&s.offset==o.anchorOffset||!VM(t.contentDOM,o.anchorNode)?t.state.selection.main.anchor:t.docView.posFromDOM(o.anchorNode,o.anchorOffset),c=t.viewport;if(wn.ios&&t.state.selection.main.empty&&l!=u&&(c.from>0||c.toDate.now()-100?e.inputState.lastKeyCode:-1;if(t.bounds){let{from:s,to:o}=t.bounds,l=i.from,u=null;(a===8||wn.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))}:(wn.mac||wn.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=vt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Nr.of([" "])}):wn.chrome&&n&&n.from==n.to&&n.from==i.head&&n.insert.toString()==` - `&&e.lineWrapping&&(r&&(r=vt.single(r.main.anchor-1,r.main.head-1)),n={from:i.from,to:i.to,insert:Nr.of([" "])}),n){if(wn.ios&&e.inputState.flushIOSKey()||wn.android&&(n.from==i.from&&n.to==i.to&&n.insert.length==1&&n.insert.lines==2&&hv(e.contentDOM,"Enter",13)||(n.from==i.from-1&&n.to==i.to&&n.insert.length==0||a==8&&n.insert.lengthi.head)&&hv(e.contentDOM,"Backspace",8)||n.from==i.from&&n.to==i.to+1&&n.insert.length==0&&hv(e.contentDOM,"Delete",46)))return!0;let s=n.insert.toString();e.inputState.composing>=0&&e.inputState.composing++;let o,l=()=>o||(o=Uet(e,n,r));return e.state.facet(whe).some(u=>u(e,n.from,n.to,s,l))||e.dispatch(l()),!0}else if(r&&!r.main.eq(i)){let s=!1,o="select";return e.inputState.lastSelectionTime>Date.now()-50&&(e.inputState.lastSelectionOrigin=="select"&&(s=!0),o=e.inputState.lastSelectionOrigin),e.dispatch({selection:r,scrollIntoView:s,userEvent:o}),!0}else return!1}function Uet(e,t,n){let r,i=e.state,a=i.selection.main;if(t.from>=a.from&&t.to<=a.to&&t.to-t.from>=(a.to-a.from)/3&&(!n||n.main.empty&&n.main.from==t.from+t.insert.length)&&e.inputState.composing<0){let o=a.fromt.to?i.sliceDoc(t.to,a.to):"";r=i.replaceSelection(e.state.toText(o+t.insert.sliceString(0,void 0,e.state.lineBreak)+l))}else{let o=i.changes(t),l=n&&n.main.to<=o.newLength?n.main:void 0;if(i.selection.ranges.length>1&&e.inputState.composing>=0&&t.to<=a.to&&t.to>=a.to-10){let u=e.state.sliceDoc(t.from,t.to),c,f=n&&Dhe(e,n.main.head);if(f){let b=t.insert.length-(t.to-t.from);c={from:f.from,to:f.to-b}}else c=e.state.doc.lineAt(a.head);let h=a.to-t.to,g=a.to-a.from;r=i.changeByRange(b=>{if(b.from==a.from&&b.to==a.to)return{changes:o,range:l||b.map(o)};let S=b.to-h,w=S-u.length;if(b.to-b.from!=g||e.state.sliceDoc(w,S)!=u||b.to>=c.from&&b.from<=c.to)return{range:b};let E=i.changes({from:w,to:S,insert:t.insert}),x=b.to-a.to;return{changes:E,range:l?vt.range(Math.max(0,l.anchor+x),Math.max(0,l.head+x)):b.map(E)}})}else r={changes:o,selection:l&&i.selection.replaceRange(l)}}let s="input.type";return(e.composing||e.inputState.compositionPendingChange&&e.inputState.compositionEndedAt>Date.now()-50)&&(e.inputState.compositionPendingChange=!1,s+=".compose",e.inputState.compositionFirstChange&&(s+=".start",e.inputState.compositionFirstChange=!1)),i.update(r,{userEvent:s,scrollIntoView:!0})}function zet(e,t,n,r){let i=Math.min(e.length,t.length),a=0;for(;a0&&o>0&&e.charCodeAt(s-1)==t.charCodeAt(o-1);)s--,o--;if(r=="end"){let l=Math.max(0,a-Math.min(s,o));n-=s+l-a}if(s=s?a-n:0;a-=l,o=a+(o-s),s=a}else if(o=o?a-n:0;a-=l,s=a+(s-o),o=a}return{from:a,toA:s,toB:o}}function jet(e){let t=[];if(e.root.activeElement!=e.contentDOM)return t;let{anchorNode:n,anchorOffset:r,focusNode:i,focusOffset:a}=e.observer.selectionRange;return n&&(t.push(new dJ(n,r)),(i!=n||a!=r)&&t.push(new dJ(i,a))),t}function Het(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?vt.single(n+t,r+t):null}const Vet={childList:!0,characterData:!0,subtree:!0,attributes:!0,characterDataOldValue:!0},lP=wn.ie&&wn.ie_version<=11;class Wet{constructor(t){this.view=t,this.active=!1,this.selectionRange=new kJe,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);(wn.ie&&wn.ie_version<=11||wn.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()}),lP&&(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(xI)?r.root.activeElement!=this.dom:!V4(r.dom,i))return;let a=i.anchorNode&&r.docView.nearest(i.anchorNode);if(a&&a.ignoreEvent(t)){n||(this.selectionChanged=!1);return}(wn.ie&&wn.ie_version<=11||wn.android&&wn.chrome)&&!r.state.selection.main.empty&&i.focusNode&&q2(i.focusNode,i.focusOffset,i.anchorNode,i.anchorOffset)?this.flushSoon():this.flush(!1)}readSelectionRange(){let{view:t}=this,n=wn.safari&&t.root.nodeType==11&&EJe(this.dom.ownerDocument)==this.dom&&Qet(this.view)||I3(t.root);if(!n||this.selectionRange.eq(n))return!1;let r=V4(this.dom,n);return r&&!this.selectionChanged&&t.inputState.lastFocusTime>Date.now()-200&&t.inputState.lastTouchTime{let a=this.delayedAndroidKey;a&&(this.clearDelayedAndroidKey(),this.view.inputState.lastKeyCode=a.keyCode,this.view.inputState.lastKeyTime=Date.now(),!this.flush()&&a.force&&hv(this.dom,a.key,a.keyCode))};this.flushingAndroidKey=this.view.win.requestAnimationFrame(i)}(!this.delayedAndroidKey||t=="Enter")&&(this.delayedAndroidKey={key:t,keyCode:n,force:this.lastChange{this.delayedFlush=-1,this.flush()}))}forceFlush(){this.delayedFlush>=0&&(this.view.win.cancelAnimationFrame(this.delayedFlush),this.delayedFlush=-1),this.flush()}pendingRecords(){for(let t of this.observer.takeRecords())this.queue.push(t);return this.queue}processRecords(){let t=this.pendingRecords();t.length&&(this.queue=[]);let n=-1,r=-1,i=!1;for(let a of t){let s=this.readMutation(a);s&&(s.typeOver&&(i=!0),n==-1?{from:n,to:r}=s:(n=Math.min(s.from,n),r=Math.max(s.to,r)))}return{from:n,to:r,typeOver:i}}readChange(){let{from:t,to:n,typeOver:r}=this.processRecords(),i=this.selectionChanged&&V4(this.dom,this.selectionRange);if(t<0&&!i)return null;t>-1&&(this.lastChange=Date.now()),this.view.inputState.lastFocusTime=0,this.selectionChanged=!1;let a=new Bet(this.view,t,n,r);return this.view.docView.domChanged={newSel:a.newSel?a.newSel.main:null},a}flush(t=!0){if(this.delayedFlush>=0||this.delayedAndroidKey)return!1;t&&this.readSelectionRange();let n=this.readChange();if(!n)return this.view.requestMeasure(),!1;let r=this.view.state,i=Ghe(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=fJ(n,t.previousSibling||t.target.previousSibling,-1),i=fJ(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 fJ(e,t,n){for(;t;){let r=zi.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 Qet(e){let t=null;function n(l){l.preventDefault(),l.stopImmediatePropagation(),t=l.getTargetRanges()[0]}if(e.contentDOM.addEventListener("beforeinput",n,!0),e.dom.ownerDocument.execCommand("indent"),e.contentDOM.removeEventListener("beforeinput",n,!0),!t)return null;let r=t.startContainer,i=t.startOffset,a=t.endContainer,s=t.endOffset,o=e.docView.domAtPos(e.state.selection.main.anchor);return q2(o.node,o.offset,a,s)&&([r,i,a,s]=[a,s,r,i]),{anchorNode:r,anchorOffset:i,focusNode:a,focusOffset:s}}class dn{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||CJe(t.parent)||document,this.viewState=new lJ(t.state||Vr.create(t)),t.scrollTo&&t.scrollTo.is(pA)&&(this.viewState.scrollTarget=t.scrollTo.value.clip(this.viewState.state)),this.plugins=this.state.facet(c2).map(r=>new iP(r));for(let r of this.plugins)r.update(this);this.observer=new Wet(this),this.inputState=new aet(this),this.inputState.ensureHandlers(this.plugins),this.docView=new VK(this),this.mountStyles(),this.updateAttrs(),this.updateState=0,this.requestMeasure()}dispatch(...t){let n=t.length==1&&t[0]instanceof ls?t:t.length==1&&Array.isArray(t[0])?t[0]:[this.state.update(...t)];this.dispatchTransactions(n,this)}update(t){if(this.updateState!=0)throw new Error("Calls to EditorView.update are not allowed while an update is in progress");let n=!1,r=!1,i,a=this.state;for(let h of t){if(h.startState!=a)throw new RangeError("Trying to update state with a transaction that doesn't start from the previous state.");a=h.state}if(this.destroyed){this.viewState.state=a;return}let s=this.hasFocus,o=0,l=null;t.some(h=>h.annotation(zhe))?(this.inputState.notifiedFocused=s,o=1):s!=this.inputState.notifiedFocused&&(this.inputState.notifiedFocused=s,l=jhe(a,s),l||(o=1));let u=this.observer.delayedAndroidKey,c=null;if(u?(this.observer.clearDelayedAndroidKey(),c=this.observer.readChange(),(c&&!this.state.doc.eq(a.doc)||!this.state.selection.eq(a.selection))&&(c=null)):this.observer.clear(),a.facet(Vr.phrases)!=this.state.facet(Vr.phrases))return this.setState(a);i=D3.create(this,a,t),i.flags|=o;let f=this.viewState.scrollTarget;try{this.updateState=2;for(let h of t){if(f&&(f=f.map(h.changes)),h.scrollIntoView){let{main:g}=h.state.selection;f=new pv(g.empty?g:vt.cursor(g.head,g.head>g.anchor?-1:1))}for(let g of h.effects)g.is(pA)&&(f=g.value.clip(this.state))}this.viewState.update(i,f),this.bidiCache=N3.update(this.bidiCache,i.changes),i.empty||(this.updatePlugins(i),this.inputState.update(i)),n=this.docView.update(i),this.state.facet(d2)!=this.styleModules&&this.mountStyles(),r=this.updateAttrs(),this.showAnnouncements(t),this.docView.updateSelection(n,t.some(h=>h.isUserEvent("select.pointer")))}finally{this.updateState=0}if(i.startState.facet(OA)!=i.state.facet(OA)&&(this.viewState.mustMeasureContent=!0),(n||r||f||this.viewState.mustEnforceCursorAssoc||this.viewState.mustMeasureContent)&&this.requestMeasure(),!i.empty)for(let h of this.state.facet(eL))try{h(i)}catch(g){Tc(this.state,g,"update listener")}(l||c)&&Promise.resolve().then(()=>{l&&this.state==l.startState&&this.dispatch(l),c&&!Ghe(this,c)&&u.force&&hv(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 lJ(t),this.plugins=t.facet(c2).map(r=>new iP(r)),this.pluginMap.clear();for(let r of this.plugins)r.update(this);this.docView.destroy(),this.docView=new VK(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(c2),r=t.state.facet(c2);if(n!=r){let i=[];for(let a of r){let s=n.indexOf(a);if(s<0)i.push(new iP(a));else{let o=this.plugins[s];o.mustUpdate=t,i.push(o)}}for(let a of this.plugins)a.mustUpdate!=t&&a.destroy(this);this.plugins=i,this.pluginMap.clear()}else for(let i of this.plugins)i.mustUpdate=t;for(let i=0;i-1&&this.win.cancelAnimationFrame(this.measureScheduled),this.observer.delayedAndroidKey){this.measureScheduled=-1,this.requestMeasure();return}this.measureScheduled=0,t&&this.observer.forceFlush();let n=null,r=this.scrollDOM,i=r.scrollTop*this.scaleY,{scrollAnchorPos:a,scrollAnchorHeight:s}=this.viewState;Math.abs(i-this.viewState.scrollTop)>1&&(s=-1),this.viewState.scrollAnchorHeight=-1;try{for(let o=0;;o++){if(s<0)if(ihe(r))a=-1,s=this.viewState.heightMap.height;else{let g=this.viewState.scrollAnchorAt(i);a=g.from,s=g.top}this.updateState=1;let l=this.viewState.measure(this);if(!l&&!this.measureRequests.length&&this.viewState.scrollTarget==null)break;if(o>5){console.warn(this.measureRequests.length?"Measure loop restarted more than 5 times":"Viewport failed to stabilize");break}let u=[];l&4||([this.measureRequests,u]=[u,this.measureRequests]);let c=u.map(g=>{try{return g.read(this)}catch(b){return Tc(this.state,b),hJ}}),f=D3.create(this,this.state,[]),h=!1;f.flags|=l,n?n.flags|=l:n=f,this.updateState=2,f.empty||(this.updatePlugins(f),this.inputState.update(f),this.updateAttrs(),h=this.docView.update(f));for(let g=0;g1||b<-1){i=i+b,r.scrollTop=i/this.scaleY,s=-1;continue}}break}}}finally{this.updateState=0,this.measureScheduled=-1}if(n&&!n.empty)for(let o of this.state.facet(eL))o(n)}get themeClasses(){return aL+" "+(this.state.facet(iL)?Qhe:Whe)+" "+this.state.facet(OA)}updateAttrs(){let t=pJ(this,Che,{class:"cm-editor"+(this.hasFocus?" cm-focused ":" ")+this.themeClasses}),n={spellcheck:"false",autocorrect:"off",autocapitalize:"off",translate:"no",contenteditable:this.state.facet(xI)?"true":"false",class:"cm-content",style:`${wn.tabSize}: ${this.state.tabSize}`,role:"textbox","aria-multiline":"true"};this.state.readOnly&&(n["aria-readonly"]="true"),pJ(this,TU,n);let r=this.observer.ignore(()=>{let i=YM(this.contentDOM,this.contentAttrs,n),a=YM(this.dom,this.editorAttrs,t);return i||a});return this.editorAttrs=t,this.contentAttrs=n,r}showAnnouncements(t){let n=!0;for(let r of t)for(let i of r.effects)if(i.is(dn.announce)){n&&(this.announceDOM.textContent=""),n=!1;let a=this.announceDOM.appendChild(document.createElement("div"));a.textContent=i.value}}mountStyles(){this.styleModules=this.state.facet(d2);let t=this.state.facet(dn.cspNonce);u0.mount(this.root,this.styleModules.concat(Let).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 sP(this,t,ZK(this,t,n,r))}moveByGroup(t,n){return sP(this,t,ZK(this,t,n,r=>ret(this,t.head,r)))}visualLineSide(t,n){let r=this.bidiSpans(t),i=this.textDirectionAt(t.from),a=r[n?r.length-1:0];return vt.cursor(a.side(n,i)+t.from,a.forward(!n,i)?1:-1)}moveToLineBoundary(t,n,r=!0){return net(this,t,n,r)}moveVertically(t,n,r){return sP(this,t,iet(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(),Phe(this,t,n)}coordsAtPos(t,n=1){this.readMeasured();let r=this.docView.coordsAt(t,n);if(!r||r.left==r.right)return r;let i=this.state.doc.lineAt(t),a=this.bidiSpans(i),s=a[Lm.find(a,t-i.from,-1,n)];return SU(r,s.dir==Hi.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(The)||tthis.viewport.to?this.textDirection:(this.readMeasured(),this.docView.textDirectionAt(t))}get lineWrapping(){return this.viewState.heightOracle.lineWrapping}bidiSpans(t){if(t.length>qet)return bhe(t.length);let n=this.textDirectionAt(t.from),r;for(let a of this.bidiCache)if(a.from==t.from&&a.dir==n&&(a.fresh||ghe(a.isolates,r=HK(this,t))))return a.order;r||(r=HK(this,t));let i=UJe(t.text,n,r);return this.bidiCache.push(new N3(t.from,t.to,n,r,!0,i)),i}get hasFocus(){var t;return(this.dom.ownerDocument.hasFocus()||wn.safari&&((t=this.inputState)===null||t===void 0?void 0:t.lastContextMenu)>Date.now()-3e4)&&this.root.activeElement==this.contentDOM}focus(){this.observer.ignore(()=>{nhe(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 pA.of(new pv(typeof t=="number"?vt.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 pA.of(new pv(vt.cursor(r.from),"start","start",r.top-t,n,!0))}static domEventHandlers(t){return fa.define(()=>({}),{eventHandlers:t})}static domEventObservers(t){return fa.define(()=>({}),{eventObservers:t})}static theme(t,n){let r=u0.newName(),i=[OA.of(r),d2.of(sL(`.${r}`,t))];return n&&n.dark&&i.push(iL.of(!0)),i}static baseTheme(t){return R0.lowest(d2.of(sL("."+aL,t,qhe)))}static findFromDOM(t){var n;let r=t.querySelector(".cm-content"),i=r&&zi.get(r)||zi.get(t);return((n=i==null?void 0:i.rootView)===null||n===void 0?void 0:n.view)||null}}dn.styleModule=d2;dn.inputHandler=whe;dn.focusChangeEffect=xhe;dn.perLineTextDirection=The;dn.exceptionSink=Ehe;dn.updateListener=eL;dn.editable=xI;dn.mouseSelectionStyle=She;dn.dragMovesSelection=Ohe;dn.clickAddsSelectionRange=vhe;dn.decorations=ox;dn.outerDecorations=Ahe;dn.atomicRanges=kU;dn.bidiIsolatedRanges=_he;dn.scrollMargins=Rhe;dn.darkTheme=iL;dn.cspNonce=Sn.define({combine:e=>e.length?e[0]:""});dn.contentAttributes=TU;dn.editorAttributes=Che;dn.lineWrapping=dn.contentAttributes.of({class:"cm-lineWrapping"});dn.announce=hr.define();const qet=4096,hJ={};class N3{constructor(t,n,r,i,a,s){this.from=t,this.to=n,this.dir=r,this.isolates=i,this.fresh=a,this.order=s}static update(t,n){if(n.empty&&!t.some(a=>a.fresh))return t;let r=[],i=t.length?t[t.length-1].dir:Hi.LTR;for(let a=Math.max(0,t.length-10);a=0;i--){let a=r[i],s=typeof a=="function"?a(e):a;s&&GM(s,n)}return n}const Get=wn.mac?"mac":wn.windows?"win":wn.linux?"linux":"key";function Yet(e,t){const n=e.split(/-(?!$)/);let r=n[n.length-1];r=="Space"&&(r=" ");let i,a,s,o;for(let l=0;lr.concat(i),[]))),n}function Xet(e,t,n){return Zhe(Yhe(e.state),t,e,n)}let bm=null;const Ket=4e3;function Jet(e,t=Get){let n=Object.create(null),r=Object.create(null),i=(s,o)=>{let l=r[s];if(l==null)r[s]=o;else if(l!=o)throw new Error("Key binding "+s+" is used both as a regular binding and as a multi-stroke prefix")},a=(s,o,l,u,c)=>{var f,h;let g=n[s]||(n[s]=Object.create(null)),b=o.split(/ (?!$)/).map(E=>Yet(E,t));for(let E=1;E{let C=bm={view:k,prefix:x,scope:s};return setTimeout(()=>{bm==C&&(bm=null)},Ket),!0}]})}let S=b.join(" ");i(S,!1);let w=g[S]||(g[S]={preventDefault:!1,stopPropagation:!1,run:((h=(f=g._any)===null||f===void 0?void 0:f.run)===null||h===void 0?void 0:h.slice())||[]});l&&w.run.push(l),u&&(w.preventDefault=!0),c&&(w.stopPropagation=!0)};for(let s of e){let o=s.scope?s.scope.split(" "):["editor"];if(s.any)for(let u of o){let c=n[u]||(n[u]=Object.create(null));c._any||(c._any={preventDefault:!1,stopPropagation:!1,run:[]});for(let f in c)c[f].run.push(s.any)}let l=s[t]||s.key;if(l)for(let u of o)a(u,l,s.run,s.preventDefault,s.stopPropagation),s.shift&&a(u,"Shift-"+l,s.shift,s.preventDefault,s.stopPropagation)}return n}function Zhe(e,t,n,r){let i=SJe(t),a=Hs(i,0),s=fc(a)==i.length&&i!=" ",o="",l=!1,u=!1,c=!1;bm&&bm.view==n&&bm.scope==r&&(o=bm.prefix+" ",Lhe.indexOf(t.keyCode)<0&&(u=!0,bm=null));let f=new Set,h=w=>{if(w){for(let E of w.run)if(!f.has(E)&&(f.add(E),E(n,t)))return w.stopPropagation&&(c=!0),!0;w.preventDefault&&(w.stopPropagation&&(c=!0),u=!0)}return!1},g=e[r],b,S;return g&&(h(g[o+SA(i,t,!s)])?l=!0:s&&(t.altKey||t.metaKey||t.ctrlKey)&&!(wn.windows&&t.ctrlKey&&t.altKey)&&(b=c0[t.keyCode])&&b!=i?(h(g[o+SA(b,t,!0)])||t.shiftKey&&(S=ix[t.keyCode])!=i&&S!=b&&h(g[o+SA(S,t,!1)]))&&(l=!0):s&&t.shiftKey&&h(g[o+SA(i,t,!0)])&&(l=!0),!l&&h(g._any)&&(l=!0)),u&&(l=!0),l&&c&&t.stopPropagation(),l}class LT{constructor(t,n,r,i,a){this.className=t,this.left=n,this.top=r,this.width=i,this.height=a}draw(){let t=document.createElement("div");return t.className=this.className,this.adjust(t),t}update(t,n){return n.className!=this.className?!1:(this.adjust(t),!0)}adjust(t){t.style.left=this.left+"px",t.style.top=this.top+"px",this.width!=null&&(t.style.width=this.width+"px"),t.style.height=this.height+"px"}eq(t){return this.left==t.left&&this.top==t.top&&this.width==t.width&&this.height==t.height&&this.className==t.className}static forRange(t,n,r){if(r.empty){let i=t.coordsAtPos(r.head,r.assoc||1);if(!i)return[];let a=Xhe(t);return[new LT(n,i.left-a.left,i.top-a.top,null,i.bottom-i.top)]}else return ett(t,n,r)}}function Xhe(e){let t=e.scrollDOM.getBoundingClientRect();return{left:(e.textDirection==Hi.LTR?t.left:t.right-e.scrollDOM.clientWidth*e.scaleX)-e.scrollDOM.scrollLeft*e.scaleX,top:t.top-e.scrollDOM.scrollTop*e.scaleY}}function gJ(e,t,n){let r=vt.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:qo.Text}}function ett(e,t,n){if(n.to<=e.viewport.from||n.from>=e.viewport.to)return[];let r=Math.max(n.from,e.viewport.from),i=Math.min(n.to,e.viewport.to),a=e.textDirection==Hi.LTR,s=e.contentDOM,o=s.getBoundingClientRect(),l=Xhe(e),u=s.querySelector(".cm-line"),c=u&&window.getComputedStyle(u),f=o.left+(c?parseInt(c.paddingLeft)+Math.min(0,parseInt(c.textIndent)):0),h=o.right-(c?parseInt(c.paddingRight):0),g=nL(e,r),b=nL(e,i),S=g.type==qo.Text?g:null,w=b.type==qo.Text?b:null;if(S&&(e.lineWrapping||g.widgetLineBreaks)&&(S=gJ(e,r,S)),w&&(e.lineWrapping||b.widgetLineBreaks)&&(w=gJ(e,i,w)),S&&w&&S.from==w.from)return x(k(n.from,n.to,S));{let I=S?k(n.from,null,S):C(g,!1),A=w?k(null,n.to,w):C(b,!0),D=[];return(S||g).to<(w||b).from-(S&&w?1:0)||g.widgetLineBreaks>1&&I.bottom+e.defaultLineHeight/2V&&Q.from=J)break;z>H&&W(Math.max(te,H),I==null&&te<=V,Math.min(z,J),A==null&&z>=Z,X.dir)}if(H=K.to+1,H>=J)break}return F.length==0&&W(V,I==null,Z,A==null,e.textDirection),{top:B,bottom:L,horizontal:F}}function C(I,A){let D=o.top+(A?I.top:I.bottom);return{top:D,bottom:D,horizontal:[]}}}function ttt(e,t){return e.constructor==t.constructor&&e.eq(t)}class ntt{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(q4)!=t.state.facet(q4)&&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(q4);for(;n!ttt(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 q4=Sn.define();function Khe(e){return[fa.define(t=>new ntt(t,e)),q4.of(e)]}const Jhe=!wn.ios,lx=Sn.define({combine(e){return Jf(e,{cursorBlinkRate:1200,drawRangeCursor:!0},{cursorBlinkRate:(t,n)=>Math.min(t,n),drawRangeCursor:(t,n)=>t||n})}});function rtt(e={}){return[lx.of(e),itt,att,stt,khe.of(!0)]}function epe(e){return e.startState.facet(lx)!=e.state.facet(lx)}const itt=Khe({above:!0,markers(e){let{state:t}=e,n=t.facet(lx),r=[];for(let i of t.selection.ranges){let a=i==t.selection.main;if(i.empty?!a||Jhe:n.drawRangeCursor){let s=a?"cm-cursor cm-cursor-primary":"cm-cursor cm-cursor-secondary",o=i.empty?i:vt.cursor(i.head,i.head>i.anchor?-1:1);for(let l of LT.forRange(e,s,o))r.push(l)}}return r},update(e,t){e.transactions.some(r=>r.selection)&&(t.style.animationName=t.style.animationName=="cm-blink"?"cm-blink2":"cm-blink");let n=epe(e);return n&&bJ(e.state,t),e.docChanged||e.selectionSet||n},mount(e,t){bJ(t.state,e)},class:"cm-cursorLayer"});function bJ(e,t){t.style.animationDuration=e.facet(lx).cursorBlinkRate+"ms"}const att=Khe({above:!1,markers(e){return e.state.selection.ranges.map(t=>t.empty?[]:LT.forRange(e,"cm-selectionBackground",t)).reduce((t,n)=>t.concat(n))},update(e,t){return e.docChanged||e.selectionSet||e.viewportChanged||epe(e)},class:"cm-selectionLayer"}),oL={".cm-line":{"& ::selection":{backgroundColor:"transparent !important"},"&::selection":{backgroundColor:"transparent !important"}}};Jhe&&(oL[".cm-line"].caretColor="transparent !important",oL[".cm-content"]={caretColor:"transparent !important"});const stt=R0.highest(dn.theme(oL)),tpe=hr.define({map(e,t){return e==null?null:t.mapPos(e)}}),p2=Rs.define({create(){return null},update(e,t){return e!=null&&(e=t.changes.mapPos(e)),t.effects.reduce((n,r)=>r.is(tpe)?r.value:n,e)}}),ott=fa.fromClass(class{constructor(e){this.view=e,this.cursor=null,this.measureReq={read:this.readPos.bind(this),write:this.drawCursor.bind(this)}}update(e){var t;let n=e.state.field(p2);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(p2)!=n||e.docChanged||e.geometryChanged)&&this.view.requestMeasure(this.measureReq))}readPos(){let{view:e}=this,t=e.state.field(p2),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(p2)!=e&&this.view.dispatch({effects:tpe.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 ltt(){return[p2,ott]}function yJ(e,t,n,r,i){t.lastIndex=0;for(let a=e.iterRange(n,r),s=n,o;!a.next().done;s+=a.value.length)if(!a.lineBreak)for(;o=t.exec(a.value);)i(s+o.index,o)}function utt(e,t){let n=e.visibleRanges;if(n.length==1&&n[0].from==e.viewport.from&&n[0].to==e.viewport.to)return n;let r=[];for(let{from:i,to:a}of n)i=Math.max(e.state.doc.lineAt(i).from,i-t),a=Math.min(e.state.doc.lineAt(a).to,a+t),r.length&&r[r.length-1].to>=i?r[r.length-1].to=a:r.push({from:i,to:a});return r}class ctt{constructor(t){const{regexp:n,decoration:r,decorate:i,boundary:a,maxLength:s=1e3}=t;if(!n.global)throw new RangeError("The regular expression given to MatchDecorator should have its 'g' flag set");if(this.regexp=n,i)this.addMatch=(o,l,u,c)=>i(c,u,u+o[0].length,o,l);else if(typeof r=="function")this.addMatch=(o,l,u,c)=>{let f=r(o,l,u);f&&c(u,u+o[0].length,f)};else if(r)this.addMatch=(o,l,u,c)=>c(u,u+o[0].length,r);else throw new RangeError("Either 'decorate' or 'decoration' should be provided to MatchDecorator");this.boundary=a,this.maxLength=s}createDeco(t){let n=new l0,r=n.add.bind(n);for(let{from:i,to:a}of utt(t,this.maxLength))yJ(t.state.doc,this.regexp,i,a,(s,o)=>this.addMatch(o,t,s,r));return n.finish()}updateDeco(t,n){let r=1e9,i=-1;return t.docChanged&&t.changes.iterChanges((a,s,o,l)=>{l>t.view.viewport.from&&o1e3?this.createDeco(t.view):i>-1?this.updateRange(t.view,n.map(t.changes),r,i):n}updateRange(t,n,r,i){for(let a of t.visibleRanges){let s=Math.max(a.from,r),o=Math.min(a.to,i);if(o>s){let l=t.state.doc.lineAt(s),u=l.tol.from;s--)if(this.boundary.test(l.text[s-1-l.from])){c=s;break}for(;oh.push(E.range(S,w));if(l==u)for(this.regexp.lastIndex=c-l.from;(g=this.regexp.exec(l.text))&&g.indexthis.addMatch(w,t,S,b));n=n.update({filterFrom:c,filterTo:f,filter:(S,w)=>Sf,add:h})}}return n}}const lL=/x/.unicode!=null?"gu":"g",dtt=new RegExp(`[\0-\b ---Ÿ­؜​‎‏\u2028\u2029‭‮⁦⁧⁩\uFEFF-]`,lL),ftt={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 uP=null;function htt(){var e;if(uP==null&&typeof document<"u"&&document.body){let t=document.body.style;uP=((e=t.tabSize)!==null&&e!==void 0?e:t.MozTabSize)!=null}return uP||!1}const G4=Sn.define({combine(e){let t=Jf(e,{render:null,specialChars:dtt,addSpecialChars:null});return(t.replaceTabs=!htt())&&(t.specialChars=new RegExp(" |"+t.specialChars.source,lL)),t.addSpecialChars&&(t.specialChars=new RegExp(t.specialChars.source+"|"+t.addSpecialChars.source,lL)),t}});function ptt(e={}){return[G4.of(e),mtt()]}let vJ=null;function mtt(){return vJ||(vJ=fa.fromClass(class{constructor(e){this.view=e,this.decorations=An.none,this.decorationCache=Object.create(null),this.decorator=this.makeDecorator(e.state.facet(G4)),this.decorations=this.decorator.createDeco(e)}makeDecorator(e){return new ctt({regexp:e.specialChars,decoration:(t,n,r)=>{let{doc:i}=n.state,a=Hs(t[0],0);if(a==9){let s=i.lineAt(r),o=n.state.tabSize,l=kd(s.text,o,r-s.from);return An.replace({widget:new vtt((o-l%o)*this.view.defaultCharacterWidth/this.view.scaleX)})}return this.decorationCache[a]||(this.decorationCache[a]=An.replace({widget:new ytt(e,a)}))},boundary:e.replaceTabs?void 0:/[^]/})}update(e){let t=e.state.facet(G4);e.startState.facet(G4)!=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 gtt="•";function btt(e){return e>=32?gtt:e==10?"␤":String.fromCharCode(9216+e)}class ytt extends Pd{constructor(t,n){super(),this.options=t,this.code=n}eq(t){return t.code==this.code}toDOM(t){let n=btt(this.code),r=t.state.phrase("Control character")+" "+(ftt[this.code]||"0x"+this.code.toString(16)),i=this.options.render&&this.options.render(this.code,r,n);if(i)return i;let a=document.createElement("span");return a.textContent=n,a.title=r,a.setAttribute("aria-label",r),a.className="cm-specialChar",a}ignoreEvent(){return!1}}class vtt extends Pd{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 Ott(){return Ett}const Stt=An.line({class:"cm-activeLine"}),Ett=fa.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.docChanged||e.selectionSet)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=-1,n=[];for(let r of e.state.selection.ranges){let i=e.lineBlockAt(r.head);i.from>t&&(n.push(Stt.range(i.from)),t=i.from)}return An.set(n)}},{decorations:e=>e.decorations}),uL=2e3;function wtt(e,t,n){let r=Math.min(t.line,n.line),i=Math.max(t.line,n.line),a=[];if(t.off>uL||n.off>uL||t.col<0||n.col<0){let s=Math.min(t.off,n.off),o=Math.max(t.off,n.off);for(let l=r;l<=i;l++){let u=e.doc.line(l);u.length<=o&&a.push(vt.range(u.from+s,u.to+o))}}else{let s=Math.min(t.col,n.col),o=Math.max(t.col,n.col);for(let l=r;l<=i;l++){let u=e.doc.line(l),c=zM(u.text,s,e.tabSize,!0);if(c<0)a.push(vt.cursor(u.to));else{let f=zM(u.text,o,e.tabSize);a.push(vt.range(u.from+c,u.from+f))}}}return a}function xtt(e,t){let n=e.coordsAtPos(e.viewport.from);return n?Math.round(Math.abs((n.left-t)/e.defaultCharacterWidth)):-1}function OJ(e,t){let n=e.posAtCoords({x:t.clientX,y:t.clientY},!1),r=e.state.doc.lineAt(n),i=n-r.from,a=i>uL?-1:i==r.length?xtt(e,t.clientX):kd(r.text,e.state.tabSize,n-r.from);return{line:r.number,col:a,off:i}}function Ttt(e,t){let n=OJ(e,t),r=e.state.selection;return n?{update(i){if(i.docChanged){let a=i.changes.mapPos(i.startState.doc.line(n.line).from),s=i.state.doc.lineAt(a);n={line:s.number,col:n.col,off:Math.min(n.off,s.length)},r=r.map(i.changes)}},get(i,a,s){let o=OJ(e,i);if(!o)return r;let l=wtt(e.state,n,o);return l.length?s?vt.create(l.concat(r.ranges)):vt.create(l):r}}:null}function ktt(e){let t=(e==null?void 0:e.eventFilter)||(n=>n.altKey&&n.button==0);return dn.mouseSelectionStyle.of((n,r)=>t(r)?Ttt(n,r):null)}const Ctt={Alt:[18,e=>!!e.altKey],Control:[17,e=>!!e.ctrlKey],Shift:[16,e=>!!e.shiftKey],Meta:[91,e=>!!e.metaKey]},Att={style:"cursor: crosshair"};function _tt(e={}){let[t,n]=Ctt[e.key||"Alt"],r=fa.fromClass(class{constructor(i){this.view=i,this.isDown=!1}set(i){this.isDown!=i&&(this.isDown=i,this.view.update([]))}},{eventObservers:{keydown(i){this.set(i.keyCode==t||n(i))},keyup(i){(i.keyCode==t||!n(i))&&this.set(!1)},mousemove(i){this.set(n(i))}}});return[r,dn.contentAttributes.of(i=>{var a;return!((a=i.plugin(r))===null||a===void 0)&&a.isDown?Att:null})]}const LE="-10000px";class npe{constructor(t,n,r,i){this.facet=n,this.createTooltipView=r,this.removeTooltipView=i,this.input=t.state.facet(n),this.tooltips=this.input.filter(a=>a),this.tooltipViews=this.tooltips.map(r)}update(t,n){var r;let i=t.state.facet(this.facet),a=i.filter(l=>l);if(i===this.input){for(let l of this.tooltipViews)l.update&&l.update(t);return!1}let s=[],o=n?[]:null;for(let l=0;ln[u]=l),n.length=o.length),this.input=i,this.tooltips=a,this.tooltipViews=s,!0}}function Rtt(e){let{win:t}=e;return{top:0,left:0,bottom:t.innerHeight,right:t.innerWidth}}const cP=Sn.define({combine:e=>{var t,n,r;return{position:wn.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)||Rtt}}}),SJ=new WeakMap,AU=fa.fromClass(class{constructor(e){this.view=e,this.above=[],this.inView=!0,this.madeAbsolute=!1,this.lastTransaction=0,this.measureTimeout=-1;let t=e.state.facet(cP);this.position=t.position,this.parent=t.parent,this.classes=e.themeClasses,this.createContainer(),this.measureReq={read:this.readMeasure.bind(this),write:this.writeMeasure.bind(this),key:this},this.resizeObserver=typeof ResizeObserver=="function"?new ResizeObserver(()=>this.measureSoon()):null,this.manager=new npe(e,_U,n=>this.createTooltip(n),n=>{this.resizeObserver&&this.resizeObserver.unobserve(n.dom),n.dom.remove()}),this.above=this.manager.tooltips.map(n=>!!n.above),this.intersectionObserver=typeof IntersectionObserver=="function"?new IntersectionObserver(n=>{Date.now()>this.lastTransaction-50&&n.length>0&&n[n.length-1].intersectionRatio<1&&this.measureSoon()},{threshold:[1]}):null,this.observeIntersection(),e.win.addEventListener("resize",this.measureSoon=this.measureSoon.bind(this)),this.maybeMeasure()}createContainer(){this.parent?(this.container=document.createElement("div"),this.container.style.position="relative",this.container.className=this.view.themeClasses,this.parent.appendChild(this.container)):this.container=this.view.dom}observeIntersection(){if(this.intersectionObserver){this.intersectionObserver.disconnect();for(let e of this.manager.tooltipViews)this.intersectionObserver.observe(e.dom)}}measureSoon(){this.measureTimeout<0&&(this.measureTimeout=setTimeout(()=>{this.measureTimeout=-1,this.maybeMeasure()},50))}update(e){e.transactions.length&&(this.lastTransaction=Date.now());let t=this.manager.update(e,this.above);t&&this.observeIntersection();let n=t||e.geometryChanged,r=e.state.facet(cP);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=LE,t.dom.style.left="0px",this.container.appendChild(t.dom),t.mount&&t.mount(this.view),this.resizeObserver&&this.resizeObserver.observe(t.dom),t}destroy(){var e,t,n;this.view.win.removeEventListener("resize",this.measureSoon);for(let r of this.manager.tooltipViews)r.dom.remove(),(e=r.destroy)===null||e===void 0||e.call(r);this.parent&&this.container.remove(),(t=this.resizeObserver)===null||t===void 0||t.disconnect(),(n=this.intersectionObserver)===null||n===void 0||n.disconnect(),clearTimeout(this.measureTimeout)}readMeasure(){let e=this.view.dom.getBoundingClientRect(),t=1,n=1,r=!1;if(this.position=="fixed"&&this.manager.tooltipViews.length){let{dom:i}=this.manager.tooltipViews[0];if(wn.gecko)r=i.offsetParent!=this.container.ownerDocument.body;else if(i.style.top==LE&&i.style.left=="0px"){let a=i.getBoundingClientRect();r=Math.abs(a.top+1e4)>1||Math.abs(a.left)>1}}if(r||this.position=="absolute")if(this.parent){let i=this.parent.getBoundingClientRect();i.width&&i.height&&(t=i.width/this.parent.offsetWidth,n=i.height/this.parent.offsetHeight)}else({scaleX:t,scaleY:n}=this.view.viewState);return{editor:e,parent:this.parent?this.container.getBoundingClientRect():e,pos:this.manager.tooltips.map((i,a)=>{let s=this.manager.tooltipViews[a];return s.getCoords?s.getCoords(i.pos):this.view.coordsAtPos(i.pos)}),size:this.manager.tooltipViews.map(({dom:i})=>i.getBoundingClientRect()),space:this.view.state.facet(cP).tooltipSpace(this.view),scaleX:t,scaleY:n,makeAbsolute:r}}writeMeasure(e){var t;if(e.makeAbsolute){this.madeAbsolute=!0,this.position="absolute";for(let o of this.manager.tooltipViews)o.dom.style.position="absolute"}let{editor:n,space:r,scaleX:i,scaleY:a}=e,s=[];for(let o=0;o=Math.min(n.bottom,r.bottom)||f.rightMath.min(n.right,r.right)+.1){c.style.top=LE;continue}let g=l.arrow?u.dom.querySelector(".cm-tooltip-arrow"):null,b=g?7:0,S=h.right-h.left,w=(t=SJ.get(u))!==null&&t!==void 0?t:h.bottom-h.top,E=u.offset||Dtt,x=this.view.textDirection==Hi.LTR,k=h.width>r.right-r.left?x?r.left:r.right-h.width:x?Math.min(f.left-(g?14:0)+E.x,r.right-S):Math.max(r.left,f.left-S+(g?14:0)-E.x),C=this.above[o];!l.strictSide&&(C?f.top-(h.bottom-h.top)-E.yr.bottom)&&C==r.bottom-f.bottom>f.top-r.top&&(C=this.above[o]=!C);let I=(C?f.top-r.top:r.bottom-f.bottom)-b;if(Ik&&B.topA&&(A=C?B.top-w-2-b:B.bottom+b+2);if(this.position=="absolute"?(c.style.top=(A-e.parent.top)/a+"px",c.style.left=(k-e.parent.left)/i+"px"):(c.style.top=A/a+"px",c.style.left=k/i+"px"),g){let B=f.left+(x?E.x:-E.x)-(k+14-7);g.style.left=B/i+"px"}u.overlap!==!0&&s.push({left:k,top:A,right:D,bottom:A+w}),c.classList.toggle("cm-tooltip-above",C),c.classList.toggle("cm-tooltip-below",!C),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=LE}},{eventObservers:{scroll(){this.maybeMeasure()}}}),Itt=dn.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"}}}),Dtt={x:0,y:0},_U=Sn.define({enables:[AU,Itt]}),P3=Sn.define();class TI{static create(t){return new TI(t)}constructor(t){this.view=t,this.mounted=!1,this.dom=document.createElement("div"),this.dom.classList.add("cm-tooltip-hover"),this.manager=new npe(t,P3,n=>this.createHostedView(n),n=>n.dom.remove())}createHostedView(t){let n=t.create(this.view);return n.dom.classList.add("cm-tooltip-section"),this.dom.appendChild(n.dom),this.mounted&&n.mount&&n.mount(this.view),n}mount(t){for(let n of this.manager.tooltipViews)n.mount&&n.mount(t);this.mounted=!0}positioned(t){for(let n of this.manager.tooltipViews)n.positioned&&n.positioned(t)}update(t){this.manager.update(t)}destroy(){var t;for(let n of this.manager.tooltipViews)(t=n.destroy)===null||t===void 0||t.call(n)}passProp(t){let n;for(let r of this.manager.tooltipViews){let i=r[t];if(i!==void 0){if(n===void 0)n=i;else if(n!==i)return}}return n}get offset(){return this.passProp("offset")}get getCoords(){return this.passProp("getCoords")}get overlap(){return this.passProp("overlap")}get resize(){return this.passProp("resize")}}const Ntt=_U.compute([P3],e=>{let t=e.facet(P3).filter(n=>n);return t.length===0?null:{pos:Math.min(...t.map(n=>n.pos)),end:Math.max(...t.map(n=>{var r;return(r=n.end)!==null&&r!==void 0?r:n.pos})),create:TI.create,above:t[0].above,arrow:t.some(n=>n.arrow)}});class Ptt{constructor(t,n,r,i,a){this.view=t,this.source=n,this.field=r,this.setHover=i,this.hoverTime=a,this.hoverTimeout=-1,this.restartTimeout=-1,this.pending=null,this.lastMove={x:0,y:0,target:t.dom,time:0},this.checkHover=this.checkHover.bind(this),t.dom.addEventListener("mouseleave",this.mouseleave=this.mouseleave.bind(this)),t.dom.addEventListener("mousemove",this.mousemove=this.mousemove.bind(this))}update(){this.pending&&(this.pending=null,clearTimeout(this.restartTimeout),this.restartTimeout=setTimeout(()=>this.startHover(),20))}get active(){return this.view.state.field(this.field)}checkHover(){if(this.hoverTimeout=-1,this.active)return;let t=Date.now()-this.lastMove.time;to.bottom||n.xo.right+t.defaultCharacterWidth)return;let l=t.bidiSpans(t.state.doc.lineAt(i)).find(c=>c.from<=i&&c.to>=i),u=l&&l.dir==Hi.RTL?-1:1;a=n.x{this.pending==o&&(this.pending=null,l&&t.dispatch({effects:this.setHover.of(l)}))},l=>Tc(t.state,l,"hover tooltip"))}else s&&t.dispatch({effects:this.setHover.of(s)})}get tooltip(){let t=this.view.plugin(AU),n=t?t.manager.tooltips.findIndex(r=>r.create==TI.create):-1;return n>-1?t.manager.tooltipViews[n]:null}mousemove(t){var n;this.lastMove={x:t.clientX,y:t.clientY,target:t.target,time:Date.now()},this.hoverTimeout<0&&(this.hoverTimeout=setTimeout(this.checkHover,this.hoverTime));let{active:r,tooltip:i}=this;if(r&&i&&!Mtt(i.dom,t)||this.pending){let{pos:a}=r||this.pending,s=(n=r==null?void 0:r.end)!==null&&n!==void 0?n:a;(a==s?this.view.posAtCoords(this.lastMove)!=a:!Ltt(this.view,a,s,t.clientX,t.clientY))&&(this.view.dispatch({effects:this.setHover.of(null)}),this.pending=null)}}mouseleave(t){clearTimeout(this.hoverTimeout),this.hoverTimeout=-1;let{active:n}=this;if(n){let{tooltip:r}=this;r&&r.dom.contains(t.relatedTarget)?this.watchTooltipLeave(r.dom):this.view.dispatch({effects:this.setHover.of(null)})}}watchTooltipLeave(t){let n=r=>{t.removeEventListener("mouseleave",n),this.active&&!this.view.dom.contains(r.relatedTarget)&&this.view.dispatch({effects:this.setHover.of(null)})};t.addEventListener("mouseleave",n)}destroy(){clearTimeout(this.hoverTimeout),this.view.dom.removeEventListener("mouseleave",this.mouseleave),this.view.dom.removeEventListener("mousemove",this.mousemove)}}const EA=4;function Mtt(e,t){let n=e.getBoundingClientRect();return t.clientX>=n.left-EA&&t.clientX<=n.right+EA&&t.clientY>=n.top-EA&&t.clientY<=n.bottom+EA}function Ltt(e,t,n,r,i,a){let s=e.scrollDOM.getBoundingClientRect(),o=e.documentTop+e.documentPadding.top+e.contentHeight;if(s.left>r||s.righti||Math.min(s.bottom,o)=t&&l<=n}function $tt(e,t={}){let n=hr.define(),r=Rs.define({create(){return null},update(i,a){if(i&&(t.hideOnChange&&(a.docChanged||a.selection)||t.hideOn&&t.hideOn(a,i)))return null;if(i&&a.docChanged){let s=a.changes.mapPos(i.pos,-1,Ws.TrackDel);if(s==null)return null;let o=Object.assign(Object.create(null),i);o.pos=s,i.end!=null&&(o.end=a.changes.mapPos(i.end)),i=o}for(let s of a.effects)s.is(n)&&(i=s.value),s.is(Ftt)&&(i=null);return i},provide:i=>P3.from(i)});return[r,fa.define(i=>new Ptt(i,e,r,n,t.hoverTime||300)),Ntt]}function rpe(e,t){let n=e.plugin(AU);if(!n)return null;let r=n.manager.tooltips.indexOf(t);return r<0?null:n.manager.tooltipViews[r]}const Ftt=hr.define(),EJ=Sn.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 ux(e,t){let n=e.plugin(ipe),r=n?n.specs.indexOf(t):-1;return r>-1?n.panels[r]:null}const ipe=fa.fromClass(class{constructor(e){this.input=e.state.facet(cx),this.specs=this.input.filter(n=>n),this.panels=this.specs.map(n=>n(e));let t=e.state.facet(EJ);this.top=new wA(e,!0,t.topContainer),this.bottom=new wA(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(EJ);this.top.container!=t.topContainer&&(this.top.sync([]),this.top=new wA(e.view,!0,t.topContainer)),this.bottom.container!=t.bottomContainer&&(this.bottom.sync([]),this.bottom=new wA(e.view,!1,t.bottomContainer)),this.top.syncClasses(),this.bottom.syncClasses();let n=e.state.facet(cx);if(n!=this.input){let r=n.filter(l=>l),i=[],a=[],s=[],o=[];for(let l of r){let u=this.specs.indexOf(l),c;u<0?(c=l(e.view),o.push(c)):(c=this.panels[u],c.update&&c.update(e)),i.push(c),(c.top?a:s).push(c)}this.specs=r,this.panels=i,this.top.sync(a),this.bottom.sync(s);for(let l of o)l.dom.classList.add("cm-panel"),l.mount&&l.mount()}else for(let r of this.panels)r.update&&r.update(e)}destroy(){this.top.sync([]),this.bottom.sync([])}},{provide:e=>dn.scrollMargins.of(t=>{let n=t.plugin(e);return n&&{top:n.top.scrollMargin(),bottom:n.bottom.scrollMargin()}})});class wA{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=wJ(t);t=t.nextSibling}else this.dom.insertBefore(n.dom,t);for(;t;)t=wJ(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 wJ(e){let t=e.nextSibling;return e.remove(),t}const cx=Sn.define({enables:ipe});class dp extends b1{compare(t){return this==t||this.constructor==t.constructor&&this.eq(t)}eq(t){return!1}destroy(t){}}dp.prototype.elementClass="";dp.prototype.toDOM=void 0;dp.prototype.mapMode=Ws.TrackBefore;dp.prototype.startSide=dp.prototype.endSide=-1;dp.prototype.point=!0;const Y4=Sn.define(),Btt={class:"",renderEmptyElements:!1,elementStyle:"",markers:()=>Ur.empty,lineMarker:()=>null,widgetMarker:()=>null,lineMarkerChange:null,initialSpacer:null,updateSpacer:null,domEventHandlers:{}},Y2=Sn.define();function Utt(e){return[ape(),Y2.of(Object.assign(Object.assign({},Btt),e))]}const cL=Sn.define({combine:e=>e.some(t=>t)});function ape(e){let t=[ztt];return e&&e.fixed===!1&&t.push(cL.of(!0)),t}const ztt=fa.fromClass(class{constructor(e){this.view=e,this.prevViewport=e.viewport,this.dom=document.createElement("div"),this.dom.className="cm-gutters",this.dom.setAttribute("aria-hidden","true"),this.dom.style.minHeight=this.view.contentHeight/this.view.scaleY+"px",this.gutters=e.state.facet(Y2).map(t=>new TJ(e,t));for(let t of this.gutters)this.dom.appendChild(t.dom);this.fixed=!e.state.facet(cL),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(cL)!=!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=Ur.iter(this.view.state.facet(Y4),this.view.viewport.from),r=[],i=this.gutters.map(a=>new jtt(a,this.view.viewport,-this.view.documentPadding.top));for(let a of this.view.viewportLineBlocks)if(r.length&&(r=[]),Array.isArray(a.type)){let s=!0;for(let o of a.type)if(o.type==qo.Text&&s){dL(n,r,o.from);for(let l of i)l.line(this.view,o,r);s=!1}else if(o.widget)for(let l of i)l.widget(this.view,o)}else if(a.type==qo.Text){dL(n,r,a.from);for(let s of i)s.line(this.view,a,r)}else if(a.widget)for(let s of i)s.widget(this.view,a);for(let a of i)a.finish();e&&this.view.scrollDOM.insertBefore(this.dom,t)}updateGutters(e){let t=e.startState.facet(Y2),n=e.state.facet(Y2),r=e.docChanged||e.heightChanged||e.viewportChanged||!Ur.eq(e.startState.facet(Y4),e.state.facet(Y4),e.view.viewport.from,e.view.viewport.to);if(t==n)for(let i of this.gutters)i.update(e)&&(r=!0);else{r=!0;let i=[];for(let a of n){let s=t.indexOf(a);s<0?i.push(new TJ(this.view,a)):(this.gutters[s].update(e),i.push(this.gutters[s]))}for(let a of this.gutters)a.dom.remove(),i.indexOf(a)<0&&a.destroy();for(let a of i)this.dom.appendChild(a.dom);this.gutters=i}return r}destroy(){for(let e of this.gutters)e.destroy();this.dom.remove()}},{provide:e=>dn.scrollMargins.of(t=>{let n=t.plugin(e);return!n||n.gutters.length==0||!n.fixed?null:t.textDirection==Hi.LTR?{left:n.dom.offsetWidth*t.scaleX}:{right:n.dom.offsetWidth*t.scaleX}})});function xJ(e){return Array.isArray(e)?e:[e]}function dL(e,t,n){for(;e.value&&e.from<=n;)e.from==n&&t.push(e.value),e.next()}class jtt{constructor(t,n,r){this.gutter=t,this.height=r,this.i=0,this.cursor=Ur.iter(t.markers,n.from)}addElement(t,n,r){let{gutter:i}=this,a=(n.top-this.height)/t.scaleY,s=n.height/t.scaleY;if(this.i==i.elements.length){let o=new spe(t,s,a,r);i.elements.push(o),i.dom.appendChild(o.dom)}else i.elements[this.i].update(t,s,a,r);this.height=n.bottom,this.i++}line(t,n,r){let i=[];dL(this.cursor,i,n.from),r.length&&(i=i.concat(r));let a=this.gutter.config.lineMarker(t,n,i);a&&i.unshift(a);let s=this.gutter;i.length==0&&!s.config.renderEmptyElements||this.addElement(t,n,i)}widget(t,n){let r=this.gutter.config.widgetMarker(t,n.widget,n);r&&this.addElement(t,n,[r])}finish(){let t=this.gutter;for(;t.elements.length>this.i;){let n=t.elements.pop();t.dom.removeChild(n.dom),n.destroy()}}}class TJ{constructor(t,n){this.view=t,this.config=n,this.elements=[],this.spacer=null,this.dom=document.createElement("div"),this.dom.className="cm-gutter"+(this.config.class?" "+this.config.class:"");for(let r in n.domEventHandlers)this.dom.addEventListener(r,i=>{let a=i.target,s;if(a!=this.dom&&this.dom.contains(a)){for(;a.parentNode!=this.dom;)a=a.parentNode;let l=a.getBoundingClientRect();s=(l.top+l.bottom)/2}else s=i.clientY;let o=t.lineBlockAtHeight(s-t.documentTop);n.domEventHandlers[r](t,o,i)&&i.preventDefault()});this.markers=xJ(n.markers(t)),n.initialSpacer&&(this.spacer=new spe(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=xJ(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!Ur.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 spe{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":""),Htt(this.markers,i)||this.setMarkers(t,i)}setMarkers(t,n){let r="cm-gutterElement",i=this.dom.firstChild;for(let a=0,s=0;;){let o=s,l=aa(o,l,u)||s(o,l,u):s}return r}})}});class dP extends dp{constructor(t){super(),this.number=t}eq(t){return this.number==t.number}toDOM(){return document.createTextNode(this.number)}}function fP(e,t){return e.state.facet(Uy).formatNumber(t,e.state)}const Wtt=Y2.compute([Uy],e=>({class:"cm-lineNumbers",renderEmptyElements:!1,markers(t){return t.state.facet(Vtt)},lineMarker(t,n,r){return r.some(i=>i.toDOM)?null:new dP(fP(t,t.state.doc.lineAt(n.from).number))},widgetMarker:()=>null,lineMarkerChange:t=>t.startState.facet(Uy)!=t.state.facet(Uy),initialSpacer(t){return new dP(fP(t,kJ(t.state.doc.lines)))},updateSpacer(t,n){let r=fP(n.view,kJ(n.view.state.doc.lines));return r==t.number?t:new dP(r)},domEventHandlers:e.facet(Uy).domEventHandlers}));function Qtt(e={}){return[Uy.of(e),ape(),Wtt]}function kJ(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(qtt.range(i)))}return Ur.of(t)});function Ytt(){return Gtt}const ope=1024;let Ztt=0;class mc{constructor(t,n){this.from=t,this.to=n}}class ir{constructor(t={}){this.id=Ztt++,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=ds.match(t)),n=>{let r=t(n);return r===void 0?null:[this,r]}}}ir.closedBy=new ir({deserialize:e=>e.split(" ")});ir.openedBy=new ir({deserialize:e=>e.split(" ")});ir.group=new ir({deserialize:e=>e.split(" ")});ir.isolate=new ir({deserialize:e=>{if(e&&e!="rtl"&&e!="ltr"&&e!="auto")throw new RangeError("Invalid value for isolate: "+e);return e||"auto"}});ir.contextHash=new ir({perNode:!0});ir.lookAhead=new ir({perNode:!0});ir.mounted=new ir({perNode:!0});class dx{constructor(t,n,r){this.tree=t,this.overlay=n,this.parser=r}static get(t){return t&&t.props&&t.props[ir.mounted.id]}}const Xtt=Object.create(null);class ds{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):Xtt,r=(t.top?1:0)|(t.skipped?2:0)|(t.error?4:0)|(t.name==null?8:0),i=new ds(t.name||"",n,t.id,r);if(t.props){for(let a of t.props)if(Array.isArray(a)||(a=a(i)),a){if(a[0].perNode)throw new RangeError("Can't store a per-node prop on a node type");n[a[0].id]=a[1]}}return i}prop(t){return this.props[t.id]}get isTop(){return(this.flags&1)>0}get isSkipped(){return(this.flags&2)>0}get isError(){return(this.flags&4)>0}get isAnonymous(){return(this.flags&8)>0}is(t){if(typeof t=="string"){if(this.name==t)return!0;let n=this.prop(ir.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(ir.group),a=-1;a<(i?i.length:0);a++){let s=n[a<0?r.name:i[a]];if(s)return s}}}}ds.none=new ds("",Object.create(null),0,8);class $T{constructor(t){this.types=t;for(let n=0;n0;for(let l=this.cursor(s|_i.IncludeAnonymous);;){let u=!1;if(l.from<=a&&l.to>=i&&(!o&&l.type.isAnonymous||n(l)!==!1)){if(l.firstChild())continue;u=!0}for(;u&&r&&(o||!l.type.isAnonymous)&&r(l),!l.nextSibling();){if(!l.parent())return;u=!0}}}prop(t){return t.perNode?this.props?this.props[t.id]:void 0:this.type.prop(t)}get propValues(){let t=[];if(this.props)for(let n in this.props)t.push([+n,this.props[n]]);return t}balance(t={}){return this.children.length<=8?this:DU(ds.none,this.children,this.positions,0,this.children.length,0,this.length,(n,r,i)=>new di(this.type,n,r,i,this.propValues),t.makeTree||((n,r,i)=>new di(ds.none,n,r,i)))}static build(t){return tnt(t)}}di.empty=new di(ds.none,[],[],0);class RU{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 RU(this.buffer,this.index)}}class f0{constructor(t,n,r){this.buffer=t,this.length=n,this.set=r}get type(){return ds.none}toString(){let t=[];for(let n=0;n0));l=s[l+3]);return o}slice(t,n,r){let i=this.buffer,a=new Uint16Array(n-t),s=0;for(let o=t,l=0;o=t&&nt;case 1:return n<=t&&r>t;case 2:return r>t;case 4:return!0}}function fx(e,t,n,r){for(var i;e.from==e.to||(n<1?e.from>=t:e.from>t)||(n>-1?e.to<=t:e.to0?o.length:-1;t!=u;t+=n){let c=o[t],f=l[t]+s.from;if(lpe(i,r,f,f+c.length)){if(c instanceof f0){if(a&_i.ExcludeBuffers)continue;let h=c.findChild(0,c.buffer.length,n,r-f,i);if(h>-1)return new Cf(new Ktt(s,c,t,f),null,h)}else if(a&_i.IncludeAnonymous||!c.type.isAnonymous||IU(c)){let h;if(!(a&_i.IgnoreMounts)&&(h=dx.get(c))&&!h.overlay)return new Oo(h.tree,f,t,s);let g=new Oo(c,f,t,s);return a&_i.IncludeAnonymous||!g.type.isAnonymous?g:g.nextChild(n<0?c.children.length-1:0,n,r,i)}}}if(a&_i.IncludeAnonymous||!s.type.isAnonymous||(s.index>=0?t=s.index+n:t=n<0?-1:s._parent._tree.children.length,s=s._parent,!s))return null}}get firstChild(){return this.nextChild(0,1,0,4)}get lastChild(){return this.nextChild(this._tree.children.length-1,-1,0,4)}childAfter(t){return this.nextChild(0,1,t,2)}childBefore(t){return this.nextChild(this._tree.children.length-1,-1,t,-2)}enter(t,n,r=0){let i;if(!(r&_i.IgnoreOverlays)&&(i=dx.get(this._tree))&&i.overlay){let a=t-this.from;for(let{from:s,to:o}of i.overlay)if((n>0?s<=a:s=a:o>a))return new Oo(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 AJ(e,t,n,r){let i=e.cursor(),a=[];if(!i.firstChild())return a;if(n!=null){for(let s=!1;!s;)if(s=i.type.is(n),!i.nextSibling())return a}for(;;){if(r!=null&&i.type.is(r))return a;if(i.type.is(t)&&a.push(i.node),!i.nextSibling())return r==null?a:[]}}function fL(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 Ktt{constructor(t,n,r,i){this.parent=t,this.buffer=n,this.index=r,this.start=i}}class Cf extends upe{get name(){return this.type.name}get from(){return this.context.start+this.context.buffer.buffer[this.index+1]}get to(){return this.context.start+this.context.buffer.buffer[this.index+2]}constructor(t,n,r){super(),this.context=t,this._parent=n,this.index=r,this.type=t.buffer.set.types[t.buffer.buffer[r]]}child(t,n,r){let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.context.start,r);return a<0?null:new Cf(this.context,this,a)}get firstChild(){return this.child(1,0,4)}get lastChild(){return this.child(-1,0,4)}childAfter(t){return this.child(1,t,2)}childBefore(t){return this.child(-1,t,-2)}enter(t,n,r=0){if(r&_i.ExcludeBuffers)return null;let{buffer:i}=this.context,a=i.findChild(this.index+4,i.buffer[this.index+3],n>0?1:-1,t-this.context.start,n);return a<0?null:new Cf(this.context,this,a)}get parent(){return this._parent||this.context.parent.nextSignificantParent()}externalSibling(t){return this._parent?null:this.context.parent.nextChild(this.context.index+t,t,0,4)}get nextSibling(){let{buffer:t}=this.context,n=t.buffer[this.index+3];return n<(this._parent?t.buffer[this._parent.index+3]:t.buffer.length)?new Cf(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 Cf(this.context,this._parent,t.findChild(n,this.index,-1,0,4))}get tree(){return null}toTree(){let t=[],n=[],{buffer:r}=this.context,i=this.index+4,a=r.buffer[this.index+3];if(a>i){let s=r.buffer[this.index+1];t.push(r.slice(i,a,s)),n.push(0)}return new di(this.type,t,n,this.to-this.from)}toString(){return this.context.buffer.childString(this.index)}}function cpe(e){if(!e.length)return null;let t=0,n=e[0];for(let a=1;an.from||s.to=t){let o=new Oo(s.tree,s.overlay[0].from+a.from,-1,a);(i||(i=[r])).push(fx(o,t,n,!1))}}return i?cpe(i):r}class M3{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 Oo)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 Oo?(this.buffer=null,this.yieldNode(t)):(this.buffer=t.context,this.yieldBuf(t.index,t.type)):!1}toString(){return this.buffer?this.buffer.buffer.childString(this.index):this._tree.toString()}enterChild(t,n,r){if(!this.buffer)return this.yield(this._tree.nextChild(t<0?this._tree._tree.children.length-1:0,t,n,r,this.mode));let{buffer:i}=this.buffer,a=i.findChild(this.index+4,i.buffer[this.index+3],t,n-this.buffer.start,r);return a<0?!1:(this.stack.push(this.index),this.yieldBuf(a))}firstChild(){return this.enterChild(1,0,4)}lastChild(){return this.enterChild(-1,0,4)}childAfter(t){return this.enterChild(1,t,2)}childBefore(t){return this.enterChild(-1,t,-2)}enter(t,n,r=this.mode){return this.buffer?r&_i.ExcludeBuffers?!1:this.enterChild(1,t,n):this.yield(this._tree.enter(t,n,r))}parent(){if(!this.buffer)return this.yieldNode(this.mode&_i.IncludeAnonymous?this._tree._parent:this._tree.parent);if(this.stack.length)return this.yieldBuf(this.stack.pop());let t=this.mode&_i.IncludeAnonymous?this.buffer.parent:this.buffer.parent.nextSignificantParent();return this.buffer=null,this.yieldNode(t)}sibling(t){if(!this.buffer)return this._tree._parent?this.yield(this._tree.index<0?null:this._tree._parent.nextChild(this._tree.index+t,t,0,4,this.mode)):!1;let{buffer:n}=this.buffer,r=this.stack.length-1;if(t<0){let i=r<0?0:this.stack[r]+4;if(this.index!=i)return this.yieldBuf(n.findChild(i,this.index,-1,0,4))}else{let i=n.buffer[this.index+3];if(i<(r<0?n.buffer.length:n.buffer[this.stack[r]+3]))return this.yieldBuf(i)}return r<0?this.yield(this.buffer.parent.nextChild(this.buffer.index+t,t,0,4,this.mode)):!1}nextSibling(){return this.sibling(1)}prevSibling(){return this.sibling(-1)}atLastNode(t){let n,r,{buffer:i}=this;if(i){if(t>0){if(this.index-1)for(let a=n+t,s=t<0?-1:r._tree.children.length;a!=s;a+=t){let o=r._tree.children[a];if(this.mode&_i.IncludeAnonymous||o instanceof f0||!o.type.isAnonymous||IU(o))return!1}return!0}move(t,n){if(n&&this.enterChild(t,0,4))return!0;for(;;){if(this.sibling(t))return!0;if(this.atLastNode(t)||!this.parent())return!1}}next(t=!0){return this.move(1,t)}prev(t=!0){return this.move(-1,t)}moveTo(t,n=0){for(;(this.from==this.to||(n<1?this.from>=t:this.from>t)||(n>-1?this.to<=t:this.to=0;){for(let s=t;s;s=s._parent)if(s.index==i){if(i==this.index)return s;n=s,r=a+1;break e}i=this.stack[--a]}for(let i=r;i=0;a--){if(a<0)return fL(this.node,t,i);let s=r[n.buffer[this.stack[a]]];if(!s.isAnonymous){if(t[i]&&t[i]!=s.name)return!1;i--}}return!0}}function IU(e){return e.children.some(t=>t instanceof f0||!t.type.isAnonymous||IU(t))}function tnt(e){var t;let{buffer:n,nodeSet:r,maxBufferLength:i=ope,reused:a=[],minRepeatType:s=r.types.length}=e,o=Array.isArray(n)?new RU(n,n.length):n,l=r.types,u=0,c=0;function f(I,A,D,B,L,F){let{id:W,start:V,end:Z,size:Q}=o,H=c;for(;Q<0;)if(o.next(),Q==-1){let z=a[W];D.push(z),B.push(V-I);return}else if(Q==-3){u=W;return}else if(Q==-4){c=W;return}else throw new RangeError(`Unrecognized record size: ${Q}`);let J=l[W],K,X,te=V-I;if(Z-V<=i&&(X=w(o.pos-A,L))){let z=new Uint16Array(X.size-X.skip),Te=o.pos-X.size,be=z.length;for(;o.pos>Te;)be=E(X.start,z,be);K=new f0(z,Z-X.start,r),te=X.start-I}else{let z=o.pos-Q;o.next();let Te=[],be=[],ee=W>=s?W:-1,ye=0,Oe=Z;for(;o.pos>z;)ee>=0&&o.id==ee&&o.size>=0?(o.end<=Oe-i&&(b(Te,be,V,ye,o.end,Oe,ee,H),ye=Te.length,Oe=o.end),o.next()):F>2500?h(V,z,Te,be):f(V,z,Te,be,ee,F+1);if(ee>=0&&ye>0&&ye-1&&ye>0){let ie=g(J);K=DU(J,Te,be,0,Te.length,0,Z-V,ie,ie)}else K=S(J,Te,be,Z-V,H-Z)}D.push(K),B.push(te)}function h(I,A,D,B){let L=[],F=0,W=-1;for(;o.pos>A;){let{id:V,start:Z,end:Q,size:H}=o;if(H>4)o.next();else{if(W>-1&&Z=0;Q-=3)V[H++]=L[Q],V[H++]=L[Q+1]-Z,V[H++]=L[Q+2]-Z,V[H++]=H;D.push(new f0(V,L[2]-Z,r)),B.push(Z-I)}}function g(I){return(A,D,B)=>{let L=0,F=A.length-1,W,V;if(F>=0&&(W=A[F])instanceof di){if(!F&&W.type==I&&W.length==B)return W;(V=W.prop(ir.lookAhead))&&(L=D[F]+W.length+V)}return S(I,A,D,B,L)}}function b(I,A,D,B,L,F,W,V){let Z=[],Q=[];for(;I.length>B;)Z.push(I.pop()),Q.push(A.pop()+D-L);I.push(S(r.types[W],Z,Q,F-L,V-F)),A.push(L-D)}function S(I,A,D,B,L=0,F){if(u){let W=[ir.contextHash,u];F=F?[W].concat(F):[W]}if(L>25){let W=[ir.lookAhead,L];F=F?[W].concat(F):[W]}return new di(I,A,D,B,F)}function w(I,A){let D=o.fork(),B=0,L=0,F=0,W=D.end-i,V={size:0,start:0,skip:0};e:for(let Z=D.pos-I;D.pos>Z;){let Q=D.size;if(D.id==A&&Q>=0){V.size=B,V.start=L,V.skip=F,F+=4,B+=4,D.next();continue}let H=D.pos-Q;if(Q<0||H=s?4:0,K=D.start;for(D.next();D.pos>H;){if(D.size<0)if(D.size==-3)J+=4;else break e;else D.id>=s&&(J+=4);D.next()}L=K,B+=Q,F+=J}return(A<0||B==I)&&(V.size=B,V.start=L,V.skip=F),V.size>4?V:void 0}function E(I,A,D){let{id:B,start:L,end:F,size:W}=o;if(o.next(),W>=0&&B4){let Z=o.pos-(W-4);for(;o.pos>Z;)D=E(I,A,D)}A[--D]=V,A[--D]=F-I,A[--D]=L-I,A[--D]=B}else W==-3?u=B:W==-4&&(c=B);return D}let x=[],k=[];for(;o.pos>0;)f(e.start||0,e.bufferStart||0,x,k,-1,0);let C=(t=e.length)!==null&&t!==void 0?t:x.length?k[0]+x[0].length:0;return new di(l[e.topID],x.reverse(),k.reverse(),C)}const _J=new WeakMap;function Z4(e,t){if(!e.isAnonymous||t instanceof f0||t.type!=e)return 1;let n=_J.get(t);if(n==null){n=1;for(let r of t.children){if(r.type!=e||!(r instanceof di)){n=1;break}n+=Z4(e,r)}_J.set(t,n)}return n}function DU(e,t,n,r,i,a,s,o,l){let u=0;for(let b=r;b=c)break;A+=D}if(k==C+1){if(A>c){let D=b[C];g(D.children,D.positions,0,D.children.length,S[C]+x);continue}f.push(b[C])}else{let D=S[k-1]+b[k-1].length-I;f.push(DU(e,b,S,C,k,I,D,null,l))}h.push(I+x-a)}}return g(t,n,r,i,0),(o||l)(f,h,s)}class dpe{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 Cf?this.setBuffer(t.context.buffer,t.index,n):t instanceof Oo&&this.map.set(t.tree,n)}get(t){return t instanceof Cf?this.getBuffer(t.context.buffer,t.index):t instanceof Oo?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 Xh{constructor(t,n,r,i,a=!1,s=!1){this.from=t,this.to=n,this.tree=r,this.offset=i,this.open=(a?1:0)|(s?2:0)}get openStart(){return(this.open&1)>0}get openEnd(){return(this.open&2)>0}static addTree(t,n=[],r=!1){let i=[new Xh(0,t.length,t,0,!1,r)];for(let a of n)a.to>t.length&&i.push(a);return i}static applyChanges(t,n,r=128){if(!n.length)return t;let i=[],a=1,s=t.length?t[0]:null;for(let o=0,l=0,u=0;;o++){let c=o=r)for(;s&&s.from=h.from||f<=h.to||u){let g=Math.max(h.from,l)-u,b=Math.min(h.to,f)-u;h=g>=b?null:new Xh(g,b,h.tree,h.offset+u,o>0,!!c)}if(h&&i.push(h),s.to>f)break;s=anew mc(i.from,i.to)):[new mc(0,0)]:[new mc(0,t.length)],this.createParse(t,n||[],r)}parse(t,n,r){let i=this.startParse(t,n,r);for(;;){let a=i.advance();if(a)return a}}};class nnt{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 fpe(e){return(t,n,r,i)=>new int(t,e,n,r,i)}class RJ{constructor(t,n,r,i,a){this.parser=t,this.parse=n,this.overlay=r,this.target=i,this.from=a}}function IJ(e){if(!e.length||e.some(t=>t.from>=t.to))throw new RangeError("Invalid inner parse ranges given: "+JSON.stringify(e))}class rnt{constructor(t,n,r,i,a,s,o){this.parser=t,this.predicate=n,this.mounts=r,this.index=i,this.start=a,this.target=s,this.prev=o,this.depth=0,this.ranges=[]}}const hL=new ir({perNode:!0});class int{constructor(t,n,r,i,a){this.nest=n,this.input=r,this.fragments=i,this.ranges=a,this.inner=[],this.innerDone=0,this.baseTree=null,this.stoppedAt=null,this.baseParse=t}advance(){if(this.baseParse){let r=this.baseParse.advance();if(!r)return null;if(this.baseParse=null,this.baseTree=r,this.startInner(),this.stoppedAt!=null)for(let i of this.inner)i.parse.stopAt(this.stoppedAt)}if(this.innerDone==this.inner.length){let r=this.baseTree;return this.stoppedAt!=null&&(r=new di(r.type,r.children,r.positions,r.length,r.propValues.concat([[hL,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[ir.mounted.id]=new dx(n,t.overlay,t.parser),t.target.props=r}return null}get parsedPos(){if(this.baseParse)return 0;let t=this.input.length;for(let n=this.innerDone;n=this.stoppedAt)o=!1;else if(t.hasNode(i)){if(n){let u=n.mounts.find(c=>c.frag.from<=i.from&&c.frag.to>=i.to&&c.mount.overlay);if(u)for(let c of u.mount.overlay){let f=c.from+u.pos,h=c.to+u.pos;f>=i.from&&h<=i.to&&!n.ranges.some(g=>g.fromf)&&n.ranges.push({from:f,to:h})}}o=!1}else if(r&&(s=ant(r.ranges,i.from,i.to)))o=s!=2;else if(!i.type.isAnonymous&&(a=this.nest(i,this.input))&&(i.fromnew mc(f.from-i.from,f.to-i.from)):null,i.tree,c.length?c[0].from:i.from)),a.overlay?c.length&&(r={ranges:c,depth:0,prev:r}):o=!1}}else n&&(l=n.predicate(i))&&(l===!0&&(l=new mc(i.from,i.to)),l.fromnew mc(c.from-n.start,c.to-n.start)),n.target,u[0].from))),n=n.prev}r&&!--r.depth&&(r=r.prev)}}}}function ant(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 DJ(e,t,n,r,i,a){if(t=t&&n.enter(r,1,_i.IgnoreOverlays|_i.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 di)n=n.children[0];else break}return!1}}let ont=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(hL))!==null&&n!==void 0?n:r.to,this.inner=new NJ(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(hL))!==null&&t!==void 0?t:n.to,this.inner=new NJ(n.tree,-n.offset)}}findMounts(t,n){var r;let i=[];if(this.inner){this.inner.cursor.moveTo(t,1);for(let a=this.inner.cursor.node;a;a=a.parent){let s=(r=a.tree)===null||r===void 0?void 0:r.prop(ir.mounted);if(s&&s.parser==n)for(let o=this.fragI;o=a.to)break;l.tree==this.curFrag.tree&&i.push({frag:l,pos:a.from-l.offset,mount:s})}}}return i}};function PJ(e,t){let n=null,r=t;for(let i=1,a=0;i=o)break;l.to<=s||(n||(r=n=t.slice()),l.fromo&&n.splice(a+1,0,new mc(o,l.to))):l.to>o?n[a--]=new mc(o,l.to):n.splice(a--,1))}}return r}function lnt(e,t,n,r){let i=0,a=0,s=!1,o=!1,l=-1e9,u=[];for(;;){let c=i==e.length?1e9:s?e[i].to:e[i].from,f=a==t.length?1e9:o?t[a].to:t[a].from;if(s!=o){let h=Math.max(l,n),g=Math.min(c,f,r);hnew mc(h.from+r,h.to+r)),f=lnt(t,c,l,u);for(let h=0,g=l;;h++){let b=h==f.length,S=b?u:f[h].from;if(S>g&&n.push(new Xh(g,S,i.tree,-s,a.from>=g||a.openStart,a.to<=S||a.openEnd)),b)break;g=f[h].to}}else n.push(new Xh(l,u,i.tree,-s,a.from>=s||a.openStart,a.to<=o||a.openEnd))}return n}let unt=0;class cd{constructor(t,n,r){this.set=t,this.base=n,this.modified=r,this.id=unt++}static define(t){if(t!=null&&t.base)throw new Error("Can not derive from a modified tag");let n=new cd([],null,[]);if(n.set.push(n),t)for(let r of t.set)n.set.push(r);return n}static defineModifier(){let t=new L3;return n=>n.modified.indexOf(t)>-1?n:L3.get(n.base||n,n.modified.concat(t).sort((r,i)=>r.id-i.id))}}let cnt=0;class L3{constructor(){this.instances=[],this.id=cnt++}static get(t,n){if(!n.length)return t;let r=n[0].instances.find(o=>o.base==t&&dnt(n,o.modified));if(r)return r;let i=[],a=new cd(i,t,n);for(let o of n)o.instances.push(a);let s=fnt(n);for(let o of t.set)if(!o.modified.length)for(let l of s)i.push(L3.get(o,l));return a}}function dnt(e,t){return e.length==t.length&&e.every((n,r)=>n==t[r])}function fnt(e){let t=[[]];for(let n=0;nr.length-n.length)}function HO(e){let t=Object.create(null);for(let n in e){let r=e[n];Array.isArray(r)||(r=[r]);for(let i of n.split(" "))if(i){let a=[],s=2,o=i;for(let f=0;;){if(o=="..."&&f>0&&f+3==i.length){s=1;break}let h=/^"(?:[^"\\]|\\.)*?"|[^\/!]+/.exec(o);if(!h)throw new RangeError("Invalid path: "+i);if(a.push(h[0]=="*"?"":h[0][0]=='"'?JSON.parse(h[0]):h[0]),f+=h[0].length,f==i.length)break;let g=i[f++];if(f==i.length&&g=="!"){s=0;break}if(g!="/")throw new RangeError("Invalid path: "+i);o=i.slice(f)}let l=a.length-1,u=a[l];if(!u)throw new RangeError("Invalid path: "+i);let c=new $3(r,s,l>0?a.slice(0,l):null);t[u]=c.sort(t[u])}}return hpe.add(t)}const hpe=new ir;class $3{constructor(t,n,r,i){this.tags=t,this.mode=n,this.context=r,this.next=i}get opaque(){return this.mode==0}get inherit(){return this.mode==1}sort(t){return!t||t.depth{let s=i;for(let o of a)for(let l of o.set){let u=n[l.id];if(u){s=s?s+" "+u:u;break}}return s},scope:r}}function hnt(e,t){let n=null;for(let r of e){let i=r.style(t);i&&(n=n?n+" "+i:i)}return n}function pnt(e,t,n,r=0,i=e.length){let a=new mnt(r,Array.isArray(t)?t:[t],n);a.highlightRange(e.cursor(),r,i,"",a.highlighters),a.flush(i)}class mnt{constructor(t,n,r){this.at=t,this.highlighters=n,this.span=r,this.class=""}startSpan(t,n){n!=this.class&&(this.flush(t),t>this.at&&(this.at=t),this.class=n)}flush(t){t>this.at&&this.class&&this.span(this.at,t,this.class)}highlightRange(t,n,r,i,a){let{type:s,from:o,to:l}=t;if(o>=r||l<=n)return;s.isTop&&(a=this.highlighters.filter(g=>!g.scope||g.scope(s)));let u=i,c=gnt(t)||$3.empty,f=hnt(a,c.tags);if(f&&(u&&(u+=" "),u+=f,c.mode==1&&(i+=(i?" ":"")+f)),this.startSpan(Math.max(n,o),u),c.opaque)return;let h=t.tree&&t.tree.prop(ir.mounted);if(h&&h.overlay){let g=t.node.enter(h.overlay[0].from+o,1),b=this.highlighters.filter(w=>!w.scope||w.scope(h.tree.type)),S=t.firstChild();for(let w=0,E=o;;w++){let x=w=k||!t.nextSibling())););if(!x||k>r)break;E=x.to+o,E>n&&(this.highlightRange(g.cursor(),Math.max(n,x.from+o),Math.min(r,E),"",b),this.startSpan(Math.min(r,E),u))}S&&t.parent()}else if(t.firstChild()){h&&(i="");do if(!(t.to<=n)){if(t.from>=r)break;this.highlightRange(t,n,r,i,a),this.startSpan(Math.min(r,t.to),u)}while(t.nextSibling());t.parent()}}}function gnt(e){let t=e.type.prop(hpe);for(;t&&t.context&&!e.matchContext(t.context);)t=t.next;return t||null}const nn=cd.define,TA=nn(),cm=nn(),LJ=nn(cm),$J=nn(cm),dm=nn(),kA=nn(dm),hP=nn(dm),of=nn(),gg=nn(of),rf=nn(),af=nn(),pL=nn(),$E=nn(pL),CA=nn(),Ee={comment:TA,lineComment:nn(TA),blockComment:nn(TA),docComment:nn(TA),name:cm,variableName:nn(cm),typeName:LJ,tagName:nn(LJ),propertyName:$J,attributeName:nn($J),className:nn(cm),labelName:nn(cm),namespace:nn(cm),macroName:nn(cm),literal:dm,string:kA,docString:nn(kA),character:nn(kA),attributeValue:nn(kA),number:hP,integer:nn(hP),float:nn(hP),bool:nn(dm),regexp:nn(dm),escape:nn(dm),color:nn(dm),url:nn(dm),keyword:rf,self:nn(rf),null:nn(rf),atom:nn(rf),unit:nn(rf),modifier:nn(rf),operatorKeyword:nn(rf),controlKeyword:nn(rf),definitionKeyword:nn(rf),moduleKeyword:nn(rf),operator:af,derefOperator:nn(af),arithmeticOperator:nn(af),logicOperator:nn(af),bitwiseOperator:nn(af),compareOperator:nn(af),updateOperator:nn(af),definitionOperator:nn(af),typeOperator:nn(af),controlOperator:nn(af),punctuation:pL,separator:nn(pL),bracket:$E,angleBracket:nn($E),squareBracket:nn($E),paren:nn($E),brace:nn($E),content:of,heading:gg,heading1:nn(gg),heading2:nn(gg),heading3:nn(gg),heading4:nn(gg),heading5:nn(gg),heading6:nn(gg),contentSeparator:nn(of),list:nn(of),quote:nn(of),emphasis:nn(of),strong:nn(of),link:nn(of),monospace:nn(of),strikethrough:nn(of),inserted:nn(),deleted:nn(),changed:nn(),invalid:nn(),meta:CA,documentMeta:nn(CA),annotation:nn(CA),processingInstruction:nn(CA),definition:cd.defineModifier(),constant:cd.defineModifier(),function:cd.defineModifier(),standard:cd.defineModifier(),local:cd.defineModifier(),special:cd.defineModifier()};ppe([{tag:Ee.link,class:"tok-link"},{tag:Ee.heading,class:"tok-heading"},{tag:Ee.emphasis,class:"tok-emphasis"},{tag:Ee.strong,class:"tok-strong"},{tag:Ee.keyword,class:"tok-keyword"},{tag:Ee.atom,class:"tok-atom"},{tag:Ee.bool,class:"tok-bool"},{tag:Ee.url,class:"tok-url"},{tag:Ee.labelName,class:"tok-labelName"},{tag:Ee.inserted,class:"tok-inserted"},{tag:Ee.deleted,class:"tok-deleted"},{tag:Ee.literal,class:"tok-literal"},{tag:Ee.string,class:"tok-string"},{tag:Ee.number,class:"tok-number"},{tag:[Ee.regexp,Ee.escape,Ee.special(Ee.string)],class:"tok-string2"},{tag:Ee.variableName,class:"tok-variableName"},{tag:Ee.local(Ee.variableName),class:"tok-variableName tok-local"},{tag:Ee.definition(Ee.variableName),class:"tok-variableName tok-definition"},{tag:Ee.special(Ee.variableName),class:"tok-variableName2"},{tag:Ee.definition(Ee.propertyName),class:"tok-propertyName tok-definition"},{tag:Ee.typeName,class:"tok-typeName"},{tag:Ee.namespace,class:"tok-namespace"},{tag:Ee.className,class:"tok-className"},{tag:Ee.macroName,class:"tok-macroName"},{tag:Ee.propertyName,class:"tok-propertyName"},{tag:Ee.operator,class:"tok-operator"},{tag:Ee.comment,class:"tok-comment"},{tag:Ee.meta,class:"tok-meta"},{tag:Ee.invalid,class:"tok-invalid"},{tag:Ee.punctuation,class:"tok-punctuation"}]);var pP;const zg=new ir;function PU(e){return Sn.define({combine:e?t=>t.concat(e):void 0})}const MU=new ir;class gc{constructor(t,n,r=[],i=""){this.data=t,this.name=i,Vr.prototype.hasOwnProperty("tree")||Object.defineProperty(Vr.prototype,"tree",{get(){return Di(this)}}),this.parser=n,this.extension=[h0.of(this),Vr.languageData.of((a,s,o)=>{let l=FJ(a,s,o),u=l.type.prop(zg);if(!u)return[];let c=a.facet(u),f=l.type.prop(MU);if(f){let h=l.resolve(s-l.from,o);for(let g of f)if(g.test(h,a)){let b=a.facet(g.facet);return g.type=="replace"?b:b.concat(c)}}return c})].concat(r)}isActiveAt(t,n,r=-1){return FJ(t,n,r).type.prop(zg)==this.data}findRegions(t){let n=t.facet(h0);if((n==null?void 0:n.data)==this.data)return[{from:0,to:t.doc.length}];if(!n||!n.allowsNesting)return[];let r=[],i=(a,s)=>{if(a.prop(zg)==this.data){r.push({from:s,to:s+a.length});return}let o=a.prop(ir.mounted);if(o){if(o.tree.prop(zg)==this.data){if(o.overlay)for(let l of o.overlay)r.push({from:l.from+s,to:l.to+s});else r.push({from:s,to:s+a.length});return}else if(o.overlay){let l=r.length;if(i(o.tree,o.overlay[0].from+s),r.length>l)return}}for(let l=0;lr.isTop?n:void 0)]}),t.name)}configure(t,n){return new oO(this.data,this.parser.configure(t),n||this.name)}get allowsNesting(){return this.parser.hasWrappers()}}function Di(e){let t=e.field(gc.state,!1);return t?t.tree:di.empty}class bnt{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 FE=null;class hx{constructor(t,n,r=[],i,a,s,o,l){this.parser=t,this.state=n,this.fragments=r,this.tree=i,this.treeLen=a,this.viewport=s,this.skipped=o,this.scheduleOn=l,this.parse=null,this.tempSkipped=[]}static create(t,n,r){return new hx(t,n,[],di.empty,0,r,[],null)}startParse(){return this.parser.startParse(new bnt(this.state.doc),this.fragments)}work(t,n){return n!=null&&n>=this.state.doc.length&&(n=void 0),this.tree!=di.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(Xh.addTree(this.tree,this.fragments,!0)),this.parse=null)}withContext(t){let n=FE;FE=this;try{return t()}finally{FE=n}}withoutTempSkipped(t){for(let n;n=this.tempSkipped.pop();)t=BJ(t,n.from,n.to);return t}changes(t,n){let{fragments:r,tree:i,treeLen:a,viewport:s,skipped:o}=this;if(this.takeTree(),!t.empty){let l=[];if(t.iterChangedRanges((u,c,f,h)=>l.push({fromA:u,toA:c,fromB:f,toB:h})),r=Xh.applyChanges(r,l),i=di.empty,a=0,s={from:t.mapPos(s.from,-1),to:t.mapPos(s.to,1)},this.skipped.length){o=[];for(let u of this.skipped){let c=t.mapPos(u.from,1),f=t.mapPos(u.to,-1);ct.from&&(this.fragments=BJ(this.fragments,i,a),this.skipped.splice(r--,1))}return this.skipped.length>=n?!1:(this.reset(),!0)}reset(){this.parse&&(this.takeTree(),this.parse=null)}skipUntilInView(t,n){this.skipped.push({from:t,to:n})}static getSkippingParser(t){return new class extends NU{createParse(n,r,i){let a=i[0].from,s=i[i.length-1].to;return{parsedPos:a,advance(){let l=FE;if(l){for(let u of i)l.tempSkipped.push(u);t&&(l.scheduleOn=l.scheduleOn?Promise.all([l.scheduleOn,t]):t)}return this.parsedPos=s,new di(ds.none,[],[],s-a)},stoppedAt:null,stopAt(){}}}}}isDone(t){t=Math.min(t,this.state.doc.length);let n=this.fragments;return this.treeLen>=t&&n.length&&n[0].from==0&&n[0].to>=t}static get(){return FE}}function BJ(e,t,n){return Xh.applyChanges(e,[{fromA:t,toA:n,fromB:t,toB:n}])}class lO{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 lO(n)}static init(t){let n=Math.min(3e3,t.doc.length),r=hx.create(t.facet(h0).parser,t,{from:0,to:n});return r.work(20,n)||r.takeTree(),new lO(r)}}gc.state=Rs.define({create:lO.init,update(e,t){for(let n of t.effects)if(n.is(gc.setState))return n.value;return t.startState.facet(h0)!=t.state.facet(h0)?lO.init(t.state):e.apply(t)}});let mpe=e=>{let t=setTimeout(()=>e(),500);return()=>clearTimeout(t)};typeof requestIdleCallback<"u"&&(mpe=e=>{let t=-1,n=setTimeout(()=>{t=requestIdleCallback(e,{timeout:400})},100);return()=>t<0?clearTimeout(n):cancelIdleCallback(t)});const mP=typeof navigator<"u"&&(!((pP=navigator.scheduling)===null||pP===void 0)&&pP.isInputPending)?()=>navigator.scheduling.isInputPending():null,ynt=fa.fromClass(class{constructor(t){this.view=t,this.working=null,this.workScheduled=0,this.chunkEnd=-1,this.chunkBudget=-1,this.work=this.work.bind(this),this.scheduleWork()}update(t){let n=this.view.state.field(gc.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(gc.state);(n.tree!=n.context.tree||!n.context.isDone(t.doc.length))&&(this.working=mpe(this.work))}work(t){this.working=null;let n=Date.now();if(this.chunkEndi+1e3,l=a.context.work(()=>mP&&mP()||Date.now()>s,i+(o?0:1e5));this.chunkBudget-=Date.now()-n,(l||this.chunkBudget<=0)&&(a.context.takeTree(),this.view.dispatch({effects:gc.setState.of(new lO(a.context))})),this.chunkBudget>0&&!(l&&!o)&&this.scheduleWork(),this.checkAsyncSchedule(a.context)}checkAsyncSchedule(t){t.scheduleOn&&(this.workScheduled++,t.scheduleOn.then(()=>this.scheduleWork()).catch(n=>Tc(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()}}}),h0=Sn.define({combine(e){return e.length?e[0]:null},enables:e=>[gc.state,ynt,dn.contentAttributes.compute([e],t=>{let n=t.facet(e);return n&&n.name?{"data-language":n.name}:{}})]});class px{constructor(t,n=[]){this.language=t,this.support=n,this.extension=[t,n]}}class F3{constructor(t,n,r,i,a,s=void 0){this.name=t,this.alias=n,this.extensions=r,this.filename=i,this.loadFunc=a,this.support=s,this.loading=null}load(){return this.loading||(this.loading=this.loadFunc().then(t=>this.support=t,t=>{throw this.loading=null,t}))}static of(t){let{load:n,support:r}=t;if(!n){if(!r)throw new RangeError("Must pass either 'load' or 'support' to LanguageDescription.of");n=()=>Promise.resolve(r)}return new F3(t.name,(t.alias||[]).concat(t.name).map(i=>i.toLowerCase()),t.extensions||[],t.filename,n,r)}static matchFilename(t,n){for(let i of t)if(i.filename&&i.filename.test(n))return i;let r=/\.([^.]+)$/.exec(n);if(r){for(let i of t)if(i.extensions.indexOf(r[1])>-1)return i}return null}static matchLanguageName(t,n,r=!0){n=n.toLowerCase();for(let i of t)if(i.alias.some(a=>a==n))return i;if(r)for(let i of t)for(let a of i.alias){let s=n.indexOf(a);if(s>-1&&(a.length>2||!/\w/.test(n[s-1])&&!/\w/.test(n[s+a.length])))return i}return null}}const vnt=Sn.define(),FT=Sn.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 B3(e){let t=e.facet(FT);return t.charCodeAt(0)==9?e.tabSize*t.length:t.length}function mx(e,t){let n="",r=e.tabSize,i=e.facet(FT)[0];if(i==" "){for(;t>=r;)n+=" ",t-=r;i=" "}for(let a=0;a=t?Ont(e,n,t):null}class kI{constructor(t,n={}){this.state=t,this.options=n,this.unit=B3(t)}lineAt(t,n=1){let r=this.state.doc.lineAt(t),{simulateBreak:i,simulateDoubleBreak:a}=this.options;return i!=null&&i>=r.from&&i<=r.to?a&&i==t?{text:"",from:t}:(n<0?i-1&&(a+=s-this.countColumn(r,r.search(/\S|$/))),a}countColumn(t,n=t.length){return kd(t,this.state.tabSize,n)}lineIndent(t,n=1){let{text:r,from:i}=this.lineAt(t,n),a=this.options.overrideIndentation;if(a){let s=a(i);if(s>-1)return s}return this.countColumn(r,r.search(/\S|$/))}get simulatedBreak(){return this.options.simulateBreak||null}}const BT=new ir;function Ont(e,t,n){let r=t.resolveStack(n),i=r.node.enterUnfinishedNodesBefore(n);if(i!=r.node){let a=[];for(let s=i;s!=r.node;s=s.parent)a.push(s);for(let s=a.length-1;s>=0;s--)r={node:a[s],next:r}}return gpe(r,e,n)}function gpe(e,t,n){for(let r=e;r;r=r.next){let i=Ent(r.node);if(i)return i($U.create(t,n,r))}return 0}function Snt(e){return e.pos==e.options.simulateBreak&&e.options.simulateDoubleBreak}function Ent(e){let t=e.type.prop(BT);if(t)return t;let n=e.firstChild,r;if(n&&(r=n.type.prop(ir.closedBy))){let i=e.lastChild,a=i&&r.indexOf(i.name)>-1;return s=>bpe(s,!0,1,void 0,a&&!Snt(s)?i.from:void 0)}return e.parent==null?wnt:null}function wnt(){return 0}class $U extends kI{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 $U(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(xnt(r,t))break;n=this.state.doc.lineAt(r.from)}return this.lineIndent(n.from)}continue(){return gpe(this.context.next,this.base,this.pos)}}function xnt(e,t){for(let n=t;n;n=n.parent)if(e==n)return!0;return!1}function Tnt(e){let t=e.node,n=t.childAfter(t.from),r=t.lastChild;if(!n)return null;let i=e.options.simulateBreak,a=e.state.doc.lineAt(n.from),s=i==null||i<=a.from?a.to:Math.min(a.to,i);for(let o=n.to;;){let l=t.childAfter(o);if(!l||l==r)return null;if(!l.type.isSkipped)return l.frombpe(r,t,n,e)}function bpe(e,t,n,r,i){let a=e.textAfter,s=a.match(/^\s*/)[0].length,o=r&&a.slice(s,s+r.length)==r||i==e.pos+s,l=t?Tnt(e):null;return l?o?e.column(l.from):e.column(l.to):e.baseIndent+(o?0:e.unit*n)}const Cnt=e=>e.baseIndent;function X4({except:e,units:t=1}={}){return n=>{let r=e&&e.test(n.textAfter);return n.baseIndent+(r?0:t*n.unit)}}const Ant=200;function _nt(){return Vr.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+Ant)return e;let a=n.sliceString(i.from,r);if(!t.some(u=>u.test(a)))return e;let{state:s}=e,o=-1,l=[];for(let{head:u}of s.selection.ranges){let c=s.doc.lineAt(u);if(c.from==o)continue;o=c.from;let f=LU(s,c.from);if(f==null)continue;let h=/^\s*/.exec(c.text)[0],g=mx(s,f);h!=g&&l.push({from:c.from,to:c.from+h.length,insert:g})}return l.length?[e,{changes:l,sequential:!0}]:e})}const ype=Sn.define(),VO=new ir;function vpe(e){let t=e.firstChild,n=e.lastChild;return t&&t.ton)continue;if(a&&o.from=t&&u.to>n&&(a=u)}}return a}function Int(e){let t=e.lastChild;return t&&t.to==e.to&&t.type.isError}function U3(e,t,n){for(let r of e.facet(ype)){let i=r(e,t,n);if(i)return i}return Rnt(e,t,n)}function Ope(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 CI=hr.define({map:Ope}),UT=hr.define({map:Ope});function Spe(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 O1=Rs.define({create(){return An.none},update(e,t){e=e.map(t.changes);for(let n of t.effects)if(n.is(CI)&&!Dnt(e,n.value.from,n.value.to)){let{preparePlaceholder:r}=t.state.facet(FU),i=r?An.replace({widget:new Bnt(r(t.state,n.value))}):UJ;e=e.update({add:[i.range(n.value.from,n.value.to)]})}else n.is(UT)&&(e=e.update({filter:(r,i)=>n.value.from!=r||n.value.to!=i,filterFrom:n.value.from,filterTo:n.value.to}));if(t.selection){let n=!1,{head:r}=t.selection.main;e.between(r,r,(i,a)=>{ir&&(n=!0)}),n&&(e=e.update({filterFrom:r,filterTo:r,filter:(i,a)=>a<=r||i>=r}))}return e},provide:e=>dn.decorations.from(e),toJSON(e,t){let n=[];return e.between(0,t.doc.length,(r,i)=>{n.push(r,i)}),n},fromJSON(e){if(!Array.isArray(e)||e.length%2)throw new RangeError("Invalid JSON for fold state");let t=[];for(let n=0;n{(!i||i.from>a)&&(i={from:a,to:s})}),i}function Dnt(e,t,n){let r=!1;return e.between(t,t,(i,a)=>{i==t&&a==n&&(r=!0)}),r}function Epe(e,t){return e.field(O1,!1)?t:t.concat(hr.appendConfig.of(xpe()))}const Nnt=e=>{for(let t of Spe(e)){let n=U3(e.state,t.from,t.to);if(n)return e.dispatch({effects:Epe(e.state,[CI.of(n),wpe(e,n)])}),!0}return!1},Pnt=e=>{if(!e.state.field(O1,!1))return!1;let t=[];for(let n of Spe(e)){let r=z3(e.state,n.from,n.to);r&&t.push(UT.of(r),wpe(e,r,!1))}return t.length&&e.dispatch({effects:t}),t.length>0};function wpe(e,t,n=!0){let r=e.state.doc.lineAt(t.from).number,i=e.state.doc.lineAt(t.to).number;return dn.announce.of(`${e.state.phrase(n?"Folded lines":"Unfolded lines")} ${r} ${e.state.phrase("to")} ${i}.`)}const Mnt=e=>{let{state:t}=e,n=[];for(let r=0;r{let t=e.state.field(O1,!1);if(!t||!t.size)return!1;let n=[];return t.between(0,e.state.doc.length,(r,i)=>{n.push(UT.of({from:r,to:i}))}),e.dispatch({effects:n}),!0},$nt=[{key:"Ctrl-Shift-[",mac:"Cmd-Alt-[",run:Nnt},{key:"Ctrl-Shift-]",mac:"Cmd-Alt-]",run:Pnt},{key:"Ctrl-Alt-[",run:Mnt},{key:"Ctrl-Alt-]",run:Lnt}],Fnt={placeholderDOM:null,preparePlaceholder:null,placeholderText:"…"},FU=Sn.define({combine(e){return Jf(e,Fnt)}});function xpe(e){let t=[O1,jnt];return e&&t.push(FU.of(e)),t}function Tpe(e,t){let{state:n}=e,r=n.facet(FU),i=s=>{let o=e.lineBlockAt(e.posAtDOM(s.target)),l=z3(e.state,o.from,o.to);l&&e.dispatch({effects:UT.of(l)}),s.preventDefault()};if(r.placeholderDOM)return r.placeholderDOM(e,i,t);let a=document.createElement("span");return a.textContent=r.placeholderText,a.setAttribute("aria-label",n.phrase("folded code")),a.title=n.phrase("unfold"),a.className="cm-foldPlaceholder",a.onclick=i,a}const UJ=An.replace({widget:new class extends Pd{toDOM(e){return Tpe(e,null)}}});class Bnt extends Pd{constructor(t){super(),this.value=t}eq(t){return this.value==t.value}toDOM(t){return Tpe(t,this.value)}}const Unt={openText:"⌄",closedText:"›",markerDOM:null,domEventHandlers:{},foldingChanged:()=>!1};class gP extends dp{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 znt(e={}){let t=Object.assign(Object.assign({},Unt),e),n=new gP(t,!0),r=new gP(t,!1),i=fa.fromClass(class{constructor(s){this.from=s.viewport.from,this.markers=this.buildMarkers(s)}update(s){(s.docChanged||s.viewportChanged||s.startState.facet(h0)!=s.state.facet(h0)||s.startState.field(O1,!1)!=s.state.field(O1,!1)||Di(s.startState)!=Di(s.state)||t.foldingChanged(s))&&(this.markers=this.buildMarkers(s.view))}buildMarkers(s){let o=new l0;for(let l of s.viewportLineBlocks){let u=z3(s.state,l.from,l.to)?r:U3(s.state,l.from,l.to)?n:null;u&&o.add(l.from,l.from,u)}return o.finish()}}),{domEventHandlers:a}=t;return[i,Utt({class:"cm-foldGutter",markers(s){var o;return((o=s.plugin(i))===null||o===void 0?void 0:o.markers)||Ur.empty},initialSpacer(){return new gP(t,!1)},domEventHandlers:Object.assign(Object.assign({},a),{click:(s,o,l)=>{if(a.click&&a.click(s,o,l))return!0;let u=z3(s.state,o.from,o.to);if(u)return s.dispatch({effects:UT.of(u)}),!0;let c=U3(s.state,o.from,o.to);return c?(s.dispatch({effects:CI.of(c)}),!0):!1}})}),xpe()]}const jnt=dn.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 zT{constructor(t,n){this.specs=t;let r;function i(o){let l=u0.newName();return(r||(r=Object.create(null)))["."+l]=o,l}const a=typeof n.all=="string"?n.all:n.all?i(n.all):void 0,s=n.scope;this.scope=s instanceof gc?o=>o.prop(zg)==s.data:s?o=>o==s:void 0,this.style=ppe(t.map(o=>({tag:o.tag,class:o.class||i(Object.assign({},o,{tag:null}))})),{all:a}).style,this.module=r?new u0(r):null,this.themeType=n.themeType}static define(t,n){return new zT(t,n||{})}}const mL=Sn.define(),kpe=Sn.define({combine(e){return e.length?[e[0]]:null}});function bP(e){let t=e.facet(mL);return t.length?t:e.facet(kpe)}function Cpe(e,t){let n=[Vnt],r;return e instanceof zT&&(e.module&&n.push(dn.styleModule.of(e.module)),r=e.themeType),t!=null&&t.fallback?n.push(kpe.of(e)):r?n.push(mL.computeN([dn.darkTheme],i=>i.facet(dn.darkTheme)==(r=="dark")?[e]:[])):n.push(mL.of(e)),n}class Hnt{constructor(t){this.markCache=Object.create(null),this.tree=Di(t.state),this.decorations=this.buildDeco(t,bP(t.state))}update(t){let n=Di(t.state),r=bP(t.state),i=r!=bP(t.startState);n.length{r.add(s,o,this.markCache[l]||(this.markCache[l]=An.mark({class:l})))},i,a);return r.finish()}}const Vnt=R0.high(fa.fromClass(Hnt,{decorations:e=>e.decorations})),Wnt=zT.define([{tag:Ee.meta,color:"#404740"},{tag:Ee.link,textDecoration:"underline"},{tag:Ee.heading,textDecoration:"underline",fontWeight:"bold"},{tag:Ee.emphasis,fontStyle:"italic"},{tag:Ee.strong,fontWeight:"bold"},{tag:Ee.strikethrough,textDecoration:"line-through"},{tag:Ee.keyword,color:"#708"},{tag:[Ee.atom,Ee.bool,Ee.url,Ee.contentSeparator,Ee.labelName],color:"#219"},{tag:[Ee.literal,Ee.inserted],color:"#164"},{tag:[Ee.string,Ee.deleted],color:"#a11"},{tag:[Ee.regexp,Ee.escape,Ee.special(Ee.string)],color:"#e40"},{tag:Ee.definition(Ee.variableName),color:"#00f"},{tag:Ee.local(Ee.variableName),color:"#30a"},{tag:[Ee.typeName,Ee.namespace],color:"#085"},{tag:Ee.className,color:"#167"},{tag:[Ee.special(Ee.variableName),Ee.macroName],color:"#256"},{tag:Ee.definition(Ee.propertyName),color:"#00c"},{tag:Ee.comment,color:"#940"},{tag:Ee.invalid,color:"#f00"}]),Qnt=dn.baseTheme({"&.cm-focused .cm-matchingBracket":{backgroundColor:"#328c8252"},"&.cm-focused .cm-nonmatchingBracket":{backgroundColor:"#bb555544"}}),Ape=1e4,_pe="()[]{}",Rpe=Sn.define({combine(e){return Jf(e,{afterCursor:!0,brackets:_pe,maxScanDistance:Ape,renderMatch:Ynt})}}),qnt=An.mark({class:"cm-matchingBracket"}),Gnt=An.mark({class:"cm-nonmatchingBracket"});function Ynt(e){let t=[],n=e.matched?qnt:Gnt;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 Znt=Rs.define({create(){return An.none},update(e,t){if(!t.docChanged&&!t.selection)return e;let n=[],r=t.state.facet(Rpe);for(let i of t.state.selection.ranges){if(!i.empty)continue;let a=Af(t.state,i.head,-1,r)||i.head>0&&Af(t.state,i.head-1,1,r)||r.afterCursor&&(Af(t.state,i.head,1,r)||i.headdn.decorations.from(e)}),Xnt=[Znt,Qnt];function Knt(e={}){return[Rpe.of(e),Xnt]}const Ipe=new ir;function gL(e,t,n){let r=e.prop(t<0?ir.openedBy:ir.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 bL(e){let t=e.type.prop(Ipe);return t?t(e.node):e}function Af(e,t,n,r={}){let i=r.maxScanDistance||Ape,a=r.brackets||_pe,s=Di(e),o=s.resolveInner(t,n);for(let l=o;l;l=l.parent){let u=gL(l.type,n,a);if(u&&l.from0?t>=c.from&&tc.from&&t<=c.to))return Jnt(e,t,n,l,c,u,a)}}return ert(e,t,n,s,o.type,i,a)}function Jnt(e,t,n,r,i,a,s){let o=r.parent,l={from:i.from,to:i.to},u=0,c=o==null?void 0:o.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&&a.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),f=0;for(let h=0;!c.next().done&&h<=a;){let g=c.value;n<0&&(h+=g.length);let b=t+h*n;for(let S=n>0?0:g.length-1,w=n>0?g.length:-1;S!=w;S+=n){let E=s.indexOf(g[S]);if(!(E<0||r.resolveInner(b+S,1).type!=i))if(E%2==0==n>0)f++;else{if(f==1)return{start:u,end:{from:b+S,to:b+S+1},matched:E>>1==l>>1};f--}}n>0&&(h+=g.length)}return c.done?{start:u,matched:!1}:null}const trt=Object.create(null),zJ=[ds.none],jJ=[],HJ=Object.create(null),nrt=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"]])nrt[e]=rrt(trt,t);function yP(e,t){jJ.indexOf(e)>-1||(jJ.push(e),console.warn(t))}function rrt(e,t){let n=[];for(let o of t.split(" ")){let l=[];for(let u of o.split(".")){let c=e[u]||Ee[u];c?typeof c=="function"?l.length?l=l.map(c):yP(u,`Modifier ${u} used at start of tag`):l.length?yP(u,`Tag ${u} used as modifier`):l=Array.isArray(c)?c:[c]:yP(u,`Unknown highlighting tag ${u}`)}for(let u of l)n.push(u)}if(!n.length)return 0;let r=t.replace(/ /g,"_"),i=r+" "+n.map(o=>o.id),a=HJ[i];if(a)return a.id;let s=HJ[i]=ds.define({id:zJ.length,name:r,props:[HO({[r]:n})]});return zJ.push(s),s.id}Hi.RTL,Hi.LTR;const irt=e=>{let{state:t}=e,n=t.doc.lineAt(t.selection.main.from),r=UU(e.state,n.from);return r.line?art(e):r.block?ort(e):!1};function BU(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 art=BU(crt,0),srt=BU(Dpe,0),ort=BU((e,t)=>Dpe(e,t,urt(t)),0);function UU(e,t){let n=e.languageDataAt("commentTokens",t);return n.length?n[0]:{}}const BE=50;function lrt(e,{open:t,close:n},r,i){let a=e.sliceDoc(r-BE,r),s=e.sliceDoc(i,i+BE),o=/\s*$/.exec(a)[0].length,l=/^\s*/.exec(s)[0].length,u=a.length-o;if(a.slice(u-t.length,u)==t&&s.slice(l,l+n.length)==n)return{open:{pos:r-o,margin:o&&1},close:{pos:i+l,margin:l&&1}};let c,f;i-r<=2*BE?c=f=e.sliceDoc(r,i):(c=e.sliceDoc(r,r+BE),f=e.sliceDoc(i-BE,i));let h=/^\s*/.exec(c)[0].length,g=/\s*$/.exec(f)[0].length,b=f.length-g-n.length;return c.slice(h,h+t.length)==t&&f.slice(b,b+n.length)==n?{open:{pos:r+h+t.length,margin:/\s/.test(c.charAt(h+t.length))?1:0},close:{pos:i-g-n.length,margin:/\s/.test(f.charAt(b-1))?1:0}}:null}function urt(e){let t=[];for(let n of e.selection.ranges){let r=e.doc.lineAt(n.from),i=n.to<=r.to?r:e.doc.lineAt(n.to),a=t.length-1;a>=0&&t[a].to>r.from?t[a].to=i.to:t.push({from:r.from+/^\s*/.exec(r.text)[0].length,to:i.to})}return t}function Dpe(e,t,n=t.selection.ranges){let r=n.map(a=>UU(t,a.from).block);if(!r.every(a=>a))return null;let i=n.map((a,s)=>lrt(t,r[s],a.from,a.to));if(e!=2&&!i.every(a=>a))return{changes:t.changes(n.map((a,s)=>i[s]?[]:[{from:a.from,insert:r[s].open+" "},{from:a.to,insert:" "+r[s].close}]))};if(e!=1&&i.some(a=>a)){let a=[];for(let s=0,o;si&&(a==s||s>f.from)){i=f.from;let h=/^\s*/.exec(f.text)[0].length,g=h==f.length,b=f.text.slice(h,h+u.length)==u?h:-1;ha.comment<0&&(!a.empty||a.single))){let a=[];for(let{line:o,token:l,indent:u,empty:c,single:f}of r)(f||!c)&&a.push({from:o.from+u,insert:l+" "});let s=t.changes(a);return{changes:s,selection:t.selection.map(s,1)}}else if(e!=1&&r.some(a=>a.comment>=0)){let a=[];for(let{line:s,comment:o,token:l}of r)if(o>=0){let u=s.from+o,c=u+l.length;s.text[c-s.from]==" "&&c++,a.push({from:u,to:c})}return{changes:a}}return null}const yL=Nd.define(),drt=Nd.define(),frt=Sn.define(),Npe=Sn.define({combine(e){return Jf(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)})}}),Ppe=Rs.define({create(){return _f.empty},update(e,t){let n=t.state.facet(Npe),r=t.annotation(yL);if(r){let l=Sl.fromTransaction(t,r.selection),u=r.side,c=u==0?e.undone:e.done;return l?c=j3(c,c.length,n.minDepth,l):c=$pe(c,t.startState.selection),new _f(u==0?r.rest:c,u==0?c:r.rest)}let i=t.annotation(drt);if((i=="full"||i=="before")&&(e=e.isolate()),t.annotation(ls.addToHistory)===!1)return t.changes.empty?e:e.addMapping(t.changes.desc);let a=Sl.fromTransaction(t),s=t.annotation(ls.time),o=t.annotation(ls.userEvent);return a?e=e.addChanges(a,s,o,n,t):t.selection&&(e=e.addSelection(t.startState.selection,s,o,n.newGroupDelay)),(i=="full"||i=="after")&&(e=e.isolate()),e},toJSON(e){return{done:e.done.map(t=>t.toJSON()),undone:e.undone.map(t=>t.toJSON())}},fromJSON(e){return new _f(e.done.map(Sl.fromJSON),e.undone.map(Sl.fromJSON))}});function hrt(e={}){return[Ppe,Npe.of(e),dn.domEventHandlers({beforeinput(t,n){let r=t.inputType=="historyUndo"?Mpe:t.inputType=="historyRedo"?vL:null;return r?(t.preventDefault(),r(n)):!1}})]}function AI(e,t){return function({state:n,dispatch:r}){if(!t&&n.readOnly)return!1;let i=n.field(Ppe,!1);if(!i)return!1;let a=i.pop(e,n,t);return a?(r(a),!0):!1}}const Mpe=AI(0,!1),vL=AI(1,!1),prt=AI(0,!0),mrt=AI(1,!0);class Sl{constructor(t,n,r,i,a){this.changes=t,this.effects=n,this.mapped=r,this.startSelection=i,this.selectionsAfter=a}setSelAfter(t){return new Sl(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 Sl(t.changes&&ns.fromJSON(t.changes),[],t.mapped&&zf.fromJSON(t.mapped),t.startSelection&&vt.fromJSON(t.startSelection),t.selectionsAfter.map(vt.fromJSON))}static fromTransaction(t,n){let r=bc;for(let i of t.startState.facet(frt)){let a=i(t);a.length&&(r=r.concat(a))}return!r.length&&t.changes.empty?null:new Sl(t.changes.invert(t.startState.doc),r,void 0,n||t.startState.selection,bc)}static selection(t){return new Sl(void 0,bc,void 0,void 0,t)}}function j3(e,t,n,r){let i=t+1>n+20?t-n-1:0,a=e.slice(i,t);return a.push(r),a}function grt(e,t){let n=[],r=!1;return e.iterChangedRanges((i,a)=>n.push(i,a)),t.iterChangedRanges((i,a,s,o)=>{for(let l=0;l=u&&s<=c&&(r=!0)}}),r}function brt(e,t){return e.ranges.length==t.ranges.length&&e.ranges.filter((n,r)=>n.empty!=t.ranges[r].empty).length===0}function Lpe(e,t){return e.length?t.length?e.concat(t):e:t}const bc=[],yrt=200;function $pe(e,t){if(e.length){let n=e[e.length-1],r=n.selectionsAfter.slice(Math.max(0,n.selectionsAfter.length-yrt));return r.length&&r[r.length-1].eq(t)?e:(r.push(t),j3(e,e.length-1,1e9,n.setSelAfter(r)))}else return[Sl.selection([t])]}function vrt(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 vP(e,t){if(!e.length)return e;let n=e.length,r=bc;for(;n;){let i=Ort(e[n-1],t,r);if(i.changes&&!i.changes.empty||i.effects.length){let a=e.slice(0,n);return a[n-1]=i,a}else t=i.mapped,n--,r=i.selectionsAfter}return r.length?[Sl.selection(r)]:bc}function Ort(e,t,n){let r=Lpe(e.selectionsAfter.length?e.selectionsAfter.map(o=>o.map(t)):bc,n);if(!e.changes)return Sl.selection(r);let i=e.changes.map(t),a=t.mapDesc(e.changes,!0),s=e.mapped?e.mapped.composeDesc(a):a;return new Sl(i,hr.mapEffects(e.effects,t),s,e.startSelection.map(a),r)}const Srt=/^(input\.type|delete)($|\.)/;class _f{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 _f(this.done,this.undone):this}addChanges(t,n,r,i,a){let s=this.done,o=s[s.length-1];return o&&o.changes&&!o.changes.empty&&t.changes&&(!r||Srt.test(r))&&(!o.selectionsAfter.length&&n-this.prevTime0&&n-this.prevTimen.empty?e.moveByChar(n,t):_I(n,t))}function wo(e){return e.textDirectionAt(e.state.selection.main.head)==Hi.LTR}const Bpe=e=>Fpe(e,!wo(e)),Upe=e=>Fpe(e,wo(e));function zpe(e,t){return Md(e,n=>n.empty?e.moveByGroup(n,t):_I(n,t))}const wrt=e=>zpe(e,!wo(e)),xrt=e=>zpe(e,wo(e));function Trt(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 RI(e,t,n){let r=Di(e).resolveInner(t.head),i=n?ir.closedBy:ir.openedBy;for(let l=t.head;;){let u=n?r.childAfter(l):r.childBefore(l);if(!u)break;Trt(e,u,i)?r=u:l=n?u.to:u.from}let a=r.type.prop(i),s,o;return a&&(s=n?Af(e,r.from,1):Af(e,r.to,-1))&&s.matched?o=n?s.end.to:s.end.from:o=n?r.to:r.from,vt.cursor(o,n?-1:1)}const krt=e=>Md(e,t=>RI(e.state,t,!wo(e))),Crt=e=>Md(e,t=>RI(e.state,t,wo(e)));function jpe(e,t){return Md(e,n=>{if(!n.empty)return _I(n,t);let r=e.moveVertically(n,t);return r.head!=n.head?r:e.moveToLineBoundary(n,t)})}const Hpe=e=>jpe(e,!1),Vpe=e=>jpe(e,!0);function Wpe(e){let t=e.scrollDOM.clientHeights.empty?e.moveVertically(s,t,n.height):_I(s,t));if(i.eq(r.selection))return!1;let a;if(n.selfScroll){let s=e.coordsAtPos(r.selection.main.head),o=e.scrollDOM.getBoundingClientRect(),l=o.top+n.marginTop,u=o.bottom-n.marginBottom;s&&s.top>l&&s.bottomQpe(e,!1),OL=e=>Qpe(e,!0);function I0(e,t,n){let r=e.lineBlockAt(t.head),i=e.moveToLineBoundary(t,n);if(i.head==t.head&&i.head!=(n?r.to:r.from)&&(i=e.moveToLineBoundary(t,n,!1)),!n&&i.head==r.from&&r.length){let a=/^\s*/.exec(e.state.sliceDoc(r.from,Math.min(r.from+100,r.to)))[0].length;a&&t.head!=r.from+a&&(i=vt.cursor(r.from+a))}return i}const Art=e=>Md(e,t=>I0(e,t,!0)),_rt=e=>Md(e,t=>I0(e,t,!1)),Rrt=e=>Md(e,t=>I0(e,t,!wo(e))),Irt=e=>Md(e,t=>I0(e,t,wo(e))),Drt=e=>Md(e,t=>vt.cursor(e.lineBlockAt(t.head).from,1)),Nrt=e=>Md(e,t=>vt.cursor(e.lineBlockAt(t.head).to,-1));function Prt(e,t,n){let r=!1,i=WO(e.selection,a=>{let s=Af(e,a.head,-1)||Af(e,a.head,1)||a.head>0&&Af(e,a.head-1,1)||a.headPrt(e,t,!1);function Bc(e,t){let n=WO(e.state.selection,r=>{let i=t(r);return vt.range(r.anchor,i.head,i.goalColumn,i.bidiLevel||void 0)});return n.eq(e.state.selection)?!1:(e.dispatch(eh(e.state,n)),!0)}function qpe(e,t){return Bc(e,n=>e.moveByChar(n,t))}const Gpe=e=>qpe(e,!wo(e)),Ype=e=>qpe(e,wo(e));function Zpe(e,t){return Bc(e,n=>e.moveByGroup(n,t))}const Lrt=e=>Zpe(e,!wo(e)),$rt=e=>Zpe(e,wo(e)),Frt=e=>Bc(e,t=>RI(e.state,t,!wo(e))),Brt=e=>Bc(e,t=>RI(e.state,t,wo(e)));function Xpe(e,t){return Bc(e,n=>e.moveVertically(n,t))}const Kpe=e=>Xpe(e,!1),Jpe=e=>Xpe(e,!0);function eme(e,t){return Bc(e,n=>e.moveVertically(n,t,Wpe(e).height))}const WJ=e=>eme(e,!1),QJ=e=>eme(e,!0),Urt=e=>Bc(e,t=>I0(e,t,!0)),zrt=e=>Bc(e,t=>I0(e,t,!1)),jrt=e=>Bc(e,t=>I0(e,t,!wo(e))),Hrt=e=>Bc(e,t=>I0(e,t,wo(e))),Vrt=e=>Bc(e,t=>vt.cursor(e.lineBlockAt(t.head).from)),Wrt=e=>Bc(e,t=>vt.cursor(e.lineBlockAt(t.head).to)),qJ=({state:e,dispatch:t})=>(t(eh(e,{anchor:0})),!0),GJ=({state:e,dispatch:t})=>(t(eh(e,{anchor:e.doc.length})),!0),YJ=({state:e,dispatch:t})=>(t(eh(e,{anchor:e.selection.main.anchor,head:0})),!0),ZJ=({state:e,dispatch:t})=>(t(eh(e,{anchor:e.selection.main.anchor,head:e.doc.length})),!0),Qrt=({state:e,dispatch:t})=>(t(e.update({selection:{anchor:0,head:e.doc.length},userEvent:"select"})),!0),qrt=({state:e,dispatch:t})=>{let n=II(e).map(({from:r,to:i})=>vt.range(r,Math.min(i+1,e.doc.length)));return t(e.update({selection:vt.create(n),userEvent:"select"})),!0},Grt=({state:e,dispatch:t})=>{let n=WO(e.selection,r=>{var i;let a=Di(e).resolveStack(r.from,1);for(let s=a;s;s=s.next){let{node:o}=s;if((o.from=r.to||o.to>r.to&&o.from<=r.from)&&(!((i=o.parent)===null||i===void 0)&&i.parent))return vt.range(o.to,o.from)}return r});return t(eh(e,n)),!0},Yrt=({state:e,dispatch:t})=>{let n=e.selection,r=null;return n.ranges.length>1?r=vt.create([n.main]):n.main.empty||(r=vt.create([vt.cursor(n.main.head)])),r?(t(eh(e,r)),!0):!1};function jT(e,t){if(e.state.readOnly)return!1;let n="delete.selection",{state:r}=e,i=r.changeByRange(a=>{let{from:s,to:o}=a;if(s==o){let l=t(a);ls&&(n="delete.forward",l=AA(e,l,!0)),s=Math.min(s,l),o=Math.max(o,l)}else s=AA(e,s,!1),o=AA(e,o,!0);return s==o?{range:a}:{changes:{from:s,to:o},range:vt.cursor(s,si(e)))r.between(t,t,(i,a)=>{it&&(t=n?a:i)});return t}const tme=(e,t)=>jT(e,n=>{let r=n.from,{state:i}=e,a=i.doc.lineAt(r),s,o;if(!t&&r>a.from&&rtme(e,!1),nme=e=>tme(e,!0),rme=(e,t)=>jT(e,n=>{let r=n.head,{state:i}=e,a=i.doc.lineAt(r),s=i.charCategorizer(r);for(let o=null;;){if(r==(t?a.to:a.from)){r==n.head&&a.number!=(t?i.doc.lines:1)&&(r+=t?1:-1);break}let l=qs(a.text,r-a.from,t)+a.from,u=a.text.slice(Math.min(r,l)-a.from,Math.max(r,l)-a.from),c=s(u);if(o!=null&&c!=o)break;(u!=" "||r!=n.head)&&(o=c),r=l}return r}),ime=e=>rme(e,!1),Zrt=e=>rme(e,!0),Xrt=e=>jT(e,t=>{let n=e.lineBlockAt(t.head).to;return t.headjT(e,t=>{let n=e.moveToLineBoundary(t,!1).head;return t.head>n?n:Math.max(0,t.head-1)}),Jrt=e=>jT(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:Nr.of(["",""])},range:vt.cursor(r.from)}));return t(e.update(n,{scrollIntoView:!0,userEvent:"input"})),!0},tit=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=e.changeByRange(r=>{if(!r.empty||r.from==0||r.from==e.doc.length)return{range:r};let i=r.from,a=e.doc.lineAt(i),s=i==a.from?i-1:qs(a.text,i-a.from,!1)+a.from,o=i==a.to?i+1:qs(a.text,i-a.from,!0)+a.from;return{changes:{from:s,to:o,insert:e.doc.slice(i,o).append(e.doc.slice(s,i))},range:vt.cursor(o)}});return n.changes.empty?!1:(t(e.update(n,{scrollIntoView:!0,userEvent:"move.character"})),!0)};function II(e){let t=[],n=-1;for(let r of e.selection.ranges){let i=e.doc.lineAt(r.from),a=e.doc.lineAt(r.to);if(!r.empty&&r.to==a.from&&(a=e.doc.lineAt(r.to-1)),n>=i.number){let s=t[t.length-1];s.to=a.to,s.ranges.push(r)}else t.push({from:i.from,to:a.to,ranges:[r]});n=a.number+1}return t}function ame(e,t,n){if(e.readOnly)return!1;let r=[],i=[];for(let a of II(e)){if(n?a.to==e.doc.length:a.from==0)continue;let s=e.doc.lineAt(n?a.to+1:a.from-1),o=s.length+1;if(n){r.push({from:a.to,to:s.to},{from:a.from,insert:s.text+e.lineBreak});for(let l of a.ranges)i.push(vt.range(Math.min(e.doc.length,l.anchor+o),Math.min(e.doc.length,l.head+o)))}else{r.push({from:s.from,to:a.from},{from:a.to,insert:e.lineBreak+s.text});for(let l of a.ranges)i.push(vt.range(l.anchor-o,l.head-o))}}return r.length?(t(e.update({changes:r,scrollIntoView:!0,selection:vt.create(i,e.selection.mainIndex),userEvent:"move.line"})),!0):!1}const nit=({state:e,dispatch:t})=>ame(e,t,!1),rit=({state:e,dispatch:t})=>ame(e,t,!0);function sme(e,t,n){if(e.readOnly)return!1;let r=[];for(let i of II(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 iit=({state:e,dispatch:t})=>sme(e,t,!1),ait=({state:e,dispatch:t})=>sme(e,t,!0),sit=e=>{if(e.state.readOnly)return!1;let{state:t}=e,n=t.changes(II(t).map(({from:i,to:a})=>(i>0?i--:ae.moveVertically(i,!0)).map(n);return e.dispatch({changes:n,selection:r,scrollIntoView:!0,userEvent:"delete.line"}),!0};function oit(e,t){if(/\(\)|\[\]|\{\}/.test(e.sliceDoc(t-1,t+1)))return{from:t,to:t};let n=Di(e).resolveInner(t),r=n.childBefore(t),i=n.childAfter(t),a;return r&&i&&r.to<=t&&i.from>=t&&(a=r.type.prop(ir.closedBy))&&a.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 lit=ome(!1),uit=ome(!0);function ome(e){return({state:t,dispatch:n})=>{if(t.readOnly)return!1;let r=t.changeByRange(i=>{let{from:a,to:s}=i,o=t.doc.lineAt(a),l=!e&&a==s&&oit(t,a);e&&(a=s=(s<=o.to?o:t.doc.lineAt(s)).to);let u=new kI(t,{simulateBreak:a,simulateDoubleBreak:!!l}),c=LU(u,a);for(c==null&&(c=kd(/^\s*/.exec(t.doc.lineAt(a).text)[0],t.tabSize));so.from&&a{let i=[];for(let s=r.from;s<=r.to;){let o=e.doc.lineAt(s);o.number>n&&(r.empty||r.to>o.from)&&(t(o,i,r),n=o.number),s=o.to+1}let a=e.changes(i);return{changes:i,range:vt.range(a.mapPos(r.anchor,1),a.mapPos(r.head,1))}})}const cit=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let n=Object.create(null),r=new kI(e,{overrideIndentation:a=>{let s=n[a];return s??-1}}),i=zU(e,(a,s,o)=>{let l=LU(r,a.from);if(l==null)return;/\S/.test(a.text)||(l=0);let u=/^\s*/.exec(a.text)[0],c=mx(e,l);(u!=c||o.frome.readOnly?!1:(t(e.update(zU(e,(n,r)=>{r.push({from:n.from,insert:e.facet(FT)})}),{userEvent:"input.indent"})),!0),ume=({state:e,dispatch:t})=>e.readOnly?!1:(t(e.update(zU(e,(n,r)=>{let i=/^\s*/.exec(n.text)[0];if(!i)return;let a=kd(i,e.tabSize),s=0,o=mx(e,Math.max(0,a-B3(e)));for(;s({mac:e.key,run:e.run,shift:e.shift}))),hit=[{key:"Alt-ArrowLeft",mac:"Ctrl-ArrowLeft",run:krt,shift:Frt},{key:"Alt-ArrowRight",mac:"Ctrl-ArrowRight",run:Crt,shift:Brt},{key:"Alt-ArrowUp",run:nit},{key:"Shift-Alt-ArrowUp",run:iit},{key:"Alt-ArrowDown",run:rit},{key:"Shift-Alt-ArrowDown",run:ait},{key:"Escape",run:Yrt},{key:"Mod-Enter",run:uit},{key:"Alt-l",mac:"Ctrl-l",run:qrt},{key:"Mod-i",run:Grt,preventDefault:!0},{key:"Mod-[",run:ume},{key:"Mod-]",run:lme},{key:"Mod-Alt-\\",run:cit},{key:"Shift-Mod-k",run:sit},{key:"Shift-Mod-\\",run:Mrt},{key:"Mod-/",run:irt},{key:"Alt-A",run:srt}].concat(fit),pit={key:"Tab",run:lme,shift:ume};function Ai(){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 uO{constructor(t,n,r=0,i=t.length,a,s){this.test=s,this.value={from:0,to:0},this.done=!1,this.matches=[],this.buffer="",this.bufferPos=0,this.iter=t.iterRange(r,i),this.bufferStart=r,this.normalize=a?o=>a(XJ(o)):XJ,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 Hs(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=bU(t),r=this.bufferStart+this.bufferPos;this.bufferPos+=fc(t);let i=this.normalize(n);for(let a=0,s=r;;a++){let o=i.charCodeAt(a),l=this.match(o,s);if(a==i.length-1){if(l)return this.value=l,this;break}s==r&&athis.to&&(this.curLine=this.curLine.slice(0,this.to-this.curLineStart)),this.iter.next())}nextLine(){this.curLineStart=this.curLineStart+this.curLine.length+1,this.curLineStart>this.to?this.curLine="":this.getLine(0)}next(){for(let t=this.matchPos-this.curLineStart;;){this.re.lastIndex=t;let n=this.matchPos<=this.to&&this.re.exec(this.curLine);if(n){let r=this.curLineStart+n.index,i=r+n[0].length;if(this.matchPos=H3(this.text,i+(r==i?1:0)),r==this.curLineStart+this.curLine.length&&this.nextLine(),(rthis.value.to)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this;t=this.matchPos-this.curLineStart}else if(this.curLineStart+this.curLine.length=r||i.to<=n){let o=new mv(n,t.sliceString(n,r));return OP.set(t,o),o}if(i.from==n&&i.to==r)return i;let{text:a,from:s}=i;return s>n&&(a=t.sliceString(n,s)+a,s=n),i.to=this.to?this.to:this.text.lineAt(t).to}next(){for(;;){let t=this.re.lastIndex=this.matchPos-this.flat.from,n=this.re.exec(this.flat.text);if(n&&!n[0]&&n.index==t&&(this.re.lastIndex=t+1,n=this.re.exec(this.flat.text)),n){let r=this.flat.from+n.index,i=r+n[0].length;if((this.flat.to>=this.to||n.index+n[0].length<=this.flat.text.length-10)&&(!this.test||this.test(r,i,n)))return this.value={from:r,to:i,match:n},this.matchPos=H3(this.text,i+(r==i?1:0)),this}if(this.flat.to==this.to)return this.done=!0,this;this.flat=mv.get(this.text,this.flat.from,this.chunkEnd(this.flat.from+this.flat.text.length*2))}}}typeof Symbol<"u"&&(fme.prototype[Symbol.iterator]=hme.prototype[Symbol.iterator]=function(){return this});function mit(e){try{return new RegExp(e,jU),!0}catch{return!1}}function H3(e,t){if(t>=e.length)return t;let n=e.lineAt(t),r;for(;t=56320&&r<57344;)t++;return t}function EL(e){let t=String(e.state.doc.lineAt(e.state.selection.main.head).number),n=Ai("input",{class:"cm-textfield",name:"line",value:t}),r=Ai("form",{class:"cm-gotoLine",onkeydown:a=>{a.keyCode==27?(a.preventDefault(),e.dispatch({effects:V3.of(!1)}),e.focus()):a.keyCode==13&&(a.preventDefault(),i())},onsubmit:a=>{a.preventDefault(),i()}},Ai("label",e.state.phrase("Go to line"),": ",n)," ",Ai("button",{class:"cm-button",type:"submit"},e.state.phrase("go")));function i(){let a=/^([+-])?(\d+)?(:\d+)?(%)?$/.exec(n.value);if(!a)return;let{state:s}=e,o=s.doc.lineAt(s.selection.main.head),[,l,u,c,f]=a,h=c?+c.slice(1):0,g=u?+u:o.number;if(u&&f){let w=g/100;l&&(w=w*(l=="-"?-1:1)+o.number/s.doc.lines),g=Math.round(s.doc.lines*w)}else u&&l&&(g=g*(l=="-"?-1:1)+o.number);let b=s.doc.line(Math.max(1,Math.min(s.doc.lines,g))),S=vt.cursor(b.from+Math.max(0,Math.min(h,b.length)));e.dispatch({effects:[V3.of(!1),dn.scrollIntoView(S.from,{y:"center"})],selection:S}),e.focus()}return{dom:r}}const V3=hr.define(),KJ=Rs.define({create(){return!0},update(e,t){for(let n of t.effects)n.is(V3)&&(e=n.value);return e},provide:e=>cx.from(e,t=>t?EL:null)}),git=e=>{let t=ux(e,EL);if(!t){let n=[V3.of(!0)];e.state.field(KJ,!1)==null&&n.push(hr.appendConfig.of([KJ,bit])),e.dispatch({effects:n}),t=ux(e,EL)}return t&&t.dom.querySelector("input").select(),!0},bit=dn.baseTheme({".cm-panel.cm-gotoLine":{padding:"2px 6px 4px","& label":{fontSize:"80%"}}}),yit={highlightWordAroundCursor:!1,minSelectionLength:1,maxMatches:100,wholeWords:!1},pme=Sn.define({combine(e){return Jf(e,yit,{highlightWordAroundCursor:(t,n)=>t||n,minSelectionLength:Math.min,maxMatches:Math.min})}});function vit(e){let t=[xit,wit];return e&&t.push(pme.of(e)),t}const Oit=An.mark({class:"cm-selectionMatch"}),Sit=An.mark({class:"cm-selectionMatch cm-selectionMatch-main"});function JJ(e,t,n,r){return(n==0||e(t.sliceDoc(n-1,n))!=Ki.Word)&&(r==t.doc.length||e(t.sliceDoc(r,r+1))!=Ki.Word)}function Eit(e,t,n,r){return e(t.sliceDoc(n,n+1))==Ki.Word&&e(t.sliceDoc(r-1,r))==Ki.Word}const wit=fa.fromClass(class{constructor(e){this.decorations=this.getDeco(e)}update(e){(e.selectionSet||e.docChanged||e.viewportChanged)&&(this.decorations=this.getDeco(e.view))}getDeco(e){let t=e.state.facet(pme),{state:n}=e,r=n.selection;if(r.ranges.length>1)return An.none;let i=r.main,a,s=null;if(i.empty){if(!t.highlightWordAroundCursor)return An.none;let l=n.wordAt(i.head);if(!l)return An.none;s=n.charCategorizer(i.head),a=n.sliceDoc(l.from,l.to)}else{let l=i.to-i.from;if(l200)return An.none;if(t.wholeWords){if(a=n.sliceDoc(i.from,i.to),s=n.charCategorizer(i.head),!(JJ(s,n,i.from,i.to)&&Eit(s,n,i.from,i.to)))return An.none}else if(a=n.sliceDoc(i.from,i.to).trim(),!a)return An.none}let o=[];for(let l of e.visibleRanges){let u=new uO(n.doc,a,l.from,l.to);for(;!u.next().done;){let{from:c,to:f}=u.value;if((!s||JJ(s,n,c,f))&&(i.empty&&c<=i.from&&f>=i.to?o.push(Sit.range(c,f)):(c>=i.to||f<=i.from)&&o.push(Oit.range(c,f)),o.length>t.maxMatches))return An.none}}return An.set(o)}},{decorations:e=>e.decorations}),xit=dn.baseTheme({".cm-selectionMatch":{backgroundColor:"#99ff7780"},".cm-searchMatch .cm-selectionMatch":{backgroundColor:"transparent"}}),Tit=({state:e,dispatch:t})=>{let{selection:n}=e,r=vt.create(n.ranges.map(i=>e.wordAt(i.head)||vt.cursor(i.head)),n.mainIndex);return r.eq(n)?!1:(t(e.update({selection:r})),!0)};function kit(e,t){let{main:n,ranges:r}=e.selection,i=e.wordAt(n.head),a=i&&i.from==n.from&&i.to==n.to;for(let s=!1,o=new uO(e.doc,t,r[r.length-1].to);;)if(o.next(),o.done){if(s)return null;o=new uO(e.doc,t,0,Math.max(0,r[r.length-1].from-1)),s=!0}else{if(s&&r.some(l=>l.from==o.value.from))continue;if(a){let l=e.wordAt(o.value.from);if(!l||l.from!=o.value.from||l.to!=o.value.to)continue}return o.value}}const Cit=({state:e,dispatch:t})=>{let{ranges:n}=e.selection;if(n.some(a=>a.from===a.to))return Tit({state:e,dispatch:t});let r=e.sliceDoc(n[0].from,n[0].to);if(e.selection.ranges.some(a=>e.sliceDoc(a.from,a.to)!=r))return!1;let i=kit(e,r);return i?(t(e.update({selection:e.selection.addRange(vt.range(i.from,i.to),!1),effects:dn.scrollIntoView(i.to)})),!0):!1},QO=Sn.define({combine(e){return Jf(e,{top:!1,caseSensitive:!1,literal:!1,regexp:!1,wholeWord:!1,createPanel:t=>new Bit(t),scrollToMatch:t=>dn.scrollIntoView(t)})}});class mme{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||mit(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 Iit(this):new _it(this)}getCursor(t,n=0,r){let i=t.doc?t:Vr.create({doc:t});return r==null&&(r=i.doc.length),this.regexp?my(this,i,n,r):py(this,i,n,r)}}class gme{constructor(t){this.spec=t}}function py(e,t,n,r){return new uO(t.doc,e.unquoted,n,r,e.caseSensitive?void 0:i=>i.toLowerCase(),e.wholeWord?Ait(t.doc,t.charCategorizer(t.selection.main.head)):void 0)}function Ait(e,t){return(n,r,i,a)=>((a>n||a+i.length=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=py(this.spec,t,Math.max(0,n-this.spec.unquoted.length),Math.min(r+this.spec.unquoted.length,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}function my(e,t,n,r){return new fme(t.doc,e.search,{ignoreCase:!e.caseSensitive,test:e.wholeWord?Rit(t.charCategorizer(t.selection.main.head)):void 0},n,r)}function W3(e,t){return e.slice(qs(e,t,!1),t)}function Q3(e,t){return e.slice(t,qs(e,t))}function Rit(e){return(t,n,r)=>!r[0].length||(e(W3(r.input,r.index))!=Ki.Word||e(Q3(r.input,r.index))!=Ki.Word)&&(e(Q3(r.input,r.index+r[0].length))!=Ki.Word||e(W3(r.input,r.index+r[0].length))!=Ki.Word)}class Iit extends gme{nextMatch(t,n,r){let i=my(this.spec,t,r,t.doc.length).next();return i.done&&(i=my(this.spec,t,0,n).next()),i.done?null:i.value}prevMatchInRange(t,n,r){for(let i=1;;i++){let a=Math.max(n,r-i*1e4),s=my(this.spec,t,a,r),o=null;for(;!s.next().done;)o=s.value;if(o&&(a==n||o.from>a+10))return o;if(a==n)return null}}prevMatch(t,n,r){return this.prevMatchInRange(t,0,n)||this.prevMatchInRange(t,r,t.doc.length)}getReplacement(t){return this.spec.unquote(this.spec.replace).replace(/\$([$&\d+])/g,(n,r)=>r=="$"?"$":r=="&"?t.match[0]:r!="0"&&+r=n)return null;i.push(r.value)}return i}highlight(t,n,r,i){let a=my(this.spec,t,Math.max(0,n-250),Math.min(r+250,t.doc.length));for(;!a.next().done;)i(a.value.from,a.value.to)}}const gx=hr.define(),HU=hr.define(),Zm=Rs.define({create(e){return new SP(wL(e).create(),null)},update(e,t){for(let n of t.effects)n.is(gx)?e=new SP(n.value.create(),e.panel):n.is(HU)&&(e=new SP(e.query,n.value?VU:null));return e},provide:e=>cx.from(e,t=>t.panel)});class SP{constructor(t,n){this.query=t,this.panel=n}}const Dit=An.mark({class:"cm-searchMatch"}),Nit=An.mark({class:"cm-searchMatch cm-searchMatch-selected"}),Pit=fa.fromClass(class{constructor(e){this.view=e,this.decorations=this.highlight(e.state.field(Zm))}update(e){let t=e.state.field(Zm);(t!=e.startState.field(Zm)||e.docChanged||e.selectionSet||e.viewportChanged)&&(this.decorations=this.highlight(t))}highlight({query:e,panel:t}){if(!t||!e.spec.valid)return An.none;let{view:n}=this,r=new l0;for(let i=0,a=n.visibleRanges,s=a.length;ia[i+1].from-2*250;)l=a[++i].to;e.highlight(n.state,o,l,(u,c)=>{let f=n.state.selection.ranges.some(h=>h.from==u&&h.to==c);r.add(u,c,f?Nit:Dit)})}return r.finish()}},{decorations:e=>e.decorations});function HT(e){return t=>{let n=t.state.field(Zm,!1);return n&&n.query.spec.valid?e(t,n):vme(t)}}const q3=HT((e,{query:t})=>{let{to:n}=e.state.selection.main,r=t.nextMatch(e.state,n,n);if(!r)return!1;let i=vt.single(r.from,r.to),a=e.state.facet(QO);return e.dispatch({selection:i,effects:[WU(e,r),a.scrollToMatch(i.main,e)],userEvent:"select.search"}),yme(e),!0}),G3=HT((e,{query:t})=>{let{state:n}=e,{from:r}=n.selection.main,i=t.prevMatch(n,r,r);if(!i)return!1;let a=vt.single(i.from,i.to),s=e.state.facet(QO);return e.dispatch({selection:a,effects:[WU(e,i),s.scrollToMatch(a.main,e)],userEvent:"select.search"}),yme(e),!0}),Mit=HT((e,{query:t})=>{let n=t.matchAll(e.state,1e3);return!n||!n.length?!1:(e.dispatch({selection:vt.create(n.map(r=>vt.range(r.from,r.to))),userEvent:"select.search.matches"}),!0)}),Lit=({state:e,dispatch:t})=>{let n=e.selection;if(n.ranges.length>1||n.main.empty)return!1;let{from:r,to:i}=n.main,a=[],s=0;for(let o=new uO(e.doc,e.sliceDoc(r,i));!o.next().done;){if(a.length>1e3)return!1;o.value.from==r&&(s=a.length),a.push(vt.range(o.value.from,o.value.to))}return t(e.update({selection:vt.create(a,s),userEvent:"select.search.matches"})),!0},eee=HT((e,{query:t})=>{let{state:n}=e,{from:r,to:i}=n.selection.main;if(n.readOnly)return!1;let a=t.nextMatch(n,r,r);if(!a)return!1;let s=[],o,l,u=[];if(a.from==r&&a.to==i&&(l=n.toText(t.getReplacement(a)),s.push({from:a.from,to:a.to,insert:l}),a=t.nextMatch(n,a.from,a.to),u.push(dn.announce.of(n.phrase("replaced match on line $",n.doc.lineAt(r).number)+"."))),a){let c=s.length==0||s[0].from>=a.to?0:a.to-a.from-l.length;o=vt.single(a.from-c,a.to-c),u.push(WU(e,a)),u.push(n.facet(QO).scrollToMatch(o.main,e))}return e.dispatch({changes:s,selection:o,effects:u,userEvent:"input.replace"}),!0}),$it=HT((e,{query:t})=>{if(e.state.readOnly)return!1;let n=t.matchAll(e.state,1e9).map(i=>{let{from:a,to:s}=i;return{from:a,to:s,insert:t.getReplacement(i)}});if(!n.length)return!1;let r=e.state.phrase("replaced $ matches",n.length)+".";return e.dispatch({changes:n,effects:dn.announce.of(r),userEvent:"input.replace.all"}),!0});function VU(e){return e.state.facet(QO).createPanel(e)}function wL(e,t){var n,r,i,a,s;let o=e.selection.main,l=o.empty||o.to>o.from+100?"":e.sliceDoc(o.from,o.to);if(t&&!l)return t;let u=e.facet(QO);return new mme({search:((n=t==null?void 0:t.literal)!==null&&n!==void 0?n:u.literal)?l:l.replace(/\n/g,"\\n"),caseSensitive:(r=t==null?void 0:t.caseSensitive)!==null&&r!==void 0?r:u.caseSensitive,literal:(i=t==null?void 0:t.literal)!==null&&i!==void 0?i:u.literal,regexp:(a=t==null?void 0:t.regexp)!==null&&a!==void 0?a:u.regexp,wholeWord:(s=t==null?void 0:t.wholeWord)!==null&&s!==void 0?s:u.wholeWord})}function bme(e){let t=ux(e,VU);return t&&t.dom.querySelector("[main-field]")}function yme(e){let t=bme(e);t&&t==e.root.activeElement&&t.select()}const vme=e=>{let t=e.state.field(Zm,!1);if(t&&t.panel){let n=bme(e);if(n&&n!=e.root.activeElement){let r=wL(e.state,t.query.spec);r.valid&&e.dispatch({effects:gx.of(r)}),n.focus(),n.select()}}else e.dispatch({effects:[HU.of(!0),t?gx.of(wL(e.state,t.query.spec)):hr.appendConfig.of(zit)]});return!0},Ome=e=>{let t=e.state.field(Zm,!1);if(!t||!t.panel)return!1;let n=ux(e,VU);return n&&n.dom.contains(e.root.activeElement)&&e.focus(),e.dispatch({effects:HU.of(!1)}),!0},Fit=[{key:"Mod-f",run:vme,scope:"editor search-panel"},{key:"F3",run:q3,shift:G3,scope:"editor search-panel",preventDefault:!0},{key:"Mod-g",run:q3,shift:G3,scope:"editor search-panel",preventDefault:!0},{key:"Escape",run:Ome,scope:"editor search-panel"},{key:"Mod-Shift-l",run:Lit},{key:"Mod-Alt-g",run:git},{key:"Mod-d",run:Cit,preventDefault:!0}];class Bit{constructor(t){this.view=t;let n=this.query=t.state.field(Zm).query.spec;this.commit=this.commit.bind(this),this.searchField=Ai("input",{value:n.search,placeholder:Jl(t,"Find"),"aria-label":Jl(t,"Find"),class:"cm-textfield",name:"search",form:"","main-field":"true",onchange:this.commit,onkeyup:this.commit}),this.replaceField=Ai("input",{value:n.replace,placeholder:Jl(t,"Replace"),"aria-label":Jl(t,"Replace"),class:"cm-textfield",name:"replace",form:"",onchange:this.commit,onkeyup:this.commit}),this.caseField=Ai("input",{type:"checkbox",name:"case",form:"",checked:n.caseSensitive,onchange:this.commit}),this.reField=Ai("input",{type:"checkbox",name:"re",form:"",checked:n.regexp,onchange:this.commit}),this.wordField=Ai("input",{type:"checkbox",name:"word",form:"",checked:n.wholeWord,onchange:this.commit});function r(i,a,s){return Ai("button",{class:"cm-button",name:i,onclick:a,type:"button"},s)}this.dom=Ai("div",{onkeydown:i=>this.keydown(i),class:"cm-search"},[this.searchField,r("next",()=>q3(t),[Jl(t,"next")]),r("prev",()=>G3(t),[Jl(t,"previous")]),r("select",()=>Mit(t),[Jl(t,"all")]),Ai("label",null,[this.caseField,Jl(t,"match case")]),Ai("label",null,[this.reField,Jl(t,"regexp")]),Ai("label",null,[this.wordField,Jl(t,"by word")]),...t.state.readOnly?[]:[Ai("br"),this.replaceField,r("replace",()=>eee(t),[Jl(t,"replace")]),r("replaceAll",()=>$it(t),[Jl(t,"replace all")])],Ai("button",{name:"close",onclick:()=>Ome(t),"aria-label":Jl(t,"close"),type:"button"},["×"])])}commit(){let t=new mme({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:gx.of(t)}))}keydown(t){Xet(this.view,t,"search-panel")?t.preventDefault():t.keyCode==13&&t.target==this.searchField?(t.preventDefault(),(t.shiftKey?G3:q3)(this.view)):t.keyCode==13&&t.target==this.replaceField&&(t.preventDefault(),eee(this.view))}update(t){for(let n of t.transactions)for(let r of n.effects)r.is(gx)&&!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(QO).top}}function Jl(e,t){return e.state.phrase(t)}const _A=30,RA=/[\s\.,:;?!]/;function WU(e,{from:t,to:n}){let r=e.state.doc.lineAt(t),i=e.state.doc.lineAt(n).to,a=Math.max(r.from,t-_A),s=Math.min(i,n+_A),o=e.state.sliceDoc(a,s);if(a!=r.from){for(let l=0;l<_A;l++)if(!RA.test(o[l+1])&&RA.test(o[l])){o=o.slice(l);break}}if(s!=i){for(let l=o.length-1;l>o.length-_A;l--)if(!RA.test(o[l-1])&&RA.test(o[l])){o=o.slice(0,l);break}}return dn.announce.of(`${e.state.phrase("current match")}. ${o} ${e.state.phrase("on line")} ${r.number}.`)}const Uit=dn.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"}}),zit=[Zm,R0.low(Pit),Uit];class QU{constructor(t,n,r){this.state=t,this.pos=n,this.explicit=r,this.abortListeners=[]}tokenBefore(t){let n=Di(this.state).resolveInner(this.pos,-1);for(;n&&t.indexOf(n.name)<0;)n=n.parent;return n?{from:n.from,to:this.pos,text:this.state.sliceDoc(n.from,this.pos),type:n.type}:null}matchBefore(t){let n=this.state.doc.lineAt(this.pos),r=Math.max(n.from,this.pos-250),i=n.text.slice(r-n.from,this.pos-n.from),a=i.search(Eme(t,!1));return a<0?null:{from:r+a,to:this.pos,text:i.slice(a)}}get aborted(){return this.abortListeners==null}addEventListener(t,n){t=="abort"&&this.abortListeners&&this.abortListeners.push(n)}}function tee(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 jit(e){let t=Object.create(null),n=Object.create(null);for(let{label:i}of e){t[i[0]]=!0;for(let a=1;atypeof i=="string"?{label:i}:i),[n,r]=t.every(i=>/^\w+$/.test(i.label))?[/\w*$/,/\w+$/]:jit(t);return i=>{let a=i.matchBefore(r);return a||i.explicit?{from:a?a.from:i.pos,options:t,validFor:n}:null}}function Hit(e,t){return n=>{for(let r=Di(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 nee{constructor(t,n,r,i){this.completion=t,this.source=n,this.match=r,this.score=i}}function Xm(e){return e.selection.main.from}function Eme(e,t){var n;let{source:r}=e,i=t&&r[0]!="^",a=r[r.length-1]!="$";return!i&&!a?e:new RegExp(`${i?"^":""}(?:${r})${a?"$":""}`,(n=e.flags)!==null&&n!==void 0?n:e.ignoreCase?"i":"")}const wme=Nd.define();function Vit(e,t,n,r){let{main:i}=e.selection,a=n-i.from,s=r-i.from;return Object.assign(Object.assign({},e.changeByRange(o=>o!=i&&n!=r&&e.sliceDoc(o.from+a,o.from+s)!=e.sliceDoc(n,r)?{range:o}:{changes:{from:o.from+a,to:r==i.from?o.to:o.from+s,insert:t},range:vt.cursor(o.from+a+t.length)})),{scrollIntoView:!0,userEvent:"input.complete"})}const ree=new WeakMap;function Wit(e){if(!Array.isArray(e))return e;let t=ree.get(e);return t||ree.set(e,t=Sme(e)),t}const Y3=hr.define(),bx=hr.define();class Qit{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&&I<=57||I>=97&&I<=122?2:I>=65&&I<=90?1:0:(A=bU(I))!=A.toLowerCase()?1:A!=A.toUpperCase()?2:0;(!x||D==1&&w||C==0&&D!=0)&&(n[f]==I||r[f]==I&&(h=!0)?s[f++]=x:s.length&&(E=!1)),C=D,x+=fc(I)}return f==l&&s[0]==0&&E?this.result(-100+(h?-200:0),s,t):g==l&&b==0?this.ret(-200-t.length+(S==t.length?0:-100),[0,S]):o>-1?this.ret(-700-t.length,[o,o+this.pattern.length]):g==l?this.ret(-900-t.length,[b,S]):f==l?this.result(-100+(h?-200:0)+-700+(E?0:-1100),s,t):n.length==2?!1:this.result((i[0]?-700:0)+-200+-1100,i,t)}result(t,n,r){let i=[],a=0;for(let s of n){let o=s+(this.astral?fc(Hs(r,s)):1);a&&i[a-1]==s?i[a-1]=o:(i[a++]=s,i[a++]=o)}return this.ret(t-r.length,i)}}const Qs=Sn.define({combine(e){return Jf(e,{activateOnTyping:!0,activateOnTypingDelay:100,selectOnOpen:!0,override:null,closeOnBlur:!0,maxRenderedOptions:100,defaultKeymap:!0,tooltipClass:()=>"",optionClass:()=>"",aboveCursor:!1,icons:!0,addToOptions:[],positionInfo:qit,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=>iee(t(r),n(r)),optionClass:(t,n)=>r=>iee(t(r),n(r)),addToOptions:(t,n)=>t.concat(n)})}});function iee(e,t){return e?t?e+" "+t:e:t}function qit(e,t,n,r,i,a){let s=e.textDirection==Hi.RTL,o=s,l=!1,u="top",c,f,h=t.left-i.left,g=i.right-t.right,b=r.right-r.left,S=r.bottom-r.top;if(o&&h=S||x>t.top?c=n.bottom-t.top:(u="bottom",c=t.bottom-n.top)}let w=(t.bottom-t.top)/a.offsetHeight,E=(t.right-t.left)/a.offsetWidth;return{style:`${u}: ${c/w}px; max-width: ${f/E}px`,class:"cm-completionInfo-"+(l?s?"left-narrow":"right-narrow":o?"left":"right")}}function Git(e){let t=e.addToOptions.slice();return e.icons&&t.push({render(n){let r=document.createElement("div");return r.classList.add("cm-completionIcon"),n.type&&r.classList.add(...n.type.split(/\s+/g).map(i=>"cm-completionIcon-"+i)),r.setAttribute("aria-hidden","true"),r},position:20}),t.push({render(n,r,i,a){let s=document.createElement("span");s.className="cm-completionLabel";let o=n.displayLabel||n.label,l=0;for(let u=0;ul&&s.appendChild(document.createTextNode(o.slice(l,c)));let h=s.appendChild(document.createElement("span"));h.appendChild(document.createTextNode(o.slice(c,f))),h.className="cm-completionMatchedText",l=f}return ln.position-r.position).map(n=>n.render)}function EP(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 Yit{constructor(t,n,r){this.view=t,this.stateField=n,this.applyCompletion=r,this.info=null,this.infoDestroy=null,this.placeInfoReq={read:()=>this.measureInfo(),write:l=>this.placeInfo(l),key:this},this.space=null,this.currentClass="";let i=t.state.field(n),{options:a,selected:s}=i.open,o=t.state.facet(Qs);this.optionContent=Git(o),this.optionClass=o.optionClass,this.tooltipClass=o.tooltipClass,this.range=EP(a.length,s,o.maxRenderedOptions),this.dom=document.createElement("div"),this.dom.className="cm-tooltip-autocomplete",this.updateTooltipClass(t.state),this.dom.addEventListener("mousedown",l=>{let{options:u}=t.state.field(n).open;for(let c=l.target,f;c&&c!=this.dom;c=c.parentNode)if(c.nodeName=="LI"&&(f=/-(\d+)$/.exec(c.id))&&+f[1]{let u=t.state.field(this.stateField,!1);u&&u.tooltip&&t.state.facet(Qs).closeOnBlur&&l.relatedTarget!=t.contentDOM&&t.dispatch({effects:bx.of(null)})}),this.showOptions(a,i.id)}mount(){this.updateSel()}showOptions(t,n){this.list&&this.list.remove(),this.list=this.dom.appendChild(this.createListBox(t,n,this.range)),this.list.addEventListener("scroll",()=>{this.info&&this.view.requestMeasure(this.placeInfoReq)})}update(t){var n;let r=t.state.field(this.stateField),i=t.startState.field(this.stateField);if(this.updateTooltipClass(t.state),r!=i){let{options:a,selected:s,disabled:o}=r.open;(!i.open||i.open.options!=a)&&(this.range=EP(a.length,s,t.state.facet(Qs).maxRenderedOptions),this.showOptions(a,r.id)),this.updateSel(),o!=((n=i.open)===null||n===void 0?void 0:n.disabled)&&this.dom.classList.toggle("cm-tooltip-autocomplete-disabled",!!o)}}updateTooltipClass(t){let n=this.tooltipClass(t);if(n!=this.currentClass){for(let r of this.currentClass.split(" "))r&&this.dom.classList.remove(r);for(let r of n.split(" "))r&&this.dom.classList.add(r);this.currentClass=n}}positioned(t){this.space=t,this.info&&this.view.requestMeasure(this.placeInfoReq)}updateSel(){let t=this.view.state.field(this.stateField),n=t.open;if((n.selected>-1&&n.selected=this.range.to)&&(this.range=EP(n.options.length,n.selected,this.view.state.facet(Qs).maxRenderedOptions),this.showOptions(n.options,t.id)),this.updateSelectedOption(n.selected)){this.destroyInfo();let{completion:r}=n.options[n.selected],{info:i}=r;if(!i)return;let a=typeof i=="string"?document.createTextNode(i):i(r);if(!a)return;"then"in a?a.then(s=>{s&&this.view.state.field(this.stateField,!1)==t&&this.addInfoPane(s,r)}).catch(s=>Tc(this.view.state,s,"completion info")):this.addInfoPane(a,r)}}addInfoPane(t,n){this.destroyInfo();let r=this.info=document.createElement("div");if(r.className="cm-tooltip cm-completionInfo",t.nodeType!=null)r.appendChild(t),this.infoDestroy=null;else{let{dom:i,destroy:a}=t;r.appendChild(i),this.infoDestroy=a||null}this.dom.appendChild(r),this.view.requestMeasure(this.placeInfoReq)}updateSelectedOption(t){let n=null;for(let r=this.list.firstChild,i=this.range.from;r;r=r.nextSibling,i++)r.nodeName!="LI"||!r.id?i--:i==t?r.hasAttribute("aria-selected")||(r.setAttribute("aria-selected","true"),n=r):r.hasAttribute("aria-selected")&&r.removeAttribute("aria-selected");return n&&Xit(this.list,n),n}measureInfo(){let t=this.dom.querySelector("[aria-selected]");if(!t||!this.info)return null;let n=this.dom.getBoundingClientRect(),r=this.info.getBoundingClientRect(),i=t.getBoundingClientRect(),a=this.space;if(!a){let s=this.dom.ownerDocument.defaultView||window;a={left:0,top:0,right:s.innerWidth,bottom:s.innerHeight}}return i.top>Math.min(a.bottom,n.bottom)-10||i.bottomr.from||r.from==0))if(a=h,typeof u!="string"&&u.header)i.appendChild(u.header(u));else{let g=i.appendChild(document.createElement("completion-section"));g.textContent=h}}const c=i.appendChild(document.createElement("li"));c.id=n+"-"+s,c.setAttribute("role","option");let f=this.optionClass(o);f&&(c.className=f);for(let h of this.optionContent){let g=h(o,this.view.state,this.view,l);g&&c.appendChild(g)}}return r.from&&i.classList.add("cm-completionListIncompleteTop"),r.tonew Yit(n,e,t)}function Xit(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 aee(e){return(e.boost||0)*100+(e.apply?10:0)+(e.info?5:0)+(e.type?1:0)}function Kit(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(f=>f.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 nee(c,l.source,u?u(c):[],1e9-n.length));else{let c=new Qit(t.sliceDoc(l.from,l.to));for(let f of l.result.options)if(c.match(f.label)){let h=f.displayLabel?u?u(f,c.matched):[]:c.matched;i(new nee(f,l.source,h,c.score+(f.boost||0)))}}}if(r){let l=Object.create(null),u=0,c=(f,h)=>{var g,b;return((g=f.rank)!==null&&g!==void 0?g:1e9)-((b=h.rank)!==null&&b!==void 0?b:1e9)||(f.namec.score-u.score||o(u.completion,c.completion))){let u=l.completion;!s||s.label!=u.label||s.detail!=u.detail||s.type!=null&&u.type!=null&&s.type!=u.type||s.apply!=u.apply||s.boost!=u.boost?a.push(l):aee(l.completion)>aee(s)&&(a[a.length-1]=l),s=l.completion}return a}class zy{constructor(t,n,r,i,a,s){this.options=t,this.attrs=n,this.tooltip=r,this.timestamp=i,this.selected=a,this.disabled=s}setSelected(t,n){return t==this.selected||t>=this.options.length?this:new zy(this.options,see(n,t),this.tooltip,this.timestamp,t,this.disabled)}static build(t,n,r,i,a){let s=Kit(t,n);if(!s.length)return i&&t.some(l=>l.state==1)?new zy(i.options,i.attrs,i.tooltip,i.timestamp,i.selected,!0):null;let o=n.facet(Qs).selectOnOpen?0:-1;if(i&&i.selected!=o&&i.selected!=-1){let l=i.options[i.selected].completion;for(let u=0;uu.hasResult()?Math.min(l,u.from):l,1e8),create:rat,above:a.aboveCursor},i?i.timestamp:Date.now(),o,!1)}map(t){return new zy(this.options,this.attrs,Object.assign(Object.assign({},this.tooltip),{pos:t.mapPos(this.tooltip.pos)}),this.timestamp,this.selected,this.disabled)}}class Z3{constructor(t,n,r){this.active=t,this.id=n,this.open=r}static start(){return new Z3(tat,"cm-ac-"+Math.floor(Math.random()*2e6).toString(36),null)}update(t){let{state:n}=t,r=n.facet(Qs),a=(r.override||n.languageDataAt("autocomplete",Xm(n)).map(Wit)).map(o=>(this.active.find(u=>u.source==o)||new vl(o,this.active.some(u=>u.state!=0)?1:0)).update(t,r));a.length==this.active.length&&a.every((o,l)=>o==this.active[l])&&(a=this.active);let s=this.open;s&&t.docChanged&&(s=s.map(t.changes)),t.selection||a.some(o=>o.hasResult()&&t.changes.touchesRange(o.from,o.to))||!Jit(a,this.active)?s=zy.build(a,n,this.id,s,r):s&&s.disabled&&!a.some(o=>o.state==1)&&(s=null),!s&&a.every(o=>o.state!=1)&&a.some(o=>o.hasResult())&&(a=a.map(o=>o.hasResult()?new vl(o.source,0):o));for(let o of t.effects)o.is(Tme)&&(s=s&&s.setSelected(o.value,this.id));return a==this.active&&s==this.open?this:new Z3(a,this.id,s)}get tooltip(){return this.open?this.open.tooltip:null}get attrs(){return this.open?this.open.attrs:eat}}function Jit(e,t){if(e==t)return!0;for(let n=0,r=0;;){for(;n-1&&(n["aria-activedescendant"]=e+"-"+t),n}const tat=[];function xL(e){return e.isUserEvent("input.type")?"input":e.isUserEvent("delete.backward")?"delete":null}class vl{constructor(t,n,r=-1){this.source=t,this.state=n,this.explicitPos=r}hasResult(){return!1}update(t,n){let r=xL(t),i=this;r?i=i.handleUserEvent(t,r,n):t.docChanged?i=i.handleChange(t):t.selection&&i.state!=0&&(i=new vl(i.source,0));for(let a of t.effects)if(a.is(Y3))i=new vl(i.source,1,a.value?Xm(t.state):-1);else if(a.is(bx))i=new vl(i.source,0);else if(a.is(xme))for(let s of a.value)s.source==i.source&&(i=s);return i}handleUserEvent(t,n,r){return n=="delete"||!r.activateOnTyping?this.map(t.changes):new vl(this.source,1)}handleChange(t){return t.changes.touchesRange(Xm(t.startState))?new vl(this.source,0):this.map(t.changes)}map(t){return t.empty||this.explicitPos<0?this:new vl(this.source,this.state,t.mapPos(this.explicitPos))}}class gv extends vl{constructor(t,n,r,i,a){super(t,2,n),this.result=r,this.from=i,this.to=a}hasResult(){return!0}handleUserEvent(t,n,r){var i;let a=t.changes.mapPos(this.from),s=t.changes.mapPos(this.to,1),o=Xm(t.state);if((this.explicitPos<0?o<=a:os||n=="delete"&&Xm(t.startState)==this.from)return new vl(this.source,n=="input"&&r.activateOnTyping?1:0);let l=this.explicitPos<0?-1:t.changes.mapPos(this.explicitPos),u;return nat(this.result.validFor,t.state,a,s)?new gv(this.source,l,this.result,a,s):this.result.update&&(u=this.result.update(this.result,a,s,new QU(t.state,o,l>=0)))?new gv(this.source,l,u,u.from,(i=u.to)!==null&&i!==void 0?i:Xm(t.state)):new vl(this.source,1,l)}handleChange(t){return t.changes.touchesRange(this.from,this.to)?new vl(this.source,0):this.map(t.changes)}map(t){return t.empty?this:new gv(this.source,this.explicitPos<0?-1:t.mapPos(this.explicitPos),this.result,t.mapPos(this.from),t.mapPos(this.to,1))}}function nat(e,t,n,r){if(!e)return!1;let i=t.sliceDoc(n,r);return typeof e=="function"?e(i,n,r,t):Eme(e,!0).test(i)}const xme=hr.define({map(e,t){return e.map(n=>n.map(t))}}),Tme=hr.define(),fu=Rs.define({create(){return Z3.start()},update(e,t){return e.update(t)},provide:e=>[_U.from(e,t=>t.tooltip),dn.contentAttributes.from(e,t=>t.attrs)]});function kme(e,t){const n=t.completion.apply||t.completion.label;let r=e.state.field(fu).active.find(i=>i.source==t.source);return r instanceof gv?(typeof n=="string"?e.dispatch(Object.assign(Object.assign({},Vit(e.state,n,r.from,r.to)),{annotations:wme.of(t.completion)})):n(e,t.completion,r.from,r.to),!0):!1}const rat=Zit(fu,kme);function IA(e,t="option"){return n=>{let r=n.state.field(fu,!1);if(!r||!r.open||r.open.disabled||Date.now()-r.open.timestamp-1?r.open.selected+i*(e?1:-1):e?0:s-1;return o<0?o=t=="page"?0:s-1:o>=s&&(o=t=="page"?s-1:0),n.dispatch({effects:Tme.of(o)}),!0}}const iat=e=>{let t=e.state.field(fu,!1);return e.state.readOnly||!t||!t.open||t.open.selected<0||t.open.disabled||Date.now()-t.open.timestampe.state.field(fu,!1)?(e.dispatch({effects:Y3.of(!0)}),!0):!1,sat=e=>{let t=e.state.field(fu,!1);return!t||!t.active.some(n=>n.state!=0)?!1:(e.dispatch({effects:bx.of(null)}),!0)};class oat{constructor(t,n){this.active=t,this.context=n,this.time=Date.now(),this.updates=[],this.done=void 0}}const lat=50,uat=1e3,cat=fa.fromClass(class{constructor(e){this.view=e,this.debounceUpdate=-1,this.running=[],this.debounceAccept=-1,this.pendingStart=!1,this.composing=0;for(let t of e.state.field(fu).active)t.state==1&&this.startQuery(t)}update(e){let t=e.state.field(fu);if(!e.selectionSet&&!e.docChanged&&e.startState.field(fu)==t)return;let n=e.transactions.some(i=>(i.selection||i.docChanged)&&!xL(i));for(let i=0;ilat&&Date.now()-a.time>uat){for(let s of a.context.abortListeners)try{s()}catch(o){Tc(this.view.state,o)}a.context.abortListeners=null,this.running.splice(i--,1)}else a.updates.push(...e.transactions)}this.debounceUpdate>-1&&clearTimeout(this.debounceUpdate),e.transactions.some(i=>i.effects.some(a=>a.is(Y3)))&&(this.pendingStart=!0);let r=this.pendingStart?50:e.state.facet(Qs).activateOnTypingDelay;if(this.debounceUpdate=t.active.some(i=>i.state==1&&!this.running.some(a=>a.active.source==i.source))?setTimeout(()=>this.startUpdate(),r):-1,this.composing!=0)for(let i of e.transactions)xL(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(fu);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=Xm(t),r=new QU(t,n,e.explicitPos==n),i=new oat(e,r);this.running.push(i),Promise.resolve(e.source(r)).then(a=>{i.context.aborted||(i.done=a||null,this.scheduleAccept())},a=>{this.view.dispatch({effects:bx.of(null)}),Tc(this.view.state,a)})}scheduleAccept(){this.running.every(e=>e.done!==void 0)?this.accept():this.debounceAccept<0&&(this.debounceAccept=setTimeout(()=>this.accept(),this.view.state.facet(Qs).updateSyncTime))}accept(){var e;this.debounceAccept>-1&&clearTimeout(this.debounceAccept),this.debounceAccept=-1;let t=[],n=this.view.state.facet(Qs);for(let r=0;rs.source==i.active.source);if(a&&a.state==1)if(i.done==null){let s=new vl(i.active.source,0);for(let o of i.updates)s=s.update(o,n);s.state!=1&&t.push(s)}else this.startQuery(a)}t.length&&this.view.dispatch({effects:xme.of(t)})}},{eventHandlers:{blur(e){let t=this.view.state.field(fu,!1);if(t&&t.tooltip&&this.view.state.facet(Qs).closeOnBlur){let n=t.open&&rpe(this.view,t.open.tooltip);(!n||!n.dom.contains(e.relatedTarget))&&setTimeout(()=>this.view.dispatch({effects:bx.of(null)}),10)}},compositionstart(){this.composing=1},compositionend(){this.composing==3&&setTimeout(()=>this.view.dispatch({effects:Y3.of(!1)}),20),this.composing=0}}}),Cme=dn.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 dat{constructor(t,n,r,i){this.field=t,this.line=n,this.from=r,this.to=i}}class qU{constructor(t,n,r){this.field=t,this.from=n,this.to=r}map(t){let n=t.mapPos(this.from,-1,Ws.TrackDel),r=t.mapPos(this.to,1,Ws.TrackDel);return n==null||r==null?null:new qU(this.field,n,r)}}class GU{constructor(t,n){this.lines=t,this.fieldPositions=n}instantiate(t,n){let r=[],i=[n],a=t.doc.lineAt(n),s=/^\s*/.exec(a.text)[0];for(let l of this.lines){if(r.length){let u=s,c=/^\t*/.exec(l)[0].length;for(let f=0;fnew qU(l.field,i[l.line]+l.from,i[l.line]+l.to));return{text:r,ranges:o}}static parse(t){let n=[],r=[],i=[],a;for(let s of t.split(/\r\n?|\n/)){for(;a=/[#$]\{(?:(\d+)(?::([^}]*))?|([^}]*))\}/.exec(s);){let o=a[1]?+a[1]:null,l=a[2]||a[3]||"",u=-1;for(let c=0;c=u&&f.field++}i.push(new dat(u,r.length,a.index,a.index+l.length)),s=s.slice(0,a.index)+l+s.slice(a.index+a[0].length)}for(let o;o=/\\([{}])/.exec(s);){s=s.slice(0,o.index)+o[1]+s.slice(o.index+o[0].length);for(let l of i)l.line==r.length&&l.from>o.index&&(l.from--,l.to--)}r.push(s)}return new GU(r,i)}}let fat=An.widget({widget:new class extends Pd{toDOM(){let e=document.createElement("span");return e.className="cm-snippetFieldPosition",e}ignoreEvent(){return!1}}}),hat=An.mark({class:"cm-snippetField"});class qO{constructor(t,n){this.ranges=t,this.active=n,this.deco=An.set(t.map(r=>(r.from==r.to?fat:hat).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 qO(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 VT=hr.define({map(e,t){return e&&e.map(t)}}),pat=hr.define(),yx=Rs.define({create(){return null},update(e,t){for(let n of t.effects){if(n.is(VT))return n.value;if(n.is(pat)&&e)return new qO(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=>dn.decorations.from(e,t=>t?t.deco:An.none)});function YU(e,t){return vt.create(e.filter(n=>n.field==t).map(n=>vt.range(n.from,n.to)))}function mat(e){let t=GU.parse(e);return(n,r,i,a)=>{let{text:s,ranges:o}=t.instantiate(n.state,i),l={changes:{from:i,to:a,insert:Nr.of(s)},scrollIntoView:!0,annotations:r?[wme.of(r),ls.userEvent.of("input.complete")]:void 0};if(o.length&&(l.selection=YU(o,0)),o.some(u=>u.field>0)){let u=new qO(o,0),c=l.effects=[VT.of(u)];n.state.field(yx,!1)===void 0&&c.push(hr.appendConfig.of([yx,Oat,Sat,Cme]))}n.dispatch(n.state.update(l))}}function Ame(e){return({state:t,dispatch:n})=>{let r=t.field(yx,!1);if(!r||e<0&&r.active==0)return!1;let i=r.active+e,a=e>0&&!r.ranges.some(s=>s.field==i+e);return n(t.update({selection:YU(r.ranges,i),effects:VT.of(a?null:new qO(r.ranges,i)),scrollIntoView:!0})),!0}}const gat=({state:e,dispatch:t})=>e.field(yx,!1)?(t(e.update({effects:VT.of(null)})),!0):!1,bat=Ame(1),yat=Ame(-1),vat=[{key:"Tab",run:bat,shift:yat},{key:"Escape",run:gat}],oee=Sn.define({combine(e){return e.length?e[0]:vat}}),Oat=R0.highest(jO.compute([oee],e=>e.facet(oee)));function pl(e,t){return Object.assign(Object.assign({},t),{apply:mat(e)})}const Sat=dn.domEventHandlers({mousedown(e,t){let n=t.state.field(yx,!1),r;if(!n||(r=t.posAtCoords({x:e.clientX,y:e.clientY}))==null)return!1;let i=n.ranges.find(a=>a.from<=r&&a.to>=r);return!i||i.field==n.active?!1:(t.dispatch({selection:YU(n.ranges,i.field),effects:VT.of(n.ranges.some(a=>a.field>i.field)?new qO(n.ranges,i.field):null),scrollIntoView:!0}),!0)}}),vx={brackets:["(","[","{","'",'"'],before:")]}:;>",stringPrefixes:[]},jg=hr.define({map(e,t){let n=t.mapPos(e,-1,Ws.TrackAfter);return n??void 0}}),ZU=new class extends b1{};ZU.startSide=1;ZU.endSide=-1;const _me=Rs.define({create(){return Ur.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(jg)&&(e=e.update({add:[ZU.range(n.value,n.value+1)]}));return e}});function Eat(){return[xat,_me]}const wP="()[]{}<>";function Rme(e){for(let t=0;t{if((wat?e.composing:e.compositionStarted)||e.state.readOnly)return!1;let i=e.state.selection.main;if(r.length>2||r.length==2&&fc(Hs(r,0))==1||t!=i.from||n!=i.to)return!1;let a=Cat(e.state,r);return a?(e.dispatch(a),!0):!1}),Tat=({state:e,dispatch:t})=>{if(e.readOnly)return!1;let r=Ime(e,e.selection.main.head).brackets||vx.brackets,i=null,a=e.changeByRange(s=>{if(s.empty){let o=Aat(e.doc,s.head);for(let l of r)if(l==o&&DI(e.doc,s.head)==Rme(Hs(l,0)))return{changes:{from:s.head-l.length,to:s.head+l.length},range:vt.cursor(s.head-l.length)}}return{range:i=s}});return i||t(e.update(a,{scrollIntoView:!0,userEvent:"delete.backward"})),!i},kat=[{key:"Backspace",run:Tat}];function Cat(e,t){let n=Ime(e,e.selection.main.head),r=n.brackets||vx.brackets;for(let i of r){let a=Rme(Hs(i,0));if(t==i)return a==i?Iat(e,i,r.indexOf(i+i+i)>-1,n):_at(e,i,a,n.before||vx.before);if(t==a&&Dme(e,e.selection.main.from))return Rat(e,i,a)}return null}function Dme(e,t){let n=!1;return e.field(_me).between(0,e.doc.length,r=>{r==t&&(n=!0)}),n}function DI(e,t){let n=e.sliceString(t,t+2);return n.slice(0,fc(Hs(n,0)))}function Aat(e,t){let n=e.sliceString(t-2,t);return fc(Hs(n,0))==n.length?n:n.slice(1)}function _at(e,t,n,r){let i=null,a=e.changeByRange(s=>{if(!s.empty)return{changes:[{insert:t,from:s.from},{insert:n,from:s.to}],effects:jg.of(s.to+t.length),range:vt.range(s.anchor+t.length,s.head+t.length)};let o=DI(e.doc,s.head);return!o||/\s/.test(o)||r.indexOf(o)>-1?{changes:{insert:t+n,from:s.head},effects:jg.of(s.head+t.length),range:vt.cursor(s.head+t.length)}:{range:i=s}});return i?null:e.update(a,{scrollIntoView:!0,userEvent:"input.type"})}function Rat(e,t,n){let r=null,i=e.changeByRange(a=>a.empty&&DI(e.doc,a.head)==n?{changes:{from:a.head,to:a.head+n.length,insert:n},range:vt.cursor(a.head+n.length)}:r={range:a});return r?null:e.update(i,{scrollIntoView:!0,userEvent:"input.type"})}function Iat(e,t,n,r){let i=r.stringPrefixes||vx.stringPrefixes,a=null,s=e.changeByRange(o=>{if(!o.empty)return{changes:[{insert:t,from:o.from},{insert:t,from:o.to}],effects:jg.of(o.to+t.length),range:vt.range(o.anchor+t.length,o.head+t.length)};let l=o.head,u=DI(e.doc,l),c;if(u==t){if(lee(e,l))return{changes:{insert:t+t,from:l},effects:jg.of(l+t.length),range:vt.cursor(l+t.length)};if(Dme(e,l)){let h=n&&e.sliceDoc(l,l+t.length*3)==t+t+t?t+t+t:t;return{changes:{from:l,to:l+h.length,insert:h},range:vt.cursor(l+h.length)}}}else{if(n&&e.sliceDoc(l-2*t.length,l)==t+t&&(c=uee(e,l-2*t.length,i))>-1&&lee(e,c))return{changes:{insert:t+t+t+t,from:l},effects:jg.of(l+t.length),range:vt.cursor(l+t.length)};if(e.charCategorizer(l)(u)!=Ki.Word&&uee(e,l,i)>-1&&!Dat(e,l,t,i))return{changes:{insert:t+t,from:l},effects:jg.of(l+t.length),range:vt.cursor(l+t.length)}}return{range:a=o}});return a?null:e.update(s,{scrollIntoView:!0,userEvent:"input.type"})}function lee(e,t){let n=Di(e).resolveInner(t+1);return n.parent&&n.from==t}function Dat(e,t,n,r){let i=Di(e).resolveInner(t,-1),a=r.reduce((s,o)=>Math.max(s,o.length),0);for(let s=0;s<5;s++){let o=e.sliceDoc(i.from,Math.min(i.to,i.from+n.length+a)),l=o.indexOf(n);if(!l||l>-1&&r.indexOf(o.slice(0,l))>-1){let 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 uee(e,t,n){let r=e.charCategorizer(t);if(r(e.sliceDoc(t-1,t))!=Ki.Word)return t;for(let i of n){let a=t-i.length;if(e.sliceDoc(a,t)==i&&r(e.sliceDoc(a-1,a))!=Ki.Word)return a}return-1}function Nat(e={}){return[fu,Qs.of(e),cat,Pat,Cme]}const Nme=[{key:"Ctrl-Space",run:aat},{key:"Escape",run:sat},{key:"ArrowDown",run:IA(!0)},{key:"ArrowUp",run:IA(!1)},{key:"PageDown",run:IA(!0,"page")},{key:"PageUp",run:IA(!1,"page")},{key:"Enter",run:iat}],Pat=R0.highest(jO.computeN([Qs],e=>e.facet(Qs).defaultKeymap?[Nme]:[]));class Mat{constructor(t,n,r){this.from=t,this.to=n,this.diagnostic=r}}class Cg{constructor(t,n,r){this.diagnostics=t,this.panel=n,this.selected=r}static init(t,n,r){let i=t,a=r.facet(Lme).markerFilter;a&&(i=a(i,r));let s=An.set(i.map(o=>o.from==o.to||o.from==o.to-1&&r.doc.lineAt(o.from).to==o.from?An.widget({widget:new Vat(o),diagnostic:o}).range(o.from):An.mark({attributes:{class:"cm-lintRange cm-lintRange-"+o.severity+(o.markClass?" "+o.markClass:"")},diagnostic:o,inclusive:!0}).range(o.from,o.to)),!0);return new Cg(s,n,cO(s))}}function cO(e,t=null,n=0){let r=null;return e.between(n,1e9,(i,a,{spec:s})=>{if(!(t&&s.diagnostic!=t))return r=new Mat(i,a,s.diagnostic),!1}),r}function Lat(e,t){let n=e.startState.doc.lineAt(t.pos);return!!(e.effects.some(r=>r.is(Pme))||e.changes.touchesRange(n.from,n.to))}function $at(e,t){return e.field(Ou,!1)?t:t.concat(hr.appendConfig.of(qat))}const Pme=hr.define(),XU=hr.define(),Mme=hr.define(),Ou=Rs.define({create(){return new Cg(An.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=cO(n,e.selected.diagnostic,i)||cO(n,null,i)}e=new Cg(n,e.panel,r)}for(let n of t.effects)n.is(Pme)?e=Cg.init(n.value,e.panel,t.state):n.is(XU)?e=new Cg(e.diagnostics,n.value?NI.open:null,e.selected):n.is(Mme)&&(e=new Cg(e.diagnostics,e.panel,n.value));return e},provide:e=>[cx.from(e,t=>t.panel),dn.decorations.from(e,t=>t.diagnostics)]}),Fat=An.mark({class:"cm-lintRange cm-lintRange-active",inclusive:!0});function Bat(e,t,n){let{diagnostics:r}=e.state.field(Ou),i=[],a=2e8,s=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)&&(tFme(e,n,!1)))}const zat=e=>{let t=e.state.field(Ou,!1);(!t||!t.panel)&&e.dispatch({effects:$at(e.state,[XU.of(!0)])});let n=ux(e,NI.open);return n&&n.dom.querySelector(".cm-panel-lint ul").focus(),!0},cee=e=>{let t=e.state.field(Ou,!1);return!t||!t.panel?!1:(e.dispatch({effects:XU.of(!1)}),!0)},jat=e=>{let t=e.state.field(Ou,!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)},Hat=[{key:"Mod-Shift-m",run:zat,preventDefault:!0},{key:"F8",run:jat}],Lme=Sn.define({combine(e){return Object.assign({sources:e.map(t=>t.source).filter(t=>t!=null)},Jf(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 $me(e){let t=[];if(e)e:for(let{name:n}of e){for(let r=0;ra.toLowerCase()==i.toLowerCase())){t.push(i);continue e}}t.push("")}return t}function Fme(e,t,n){var r;let i=n?$me(t.actions):[];return Ai("li",{class:"cm-diagnostic cm-diagnostic-"+t.severity},Ai("span",{class:"cm-diagnosticText"},t.renderMessage?t.renderMessage():t.message),(r=t.actions)===null||r===void 0?void 0:r.map((a,s)=>{let o=!1,l=h=>{if(h.preventDefault(),o)return;o=!0;let g=cO(e.state.field(Ou).diagnostics,t);g&&a.apply(e,g.from,g.to)},{name:u}=a,c=i[s]?u.indexOf(i[s]):-1,f=c<0?u:[u.slice(0,c),Ai("u",u.slice(c,c+1)),u.slice(c+1)];return Ai("button",{type:"button",class:"cm-diagnosticAction",onclick:l,onmousedown:l,"aria-label":` Action: ${u}${c<0?"":` (access key "${i[s]})"`}.`},f)}),t.source&&Ai("div",{class:"cm-diagnosticSource"},t.source))}class Vat extends Pd{constructor(t){super(),this.diagnostic=t}eq(t){return t.diagnostic==this.diagnostic}toDOM(){return Ai("span",{class:"cm-lintPoint cm-lintPoint-"+this.diagnostic.severity})}}class dee{constructor(t,n){this.diagnostic=n,this.id="item_"+Math.floor(Math.random()*4294967295).toString(16),this.dom=Fme(t,n,!0),this.dom.id=this.id,this.dom.setAttribute("role","option")}}class NI{constructor(t){this.view=t,this.items=[];let n=i=>{if(i.keyCode==27)cee(this.view),this.view.focus();else if(i.keyCode==38||i.keyCode==33)this.moveSelection((this.selectedIndex-1+this.items.length)%this.items.length);else if(i.keyCode==40||i.keyCode==34)this.moveSelection((this.selectedIndex+1)%this.items.length);else if(i.keyCode==36)this.moveSelection(0);else if(i.keyCode==35)this.moveSelection(this.items.length-1);else if(i.keyCode==13)this.view.focus();else if(i.keyCode>=65&&i.keyCode<=90&&this.selectedIndex>=0){let{diagnostic:a}=this.items[this.selectedIndex],s=$me(a.actions);for(let o=0;o{for(let a=0;acee(this.view)},"×")),this.update()}get selectedIndex(){let t=this.view.state.field(Ou).selected;if(!t)return-1;for(let n=0;n{let u=-1,c;for(let f=r;fr&&(this.items.splice(r,u-r),i=!0)),n&&c.diagnostic==n.diagnostic?c.dom.hasAttribute("aria-selected")||(c.dom.setAttribute("aria-selected","true"),a=c):c.dom.hasAttribute("aria-selected")&&c.dom.removeAttribute("aria-selected"),r++});r({sel:a.dom.getBoundingClientRect(),panel:this.list.getBoundingClientRect()}),write:({sel:s,panel:o})=>{let l=o.height/this.list.offsetHeight;s.topo.bottom&&(this.list.scrollTop+=(s.bottom-o.bottom)/l)}})):this.selectedIndex<0&&this.list.removeAttribute("aria-activedescendant"),i&&this.sync()}sync(){let t=this.list.firstChild;function n(){let r=t;t=r.nextSibling,r.remove()}for(let r of this.items)if(r.dom.parentNode==this.list){for(;t!=r.dom;)n();t=r.dom.nextSibling}else this.list.insertBefore(r.dom,t);for(;t;)n()}moveSelection(t){if(this.selectedIndex<0)return;let n=this.view.state.field(Ou),r=cO(n.diagnostics,this.items[t].diagnostic);r&&this.view.dispatch({selection:{anchor:r.from,head:r.to},scrollIntoView:!0,effects:Mme.of(r)})}static open(t){return new NI(t)}}function Wat(e,t='viewBox="0 0 40 40"'){return`url('data:image/svg+xml,${encodeURIComponent(e)}')`}function DA(e){return Wat(``,'width="6" height="3"')}const Qat=dn.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:DA("#d11")},".cm-lintRange-warning":{backgroundImage:DA("orange")},".cm-lintRange-info":{backgroundImage:DA("#999")},".cm-lintRange-hint":{backgroundImage:DA("#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}}}),qat=[Ou,dn.decorations.compute([Ou],e=>{let{selected:t,panel:n}=e.field(Ou);return!t||!n||t.from==t.to?An.none:An.set([Fat.range(t.from,t.to)])}),$tt(Bat,{hideOn:Lat}),Qat],Gat=[Qtt(),Ytt(),ptt(),hrt(),znt(),rtt(),ltt(),Vr.allowMultipleSelections.of(!0),_nt(),Cpe(Wnt,{fallback:!0}),Knt(),Eat(),Nat(),ktt(),_tt(),Ott(),vit(),jO.of([...kat,...hit,...Fit,...Ert,...$nt,...Nme,...Hat])];class X3{static create(t,n,r,i,a){let s=i+(i<<8)+t+(n<<4)|0;return new X3(t,n,r,s,a,[],[])}constructor(t,n,r,i,a,s,o){this.type=t,this.value=n,this.from=r,this.hash=i,this.end=a,this.children=s,this.positions=o,this.hashProp=[[ir.contextHash,i]]}addChild(t,n){t.prop(ir.contextHash)!=this.hash&&(t=new di(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 di(t.types[this.type],this.children,this.positions,n-this.from).balance({makeTree:(i,a,s)=>new di(ds.none,i,a,s,this.hashProp)})}}var Zt;(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"})(Zt||(Zt={}));class Yat{constructor(t,n){this.start=t,this.content=n,this.marks=[],this.parsers=[]}}class Zat{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 Z2(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==Zt.OrderedList?ez:JU)(n,t,!1);return r>0&&(e.type!=Zt.BulletList||KU(n,t,!1)<0)&&n.text.charCodeAt(n.pos+r-1)==e.value}const Bme={[Zt.Blockquote](e,t,n){return n.next!=62?!1:(n.markers.push(Hr(Zt.QuoteMark,t.lineStart+n.pos,t.lineStart+n.pos+1)),n.moveBase(n.pos+(Uc(n.text.charCodeAt(n.pos+1))?2:1)),e.end=t.lineStart+n.text.length,!0)},[Zt.ListItem](e,t,n){return n.indent-1?!1:(n.moveBaseColumn(n.baseIndent+e.value),!0)},[Zt.OrderedList]:fee,[Zt.BulletList]:fee,[Zt.Document](){return!0}};function Uc(e){return e==32||e==9||e==10||e==13}function Z2(e,t=0){for(;tn&&Uc(e.charCodeAt(t-1));)t--;return t}function Ume(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 jme(e,t){for(let n=e.stack.length-1;n>=0;n--)if(e.stack[n].type==t)return!0;return!1}function JU(e,t,n){return(e.next==45||e.next==43||e.next==42)&&(e.pos==e.text.length-1||Uc(e.text.charCodeAt(e.pos+1)))&&(!n||jme(t,Zt.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 Hme(e){if(e.next!=35)return-1;let t=e.pos+1;for(;t6?-1:n}function Vme(e){if(e.next!=45&&e.next!=61||e.indent>=e.baseIndent+4)return-1;let t=e.pos+1;for(;t/,Qme=/\?>/,kL=[[/^<(?:script|pre|style)(?:\s|>|$)/i,/<\/(?:script|pre|style)>/i],[/^\s*/i.exec(r);if(a)return e.append(Hr(Zt.Comment,n,n+1+a[0].length));let s=/^\?[^]*?\?>/.exec(r);if(s)return e.append(Hr(Zt.ProcessingInstruction,n,n+1+s[0].length));let o=/^(?:![A-Z][^]*?>|!\[CDATA\[[^]*?\]\]>|\/\s*[a-zA-Z][\w-]*\s*>|\s*[a-zA-Z][\w-]*(\s+[a-zA-Z:_][\w-.:]*(?:\s*=\s*(?:[^\s"'=<>`]+|'[^']*'|"[^"]*"))?)*\s*(\/\s*)?>)/.exec(r);return o?e.append(Hr(Zt.HTMLTag,n,n+1+o[0].length)):-1},Emphasis(e,t,n){if(t!=95&&t!=42)return-1;let r=n+1;for(;e.char(r)==t;)r++;let i=e.slice(n-1,n),a=e.slice(r,r+1),s=Sx.test(i),o=Sx.test(a),l=/\s|^$/.test(i),u=/\s|^$/.test(a),c=!u&&(!o||l||s),f=!l&&(!s||u||o),h=c&&(t==42||!f||s),g=f&&(t==42||!c||o);return e.append(new dd(t==95?Kme:Jme,n,r,(h?1:0)|(g?2:0)))},HardBreak(e,t,n){if(t==92&&e.char(n+1)==10)return e.append(Hr(Zt.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(Hr(Zt.HardBreak,n,r+1))}return-1},Link(e,t,n){return t==91?e.append(new dd(zE,n,n+1,1)):-1},Image(e,t,n){return t==33&&e.char(n+1)==91?e.append(new dd(mee,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 dd&&(i.type==zE||i.type==mee)){if(!i.side||e.skipSpace(i.to)==n&&!/[(\[]/.test(e.slice(n+1,n+2)))return e.parts[r]=null,-1;let a=e.takeContent(r),s=e.parts[r]=rst(e,a,i.type==zE?Zt.Link:Zt.Image,i.from,n+1);if(i.type==zE)for(let o=0;ot?Hr(Zt.URL,t+n,a+n):a==e.length?null:!1}}function t0e(e,t,n){let r=e.charCodeAt(t);if(r!=39&&r!=34&&r!=40)return!1;let i=r==40?41:r;for(let a=t+1,s=!1;a=this.end?-1:this.text.charCodeAt(t-this.offset)}get end(){return this.offset+this.text.length}slice(t,n){return this.text.slice(t-this.offset,n-this.offset)}append(t){return this.parts.push(t),t.to}addDelimiter(t,n,r,i,a){return this.append(new dd(t,n,r,(i?1:0)|(a?2:0)))}addElement(t){return this.append(t)}resolveMarkers(t){for(let r=t;r=t;l--){let S=this.parts[l];if(S instanceof dd&&S.side&1&&S.type==i.type&&!(a&&(i.side&1||S.side&2)&&(S.to-S.from+s)%3==0&&((S.to-S.from)%3||s%3))){o=S;break}}if(!o)continue;let u=i.type.resolve,c=[],f=o.from,h=i.to;if(a){let S=Math.min(2,o.to-o.from,s);f=o.to-S,h=i.from+S,u=S==1?"Emphasis":"StrongEmphasis"}o.type.mark&&c.push(this.elt(o.type.mark,f,o.to));for(let S=l+1;S=0;n--){let r=this.parts[n];if(r instanceof dd&&r.type==t)return n}return null}takeContent(t){let n=this.resolveMarkers(t);return this.parts.length=t,n}skipSpace(t){return Z2(this.text,t-this.offset)+this.offset}elt(t,n,r,i){return typeof t=="string"?Hr(this.parser.getNodeType(t),n,r,i):new Xme(t,n)}}function AL(e,t){if(!t.length)return e;if(!e.length)return t;let n=e.slice(),r=0;for(let i of t){for(;r(t?t-1:0))return!1;if(this.fragmentEnd<0){let a=this.fragment.to;for(;a>0&&this.input.read(a-1,a)!=` -`;)a--;this.fragmentEnd=a?a-1:0}let r=this.cursor;r||(r=this.cursor=this.fragment.tree.cursor(),r.firstChild());let i=t+this.fragment.offset;for(;r.to<=i;)if(!r.parent())return!1;for(;;){if(r.from>=i)return this.fragment.from<=n;if(!r.childAfter(i))return!1}}matches(t){let n=this.cursor.tree;return n&&n.prop(ir.contextHash)==t}takeNodes(t){let n=this.cursor,r=this.fragment.offset,i=this.fragmentEnd-(this.fragment.openEnd?1:0),a=t.absoluteLineStart,s=a,o=t.block.children.length,l=s,u=o;for(;;){if(n.to-r>i){if(n.type.isAnonymous&&n.firstChild())continue;break}let c=r0e(n.from-r,t.ranges);if(n.to-r<=t.ranges[t.rangeI].to)t.addNode(n.tree,c);else{let f=new di(t.parser.nodeSet.types[Zt.Paragraph],[],[],0,t.block.hashProp);t.reusePlaceholders.set(f,n.tree),t.addNode(f,c)}if(n.type.is("Block")&&(ast.indexOf(n.type.id)<0?(s=n.to-r,o=t.block.children.length):(s=l,o=u,l=n.to-r,u=t.block.children.length)),!n.nextSibling())break}for(;t.block.children.length>o;)t.block.children.pop(),t.block.positions.pop();return s-a}};function r0e(e,t){let n=e;for(let r=1;rNA[e]),Object.keys(NA).map(e=>Jat[e]),Object.keys(NA),est,Bme,Object.keys(TP).map(e=>TP[e]),Object.keys(TP),[]);function ust(e,t,n){let r=[];for(let i=e.firstChild,a=t;;i=i.nextSibling){let s=i?i.from:n;if(s>a&&r.push({from:a,to:s}),!i)break;a=i.to}return r}function cst(e){let{codeParser:t,htmlParser:n}=e;return{wrap:fpe((i,a)=>{let s=i.type.id;if(t&&(s==Zt.CodeBlock||s==Zt.FencedCode)){let o="";if(s==Zt.FencedCode){let u=i.node.getChild(Zt.CodeInfo);u&&(o=a.read(u.from,u.to))}let l=t(o);if(l)return{parser:l,overlay:u=>u.type.id==Zt.CodeText}}else if(n&&(s==Zt.HTMLBlock||s==Zt.HTMLTag))return{parser:n,overlay:ust(i.node,i.from,i.to)};return null})}}const dst={resolve:"Strikethrough",mark:"StrikethroughMark"},fst={defineNodes:[{name:"Strikethrough",style:{"Strikethrough/...":Ee.strikethrough}},{name:"StrikethroughMark",style:Ee.processingInstruction}],parseInline:[{name:"Strikethrough",parse(e,t,n){if(t!=126||e.char(n+1)!=126||e.char(n+2)==126)return-1;let r=e.slice(n-1,n),i=e.slice(n+2,n+3),a=/\s|^$/.test(r),s=/\s|^$/.test(i),o=Sx.test(r),l=Sx.test(i);return e.addDelimiter(dst,n,n+2,!s&&(!l||a||o),!a&&(!o||s||l))},after:"Emphasis"}]};function X2(e,t,n=0,r,i=0){let a=0,s=!0,o=-1,l=-1,u=!1,c=()=>{r.push(e.elt("TableCell",i+o,i+l,e.parser.parseInline(t.slice(o,l),i+o)))};for(let f=n;f-1)&&a++,s=!1,r&&(o>-1&&c(),r.push(e.elt("TableDelimiter",f+i,f+i+1))),o=l=-1):(u||h!=32&&h!=9)&&(o<0&&(o=f),l=f+1),u=!u&&h==92}return o>-1&&(a++,r&&c()),a}function bee(e,t){for(let n=t;ni instanceof yee)||!bee(t.text,t.basePos))return!1;let r=e.scanLine(e.absoluteLineEnd+1).text;return i0e.test(r)&&X2(e,t.text,t.basePos)==X2(e,r,t.basePos)},before:"SetextHeading"}]};class pst{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 mst={defineNodes:[{name:"Task",block:!0,style:Ee.list},{name:"TaskMarker",style:Ee.atom}],parseBlock:[{name:"TaskList",leaf(e,t){return/^\[[ xX]\][ \t]/.test(t.content)&&e.parentType().name=="ListItem"?new pst:null},after:"SetextHeading"}]},vee=/(www\.)|(https?:\/\/)|([\w.+-]+@)|(mailto:|xmpp:)/gy,Oee=/[\w-]+(\.[\w-]+)+(\/[^\s<]*)?/gy,gst=/[\w-]+\.[\w-]+($|\/)/,See=/[\w.+-]+@[\w-]+(\.[\w.-]+)+/gy,Eee=/\/[a-zA-Z\d@.]+/gy;function wee(e,t,n,r){let i=0;for(let a=t;a-1)return-1;let r=t+n[0].length;for(;;){let i=e[r-1],a;if(/[?!.,:*_~]/.test(i)||i==")"&&wee(e,t,r,")")>wee(e,t,r,"("))r--;else if(i==";"&&(a=/&(?:#\d+|#x[a-f\d]+|\w+);$/.exec(e.slice(t,r))))r=t+a.index;else break}return r}function xee(e,t){See.lastIndex=t;let n=See.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 yst={parseInline:[{name:"Autolink",parse(e,t,n){let r=n-e.offset;vee.lastIndex=r;let i=vee.exec(e.text),a=-1;return!i||(i[1]||i[2]?a=bst(e.text,r+i[0].length):i[3]?a=xee(e.text,r):(a=xee(e.text,r+i[0].length),a>-1&&i[0]=="xmpp:"&&(Eee.lastIndex=a,i=Eee.exec(e.text),i&&(a=i.index+i[0].length))),a<0)?-1:(e.addElement(e.elt("URL",n,a+e.offset)),a+e.offset)}}]},vst=[hst,mst,fst,yst];function a0e(e,t,n){return(r,i,a)=>{if(i!=e||r.char(a+1)==e)return-1;let s=[r.elt(n,a,a+1)];for(let o=a+1;on%3==0).concat(this.state)}]@${this.pos}${this.score?"!"+this.score:""}`}static start(t,n,r=0){let i=t.parser.context;return new K3(t,[],n,r,r,0,[],0,i?new kee(i,i.start):null,0,null)}get context(){return this.curContext?this.curContext.context:null}pushState(t,n){this.stack.push(this.state,n,this.bufferBase+this.buffer.length),this.state=t}reduce(t){var n;let r=t>>19,i=t&65535,{parser:a}=this.p,s=a.dynamicPrecedence(i);if(s&&(this.score+=s),r==0){this.pushState(a.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.lastBigReductionSizeo;)this.stack.pop();this.reduceContext(i,l)}storeNode(t,n,r,i=4,a=!1){if(t==0&&(!this.stack.length||this.stack[this.stack.length-1]0&&s.buffer[o-4]==0&&s.buffer[o-1]>-1){if(n==r)return;if(s.buffer[o-2]>=n){s.buffer[o-2]=r;return}}}if(!a||this.pos==r)this.buffer.push(t,n,r,i);else{let s=this.buffer.length;if(s>0&&this.buffer[s-4]!=0)for(;s>0&&this.buffer[s-2]>r;)this.buffer[s]=this.buffer[s-4],this.buffer[s+1]=this.buffer[s-3],this.buffer[s+2]=this.buffer[s-2],this.buffer[s+3]=this.buffer[s-1],s-=4,i>4&&(i-=4);this.buffer[s]=t,this.buffer[s+1]=n,this.buffer[s+2]=r,this.buffer[s+3]=i}}shift(t,n,r,i){if(t&131072)this.pushState(t&65535,this.pos);else if(t&262144)this.pos=i,this.shiftContext(n,r),n<=this.p.parser.maxNode&&this.buffer.push(n,r,i,4);else{let a=t,{parser:s}=this.p;(i>this.pos||n<=s.maxNode)&&(this.pos=i,s.stateFlag(a,1)||(this.reducePos=i)),this.pushState(a,r),this.shiftContext(n,r),n<=s.maxNode&&this.buffer.push(n,r,i,4)}}apply(t,n,r,i){t&65536?this.reduce(t):this.shift(t,n,r,i)}useNode(t,n){let r=this.p.reused.length-1;(r<0||this.p.reused[r]!=t)&&(this.p.reused.push(t),r++);let i=this.pos;this.reducePos=this.pos=i+t.length,this.pushState(n,i),this.buffer.push(r,i,this.reducePos,-1),this.curContext&&this.updateContext(this.curContext.tracker.reuse(this.curContext.context,t,this,this.p.stream.reset(this.pos-t.length)))}split(){let t=this,n=t.buffer.length;for(;n>0&&t.buffer[n-2]>t.reducePos;)n-=4;let r=t.buffer.slice(n),i=t.bufferBase+n;for(;t&&i==t.bufferBase;)t=t.parent;return new K3(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 wst(this);;){let r=this.p.parser.stateSlot(n.state,4)||this.p.parser.hasAction(n.state,t);if(r==0)return!1;if(!(r&65536))return!0;n.reduce(r)}}recoverByInsert(t){if(this.stack.length>=300)return[];let n=this.p.parser.nextStates(this.state);if(n.length>8||this.stack.length>=120){let i=[];for(let a=0,s;al&1&&o==s)||i.push(n[a],s)}n=i}let r=[];for(let i=0;i>19,i=n&65535,a=this.stack.length-r*3;if(a<0||t.getGoto(this.stack[a],i,!1)<0){let s=this.findForcedReduction();if(s==null)return!1;n=s}this.storeNode(0,this.pos,this.pos,4,!0),this.score-=100}return this.reducePos=this.pos,this.reduce(n),!0}findForcedReduction(){let{parser:t}=this.p,n=[],r=(i,a)=>{if(!n.includes(i))return n.push(i),t.allActions(i,s=>{if(!(s&393216))if(s&65536){let o=(s>>19)-a;if(o>1){let l=s&65535,u=this.stack.length-o*3;if(u>=0&&t.getGoto(this.stack[u],l,!1)>=0)return o<<19|65536|l}}else{let o=r(s,a+1);if(o!=null)return o}})};return r(this.state,0)}forceAll(){for(;!this.p.parser.stateFlag(this.state,2);)if(!this.forceReduce()){this.storeNode(0,this.pos,this.pos,4,!0);break}return this}get deadEnd(){if(this.stack.length!=3)return!1;let{parser:t}=this.p;return t.data[t.stateSlot(this.state,1)]==65535&&!t.stateSlot(this.state,4)}restart(){this.storeNode(0,this.pos,this.pos,4,!0),this.state=this.stack[0],this.stack.length=0}sameState(t){if(this.state!=t.state||this.stack.length!=t.stack.length)return!1;for(let n=0;nthis.lookAhead&&(this.emitLookAhead(),this.lookAhead=t)}close(){this.curContext&&this.curContext.tracker.strict&&this.emitContext(),this.lookAhead>0&&this.emitLookAhead()}}class kee{constructor(t,n){this.tracker=t,this.context=n,this.hash=t.strict?t.hash(n):0}}class wst{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 J3{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 J3(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 J3(this.stack,this.pos,this.index)}}function m2(e,t=Uint16Array){if(typeof e!="string")return e;let n=null;for(let r=0,i=0;r=92&&s--,s>=34&&s--;let l=s-32;if(l>=46&&(l-=46,o=!0),a+=l,o)break;a*=46}n?n[i++]=a:n=new t(a)}return n}class K4{constructor(){this.start=-1,this.value=-1,this.end=-1,this.extended=-1,this.lookAhead=0,this.mask=0,this.context=0}}const Cee=new K4;class xst{constructor(t,n){this.input=t,this.ranges=n,this.chunk="",this.chunkOff=0,this.chunk2="",this.chunk2Pos=0,this.next=-1,this.token=Cee,this.rangeIndex=0,this.pos=this.chunkPos=n[0].from,this.range=n[0],this.end=n[n.length-1].to,this.readNext()}resolveOffset(t,n){let r=this.range,i=this.rangeIndex,a=this.pos+t;for(;ar.to:a>=r.to;){if(i==this.ranges.length-1)return null;let s=this.ranges[++i];a+=s.from-r.to,r=s}return a}clipPos(t){if(t>=this.range.from&&tt)return Math.max(t,n.from);return this.end}peek(t){let n=this.chunkOff+t,r,i;if(n>=0&&n=this.chunk2Pos&&ro.to&&(this.chunk2=this.chunk2.slice(0,o.to-r)),i=this.chunk2.charCodeAt(0)}}return r>=this.token.lookAhead&&(this.token.lookAhead=r+1),i}acceptToken(t,n=0){let r=n?this.resolveOffset(n,-1):this.pos;if(r==null||r=this.chunk2Pos&&this.posthis.range.to?t.slice(0,this.range.to-this.pos):t,this.chunkPos=this.pos,this.chunkOff=0}}readNext(){return this.chunkOff>=this.chunk.length&&(this.getChunk(),this.chunkOff==this.chunk.length)?this.next=-1:this.next=this.chunk.charCodeAt(this.chunkOff)}advance(t=1){for(this.chunkOff+=t;this.pos+t>=this.range.to;){if(this.rangeIndex==this.ranges.length-1)return this.setDone();t-=this.range.to-this.pos,this.range=this.ranges[++this.rangeIndex],this.pos=this.range.from}return this.pos+=t,this.pos>=this.token.lookAhead&&(this.token.lookAhead=this.pos+1),this.readNext()}setDone(){return this.pos=this.chunkPos=this.end,this.range=this.ranges[this.rangeIndex=this.ranges.length-1],this.chunk="",this.next=-1}reset(t,n){if(n?(this.token=n,n.start=t,n.lookAhead=t+1,n.value=n.extended=-1):this.token=Cee,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 bv{constructor(t,n){this.data=t,this.id=n}token(t,n){let{parser:r}=n.p;s0e(this.data,t,n,this.id,r.data,r.tokenPrecTable)}}bv.prototype.contextual=bv.prototype.fallback=bv.prototype.extend=!1;class e5{constructor(t,n,r){this.precTable=n,this.elseToken=r,this.data=typeof t=="string"?m2(t):t}token(t,n){let r=t.pos,i=0;for(;;){let a=t.next<0,s=t.resolveOffset(1,1);if(s0e(this.data,t,n,0,this.data,this.precTable),t.token.value>-1)break;if(this.elseToken==null)return;if(a||i++,s==null)break;t.reset(s,t.token)}i&&(t.reset(r,t.token),t.acceptToken(this.elseToken,i))}}e5.prototype.contextual=bv.prototype.fallback=bv.prototype.extend=!1;class Ld{constructor(t,n={}){this.token=t,this.contextual=!!n.contextual,this.fallback=!!n.fallback,this.extend=!!n.extend}}function s0e(e,t,n,r,i,a){let s=0,o=1<0){let b=e[g];if(l.allows(b)&&(t.token.value==-1||t.token.value==b||Tst(b,t.token.value,i,a))){t.acceptToken(b);break}}let c=t.next,f=0,h=e[s+2];if(t.next<0&&h>f&&e[u+h*3-3]==65535){s=e[u+h*3-1];continue e}for(;f>1,b=u+g+(g<<1),S=e[b],w=e[b+1]||65536;if(c=w)f=g+1;else{s=e[b+2],t.advance();continue e}}break}}function Aee(e,t,n){for(let r=t,i;(i=e[r])!=65535;r++)if(i==n)return r-t;return-1}function Tst(e,t,n,r){let i=Aee(n,r,t);return i<0||Aee(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 kst{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?_ee(t.tree,t.from+t.offset,1)-t.offset:t.from,this.safeTo=t.openEnd?_ee(t.tree,t.to+t.offset,-1)-t.offset:t.to;this.trees.length;)this.trees.pop(),this.start.pop(),this.index.pop();this.trees.push(t.tree),this.start.push(-t.offset),this.index.push(0),this.nextStart=this.safeFrom}else this.nextStart=1e9}nodeAt(t){if(tt)return this.nextStart=s,null;if(a instanceof di){if(s==t){if(s=Math.max(this.safeFrom,t)&&(this.trees.push(a),this.start.push(s),this.index.push(0))}else this.index[n]++,this.nextStart=s+a.length}}}class Cst{constructor(t,n){this.stream=n,this.tokens=[],this.mainToken=null,this.actions=[],this.tokens=t.tokenizers.map(r=>new K4)}getActions(t){let n=0,r=null,{parser:i}=t.p,{tokenizers:a}=i,s=i.stateSlot(t.state,3),o=t.curContext?t.curContext.hash:0,l=0;for(let u=0;uf.end+25&&(l=Math.max(f.lookAhead,l)),f.value!=0)){let h=n;if(f.extended>-1&&(n=this.addActions(t,f.extended,f.end,n)),n=this.addActions(t,f.value,f.end,n),!c.extend&&(r=f,n>h))break}}for(;this.actions.length>n;)this.actions.pop();return l&&t.setLookAhead(l),!r&&t.pos==this.stream.end&&(r=new K4,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 K4,{pos:r,p:i}=t;return n.start=r,n.end=Math.min(r+1,i.stream.end),n.value=r==i.stream.end?i.parser.eofTerm:0,n}updateCachedToken(t,n,r){let i=this.stream.clipPos(r.pos);if(n.token(this.stream.reset(i,t),r),t.value>-1){let{parser:a}=r.p;for(let s=0;s=0&&r.p.parser.dialect.allows(o>>1)){o&1?t.extended=o>>1:t.value=o>>1;break}}}else t.value=0,t.end=this.stream.clipPos(i+1)}putAction(t,n,r,i){for(let a=0;at.bufferLength*4?new kst(r,t.nodeSet):null}get parsedPos(){return this.minStackPos}advance(){let t=this.stacks,n=this.minStackPos,r=this.stacks=[],i,a;if(this.bigReductionCount>300&&t.length==1){let[s]=t;for(;s.forceReduce()&&s.stack.length&&s.stack[s.stack.length-2]>=this.lastBigReductionStart;);this.bigReductionCount=this.lastBigReductionSize=0}for(let s=0;sn)r.push(o);else{if(this.advanceStack(o,r,t))continue;{i||(i=[],a=[]),i.push(o);let l=this.tokens.getMainToken(o);a.push(l.value,l.end)}}break}}if(!r.length){let s=i&&Rst(i);if(s)return eu&&console.log("Finish with "+this.stackID(s)),this.stackToTree(s);if(this.parser.strict)throw eu&&i&&console.log("Stuck with token "+(this.tokens.mainToken?this.parser.getName(this.tokens.mainToken.value):"none")),new SyntaxError("No parse at "+n);this.recovering||(this.recovering=5)}if(this.recovering&&i){let s=this.stoppedAt!=null&&i[0].pos>this.stoppedAt?i[0]:this.runRecovery(i,a,r);if(s)return eu&&console.log("Force-finish "+this.stackID(s)),this.stackToTree(s.forceAll())}if(this.recovering){let s=this.recovering==1?1:this.recovering*3;if(r.length>s)for(r.sort((o,l)=>l.score-o.score);r.length>s;)r.pop();r.some(o=>o.reducePos>n)&&this.recovering--}else if(r.length>1){e:for(let s=0;s500&&u.buffer.length>500)if((o.score-u.score||o.buffer.length-u.buffer.length)>0)r.splice(l--,1);else{r.splice(s--,1);continue e}}}r.length>12&&r.splice(12,r.length-12)}this.minStackPos=r[0].pos;for(let s=1;s ":"";if(this.stoppedAt!=null&&i>this.stoppedAt)return t.forceReduce()?t:null;if(this.fragments){let u=t.curContext&&t.curContext.tracker.strict,c=u?t.curContext.hash:0;for(let f=this.fragments.nodeAt(i);f;){let h=this.parser.nodeSet.types[f.type.id]==f.type?a.getGoto(t.state,f.type.id):-1;if(h>-1&&f.length&&(!u||(f.prop(ir.contextHash)||0)==c))return t.useNode(f,h),eu&&console.log(s+this.stackID(t)+` (via reuse of ${a.getName(f.type.id)})`),!0;if(!(f instanceof di)||f.children.length==0||f.positions[0]>0)break;let g=f.children[0];if(g instanceof di&&f.positions[0]==0)f=g;else break}}let o=a.stateSlot(t.state,4);if(o>0)return t.reduce(o),eu&&console.log(s+this.stackID(t)+` (via always-reduce ${a.getName(o&65535)})`),!0;if(t.stack.length>=8400)for(;t.stack.length>6e3&&t.forceReduce(););let l=this.tokens.getActions(t);for(let u=0;ui?n.push(b):r.push(b)}return!1}advanceFully(t,n){let r=t.pos;for(;;){if(!this.advanceStack(t,null,null))return!1;if(t.pos>r)return Ree(t,n),!0}}runRecovery(t,n,r){let i=null,a=!1;for(let s=0;s ":"";if(o.deadEnd&&(a||(a=!0,o.restart(),eu&&console.log(c+this.stackID(o)+" (restarted)"),this.advanceFully(o,r))))continue;let f=o.split(),h=c;for(let g=0;f.forceReduce()&&g<10&&(eu&&console.log(h+this.stackID(f)+" (via force-reduce)"),!this.advanceFully(f,r));g++)eu&&(h=this.stackID(f)+" -> ");for(let g of o.recoverByInsert(l))eu&&console.log(c+this.stackID(g)+" (via recover-insert)"),this.advanceFully(g,r);this.stream.end>o.pos?(u==o.pos&&(u++,l=0),o.recoverByDelete(l,u),eu&&console.log(c+this.stackID(o)+` (via recover-delete ${this.parser.getName(l)})`),Ree(o,r)):(!i||i.scoree;class o0e{constructor(t){this.start=t.start,this.shift=t.shift||CP,this.reduce=t.reduce||CP,this.reuse=t.reuse||CP,this.hash=t.hash||(()=>0),this.strict=t.strict!==!1}}class fO extends NU{constructor(t){if(super(),this.wrappers=[],t.version!=14)throw new RangeError(`Parser version (${t.version}) doesn't match runtime version (14)`);let n=t.nodeNames.split(" ");this.minRepeatTerm=n.length;for(let o=0;ot.topRules[o][1]),i=[];for(let o=0;o=0)a(c,l,o[u++]);else{let f=o[u+-c];for(let h=-c;h>0;h--)a(o[u++],l,f);u++}}}this.nodeSet=new $T(n.map((o,l)=>ds.define({name:l>=this.minRepeatTerm?void 0:o,id:l,props:i[l],top:r.indexOf(l)>-1,error:l==0,skipped:t.skippedNodes&&t.skippedNodes.indexOf(l)>-1}))),t.propSources&&(this.nodeSet=this.nodeSet.extend(...t.propSources)),this.strict=!1,this.bufferLength=ope;let s=m2(t.tokenData);this.context=t.context,this.specializerSpecs=t.specialized||[],this.specialized=new Uint16Array(this.specializerSpecs.length);for(let o=0;otypeof o=="number"?new bv(s,o):o),this.topRules=t.topRules,this.dialects=t.dialects||{},this.dynamicPrecedences=t.dynamicPrecedences||null,this.tokenPrecTable=t.tokenPrec,this.termNames=t.termNames||null,this.maxNode=this.nodeSet.types.length-1,this.dialect=this.parseDialect(),this.top=this.topRules[Object.keys(this.topRules)[0]]}createParse(t,n,r){let i=new Ast(this,t,n,r);for(let a of this.wrappers)i=a(i,t,n,r);return i}getGoto(t,n,r=!1){let i=this.goto;if(n>=i[0])return-1;for(let a=i[n+1];;){let s=i[a++],o=s&1,l=i[a++];if(o&&r)return l;for(let u=a+(s>>1);a0}validAction(t,n){return!!this.allActions(t,r=>r==n?!0:null)}allActions(t,n){let r=this.stateSlot(t,4),i=r?n(r):void 0;for(let a=this.stateSlot(t,1);i==null;a+=3){if(this.data[a]==65535)if(this.data[a+1]==1)a=$h(this.data,a+2);else break;i=n($h(this.data,a+1))}return i}nextStates(t){let n=[];for(let r=this.stateSlot(t,1);;r+=3){if(this.data[r]==65535)if(this.data[r+1]==1)r=$h(this.data,r+2);else break;if(!(this.data[r+2]&1)){let i=this.data[r+1];n.some((a,s)=>s&1&&a==i)||n.push(this.data[r],i)}}return n}configure(t){let n=Object.assign(Object.create(fO.prototype),this);if(t.props&&(n.nodeSet=this.nodeSet.extend(...t.props)),t.top){let r=this.topRules[t.top];if(!r)throw new RangeError(`Invalid top rule name ${t.top}`);n.top=r}return t.tokenizers&&(n.tokenizers=this.tokenizers.map(r=>{let i=t.tokenizers.find(a=>a.from==r);return i?i.to:r})),t.specializers&&(n.specializers=this.specializers.slice(),n.specializerSpecs=this.specializerSpecs.map((r,i)=>{let a=t.specializers.find(o=>o.from==r.external);if(!a)return r;let s=Object.assign(Object.assign({},r),{external:a.to});return n.specializers[i]=Iee(s),s})),t.contextTracker&&(n.context=t.contextTracker),t.dialect&&(n.dialect=this.parseDialect(t.dialect)),t.strict!=null&&(n.strict=t.strict),t.wrap&&(n.wrappers=n.wrappers.concat(t.wrap)),t.bufferLength!=null&&(n.bufferLength=t.bufferLength),n}hasWrappers(){return this.wrappers.length>0}getName(t){return this.termNames?this.termNames[t]:String(t<=this.maxNode&&this.nodeSet.types[t].name||t)}get eofTerm(){return this.maxNode+1}get topNode(){return this.nodeSet.types[this.top[1]]}dynamicPrecedence(t){let n=this.dynamicPrecedences;return n==null?0:n[t]||0}parseDialect(t){let n=Object.keys(this.dialects),r=n.map(()=>!1);if(t)for(let a of t.split(" ")){let s=n.indexOf(a);s>=0&&(r[s]=!0)}let i=null;for(let a=0;ar)&&n.p.parser.stateFlag(n.state,2)&&(!t||t.scoree.external(n,r)<<1|t}return e.get}const Ist=54,Dst=1,Nst=55,Pst=2,Mst=56,Lst=3,Dee=4,$st=5,t5=6,l0e=7,u0e=8,c0e=9,d0e=10,Fst=11,Bst=12,Ust=13,AP=57,zst=14,Nee=58,f0e=20,jst=22,h0e=23,Hst=24,_L=26,p0e=27,Vst=28,Wst=31,Qst=34,qst=36,Gst=37,Yst=0,Zst=1,Xst={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},Kst={dd:!0,li:!0,optgroup:!0,option:!0,p:!0,rp:!0,rt:!0,tbody:!0,td:!0,tfoot:!0,th:!0,tr:!0},Pee={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 Jst(e){return e==45||e==46||e==58||e>=65&&e<=90||e==95||e>=97&&e<=122||e>=161}function m0e(e){return e==9||e==10||e==13||e==32}let Mee=null,Lee=null,$ee=0;function RL(e,t){let n=e.pos+t;if($ee==n&&Lee==e)return Mee;let r=e.peek(t);for(;m0e(r);)r=e.peek(++t);let i="";for(;Jst(r);)i+=String.fromCharCode(r),r=e.peek(++t);return Lee=e,$ee=n,Mee=i?i.toLowerCase():r==eot||r==tot?void 0:null}const g0e=60,n5=62,tz=47,eot=63,tot=33,not=45;function Fee(e,t){this.name=e,this.parent=t,this.hash=t?t.hash:0;for(let n=0;n-1?new Fee(RL(r,1)||"",e):e},reduce(e,t){return t==f0e&&e?e.parent:e},reuse(e,t,n,r){let i=t.type.id;return i==t5||i==qst?new Fee(RL(r,1)||"",e):e},hash(e){return e?e.hash:0},strict:!1}),aot=new Ld((e,t)=>{if(e.next!=g0e){e.next<0&&t.context&&e.acceptToken(AP);return}e.advance();let n=e.next==tz;n&&e.advance();let r=RL(e,0);if(r===void 0)return;if(!r)return e.acceptToken(n?zst:t5);let i=t.context?t.context.name:null;if(n){if(r==i)return e.acceptToken(Fst);if(i&&Kst[i])return e.acceptToken(AP,-2);if(t.dialectEnabled(Yst))return e.acceptToken(Bst);for(let a=t.context;a;a=a.parent)if(a.name==r)return;e.acceptToken(Ust)}else{if(r=="script")return e.acceptToken(l0e);if(r=="style")return e.acceptToken(u0e);if(r=="textarea")return e.acceptToken(c0e);if(Xst.hasOwnProperty(r))return e.acceptToken(d0e);i&&Pee[i]&&Pee[i][r]?e.acceptToken(AP,-1):e.acceptToken(t5)}},{contextual:!0}),sot=new Ld(e=>{for(let t=0,n=0;;n++){if(e.next<0){n&&e.acceptToken(Nee);break}if(e.next==not)t++;else if(e.next==n5&&t>=2){n>=3&&e.acceptToken(Nee,-2);break}else t=0;e.advance()}});function oot(e){for(;e;e=e.parent)if(e.name=="svg"||e.name=="math")return!0;return!1}const lot=new Ld((e,t)=>{if(e.next==tz&&e.peek(1)==n5){let n=t.dialectEnabled(Zst)||oot(t.context);e.acceptToken(n?$st:Dee,2)}else e.next==n5&&e.acceptToken(Dee,1)});function nz(e,t,n){let r=2+e.length;return new Ld(i=>{for(let a=0,s=0,o=0;;o++){if(i.next<0){o&&i.acceptToken(t);break}if(a==0&&i.next==g0e||a==1&&i.next==tz||a>=2&&as?i.acceptToken(t,-s):i.acceptToken(n,-(s-2));break}else if((i.next==10||i.next==13)&&o){i.acceptToken(t,1);break}else a=s=0;i.advance()}})}const uot=nz("script",Ist,Dst),cot=nz("style",Nst,Pst),dot=nz("textarea",Mst,Lst),fot=HO({"Text RawText":Ee.content,"StartTag StartCloseTag SelfClosingEndTag EndTag":Ee.angleBracket,TagName:Ee.tagName,"MismatchedCloseTag/TagName":[Ee.tagName,Ee.invalid],AttributeName:Ee.attributeName,"AttributeValue UnquotedAttributeValue":Ee.attributeValue,Is:Ee.definitionOperator,"EntityReference CharacterReference":Ee.character,Comment:Ee.blockComment,ProcessingInst:Ee.processingInstruction,DoctypeDecl:Ee.documentMeta}),hot=fO.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:iot,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:[fot],skippedNodes:[0],repeatNodeCount:9,tokenData:"!]tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^/^!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!Z5zbkWOX5uXZ7SZ[5u[^7S^p5uqr5urs7Sst+Ptw5uwx7Sx!]5u!]!^7w!^!a7S!a#S5u#S#T7S#T;'S5u;'S;=`8n<%lO5u!R7VVOp7Sqs7St!]7S!]!^7l!^;'S7S;'S;=`7q<%lO7S!R7qOa!R!R7tP;=`<%l7S!Z8OYkWa!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!Z8qP;=`<%l5u!_8{ihSkWOX5uXZ7SZ[5u[^7S^p5uqr8trs7Sst/^tw8twx7Sx!P8t!P!Q5u!Q!]8t!]!^:j!^!a7S!a#S8t#S#T;{#T#s8t#s$f5u$f;'S8t;'S;=`>V<%l?Ah8t?Ah?BY5u?BY?Mn8t?MnO5u!_:sbhSkWa!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VP<%l?Ah;{?Ah?BY7S?BY?Mn;{?MnO7S!V=dXhSa!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!V>SP;=`<%l;{!_>YP;=`<%l8t!_>dhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^/^!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!Z@TakWOX@OXZAYZ[@O[^AY^p@Oqr@OrsAYsw@OwxAYx!]@O!]!^Az!^!aAY!a#S@O#S#TAY#T;'S@O;'S;=`Bq<%lO@O!RA]UOpAYq!]AY!]!^Ao!^;'SAY;'S;=`At<%lOAY!RAtOb!R!RAwP;=`<%lAY!ZBRYkWb!ROX+PZ[+P^p+Pqr+Psw+Px!^+P!a#S+P#T;'S+P;'S;=`+t<%lO+P!ZBtP;=`<%l@O!_COhhSkWOX@OXZAYZ[@O[^AY^p@OqrBwrsAYswBwwxAYx!PBw!P!Q@O!Q!]Bw!]!^Dj!^!aAY!a#SBw#S#TE{#T#sBw#s$f@O$f;'SBw;'S;=`HS<%l?AhBw?Ah?BY@O?BY?MnBw?MnO@O!_DsbhSkWb!ROX+PZ[+P^p+Pqr/^sw/^x!P/^!P!Q+P!Q!^/^!a#S/^#S#T0m#T#s/^#s$f+P$f;'S/^;'S;=`1e<%l?Ah/^?Ah?BY+P?BY?Mn/^?MnO+P!VFQbhSOpAYqrE{rsAYswE{wxAYx!PE{!P!QAY!Q!]E{!]!^GY!^!aAY!a#sE{#s$fAY$f;'SE{;'S;=`G|<%l?AhE{?Ah?BYAY?BY?MnE{?MnOAY!VGaXhSb!Rqr0msw0mx!P0m!Q!^0m!a#s0m$f;'S0m;'S;=`1_<%l?Ah0m?BY?Mn0m!VHPP;=`<%lE{!_HVP;=`<%lBw!ZHcW!bx`P!a`Or(trs'ksv(tw!^(t!^!_)e!_;'S(t;'S;=`*P<%lO(t!aIYlhS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OKQ!O!P-_!P!Q$q!Q!^-_!^!_*V!_!a&X!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!aK_khS`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx!P-_!P!Q$q!Q!^-_!^!_*V!_!`&X!`!aMS!a#S-_#S#T1k#T#s-_#s$f$q$f;'S-_;'S;=`3X<%l?Ah-_?Ah?BY$q?BY?Mn-_?MnO$q!TM_X`P!a`!cp!eQOr&Xrs&}sv&Xwx(tx!^&X!^!_*V!_;'S&X;'S;=`*y<%lO&X!aNZ!ZhSfQ`PkW!a`!cpOX$qXZ&XZ[$q[^&X^p$qpq&Xqr-_rs&}sv-_vw/^wx(tx}-_}!OMz!O!PMz!P!Q$q!Q![Mz![!]Mz!]!^-_!^!_*V!_!a&X!a!c-_!c!}Mz!}#R-_#R#SMz#S#T1k#T#oMz#o#s-_#s$f$q$f$}-_$}%OMz%O%W-_%W%oMz%o%p-_%p&aMz&a&b-_&b1pMz1p4UMz4U4dMz4d4e-_4e$ISMz$IS$I`-_$I`$IbMz$Ib$Je-_$Je$JgMz$Jg$Kh-_$Kh%#tMz%#t&/x-_&/x&EtMz&Et&FV-_&FV;'SMz;'S;:j!#|;:j;=`3X<%l?&r-_?&r?AhMz?Ah?BY$q?BY?MnMz?MnO$q!a!$PP;=`<%lMz!R!$ZY!a`!cpOq*Vqr!$yrs(Vsv*Vwx)ex!a*V!a!b!4t!b;'S*V;'S;=`*s<%lO*V!R!%Q]!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!%y!O!f*V!f!g!']!g#W*V#W#X!0`#X;'S*V;'S;=`*s<%lO*V!R!&QX!a`!cpOr*Vrs(Vsv*Vwx)ex}*V}!O!&m!O;'S*V;'S;=`*s<%lO*V!R!&vV!a`!cp!dPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!'dX!a`!cpOr*Vrs(Vsv*Vwx)ex!q*V!q!r!(P!r;'S*V;'S;=`*s<%lO*V!R!(WX!a`!cpOr*Vrs(Vsv*Vwx)ex!e*V!e!f!(s!f;'S*V;'S;=`*s<%lO*V!R!(zX!a`!cpOr*Vrs(Vsv*Vwx)ex!v*V!v!w!)g!w;'S*V;'S;=`*s<%lO*V!R!)nX!a`!cpOr*Vrs(Vsv*Vwx)ex!{*V!{!|!*Z!|;'S*V;'S;=`*s<%lO*V!R!*bX!a`!cpOr*Vrs(Vsv*Vwx)ex!r*V!r!s!*}!s;'S*V;'S;=`*s<%lO*V!R!+UX!a`!cpOr*Vrs(Vsv*Vwx)ex!g*V!g!h!+q!h;'S*V;'S;=`*s<%lO*V!R!+xY!a`!cpOr!+qrs!,hsv!+qvw!-Swx!.[x!`!+q!`!a!/j!a;'S!+q;'S;=`!0Y<%lO!+qq!,mV!cpOv!,hvx!-Sx!`!,h!`!a!-q!a;'S!,h;'S;=`!.U<%lO!,hP!-VTO!`!-S!`!a!-f!a;'S!-S;'S;=`!-k<%lO!-SP!-kO{PP!-nP;=`<%l!-Sq!-xS!cp{POv(Vx;'S(V;'S;=`(h<%lO(Vq!.XP;=`<%l!,ha!.aX!a`Or!.[rs!-Ssv!.[vw!-Sw!`!.[!`!a!.|!a;'S!.[;'S;=`!/d<%lO!.[a!/TT!a`{POr)esv)ew;'S)e;'S;=`)y<%lO)ea!/gP;=`<%l!.[!R!/sV!a`!cp{POr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!0]P;=`<%l!+q!R!0gX!a`!cpOr*Vrs(Vsv*Vwx)ex#c*V#c#d!1S#d;'S*V;'S;=`*s<%lO*V!R!1ZX!a`!cpOr*Vrs(Vsv*Vwx)ex#V*V#V#W!1v#W;'S*V;'S;=`*s<%lO*V!R!1}X!a`!cpOr*Vrs(Vsv*Vwx)ex#h*V#h#i!2j#i;'S*V;'S;=`*s<%lO*V!R!2qX!a`!cpOr*Vrs(Vsv*Vwx)ex#m*V#m#n!3^#n;'S*V;'S;=`*s<%lO*V!R!3eX!a`!cpOr*Vrs(Vsv*Vwx)ex#d*V#d#e!4Q#e;'S*V;'S;=`*s<%lO*V!R!4XX!a`!cpOr*Vrs(Vsv*Vwx)ex#X*V#X#Y!+q#Y;'S*V;'S;=`*s<%lO*V!R!4{Y!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!a!4t!a!b!:]!b;'S!4t;'S;=`!;r<%lO!4tq!5pV!cpOv!5kvx!6Vx!a!5k!a!b!7W!b;'S!5k;'S;=`!8V<%lO!5kP!6YTO!a!6V!a!b!6i!b;'S!6V;'S;=`!7Q<%lO!6VP!6lTO!`!6V!`!a!6{!a;'S!6V;'S;=`!7Q<%lO!6VP!7QOxPP!7TP;=`<%l!6Vq!7]V!cpOv!5kvx!6Vx!`!5k!`!a!7r!a;'S!5k;'S;=`!8V<%lO!5kq!7yS!cpxPOv(Vx;'S(V;'S;=`(h<%lO(Vq!8YP;=`<%l!5ka!8bX!a`Or!8]rs!6Vsv!8]vw!6Vw!a!8]!a!b!8}!b;'S!8];'S;=`!:V<%lO!8]a!9SX!a`Or!8]rs!6Vsv!8]vw!6Vw!`!8]!`!a!9o!a;'S!8];'S;=`!:V<%lO!8]a!9vT!a`xPOr)esv)ew;'S)e;'S;=`)y<%lO)ea!:YP;=`<%l!8]!R!:dY!a`!cpOr!4trs!5ksv!4tvw!6Vwx!8]x!`!4t!`!a!;S!a;'S!4t;'S;=`!;r<%lO!4t!R!;]V!a`!cpxPOr*Vrs(Vsv*Vwx)ex;'S*V;'S;=`*s<%lO*V!R!;uP;=`<%l!4t!V!{let u=o.type.id;if(u==Vst)return _P(o,l,n);if(u==Wst)return _P(o,l,r);if(u==Qst)return _P(o,l,i);if(u==f0e&&a.length){let c=o.node,f=c.firstChild,h=f&&Bee(f,l),g;if(h){for(let b of a)if(b.tag==h&&(!b.attrs||b.attrs(g||(g=b0e(c,l))))){let S=c.lastChild,w=S.type.id==Gst?S.from:c.to;if(w>f.to)return{parser:b.parser,overlay:[{from:f.to,to:w}]}}}}if(s&&u==h0e){let c=o.node,f;if(f=c.firstChild){let h=s[l.read(f.from,f.to)];if(h)for(let g of h){if(g.tagName&&g.tagName!=Bee(c.parent,l))continue;let b=c.lastChild;if(b.type.id==_L){let S=b.from+1,w=b.lastChild,E=b.to-(w&&w.isError?0:1);if(E>S)return{parser:g.parser,overlay:[{from:S,to:E}]}}else if(b.type.id==p0e)return{parser:g.parser,overlay:[{from:b.from,to:b.to}]}}}}return null})}const pot=99,Uee=1,mot=100,got=101,zee=2,v0e=[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],bot=58,yot=40,O0e=95,vot=91,J4=45,Oot=46,Sot=35,Eot=37,wot=38,xot=92,Tot=10;function Ex(e){return e>=65&&e<=90||e>=97&&e<=122||e>=161}function kot(e){return e>=48&&e<=57}const Cot=new Ld((e,t)=>{for(let n=!1,r=0,i=0;;i++){let{next:a}=e;if(Ex(a)||a==J4||a==O0e||n&&kot(a))!n&&(a!=J4||i>0)&&(n=!0),r===i&&a==J4&&r++,e.advance();else if(a==xot&&e.peek(1)!=Tot)e.advance(),e.next>-1&&e.advance(),n=!0;else{n&&e.acceptToken(a==yot?mot:r==2&&t.canShift(zee)?zee:got);break}}}),Aot=new Ld(e=>{if(v0e.includes(e.peek(-1))){let{next:t}=e;(Ex(t)||t==O0e||t==Sot||t==Oot||t==vot||t==bot&&Ex(e.peek(1))||t==J4||t==wot)&&e.acceptToken(pot)}}),_ot=new Ld(e=>{if(!v0e.includes(e.peek(-1))){let{next:t}=e;if(t==Eot&&(e.advance(),e.acceptToken(Uee)),Ex(t)){do e.advance();while(Ex(e.next));e.acceptToken(Uee)}}}),Rot=HO({"AtKeyword import charset namespace keyframes media supports":Ee.definitionKeyword,"from to selector":Ee.keyword,NamespaceName:Ee.namespace,KeyframeName:Ee.labelName,KeyframeRangeName:Ee.operatorKeyword,TagName:Ee.tagName,ClassName:Ee.className,PseudoClassName:Ee.constant(Ee.className),IdName:Ee.labelName,"FeatureName PropertyName":Ee.propertyName,AttributeName:Ee.attributeName,NumberLiteral:Ee.number,KeywordQuery:Ee.keyword,UnaryQueryOp:Ee.operatorKeyword,"CallTag ValueName":Ee.atom,VariableName:Ee.variableName,Callee:Ee.operatorKeyword,Unit:Ee.unit,"UniversalSelector NestingSelector":Ee.definitionOperator,MatchOp:Ee.compareOperator,"ChildOp SiblingOp, LogicOp":Ee.logicOperator,BinOp:Ee.arithmeticOperator,Important:Ee.modifier,Comment:Ee.blockComment,ColorLiteral:Ee.color,"ParenthesizedContent StringLiteral":Ee.string,":":Ee.punctuation,"PseudoOp #":Ee.derefOperator,"; ,":Ee.separator,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace}),Iot={__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},Dot={__proto__:null,"@import":118,"@media":142,"@charset":146,"@namespace":150,"@keyframes":156,"@supports":168},Not={__proto__:null,not:132,only:132},Pot=fO.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:[Aot,_ot,Cot,1,2,3,4,new e5("m~RRYZ[z{a~~g~aO#^~~dP!P!Qg~lO#_~~",28,105)],topRules:{StyleSheet:[0,4],Styles:[1,86]},specialized:[{term:100,get:e=>Iot[e]||-1},{term:58,get:e=>Dot[e]||-1},{term:101,get:e=>Not[e]||-1}],tokenPrec:1200});let RP=null;function IP(){if(!RP&&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)));RP=t.sort().map(r=>({type:"property",label:r}))}return RP||[]}const jee=["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})),Hee=["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}))),Mot=["a","abbr","address","article","aside","b","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","dd","del","details","dfn","dialog","div","dl","dt","em","figcaption","figure","footer","form","header","hgroup","h1","h2","h3","h4","h5","h6","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","main","meter","nav","ol","output","p","pre","ruby","section","select","small","source","span","strong","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","tr","u","ul"].map(e=>({type:"type",label:e})),Jp=/^(\w[\w-]*|-\w[\w-]*|)$/,Lot=/^-(-[\w-]*)?$/;function $ot(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 Vee=new dpe,Fot=["Declaration"];function Bot(e){for(let t=e;;){if(t.type.isTop)return t;if(!(t=t.parent))return e}}function S0e(e,t,n){if(t.to-t.from>4096){let r=Vee.get(t);if(r)return r;let i=[],a=new Set,s=t.cursor(_i.IncludeAnonymous);if(s.firstChild())do for(let o of S0e(e,s.node,n))a.has(o.label)||(a.add(o.label),i.push(o));while(s.nextSibling());return Vee.set(t,i),i}else{let r=[],i=new Set;return t.cursor().iterate(a=>{var s;if(n(a)&&a.matchContext(Fot)&&((s=a.node.nextSibling)===null||s===void 0?void 0:s.name)==":"){let o=e.sliceString(a.from,a.to);i.has(o)||(i.add(o),r.push({label:o,type:"variable"}))}}),r}}const Uot=e=>t=>{let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.type.isError&&i.from==i.to-1&&n.doc.sliceString(i.from,i.to)=="-";if(i.name=="PropertyName"||(a||i.name=="TagName")&&/^(Block|Styles)$/.test(i.resolve(i.to).name))return{from:i.from,options:IP(),validFor:Jp};if(i.name=="ValueName")return{from:i.from,options:Hee,validFor:Jp};if(i.name=="PseudoClassName")return{from:i.from,options:jee,validFor:Jp};if(e(i)||(t.explicit||a)&&$ot(i,n.doc))return{from:e(i)||a?i.from:r,options:S0e(n.doc,Bot(i),e),validFor:Lot};if(i.name=="TagName"){for(let{parent:l}=i;l;l=l.parent)if(l.name=="Block")return{from:i.from,options:IP(),validFor:Jp};return{from:i.from,options:Mot,validFor:Jp}}if(!t.explicit)return null;let s=i.resolve(r),o=s.childBefore(r);return o&&o.name==":"&&s.name=="PseudoClassSelector"?{from:r,options:jee,validFor:Jp}:o&&o.name==":"&&s.name=="Declaration"||s.name=="ArgList"?{from:r,options:Hee,validFor:Jp}:s.name=="Block"||s.name=="Styles"?{from:r,options:IP(),validFor:Jp}:null},zot=Uot(e=>e.name=="VariableName"),r5=oO.define({name:"css",parser:Pot.configure({props:[BT.add({Declaration:X4()}),VO.add({"Block KeyframeList":vpe})]}),languageData:{commentTokens:{block:{open:"/*",close:"*/"}},indentOnInput:/^\s*\}$/,wordChars:"-"}});function jot(){return new px(r5,r5.data.of({autocomplete:zot}))}const Hot=309,Wee=1,Vot=2,Wot=3,Qot=310,qot=312,Got=313,Yot=4,Zot=5,Xot=0,IL=[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],E0e=125,Kot=59,DL=47,Jot=42,elt=43,tlt=45,nlt=60,rlt=44,ilt=new o0e({start:!1,shift(e,t){return t==Yot||t==Zot||t==qot?e:t==Got},strict:!1}),alt=new Ld((e,t)=>{let{next:n}=e;(n==E0e||n==-1||t.context)&&e.acceptToken(Qot)},{contextual:!0,fallback:!0}),slt=new Ld((e,t)=>{let{next:n}=e,r;IL.indexOf(n)>-1||n==DL&&((r=e.peek(1))==DL||r==Jot)||n!=E0e&&n!=Kot&&n!=-1&&!t.context&&e.acceptToken(Hot)},{contextual:!0}),olt=new Ld((e,t)=>{let{next:n}=e;if((n==elt||n==tlt)&&(e.advance(),n==e.next)){e.advance();let r=!t.context&&t.canShift(Wee);e.acceptToken(r?Wee:Vot)}},{contextual:!0});function DP(e,t){return e>=65&&e<=90||e>=97&&e<=122||e==95||e>=192||!t&&e>=48&&e<=57}const llt=new Ld((e,t)=>{if(e.next!=nlt||!t.dialectEnabled(Xot)||(e.advance(),e.next==DL))return;let n=0;for(;IL.indexOf(e.next)>-1;)e.advance(),n++;if(DP(e.next,!0)){for(e.advance(),n++;DP(e.next,!1);)e.advance(),n++;for(;IL.indexOf(e.next)>-1;)e.advance(),n++;if(e.next==rlt)return;for(let r=0;;r++){if(r==7){if(!DP(e.next,!0))return;break}if(e.next!="extends".charCodeAt(r))break;e.advance(),n++}}e.acceptToken(Wot,-n)}),ult=HO({"get set async static":Ee.modifier,"for while do if else switch try catch finally return throw break continue default case":Ee.controlKeyword,"in of await yield void typeof delete instanceof":Ee.operatorKeyword,"let var const using function class extends":Ee.definitionKeyword,"import export from":Ee.moduleKeyword,"with debugger as new":Ee.keyword,TemplateString:Ee.special(Ee.string),super:Ee.atom,BooleanLiteral:Ee.bool,this:Ee.self,null:Ee.null,Star:Ee.modifier,VariableName:Ee.variableName,"CallExpression/VariableName TaggedTemplateExpression/VariableName":Ee.function(Ee.variableName),VariableDefinition:Ee.definition(Ee.variableName),Label:Ee.labelName,PropertyName:Ee.propertyName,PrivatePropertyName:Ee.special(Ee.propertyName),"CallExpression/MemberExpression/PropertyName":Ee.function(Ee.propertyName),"FunctionDeclaration/VariableDefinition":Ee.function(Ee.definition(Ee.variableName)),"ClassDeclaration/VariableDefinition":Ee.definition(Ee.className),PropertyDefinition:Ee.definition(Ee.propertyName),PrivatePropertyDefinition:Ee.definition(Ee.special(Ee.propertyName)),UpdateOp:Ee.updateOperator,"LineComment Hashbang":Ee.lineComment,BlockComment:Ee.blockComment,Number:Ee.number,String:Ee.string,Escape:Ee.escape,ArithOp:Ee.arithmeticOperator,LogicOp:Ee.logicOperator,BitOp:Ee.bitwiseOperator,CompareOp:Ee.compareOperator,RegExp:Ee.regexp,Equals:Ee.definitionOperator,Arrow:Ee.function(Ee.punctuation),": Spread":Ee.punctuation,"( )":Ee.paren,"[ ]":Ee.squareBracket,"{ }":Ee.brace,"InterpolationStart InterpolationEnd":Ee.special(Ee.brace),".":Ee.derefOperator,", ;":Ee.separator,"@":Ee.meta,TypeName:Ee.typeName,TypeDefinition:Ee.definition(Ee.typeName),"type enum interface implements namespace module declare":Ee.definitionKeyword,"abstract global Privacy readonly override":Ee.modifier,"is keyof unique infer":Ee.operatorKeyword,JSXAttributeValue:Ee.attributeValue,JSXText:Ee.content,"JSXStartTag JSXStartCloseTag JSXSelfCloseEndTag JSXEndTag":Ee.angleBracket,"JSXIdentifier JSXNameSpacedName":Ee.tagName,"JSXAttribute/JSXIdentifier JSXAttribute/JSXNameSpacedName":Ee.attributeName,"JSXBuiltin/JSXIdentifier":Ee.standard(Ee.tagName)}),clt={__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},dlt={__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},flt={__proto__:null,"<":143},hlt=fO.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:ilt,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:[ult],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#clt[e]||-1},{term:334,get:e=>dlt[e]||-1},{term:70,get:e=>flt[e]||-1}],tokenPrec:14638}),w0e=[pl("function ${name}(${params}) {\n ${}\n}",{label:"function",detail:"definition",type:"keyword"}),pl("for (let ${index} = 0; ${index} < ${bound}; ${index}++) {\n ${}\n}",{label:"for",detail:"loop",type:"keyword"}),pl("for (let ${name} of ${collection}) {\n ${}\n}",{label:"for",detail:"of loop",type:"keyword"}),pl("do {\n ${}\n} while (${})",{label:"do",detail:"loop",type:"keyword"}),pl("while (${}) {\n ${}\n}",{label:"while",detail:"loop",type:"keyword"}),pl(`try { - \${} -} catch (\${error}) { - \${} -}`,{label:"try",detail:"/ catch block",type:"keyword"}),pl("if (${}) {\n ${}\n}",{label:"if",detail:"block",type:"keyword"}),pl(`if (\${}) { - \${} -} else { - \${} -}`,{label:"if",detail:"/ else block",type:"keyword"}),pl(`class \${name} { - constructor(\${params}) { - \${} - } -}`,{label:"class",detail:"definition",type:"keyword"}),pl('import {${names}} from "${module}"\n${}',{label:"import",detail:"named",type:"keyword"}),pl('import ${name} from "${module}"\n${}',{label:"import",detail:"default",type:"keyword"})],plt=w0e.concat([pl("interface ${name} {\n ${}\n}",{label:"interface",detail:"definition",type:"keyword"}),pl("type ${name} = ${type}",{label:"type",detail:"definition",type:"keyword"}),pl("enum ${name} {\n ${}\n}",{label:"enum",detail:"definition",type:"keyword"})]),Qee=new dpe,x0e=new Set(["Script","Block","FunctionExpression","FunctionDeclaration","ArrowFunction","MethodDeclaration","ForStatement"]);function jE(e){return(t,n)=>{let r=t.node.getChild("VariableDefinition");return r&&n(r,e),!0}}const mlt=["FunctionDeclaration"],glt={FunctionDeclaration:jE("function"),ClassDeclaration:jE("class"),ClassExpression:()=>!0,EnumDeclaration:jE("constant"),TypeAliasDeclaration:jE("type"),NamespaceDeclaration:jE("namespace"),VariableDefinition(e,t){e.matchContext(mlt)||t(e,"variable")},TypeDefinition(e,t){t(e,"type")},__proto__:null};function T0e(e,t){let n=Qee.get(t);if(n)return n;let r=[],i=!0;function a(s,o){let l=e.sliceString(s.from,s.to);r.push({label:l,type:o})}return t.cursor(_i.IncludeAnonymous).iterate(s=>{if(i)i=!1;else if(s.name){let o=glt[s.name];if(o&&o(s,a)||x0e.has(s.name))return!1}else if(s.to-s.from>8192){for(let o of T0e(e,s.node))r.push(o);return!1}}),Qee.set(t,r),r}const qee=/^[\w$\xa1-\uffff][\w$\d\xa1-\uffff]*$/,k0e=["TemplateString","String","RegExp","LineComment","BlockComment","VariableDefinition","TypeDefinition","Label","PropertyDefinition","PropertyName","PrivatePropertyDefinition","PrivatePropertyName",".","?."];function blt(e){let t=Di(e.state).resolveInner(e.pos,-1);if(k0e.indexOf(t.name)>-1)return null;let n=t.name=="VariableName"||t.to-t.from<20&&qee.test(e.state.sliceDoc(t.from,t.to));if(!n&&!e.explicit)return null;let r=[];for(let i=t;i;i=i.parent)x0e.has(i.name)&&(r=r.concat(T0e(e.state.doc,i)));return{options:r,from:n?t.from:e.pos,validFor:qee}}const jf=oO.define({name:"javascript",parser:hlt.configure({props:[BT.add({IfStatement:X4({except:/^\s*({|else\b)/}),TryStatement:X4({except:/^\s*({|catch\b|finally\b)/}),LabeledStatement:Cnt,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:knt({closing:"}"}),ArrowFunction:e=>e.baseIndent+e.unit,"TemplateString BlockComment":()=>null,"Statement Property":X4({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}}),VO.add({"Block ClassBody SwitchBody EnumBody ObjectExpression ArrayExpression ObjectType":vpe,BlockComment(e){return{from:e.from+2,to:e.to-2}}})]}),languageData:{closeBrackets:{brackets:["(","[","{","'",'"',"`"]},commentTokens:{line:"//",block:{open:"/*",close:"*/"}},indentOnInput:/^\s*(?:case |default:|\{|\}|<\/)$/,wordChars:"$"}}),C0e={test:e=>/^JSX/.test(e.name),facet:PU({commentTokens:{block:{open:"{/*",close:"*/}"}}})},A0e=jf.configure({dialect:"ts"},"typescript"),_0e=jf.configure({dialect:"jsx",props:[MU.add(e=>e.isTop?[C0e]:void 0)]}),R0e=jf.configure({dialect:"jsx ts",props:[MU.add(e=>e.isTop?[C0e]:void 0)]},"typescript");let I0e=e=>({label:e,type:"keyword"});const D0e="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(I0e),ylt=D0e.concat(["declare","implements","private","protected","public"].map(I0e));function vlt(e={}){let t=e.jsx?e.typescript?R0e:_0e:e.typescript?A0e:jf,n=e.typescript?plt.concat(ylt):w0e.concat(D0e);return new px(t,[jf.data.of({autocomplete:Hit(k0e,Sme(n))}),jf.data.of({autocomplete:blt}),e.jsx?Elt:[]])}function Olt(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 Gee(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 Slt=typeof navigator=="object"&&/Android\b/.test(navigator.userAgent),Elt=dn.inputHandler.of((e,t,n,r,i)=>{if((Slt?e.composing:e.compositionStarted)||e.state.readOnly||t!=n||r!=">"&&r!="/"||!jf.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u;let{head:c}=l,f=Di(s).resolveInner(c-1,-1),h;if(f.name=="JSXStartTag"&&(f=f.parent),!(s.doc.sliceString(c-1,c)!=r||f.name=="JSXAttributeValue"&&f.to>c)){if(r==">"&&f.name=="JSXFragmentTag")return{range:l,changes:{from:c,insert:""}};if(r=="/"&&f.name=="JSXStartCloseTag"){let g=f.parent,b=g.parent;if(b&&g.from==c-2&&((h=Gee(s.doc,b.firstChild,c))||((u=b.firstChild)===null||u===void 0?void 0:u.name)=="JSXFragmentTag")){let S=`${h}>`;return{range:vt.cursor(c+S.length,-1),changes:{from:c,insert:S}}}}else if(r==">"){let g=Olt(f);if(g&&!/^\/?>|^<\//.test(s.doc.sliceString(c,c+2))&&(h=Gee(s.doc,g,c)))return{range:l,changes:{from:c,insert:``}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),HE=["_blank","_self","_top","_parent"],NP=["ascii","utf-8","utf-16","latin1","latin1"],PP=["get","post","put","delete"],MP=["application/x-www-form-urlencoded","multipart/form-data","text/plain"],tu=["true","false"],Pn={},wlt={a:{attrs:{href:null,ping:null,type:null,media:null,target:HE,hreflang:null}},abbr:Pn,address:Pn,area:{attrs:{alt:null,coords:null,href:null,target:null,ping:null,media:null,hreflang:null,type:null,shape:["default","rect","circle","poly"]}},article:Pn,aside:Pn,audio:{attrs:{src:null,mediagroup:null,crossorigin:["anonymous","use-credentials"],preload:["none","metadata","auto"],autoplay:["autoplay"],loop:["loop"],controls:["controls"]}},b:Pn,base:{attrs:{href:null,target:HE}},bdi:Pn,bdo:Pn,blockquote:{attrs:{cite:null}},body:Pn,br:Pn,button:{attrs:{form:null,formaction:null,name:null,value:null,autofocus:["autofocus"],disabled:["autofocus"],formenctype:MP,formmethod:PP,formnovalidate:["novalidate"],formtarget:HE,type:["submit","reset","button"]}},canvas:{attrs:{width:null,height:null}},caption:Pn,center:Pn,cite:Pn,code:Pn,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:Pn,del:{attrs:{cite:null,datetime:null}},details:{attrs:{open:["open"]}},dfn:Pn,div:Pn,dl:Pn,dt:Pn,em:Pn,embed:{attrs:{src:null,type:null,width:null,height:null}},eventsource:{attrs:{src:null}},fieldset:{attrs:{disabled:["disabled"],form:null,name:null}},figcaption:Pn,figure:Pn,footer:Pn,form:{attrs:{action:null,name:null,"accept-charset":NP,autocomplete:["on","off"],enctype:MP,method:PP,novalidate:["novalidate"],target:HE}},h1:Pn,h2:Pn,h3:Pn,h4:Pn,h5:Pn,h6:Pn,head:{children:["title","base","link","style","meta","script","noscript","command"]},header:Pn,hgroup:Pn,hr:Pn,html:{attrs:{manifest:null}},i:Pn,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:MP,formmethod:PP,formnovalidate:["novalidate"],formtarget:HE,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:Pn,keygen:{attrs:{challenge:null,form:null,name:null,autofocus:["autofocus"],disabled:["disabled"],keytype:["RSA"]}},label:{attrs:{for:null,form:null}},legend:Pn,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:Pn,menu:{attrs:{label:null,type:["list","context","toolbar"]}},meta:{attrs:{content:null,charset:NP,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:Pn,noscript:Pn,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:Pn,param:{attrs:{name:null,value:null}},pre:Pn,progress:{attrs:{value:null,max:null}},q:{attrs:{cite:null}},rp:Pn,rt:Pn,ruby:Pn,samp:Pn,script:{attrs:{type:["text/javascript"],src:null,async:["async"],defer:["defer"],charset:NP}},section:Pn,select:{attrs:{form:null,name:null,size:null,autofocus:["autofocus"],disabled:["disabled"],multiple:["multiple"]}},slot:{attrs:{name:null}},small:Pn,source:{attrs:{src:null,type:null,media:null}},span:Pn,strong:Pn,style:{attrs:{type:["text/css"],media:null,scoped:null}},sub:Pn,summary:Pn,sup:Pn,table:Pn,tbody:Pn,td:{attrs:{colspan:null,rowspan:null,headers:null}},template:Pn,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:Pn,th:{attrs:{colspan:null,rowspan:null,headers:null,scope:["row","col","rowgroup","colgroup"]}},thead:Pn,time:{attrs:{datetime:null}},title:Pn,tr:Pn,track:{attrs:{src:null,label:null,default:null,kind:["subtitles","captions","descriptions","chapters","metadata"],srclang:null}},ul:{children:["li","script","template","ul","ol"]},var:Pn,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:Pn},N0e={accesskey:null,class:null,contenteditable:tu,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:tu,autocorrect:tu,autocapitalize:tu,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":tu,"aria-autocomplete":["inline","list","both","none"],"aria-busy":tu,"aria-checked":["true","false","mixed","undefined"],"aria-controls":null,"aria-describedby":null,"aria-disabled":tu,"aria-dropeffect":null,"aria-expanded":["true","false","undefined"],"aria-flowto":null,"aria-grabbed":["true","false","undefined"],"aria-haspopup":tu,"aria-hidden":tu,"aria-invalid":["true","false","grammar","spelling"],"aria-label":null,"aria-labelledby":null,"aria-level":null,"aria-live":["off","polite","assertive"],"aria-multiline":tu,"aria-multiselectable":tu,"aria-owns":null,"aria-posinset":null,"aria-pressed":["true","false","mixed","undefined"],"aria-readonly":tu,"aria-relevant":null,"aria-required":tu,"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},P0e="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 P0e)N0e[e]=null;let wx=class{constructor(t,n){this.tags=Object.assign(Object.assign({},wlt),t),this.globalAttrs=Object.assign(Object.assign({},N0e),n),this.allTags=Object.keys(this.tags),this.globalAttrNames=Object.keys(this.globalAttrs)}};wx.default=new wx;function hO(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 pO(e,t=!1){for(;e;e=e.parent)if(e.name=="Element")if(t)t=!1;else return e;return null}function M0e(e,t,n){let r=n.tags[hO(e,pO(t))];return(r==null?void 0:r.children)||n.allTags}function rz(e,t){let n=[];for(let r=pO(t);r&&!r.type.isTop;r=pO(r.parent)){let i=hO(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 L0e=/^[:\-\.\w\u00b7-\uffff]*$/;function Yee(e,t,n,r,i){let a=/\s*>/.test(e.sliceDoc(i,i+5))?"":">",s=pO(n,!0);return{from:r,to:i,options:M0e(e.doc,s,t).map(o=>({label:o,type:"type"})).concat(rz(e.doc,n).map((o,l)=>({label:"/"+o,apply:"/"+o+a,type:"type",boost:99-l}))),validFor:/^\/?[:\-\.\w\u00b7-\uffff]*$/}}function Zee(e,t,n,r){let i=/\s*>/.test(e.sliceDoc(r,r+5))?"":">";return{from:n,to:r,options:rz(e.doc,t).map((a,s)=>({label:a,apply:a+i,type:"type",boost:99-s})),validFor:L0e}}function xlt(e,t,n,r){let i=[],a=0;for(let s of M0e(e.doc,n,t))i.push({label:"<"+s,type:"type"});for(let s of rz(e.doc,n))i.push({label:"",type:"type",boost:99-a++});return{from:r,to:r,options:i,validFor:/^<\/?[:\-\.\w\u00b7-\uffff]*$/}}function Tlt(e,t,n,r,i){let a=pO(n),s=a?t.tags[hO(e.doc,a)]:null,o=s&&s.attrs?Object.keys(s.attrs):[],l=s&&s.globalAttrs===!1?o:o.length?o.concat(t.globalAttrNames):t.globalAttrNames;return{from:r,to:i,options:l.map(u=>({label:u,type:"property"})),validFor:L0e}}function klt(e,t,n,r,i){var a;let s=(a=n.parent)===null||a===void 0?void 0:a.getChild("AttributeName"),o=[],l;if(s){let u=e.sliceDoc(s.from,s.to),c=t.globalAttrs[u];if(!c){let f=pO(n),h=f?t.tags[hO(e.doc,f)]:null;c=(h==null?void 0:h.attrs)&&h.attrs[u]}if(c){let f=e.sliceDoc(r,i).toLowerCase(),h='"',g='"';/^['"]/.test(f)?(l=f[0]=='"'?/^[^"]*$/:/^[^']*$/,h="",g=e.sliceDoc(i,i+1)==f[0]?"":f[0],f=f.slice(1),r++):l=/^[^\s<>='"]*$/;for(let b of c)o.push({label:b,apply:h+b+g,type:"constant"})}}return{from:r,to:i,options:o,validFor:l}}function $0e(e,t){let{state:n,pos:r}=t,i=Di(n).resolveInner(r,-1),a=i.resolve(r);for(let s=r,o;a==i&&(o=i.childBefore(s));){let l=o.lastChild;if(!l||!l.type.isError||l.from$0e(r,i)}const _lt=jf.parser.configure({top:"SingleExpression"}),F0e=[{tag:"script",attrs:e=>e.type=="text/typescript"||e.lang=="ts",parser:A0e.parser},{tag:"script",attrs:e=>e.type=="text/babel"||e.type=="text/jsx",parser:_0e.parser},{tag:"script",attrs:e=>e.type=="text/typescript-jsx",parser:R0e.parser},{tag:"script",attrs(e){return/^(importmap|speculationrules|application\/(.+\+)?json)$/i.test(e.type)},parser:_lt},{tag:"script",attrs(e){return!e.type||/^(?:text|application)\/(?:x-)?(?:java|ecma)script$|^module$|^$/i.test(e.type)},parser:jf.parser},{tag:"style",attrs(e){return(!e.lang||e.lang=="css")&&(!e.type||/^(text\/)?(x-)?(stylesheet|css)$/i.test(e.type))},parser:r5.parser}],B0e=[{name:"style",parser:r5.parser.configure({top:"Styles"})}].concat(P0e.map(e=>({name:e,parser:jf.parser}))),U0e=oO.define({name:"html",parser:hot.configure({props:[BT.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:"-._"}}),e_=U0e.configure({wrap:y0e(F0e,B0e)});function Rlt(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=y0e((e.nestedLanguages||[]).concat(F0e),(e.nestedAttributes||[]).concat(B0e)));let r=n?U0e.configure({wrap:n,dialect:t}):t?e_.configure({dialect:t}):e_;return new px(r,[e_.data.of({autocomplete:Alt(e)}),e.autoCloseTags!==!1?Ilt:[],vlt().support,jot().support])}const Xee=new Set("area base br col command embed frame hr img input keygen link meta param source track wbr menuitem".split(" ")),Ilt=dn.inputHandler.of((e,t,n,r,i)=>{if(e.composing||e.state.readOnly||t!=n||r!=">"&&r!="/"||!e_.isActiveAt(e.state,t,-1))return!1;let a=i(),{state:s}=a,o=s.changeByRange(l=>{var u,c,f;let h=s.doc.sliceString(l.from-1,l.to)==r,{head:g}=l,b=Di(s).resolveInner(g-1,-1),S;if((b.name=="TagName"||b.name=="StartTag")&&(b=b.parent),h&&r==">"&&b.name=="OpenTag"){if(((c=(u=b.parent)===null||u===void 0?void 0:u.lastChild)===null||c===void 0?void 0:c.name)!="CloseTag"&&(S=hO(s.doc,b.parent,g))&&!Xee.has(S)){let w=g+(s.doc.sliceString(g,g+1)===">"?1:0),E=``;return{range:l,changes:{from:g,to:w,insert:E}}}}else if(h&&r=="/"&&b.name=="IncompleteCloseTag"){let w=b.parent;if(b.from==g-2&&((f=w.lastChild)===null||f===void 0?void 0:f.name)!="CloseTag"&&(S=hO(s.doc,w,g))&&!Xee.has(S)){let E=g+(s.doc.sliceString(g,g+1)===">"?1:0),x=`${S}>`;return{range:vt.cursor(g+x.length,-1),changes:{from:g,to:E,insert:x}}}}return{range:l}});return o.changes.empty?!1:(e.dispatch([a,s.update(o,{userEvent:"input.complete",scrollIntoView:!0})]),!0)}),z0e=PU({commentTokens:{block:{open:""}}}),j0e=new ir,H0e=lst.configure({props:[VO.add(e=>!e.is("Block")||e.is("Document")||NL(e)!=null?void 0:(t,n)=>({from:n.doc.lineAt(t.from).to,to:t.to})),j0e.add(NL),BT.add({Document:()=>null}),zg.add({Document:z0e})]});function NL(e){let t=/^(?:ATX|Setext)Heading(\d)$/.exec(e.name);return t?+t[1]:void 0}function Dlt(e,t){let n=e;for(;;){let r=n.nextSibling,i;if(!r||(i=NL(r.type))!=null&&i<=t)break;n=r}return n.to}const Nlt=ype.of((e,t,n)=>{for(let r=Di(e).resolveInner(n,-1);r&&!(r.fromn)return{from:n,to:a}}return null});function iz(e){return new gc(z0e,e,[Nlt],"markdown")}const Plt=iz(H0e),Mlt=H0e.configure([vst,Sst,Ost,Est,{props:[VO.add({Table:(e,t)=>({from:t.doc.lineAt(e.from).to,to:e.to})})]}]),V0e=iz(Mlt);function Llt(e,t){return n=>{if(n&&e){let r=null;if(n=/\S*/.exec(n)[0],typeof e=="function"?r=e(n):r=F3.matchLanguageName(e,n,!0),r instanceof F3)return r.support?r.support.language.parser:hx.getSkippingParser(r.load());if(r)return r.parser}return t?t.parser:null}}class MA{constructor(t,n,r,i,a,s,o){this.node=t,this.from=n,this.to=r,this.spaceBefore=i,this.spaceAfter=a,this.type=s,this.item=o}blank(t,n=!0){let r=this.spaceBefore+(this.node.name=="Blockquote"?">":"");if(t!=null){for(;r.length0;i--)r+=" ";return r+(n?this.spaceAfter:"")}}marker(t,n){let r=this.node.name=="OrderedList"?String(+Q0e(this.item,t)[2]+n):"";return this.spaceBefore+r+this.type+this.spaceAfter}}function W0e(e,t){let n=[];for(let i=e;i&&i.name!="Document";i=i.parent)(i.name=="ListItem"||i.name=="Blockquote"||i.name=="FencedCode")&&n.push(i);let r=[];for(let i=n.length-1;i>=0;i--){let a=n[i],s,o=t.lineAt(a.from),l=a.from-o.from;if(a.name=="FencedCode")r.push(new MA(a,l,l,"","","",null));else if(a.name=="Blockquote"&&(s=/^ *>( ?)/.exec(o.text.slice(l))))r.push(new MA(a,l,l+s[0].length,"",s[1],">",null));else if(a.name=="ListItem"&&a.parent.name=="OrderedList"&&(s=/^( *)\d+([.)])( *)/.exec(o.text.slice(l)))){let u=s[3],c=s[0].length;u.length>=4&&(u=u.slice(0,u.length-4),c-=4),r.push(new MA(a.parent,l,l+c,s[1],u,s[2],a))}else if(a.name=="ListItem"&&a.parent.name=="BulletList"&&(s=/^( *)([-+*])( {1,4}\[[ xX]\])?( +)/.exec(o.text.slice(l)))){let u=s[4],c=s[0].length;u.length>4&&(u=u.slice(0,u.length-4),c-=4);let f=s[2];s[3]&&(f+=s[3].replace(/[xX]/," ")),r.push(new MA(a.parent,l,l+c,s[1],u,f,a))}}return r}function Q0e(e,t){return/^(\s*)(\d+)(?=[.)])/.exec(t.sliceString(e.from,e.from+10))}function LP(e,t,n,r=0){for(let i=-1,a=e;;){if(a.name=="ListItem"){let o=Q0e(a,t),l=+o[2];if(i>=0){if(l!=i+1)return;n.push({from:a.from+o[1].length,to:a.from+o[0].length,insert:String(i+2+r)})}i=l}let s=a.nextSibling;if(!s)break;a=s}}function az(e,t){let n=/^[ \t]*/.exec(e)[0].length;if(!n||t.facet(FT)!=" ")return e;let r=kd(e,4,n),i="";for(let a=r;a>0;)a>=4?(i+=" ",a-=4):(i+=" ",a--);return i+e.slice(n)}const $lt=({state:e,dispatch:t})=>{let n=Di(e),{doc:r}=e,i=null,a=e.changeByRange(s=>{if(!s.empty||!V0e.isActiveAt(e,s.from))return i={range:s};let o=s.from,l=r.lineAt(o),u=W0e(n.resolveInner(o,-1),r);for(;u.length&&u[u.length-1].from>o-l.from;)u.pop();if(!u.length)return i={range:s};let c=u[u.length-1];if(c.to-c.spaceAfter.length>o-l.from)return i={range:s};let f=o>=c.to-c.spaceAfter.length&&!/\S/.test(l.text.slice(c.to));if(c.item&&f){let w=c.node.firstChild,E=c.node.getChild("ListItem","ListItem");if(w.to>=o||E&&E.to0&&!/[^\s>]/.test(r.lineAt(l.from-1).text)){let x=u.length>1?u[u.length-2]:null,k,C="";x&&x.item?(k=l.from+x.from,C=x.marker(r,1)):k=l.from+(x?x.to:0);let I=[{from:k,to:o,insert:C}];return c.node.name=="OrderedList"&&LP(c.item,r,I,-2),x&&x.node.name=="OrderedList"&&LP(x.item,r,I),{range:vt.cursor(k+C.length),changes:I}}else{let x=Jee(u,e,l);return{range:vt.cursor(o+x.length+1),changes:{from:l.from,insert:x+e.lineBreak}}}}if(c.node.name=="Blockquote"&&f&&l.from){let w=r.lineAt(l.from-1),E=/>\s*$/.exec(w.text);if(E&&E.index==c.from){let x=e.changes([{from:w.from+E.index,to:w.to},{from:l.from+c.from,to:l.to}]);return{range:s.map(x),changes:x}}}let h=[];c.node.name=="OrderedList"&&LP(c.item,r,h);let g=c.item&&c.item.from]*/.exec(l.text)[0].length>=c.to)for(let w=0,E=u.length-1;w<=E;w++)b+=w==E&&!g?u[w].marker(r,1):u[w].blank(wl.from&&/\s/.test(l.text.charAt(S-l.from-1));)S--;return b=az(b,e),Flt(c.node,e.doc)&&(b=Jee(u,e,l)+e.lineBreak+b),h.push({from:S,to:o,insert:e.lineBreak+b}),{range:vt.cursor(S+b.length+1),changes:h}});return i?!1:(t(e.update(a,{scrollIntoView:!0,userEvent:"input"})),!0)};function Kee(e){return e.name=="QuoteMark"||e.name=="ListMark"}function Flt(e,t){if(e.name!="OrderedList"&&e.name!="BulletList")return!1;let n=e.firstChild,r=e.getChild("ListItem","ListItem");if(!r)return!1;let i=t.lineAt(n.to),a=t.lineAt(r.from),s=/^[\s>]*$/.test(i.text);return i.number+(s?0:1){let n=Di(e),r=null,i=e.changeByRange(a=>{let s=a.from,{doc:o}=e;if(a.empty&&V0e.isActiveAt(e,a.from)){let l=o.lineAt(s),u=W0e(Blt(n,s),o);if(u.length){let c=u[u.length-1],f=c.to-c.spaceAfter.length+(c.spaceAfter?1:0);if(s-l.from>f&&!/\S/.test(l.text.slice(f,s-l.from)))return{range:vt.cursor(l.from+f),changes:{from:l.from+f,to:s}};if(s-l.from==f&&(!c.item||l.from<=c.item.from||!/\S/.test(l.text.slice(0,c.to)))){let h=l.from+c.from;if(c.item&&c.node.fromd in O?i(O,d,{enumerable:!0,configurable:!0,writable:!0,value:p}):O[d]=p,s=(O,d,p)=>(a(O,typeof d!="symbol"?d+"":d,p),p),o;(function(O){O[O.Canceled=1]="Canceled",O[O.Unknown=2]="Unknown",O[O.InvalidArgument=3]="InvalidArgument",O[O.DeadlineExceeded=4]="DeadlineExceeded",O[O.NotFound=5]="NotFound",O[O.AlreadyExists=6]="AlreadyExists",O[O.PermissionDenied=7]="PermissionDenied",O[O.ResourceExhausted=8]="ResourceExhausted",O[O.FailedPrecondition=9]="FailedPrecondition",O[O.Aborted=10]="Aborted",O[O.OutOfRange=11]="OutOfRange",O[O.Unimplemented=12]="Unimplemented",O[O.Internal=13]="Internal",O[O.Unavailable=14]="Unavailable",O[O.DataLoss=15]="DataLoss",O[O.Unauthenticated=16]="Unauthenticated"})(o||(o={}));function l(O){const d=o[O];return typeof d!="string"?O.toString():d[0].toLowerCase()+d.substring(1).replace(/[A-Z]/g,p=>"_"+p.toLowerCase())}class u extends Error{constructor(d,p=o.Unknown,y,T,$){super(c(d,p)),this.name="ConnectError",Object.setPrototypeOf(this,new.target.prototype),this.rawMessage=d,this.code=p,this.metadata=new Headers(y??{}),this.details=T??[],this.cause=$}static from(d,p=o.Unknown){return d instanceof u?d:d instanceof Error?d.name=="AbortError"?new u(d.message,o.Canceled):new u(d.message,p,void 0,void 0,d):new u(String(d),p,void 0,void 0,d)}static[Symbol.hasInstance](d){return d instanceof Error?Object.getPrototypeOf(d)===u.prototype?!0:d.name==="ConnectError"&&"code"in d&&typeof d.code=="number"&&"metadata"in d&&"details"in d&&Array.isArray(d.details)&&"rawMessage"in d&&typeof d.rawMessage=="string"&&"cause"in d:!1}findDetails(d){const p="typeName"in d?{findMessage:T=>T===d.typeName?d:void 0}:d,y=[];for(const T of this.details){if("getType"in T){p.findMessage(T.getType().typeName)&&y.push(T);continue}const $=p.findMessage(T.type);if($)try{y.push($.fromBinary(T.value))}catch{}}return y}}function c(O,d){return O.length?`[${l(d)}] ${O}`:`[${l(d)}]`}function f(O,d){if(!O)throw new Error(d)}const h=34028234663852886e22,g=-34028234663852886e22,b=4294967295,S=2147483647,w=-2147483648;function E(O){if(typeof O!="number")throw new Error("invalid int 32: "+typeof O);if(!Number.isInteger(O)||O>S||Ob||O<0)throw new Error("invalid uint 32: "+O)}function k(O){if(typeof O!="number")throw new Error("invalid float 32: "+typeof O);if(Number.isFinite(O)&&(O>h||O({no:T.no,name:T.name,localName:O[T.no]})))}function D(O,d,p){const y=Object.create(null),T=Object.create(null),$=[];for(const q of d){const ne=L(q);$.push(ne),y[q.name]=ne,T[q.no]=ne}return{typeName:O,values:$,findName(q){return y[q]},findNumber(q){return T[q]}}}function B(O,d,p){const y={};for(const T of d){const $=L(T);y[$.localName]=$.no,y[$.no]=$.localName}return A(y,O,d),y}function L(O){return"localName"in O?O:Object.assign(Object.assign({},O),{localName:O.name})}class F{equals(d){return this.getType().runtime.util.equals(this.getType(),this,d)}clone(){return this.getType().runtime.util.clone(this)}fromBinary(d,p){const y=this.getType(),T=y.runtime.bin,$=T.makeReadOptions(p);return T.readMessage(this,$.readerFactory(d),d.byteLength,$),this}fromJson(d,p){const y=this.getType(),T=y.runtime.json,$=T.makeReadOptions(p);return T.readMessage(y,d,$,this),this}fromJsonString(d,p){let y;try{y=JSON.parse(d)}catch(T){throw new Error(`cannot decode ${this.getType().typeName} from JSON: ${T instanceof Error?T.message:String(T)}`)}return this.fromJson(y,p)}toBinary(d){const p=this.getType(),y=p.runtime.bin,T=y.makeWriteOptions(d),$=T.writerFactory();return y.writeMessage(this,$,T),$.finish()}toJson(d){const p=this.getType(),y=p.runtime.json,T=y.makeWriteOptions(d);return y.writeMessage(this,T)}toJsonString(d){var p;const y=this.toJson(d);return JSON.stringify(y,null,(p=d==null?void 0:d.prettySpaces)!==null&&p!==void 0?p:0)}toJSON(){return this.toJson({emitDefaultValues:!0})}getType(){return Object.getPrototypeOf(this).constructor}}function W(O,d,p,y){var T;const $=(T=y==null?void 0:y.localName)!==null&&T!==void 0?T:d.substring(d.lastIndexOf(".")+1),q={[$]:function(ne){O.util.initFields(this),O.util.initPartial(ne,this)}}[$];return Object.setPrototypeOf(q.prototype,new F),Object.assign(q,{runtime:O,typeName:d,fields:O.util.newFieldList(p),fromBinary(ne,me){return new q().fromBinary(ne,me)},fromJson(ne,me){return new q().fromJson(ne,me)},fromJsonString(ne,me){return new q().fromJsonString(ne,me)},equals(ne,me){return O.util.equals(q,ne,me)}}),q}function V(){let O=0,d=0;for(let y=0;y<28;y+=7){let T=this.buf[this.pos++];if(O|=(T&127)<>4,!(p&128))return this.assertBounds(),[O,d];for(let y=3;y<=31;y+=7){let T=this.buf[this.pos++];if(d|=(T&127)<>>$,ne=!(!(q>>>7)&&d==0),me=(ne?q|128:q)&255;if(p.push(me),!ne)return}const y=O>>>28&15|(d&7)<<4,T=!!(d>>3);if(p.push((T?y|128:y)&255),!!T){for(let $=3;$<31;$=$+7){const q=d>>>$,ne=!!(q>>>7),me=(ne?q|128:q)&255;if(p.push(me),!ne)return}p.push(d>>>31&1)}}const Q=4294967296;function H(O){const d=O[0]==="-";d&&(O=O.slice(1));const p=1e6;let y=0,T=0;function $(q,ne){const me=Number(O.slice(q,ne));T*=p,y=y*p+me,y>=Q&&(T=T+(y/Q|0),y=y%Q)}return $(-24,-18),$(-18,-12),$(-12,-6),$(-6),d?z(y,T):te(y,T)}function J(O,d){let p=te(O,d);const y=p.hi&2147483648;y&&(p=z(p.lo,p.hi));const T=K(p.lo,p.hi);return y?"-"+T:T}function K(O,d){if({lo:O,hi:d}=X(O,d),d<=2097151)return String(Q*d+O);const p=O&16777215,y=(O>>>24|d<<8)&16777215,T=d>>16&65535;let $=p+y*6777216+T*6710656,q=y+T*8147497,ne=T*2;const me=1e7;return $>=me&&(q+=Math.floor($/me),$%=me),q>=me&&(ne+=Math.floor(q/me),q%=me),ne.toString()+Te(q)+Te($)}function X(O,d){return{lo:O>>>0,hi:d>>>0}}function te(O,d){return{lo:O|0,hi:d|0}}function z(O,d){return d=~d,O?O=~O+1:d+=1,te(O,d)}const Te=O=>{const d=String(O);return"0000000".slice(d.length)+d};function be(O,d){if(O>=0){for(;O>127;)d.push(O&127|128),O=O>>>7;d.push(O)}else{for(let p=0;p<9;p++)d.push(O&127|128),O=O>>7;d.push(1)}}function ee(){let O=this.buf[this.pos++],d=O&127;if(!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<7,!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<14,!(O&128))return this.assertBounds(),d;if(O=this.buf[this.pos++],d|=(O&127)<<21,!(O&128))return this.assertBounds(),d;O=this.buf[this.pos++],d|=(O&15)<<28;for(let p=5;O&128&&p<10;p++)O=this.buf[this.pos++];if(O&128)throw new Error("invalid varint");return this.assertBounds(),d>>>0}function ye(){const O=new DataView(new ArrayBuffer(8));if(typeof BigInt=="function"&&typeof O.getBigInt64=="function"&&typeof O.getBigUint64=="function"&&typeof O.setBigInt64=="function"&&typeof O.setBigUint64=="function"&&(typeof process!="object"||typeof n!="object"||n.BUF_BIGINT_DISABLE!=="1")){const T=BigInt("-9223372036854775808"),$=BigInt("9223372036854775807"),q=BigInt("0"),ne=BigInt("18446744073709551615");return{zero:BigInt(0),supported:!0,parse(me){const Se=typeof me=="bigint"?me:BigInt(me);if(Se>$||Sene||Sef(/^-?[0-9]+$/.test(T),`int64 invalid: ${T}`),y=T=>f(/^[0-9]+$/.test(T),`uint64 invalid: ${T}`);return{zero:"0",supported:!1,parse(T){return typeof T!="string"&&(T=T.toString()),p(T),T},uParse(T){return typeof T!="string"&&(T=T.toString()),y(T),T},enc(T){return typeof T!="string"&&(T=T.toString()),p(T),H(T)},uEnc(T){return typeof T!="string"&&(T=T.toString()),y(T),H(T)},dec(T,$){return J(T,$)},uDec(T,$){return K(T,$)}}}const Oe=ye();var ie;(function(O){O[O.DOUBLE=1]="DOUBLE",O[O.FLOAT=2]="FLOAT",O[O.INT64=3]="INT64",O[O.UINT64=4]="UINT64",O[O.INT32=5]="INT32",O[O.FIXED64=6]="FIXED64",O[O.FIXED32=7]="FIXED32",O[O.BOOL=8]="BOOL",O[O.STRING=9]="STRING",O[O.BYTES=12]="BYTES",O[O.UINT32=13]="UINT32",O[O.SFIXED32=15]="SFIXED32",O[O.SFIXED64=16]="SFIXED64",O[O.SINT32=17]="SINT32",O[O.SINT64=18]="SINT64"})(ie||(ie={}));var _e;(function(O){O[O.BIGINT=0]="BIGINT",O[O.STRING=1]="STRING"})(_e||(_e={}));function Ie(O,d,p){if(d===p)return!0;if(O==ie.BYTES){if(!(d instanceof Uint8Array)||!(p instanceof Uint8Array)||d.length!==p.length)return!1;for(let y=0;y>>0)}raw(d){return this.buf.length&&(this.chunks.push(new Uint8Array(this.buf)),this.buf=[]),this.chunks.push(d),this}uint32(d){for(x(d);d>127;)this.buf.push(d&127|128),d=d>>>7;return this.buf.push(d),this}int32(d){return E(d),be(d,this.buf),this}bool(d){return this.buf.push(d?1:0),this}bytes(d){return this.uint32(d.byteLength),this.raw(d)}string(d){let p=this.textEncoder.encode(d);return this.uint32(p.byteLength),this.raw(p)}float(d){k(d);let p=new Uint8Array(4);return new DataView(p.buffer).setFloat32(0,d,!0),this.raw(p)}double(d){let p=new Uint8Array(8);return new DataView(p.buffer).setFloat64(0,d,!0),this.raw(p)}fixed32(d){x(d);let p=new Uint8Array(4);return new DataView(p.buffer).setUint32(0,d,!0),this.raw(p)}sfixed32(d){E(d);let p=new Uint8Array(4);return new DataView(p.buffer).setInt32(0,d,!0),this.raw(p)}sint32(d){return E(d),d=(d<<1^d>>31)>>>0,be(d,this.buf),this}sfixed64(d){let p=new Uint8Array(8),y=new DataView(p.buffer),T=Oe.enc(d);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(p)}fixed64(d){let p=new Uint8Array(8),y=new DataView(p.buffer),T=Oe.uEnc(d);return y.setInt32(0,T.lo,!0),y.setInt32(4,T.hi,!0),this.raw(p)}int64(d){let p=Oe.enc(d);return Z(p.lo,p.hi,this.buf),this}sint64(d){let p=Oe.enc(d),y=p.hi>>31,T=p.lo<<1^y,$=(p.hi<<1|p.lo>>>31)^y;return Z(T,$,this.buf),this}uint64(d){let p=Oe.uEnc(d);return Z(p.lo,p.hi,this.buf),this}}class Ve{constructor(d,p){this.varint64=V,this.uint32=ee,this.buf=d,this.len=d.length,this.pos=0,this.view=new DataView(d.buffer,d.byteOffset,d.byteLength),this.textDecoder=p??new TextDecoder}tag(){let d=this.uint32(),p=d>>>3,y=d&7;if(p<=0||y<0||y>5)throw new Error("illegal tag: field no "+p+" wire type "+y);return[p,y]}skip(d,p){let y=this.pos;switch(d){case Pe.Varint:for(;this.buf[this.pos++]&128;);break;case Pe.Bit64:this.pos+=4;case Pe.Bit32:this.pos+=4;break;case Pe.LengthDelimited:let T=this.uint32();this.pos+=T;break;case Pe.StartGroup:for(;;){const[$,q]=this.tag();if(q===Pe.EndGroup){if(p!==void 0&&$!==p)throw new Error("invalid end group tag");break}this.skip(q,$)}break;default:throw new Error("cant skip wire type "+d)}return this.assertBounds(),this.buf.subarray(y,this.pos)}assertBounds(){if(this.pos>this.len)throw new RangeError("premature EOF")}int32(){return this.uint32()|0}sint32(){let d=this.uint32();return d>>>1^-(d&1)}int64(){return Oe.dec(...this.varint64())}uint64(){return Oe.uDec(...this.varint64())}sint64(){let[d,p]=this.varint64(),y=-(d&1);return d=(d>>>1|(p&1)<<31)^y,p=p>>>1^y,Oe.dec(d,p)}bool(){let[d,p]=this.varint64();return d!==0||p!==0}fixed32(){return this.view.getUint32((this.pos+=4)-4,!0)}sfixed32(){return this.view.getInt32((this.pos+=4)-4,!0)}fixed64(){return Oe.uDec(this.sfixed32(),this.sfixed32())}sfixed64(){return Oe.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 d=this.uint32(),p=this.pos;return this.pos+=d,this.assertBounds(),this.buf.subarray(p,p+d)}string(){return this.textDecoder.decode(this.bytes())}}function Xe(O,d,p,y){let T;return{typeName:d,extendee:p,get field(){if(!T){const $=typeof y=="function"?y():y;$.name=d.split(".").pop(),$.jsonName=`[${d}]`,T=O.util.newFieldList([$]).list()[0]}return T},runtime:O}}function et(O){const d=O.field.localName,p=Object.create(null);return p[d]=ft(O),[p,()=>p[d]]}function ft(O){const d=O.field;if(d.repeated)return[];if(d.default!==void 0)return d.default;switch(d.kind){case"enum":return d.T.values[0].no;case"scalar":return qe(d.T,d.L);case"message":const p=d.T,y=new p;return p.fieldWrapper?p.fieldWrapper.unwrapField(y):y;case"map":throw"map fields are not allowed to be extensions"}}function At(O,d){if(!d.repeated&&(d.kind=="enum"||d.kind=="scalar")){for(let p=O.length-1;p>=0;--p)if(O[p].no==d.no)return[O[p]];return[]}return O.filter(p=>p.no===d.no)}let Je="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/".split(""),pe=[];for(let O=0;O>4,q=$,T=2;break;case 2:p[y++]=(q&15)<<4|($&60)>>2,q=$,T=3;break;case 3:p[y++]=(q&3)<<6|$,T=0;break}}if(T==1)throw Error("invalid base64 string.");return p.subarray(0,y)},enc(O){let d="",p=0,y,T=0;for(let $=0;$>2],T=(y&3)<<4,p=1;break;case 1:d+=Je[T|y>>4],T=(y&15)<<2,p=2;break;case 2:d+=Je[T|y>>6],d+=Je[y&63],p=0;break}return p&&(d+=Je[T],d+="=",p==1&&(d+="=")),d}};function he(O,d,p){We(d,O);const y=d.runtime.bin.makeReadOptions(p),T=At(O.getType().runtime.bin.listUnknownFields(O),d.field),[$,q]=et(d);for(const ne of T)d.runtime.bin.readField($,y.readerFactory(ne.data),d.field,ne.wireType,y);return q()}function je(O,d,p,y){We(d,O);const T=d.runtime.bin.makeReadOptions(y),$=d.runtime.bin.makeWriteOptions(y);if(Ze(O,d)){const Se=O.getType().runtime.bin.listUnknownFields(O).filter(ze=>ze.no!=d.field.no);O.getType().runtime.bin.discardUnknownFields(O);for(const ze of Se)O.getType().runtime.bin.onUnknownField(O,ze.no,ze.wireType,ze.data)}const q=$.writerFactory();let ne=d.field;!ne.opt&&!ne.repeated&&(ne.kind=="enum"||ne.kind=="scalar")&&(ne=Object.assign(Object.assign({},d.field),{opt:!0})),d.runtime.bin.writeField(ne,p,q,$);const me=T.readerFactory(q.finish());for(;me.posy.no==d.field.no)}function We(O,d){f(O.extendee.typeName==d.getType().typeName,`extension ${O.typeName} can only be applied to message ${O.extendee.typeName}`)}function fe(O,d){const p=O.localName;if(O.repeated)return d[p].length>0;if(O.oneof)return d[O.oneof.localName].case===p;switch(O.kind){case"enum":case"scalar":return O.opt||O.req?d[p]!==void 0:O.kind=="enum"?d[p]!==O.T.values[0].no:!st(O.T,d[p]);case"message":return d[p]!==void 0;case"map":return Object.keys(d[p]).length>0}}function xe(O,d){const p=O.localName,y=!O.opt&&!O.req;if(O.repeated)d[p]=[];else if(O.oneof)d[O.oneof.localName]={case:void 0};else switch(O.kind){case"map":d[p]={};break;case"enum":d[p]=y?O.T.values[0].no:void 0;break;case"scalar":d[p]=y?qe(O.T,O.L):void 0;break;case"message":d[p]=void 0;break}}function ve(O,d){if(O===null||typeof O!="object"||!Object.getOwnPropertyNames(F.prototype).every(y=>y in O&&typeof O[y]=="function"))return!1;const p=O.getType();return p===null||typeof p!="function"||!("typeName"in p)||typeof p.typeName!="string"?!1:d===void 0?!0:p.typeName==d.typeName}function De(O,d){return ve(d)||!O.fieldWrapper?d:O.fieldWrapper.wrapField(d)}ie.DOUBLE,ie.FLOAT,ie.INT64,ie.UINT64,ie.INT32,ie.UINT32,ie.BOOL,ie.STRING,ie.BYTES;const $e={ignoreUnknownFields:!1},Ot={emitDefaultValues:!1,enumAsInteger:!1,useProtoFieldName:!1,prettySpaces:0};function Wt(O){return O?Object.assign(Object.assign({},$e),O):$e}function Kt(O){return O?Object.assign(Object.assign({},Ot),O):Ot}const gt=Symbol(),Gt=Symbol();function ut(){return{makeReadOptions:Wt,makeWriteOptions:Kt,readMessage(O,d,p,y){if(d==null||Array.isArray(d)||typeof d!="object")throw new Error(`cannot decode message ${O.typeName} from JSON: ${wt(d)}`);y=y??new O;const T=new Map,$=p.typeRegistry;for(const[q,ne]of Object.entries(d)){const me=O.fields.findJsonName(q);if(me){if(me.oneof){if(ne===null&&me.kind=="scalar")continue;const Se=T.get(me.oneof);if(Se!==void 0)throw new Error(`cannot decode message ${O.typeName} from JSON: multiple keys for oneof "${me.oneof.name}" present: "${Se}", "${q}"`);T.set(me.oneof,q)}Xt(y,ne,me,p,O)}else{let Se=!1;if($!=null&&$.findExtension&&q.startsWith("[")&&q.endsWith("]")){const ze=$.findExtension(q.substring(1,q.length-1));if(ze&&ze.extendee.typeName==O.typeName){Se=!0;const[Ct,St]=et(ze);Xt(Ct,ne,ze.field,p,ze),je(y,ze,St(),p)}}if(!Se&&!p.ignoreUnknownFields)throw new Error(`cannot decode message ${O.typeName} from JSON: key "${q}" is unknown`)}}return y},writeMessage(O,d){const p=O.getType(),y={};let T;try{for(T of p.fields.byNumber()){if(!fe(T,O)){if(T.req)throw"required field not set";if(!d.emitDefaultValues||!sr(T))continue}const q=T.oneof?O[T.oneof.localName].value:O[T.localName],ne=zr(T,q,d);ne!==void 0&&(y[d.useProtoFieldName?T.name:T.jsonName]=ne)}const $=d.typeRegistry;if($!=null&&$.findExtensionFor)for(const q of p.runtime.bin.listUnknownFields(O)){const ne=$.findExtensionFor(p.typeName,q.no);if(ne&&Ze(O,ne)){const me=he(O,ne,d),Se=zr(ne.field,me,d);Se!==void 0&&(y[ne.field.jsonName]=Se)}}}catch($){const q=T?`cannot encode field ${p.typeName}.${T.name} to JSON`:`cannot encode message ${p.typeName} to JSON`,ne=$ instanceof Error?$.message:String($);throw new Error(q+(ne.length>0?`: ${ne}`:""))}return y},readScalar(O,d,p){return $n(O,d,p??_e.BIGINT,!0)},writeScalar(O,d,p){if(d!==void 0&&(p||st(O,d)))return Ue(O,d)},debug:wt}}function wt(O){if(O===null)return"null";switch(typeof O){case"object":return Array.isArray(O)?"array":"object";case"string":return O.length>100?"string":`"${O.split('"').join('\\"')}"`;default:return String(O)}}function Xt(O,d,p,y,T){let $=p.localName;if(p.repeated){if(f(p.kind!="map"),d===null)return;if(!Array.isArray(d))throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`);const q=O[$];for(const ne of d){if(ne===null)throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(ne)}`);switch(p.kind){case"message":q.push(p.T.fromJson(ne,y));break;case"enum":const me=jn(p.T,ne,y.ignoreUnknownFields,!0);me!==Gt&&q.push(me);break;case"scalar":try{q.push($n(p.T,ne,p.L,!0))}catch(Se){let ze=`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(ne)}`;throw Se instanceof Error&&Se.message.length>0&&(ze+=`: ${Se.message}`),new Error(ze)}break}}}else if(p.kind=="map"){if(d===null)return;if(typeof d!="object"||Array.isArray(d))throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`);const q=O[$];for(const[ne,me]of Object.entries(d)){if(me===null)throw new Error(`cannot decode field ${T.typeName}.${p.name} from JSON: map value null`);let Se;try{Se=Ln(p.K,ne)}catch(ze){let Ct=`cannot decode map key for field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw ze instanceof Error&&ze.message.length>0&&(Ct+=`: ${ze.message}`),new Error(Ct)}switch(p.V.kind){case"message":q[Se]=p.V.T.fromJson(me,y);break;case"enum":const ze=jn(p.V.T,me,y.ignoreUnknownFields,!0);ze!==Gt&&(q[Se]=ze);break;case"scalar":try{q[Se]=$n(p.V.T,me,_e.BIGINT,!0)}catch(Ct){let St=`cannot decode map value for field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw Ct instanceof Error&&Ct.message.length>0&&(St+=`: ${Ct.message}`),new Error(St)}break}}}else switch(p.oneof&&(O=O[p.oneof.localName]={case:$},$="value"),p.kind){case"message":const q=p.T;if(d===null&&q.typeName!="google.protobuf.Value")return;let ne=O[$];ve(ne)?ne.fromJson(d,y):(O[$]=ne=q.fromJson(d,y),q.fieldWrapper&&!p.oneof&&(O[$]=q.fieldWrapper.unwrapField(ne)));break;case"enum":const me=jn(p.T,d,y.ignoreUnknownFields,!1);switch(me){case gt:xe(p,O);break;case Gt:break;default:O[$]=me;break}break;case"scalar":try{const Se=$n(p.T,d,p.L,!1);switch(Se){case gt:xe(p,O);break;default:O[$]=Se;break}}catch(Se){let ze=`cannot decode field ${T.typeName}.${p.name} from JSON: ${wt(d)}`;throw Se instanceof Error&&Se.message.length>0&&(ze+=`: ${Se.message}`),new Error(ze)}break}}function Ln(O,d){if(O===ie.BOOL)switch(d){case"true":d=!0;break;case"false":d=!1;break}return $n(O,d,_e.BIGINT,!0).toString()}function $n(O,d,p,y){if(d===null)return y?qe(O,p):gt;switch(O){case ie.DOUBLE:case ie.FLOAT:if(d==="NaN")return Number.NaN;if(d==="Infinity")return Number.POSITIVE_INFINITY;if(d==="-Infinity")return Number.NEGATIVE_INFINITY;if(d===""||typeof d=="string"&&d.trim().length!==d.length||typeof d!="string"&&typeof d!="number")break;const T=Number(d);if(Number.isNaN(T)||!Number.isFinite(T))break;return O==ie.FLOAT&&k(T),T;case ie.INT32:case ie.FIXED32:case ie.SFIXED32:case ie.SINT32:case ie.UINT32:let $;if(typeof d=="number"?$=d:typeof d=="string"&&d.length>0&&d.trim().length===d.length&&($=Number(d)),$===void 0)break;return O==ie.UINT32||O==ie.FIXED32?x($):E($),$;case ie.INT64:case ie.SFIXED64:case ie.SINT64:if(typeof d!="number"&&typeof d!="string")break;const q=Oe.parse(d);return p?q.toString():q;case ie.FIXED64:case ie.UINT64:if(typeof d!="number"&&typeof d!="string")break;const ne=Oe.uParse(d);return p?ne.toString():ne;case ie.BOOL:if(typeof d!="boolean")break;return d;case ie.STRING:if(typeof d!="string")break;try{encodeURIComponent(d)}catch{throw new Error("invalid UTF8")}return d;case ie.BYTES:if(d==="")return new Uint8Array(0);if(typeof d!="string")break;return le.dec(d)}throw new Error}function jn(O,d,p,y){if(d===null)return O.typeName=="google.protobuf.NullValue"?0:y?O.values[0].no:gt;switch(typeof d){case"number":if(Number.isInteger(d))return d;break;case"string":const T=O.findName(d);if(T!==void 0)return T.no;if(p)return Gt;break}throw new Error(`cannot decode enum ${O.typeName} from JSON: ${wt(d)}`)}function sr(O){return O.repeated||O.kind=="map"?!0:!(O.oneof||O.kind=="message"||O.opt||O.req)}function zr(O,d,p){if(O.kind=="map"){f(typeof d=="object"&&d!=null);const y={},T=Object.entries(d);switch(O.V.kind){case"scalar":for(const[q,ne]of T)y[q.toString()]=Ue(O.V.T,ne);break;case"message":for(const[q,ne]of T)y[q.toString()]=ne.toJson(p);break;case"enum":const $=O.V.T;for(const[q,ne]of T)y[q.toString()]=Me($,ne,p.enumAsInteger);break}return p.emitDefaultValues||T.length>0?y:void 0}if(O.repeated){f(Array.isArray(d));const y=[];switch(O.kind){case"scalar":for(let T=0;T0?y:void 0}switch(O.kind){case"scalar":return Ue(O.T,d);case"enum":return Me(O.T,d,p.enumAsInteger);case"message":return De(O.T,d).toJson(p)}}function Me(O,d,p){var y;if(f(typeof d=="number"),O.typeName=="google.protobuf.NullValue")return null;if(p)return d;const T=O.findNumber(d);return(y=T==null?void 0:T.name)!==null&&y!==void 0?y:d}function Ue(O,d){switch(O){case ie.INT32:case ie.SFIXED32:case ie.SINT32:case ie.FIXED32:case ie.UINT32:return f(typeof d=="number"),d;case ie.FLOAT:case ie.DOUBLE:return f(typeof d=="number"),Number.isNaN(d)?"NaN":d===Number.POSITIVE_INFINITY?"Infinity":d===Number.NEGATIVE_INFINITY?"-Infinity":d;case ie.STRING:return f(typeof d=="string"),d;case ie.BOOL:return f(typeof d=="boolean"),d;case ie.UINT64:case ie.FIXED64:case ie.INT64:case ie.SFIXED64:case ie.SINT64:return f(typeof d=="bigint"||typeof d=="string"||typeof d=="number"),d.toString();case ie.BYTES:return f(d instanceof Uint8Array),le.enc(d)}}const lt=Symbol("@bufbuild/protobuf/unknown-fields"),Nt={readUnknownFields:!0,readerFactory:O=>new Ve(O)},Qt={writeUnknownFields:!0,writerFactory:()=>new tt};function Hn(O){return O?Object.assign(Object.assign({},Nt),O):Nt}function yn(O){return O?Object.assign(Object.assign({},Qt),O):Qt}function rn(){return{makeReadOptions:Hn,makeWriteOptions:yn,listUnknownFields(O){var d;return(d=O[lt])!==null&&d!==void 0?d:[]},discardUnknownFields(O){delete O[lt]},writeUnknownFields(O,d){const y=O[lt];if(y)for(const T of y)d.tag(T.no,T.wireType).raw(T.data)},onUnknownField(O,d,p,y){const T=O;Array.isArray(T[lt])||(T[lt]=[]),T[lt].push({no:d,wireType:p,data:y})},readMessage(O,d,p,y,T){const $=O.getType(),q=T?d.len:d.pos+p;let ne,me;for(;d.pos0&&(me=Ye),$){let St=O[q];if(y==Pe.LengthDelimited&&ne!=ie.STRING&&ne!=ie.BYTES){let tn=d.uint32()+d.pos;for(;d.posve(St,Ct)?St:new Ct(St));else{const St=q[T];Ct.fieldWrapper?Ct.typeName==="google.protobuf.BytesValue"?$[T]=en(St):$[T]=St:$[T]=ve(St,Ct)?St:new Ct(St)}break}}},equals(O,d,p){return d===p?!0:!d||!p?!1:O.fields.byMember().every(y=>{const T=d[y.localName],$=p[y.localName];if(y.repeated){if(T.length!==$.length)return!1;switch(y.kind){case"message":return T.every((q,ne)=>y.T.equals(q,$[ne]));case"scalar":return T.every((q,ne)=>Ie(y.T,q,$[ne]));case"enum":return T.every((q,ne)=>Ie(ie.INT32,q,$[ne]))}throw new Error(`repeated cannot contain ${y.kind}`)}switch(y.kind){case"message":return y.T.equals(T,$);case"enum":return Ie(ie.INT32,T,$);case"scalar":return Ie(y.T,T,$);case"oneof":if(T.case!==$.case)return!1;const q=y.findField(T.case);if(q===void 0)return!0;switch(q.kind){case"message":return q.T.equals(T.value,$.value);case"enum":return Ie(ie.INT32,T.value,$.value);case"scalar":return Ie(q.T,T.value,$.value)}throw new Error(`oneof cannot contain ${q.kind}`);case"map":const ne=Object.keys(T).concat(Object.keys($));switch(y.V.kind){case"message":const me=y.V.T;return ne.every(ze=>me.equals(T[ze],$[ze]));case"enum":return ne.every(ze=>Ie(ie.INT32,T[ze],$[ze]));case"scalar":const Se=y.V.T;return ne.every(ze=>Ie(Se,T[ze],$[ze]))}break}})},clone(O){const d=O.getType(),p=new d,y=p;for(const T of d.fields.byMember()){const $=O[T.localName];let q;if(T.repeated)q=$.map(Dt);else if(T.kind=="map"){q=y[T.localName];for(const[ne,me]of Object.entries($))q[ne]=Dt(me)}else T.kind=="oneof"?q=T.findField($.case)?{case:$.case,value:Dt($.value)}:{case:void 0}:q=Dt($);y[T.localName]=q}for(const T of d.runtime.bin.listUnknownFields(O))d.runtime.bin.onUnknownField(y,T.no,T.wireType,T.data);return p}}}function Dt(O){if(O===void 0)return O;if(ve(O))return O.clone();if(O instanceof Uint8Array){const d=new Uint8Array(O.byteLength);return d.set(O),d}return O}function en(O){return O instanceof Uint8Array?O:new Uint8Array(O)}function Vn(O,d,p){return{syntax:O,json:ut(),bin:rn(),util:Object.assign(Object.assign({},Be()),{newFieldList:d,initFields:p}),makeMessageType(y,T,$){return W(this,y,T,$)},makeEnum:B,makeEnumType:D,getEnumType:I,makeExtension(y,T,$){return Xe(this,y,T,$)}}}class Kr{constructor(d,p){this._fields=d,this._normalizer=p}findJsonName(d){if(!this.jsonNames){const p={};for(const y of this.list())p[y.jsonName]=p[y.name]=y;this.jsonNames=p}return this.jsonNames[d]}find(d){if(!this.numbers){const p={};for(const y of this.list())p[y.no]=y;this.numbers=p}return this.numbers[d]}list(){return this.all||(this.all=this._normalizer(this._fields)),this.all}byNumber(){return this.numbersAsc||(this.numbersAsc=this.list().concat().sort((d,p)=>d.no-p.no)),this.numbersAsc}byMember(){if(!this.members){this.members=[];const d=this.members;let p;for(const y of this.list())y.oneof?y.oneof!==p&&(p=y.oneof,d.push(p)):d.push(y)}return this.members}}function wr(O,d){const p=ni(O);return d?p:G1(q1(p))}function In(O){return wr(O,!1)}const Wn=ni;function ni(O){let d=!1;const p=[];for(let y=0;y`${O}$`,q1=O=>Hc.has(O)?_p(O):O,G1=O=>Ga.has(O)?_p(O):O;class Y1{constructor(d){this.kind="oneof",this.repeated=!1,this.packed=!1,this.opt=!1,this.req=!1,this.default=void 0,this.fields=[],this.name=d,this.localName=In(d)}addField(d){f(d.oneof===this,`field ${d.name} not one of ${this.name}`),this.fields.push(d)}findField(d){if(!this._lookup){this._lookup=Object.create(null);for(let p=0;pnew Kr(O,d=>Z1(d,!0)),O=>{for(const d of O.getType().fields.byMember()){if(d.opt)continue;const p=d.localName,y=O;if(d.repeated){y[p]=[];continue}switch(d.kind){case"oneof":y[p]={case:void 0};break;case"enum":y[p]=0;break;case"map":y[p]={};break;case"scalar":y[p]=qe(d.T,d.L);break}}});var Ds;(function(O){O[O.Unary=0]="Unary",O[O.ServerStreaming=1]="ServerStreaming",O[O.ClientStreaming=2]="ClientStreaming",O[O.BiDiStreaming=3]="BiDiStreaming"})(Ds||(Ds={}));var mk;(function(O){O[O.NoSideEffects=1]="NoSideEffects",O[O.Idempotent=2]="Idempotent"})(mk||(mk={}));class ms extends F{constructor(d){super(),this.seconds=Oe.zero,this.nanos=0,rt.util.initPartial(d,this)}fromJson(d,p){if(typeof d!="string")throw new Error(`cannot decode google.protobuf.Timestamp from JSON: ${rt.json.debug(d)}`);const y=d.match(/^([0-9]{4})-([0-9]{2})-([0-9]{2})T([0-9]{2}):([0-9]{2}):([0-9]{2})(?:Z|\.([0-9]{3,9})Z|([+-][0-9][0-9]:[0-9][0-9]))$/);if(!y)throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");const T=Date.parse(y[1]+"-"+y[2]+"-"+y[3]+"T"+y[4]+":"+y[5]+":"+y[6]+(y[8]?y[8]:"Z"));if(Number.isNaN(T))throw new Error("cannot decode google.protobuf.Timestamp from JSON: invalid RFC 3339 string");if(TDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot decode message google.protobuf.Timestamp from JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");return this.seconds=Oe.parse(T/1e3),this.nanos=0,y[7]&&(this.nanos=parseInt("1"+y[7]+"0".repeat(9-y[7].length))-1e9),this}toJson(d){const p=Number(this.seconds)*1e3;if(pDate.parse("9999-12-31T23:59:59Z"))throw new Error("cannot encode google.protobuf.Timestamp to JSON: must be from 0001-01-01T00:00:00Z to 9999-12-31T23:59:59Z inclusive");if(this.nanos<0)throw new Error("cannot encode google.protobuf.Timestamp to JSON: nanos must not be negative");let y="Z";if(this.nanos>0){const T=(this.nanos+1e9).toString().substring(1);T.substring(3)==="000000"?y="."+T.substring(0,3)+"Z":T.substring(6)==="000"?y="."+T.substring(0,6)+"Z":y="."+T+"Z"}return new Date(p).toISOString().replace(".000Z",y)}toDate(){return new Date(Number(this.seconds)*1e3+Math.ceil(this.nanos/1e6))}static now(){return ms.fromDate(new Date)}static fromDate(d){const p=d.getTime();return new ms({seconds:Oe.parse(Math.floor(p/1e3)),nanos:p%1e3*1e6})}static fromBinary(d,p){return new ms().fromBinary(d,p)}static fromJson(d,p){return new ms().fromJson(d,p)}static fromJsonString(d,p){return new ms().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(ms,d,p)}}ms.runtime=rt,ms.typeName="google.protobuf.Timestamp",ms.fields=rt.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Bu extends F{constructor(d){super(),this.seconds=Oe.zero,this.nanos=0,rt.util.initPartial(d,this)}fromJson(d,p){if(typeof d!="string")throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);const y=d.match(/^(-?[0-9]+)(?:\.([0-9]+))?s/);if(y===null)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);const T=Number(y[1]);if(T>315576e6||T<-315576e6)throw new Error(`cannot decode google.protobuf.Duration from JSON: ${rt.json.debug(d)}`);if(this.seconds=Oe.parse(T),typeof y[2]=="string"){const $=y[2]+"0".repeat(9-y[2].length);this.nanos=parseInt($),(T<0||Object.is(T,-0))&&(this.nanos=-this.nanos)}return this}toJson(d){if(Number(this.seconds)>315576e6||Number(this.seconds)<-315576e6)throw new Error("cannot encode google.protobuf.Duration to JSON: value out of range");let p=this.seconds.toString();if(this.nanos!==0){let y=Math.abs(this.nanos).toString();y="0".repeat(9-y.length)+y,y.substring(3)==="000000"?y=y.substring(0,3):y.substring(6)==="000"&&(y=y.substring(0,6)),p+="."+y,this.nanos<0&&Number(this.seconds)==0&&(p="-"+p)}return p+"s"}static fromBinary(d,p){return new Bu().fromBinary(d,p)}static fromJson(d,p){return new Bu().fromJson(d,p)}static fromJsonString(d,p){return new Bu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Bu,d,p)}}Bu.runtime=rt,Bu.typeName="google.protobuf.Duration",Bu.fields=rt.util.newFieldList(()=>[{no:1,name:"seconds",kind:"scalar",T:3},{no:2,name:"nanos",kind:"scalar",T:5}]);class Nl extends F{constructor(d){super(),this.typeUrl="",this.value=new Uint8Array(0),rt.util.initPartial(d,this)}toJson(d){var p;if(this.typeUrl==="")return{};const y=this.typeUrlToName(this.typeUrl),T=(p=d==null?void 0:d.typeRegistry)===null||p===void 0?void 0:p.findMessage(y);if(!T)throw new Error(`cannot encode message google.protobuf.Any to JSON: "${this.typeUrl}" is not in the type registry`);let q=T.fromBinary(this.value).toJson(d);return(y.startsWith("google.protobuf.")||q===null||Array.isArray(q)||typeof q!="object")&&(q={value:q}),q["@type"]=this.typeUrl,q}fromJson(d,p){var y;if(d===null||Array.isArray(d)||typeof d!="object")throw new Error(`cannot decode message google.protobuf.Any from JSON: expected object but got ${d===null?"null":Array.isArray(d)?"array":typeof d}`);if(Object.keys(d).length==0)return this;const T=d["@type"];if(typeof T!="string"||T=="")throw new Error('cannot decode message google.protobuf.Any from JSON: "@type" is empty');const $=this.typeUrlToName(T),q=(y=p==null?void 0:p.typeRegistry)===null||y===void 0?void 0:y.findMessage($);if(!q)throw new Error(`cannot decode message google.protobuf.Any from JSON: ${T} is not in the type registry`);let ne;if($.startsWith("google.protobuf.")&&Object.prototype.hasOwnProperty.call(d,"value"))ne=q.fromJson(d.value,p);else{const me=Object.assign({},d);delete me["@type"],ne=q.fromJson(me,p)}return this.packFrom(ne),this}packFrom(d){this.value=d.toBinary(),this.typeUrl=this.typeNameToUrl(d.getType().typeName)}unpackTo(d){return this.is(d.getType())?(d.fromBinary(this.value),!0):!1}unpack(d){if(this.typeUrl==="")return;const p=d.findMessage(this.typeUrlToName(this.typeUrl));if(p)return p.fromBinary(this.value)}is(d){if(this.typeUrl==="")return!1;const p=this.typeUrlToName(this.typeUrl);let y="";return typeof d=="string"?y=d:y=d.typeName,p===y}typeNameToUrl(d){return`type.googleapis.com/${d}`}typeUrlToName(d){if(!d.length)throw new Error(`invalid type url: ${d}`);const p=d.lastIndexOf("/"),y=p>=0?d.substring(p+1):d;if(!y.length)throw new Error(`invalid type url: ${d}`);return y}static pack(d){const p=new Nl;return p.packFrom(d),p}static fromBinary(d,p){return new Nl().fromBinary(d,p)}static fromJson(d,p){return new Nl().fromJson(d,p)}static fromJsonString(d,p){return new Nl().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Nl,d,p)}}Nl.runtime=rt,Nl.typeName="google.protobuf.Any",Nl.fields=rt.util.newFieldList(()=>[{no:1,name:"type_url",kind:"scalar",T:9},{no:2,name:"value",kind:"scalar",T:12}]);class Pl extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.DOUBLE,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.DOUBLE,d)}catch(y){let T='cannot decode message google.protobuf.DoubleValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Pl().fromBinary(d,p)}static fromJson(d,p){return new Pl().fromJson(d,p)}static fromJsonString(d,p){return new Pl().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Pl,d,p)}}Pl.runtime=rt,Pl.typeName="google.protobuf.DoubleValue",Pl.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:1}]),Pl.fieldWrapper={wrapField(O){return new Pl({value:O})},unwrapField(O){return O.value}};class el extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.FLOAT,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.FLOAT,d)}catch(y){let T='cannot decode message google.protobuf.FloatValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new el().fromBinary(d,p)}static fromJson(d,p){return new el().fromJson(d,p)}static fromJsonString(d,p){return new el().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(el,d,p)}}el.runtime=rt,el.typeName="google.protobuf.FloatValue",el.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:2}]),el.fieldWrapper={wrapField(O){return new el({value:O})},unwrapField(O){return O.value}};class Uu extends F{constructor(d){super(),this.value=Oe.zero,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.INT64,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.INT64,d)}catch(y){let T='cannot decode message google.protobuf.Int64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Uu().fromBinary(d,p)}static fromJson(d,p){return new Uu().fromJson(d,p)}static fromJsonString(d,p){return new Uu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Uu,d,p)}}Uu.runtime=rt,Uu.typeName="google.protobuf.Int64Value",Uu.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:3}]),Uu.fieldWrapper={wrapField(O){return new Uu({value:O})},unwrapField(O){return O.value}};class Ml extends F{constructor(d){super(),this.value=Oe.zero,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.UINT64,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.UINT64,d)}catch(y){let T='cannot decode message google.protobuf.UInt64Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Ml().fromBinary(d,p)}static fromJson(d,p){return new Ml().fromJson(d,p)}static fromJsonString(d,p){return new Ml().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Ml,d,p)}}Ml.runtime=rt,Ml.typeName="google.protobuf.UInt64Value",Ml.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:4}]),Ml.fieldWrapper={wrapField(O){return new Ml({value:O})},unwrapField(O){return O.value}};class ko extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.INT32,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.INT32,d)}catch(y){let T='cannot decode message google.protobuf.Int32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new ko().fromBinary(d,p)}static fromJson(d,p){return new ko().fromJson(d,p)}static fromJsonString(d,p){return new ko().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(ko,d,p)}}ko.runtime=rt,ko.typeName="google.protobuf.Int32Value",ko.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:5}]),ko.fieldWrapper={wrapField(O){return new ko({value:O})},unwrapField(O){return O.value}};class Ll extends F{constructor(d){super(),this.value=0,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.UINT32,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.UINT32,d)}catch(y){let T='cannot decode message google.protobuf.UInt32Value from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new Ll().fromBinary(d,p)}static fromJson(d,p){return new Ll().fromJson(d,p)}static fromJsonString(d,p){return new Ll().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Ll,d,p)}}Ll.runtime=rt,Ll.typeName="google.protobuf.UInt32Value",Ll.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:13}]),Ll.fieldWrapper={wrapField(O){return new Ll({value:O})},unwrapField(O){return O.value}};class zu extends F{constructor(d){super(),this.value=!1,rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.BOOL,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.BOOL,d)}catch(y){let T='cannot decode message google.protobuf.BoolValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new zu().fromBinary(d,p)}static fromJson(d,p){return new zu().fromJson(d,p)}static fromJsonString(d,p){return new zu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(zu,d,p)}}zu.runtime=rt,zu.typeName="google.protobuf.BoolValue",zu.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:8}]),zu.fieldWrapper={wrapField(O){return new zu({value:O})},unwrapField(O){return O.value}};class to extends F{constructor(d){super(),this.value="",rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.STRING,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.STRING,d)}catch(y){let T='cannot decode message google.protobuf.StringValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new to().fromBinary(d,p)}static fromJson(d,p){return new to().fromJson(d,p)}static fromJsonString(d,p){return new to().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(to,d,p)}}to.runtime=rt,to.typeName="google.protobuf.StringValue",to.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:9}]),to.fieldWrapper={wrapField(O){return new to({value:O})},unwrapField(O){return O.value}};class $l extends F{constructor(d){super(),this.value=new Uint8Array(0),rt.util.initPartial(d,this)}toJson(d){return rt.json.writeScalar(ie.BYTES,this.value,!0)}fromJson(d,p){try{this.value=rt.json.readScalar(ie.BYTES,d)}catch(y){let T='cannot decode message google.protobuf.BytesValue from JSON"';throw y instanceof Error&&y.message.length>0&&(T+=`: ${y.message}`),new Error(T)}return this}static fromBinary(d,p){return new $l().fromBinary(d,p)}static fromJson(d,p){return new $l().fromJson(d,p)}static fromJsonString(d,p){return new $l().fromJsonString(d,p)}static equals(d,p){return rt.util.equals($l,d,p)}}$l.runtime=rt,$l.typeName="google.protobuf.BytesValue",$l.fields=rt.util.newFieldList(()=>[{no:1,name:"value",kind:"scalar",T:12}]),$l.fieldWrapper={wrapField(O){return new $l({value:O})},unwrapField(O){return O.value}};function dS(O,d,p){try{const y=le.dec(O);return d?d.fromBinary(y,p):y}catch(y){throw u.from(y,o.DataLoss)}}function R6(O,d){const p={};for(const[y,T]of Object.entries(O.methods)){const $=d(Object.assign(Object.assign({},T),{localName:y,service:O}));$!=null&&(p[y]=$)}return p}function fS(O){let d,p=new Uint8Array(0);function y(T){const $=new Uint8Array(p.length+T.length);$.set(p),$.set(T,p.length),p=$}return new ReadableStream({start(){d=O.getReader()},async pull(T){let $;for(;;){if($===void 0&&p.byteLength>=5){let me=0;for(let Se=1;Se<5;Se++)me=(me<<8)+p[Se];$={flags:p[0],length:me}}if($!==void 0&&p.byteLength>=$.length+5)break;const ne=await d.read();if(ne.done)break;y(ne.value)}if($===void 0){if(p.byteLength==0){T.close();return}T.error(new u("premature end of stream",o.DataLoss));return}const q=p.subarray(5,5+$.length);p=p.subarray(5+$.length),T.enqueue({flags:$.flags,data:q})}})}function X1(O,d){const p=new Uint8Array(d.length+5);p.set(d,5);const y=new DataView(p.buffer,p.byteOffset,p.byteLength);return y.setUint8(0,O),y.setUint32(1,d.length),p}var hS=globalThis&&globalThis.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=O[Symbol.asyncIterator],p;return d?d.call(O):(O=typeof __values=="function"?__values(O):O[Symbol.iterator](),p={},y("next"),y("throw"),y("return"),p[Symbol.asyncIterator]=function(){return this},p);function y($){p[$]=O[$]&&function(q){return new Promise(function(ne,me){q=O[$](q),T(ne,me,q.done,q.value)})}}function T($,q,ne,me){Promise.resolve(me).then(function(Se){$({value:Se,done:ne})},q)}},ju=globalThis&&globalThis.__await||function(O){return this instanceof ju?(this.v=O,this):new ju(O)},gk=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,pr){$.push([mt,Bn,kn,pr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof ju?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}},bk=globalThis&&globalThis.__asyncDelegator||function(O){var d,p;return d={},y("next"),y("throw",function(T){throw T}),y("return"),d[Symbol.iterator]=function(){return this},d;function y(T,$){d[T]=O[T]?function(q){return(p=!p)?{value:ju(O[T](q)),done:!1}:$?$(q):q}:$}};function I6(O){return gk(this,arguments,function*(){yield ju(yield*bk(hS(O)))})}var pS=globalThis&&globalThis.__asyncValues||function(O){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var d=O[Symbol.asyncIterator],p;return d?d.call(O):(O=typeof __values=="function"?__values(O):O[Symbol.iterator](),p={},y("next"),y("throw"),y("return"),p[Symbol.asyncIterator]=function(){return this},p);function y($){p[$]=O[$]&&function(q){return new Promise(function(ne,me){q=O[$](q),T(ne,me,q.done,q.value)})}}function T($,q,ne,me){Promise.resolve(me).then(function(Se){$({value:Se,done:ne})},q)}},lh=globalThis&&globalThis.__await||function(O){return this instanceof lh?(this.v=O,this):new lh(O)},yk=globalThis&&globalThis.__asyncDelegator||function(O){var d,p;return d={},y("next"),y("throw",function(T){throw T}),y("return"),d[Symbol.iterator]=function(){return this},d;function y(T,$){d[T]=O[T]?function(q){return(p=!p)?{value:lh(O[T](q)),done:!1}:$?$(q):q}:$}},vk=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,pr){$.push([mt,Bn,kn,pr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof lh?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}};function D6(O,d){return R6(O,p=>{switch(p.kind){case Ds.Unary:return N6(d,O,p);case Ds.ServerStreaming:return P6(d,O,p);case Ds.ClientStreaming:return Ok(d,O,p);case Ds.BiDiStreaming:return M6(d,O,p);default:return null}})}function N6(O,d,p){return async function(y,T){var $,q;const ne=await O.unary(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);return($=T==null?void 0:T.onHeader)===null||$===void 0||$.call(T,ne.header),(q=T==null?void 0:T.onTrailer)===null||q===void 0||q.call(T,ne.trailer),ne.message}}function P6(O,d,p){return function(y,T){return Sk(O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,I6([y]),T==null?void 0:T.contextValues),T)}}function Ok(O,d,p){return async function(y,T){var $,q,ne,me,Se,ze;const Ct=await O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues);(Se=T==null?void 0:T.onHeader)===null||Se===void 0||Se.call(T,Ct.header);let St;try{for(var mt=!0,tn=pS(Ct.message),Bn;Bn=await tn.next(),$=Bn.done,!$;mt=!0)me=Bn.value,mt=!1,St=me}catch(kn){q={error:kn}}finally{try{!mt&&!$&&(ne=tn.return)&&await ne.call(tn)}finally{if(q)throw q.error}}if(!St)throw new u("protocol error: missing response message",o.Internal);return(ze=T==null?void 0:T.onTrailer)===null||ze===void 0||ze.call(T,Ct.trailer),St}}function M6(O,d,p){return function(y,T){return Sk(O.stream(d,p,T==null?void 0:T.signal,T==null?void 0:T.timeoutMs,T==null?void 0:T.headers,y,T==null?void 0:T.contextValues),T)}}function Sk(O,d){const p=function(){var y,T;return vk(this,arguments,function*(){const $=yield lh(O);(y=d==null?void 0:d.onHeader)===null||y===void 0||y.call(d,$.header),yield lh(yield*yk(pS($.message))),(T=d==null?void 0:d.onTrailer)===null||T===void 0||T.call(d,$.trailer)})}()[Symbol.asyncIterator]();return{[Symbol.asyncIterator]:()=>({next:()=>p.next()})}}function L6(...O){const d=new AbortController,p=O.filter(T=>T!==void 0).concat(d.signal);for(const T of p){if(T.aborted){y.apply(T);break}T.addEventListener("abort",y)}function y(){d.signal.aborted||d.abort(K1(this));for(const T of p)T.removeEventListener("abort",y)}return d}function $6(O){const d=new AbortController,p=()=>{d.abort(new u("the operation timed out",o.DeadlineExceeded))};let y;return O!==void 0&&(O<=0?p():y=setTimeout(p,O)),{signal:d.signal,cleanup:()=>clearTimeout(y)}}function K1(O){if(!O.aborted)return;if(O.reason!==void 0)return O.reason;const d=new Error("This operation was aborted");return d.name="AbortError",d}function Ek(){return{get(O){return O.id in this?this[O.id]:O.defaultValue},set(O,d){return this[O.id]=d,this},delete(O){return delete this[O.id],this}}}const mS=128;function wk(O){const d=new Headers,p=new TextDecoder().decode(O).split(`\r -`);for(const y of p){if(y==="")continue;const T=y.indexOf(":");if(T>0){const $=y.substring(0,T).trim(),q=y.substring(T+1).trim();d.append($,q)}}return d}const F6="Content-Type",B6="Grpc-Timeout",gi="Grpc-Status",fi="Grpc-Message",U6="Grpc-Status-Details-Bin",z6="User-Agent",j6="X-User-Agent",H6="X-Grpc-Web",V6="application/grpc-web+proto",W6="application/grpc-web+json";class Hu extends F{constructor(d){super(),this.code=0,this.message="",this.details=[],rt.util.initPartial(d,this)}static fromBinary(d,p){return new Hu().fromBinary(d,p)}static fromJson(d,p){return new Hu().fromJson(d,p)}static fromJsonString(d,p){return new Hu().fromJsonString(d,p)}static equals(d,p){return rt.util.equals(Hu,d,p)}}Hu.runtime=rt,Hu.typeName="google.rpc.Status",Hu.fields=rt.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:Nl,repeated:!0}]);const Q6="0";function Ua(O){var d;const p=O.get(U6);if(p!=null){const T=dS(p,Hu);if(T.code==0)return;const $=new u(T.message,T.code,O);return $.details=T.details.map(q=>({type:q.typeUrl.substring(q.typeUrl.lastIndexOf("/")+1),value:q.value})),$}const y=O.get(gi);if(y!=null){if(y===Q6)return;const T=parseInt(y,10);return T in o?new u(decodeURIComponent((d=O.get(fi))!==null&&d!==void 0?d:""),T,O):new u(`invalid grpc-status: ${y}`,o.Internal,O)}}function J1(O,d,p){const y=typeof d=="string"?d:d.typeName,T=typeof p=="string"?p:p.name;return O.toString().replace(/\/?$/,`/${y}/${T}`)}function Ud(O,d){return d instanceof O?d:new O(d)}function xk(O,d){function p(y){return y.done===!0?y:{done:y.done,value:Ud(O,y.value)}}return{[Symbol.asyncIterator](){const y=d[Symbol.asyncIterator](),T={next:()=>y.next().then(p)};return y.throw!==void 0&&(T.throw=$=>y.throw($).then(p)),y.return!==void 0&&(T.return=$=>y.return($).then(p)),T}}}function eb(O,d){var p;return(p=d==null?void 0:d.concat().reverse().reduce((y,T)=>T(y),O))!==null&&p!==void 0?p:O}function tl(O){var d;const p=Object.assign({},O);return(d=p.ignoreUnknownFields)!==null&&d!==void 0||(p.ignoreUnknownFields=!0),p}function gS(O,d,p,y){const T=d?bS(O.I,y):yS(O.I,p);return{parse:(d?bS(O.O,y):yS(O.O,p)).parse,serialize:T.serialize}}function bS(O,d){return{parse(p){try{return O.fromBinary(p,d)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`parse binary: ${T}`,o.InvalidArgument)}},serialize(p){try{return p.toBinary(d)}catch(y){const T=y instanceof Error?y.message:String(y);throw new u(`serialize binary: ${T}`,o.Internal)}}}}function yS(O,d){var p,y;const T=(p=d==null?void 0:d.textEncoder)!==null&&p!==void 0?p:new TextEncoder,$=(y=d==null?void 0:d.textDecoder)!==null&&y!==void 0?y:new TextDecoder,q=tl(d);return{parse(ne){try{const me=$.decode(ne);return O.fromJsonString(me,q)}catch(me){throw u.from(me,o.InvalidArgument)}},serialize(ne){try{const me=ne.toJsonString(q);return T.encode(me)}catch(me){throw u.from(me,o.Internal)}}}}function Tk(O){const d=eb(O.next,O.interceptors),[p,y,T]=vS(O),$=Object.assign(Object.assign({},O.req),{message:Ud(O.req.method.I,O.req.message),signal:p});return d($).then(q=>(T(),q),y)}function kk(O){const d=eb(O.next,O.interceptors),[p,y,T]=vS(O),$=Object.assign(Object.assign({},O.req),{message:xk(O.req.method.I,O.req.message),signal:p});let q=!1;return p.addEventListener("abort",function(){var ne,me;const Se=O.req.message[Symbol.asyncIterator]();q||(ne=Se.throw)===null||ne===void 0||ne.call(Se,this.reason).catch(()=>{}),(me=Se.return)===null||me===void 0||me.call(Se).catch(()=>{})}),d($).then(ne=>Object.assign(Object.assign({},ne),{message:{[Symbol.asyncIterator](){const me=ne.message[Symbol.asyncIterator]();return{next(){return me.next().then(Se=>(Se.done==!0&&(q=!0,T()),Se),y)}}}}}),y)}function vS(O){const{signal:d,cleanup:p}=$6(O.timeoutMs),y=L6(O.signal,d);return[y.signal,function($){const q=u.from(d.aborted?K1(d):$);return y.abort(q),p(),Promise.reject(q)},function(){p(),y.abort()}]}function Co(){try{new Headers}catch{throw new Error("connect-web requires the fetch API. Are you running on an old version of Node.js? Node.js is not supported in Connect for Web - please stay tuned for Connect for Node.")}}function Ck(O,d){const p=Ua(O);if(p)throw d.forEach((y,T)=>{p.metadata.append(T,y)}),p}function Ao(O,d,p,y){const T=new Headers(p??{});return T.set(F6,O?V6:W6),T.set(H6,"1"),T.set(j6,"connect-es/1.4.0"),y&&T.set(z6,"connect-es/1.4.0"),d!==void 0&&T.set(B6,`${d}m`),T}function q6(O){switch(O){case 400:return o.Internal;case 401:return o.Unauthenticated;case 403:return o.PermissionDenied;case 404:return o.Unimplemented;case 429:return o.Unavailable;case 502:return o.Unavailable;case 503:return o.Unavailable;case 504:return o.Unavailable;default:return o.Unknown}}function OS(O,d){var p;if(O>=200&&O<300){const y=Ua(d);if(y)throw y;return{foundStatus:d.has(gi)}}throw new u(decodeURIComponent((p=d.get(fi))!==null&&p!==void 0?p:`HTTP ${O}`),q6(O),d)}var no=globalThis&&globalThis.__await||function(O){return this instanceof no?(this.v=O,this):new no(O)},tb=globalThis&&globalThis.__asyncGenerator||function(O,d,p){if(!Symbol.asyncIterator)throw new TypeError("Symbol.asyncIterator is not defined.");var y=p.apply(O,d||[]),T,$=[];return T={},ne("next"),ne("throw"),ne("return",q),T[Symbol.asyncIterator]=function(){return this},T;function q(mt){return function(tn){return Promise.resolve(tn).then(mt,Ct)}}function ne(mt,tn){y[mt]&&(T[mt]=function(Bn){return new Promise(function(kn,pr){$.push([mt,Bn,kn,pr])>1||me(mt,Bn)})},tn&&(T[mt]=tn(T[mt])))}function me(mt,tn){try{Se(y[mt](tn))}catch(Bn){St($[0][3],Bn)}}function Se(mt){mt.value instanceof no?Promise.resolve(mt.value.v).then(ze,Ct):St($[0][2],mt)}function ze(mt){me("next",mt)}function Ct(mt){me("throw",mt)}function St(mt,tn){mt(tn),$.shift(),$.length&&me($[0][0],$[0][1])}};function SS(O){var d;Co();const p=(d=O.useBinaryFormat)!==null&&d!==void 0?d:!0;return{async unary(y,T,$,q,ne,me,Se){var ze;const{serialize:Ct,parse:St}=gS(T,p,O.jsonOptions,O.binaryOptions);return q=q===void 0?O.defaultTimeoutMs:q<=0?void 0:q,await Tk({interceptors:O.interceptors,signal:$,timeoutMs:q,req:{stream:!1,service:y,method:T,url:J1(O.baseUrl,y,T),init:{method:"POST",credentials:(ze=O.credentials)!==null&&ze!==void 0?ze:"same-origin",redirect:"error",mode:"cors"},header:Ao(p,q,ne,!1),contextValues:Se??Ek(),message:me},next:async mt=>{var tn;const kn=await((tn=O.fetch)!==null&&tn!==void 0?tn:globalThis.fetch)(mt.url,Object.assign(Object.assign({},mt.init),{headers:mt.header,signal:mt.signal,body:X1(0,Ct(mt.message))}));if(OS(kn.status,kn.headers),!kn.body)throw"missing response body";const pr=fS(kn.body).getReader();let Oi,Cr;for(;;){const Yr=await pr.read();if(Yr.done)break;const{flags:li,data:Fr}=Yr.value;if(li===mS){if(Oi!==void 0)throw"extra trailer";Oi=wk(Fr);continue}if(Cr!==void 0)throw"extra message";Cr=St(Fr)}if(Oi===void 0)throw"missing trailer";if(Ck(Oi,kn.headers),Cr===void 0)throw"missing message";return{stream:!1,service:y,method:T,header:kn.headers,message:Cr,trailer:Oi}}})},async stream(y,T,$,q,ne,me,Se){var ze;const{serialize:Ct,parse:St}=gS(T,p,O.jsonOptions,O.binaryOptions);function mt(Bn,kn,pr,Oi){return tb(this,arguments,function*(){const Yr=fS(Bn).getReader();if(kn){if(!(yield no(Yr.read())).done)throw"extra data for trailers-only";return yield no(void 0)}let li=!1;for(;;){const Fr=yield no(Yr.read());if(Fr.done)break;const{flags:Mo,data:Sh}=Fr.value;if((Mo&mS)===mS){if(li)throw"extra trailer";li=!0;const Gp=wk(Sh);Ck(Gp,Oi),Gp.forEach((AD,_D)=>pr.set(_D,AD));continue}if(li)throw"extra message";yield yield no(St(Sh))}if(!li)throw"missing trailer"})}async function tn(Bn){if(T.kind!=Ds.ServerStreaming)throw"The fetch API does not support streaming request bodies";const kn=await Bn[Symbol.asyncIterator]().next();if(kn.done==!0)throw"missing request message";return X1(0,Ct(kn.value))}return q=q===void 0?O.defaultTimeoutMs:q<=0?void 0:q,kk({interceptors:O.interceptors,signal:$,timeoutMs:q,req:{stream:!0,service:y,method:T,url:J1(O.baseUrl,y,T),init:{method:"POST",credentials:(ze=O.credentials)!==null&&ze!==void 0?ze:"same-origin",redirect:"error",mode:"cors"},header:Ao(p,q,ne,!1),contextValues:Se??Ek(),message:me},next:async Bn=>{var kn;const Oi=await((kn=O.fetch)!==null&&kn!==void 0?kn:globalThis.fetch)(Bn.url,Object.assign(Object.assign({},Bn.init),{headers:Bn.header,signal:Bn.signal,body:await tn(Bn.message)})),{foundStatus:Cr}=OS(Oi.status,Oi.headers);if(!Oi.body)throw"missing response body";const Yr=new Headers;return Object.assign(Object.assign({},Bn),{header:Oi.headers,trailer:Yr,message:mt(Oi.body,Cr,Yr,Oi.headers)})}})}}}const vn=rt.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"}]),Fl=rt.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"}]),ES=rt.makeMessageType("yorkie.v1.Snapshot",()=>[{no:1,name:"root",kind:"message",T:ro},{no:2,name:"presences",kind:"map",K:9,V:{kind:"message",T:Vu}}]),Vc=rt.makeMessageType("yorkie.v1.ChangePack",()=>[{no:1,name:"document_key",kind:"scalar",T:9},{no:2,name:"checkpoint",kind:"message",T:U0},{no:3,name:"snapshot",kind:"scalar",T:12},{no:4,name:"changes",kind:"message",T:nb,repeated:!0},{no:5,name:"min_synced_ticket",kind:"message",T:Dn},{no:6,name:"is_removed",kind:"scalar",T:8}]),nb=rt.makeMessageType("yorkie.v1.Change",()=>[{no:1,name:"id",kind:"message",T:rb},{no:2,name:"message",kind:"scalar",T:9},{no:3,name:"operations",kind:"message",T:wS,repeated:!0},{no:4,name:"presence_change",kind:"message",T:B0}]),rb=rt.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}]),wS=rt.makeMessageType("yorkie.v1.Operation",()=>[{no:1,name:"set",kind:"message",T:Ak,oneof:"body"},{no:2,name:"add",kind:"message",T:xS,oneof:"body"},{no:3,name:"move",kind:"message",T:$0,oneof:"body"},{no:4,name:"remove",kind:"message",T:uh,oneof:"body"},{no:5,name:"edit",kind:"message",T:_k,oneof:"body"},{no:6,name:"select",kind:"message",T:Rk,oneof:"body"},{no:7,name:"style",kind:"message",T:TS,oneof:"body"},{no:8,name:"increase",kind:"message",T:ib,oneof:"body"},{no:9,name:"tree_edit",kind:"message",T:ab,oneof:"body"},{no:10,name:"tree_style",kind:"message",T:kS,oneof:"body"}]),Ak=rt.makeMessageType("yorkie.v1.Operation.Set",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"key",kind:"scalar",T:9},{no:3,name:"value",kind:"message",T:Wc},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Set"}),xS=rt.makeMessageType("yorkie.v1.Operation.Add",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"prev_created_at",kind:"message",T:Dn},{no:3,name:"value",kind:"message",T:Wc},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Add"}),$0=rt.makeMessageType("yorkie.v1.Operation.Move",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"prev_created_at",kind:"message",T:Dn},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Move"}),uh=rt.makeMessageType("yorkie.v1.Operation.Remove",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Remove"}),_k=rt.makeMessageType("yorkie.v1.Operation.Edit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:ch},{no:3,name:"to",kind:"message",T:ch},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}},{no:5,name:"content",kind:"scalar",T:9},{no:6,name:"executed_at",kind:"message",T:Dn},{no:7,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}}],{localName:"Operation_Edit"}),Rk=rt.makeMessageType("yorkie.v1.Operation.Select",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:ch},{no:3,name:"to",kind:"message",T:ch},{no:4,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Select"}),TS=rt.makeMessageType("yorkie.v1.Operation.Style",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:ch},{no:3,name:"to",kind:"message",T:ch},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Dn},{no:6,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}}],{localName:"Operation_Style"}),ib=rt.makeMessageType("yorkie.v1.Operation.Increase",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"value",kind:"message",T:Wc},{no:3,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_Increase"}),ab=rt.makeMessageType("yorkie.v1.Operation.TreeEdit",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:F0},{no:3,name:"to",kind:"message",T:F0},{no:4,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}},{no:5,name:"contents",kind:"message",T:Nk,repeated:!0},{no:7,name:"split_level",kind:"scalar",T:5},{no:6,name:"executed_at",kind:"message",T:Dn}],{localName:"Operation_TreeEdit"}),kS=rt.makeMessageType("yorkie.v1.Operation.TreeStyle",()=>[{no:1,name:"parent_created_at",kind:"message",T:Dn},{no:2,name:"from",kind:"message",T:F0},{no:3,name:"to",kind:"message",T:F0},{no:4,name:"attributes",kind:"map",K:9,V:{kind:"scalar",T:9}},{no:5,name:"executed_at",kind:"message",T:Dn},{no:6,name:"attributes_to_remove",kind:"scalar",T:9,repeated:!0},{no:7,name:"created_at_map_by_actor",kind:"map",K:9,V:{kind:"message",T:Dn}}],{localName:"Operation_TreeStyle"}),Wc=rt.makeMessageType("yorkie.v1.JSONElementSimple",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"moved_at",kind:"message",T:Dn},{no:3,name:"removed_at",kind:"message",T:Dn},{no:4,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:5,name:"value",kind:"scalar",T:12}]),ro=rt.makeMessageType("yorkie.v1.JSONElement",()=>[{no:1,name:"json_object",kind:"message",T:sb,oneof:"body"},{no:2,name:"json_array",kind:"message",T:Ik,oneof:"body"},{no:3,name:"primitive",kind:"message",T:CS,oneof:"body"},{no:5,name:"text",kind:"message",T:io,oneof:"body"},{no:6,name:"counter",kind:"message",T:ob,oneof:"body"},{no:7,name:"tree",kind:"message",T:Rp,oneof:"body"}]),sb=rt.makeMessageType("yorkie.v1.JSONElement.JSONObject",()=>[{no:1,name:"nodes",kind:"message",T:AS,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_JSONObject"}),Ik=rt.makeMessageType("yorkie.v1.JSONElement.JSONArray",()=>[{no:1,name:"nodes",kind:"message",T:lb,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_JSONArray"}),CS=rt.makeMessageType("yorkie.v1.JSONElement.Primitive",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"moved_at",kind:"message",T:Dn},{no:5,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Primitive"}),io=rt.makeMessageType("yorkie.v1.JSONElement.Text",()=>[{no:1,name:"nodes",kind:"message",T:Dk,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Text"}),ob=rt.makeMessageType("yorkie.v1.JSONElement.Counter",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(vn)},{no:2,name:"value",kind:"scalar",T:12},{no:3,name:"created_at",kind:"message",T:Dn},{no:4,name:"moved_at",kind:"message",T:Dn},{no:5,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Counter"}),Rp=rt.makeMessageType("yorkie.v1.JSONElement.Tree",()=>[{no:1,name:"nodes",kind:"message",T:RS,repeated:!0},{no:2,name:"created_at",kind:"message",T:Dn},{no:3,name:"moved_at",kind:"message",T:Dn},{no:4,name:"removed_at",kind:"message",T:Dn}],{localName:"JSONElement_Tree"}),AS=rt.makeMessageType("yorkie.v1.RHTNode",()=>[{no:1,name:"key",kind:"scalar",T:9},{no:2,name:"element",kind:"message",T:ro}]),lb=rt.makeMessageType("yorkie.v1.RGANode",()=>[{no:1,name:"next",kind:"message",T:lb},{no:2,name:"element",kind:"message",T:ro}]),ub=rt.makeMessageType("yorkie.v1.NodeAttr",()=>[{no:1,name:"value",kind:"scalar",T:9},{no:2,name:"updated_at",kind:"message",T:Dn},{no:3,name:"is_removed",kind:"scalar",T:8}]),Dk=rt.makeMessageType("yorkie.v1.TextNode",()=>[{no:1,name:"id",kind:"message",T:_S},{no:2,name:"value",kind:"scalar",T:9},{no:3,name:"removed_at",kind:"message",T:Dn},{no:4,name:"ins_prev_id",kind:"message",T:_S},{no:5,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ub}}]),_S=rt.makeMessageType("yorkie.v1.TextNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5}]),RS=rt.makeMessageType("yorkie.v1.TreeNode",()=>[{no:1,name:"id",kind:"message",T:Bl},{no:2,name:"type",kind:"scalar",T:9},{no:3,name:"value",kind:"scalar",T:9},{no:4,name:"removed_at",kind:"message",T:Dn},{no:5,name:"ins_prev_id",kind:"message",T:Bl},{no:6,name:"ins_next_id",kind:"message",T:Bl},{no:7,name:"depth",kind:"scalar",T:5},{no:8,name:"attributes",kind:"map",K:9,V:{kind:"message",T:ub}}]),Nk=rt.makeMessageType("yorkie.v1.TreeNodes",()=>[{no:1,name:"content",kind:"message",T:RS,repeated:!0}]),Bl=rt.makeMessageType("yorkie.v1.TreeNodeID",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5}]),F0=rt.makeMessageType("yorkie.v1.TreePos",()=>[{no:1,name:"parent_id",kind:"message",T:Bl},{no:2,name:"left_sibling_id",kind:"message",T:Bl}]);rt.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:ms}]),rt.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:ms},{no:9,name:"updated_at",kind:"message",T:ms}]),rt.makeMessageType("yorkie.v1.UpdatableProjectFields",()=>[{no:1,name:"name",kind:"message",T:to},{no:2,name:"auth_webhook_url",kind:"message",T:to},{no:3,name:"auth_webhook_methods",kind:"message",T:G6},{no:4,name:"client_deactivate_threshold",kind:"message",T:to}]);const G6=rt.makeMessageType("yorkie.v1.UpdatableProjectFields.AuthWebhookMethods",()=>[{no:1,name:"methods",kind:"scalar",T:9,repeated:!0}],{localName:"UpdatableProjectFields_AuthWebhookMethods"});rt.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:ms},{no:5,name:"accessed_at",kind:"message",T:ms},{no:6,name:"updated_at",kind:"message",T:ms}]);const B0=rt.makeMessageType("yorkie.v1.PresenceChange",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(Ip)},{no:2,name:"presence",kind:"message",T:Vu}]),Ip=rt.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"}]),Vu=rt.makeMessageType("yorkie.v1.Presence",()=>[{no:1,name:"data",kind:"map",K:9,V:{kind:"scalar",T:9}}]),U0=rt.makeMessageType("yorkie.v1.Checkpoint",()=>[{no:1,name:"server_seq",kind:"scalar",T:3,L:1},{no:2,name:"client_seq",kind:"scalar",T:13}]),ch=rt.makeMessageType("yorkie.v1.TextNodePos",()=>[{no:1,name:"created_at",kind:"message",T:Dn},{no:2,name:"offset",kind:"scalar",T:5},{no:3,name:"relative_offset",kind:"scalar",T:5}]),Dn=rt.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}]),Y6=rt.makeMessageType("yorkie.v1.DocEventBody",()=>[{no:1,name:"topic",kind:"scalar",T:9},{no:2,name:"payload",kind:"scalar",T:12}]),Dp=rt.makeMessageType("yorkie.v1.DocEvent",()=>[{no:1,name:"type",kind:"enum",T:rt.getEnumType(Fl)},{no:2,name:"publisher",kind:"scalar",T:9},{no:3,name:"body",kind:"message",T:Y6}]),Ul=rt.makeMessageType("yorkie.v1.ActivateClientRequest",()=>[{no:1,name:"client_key",kind:"scalar",T:9}]),Pk=rt.makeMessageType("yorkie.v1.ActivateClientResponse",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),Z6=rt.makeMessageType("yorkie.v1.DeactivateClientRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9}]),X6=rt.makeMessageType("yorkie.v1.DeactivateClientResponse",[]),K6=rt.makeMessageType("yorkie.v1.AttachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Vc}]),J6=rt.makeMessageType("yorkie.v1.AttachDocumentResponse",()=>[{no:1,name:"document_id",kind:"scalar",T:9},{no:2,name:"change_pack",kind:"message",T:Vc}]),eD=rt.makeMessageType("yorkie.v1.DetachDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Vc},{no:4,name:"remove_if_not_attached",kind:"scalar",T:8}]),Np=rt.makeMessageType("yorkie.v1.DetachDocumentResponse",()=>[{no:2,name:"change_pack",kind:"message",T:Vc}]),He=rt.makeMessageType("yorkie.v1.WatchDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9}]),bt=rt.makeMessageType("yorkie.v1.WatchDocumentResponse",()=>[{no:1,name:"initialization",kind:"message",T:ct,oneof:"body"},{no:2,name:"event",kind:"message",T:Dp,oneof:"body"}]),ct=rt.makeMessageType("yorkie.v1.WatchDocumentResponse.Initialization",()=>[{no:1,name:"client_ids",kind:"scalar",T:9,repeated:!0}],{localName:"WatchDocumentResponse_Initialization"}),mn=rt.makeMessageType("yorkie.v1.RemoveDocumentRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Vc}]),rr=rt.makeMessageType("yorkie.v1.RemoveDocumentResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Vc}]),Gr=rt.makeMessageType("yorkie.v1.PushPullChangesRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"change_pack",kind:"message",T:Vc},{no:4,name:"push_only",kind:"scalar",T:8}]),xa=rt.makeMessageType("yorkie.v1.PushPullChangesResponse",()=>[{no:1,name:"change_pack",kind:"message",T:Vc}]),hi=rt.makeMessageType("yorkie.v1.BroadcastRequest",()=>[{no:1,name:"client_id",kind:"scalar",T:9},{no:2,name:"document_id",kind:"scalar",T:9},{no:3,name:"topic",kind:"scalar",T:9},{no:4,name:"payload",kind:"scalar",T:12}]),IS=rt.makeMessageType("yorkie.v1.BroadcastResponse",[]),tD={typeName:"yorkie.v1.YorkieService",methods:{activateClient:{name:"ActivateClient",I:Ul,O:Pk,kind:Ds.Unary},deactivateClient:{name:"DeactivateClient",I:Z6,O:X6,kind:Ds.Unary},attachDocument:{name:"AttachDocument",I:K6,O:J6,kind:Ds.Unary},detachDocument:{name:"DetachDocument",I:eD,O:Np,kind:Ds.Unary},removeDocument:{name:"RemoveDocument",I:mn,O:rr,kind:Ds.Unary},pushPullChanges:{name:"PushPullChanges",I:Gr,O:xa,kind:Ds.Unary},watchDocument:{name:"WatchDocument",I:He,O:bt,kind:Ds.ServerStreaming},broadcast:{name:"Broadcast",I:hi,O:IS,kind:Ds.Unary}}};/** - * @license - * Copyright 2009 The Closure Library Authors - * Copyright 2020 Daniel Wirtz / The long.js Authors. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - * - * SPDX-License-Identifier: Apache-2.0 - */var Mi=null;try{Mi=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 Zn(O,d,p){this.low=O|0,this.high=d|0,this.unsigned=!!p}Zn.prototype.__isLong__,Object.defineProperty(Zn.prototype,"__isLong__",{value:!0});function gs(O){return(O&&O.__isLong__)===!0}function dh(O){var d=Math.clz32(O&-O);return O?31-d:d}Zn.isLong=gs;var z0={},j0={};function kr(O,d){var p,y,T;return d?(O>>>=0,(T=0<=O&&O<256)&&(y=j0[O],y)?y:(p=Lr(O,0,!0),T&&(j0[O]=p),p)):(O|=0,(T=-128<=O&&O<128)&&(y=z0[O],y)?y:(p=Lr(O,O<0?-1:0,!1),T&&(z0[O]=p),p))}Zn.fromInt=kr;function nl(O,d){if(isNaN(O))return d?Wu:rl;if(d){if(O<0)return Wu;if(O>=H0)return W0}else{if(O<=-NS)return ao;if(O+1>=NS)return zd}return O<0?nl(-O,d).neg():Lr(O%_o|0,O/_o|0,d)}Zn.fromNumber=nl;function Lr(O,d,p){return new Zn(O,d,p)}Zn.fromBits=Lr;var fh=Math.pow;function DS(O,d,p){if(O.length===0)throw Error("empty string");if(typeof d=="number"?(p=d,d=!1):d=!!d,O==="NaN"||O==="Infinity"||O==="+Infinity"||O==="-Infinity")return d?Wu:rl;if(p=p||10,p<2||360)throw Error("interior hyphen");if(y===0)return DS(O.substring(1),d,p).neg();for(var T=nl(fh(p,8)),$=rl,q=0;q>>0:this.low},zt.toNumber=function(){return this.unsigned?(this.high>>>0)*_o+(this.low>>>0):this.high*_o+(this.low>>>0)},zt.toString=function(d){if(d=d||10,d<2||36>>0,ze=Se.toString(d);if(q=me,q.isZero())return ze+ne;for(;ze.length<6;)ze="0"+ze;ne=""+ze+ne}},zt.getHighBits=function(){return this.high},zt.getHighBitsUnsigned=function(){return this.high>>>0},zt.getLowBits=function(){return this.low},zt.getLowBitsUnsigned=function(){return this.low>>>0},zt.getNumBitsAbs=function(){if(this.isNegative())return this.eq(ao)?64:this.neg().getNumBitsAbs();for(var d=this.high!=0?this.high:this.low,p=31;p>0&&!(d&1<=0},zt.isOdd=function(){return(this.low&1)===1},zt.isEven=function(){return(this.low&1)===0},zt.equals=function(d){return gs(d)||(d=zl(d)),this.unsigned!==d.unsigned&&this.high>>>31===1&&d.high>>>31===1?!1:this.high===d.high&&this.low===d.low},zt.eq=zt.equals,zt.notEquals=function(d){return!this.eq(d)},zt.neq=zt.notEquals,zt.ne=zt.notEquals,zt.lessThan=function(d){return this.comp(d)<0},zt.lt=zt.lessThan,zt.lessThanOrEqual=function(d){return this.comp(d)<=0},zt.lte=zt.lessThanOrEqual,zt.le=zt.lessThanOrEqual,zt.greaterThan=function(d){return this.comp(d)>0},zt.gt=zt.greaterThan,zt.greaterThanOrEqual=function(d){return this.comp(d)>=0},zt.gte=zt.greaterThanOrEqual,zt.ge=zt.greaterThanOrEqual,zt.compare=function(d){if(gs(d)||(d=zl(d)),this.eq(d))return 0;var p=this.isNegative(),y=d.isNegative();return p&&!y?-1:!p&&y?1:this.unsigned?d.high>>>0>this.high>>>0||d.high===this.high&&d.low>>>0>this.low>>>0?-1:1:this.sub(d).isNegative()?-1:1},zt.comp=zt.compare,zt.negate=function(){return!this.unsigned&&this.eq(ao)?ao:this.not().add(Qc)},zt.neg=zt.negate,zt.add=function(d){gs(d)||(d=zl(d));var p=this.high>>>16,y=this.high&65535,T=this.low>>>16,$=this.low&65535,q=d.high>>>16,ne=d.high&65535,me=d.low>>>16,Se=d.low&65535,ze=0,Ct=0,St=0,mt=0;return mt+=$+Se,St+=mt>>>16,mt&=65535,St+=T+me,Ct+=St>>>16,St&=65535,Ct+=y+ne,ze+=Ct>>>16,Ct&=65535,ze+=p+q,ze&=65535,Lr(St<<16|mt,ze<<16|Ct,this.unsigned)},zt.subtract=function(d){return gs(d)||(d=zl(d)),this.add(d.neg())},zt.sub=zt.subtract,zt.multiply=function(d){if(this.isZero())return this;if(gs(d)||(d=zl(d)),Mi){var p=Mi.mul(this.low,this.high,d.low,d.high);return Lr(p,Mi.get_high(),this.unsigned)}if(d.isZero())return this.unsigned?Wu:rl;if(this.eq(ao))return d.isOdd()?ao:rl;if(d.eq(ao))return this.isOdd()?ao:rl;if(this.isNegative())return d.isNegative()?this.neg().mul(d.neg()):this.neg().mul(d).neg();if(d.isNegative())return this.mul(d.neg()).neg();if(this.lt(V0)&&d.lt(V0))return nl(this.toNumber()*d.toNumber(),this.unsigned);var y=this.high>>>16,T=this.high&65535,$=this.low>>>16,q=this.low&65535,ne=d.high>>>16,me=d.high&65535,Se=d.low>>>16,ze=d.low&65535,Ct=0,St=0,mt=0,tn=0;return tn+=q*ze,mt+=tn>>>16,tn&=65535,mt+=$*ze,St+=mt>>>16,mt&=65535,mt+=q*Se,St+=mt>>>16,mt&=65535,St+=T*ze,Ct+=St>>>16,St&=65535,St+=$*Se,Ct+=St>>>16,St&=65535,St+=q*me,Ct+=St>>>16,St&=65535,Ct+=y*ze+T*Se+$*me+q*ne,Ct&=65535,Lr(mt<<16|tn,Ct<<16|St,this.unsigned)},zt.mul=zt.multiply,zt.divide=function(d){if(gs(d)||(d=zl(d)),d.isZero())throw Error("division by zero");if(Mi){if(!this.unsigned&&this.high===-2147483648&&d.low===-1&&d.high===-1)return this;var p=(this.unsigned?Mi.div_u:Mi.div_s)(this.low,this.high,d.low,d.high);return Lr(p,Mi.get_high(),this.unsigned)}if(this.isZero())return this.unsigned?Wu:rl;var y,T,$;if(this.unsigned){if(d.unsigned||(d=d.toUnsigned()),d.gt(this))return Wu;if(d.gt(this.shru(1)))return PS;$=Wu}else{if(this.eq(ao)){if(d.eq(Qc)||d.eq(hh))return ao;if(d.eq(ao))return Qc;var q=this.shr(1);return y=q.div(d).shl(1),y.eq(rl)?d.isNegative()?Qc:hh:(T=this.sub(d.mul(y)),$=y.add(T.div(d)),$)}else if(d.eq(ao))return this.unsigned?Wu:rl;if(this.isNegative())return d.isNegative()?this.neg().div(d.neg()):this.neg().div(d).neg();if(d.isNegative())return this.div(d.neg()).neg();$=rl}for(T=this;T.gte(d);){y=Math.max(1,Math.floor(T.toNumber()/d.toNumber()));for(var ne=Math.ceil(Math.log(y)/Math.LN2),me=ne<=48?1:fh(2,ne-48),Se=nl(y),ze=Se.mul(d);ze.isNegative()||ze.gt(T);)y-=me,Se=nl(y,this.unsigned),ze=Se.mul(d);Se.isZero()&&(Se=Qc),$=$.add(Se),T=T.sub(ze)}return $},zt.div=zt.divide,zt.modulo=function(d){if(gs(d)||(d=zl(d)),Mi){var p=(this.unsigned?Mi.rem_u:Mi.rem_s)(this.low,this.high,d.low,d.high);return Lr(p,Mi.get_high(),this.unsigned)}return this.sub(this.div(d).mul(d))},zt.mod=zt.modulo,zt.rem=zt.modulo,zt.not=function(){return Lr(~this.low,~this.high,this.unsigned)},zt.countLeadingZeros=function(){return this.high?Math.clz32(this.high):Math.clz32(this.low)+32},zt.clz=zt.countLeadingZeros,zt.countTrailingZeros=function(){return this.low?dh(this.low):dh(this.high)+32},zt.ctz=zt.countTrailingZeros,zt.and=function(d){return gs(d)||(d=zl(d)),Lr(this.low&d.low,this.high&d.high,this.unsigned)},zt.or=function(d){return gs(d)||(d=zl(d)),Lr(this.low|d.low,this.high|d.high,this.unsigned)},zt.xor=function(d){return gs(d)||(d=zl(d)),Lr(this.low^d.low,this.high^d.high,this.unsigned)},zt.shiftLeft=function(d){return gs(d)&&(d=d.toInt()),(d&=63)===0?this:d<32?Lr(this.low<>>32-d,this.unsigned):Lr(0,this.low<>>d|this.high<<32-d,this.high>>d,this.unsigned):Lr(this.high>>d-32,this.high>=0?0:-1,this.unsigned)},zt.shr=zt.shiftRight,zt.shiftRightUnsigned=function(d){return gs(d)&&(d=d.toInt()),(d&=63)===0?this:d<32?Lr(this.low>>>d|this.high<<32-d,this.high>>>d,this.unsigned):d===32?Lr(this.high,0,this.unsigned):Lr(this.high>>>d-32,0,this.unsigned)},zt.shru=zt.shiftRightUnsigned,zt.shr_u=zt.shiftRightUnsigned,zt.rotateLeft=function(d){var p;return gs(d)&&(d=d.toInt()),(d&=63)===0?this:d===32?Lr(this.high,this.low,this.unsigned):d<32?(p=32-d,Lr(this.low<>>p,this.high<>>p,this.unsigned)):(d-=32,p=32-d,Lr(this.high<>>p,this.low<>>p,this.unsigned))},zt.rotl=zt.rotateLeft,zt.rotateRight=function(d){var p;return gs(d)&&(d=d.toInt()),(d&=63)===0?this:d===32?Lr(this.high,this.low,this.unsigned):d<32?(p=32-d,Lr(this.high<>>d,this.low<>>d,this.unsigned)):(d-=32,p=32-d,Lr(this.low<>>d,this.high<>>d,this.unsigned))},zt.rotr=zt.rotateRight,zt.toSigned=function(){return this.unsigned?Lr(this.low,this.high,!1):this},zt.toUnsigned=function(){return this.unsigned?this:Lr(this.low,this.high,!0)},zt.toBytes=function(d){return d?this.toBytesLE():this.toBytesBE()},zt.toBytesLE=function(){var d=this.high,p=this.low;return[p&255,p>>>8&255,p>>>16&255,p>>>24,d&255,d>>>8&255,d>>>16&255,d>>>24]},zt.toBytesBE=function(){var d=this.high,p=this.low;return[d>>>24,d>>>16&255,d>>>8&255,d&255,p>>>24,p>>>16&255,p>>>8&255,p&255]},Zn.fromBytes=function(d,p,y){return y?Zn.fromBytesLE(d,p):Zn.fromBytesBE(d,p)},Zn.fromBytesLE=function(d,p){return new Zn(d[0]|d[1]<<8|d[2]<<16|d[3]<<24,d[4]|d[5]<<8|d[6]<<16|d[7]<<24,p)},Zn.fromBytesBE=function(d,p){return new Zn(d[4]<<24|d[5]<<16|d[6]<<8|d[7],d[0]<<24|d[1]<<16|d[2]<<8|d[3],p)};const nD=rt.makeMessageType("google.rpc.ErrorInfo",()=>[{no:1,name:"reason",kind:"scalar",T:9},{no:2,name:"domain",kind:"scalar",T:9},{no:3,name:"metadata",kind:"map",K:9,V:{kind:"scalar",T:9}}]);rt.makeMessageType("google.rpc.RetryInfo",()=>[{no:1,name:"retry_delay",kind:"message",T:Bu}]),rt.makeMessageType("google.rpc.DebugInfo",()=>[{no:1,name:"stack_entries",kind:"scalar",T:9,repeated:!0},{no:2,name:"detail",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.QuotaFailure",()=>[{no:1,name:"violations",kind:"message",T:db,repeated:!0}]);const db=rt.makeMessageType("google.rpc.QuotaFailure.Violation",()=>[{no:1,name:"subject",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"QuotaFailure_Violation"});rt.makeMessageType("google.rpc.PreconditionFailure",()=>[{no:1,name:"violations",kind:"message",T:fb,repeated:!0}]);const fb=rt.makeMessageType("google.rpc.PreconditionFailure.Violation",()=>[{no:1,name:"type",kind:"scalar",T:9},{no:2,name:"subject",kind:"scalar",T:9},{no:3,name:"description",kind:"scalar",T:9}],{localName:"PreconditionFailure_Violation"});rt.makeMessageType("google.rpc.BadRequest",()=>[{no:1,name:"field_violations",kind:"message",T:MS,repeated:!0}]);const MS=rt.makeMessageType("google.rpc.BadRequest.FieldViolation",()=>[{no:1,name:"field",kind:"scalar",T:9},{no:2,name:"description",kind:"scalar",T:9}],{localName:"BadRequest_FieldViolation"});rt.makeMessageType("google.rpc.RequestInfo",()=>[{no:1,name:"request_id",kind:"scalar",T:9},{no:2,name:"serving_data",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.ResourceInfo",()=>[{no:1,name:"resource_type",kind:"scalar",T:9},{no:2,name:"resource_name",kind:"scalar",T:9},{no:3,name:"owner",kind:"scalar",T:9},{no:4,name:"description",kind:"scalar",T:9}]),rt.makeMessageType("google.rpc.Help",()=>[{no:1,name:"links",kind:"message",T:rD,repeated:!0}]);const rD=rt.makeMessageType("google.rpc.Help.Link",()=>[{no:1,name:"description",kind:"scalar",T:9},{no:2,name:"url",kind:"scalar",T:9}],{localName:"Help_Link"});rt.makeMessageType("google.rpc.LocalizedMessage",()=>[{no:1,name:"locale",kind:"scalar",T:9},{no:2,name:"message",kind:"scalar",T:9}]);var xr=(O=>(O.Ok="ok",O.ErrClientNotActivated="ErrClientNotActivated",O.ErrClientNotFound="ErrClientNotFound",O.ErrUnimplemented="ErrUnimplemented",O.Unsupported="unsupported",O.ErrDocumentNotAttached="ErrDocumentNotAttached",O.ErrDocumentNotDetached="ErrDocumentNotDetached",O.ErrDocumentRemoved="ErrDocumentRemoved",O.ErrInvalidObjectKey="ErrInvalidObjectKey",O.ErrInvalidArgument="ErrInvalidArgument",O))(xr||{});class jr extends Error{constructor(d,p){super(p),s(this,"name","YorkieError"),s(this,"stack"),this.code=d,this.message=p,this.toString=()=>`${this.name}: [code=${this.code}]: ${this.message}`}}function jl(O){if(O instanceof Map){const d=Array.from(O);return new Map(JSON.parse(JSON.stringify(d)))}return JSON.parse(JSON.stringify(O))}const ha=O=>O?Object.entries(O).length===0:!0,na=O=>{const d={};for(const[p,y]of Object.entries(O))d[p]=JSON.stringify(y);return d},Pp=O=>{const d={};for(const[p,y]of Object.entries(O))d[p]=JSON.parse(y);return d};var jd=(O=>(O.Put="put",O.Clear="clear",O))(jd||{});class hb{constructor(d,p){s(this,"context"),s(this,"presence"),this.context=d,this.presence=p}set(d,p){for(const y of Object.keys(d))this.presence[y]=d[y];this.context.setPresenceChange({type:"put",presence:jl(this.presence)}),this.context.setReversePresence(d,p)}get(d){return this.presence[d]}clear(){this.presence={},this.context.setPresenceChange({type:"clear"})}}const pb="000000000000000000000000",LS="FFFFFFFFFFFFFFFFFFFFFFFF";class Ta{constructor(d,p,y){s(this,"lamport"),s(this,"delimiter"),s(this,"actorID"),this.lamport=d,this.delimiter=p,this.actorID=y}static of(d,p,y){return new Ta(d,p,y)}static fromStruct(d){return Ta.of(Zn.fromString(d.lamport,!0),d.delimiter,d.actorID)}toIDString(){return`${this.lamport.toString()}:${this.actorID}:${this.delimiter}`}toStruct(){return{lamport:this.getLamportAsString(),delimiter:this.getDelimiter(),actorID:this.getActorID()}}toTestString(){return`${this.lamport.toString()}:${this.actorID.slice(-2)}:${this.delimiter}`}setActor(d){return new Ta(this.lamport,this.delimiter,d)}getLamportAsString(){return this.lamport.toString()}getLamport(){return this.lamport}getDelimiter(){return this.delimiter}getActorID(){return this.actorID}after(d){return this.compare(d)>0}equals(d){return this.compare(d)===0}compare(d){if(this.lamport.greaterThan(d.lamport))return 1;if(d.lamport.greaterThan(this.lamport))return-1;const p=this.actorID.localeCompare(d.actorID);return p!==0?p:this.delimiter>d.delimiter?1:d.delimiter>this.delimiter?-1:0}}const Q0=0,Mp=4294967295,q0=Zn.MAX_VALUE,Ns=new Ta(Zn.fromNumber(0),Q0,pb);new Ta(Zn.fromNumber(1),Q0+1,pb);const Hd=new Ta(q0,Mp,LS);var ra=(O=>(O[O.Trivial=0]="Trivial",O[O.Debug=1]="Debug",O[O.Info=2]="Info",O[O.Warn=3]="Warn",O[O.Error=4]="Error",O[O.Fatal=5]="Fatal",O))(ra||{});let ph=2;function $S(O){ph=O}const Lt={trivial:(...O)=>{ph>0||typeof console<"u"&&console.log("YORKIE T:",...O)},debug:(...O)=>{ph>1||typeof console<"u"&&console.log("YORKIE D:",...O)},info:(...O)=>{ph>2||typeof console<"u"&&console.log("YORKIE I:",...O)},warn:(...O)=>{ph>3||typeof console<"u"&&(typeof console.warn<"u"?console.warn("YORKIE W:",...O):console.log("YORKIE W:",...O))},error:(...O)=>{ph>4||typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE E:",...O):console.log("YORKIE E:",...O))},fatal:(O,...d)=>{throw typeof console<"u"&&(typeof console.error<"u"?console.error("YORKIE F:",...d):console.log("YORKIE F:",...d)),new Error(`YORKIE F: ${O}`)},isEnabled:O=>ph<=O};function Qu(O){return O.replace(/["'\\\n\r\f\b\t\u2028\u2029]/g,function(d){switch(d){case'"':case"\\":return"\\"+d;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 d}})}class G0{constructor(d){s(this,"createdAt"),s(this,"movedAt"),s(this,"removedAt"),this.createdAt=d}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(d){return!this.movedAt||d&&d.after(this.movedAt)?(this.movedAt=d,!0):!1}setRemovedAt(d){this.removedAt=d}remove(d){return d&&d.after(this.getPositionedAt())&&(!this.removedAt||d.after(this.removedAt))?(this.removedAt=d,!0):!1}isRemoved(){return!!this.removedAt}}class Hl extends G0{constructor(d){super(d)}}class mh{constructor(d,p){s(this,"strKey"),s(this,"value"),this.strKey=d,this.value=p}static of(d,p){return new mh(d,p)}isRemoved(){return this.value.isRemoved()}getStrKey(){return this.strKey}getValue(){return this.value}remove(d){return this.value.remove(d)}}class Lp{constructor(){s(this,"nodeMapByKey"),s(this,"nodeMapByCreatedAt"),this.nodeMapByKey=new Map,this.nodeMapByCreatedAt=new Map}static create(){return new Lp}set(d,p,y){let T;const $=this.nodeMapByKey.get(d);$!=null&&!$.isRemoved()&&$.remove(y)&&(T=$.getValue());const q=mh.of(d,p);return this.nodeMapByCreatedAt.set(p.getCreatedAt().toIDString(),q),($==null||y.after($.getValue().getPositionedAt()))&&(this.nodeMapByKey.set(d,q),p.setMovedAt(y)),T}delete(d,p){this.nodeMapByCreatedAt.has(d.toIDString())||Lt.fatal(`fail to find ${d.toIDString()}`);const y=this.nodeMapByCreatedAt.get(d.toIDString());return y.remove(p),y.getValue()}subPathOf(d){const p=this.nodeMapByCreatedAt.get(d.toIDString());if(p)return p.getStrKey()}purge(d){const p=this.nodeMapByCreatedAt.get(d.getCreatedAt().toIDString());if(!p){Lt.fatal(`fail to find ${d.getCreatedAt().toIDString()}`);return}const y=this.nodeMapByKey.get(p.getStrKey());p===y&&this.nodeMapByKey.delete(y.getStrKey()),this.nodeMapByCreatedAt.delete(p.getValue().getCreatedAt().toIDString())}deleteByKey(d,p){const y=this.nodeMapByKey.get(d);if(y!=null&&y.remove(p))return y.getValue()}has(d){const p=this.nodeMapByKey.get(d);return p==null?!1:!p.isRemoved()}getByID(d){return this.nodeMapByCreatedAt.get(d.toIDString())}get(d){const p=this.nodeMapByKey.get(d);if(!(!p||p.isRemoved()))return p}*[Symbol.iterator](){for(const[,d]of this.nodeMapByKey)yield d}}class se extends Hl{constructor(d,p){super(d),s(this,"memberNodes"),this.memberNodes=p}static create(d,p){if(!p)return new se(d,Lp.create());const y=Lp.create();for(const[T,$]of Object.entries(p))y.set(T,$.deepcopy(),$.getCreatedAt());return new se(d,y)}subPathOf(d){return this.memberNodes.subPathOf(d)}purge(d){this.memberNodes.purge(d)}set(d,p,y){return this.memberNodes.set(d,p,y)}delete(d,p){return this.memberNodes.delete(d,p)}deleteByKey(d,p){return this.memberNodes.deleteByKey(d,p)}get(d){const p=this.memberNodes.get(d);return p==null?void 0:p.getValue()}getByID(d){const p=this.memberNodes.getByID(d);return p==null?void 0:p.getValue()}has(d){return this.memberNodes.has(d)}toJSON(){const d=[];for(const[p,y]of this)d.push(`"${Qu(p)}":${y.toJSON()}`);return`{${d.join(",")}}`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const d={};for(const[p,y]of this){const{createdAt:T,value:$,type:q}=y.toJSForTest();d[p]={key:p,createdAt:T,value:$,type:q}}return{createdAt:this.getCreatedAt().toTestString(),value:d,type:"YORKIE_OBJECT"}}getKeys(){const d=Array();for(const[p]of this)d.push(p);return d}toSortedJSON(){var d;const p=Array();for(const[T]of this)p.push(T);const y=[];for(const T of p.sort()){const $=(d=this.memberNodes.get(T))==null?void 0:d.getValue();y.push(`"${Qu(T)}":${$.toSortedJSON()}`)}return`{${y.join(",")}}`}getRHT(){return this.memberNodes}deepcopy(){const d=se.create(this.getCreatedAt());for(const p of this.memberNodes)d.memberNodes.set(p.getStrKey(),p.getValue().deepcopy(),this.getPositionedAt());return d.remove(this.getRemovedAt()),d}getDescendants(d){for(const p of this.memberNodes){const y=p.getValue();if(d(y,this))return;y instanceof Hl&&y.getDescendants(d)}}*[Symbol.iterator](){const d=new Set;for(const p of this.memberNodes)d.has(p.getStrKey())||(d.add(p.getStrKey()),p.isRemoved()||(yield[p.getStrKey(),p.getValue()]))}}var $r=(O=>(O.Local="local",O.Remote="remote",O.UndoRedo="undoredo",O))($r||{});class so{constructor(d,p){s(this,"parentCreatedAt"),s(this,"executedAt"),this.parentCreatedAt=d,this.executedAt=p}getParentCreatedAt(){return this.parentCreatedAt}getExecutedAt(){if(!this.executedAt)throw new Error("executedAt has not been set yet");return this.executedAt}setActor(d){this.executedAt&&(this.executedAt=this.executedAt.setActor(d))}setExecutedAt(d){this.executedAt=d}}class Ro{constructor(d){s(this,"value"),s(this,"left"),s(this,"right"),s(this,"parent"),s(this,"weight"),this.value=d,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(d){this.left=d}setRight(d){this.right=d}setParent(d){this.parent=d}unlink(){this.parent=void 0,this.right=void 0,this.left=void 0}hasLinks(){return this.hasParent()||this.hasLeft()||this.hasRight()}increaseWeight(d){this.weight+=d}initWeight(){this.weight=this.getLength()}}class cr{constructor(d){s(this,"root"),this.root=d}get length(){return this.root?this.root.getWeight():0}find(d){if(!this.root||d<0)return[void 0,0];let p=this.root;for(;;)if(p.hasLeft()&&d<=p.getLeftWeight())p=p.getLeft();else if(p.hasRight()&&p.getLeftWeight()+p.getLength()p.getLength()&&Lt.fatal(`out of index range: pos: ${d} > node.length: ${p.getLength()}`),[p,d]}indexOf(d){if(!d||d!==this.root&&!d.hasLinks())return-1;let p=0,y=d,T;for(;y;)(!T||T===y.getRight())&&(p+=y.getLength()+(y.hasLeft()?y.getLeftWeight():0)),T=y,y=y.getParent();return p-d.getLength()}getRoot(){return this.root}insert(d){return this.insertAfter(this.root,d)}insertAfter(d,p){return d?(this.splayNode(d),this.root=p,p.setRight(d.getRight()),d.hasRight()&&d.getRight().setParent(p),p.setLeft(d),d.setParent(p),d.setRight(),this.updateWeight(d),this.updateWeight(p),p):(this.root=p,p)}updateWeight(d){d.initWeight(),d.hasLeft()&&d.increaseWeight(d.getLeftWeight()),d.hasRight()&&d.increaseWeight(d.getRightWeight())}updateTreeWeight(d){for(;d;)this.updateWeight(d),d=d.getParent()}splayNode(d){if(d)for(;;)if(this.isLeftChild(d.getParent())&&this.isRightChild(d))this.rotateLeft(d),this.rotateRight(d);else if(this.isRightChild(d.getParent())&&this.isLeftChild(d))this.rotateRight(d),this.rotateLeft(d);else if(this.isLeftChild(d.getParent())&&this.isLeftChild(d))this.rotateRight(d.getParent()),this.rotateRight(d);else if(this.isRightChild(d.getParent())&&this.isRightChild(d))this.rotateLeft(d.getParent()),this.rotateLeft(d);else{this.isLeftChild(d)?this.rotateRight(d):this.isRightChild(d)&&this.rotateLeft(d),this.updateWeight(d);return}}delete(d){this.splayNode(d);const p=new cr(d.getLeft());p.root&&p.root.setParent();const y=new cr(d.getRight());if(y.root&&y.root.setParent(),p.root){const T=p.getRightmost();p.splayNode(T),p.root.setRight(y.root),y.root&&y.root.setParent(p.root),this.root=p.root}else this.root=y.root;d.unlink(),this.root&&this.updateWeight(this.root)}deleteRange(d,p){if(!p){this.splayNode(d),this.cutOffRight(d);return}this.splayNode(d),this.splayNode(p),p.getLeft()!=d&&this.rotateRight(d),this.cutOffRight(d)}cutOffRight(d){const p=[];this.traversePostorder(d.getRight(),p);for(const y of p)y.initWeight();this.updateTreeWeight(d)}toTestString(){const d=[];return this.traverseInorder(this.root,d),d.map(p=>`[${p.getWeight()},${p.getLength()}]${p.getValue()||""}`).join("")}checkWeight(){const d=[];this.traverseInorder(this.root,d);for(const p of d)if(p.getWeight()!=p.getLength()+p.getLeftWeight()+p.getRightWeight())return!1;return!0}getRightmost(){let d=this.root;for(;d.hasRight();)d=d.getRight();return d}traverseInorder(d,p){d&&(this.traverseInorder(d.getLeft(),p),p.push(d),this.traverseInorder(d.getRight(),p))}traversePostorder(d,p){d&&(this.traversePostorder(d.getLeft(),p),this.traversePostorder(d.getRight(),p),p.push(d))}rotateLeft(d){const p=d.getParent();p.hasParent()?p===p.getParent().getLeft()?p.getParent().setLeft(d):p.getParent().setRight(d):this.root=d,d.setParent(p.getParent()),p.setRight(d.getLeft()),p.hasRight()&&p.getRight().setParent(p),d.setLeft(p),d.getLeft().setParent(d),this.updateWeight(p),this.updateWeight(d)}rotateRight(d){const p=d.getParent();p.hasParent()?p===p.getParent().getLeft()?p.getParent().setLeft(d):p.getParent().setRight(d):this.root=d,d.setParent(p.getParent()),p.setLeft(d.getRight()),p.hasLeft()&&p.getLeft().setParent(p),d.setRight(p),d.getRight().setParent(d),this.updateWeight(p),this.updateWeight(d)}isLeftChild(d){return d&&d.hasParent()?d.getParent().getLeft()===d:!1}isRightChild(d){return d&&d.hasParent()?d.getParent().getRight()===d:!1}}var ka=(O=>(O[O.Null=0]="Null",O[O.Boolean=1]="Boolean",O[O.Integer=2]="Integer",O[O.Long=3]="Long",O[O.Double=4]="Double",O[O.String=5]="String",O[O.Bytes=6]="Bytes",O[O.Date=7]="Date",O))(ka||{});class Ti extends G0{constructor(d,p){super(p),s(this,"valueType"),s(this,"value"),this.valueType=Ti.getPrimitiveType(d),this.value=d===void 0?null:d}static of(d,p){return new Ti(d,p)}static valueFromBytes(d,p){switch(d){case 0:return null;case 1:return!!p[0];case 2:return p[0]|p[1]<<8|p[2]<<16|p[3]<<24;case 4:{const y=new DataView(p.buffer);return p.forEach(function(T,$){y.setUint8($,T)}),y.getFloat64(0,!0)}case 5:return new TextDecoder("utf-8").decode(p);case 3:return Zn.fromBytesLE(Array.from(p));case 6:return p;case 7:return new Date(Zn.fromBytesLE(Array.from(p),!0).toNumber());default:throw new jr(xr.ErrUnimplemented,`unimplemented type: ${d}`)}}toJSON(){return this.valueType===5?`"${Qu(this.value)}"`:`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_PRIMITIVE"}}deepcopy(){const d=Ti.of(this.value,this.getCreatedAt());return d.setMovedAt(this.getMovedAt()),d.setRemovedAt(this.getRemovedAt()),d}getType(){return this.valueType}static getPrimitiveType(d){switch(typeof d){case"undefined":return 0;case"boolean":return 1;case"number":return this.isInteger(d)?2:4;case"string":return 5;case"object":if(d===null)return 0;if(d instanceof Zn)return 3;if(d instanceof Uint8Array)return 6;if(d instanceof Date)return 7}}static isSupport(d){return Ti.getPrimitiveType(d)!==void 0}static isInteger(d){return d%1===0}isNumericType(){const d=this.valueType;return d===2||d===3||d===4}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:return new Uint8Array;case 1:return this.value?new Uint8Array([1]):new Uint8Array([0]);case 2:{const d=this.value;return new Uint8Array([d&255,d>>8&255,d>>16&255,d>>24&255])}case 4:{const d=this.value,p=new Uint8Array(8);return new DataView(p.buffer).setFloat64(0,d,!0),p}case 5:return new TextEncoder().encode(this.value);case 3:{const p=this.value.toBytesLE();return Uint8Array.from(p)}case 6:return this.value;case 7:{const d=this.value,p=Zn.fromNumber(d.getTime(),!0).toBytesLE();return Uint8Array.from(p)}default:throw new jr(xr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}}class mb extends Ro{constructor(d){super(d),s(this,"prev"),s(this,"next"),this.value=d}static createAfter(d,p){const y=new mb(p),T=d.next;return d.next=y,y.prev=d,y.next=T,T&&(T.prev=y),y}remove(d){return this.value.remove(d)}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 Vl{constructor(){s(this,"dummyHead"),s(this,"last"),s(this,"nodeMapByIndex"),s(this,"nodeMapByCreatedAt");const d=Ti.of(0,Ns);d.setRemovedAt(Ns),this.dummyHead=new mb(d),this.last=this.dummyHead,this.nodeMapByIndex=new cr,this.nodeMapByCreatedAt=new Map,this.nodeMapByIndex.insert(this.dummyHead),this.nodeMapByCreatedAt.set(this.dummyHead.getCreatedAt().toIDString(),this.dummyHead)}static create(){return new Vl}get length(){return this.nodeMapByIndex.length}findNextBeforeExecutedAt(d,p){let y=this.nodeMapByCreatedAt.get(d.toIDString());for(y||Lt.fatal(`cant find the given node: ${d.toIDString()}`);y.getNext()&&y.getNext().getPositionedAt().after(p);)y=y.getNext();return y}release(d){this.last===d&&(this.last=d.getPrev()),d.release(),this.nodeMapByIndex.delete(d),this.nodeMapByCreatedAt.delete(d.getValue().getCreatedAt().toIDString())}insertAfter(d,p,y=p.getCreatedAt()){const T=this.findNextBeforeExecutedAt(d,y),$=mb.createAfter(T,p);T===this.last&&(this.last=$),this.nodeMapByIndex.insertAfter(T,$),this.nodeMapByCreatedAt.set($.getCreatedAt().toIDString(),$)}moveAfter(d,p,y){const T=this.nodeMapByCreatedAt.get(d.toIDString());T||Lt.fatal(`cant find the given node: ${d.toIDString()}`);const $=this.nodeMapByCreatedAt.get(p.toIDString());$||Lt.fatal(`cant find the given node: ${p.toIDString()}`),T!==$&&(!$.getValue().getMovedAt()||y.after($.getValue().getMovedAt()))&&(this.release($),this.insertAfter(T.getCreatedAt(),$.getValue(),y),$.getValue().setMovedAt(y))}insert(d){this.insertAfter(this.last.getCreatedAt(),d)}getByID(d){return this.nodeMapByCreatedAt.get(d.toIDString())}subPathOf(d){const p=this.nodeMapByCreatedAt.get(d.toIDString());if(p)return String(this.nodeMapByIndex.indexOf(p))}purge(d){const p=this.nodeMapByCreatedAt.get(d.getCreatedAt().toIDString());p||Lt.fatal(`fail to find the given createdAt: ${d.getCreatedAt().toIDString()}`),this.release(p)}getByIndex(d){if(d>=this.length)return;const[p,y]=this.nodeMapByIndex.find(d);let T=p;if(d===0&&p===this.dummyHead||y>0)do T&&(T=T.getNext());while(T&&T.isRemoved());return T}getPrevCreatedAt(d){let p=this.nodeMapByCreatedAt.get(d.toIDString());do p=p.getPrev();while(this.dummyHead!==p&&p.isRemoved());return p.getValue().getCreatedAt()}delete(d,p){const y=this.nodeMapByCreatedAt.get(d.toIDString()),T=y.isRemoved();return y.remove(p)&&!T&&this.nodeMapByIndex.splayNode(y),y.getValue()}deleteByIndex(d,p){const y=this.getByIndex(d);if(y)return y.remove(p)&&this.nodeMapByIndex.splayNode(y),y.getValue()}getHead(){return this.dummyHead.getValue()}getLast(){return this.last.getValue()}getLastCreatedAt(){return this.last.getCreatedAt()}toTestString(){const d=[];for(const p of this){const y=`${p.getCreatedAt().toIDString()}:${p.getValue().toJSON()}`;p.isRemoved()?d.push(`{${y}}`):d.push(`[${y}]`)}return d.join("")}*[Symbol.iterator](){let d=this.dummyHead.getNext();for(;d;)yield d,d=d.getNext()}}class Io extends Hl{constructor(d,p){super(d),s(this,"elements"),this.elements=p}static create(d,p){if(!p)return new Io(d,Vl.create());const y=Vl.create();for(const T of p)y.insertAfter(y.getLastCreatedAt(),T.deepcopy());return new Io(d,y)}subPathOf(d){return this.elements.subPathOf(d)}purge(d){this.elements.purge(d)}insertAfter(d,p){this.elements.insertAfter(d,p)}moveAfter(d,p,y){this.elements.moveAfter(d,p,y)}get(d){const p=this.elements.getByIndex(d);return p==null?void 0:p.getValue()}getByID(d){const p=this.elements.getByID(d);return p==null?void 0:p.getValue()}getHead(){return this.elements.getHead()}getLast(){return this.elements.getLast()}getPrevCreatedAt(d){return this.elements.getPrevCreatedAt(d)}delete(d,p){return this.elements.delete(d,p)}deleteByIndex(d,p){return this.elements.deleteByIndex(d,p)}getLastCreatedAt(){return this.elements.getLastCreatedAt()}get length(){return this.elements.length}*[Symbol.iterator](){for(const d of this.elements)d.isRemoved()||(yield d.getValue())}toTestString(){return this.elements.toTestString()}getDescendants(d){for(const p of this.elements){const y=p.getValue();if(d(y,this))return;y instanceof Hl&&y.getDescendants(d)}}toJSON(){const d=[];for(const p of this)d.push(p.toJSON());return`[${d.join(",")}]`}toJS(){return JSON.parse(this.toJSON())}toJSForTest(){const d={};for(let p=0;p({...St,value:St.value?{attributes:Pp(St.value.getAttributes()),content:St.value.getContent()}:{attributes:void 0,content:""},type:"content"}));return[me,Ct,Se,[ne,ne]]}setStyle(d,p,y,T){const[,$]=this.rgaTreeSplit.findNodeWithSplit(d[1],y),[,q]=this.rgaTreeSplit.findNodeWithSplit(d[0],y),ne=[],me=this.rgaTreeSplit.findBetween(q,$),Se=new Map,ze=[];for(const St of me){const mt=St.getCreatedAt().getActorID(),tn=T!=null&&T.size?T.has(mt)?T.get(mt):Ns:Hd;if(St.canStyle(y,tn)){const Bn=Se.get(mt),kn=St.getCreatedAt();(!Bn||kn.after(Bn))&&Se.set(mt,kn),ze.push(St)}}const Ct=[];for(const St of ze){if(St.isRemoved())continue;const[mt,tn]=this.rgaTreeSplit.findIndexesFromRange(St.createPosRange());ne.push({type:"style",actor:y.getActorID(),from:mt,to:tn,value:{attributes:Pp(p)}});for(const[Bn,kn]of Object.entries(p)){const[pr]=St.getValue().setAttr(Bn,kn,y);pr!==void 0&&Ct.push({parent:St.getValue(),child:pr})}}return[Se,Ct,ne]}indexRangeToPosRange(d,p){const y=this.rgaTreeSplit.indexToPos(d);return d===p?[y,y]:[y,this.rgaTreeSplit.indexToPos(p)]}get length(){return this.rgaTreeSplit.length}getTreeByIndex(){return this.rgaTreeSplit.getTreeByIndex()}getTreeByID(){return this.rgaTreeSplit.getTreeByID()}toJSON(){const d=[];for(const p of this.rgaTreeSplit)p.isRemoved()||d.push(p.getValue().toJSON());return`[${d.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 d=[];for(const p of this.rgaTreeSplit)if(!p.isRemoved()){const y=p.getValue();d.push({attributes:Pp(y.getAttributes()),content:y.getContent()})}return d}getRGATreeSplit(){return this.rgaTreeSplit}toTestString(){return this.rgaTreeSplit.toTestString()}deepcopy(){const d=new il(this.rgaTreeSplit.deepcopy(),this.getCreatedAt());return d.remove(this.getRemovedAt()),d}findIndexesFromRange(d){return this.rgaTreeSplit.findIndexesFromRange(d)}getGCPairs(){const d=[];for(const p of this.rgaTreeSplit){p.getRemovedAt()&&d.push({parent:this.rgaTreeSplit,child:p});for(const y of p.getValue().getGCPairs())d.push(y)}return d}}class X0 extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"content"),s(this,"attributes"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.content=$,this.attributes=q}static create(d,p,y,T,$,q,ne){return new X0(d,p,y,T,$,q,ne)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof il||Lt.fatal("fail to execute, only Text can execute edit");const y=p,[,T,$]=y.edit([this.fromPos,this.toPos],this.content,this.getExecutedAt(),Object.fromEntries(this.attributes),this.maxCreatedAtMapByActor);for(const q of $)d.registerGCPair(q);return{opInfos:T.map(({from:q,to:ne,value:me})=>({type:"edit",from:q,to:ne,value:me,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.content;return`${d}.EDIT(${p},${y},${T})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContent(){return this.content}getAttributes(){return this.attributes||new Map}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class K0 extends so{constructor(d,p,y,T,$,q){super(d,q),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=$}static create(d,p,y,T,$,q){return new K0(d,p,y,T,$,q)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof il||Lt.fatal("fail to execute, only Text can execute edit");const y=p,[,T,$]=y.setStyle([this.fromPos,this.toPos],this.attributes?Object.fromEntries(this.attributes):{},this.getExecutedAt(),this.maxCreatedAtMapByActor);for(const q of T)d.registerGCPair(q);return{opInfos:$.map(({from:q,to:ne,value:me})=>({type:"style",from:q,to:ne,value:me,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=this.fromPos.toTestString(),y=this.toPos.toTestString(),T=this.attributes;return`${d}.STYL(${p},${y},${JSON.stringify(T)})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}const Gc=2,iD="root",Yc="text";function J0(O,d){let p=0;const y=O.children;for(let T=0;T0)throw new Error(`Text node cannot have children: ${this.type}`)}updateAncestorsSize(){let d=this.parent;const p=this.isRemoved?-1:1;for(;d&&(d.size+=this.paddedSize*p,!d.isRemoved);)d=d.parent}updateDescendantsSize(){let d=0;for(const p of this._children){const y=p.updateDescendantsSize();p.isRemoved||(d+=y)}return this.size+=d,this.paddedSize}get isText(){return this.type===Yc}get paddedSize(){return this.size+(this.isText?0:Gc)}isAncestorOf(d){return sD(this,d)}get nextSibling(){const d=this.parent.findOffset(this),p=this.parent.children[d+1];if(p)return p}get prevSibling(){const d=this.parent.findOffset(this),p=this.parent.children[d-1];if(p)return p}splitText(d,p){if(d===0||d===this.size)return;const y=this.value.slice(0,d),T=this.value.slice(d);if(!T.length)return;this.value=y;const $=this.cloneText(d+p);return $.value=T,this.parent.insertAfterInternal($,this),$}get children(){return this._children.filter(d=>!d.isRemoved)}get allChildren(){return[...this._children]}hasTextChild(){return this.children.length>0&&this.children.every(d=>d.isText)}append(...d){if(this.isText)throw new Error("Text node cannot have children");this._children.push(...d);for(const p of d)p.parent=this,p.updateAncestorsSize()}prepend(...d){if(this.isText)throw new Error("Text node cannot have children");this._children.unshift(...d);for(const p of d)p.parent=this}insertBefore(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y),d.updateAncestorsSize()}insertAfter(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y+1),d.updateAncestorsSize()}insertAt(d,p){if(this.isText)throw new Error("Text node cannot have children");this.insertAtInternal(d,p),d.updateAncestorsSize()}removeChild(d){if(this.isText)throw new Error("Text node cannot have children");const p=this._children.indexOf(d);if(p===-1)throw new Error("child not found");this._children.splice(p,1),d.parent=void 0}splitElement(d,p){const y=this.cloneElement(p);this.parent.insertAfterInternal(y,this),y.updateAncestorsSize();const T=this.children.slice(0,d),$=this.children.slice(d);this._children=T,y._children=$,this.size=this._children.reduce((q,ne)=>q+ne.paddedSize,0),y.size=y._children.reduce((q,ne)=>q+ne.paddedSize,0);for(const q of y._children)q.parent=y;return y}insertAfterInternal(d,p){if(this.isText)throw new Error("Text node cannot have children");const y=this._children.indexOf(p);if(y===-1)throw new Error("child not found");this.insertAtInternal(d,y+1)}insertAtInternal(d,p){if(this.isText)throw new Error("Text node cannot have children");this._children.splice(p,0,d),d.parent=this}findOffset(d){if(this.isText)throw new Error("Text node cannot have children");if(d.isRemoved){const p=this._children.indexOf(d);return this.allChildren.splice(0,p).filter(T=>!T.isRemoved).length}return this.children.indexOf(d)}findBranchOffset(d){if(this.isText)throw new Error("Text node cannot have children");let p=d;for(;p;){const y=this._children.indexOf(p);if(y!==-1)return y;p=p.parent}return-1}}function sD(O,d){if(O===d)return!1;for(;d.parent;){if(d.parent===O)return!0;d=d.parent}return!1}var bi=(O=>(O.Start="Start",O.End="End",O.Text="Text",O))(bi||{});function Lk(O,d,p,y){if(d>p)throw new Error(`from is greater than to: ${d} > ${p}`);if(d>O.size)throw new Error(`from is out of range: ${d} > ${O.size}`);if(p>O.size)throw new Error(`to is out of range: ${p} > ${O.size}`);if(d===p)return;let T=0;for(const $ of O.children){if(d-$.paddedSize$.size;($.isText||me)&&y([$,$.isText?"Text":"Start"],Se),Lk($,Math.max(0,q),Math.min(ne,$.size),y),Se&&y([$,"End"],Se)}T+=$.paddedSize}}function $k(O,d,p=0){for(const y of O.children)$k(y,d,p+1);d(O,p)}function oo(O,d,p=0){for(const y of O._children)oo(y,d,p+1);d(O,p)}function FS(O,d,p=!0){if(d>O.size)throw new Error(`index is out of range: ${d} > ${O.size}`);if(O.isText)return{node:O,offset:d};let y=0,T=0;for(const $ of O.children){if(p&&$.isText&&$.size>=d-T)return FS($,d-T,p);if(d===T)return{node:O,offset:y};if(!p&&$.paddedSize===d-T)return{node:O,offset:y+1};if($.paddedSize>d-T)return FS($,d-T-1,p);T+=$.paddedSize,y+=1}return{node:O,offset:y}}function Fk(O){return O.isText||O.children.length===0?O:Fk(O.children[0])}function oD(O,d){if(O.sizeO===d?0:O0)if(p.right)p.right.parent=p,p=p.right;else return p;else if(y<0)if(p.left)p.left.parent=p,p=p.left;else{let T=p.parent,$=p;for(;T&&$===T.left;)$=T,T=T.parent;return T}else return p}}lastEntry(){if(!this.root)return this.root;let d=this.root;for(;d.right;)d=d.right;return d}size(){return this.counter}isEmpty(){return this.counter===0}getInternal(d,p){for(;p;){const y=this.comparator(d,p.key);if(y===0)return p;y<0?p=p.left:y>0&&(p=p.right)}}putInternal(d,p,y){if(!y)return this.counter+=1,new Bk(d,p,!0);const T=this.comparator(d,y.key);return T<0?y.left=this.putInternal(d,p,y.left):T>0?y.right=this.putInternal(d,p,y.right):y.value=p,this.isRed(y.right)&&!this.isRed(y.left)&&(y=this.rotateLeft(y)),this.isRed(y.left)&&this.isRed(y.left.left)&&(y=this.rotateRight(y)),this.isRed(y.left)&&this.isRed(y.right)&&this.flipColors(y),y}removeInternal(d,p){if(this.comparator(p,d.key)<0)!this.isRed(d.left)&&!this.isRed(d.left.left)&&(d=this.moveRedLeft(d)),d.left=this.removeInternal(d.left,p);else{if(this.isRed(d.left)&&(d=this.rotateRight(d)),this.comparator(p,d.key)===0&&!d.right){this.counter-=1;return}if(!this.isRed(d.right)&&!this.isRed(d.right.left)&&(d=this.moveRedRight(d)),this.comparator(p,d.key)===0){this.counter-=1;const y=this.min(d.right);d.value=y.value,d.key=y.key,d.right=this.removeMin(d.right)}else d.right=this.removeInternal(d.right,p)}return this.fixUp(d)}min(d){return d.left?this.min(d.left):d}removeMin(d){if(d.left)return!this.isRed(d.left)&&!this.isRed(d.left.left)&&(d=this.moveRedLeft(d)),d.left=this.removeMin(d.left),this.fixUp(d)}fixUp(d){return this.isRed(d.right)&&(d=this.rotateLeft(d)),this.isRed(d.left)&&this.isRed(d.left.left)&&(d=this.rotateRight(d)),this.isRed(d.left)&&this.isRed(d.right)&&this.flipColors(d),d}moveRedLeft(d){return this.flipColors(d),this.isRed(d.right.left)&&(d.right=this.rotateRight(d.right),d=this.rotateLeft(d),this.flipColors(d)),d}moveRedRight(d){return this.flipColors(d),this.isRed(d.left.left)&&(d=this.rotateRight(d),this.flipColors(d)),d}isRed(d){return d&&d.isRed}rotateLeft(d){const p=d.right;return d.right=p.left,p.left=d,p.isRed=p.left.isRed,p.left.isRed=!0,p}rotateRight(d){const p=d.left;return d.left=p.right,p.right=d,p.isRed=p.right.isRed,p.right.isRed=!0,p}flipColors(d){d.isRed=!d.isRed,d.left.isRed=!d.left.isRed,d.right.isRed=!d.right.isRed}}class Wl{constructor(d,p){s(this,"parentID"),s(this,"leftSiblingID"),this.parentID=d,this.leftSiblingID=p}static of(d,p){return new Wl(d,p)}static fromTreePos(d){const{offset:p}=d;let{node:y}=d,T;return y.isText?(y.parent.children[0]===y&&p===0?T=y.parent:T=y,y=y.parent):p===0?T=y:T=y.children[p-1],Wl.of(y.id,Ca.of(T.getCreatedAt(),T.getOffset()+p))}getParentID(){return this.parentID}static fromStruct(d){return Wl.of(Ca.of(Ta.fromStruct(d.parentID.createdAt),d.parentID.offset),Ca.of(Ta.fromStruct(d.leftSiblingID.createdAt),d.leftSiblingID.offset))}toStruct(){return{parentID:{createdAt:this.getParentID().getCreatedAt().toStruct(),offset:this.getParentID().getOffset()},leftSiblingID:{createdAt:this.getLeftSiblingID().getCreatedAt().toStruct(),offset:this.getLeftSiblingID().getOffset()}}}toTreeNodePair(d){const p=this.getParentID(),y=this.getLeftSiblingID(),T=d.findFloorNode(p);let $=d.findFloorNode(y);if(!T||!$)throw new Error(`cannot find node of CRDTTreePos(${p.toTestString()}, ${y.toTestString()})`);return!y.equals(p)&&y.getOffset()>0&&y.getOffset()===$.id.getOffset()&&$.insPrevID&&($=d.findFloorNode($.insPrevID)),[T,$]}getLeftSiblingID(){return this.leftSiblingID}equals(d){return this.getParentID().getCreatedAt().equals(d.getParentID().getCreatedAt())&&this.getParentID().getOffset()===d.getParentID().getOffset()&&this.getLeftSiblingID().getCreatedAt().equals(d.getLeftSiblingID().getCreatedAt())&&this.getLeftSiblingID().getOffset()===d.getLeftSiblingID().getOffset()}}class Ca{constructor(d,p){s(this,"createdAt"),s(this,"offset"),this.createdAt=d,this.offset=p}static of(d,p){return new Ca(d,p)}static fromStruct(d){return Ca.of(Ta.fromStruct(d.createdAt),d.offset)}static createComparator(){return(d,p)=>{const y=d.getCreatedAt().compare(p.getCreatedAt());return y!==0?y:d.getOffset()>p.getOffset()?1:d.getOffset(){const T=y.deepcopy();return T.parent=p,T}),p.insPrevID=this.insPrevID,p.insNextID=this.insNextID,p}get value(){if(!this.isText)throw new Error(`cannot get value of element node: ${this.type}`);return this._value}set value(d){if(!this.isText)throw new Error(`cannot set value of element node: ${this.type}`);this._value=d,this.size=d.length}get isRemoved(){return!!this.removedAt}remove(d){const p=!this.removedAt;(!this.removedAt||this.removedAt.compare(d)>0)&&(this.removedAt=d),p&&this.updateAncestorsSize()}cloneText(d){return new Ya(Ca.of(this.id.getCreatedAt(),d),this.type,void 0,void 0,this.removedAt)}cloneElement(d){return new Ya(Ca.of(d(),0),this.type,void 0,void 0,this.removedAt)}split(d,p,y){const T=this.isText?this.splitText(p,this.id.getOffset()):this.splitElement(p,y);if(T){if(T.insPrevID=this.id,this.insNextID){const $=d.findFloorNode(this.insNextID);$.insPrevID=T.id,T.insNextID=this.insNextID}this.insNextID=T.id,d.registerNode(T)}return T}getCreatedAt(){return this.id.getCreatedAt()}getOffset(){return this.id.getOffset()}canDelete(d,p){return!this.getCreatedAt().after(p)&&(!this.removedAt||d.after(this.removedAt))}canStyle(d,p){return this.isText?!1:!this.getCreatedAt().after(p)&&(!this.removedAt||d.after(this.removedAt))}setAttrs(d,p){this.attrs||(this.attrs=new qc);const y=new Array;for(const[T,$]of Object.entries(d))y.push(this.attrs.set(T,$,p));return y}purge(d){this.attrs&&this.attrs.purge(d)}getGCPairs(){const d=[];if(!this.attrs)return d;for(const p of this.attrs)p.getRemovedAt()&&d.push({parent:this,child:p});return d}}function $p(O){var d;if(O.isText){const y=O;return{type:y.type,value:y.value}}const p={type:O.type,children:O.children.map($p)};return O.attrs&&(p.attributes=Pp((d=O.attrs)==null?void 0:d.toObject())),p}function BS(O){if(O.isText)return O.value;let d="";return O.attrs&&O.attrs.size()&&(d=" "+Array.from(O.attrs).filter(p=>!p.isRemoved()).sort((p,y)=>p.getKey().localeCompare(y.getKey())).map(p=>{const y=JSON.parse(p.getValue());return typeof y=="string"?`${p.getKey()}="${y}"`:`${p.getKey()}="${Qu(p.getValue())}"`}).join(" ")),`<${O.type}${d}>${O.children.map(p=>BS(p)).join("")}`}function US(O){if(O.isText){const d=O;return{type:d.type,value:d.value,size:d.size,isRemoved:d.isRemoved}}return{type:O.type,children:O.children.map(US),size:O.size,isRemoved:O.isRemoved}}class al extends G0{constructor(d,p){super(p),s(this,"indexTree"),s(this,"nodeMapByID"),this.indexTree=new lD(d),this.nodeMapByID=new zk(Ca.createComparator()),this.indexTree.traverseAll(y=>{this.nodeMapByID.put(y.id,y)})}static create(d,p){return new al(d,p)}findFloorNode(d){const p=this.nodeMapByID.floorEntry(d);if(!(!p||!p.key.getCreatedAt().equals(d.getCreatedAt())))return p.value}registerNode(d){this.nodeMapByID.put(d.id,d)}findNodesAndSplitText(d,p){const[y,T]=d.toTreeNodePair(this);let $=T;const q=y===$,ne=$.parent&&!q?$.parent:y;if($.isText&&$.split(this,d.getLeftSiblingID().getOffset()-$.id.getOffset()),p){const me=ne.allChildren,Se=q?0:me.indexOf($)+1;for(let ze=Se;ze{const tn=mt.getCreatedAt().getActorID(),Bn=T?T.has(tn)?T.get(tn):Ns:Hd;if(mt.canStyle(y,Bn)&&p){const kn=Ct.get(tn),pr=mt.getCreatedAt();(!kn||pr.after(kn))&&Ct.set(tn,pr);const Oi=mt.setAttrs(p,y),Cr=Oi.reduce((Fr,[,Mo])=>(Mo&&(Fr[Mo.getKey()]=ze[Mo.getKey()]),Fr),{}),Yr=mt.parent,li=mt.prevSibling||mt.parent;Object.keys(Cr).length>0&&Se.push({type:"style",from:this.toIndex(Yr,li),to:this.toIndex(mt,mt),fromPath:this.toPath(Yr,li),toPath:this.toPath(mt,mt),actor:y.getActorID(),value:Cr});for(const[Fr]of Oi)Fr&&St.push({parent:mt,child:Fr})}}),[Ct,St,Se]}removeStyle(d,p,y,T){const[$,q]=this.findNodesAndSplitText(d[0],y),[ne,me]=this.findNodesAndSplitText(d[1],y),Se=[],ze=new Map,Ct=[];return this.traverseInPosRange($,q,ne,me,([St])=>{const mt=St.getCreatedAt().getActorID(),tn=T?T.has(mt)?T.get(mt):Ns:Hd;if(St.canStyle(y,tn)&&p){const Bn=ze.get(mt),kn=St.getCreatedAt();(!Bn||kn.after(Bn))&&ze.set(mt,kn),St.attrs||(St.attrs=new qc);for(const Cr of p){const Yr=St.attrs.remove(Cr,y);for(const li of Yr)Ct.push({parent:St,child:li})}const pr=St.parent,Oi=St.prevSibling||St.parent;Se.push({actor:y.getActorID(),type:"removeStyle",from:this.toIndex(pr,Oi),to:this.toIndex(St,St),fromPath:this.toPath(pr,Oi),toPath:this.toPath(St,St),value:p})}}),[ze,Ct,Se]}edit(d,p,y,T,$,q){const[ne,me]=this.findNodesAndSplitText(d[0],T),[Se,ze]=this.findNodesAndSplitText(d[1],T),Ct=this.toIndex(ne,me),St=this.toPath(ne,me),mt=[],tn=[],Bn=[],kn=new Map;this.traverseInPosRange(ne,me,Se,ze,([Cr,Yr],li)=>{if(Yr===bi.Start&&!li)for(const Sh of Cr.children)Bn.push(Sh);const Fr=Cr.getCreatedAt().getActorID(),Mo=q?q.has(Fr)?q.get(Fr):Ns:Hd;if(Cr.canDelete(T,Mo)||mt.includes(Cr.parent)){const Sh=kn.get(Fr),Gp=Cr.getCreatedAt();(!Sh||Gp.after(Sh))&&kn.set(Fr,Gp),(Yr===bi.Text||Yr===bi.Start)&&mt.push(Cr),tn.push([Cr,Yr])}});const pr=this.makeDeletionChanges(tn,T),Oi=[];for(const Cr of mt)Cr.remove(T),Cr.isRemoved&&Oi.push({parent:this,child:Cr});for(const Cr of Bn)Cr.removedAt||ne.append(Cr);if(y>0){let Cr=0,Yr=ne,li=me;for(;Cr{ne.isRemoved&&(Fr.remove(T),Oi.push({parent:this,child:Fr})),this.nodeMapByID.put(Fr.id,Fr)}),li.isRemoved||Cr.push(li);if(Cr.length){const li=Cr.map(Fr=>$p(Fr));pr.length&&pr[pr.length-1].from===Ct?pr[pr.length-1].value=li:pr.push({type:"content",from:Ct,to:Ct,fromPath:St,toPath:St,actor:T.getActorID(),value:li})}}return[pr,Oi,kn]}editT(d,p,y,T,$){const q=this.findPos(d[0]),ne=this.findPos(d[1]);this.edit([q,ne],p,y,T,$)}move(d,p,y){throw new Error(`not implemented: ${d}, ${p}, ${y}`)}purge(d){var p;(p=d.parent)==null||p.removeChild(d),this.nodeMapByID.remove(d.id);const y=d.insPrevID,T=d.insNextID;if(y){const $=this.findFloorNode(y);$.insNextID=T}if(T){const $=this.findFloorNode(T);$.insPrevID=y}d.insPrevID=void 0,d.insNextID=void 0}getGCPairs(){const d=[];return this.indexTree.traverse(p=>{p.getRemovedAt()&&d.push({parent:this,child:p});for(const y of p.getGCPairs())d.push(y)}),d}findPos(d,p=!0){const y=this.indexTree.findTreePos(d,p);return Wl.fromTreePos(y)}pathToPosRange(d){const p=this.pathToIndex(d);return[this.findPos(p),this.findPos(p+1)]}pathToPos(d){const p=this.indexTree.pathToIndex(d);return this.findPos(p)}getRoot(){return this.indexTree.getRoot()}getSize(){return this.indexTree.size}getNodeSize(){return this.nodeMapByID.size()}getIndexTree(){return this.indexTree}toXML(){return BS(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 d=this.indexTree.getRoot(),p=(y,T=void 0,$=void 0,q=0)=>{var ne,me,Se,ze;let Ct,St,mt;const tn=y.isText?{node:y,offset:0}:T&&$?this.toTreePos(T,$):null;tn&&(Ct=this.indexTree.indexOf(tn),St=this.indexTree.treePosToPath(tn),mt=Wl.fromTreePos(tn).toStruct());const Bn={type:y.type,parent:T==null?void 0:T.id.toTestString(),size:y.size,id:y.id.toTestString(),removedAt:(ne=y.removedAt)==null?void 0:ne.toTestString(),insPrev:(me=y.insPrevID)==null?void 0:me.toTestString(),insNext:(Se=y.insNextID)==null?void 0:Se.toTestString(),value:y.isText?y.value:void 0,isRemoved:y.isRemoved,children:[],depth:q,attributes:y.attrs?Pp((ze=y.attrs)==null?void 0:ze.toObject()):void 0,index:Ct,path:St,pos:mt};for(let kn=0;kn0&&kn===y[y.length-1].to?(y[y.length-1].to=pr,y[y.length-1].toPath=this.toPath(Bn,St)):y.push({type:"content",from:kn,to:pr,fromPath:this.toPath(tn,ze),toPath:this.toPath(Bn,St),actor:p.getActorID()}))}return y.reverse()}findRightToken([d,p]){if(p===bi.Start){const ne=d.allChildren;return ne.length>0?[ne[0],ne[0].isText?bi.Text:bi.Start]:[d,bi.End]}const y=d.parent,T=y.allChildren,$=T.indexOf(d);if(y&&$===T.length-1)return[y,bi.End];const q=T[$+1];return[q,q.isText?bi.Text:bi.Start]}findLeftToken([d,p]){if(p===bi.End){const ne=d.allChildren;if(ne.length>0){const me=ne[ne.length-1];return[me,me.isText?bi.Text:bi.End]}return[d,bi.Start]}const y=d.parent,T=y.allChildren,$=T.indexOf(d);if(y&&$===0)return[y,bi.Start];const q=T[$-1];return[q,q.isText?bi.Text:bi.End]}}class Do extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"contents"),s(this,"splitLevel"),s(this,"maxCreatedAtMapByActor"),this.fromPos=p,this.toPos=y,this.contents=T,this.splitLevel=$,this.maxCreatedAtMapByActor=q}static create(d,p,y,T,$,q,ne){return new Do(d,p,y,T,$,q,ne)}execute(d){var p;const y=d.findByCreatedAt(this.getParentCreatedAt());y||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),y instanceof al||Lt.fatal("fail to execute, only Tree can execute edit");const T=this.getExecutedAt(),$=y,[q,ne]=$.edit([this.fromPos,this.toPos],(p=this.contents)==null?void 0:p.map(me=>me.deepcopy()),this.splitLevel,T,(()=>{let me=T.getDelimiter();return this.contents!==void 0&&(me+=this.contents.length),()=>Ta.of(T.getLamport(),++me,T.getActorID())})(),this.maxCreatedAtMapByActor);for(const me of ne)d.registerGCPair(me);return{opInfos:q.map(({from:me,to:Se,value:ze,splitLevel:Ct,fromPath:St,toPath:mt})=>({type:"tree-edit",path:d.createPath(this.getParentCreatedAt()),from:me,to:Se,value:ze,splitLevel:Ct,fromPath:St,toPath:mt}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}/${this.toPos.getLeftSiblingID().getOffset()}`,T=this.contents||[];return`${d}.EDIT(${p},${y},${T.map($=>BS($)).join("")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getContents(){return this.contents}getSplitLevel(){return this.splitLevel}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}class qu{constructor(d,p,y,T){s(this,"clientSeq"),s(this,"serverSeq"),s(this,"lamport"),s(this,"actor"),this.clientSeq=d,this.serverSeq=T,this.lamport=p,this.actor=y}static of(d,p,y,T){return new qu(d,p,y,T)}next(){return new qu(this.clientSeq+1,this.lamport.add(1),this.actor)}syncLamport(d){return d.greaterThan(this.lamport)?new qu(this.clientSeq,d,this.actor):new qu(this.clientSeq,this.lamport.add(1),this.actor)}createTimeTicket(d){return Ta.of(this.lamport,d,this.actor)}setActor(d){return new qu(this.clientSeq,this.lamport,d,this.serverSeq)}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq?this.serverSeq.toString():""}getLamport(){return this.lamport}getLamportAsString(){return this.lamport.toString()}getActorID(){return this.actor}toTestString(){return`${this.lamport.toString()}:${this.actor.slice(-2)}:${this.clientSeq}`}}const bh=new qu(0,Zn.fromInt(0,!0),pb);class za{constructor({id:d,operations:p,presenceChange:y,message:T}){s(this,"id"),s(this,"operations"),s(this,"presenceChange"),s(this,"message"),this.id=d,this.operations=p||[],this.presenceChange=y,this.message=T}static create({id:d,operations:p,presenceChange:y,message:T}){return new za({id:d,operations:p,presenceChange:y,message:T})}getID(){return this.id}getMessage(){return this.message}hasOperations(){return this.operations.length>0}getOperations(){return this.operations}setActor(d){for(const p of this.operations)p.setActor(d);this.id=this.id.setActor(d)}hasPresenceChange(){return this.presenceChange!==void 0}getPresenceChange(){return this.presenceChange}execute(d,p,y){const T=[],$=[];for(const q of this.operations){const ne=q.execute(d,y);if(!ne)continue;const{opInfos:me,reverseOp:Se}=ne;T.push(...me),Se&&$.unshift(Se)}return this.presenceChange&&(this.presenceChange.type===jd.Put?p.set(this.id.getActorID(),jl(this.presenceChange.presence)):p.delete(this.id.getActorID())),{opInfos:T,reverseOps:$}}toTestString(){return`${this.operations.map(d=>d.toTestString()).join(",")}`}toStruct(){return{changeID:pa.bytesToHex(pa.toChangeID(this.getID()).toBinary()),message:this.getMessage(),operations:this.getOperations().map(d=>pa.bytesToHex(pa.toOperation(d).toBinary())),presenceChange:this.getPresenceChange()}}static fromStruct(d){const{changeID:p,operations:y,presenceChange:T,message:$}=d;return za.create({id:pa.bytesToChangeID(pa.hexToBytes(p)),operations:y==null?void 0:y.map(q=>pa.bytesToOperation(pa.hexToBytes(q))),presenceChange:T,message:$})}}class gb{constructor(d,p,y,T,$,q){s(this,"documentKey"),s(this,"checkpoint"),s(this,"isRemoved"),s(this,"changes"),s(this,"snapshot"),s(this,"minSyncedTicket"),this.documentKey=d,this.checkpoint=p,this.isRemoved=y,this.changes=T,this.snapshot=$,this.minSyncedTicket=q}static create(d,p,y,T,$,q){return new gb(d,p,y,T,$,q)}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 yh{constructor(d,p){s(this,"serverSeq"),s(this,"clientSeq"),this.serverSeq=d,this.clientSeq=p}static of(d,p){return new yh(d,p)}increaseClientSeq(d){return d===0?this:new yh(this.serverSeq,this.clientSeq+d)}forward(d){if(this.equals(d))return this;const p=this.serverSeq.greaterThan(d.serverSeq)?this.serverSeq:d.serverSeq,y=Math.max(this.clientSeq,d.clientSeq);return yh.of(p,y)}getServerSeqAsString(){return this.serverSeq.toString()}getClientSeq(){return this.clientSeq}getServerSeq(){return this.serverSeq}equals(d){return this.clientSeq===d.clientSeq&&this.serverSeq.equals(d.serverSeq)}toTestString(){return`serverSeq=${this.serverSeq}, clientSeq=${this.clientSeq}`}}const jk=new yh(Zn.fromInt(0,!0),0);class lo{constructor(d,p){s(this,"createdAt"),s(this,"offset"),this.createdAt=d,this.offset=p}static of(d,p){return new lo(d,p)}static fromStruct(d){return lo.of(Ta.fromStruct(d.createdAt),d.offset)}getCreatedAt(){return this.createdAt}getOffset(){return this.offset}equals(d){return this.createdAt.compare(d.createdAt)===0&&this.offset===d.offset}hasSameCreatedAt(d){return this.createdAt.compare(d.createdAt)===0}split(d){return new lo(this.createdAt,this.offset+d)}toStruct(){return{createdAt:this.createdAt.toStruct(),offset:this.offset}}toTestString(){return`${this.createdAt.toTestString()}:${this.offset}`}toIDString(){return`${this.createdAt.toIDString()}:${this.offset}`}}const Qd=lo.of(Ns,0);class sl{constructor(d,p){s(this,"id"),s(this,"relativeOffset"),this.id=d,this.relativeOffset=p}static of(d,p){return new sl(d,p)}static fromStruct(d){const p=lo.fromStruct(d.id);return sl.of(p,d.relativeOffset)}getID(){return this.id}getRelativeOffset(){return this.relativeOffset}getAbsoluteID(){return lo.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(d){return this.id.equals(d.id)?this.relativeOffset===d.relativeOffset:!1}}class qd extends Ro{constructor(d,p,y){super(p),s(this,"id"),s(this,"removedAt"),s(this,"prev"),s(this,"next"),s(this,"insPrev"),s(this,"insNext"),this.id=d,this.removedAt=y}static create(d,p){return new qd(d,p)}static createComparator(){return(d,p)=>{const y=d.getCreatedAt().compare(p.getCreatedAt());return y!==0?y:d.getOffset()>p.getOffset()?1:d.getOffset()0&&p.getID().getOffset()==d.getOffset()){if(!p.hasInsPrev())return p;p=p.getInsPrev()}return p}findFloorNode(d){const p=this.treeByID.floorEntry(d);if(p&&!(!p.key.equals(d)&&!p.key.hasSameCreatedAt(d)))return p.value}findBetween(d,p){const y=[];let T=d;for(;T&&T!==p;)y.push(T),T=T.getNext();return y}splitNode(d,p){if(p>d.getContentLength()&&Lt.fatal("offset should be less than or equal to length"),p===0)return d;if(p===d.getContentLength())return d.getNext();const y=d.split(p);this.treeByIndex.updateWeight(y),this.insertAfter(d,y);const T=d.getInsNext();return T&&T.setInsPrev(y),y.setInsPrev(d),y}deleteNodes(d,p,y){if(!d.length)return[[],new Map,new Map];const[T,$]=this.filterNodes(d,p,y),q=new Map,ne=new Map,me=this.makeChanges($,p);for(const Se of T){const ze=Se.getCreatedAt().getActorID();(!q.has(ze)||Se.getID().getCreatedAt().after(q.get(ze)))&&q.set(ze,Se.getID().getCreatedAt()),ne.set(Se.getID().toIDString(),Se),Se.remove(p)}return this.deleteIndexNodes($),[me,q,ne]}filterNodes(d,p,y){const T=!!y,$=[],q=[],[ne,me]=this.findEdgesOfCandidates(d);q.push(ne);for(const Se of d){const ze=Se.getCreatedAt().getActorID(),Ct=T?y.has(ze)?y.get(ze):Ns:Hd;Se.canDelete(p,Ct)?$.push(Se):q.push(Se)}return q.push(me),[$,q]}findEdgesOfCandidates(d){return[d[0].getPrev(),d[d.length-1].getNext()]}makeChanges(d,p){const y=[];let T,$;for(let q=0;qO<0?Math.ceil(O):Math.floor(O);var Ql=(O=>(O[O.IntegerCnt=0]="IntegerCnt",O[O.LongCnt=1]="LongCnt",O))(Ql||{});class ri extends G0{constructor(d,p,y){switch(super(y),s(this,"valueType"),s(this,"value"),this.valueType=d,d){case 0:typeof p=="number"?p>Math.pow(2,31)-1||p<-Math.pow(2,31)?this.value=Zn.fromNumber(p).toInt():this.value=Hk(p):this.value=p.toInt();break;case 1:typeof p=="number"?this.value=Zn.fromNumber(p):this.value=p;break;default:throw new jr(xr.ErrUnimplemented,`unimplemented type: ${d}`)}}static create(d,p,y){return new ri(d,p,y)}static valueFromBytes(d,p){switch(d){case 0:return p[0]|p[1]<<8|p[2]<<16|p[3]<<24;case 1:return Zn.fromBytesLE(Array.from(p));default:throw new jr(xr.ErrUnimplemented,`unimplemented type: ${d}`)}}toJSON(){return`${this.value}`}toSortedJSON(){return this.toJSON()}toJSForTest(){return{createdAt:this.getCreatedAt().toTestString(),value:this.value,type:"YORKIE_COUNTER"}}deepcopy(){const d=ri.create(this.valueType,this.value,this.getCreatedAt());return d.setMovedAt(this.getMovedAt()),d}getType(){return this.valueType}static getCounterType(d){switch(typeof d){case"object":return d instanceof Zn?1:void 0;case"number":return d>Math.pow(2,31)-1||d<-Math.pow(2,31)?1:0;default:return}}static isSupport(d){return!!ri.getCounterType(d)}static isInteger(d){return d%1===0}isNumericType(){const d=this.valueType;return d===0||d===1}getValueType(){return this.valueType}getValue(){return this.value}toBytes(){switch(this.valueType){case 0:{const d=this.value;return new Uint8Array([d&255,d>>8&255,d>>16&255,d>>24&255])}case 1:{const p=this.value.toBytesLE();return Uint8Array.from(p)}default:throw new jr(xr.ErrUnimplemented,`unimplemented type: ${this.valueType}`)}}increase(d){function p(y){if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`)}return p(this),p(d),this.valueType===1?this.value=this.value.add(d.getValue()):d.getType()===ka.Long?this.value=this.value+d.getValue().toInt():this.value=Zn.fromNumber(this.value+Hk(d.getValue())).toInt(),this}}class Gd extends so{constructor(d,p,y){super(d,y),s(this,"value"),this.value=p}static create(d,p,y){return new Gd(d,p,y)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof ri||Lt.fatal("fail to execute, only Counter can execute increase");const y=p,T=this.value.deepcopy();return y.increase(T),{opInfos:[{type:"increase",path:d.createPath(this.getParentCreatedAt()),value:T.getValue()}],reverseOp:this.toReverseOperation()}}toReverseOperation(){const d=this.value.deepcopy(),y=d.getType()===ka.Long?d.getValue().multiply(-1):d.getValue()*-1;return Gd.create(this.getParentCreatedAt(),Ti.of(y,d.getCreatedAt()))}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){return`${this.getParentCreatedAt().toTestString()}.INCREASE.${this.value.toJSON()}`}getValue(){return this.value}}class Gu extends so{constructor(d,p,y,T,$,q,ne){super(d,ne),s(this,"fromPos"),s(this,"toPos"),s(this,"maxCreatedAtMapByActor"),s(this,"attributes"),s(this,"attributesToRemove"),this.fromPos=p,this.toPos=y,this.maxCreatedAtMapByActor=T,this.attributes=$,this.attributesToRemove=q}static create(d,p,y,T,$,q){return new Gu(d,p,y,T,$,new Array,q)}static createTreeRemoveStyleOperation(d,p,y,T,$,q){return new Gu(d,p,y,T,new Map,$,q)}execute(d){const p=d.findByCreatedAt(this.getParentCreatedAt());p||Lt.fatal(`fail to find ${this.getParentCreatedAt()}`),p instanceof al||Lt.fatal("fail to execute, only Tree can execute edit");const y=p;let T,$;if(this.attributes.size){const q={};[...this.attributes].forEach(([ne,me])=>q[ne]=me),[,$,T]=y.style([this.fromPos,this.toPos],q,this.getExecutedAt(),this.maxCreatedAtMapByActor)}else{const q=this.attributesToRemove;[,$,T]=y.removeStyle([this.fromPos,this.toPos],q,this.getExecutedAt(),this.maxCreatedAtMapByActor)}for(const q of $)d.registerGCPair(q);return{opInfos:T.map(({from:q,to:ne,value:me,fromPath:Se,toPath:ze})=>({type:"tree-style",from:q,to:ne,value:this.attributes.size?{attributes:me}:{attributesToRemove:me},fromPath:Se,toPath:ze,path:d.createPath(this.getParentCreatedAt())}))}}getEffectedCreatedAt(){return this.getParentCreatedAt()}toTestString(){const d=this.getParentCreatedAt().toTestString(),p=`${this.fromPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.fromPos.getLeftSiblingID().getOffset()}`,y=`${this.toPos.getLeftSiblingID().getCreatedAt().toTestString()}:${this.toPos.getLeftSiblingID().getOffset()}`;return`${d}.STYLE(${p},${y},${Object.entries(this.attributes||{}).map(([T,$])=>`${T}:"${$}"`).join(" ")})`}getFromPos(){return this.fromPos}getToPos(){return this.toPos}getAttributes(){return this.attributes}getAttributesToRemove(){return this.attributesToRemove}getMaxCreatedAtMapByActor(){return this.maxCreatedAtMapByActor}}function Yu(O){const d=new Vu,p=d.data;for(const[y,T]of Object.entries(O))p[y]=JSON.stringify(T);return d}function zS(O){if(O.type===jd.Put)return new B0({type:Ip.PUT,presence:Yu(O.presence)});if(O.type===jd.Clear)return new B0({type:Ip.CLEAR});throw new jr(xr.ErrUnimplemented,"unimplemented type")}function bb(O){return new U0({serverSeq:O.getServerSeqAsString(),clientSeq:O.getClientSeq()})}function Yd(O){return new rb({clientSeq:O.getClientSeq(),lamport:O.getLamportAsString(),actorId:Ib(O.getActorID())})}function Tn(O){if(O)return new Dn({lamport:O.getLamportAsString(),delimiter:O.getDelimiter(),actorId:Ib(O.getActorID())})}function bs(O){switch(O){case ka.Null:return vn.NULL;case ka.Boolean:return vn.BOOLEAN;case ka.Integer:return vn.INTEGER;case ka.Long:return vn.LONG;case ka.Double:return vn.DOUBLE;case ka.String:return vn.STRING;case ka.Bytes:return vn.BYTES;case ka.Date:return vn.DATE;default:throw new jr(xr.Unsupported,`unsupported type: ${O}`)}}function yb(O){switch(O){case Ql.IntegerCnt:return vn.INTEGER_CNT;case Ql.LongCnt:return vn.LONG_CNT;default:throw new jr(xr.Unsupported,`unsupported type: ${O}`)}}function jS(O){if(O instanceof se)return new Wc({type:vn.JSON_OBJECT,createdAt:Tn(O.getCreatedAt()),value:Rb(O)});if(O instanceof Io)return new Wc({type:vn.JSON_ARRAY,createdAt:Tn(O.getCreatedAt()),value:YS(O)});if(O instanceof il)return new Wc({type:vn.TEXT,createdAt:Tn(O.getCreatedAt())});if(O instanceof Ti)return new Wc({type:bs(O.getType()),createdAt:Tn(O.getCreatedAt()),value:O.toBytes()});if(O instanceof ri)return new Wc({type:yb(O.getType()),createdAt:Tn(O.getCreatedAt()),value:O.toBytes()});if(O instanceof al)return new Wc({type:vn.TREE,createdAt:Tn(O.getCreatedAt()),value:Kd(O)});throw new jr(xr.ErrUnimplemented,"unimplemented element")}function cD(O){return new _S({createdAt:Tn(O.getCreatedAt()),offset:O.getOffset()})}function vb(O){return new ch({createdAt:Tn(O.getID().getCreatedAt()),offset:O.getID().getOffset(),relativeOffset:O.getRelativeOffset()})}function Fp(O){return new F0({parentId:eg(O.getParentID()),leftSiblingId:eg(O.getLeftSiblingID())})}function eg(O){return new Bl({createdAt:Tn(O.getCreatedAt()),offset:O.getOffset()})}function Bp(O){const d=new wS;if(O instanceof gh){const p=O,y=new Ak;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.key=p.getKey(),y.value=jS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="set",d.body.value=y}else if(O instanceof Y0){const p=O,y=new xS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.prevCreatedAt=Tn(p.getPrevCreatedAt()),y.value=jS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="add",d.body.value=y}else if(O instanceof Wd){const p=O,y=new $0;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.prevCreatedAt=Tn(p.getPrevCreatedAt()),y.createdAt=Tn(p.getCreatedAt()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="move",d.body.value=y}else if(O instanceof Vd){const p=O,y=new uh;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.createdAt=Tn(p.getCreatedAt()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="remove",d.body.value=y}else if(O instanceof X0){const p=O,y=new _k;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=vb(p.getFromPos()),y.to=vb(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);y.content=p.getContent();const $=y.attributes;for(const[q,ne]of p.getAttributes())$[q]=ne;y.executedAt=Tn(p.getExecutedAt()),d.body.case="edit",d.body.value=y}else if(O instanceof K0){const p=O,y=new TS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=vb(p.getFromPos()),y.to=vb(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);const $=y.attributes;for(const[q,ne]of p.getAttributes())$[q]=ne;y.executedAt=Tn(p.getExecutedAt()),d.body.case="style",d.body.value=y}else if(O instanceof Gd){const p=O,y=new ib;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.value=jS(p.getValue()),y.executedAt=Tn(p.getExecutedAt()),d.body.case="increase",d.body.value=y}else if(O instanceof Do){const p=O,y=new ab,T=y.createdAtMapByActor;for(const[$,q]of p.getMaxCreatedAtMapByActor())T[$]=Tn(q);y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=Fp(p.getFromPos()),y.to=Fp(p.getToPos()),y.contents=HS(p.getContents()),y.splitLevel=p.getSplitLevel(),y.executedAt=Tn(p.getExecutedAt()),d.body.case="treeEdit",d.body.value=y}else if(O instanceof Gu){const p=O,y=new kS;y.parentCreatedAt=Tn(p.getParentCreatedAt()),y.from=Fp(p.getFromPos()),y.to=Fp(p.getToPos());const T=y.createdAtMapByActor;for(const[q,ne]of p.getMaxCreatedAtMapByActor())T[q]=Tn(ne);const $=p.getAttributesToRemove();if($.length>0)y.attributesToRemove=$;else{const q=y.attributes;for(const[ne,me]of p.getAttributes())q[ne]=me}y.executedAt=Tn(p.getExecutedAt()),d.body.case="treeStyle",d.body.value=y}else throw new jr(xr.ErrUnimplemented,"unimplemented operation");return d}function Vk(O){const d=[];for(const p of O)d.push(Bp(p));return d}function dD(O){const d=new nb({id:Yd(O.getID()),message:O.getMessage()});return O.hasOperations()&&(d.operations=Vk(O.getOperations())),O.hasPresenceChange()&&(d.presenceChange=zS(O.getPresenceChange())),d}function fD(O){const d=[];for(const p of O)d.push(dD(p));return d}function tg(O){const d=[];for(const p of O)d.push(new AS({key:p.getStrKey(),element:Sb(p.getValue())}));return d}function hD(O){const d=[];for(const p of O)d.push(new lb({element:Sb(p.getValue())}));return d}function pD(O){const d=[];for(const p of O){const y=new Dk;y.id=cD(p.getID()),y.value=p.getValue().getContent(),y.removedAt=Tn(p.getRemovedAt());const T=y.attributes,$=p.getValue().getAttrs();for(const q of $){const ne=new ub;ne.value=q.getValue(),ne.updatedAt=Tn(q.getUpdatedAt()),T[q.getKey()]=ne}d.push(y)}return d}function HS(O){const d=[];if(!O||!O.length)return d;for(const p of O)d.push(new Nk({content:Qk(p)}));return d}function Wk(O){const d={};for(const p of O)d[p.getKey()]=new ub({value:p.getValue(),updatedAt:Tn(p.getUpdatedAt()),isRemoved:p.isRemoved()});return d}function Qk(O){if(!O)return[];const d=[];return oo(O,(p,y)=>{const T=new RS({id:eg(p.id),type:p.type,removedAt:Tn(p.removedAt),depth:y});p.isText&&(T.value=p.value),p.insPrevID&&(T.insPrevId=eg(p.insPrevID)),p.insNextID&&(T.insNextId=eg(p.insNextID)),p.attrs&&(T.attributes=Wk(p.attrs)),d.push(T)}),d}function mD(O){const d=new ro;return d.body.case="jsonObject",d.body.value=new sb({nodes:tg(O.getRHT()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function qk(O){const d=new ro;return d.body.case="jsonArray",d.body.value=new Ik({nodes:hD(O.getElements()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function Gk(O){const d=new ro;return d.body.case="primitive",d.body.value=new CS({type:bs(O.getType()),value:O.toBytes(),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function VS(O){const d=new ro;return d.body.case="text",d.body.value=new io({nodes:pD(O.getRGATreeSplit()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function gD(O){const d=new ro;return d.body.case="counter",d.body.value=new ob({type:yb(O.getType()),value:O.toBytes(),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function Ob(O){const d=new ro;return d.body.case="tree",d.body.value=new Rp({nodes:Qk(O.getRoot()),createdAt:Tn(O.getCreatedAt()),movedAt:Tn(O.getMovedAt()),removedAt:Tn(O.getRemovedAt())}),d}function Sb(O){if(O instanceof se)return mD(O);if(O instanceof Io)return qk(O);if(O instanceof Ti)return Gk(O);if(O instanceof il)return VS(O);if(O instanceof ri)return gD(O);if(O instanceof al)return Ob(O);throw new jr(xr.ErrUnimplemented,"unimplemented element")}function Yk(O){return new Vc({documentKey:O.getDocumentKey(),checkpoint:bb(O.getCheckpoint()),isRemoved:O.getIsRemoved(),changes:fD(O.getChanges()),snapshot:O.getSnapshot(),minSyncedTicket:Tn(O.getMinSyncedTicket())})}function WS(O){const d=O.findDetails(nD);for(const p of d)if(p.metadata.code)return p.metadata.code;return""}function ng(O){let d;return O.serverSeq&&(d=Zn.fromString(O.serverSeq,!0)),qu.of(O.clientSeq,Zn.fromString(O.lamport,!0),Zu(O.actorId),d)}function Nn(O){if(O)return Ta.of(Zn.fromString(O.lamport,!0),O.delimiter,Zu(O.actorId))}function Eb(O){const d={};return Object.entries(O.data).forEach(([p,y])=>{d[p]=JSON.parse(y)}),d}function Zk(O){const d=O.type;if(d===Ip.PUT){const p=Eb(O.presence);return{type:jd.Put,presence:p}}if(d===Ip.CLEAR)return{type:jd.Clear};throw new jr(xr.Unsupported,`unsupported type: ${d}`)}function bD(O){const d=new Map;return Object.entries(O).forEach(([p,y])=>{d.set(p,Eb(y))}),d}function QS(O){switch(O){case vn.NULL:return ka.Null;case vn.BOOLEAN:return ka.Boolean;case vn.INTEGER:return ka.Integer;case vn.LONG:return ka.Long;case vn.DOUBLE:return ka.Double;case vn.STRING:return ka.String;case vn.BYTES:return ka.Bytes;case vn.DATE:return ka.Date}throw new jr(xr.ErrUnimplemented,`unimplemented value type: ${O}`)}function wb(O){switch(O){case vn.INTEGER_CNT:return Ql.IntegerCnt;case vn.LONG_CNT:return Ql.LongCnt}throw new jr(xr.ErrUnimplemented,`unimplemented value type: ${O}`)}function rg(O){switch(O.type){case vn.JSON_OBJECT:return O.value?GS(O.value):se.create(Nn(O.createdAt));case vn.JSON_ARRAY:return O.value?tC(O.value):Io.create(Nn(O.createdAt));case vn.TEXT:return il.create(Zc.create(),Nn(O.createdAt));case vn.TREE:return ZS(O.value);case vn.NULL:case vn.BOOLEAN:case vn.INTEGER:case vn.LONG:case vn.DOUBLE:case vn.STRING:case vn.BYTES:case vn.DATE:return Ti.of(Ti.valueFromBytes(QS(O.type),O.value),Nn(O.createdAt));case vn.INTEGER_CNT:case vn.LONG_CNT:return ri.create(wb(O.type),ri.valueFromBytes(wb(O.type),O.value),Nn(O.createdAt))}}function ig(O){return sl.of(lo.of(Nn(O.createdAt),O.offset),O.relativeOffset)}function xb(O){return lo.of(Nn(O.createdAt),O.offset)}function yD(O){const d=Z0.create(O.value);Object.entries(O.attributes).forEach(([y,T])=>{d.setAttr(y,T.value,Nn(T.updatedAt))});const p=qd.create(xb(O.id),d);return p.remove(Nn(O.removedAt)),p}function Zd(O){return Wl.of(ar(O.parentId),ar(O.leftSiblingId))}function ar(O){return Ca.of(Nn(O.createdAt),O.offset)}function vD(O){if(!O.length)return;const d=[];return O.forEach(p=>{const y=Xk(p.content);d.push(y)}),d}function Xk(O){if(O.length===0)return;const d=[];for(const y of O)d.push(Kk(y));const p=d[d.length-1];for(let y=d.length-2;y>=0;y--){let T;for(let $=y+1;${p.set(T,Nn($))});const y=new Map;return Object.entries(d.attributes).forEach(([T,$])=>{y.set(T,$)}),X0.create(Nn(d.parentCreatedAt),ig(d.from),ig(d.to),p,d.content,y,Nn(d.executedAt))}else if(O.body.case==="style"){const d=O.body.value,p=new Map;Object.entries(d.createdAtMapByActor).forEach(([T,$])=>{p.set(T,Nn($))});const y=new Map;return Object.entries(d.attributes).forEach(([T,$])=>{y.set(T,$)}),K0.create(Nn(d.parentCreatedAt),ig(d.from),ig(d.to),p,y,Nn(d.executedAt))}else{if(O.body.case==="select")return;if(O.body.case==="increase"){const d=O.body.value;return Gd.create(Nn(d.parentCreatedAt),rg(d.value),Nn(d.executedAt))}else if(O.body.case==="treeEdit"){const d=O.body.value,p=new Map;return Object.entries(d.createdAtMapByActor).forEach(([y,T])=>{p.set(y,Nn(T))}),Do.create(Nn(d.parentCreatedAt),Zd(d.from),Zd(d.to),vD(d.contents),d.splitLevel,p,Nn(d.executedAt))}else if(O.body.case==="treeStyle"){const d=O.body.value,p=new Map,y=d.attributesToRemove,T=new Map;return d!=null&&d.createdAtMapByActor&&Object.entries(d.createdAtMapByActor).forEach(([$,q])=>{T.set($,Nn(q))}),(y==null?void 0:y.length)>0?Gu.createTreeRemoveStyleOperation(Nn(d.parentCreatedAt),Zd(d.from),Zd(d.to),T,y,Nn(d.executedAt)):(Object.entries(d.attributes).forEach(([$,q])=>{p.set($,q)}),Gu.create(Nn(d.parentCreatedAt),Zd(d.from),Zd(d.to),T,p,Nn(d.executedAt)))}else throw new jr(xr.ErrUnimplemented,"unimplemented operation")}}function OD(O){const d=[];for(const p of O){const y=Jk(p);y&&d.push(y)}return d}function No(O){const d=[];for(const p of O)d.push(za.create({id:ng(p.id),operations:OD(p.operations),presenceChange:p.presenceChange?Zk(p.presenceChange):void 0,message:p.message}));return d}function SD(O){return yh.of(Zn.fromString(O.serverSeq,!0),O.clientSeq)}function Tb(O){return gb.create(O.documentKey,SD(O.checkpoint),O.isRemoved,No(O.changes),O.snapshot,Nn(O.minSyncedTicket))}function kb(O){const d=new Lp;for(const y of O.nodes){const T=Ab(y.element);d.set(y.key,T,T.getPositionedAt())}const p=new se(Nn(O.createdAt),d);return p.setMovedAt(Nn(O.movedAt)),p.setRemovedAt(Nn(O.removedAt)),p}function qS(O){const d=new Vl;for(const y of O.nodes)d.insert(Ab(y.element));const p=new Io(Nn(O.createdAt),d);return p.setMovedAt(Nn(O.movedAt)),p.setRemovedAt(Nn(O.removedAt)),p}function eC(O){const d=Ti.of(Ti.valueFromBytes(QS(O.type),O.value),Nn(O.createdAt));return d.setMovedAt(Nn(O.movedAt)),d.setRemovedAt(Nn(O.removedAt)),d}function Po(O){const d=new Zc;let p=d.getHead();for(const T of O.nodes){const $=d.insertAfter(p,yD(T));T.insPrevId&&$.setInsPrev(d.findNode(xb(T.insPrevId))),p=$}const y=new il(d,Nn(O.createdAt));return y.setMovedAt(Nn(O.movedAt)),y.setRemovedAt(Nn(O.removedAt)),y}function Xd(O){const d=ri.create(wb(O.type),ri.valueFromBytes(wb(O.type),O.value),Nn(O.createdAt));return d.setMovedAt(Nn(O.movedAt)),d.setRemovedAt(Nn(O.removedAt)),d}function Cb(O){const d=Xk(O.nodes);return al.create(d,Nn(O.createdAt))}function Ab(O){if(O.body.case==="jsonObject")return kb(O.body.value);if(O.body.case==="jsonArray")return qS(O.body.value);if(O.body.case==="primitive")return eC(O.body.value);if(O.body.case==="text")return Po(O.body.value);if(O.body.case==="counter")return Xd(O.body.value);if(O.body.case==="tree")return Cb(O.body.value);throw new jr(xr.ErrUnimplemented,"unimplemented element")}function _b(O){if(!O)return{root:se.create(Ns),presences:new Map};const d=ES.fromBinary(O);return{root:Ab(d.root),presences:bD(d.presences)}}function GS(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return kb(d.body.value)}function Rb(O){return Sb(O).toBinary()}function tC(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return qS(d.body.value)}function YS(O){return qk(O).toBinary()}function ZS(O){if(!O)throw new Error("bytes is empty");const d=ro.fromBinary(O);return Cb(d.body.value)}function Kd(O){return Ob(O).toBinary()}function nC(O){return O?Array.from(O).map(d=>d.toString(16).padStart(2,"0")).join(""):""}function Zu(O){return nC(O)}function XS(O){return new Uint8Array(O.match(/.{1,2}/g).map(d=>parseInt(d,16)))}function Ib(O){return XS(O)}function KS(O){const d=rb.fromBinary(O);return ng(d)}function ED(O){const d=wS.fromBinary(O);return Jk(d)}const pa={fromPresence:Eb,toChangePack:Yk,fromChangePack:Tb,fromChanges:No,objectToBytes:Rb,bytesToObject:GS,bytesToSnapshot:_b,bytesToHex:nC,hexToBytes:XS,toHexString:Zu,toUint8Array:Ib,toOperation:Bp,toChangeID:Yd,PbChangeID:rb,bytesToChangeID:KS,bytesToOperation:ED};function rC(){return"xxxxxxxx-xxxx-4xxxy-xxxx-xxxxxxxxxxx".replace(/[xy]/g,O=>{const d=Math.random()*16|0;return(O==="x"?d:d&3|8).toString(16)})}class iC{constructor(d,p,y,T){s(this,"reconnectStreamDelay"),s(this,"doc"),s(this,"docID"),s(this,"syncMode"),s(this,"remoteChangeEventReceived"),s(this,"watchStream"),s(this,"watchLoopTimerID"),s(this,"watchAbortController"),this.reconnectStreamDelay=d,this.doc=p,this.docID=y,this.syncMode=T,this.remoteChangeEventReceived=!1}changeSyncMode(d){this.syncMode=d}needRealtimeSync(){return this.syncMode===qp.RealtimeSyncOff?!1:this.syncMode===qp.RealtimePushOnly?this.doc.hasLocalChanges():this.syncMode!==qp.Manual&&(this.doc.hasLocalChanges()||this.remoteChangeEventReceived)}async runWatchLoop(d){const p=async()=>{if(this.watchStream)return Promise.resolve();this.watchLoopTimerID&&(clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0);try{[this.watchStream,this.watchAbortController]=await d(()=>{this.watchStream=void 0,this.watchAbortController=void 0,this.watchLoopTimerID=setTimeout(p,this.reconnectStreamDelay)})}catch{}};await p()}cancelWatchStream(){this.watchStream&&this.watchAbortController&&(this.watchAbortController.abort(),this.watchStream=void 0,this.watchAbortController=void 0),clearTimeout(this.watchLoopTimerID),this.watchLoopTimerID=void 0}}const Db=()=>{};class wD{constructor(d){s(this,"finalized",!1),s(this,"observers",[]),s(this,"finalError");try{d(this)}catch(p){this.error(p)}}next(d){this.forEachObserver(p=>{p.next(d)})}error(d){this.forEachObserver(p=>{p.error(d)}),this.close(d)}complete(){this.forEachObserver(d=>{d.complete()}),this.close()}subscribe(d,p,y){let T;d||Lt.fatal("missing observer"),this.finalized&&Lt.fatal("observable is finalized due to previous error"),typeof d=="object"?T=d:T={next:d,error:p,complete:y},T.next===void 0&&(T.next=Db),T.error===void 0&&(T.error=Db),T.complete===void 0&&(T.complete=Db);const $=rC(),q=this.unsubscribeOne.bind(this,$);if(this.observers.push({subscriptionID:$,observer:T}),this.finalized)try{this.finalError?T.error(this.finalError):T.complete()}catch(ne){Lt.warn(ne)}return q}unsubscribeOne(d){var p;this.observers=(p=this.observers)==null?void 0:p.filter(y=>y.subscriptionID!==d)}forEachObserver(d){if(!this.finalized)for(let p=0;pd}}class vh{constructor(d,p,y,T){s(this,"id"),s(this,"delimiter"),s(this,"message"),s(this,"root"),s(this,"operations"),s(this,"presenceChange"),s(this,"previousPresence"),s(this,"reversePresenceKeys"),this.id=d,this.delimiter=Q0,this.root=p,this.operations=[],this.previousPresence=jl(y),this.presenceChange=void 0,this.reversePresenceKeys=new Set,this.message=T}static create(d,p,y,T){return new vh(d,p,y,T)}push(d){this.operations.push(d)}registerElement(d,p){this.root.registerElement(d,p)}registerRemovedElement(d){this.root.registerRemovedElement(d)}registerGCPair(d){this.root.registerGCPair(d)}getChange(){return za.create({id:this.id,operations:this.operations,presenceChange:this.presenceChange,message:this.message})}hasChange(){return this.operations.length>0||this.presenceChange!==void 0}setPresenceChange(d){this.presenceChange=d}setReversePresence(d,p){for(const y of Object.keys(d))p!=null&&p.addToHistory?this.reversePresenceKeys.add(y):this.reversePresenceKeys.delete(y)}getReversePresence(){if(this.reversePresenceKeys.size===0)return;const d={};for(const p of this.reversePresenceKeys)d[p]=this.previousPresence[p];return d}issueTimeTicket(){return this.delimiter+=1,this.id.createTimeTicket(this.delimiter)}getLastTimeTicket(){return this.id.createTimeTicket(this.delimiter)}}class ja{constructor(d){s(this,"rootObject"),s(this,"elementPairMapByCreatedAt"),s(this,"gcElementSetByCreatedAt"),s(this,"gcPairMap"),this.rootObject=d,this.elementPairMapByCreatedAt=new Map,this.gcElementSetByCreatedAt=new Set,this.gcPairMap=new Map,this.registerElement(d,void 0),d.getDescendants(p=>{if(p.getRemovedAt()&&this.registerRemovedElement(p),p instanceof il||p instanceof al)for(const y of p.getGCPairs())this.registerGCPair(y);return!1})}static create(){return new ja(se.create(Ns))}findByCreatedAt(d){const p=this.elementPairMapByCreatedAt.get(d.toIDString());if(p)return p.element}findElementPairByCreatedAt(d){return this.elementPairMapByCreatedAt.get(d.toIDString())}createSubPaths(d){let p=this.elementPairMapByCreatedAt.get(d.toIDString());if(!p)return[];const y=[];for(;p.parent;){const T=p.element.getCreatedAt(),$=p.parent.subPathOf(T);$===void 0&&Lt.fatal(`cant find the given element: ${T.toIDString()}`),y.unshift($),p=this.elementPairMapByCreatedAt.get(p.parent.getCreatedAt().toIDString())}return y.unshift("$"),y}createPath(d){return this.createSubPaths(d).join(".")}registerElement(d,p){this.elementPairMapByCreatedAt.set(d.getCreatedAt().toIDString(),{parent:p,element:d}),d instanceof Hl&&d.getDescendants((y,T)=>(this.registerElement(y,T),!1))}deregisterElement(d){let p=0;const y=T=>{const $=T.getCreatedAt().toIDString();this.elementPairMapByCreatedAt.delete($),this.gcElementSetByCreatedAt.delete($),p++};return y(d),d instanceof Hl&&d.getDescendants(T=>(y(T),!1)),p}registerRemovedElement(d){this.gcElementSetByCreatedAt.add(d.getCreatedAt().toIDString())}registerGCPair(d){if(this.gcPairMap.get(d.child.toIDString())){this.gcPairMap.delete(d.child.toIDString());return}this.gcPairMap.set(d.child.toIDString(),d)}getElementMapSize(){return this.elementPairMapByCreatedAt.size}getGarbageElementSetSize(){const d=new Set;for(const p of this.gcElementSetByCreatedAt){d.add(p);const y=this.elementPairMapByCreatedAt.get(p);y.element instanceof Hl&&y.element.getDescendants(T=>(d.add(T.getCreatedAt().toIDString()),!1))}return d.size}getObject(){return this.rootObject}getGarbageLen(){return this.getGarbageElementSetSize()+this.gcPairMap.size}deepcopy(){return new ja(this.rootObject.deepcopy())}garbageCollect(d){let p=0;for(const y of this.gcElementSetByCreatedAt){const T=this.elementPairMapByCreatedAt.get(y);T.element.getRemovedAt()&&d.compare(T.element.getRemovedAt())>=0&&(T.parent.purge(T.element),p+=this.deregisterElement(T.element))}for(const[,y]of this.gcPairMap){const T=y.child.getRemovedAt();T!==void 0&&d.compare(T)>=0&&(y.parent.purge(y.child),this.gcPairMap.delete(y.child.toIDString()),p+=1)}return p}toJSON(){return this.rootObject.toJSON()}toSortedJSON(){return this.rootObject.toSortedJSON()}}function ql(O,d){const p=new sg(O);return new Proxy(d,p.getHandlers())}class sg{constructor(d){s(this,"context"),s(this,"handlers"),this.context=d,this.handlers={set:(p,y,T)=>(Lt.isEnabled(ra.Trivial)&&Lt.trivial(`obj[${y}]=${JSON.stringify(T)}`),sg.setInternal(d,p,y,T),!0),get:(p,y)=>(Lt.isEnabled(ra.Trivial)&&Lt.trivial(`obj[${y}]`),y==="getID"?()=>p.getCreatedAt():y==="toJSON"||y==="toString"?()=>p.toJSON():y==="toJS"?()=>p.toJS():y==="toJSForTest"?()=>p.toJSForTest():Jd(d,p.get(y))),ownKeys:p=>p.getKeys(),getOwnPropertyDescriptor:()=>({enumerable:!0,configurable:!0}),deleteProperty:(p,y)=>(Lt.isEnabled(ra.Trivial)&&Lt.trivial(`obj[${y}]`),sg.deleteInternal(d,p,y),!0)}}static setInternal(d,p,y,T){if(y.includes("."))throw new jr(xr.ErrInvalidObjectKey,"key must not contain the '.'.");const $=d.issueTimeTicket(),q=Oh(d,T,$),ne=p.set(y,q,$);d.registerElement(q,p),ne&&d.registerRemovedElement(ne),d.push(gh.create(y,q.deepcopy(),p.getCreatedAt(),$))}static buildObjectMembers(d,p){const y={};for(const[T,$]of Object.entries(p)){if(T.includes("."))throw new jr(xr.ErrInvalidObjectKey,"key must not contain the '.'.");const q=d.issueTimeTicket(),ne=Oh(d,$,q);y[T]=ne}return y}static deleteInternal(d,p,y){const T=d.issueTimeTicket(),$=p.deleteByKey(y,T);$&&(d.push(Vd.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($))}getHandlers(){return this.handlers}}function xD(O,d){const p=new Li(O,d);return new Proxy(d,p.getHandlers())}function Nb(O){return typeof O=="string"||O instanceof String?!isNaN(O):!1}function Up(O){return["concat","entries","every","filter","find","findIndex","forEach","join","keys","map","reduce","reduceRight","slice","some","toLocaleString","toString","values"].includes(O)}class Li{constructor(d,p){s(this,"context"),s(this,"handlers"),s(this,"array"),this.context=d,this.array=p,this.handlers={get:(y,T,$)=>T==="getID"?()=>y.getCreatedAt():T==="getElementByID"?q=>{const ne=y.getByID(q);if(!(!ne||ne.isRemoved()))return Gl(d,ne)}:T==="getElementByIndex"?q=>{const ne=y.get(q);return Gl(d,ne)}:T==="getLast"?()=>Gl(d,y.getLast()):T==="deleteByID"?q=>{const ne=Li.deleteInternalByID(d,y,q);return Gl(d,ne)}:T==="insertAfter"?(q,ne)=>{const me=Li.insertAfterInternal(d,y,q,ne);return Gl(d,me)}:T==="insertBefore"?(q,ne)=>{const me=Li.insertBeforeInternal(d,y,q,ne);return Gl(d,me)}:T==="moveBefore"?(q,ne)=>{Li.moveBeforeInternal(d,y,q,ne)}:T==="moveAfter"?(q,ne)=>{Li.moveAfterInternal(d,y,q,ne)}:T==="moveFront"?q=>{Li.moveFrontInternal(d,y,q)}:T==="moveLast"?q=>{Li.moveLastInternal(d,y,q)}:Nb(T)?Jd(d,y.get(Number(T))):T==="push"?q=>Li.pushInternal(d,y,q):T==="splice"?(q,ne,...me)=>Li.splice(d,y,q,ne,...me):T==="length"?y.length:typeof T=="symbol"&&T===Symbol.iterator?Li.iteratorInternal.bind(this,d,y):T==="includes"?(q,ne)=>Li.includes(d,y,q,ne):T==="indexOf"?(q,ne)=>Li.indexOf(d,y,q,ne):T==="lastIndexOf"?(q,ne)=>Li.lastIndexOf(d,y,q,ne):T==="toJSForTest"?()=>y.toJSForTest():T==="toTestString"?()=>Li.toTestString(y):typeof T=="string"&&Up(T)?(...q)=>{const ne=Array.from(y).map(me=>Jd(d,me));return Array.prototype[T].apply(ne,q)}:Reflect.get(y,T,$),deleteProperty:(y,T)=>(Lt.isEnabled(ra.Trivial)&&Lt.trivial(`array[${T}]`),Li.deleteInternalByIndex(d,y,Number.parseInt(T)),!0)}}static*iteratorInternal(d,p){for(const y of p)yield Gl(d,y)}static buildArrayElements(d,p){const y=[];for(const T of p){const $=d.issueTimeTicket(),q=Oh(d,T,$);y.push(q)}return y}static pushInternal(d,p,y){return Li.insertAfterInternal(d,p,p.getLastCreatedAt(),y),p.length}static moveBeforeInternal(d,p,y,T){const $=d.issueTimeTicket(),q=p.getPrevCreatedAt(y);p.moveAfter(q,T,$),d.push(Wd.create(p.getCreatedAt(),q,T,$))}static moveAfterInternal(d,p,y,T){const $=d.issueTimeTicket();p.moveAfter(y,T,$),d.push(Wd.create(p.getCreatedAt(),y,T,$))}static moveFrontInternal(d,p,y){const T=d.issueTimeTicket(),$=p.getHead();p.moveAfter($.getCreatedAt(),y,T),d.push(Wd.create(p.getCreatedAt(),$.getCreatedAt(),y,T))}static moveLastInternal(d,p,y){const T=d.issueTimeTicket(),$=p.getLastCreatedAt();p.moveAfter($,y,T),d.push(Wd.create(p.getCreatedAt(),$,y,T))}static insertAfterInternal(d,p,y,T){const $=d.issueTimeTicket(),q=Oh(d,T,$);return p.insertAfter(y,q),d.registerElement(q,p),d.push(Y0.create(p.getCreatedAt(),y,q.deepcopy(),$)),q}static insertBeforeInternal(d,p,y,T){return Li.insertAfterInternal(d,p,p.getPrevCreatedAt(y),T)}static deleteInternalByIndex(d,p,y){const T=d.issueTimeTicket(),$=p.deleteByIndex(y,T);if($)return d.push(Vd.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($),$}static deleteInternalByID(d,p,y){const T=d.issueTimeTicket(),$=p.delete(y,T);return d.push(Vd.create(p.getCreatedAt(),$.getCreatedAt(),T)),d.registerRemovedElement($),$}static splice(d,p,y,T,...$){const q=p.length,ne=y>=0?Math.min(y,q):Math.max(q+y,0),me=T===void 0?q:T<0?ne:Math.min(ne+T,q),Se=[];for(let ze=ne;ze=q)return!1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Jd(d,Se)).includes(y,ne);for(let me=ne;me=q)return-1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Jd(d,Se)).indexOf(y,ne);for(let me=ne;me=q?q-1:T<0?T+q:T;if(ne<0)return-1;if(Ti.isSupport(y))return Array.from(p).map(Se=>Jd(d,Se)).lastIndexOf(y,ne);for(let me=ne;me>0;me--)if((($=p.get(me))==null?void 0:$.getID())===y.getID())return me;return-1}static toTestString(d){return d.toTestString()}getHandlers(){return this.handlers}}class zp{constructor(d,p){s(this,"context"),s(this,"text"),this.context=d,this.text=p}initialize(d,p){this.context=d,this.text=p}getID(){return this.text.getID()}edit(d,p,y,T){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}if(d>p){Lt.fatal("from should be less than or equal to to");return}const $=this.text.indexRangeToPosRange(d,p);Lt.isEnabled(ra.Debug)&&Lt.debug(`EDIT: f:${d}->${$[0].toTestString()}, t:${p}->${$[1].toTestString()} c:${y}`);const q=T?na(T):void 0,ne=this.context.issueTimeTicket(),[me,,Se,ze]=this.text.edit($,y,ne,q);for(const Ct of Se)this.context.registerGCPair(Ct);return this.context.push(new X0(this.text.getCreatedAt(),$[0],$[1],me,y,q?new Map(Object.entries(q)):new Map,ne)),this.text.findIndexesFromRange(ze)}delete(d,p){return this.edit(d,p,"")}empty(){return this.edit(0,this.length,"")}setStyle(d,p,y){if(!this.context||!this.text)return Lt.fatal("it is not initialized yet"),!1;if(d>p)return Lt.fatal("from should be less than or equal to to"),!1;const T=this.text.indexRangeToPosRange(d,p);Lt.isEnabled(ra.Debug)&&Lt.debug(`STYL: f:${d}->${T[0].toTestString()}, t:${p}->${T[1].toTestString()} a:${JSON.stringify(y)}`);const $=na(y),q=this.context.issueTimeTicket(),[ne,me]=this.text.setStyle(T,$,q);for(const Se of me)this.context.registerGCPair(Se);return this.context.push(new K0(this.text.getCreatedAt(),T[0],T[1],ne,new Map(Object.entries($)),q)),!0}indexRangeToPosRange(d){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const p=this.text.indexRangeToPosRange(d[0],d[1]);return[p[0].toStruct(),p[1].toStruct()]}posRangeToIndexRange(d){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}const p=this.text.findIndexesFromRange([sl.fromStruct(d[0]),sl.fromStruct(d[1])]);return[p[0],p[1]]}toTestString(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.toTestString()}values(){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.values()}get length(){return this.text.length}getTreeByIndex(){return this.text.getTreeByIndex()}getTreeByID(){return this.text.getTreeByID()}toString(){return!this.context||!this.text?(Lt.fatal("it is not initialized yet"),""):this.text.toString()}toJSON(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSON()}toJSForTest(){if(!this.context||!this.text)throw new Error("it is not initialized yet");return this.text.toJSForTest()}createRangeForTest(d,p){if(!this.context||!this.text){Lt.fatal("it is not initialized yet");return}return this.text.indexRangeToPosRange(d,p)}}class og{constructor(d,p){s(this,"valueType"),s(this,"value"),s(this,"context"),s(this,"counter"),this.valueType=d,this.value=p}initialize(d,p){this.valueType=p.getValueType(),this.context=d,this.counter=p,this.value=p.getValue()}getID(){return this.counter.getID()}getValue(){return this.value}getValueType(){return this.valueType}increase(d){if(!this.context||!this.counter){Lt.fatal("it is not initialized yet");return}const p=this.context.issueTimeTicket(),y=Ti.of(d,p);if(!y.isNumericType())throw new TypeError(`Unsupported type of value: ${typeof y.getValue()}`);return this.counter.increase(y),this.context.push(Gd.create(this.counter.getCreatedAt(),y,p)),this}toJSForTest(){if(!this.context||!this.counter)throw new Error("it is not initialized yet");return this.counter.toJSForTest()}}function Pb(O,d,p){const{type:y}=O,T=p.issueTimeTicket();if(y===Yc){Hp(O);const{value:$}=O,q=Ya.create(Ca.of(T,0),y,$);d.append(q)}else{const{children:$=[]}=O;let{attributes:q}=O,ne;if(typeof q=="object"&&!ha(q)){q=na(q),ne=new qc;for(const[Se,ze]of Object.entries(q))ne.set(Se,ze,T)}const me=Ya.create(Ca.of(T,0),y,void 0,ne);d.append(me);for(const Se of $)Pb(Se,me,p)}}function jp(O,d){const{type:p}=d,y=O.issueTimeTicket();let T;if(d.type===Yc){const{value:$}=d;T=Ya.create(Ca.of(y,0),p,$)}else if(d){const{children:$=[]}=d;let{attributes:q}=d,ne;if(typeof q=="object"&&!ha(q)){q=na(q),ne=new qc;for(const[me,Se]of Object.entries(q))ne.set(me,Se,y)}T=Ya.create(Ca.of(O.issueTimeTicket(),0),p,void 0,ne);for(const me of $)Pb(me,T,O)}return T}function Hp(O){if(!O.value.length)throw new Error("text node cannot have empty value");return!0}function sC(O){if(!O.length)return!0;if(O[0].type===Yc)for(const p of O){const{type:y}=p;if(y!==Yc)throw new Error("element node and text node cannot be passed together");Hp(p)}else for(const p of O){const{type:y}=p;if(y===Yc)throw new Error("element node and text node cannot be passed together")}return!0}class Vp{constructor(d){s(this,"initialRoot"),s(this,"context"),s(this,"tree"),this.initialRoot=d}initialize(d,p){this.context=d,this.tree=p}getID(){return this.tree.getID()}buildRoot(d){if(!this.initialRoot)return Ya.create(Ca.of(d.issueTimeTicket(),0),iD);const p=Ya.create(Ca.of(d.issueTimeTicket(),0),this.initialRoot.type);for(const y of this.initialRoot.children)Pb(y,p,d);return p}getSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getSize()}getNodeSize(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getNodeSize()}getIndexTree(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getIndexTree()}styleByPath(d,p){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(!d.length)throw new Error("path should not be empty");const[y,T]=this.tree.pathToPosRange(d),$=this.context.issueTimeTicket(),q=p?na(p):void 0,[ne]=this.tree.style([y,T],q,$);this.context.push(Gu.create(this.tree.getCreatedAt(),y,T,ne,q?new Map(Object.entries(q)):new Map,$))}style(d,p,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const T=this.tree.findPos(d),$=this.tree.findPos(p),q=this.context.issueTimeTicket(),ne=y?na(y):void 0,[me,Se]=this.tree.style([T,$],ne,q);for(const ze of Se)this.context.registerGCPair(ze);this.context.push(Gu.create(this.tree.getCreatedAt(),T,$,me,ne?new Map(Object.entries(ne)):new Map,q))}removeStyle(d,p,y){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const T=this.tree.findPos(d),$=this.tree.findPos(p),q=this.context.issueTimeTicket(),[ne,me]=this.tree.removeStyle([T,$],y,q);for(const Se of me)this.context.registerGCPair(Se);this.context.push(Gu.createTreeRemoveStyleOperation(this.tree.getCreatedAt(),T,$,ne,y,q))}editInternal(d,p,y,T=0){var $;if(y.length!==0&&y[0]&&(sC(y),y[0].type!==Yc))for(const ze of y){const{children:Ct=[]}=ze;sC(Ct)}const q=this.context.getLastTimeTicket();let ne=new Array;if((($=y[0])==null?void 0:$.type)===Yc){let ze="";for(const Ct of y){const{value:St}=Ct;ze+=St}ne.push(Ya.create(Ca.of(this.context.issueTimeTicket(),0),Yc,ze))}else ne=y.map(ze=>ze&&jp(this.context,ze)).filter(ze=>ze);const[,me,Se]=this.tree.edit([d,p],ne.length?ne.map(ze=>ze==null?void 0:ze.deepcopy()):void 0,T,q,()=>this.context.issueTimeTicket());for(const ze of me)this.context.registerGCPair(ze);return this.context.push(Do.create(this.tree.getCreatedAt(),d,p,ne.length?ne:void 0,T,Se,q)),!0}editByPath(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d.length!==p.length)throw new Error("path length should be equal");if(!d.length||!p.length)throw new Error("path should not be empty");const $=this.tree.pathToPos(d),q=this.tree.pathToPos(p);return this.editInternal($,q,y?[y]:[],T)}editBulkByPath(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d.length!==p.length)throw new Error("path length should be equal");if(!d.length||!p.length)throw new Error("path should not be empty");const $=this.tree.pathToPos(d),q=this.tree.pathToPos(p);return this.editInternal($,q,y,T)}edit(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const $=this.tree.findPos(d),q=this.tree.findPos(p);return this.editInternal($,q,y?[y]:[],T)}editBulk(d,p,y,T=0){if(!this.context||!this.tree)throw new Error("it is not initialized yet");if(d>p)throw new Error("from should be less than or equal to to");const $=this.tree.findPos(d),q=this.tree.findPos(p);return this.editInternal($,q,y,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()}toJSForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSForTest()}toJSInfoForTest(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.toJSInfoForTest()}getRootTreeNode(){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.getRootTreeNode()}indexToPath(d){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.indexToPath(d)}pathToIndex(d){if(!this.context||!this.tree)throw new Error("it is not initialized yet");return this.tree.pathToIndex(d)}pathRangeToPosRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const p=[this.tree.pathToIndex(d[0]),this.tree.pathToIndex(d[1])],y=this.tree.indexRangeToPosRange(p);return[y[0].toStruct(),y[1].toStruct()]}indexRangeToPosRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}return this.tree.indexRangeToPosStructRange(d)}posRangeToIndexRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const p=[Wl.fromStruct(d[0]),Wl.fromStruct(d[1])];return this.tree.posRangeToIndexRange(p)}posRangeToPathRange(d){if(!this.context||!this.tree){Lt.fatal("it is not initialized yet");return}const p=[Wl.fromStruct(d[0]),Wl.fromStruct(d[1])];return this.tree.posRangeToPathRange(p)}}function JS(O,d){return ql(O,d)}function Gl(O,d){if(d){if(d instanceof Ti)return d;if(d instanceof se)return ql(O,d);if(d instanceof Io)return xD(O,d);if(d instanceof il)return new zp(O,d);if(d instanceof ri){const p=new og(Ql.IntegerCnt,0);return p.initialize(O,d),p}else if(d instanceof al){const p=new Vp;return p.initialize(O,d),p}}else return;throw new TypeError(`Unsupported type of element: ${typeof d}`)}function Jd(O,d){const p=Gl(O,d);return p instanceof Ti?p.getValue():p}function Oh(O,d,p){let y;if(Ti.isSupport(d))y=Ti.of(d,p);else if(Array.isArray(d))y=Io.create(p,Li.buildArrayElements(O,d));else if(typeof d=="object")d instanceof zp?(y=il.create(Zc.create(),p),d.initialize(O,y)):d instanceof og?(y=ri.create(d.getValueType(),d.getValue(),p),d.initialize(O,y)):d instanceof Vp?(y=al.create(d.buildRoot(O),p),d.initialize(O,y)):y=se.create(p,sg.buildObjectMembers(O,d));else throw new TypeError(`Unsupported type of value: ${typeof d}`);return y}const Mb=50;class Lb{constructor(){s(this,"undoStack",[]),s(this,"redoStack",[])}hasUndo(){return this.undoStack.length>0}hasRedo(){return this.redoStack.length>0}pushUndo(d){this.undoStack.length>=Mb&&this.undoStack.shift(),this.undoStack.push(d)}popUndo(){return this.undoStack.pop()}pushRedo(d){this.redoStack.length>=Mb&&this.redoStack.shift(),this.redoStack.push(d)}popRedo(){return this.redoStack.pop()}clearRedo(){this.redoStack=[]}getUndoStackForTest(){return this.undoStack}getRedoStackForTest(){return this.redoStack}}const oC="yorkie-devtools-panel",eE="yorkie-devtools-sdk";let Xc="disconnected";const tE=new Map,Wp=new Map;typeof window<"u"&&(window.transactionEventsByDocKey=Wp);function $b(O,d){(d!=null&&d.force||Xc!=="disconnected")&&window.postMessage({source:eE,...O},"*")}function lC(O){if(!O.isEnableDevtools()||typeof window>"u"||tE.has(O.getKey()))return;Wp.set(O.getKey(),[]);const d=O.subscribe("all",p=>{p.some(y=>y.type!==ys.StatusChanged&&y.type!==ys.Snapshot&&y.type!==ys.LocalChange&&y.type!==ys.RemoteChange&&y.type!==ys.Initialized&&y.type!==ys.Watched&&y.type!==ys.Unwatched&&y.type!==ys.PresenceChanged)||(Wp.get(O.getKey()).push(p),Xc==="synced"&&$b({msg:"doc::sync::partial",docKey:O.getKey(),event:p}))});tE.set(O.getKey(),[d]),$b({msg:"refresh-devtools"},{force:!0}),window.addEventListener("message",p=>{var y;if(((y=p.data)==null?void 0:y.source)!==oC)return;switch(p.data.msg){case"devtools::connect":if(Xc!=="disconnected")break;Xc="connected",$b({msg:"doc::available",docKey:O.getKey()}),Lt.info(`[YD] Devtools connected. Doc: ${O.getKey()}`);break;case"devtools::disconnect":Xc="disconnected",Lt.info(`[YD] Devtools disconnected. Doc: ${O.getKey()}`);break;case"devtools::subscribe":Xc="synced",$b({msg:"doc::sync::full",docKey:O.getKey(),events:Wp.get(O.getKey())}),Lt.info(`[YD] Devtools subscribed. Doc: ${O.getKey()}`);break}})}var Za=(O=>(O.Detached="detached",O.Attached="attached",O.Removed="removed",O))(Za||{}),ys=(O=>(O.StatusChanged="status-changed",O.ConnectionChanged="connection-changed",O.SyncStatusChanged="sync-status-changed",O.Snapshot="snapshot",O.LocalChange="local-change",O.RemoteChange="remote-change",O.Initialized="initialized",O.Watched="watched",O.Unwatched="unwatched",O.PresenceChanged="presence-changed",O))(ys||{}),lg=(O=>(O.Connected="connected",O.Disconnected="disconnected",O))(lg||{}),Fb=(O=>(O.Synced="synced",O.SyncFailed="sync-failed",O))(Fb||{});class Bb{constructor(d,p){s(this,"key"),s(this,"status"),s(this,"opts"),s(this,"changeID"),s(this,"checkpoint"),s(this,"localChanges"),s(this,"root"),s(this,"clone"),s(this,"eventStream"),s(this,"eventStreamObserver"),s(this,"onlineClients"),s(this,"presences"),s(this,"history"),s(this,"internalHistory"),s(this,"isUpdating"),this.opts=p||{},this.key=d,this.status="detached",this.root=ja.create(),this.changeID=bh,this.checkpoint=jk,this.localChanges=[],this.eventStream=aC(y=>{this.eventStreamObserver=y}),this.onlineClients=new Set,this.presences=new Map,this.isUpdating=!1,this.internalHistory=new Lb,this.history={canUndo:this.canUndo.bind(this),canRedo:this.canRedo.bind(this),undo:this.undo.bind(this),redo:this.redo.bind(this)},lC(this)}update(d,p){if(this.getStatus()==="removed")throw new jr(xr.ErrDocumentRemoved,`${this.key} is removed`);this.ensureClone();const y=this.changeID.getActorID(),T=vh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(y)||{},p);try{const $=JS(T,this.clone.root.getObject());this.presences.has(y)||this.clone.presences.set(y,{}),this.isUpdating=!0,d($,new hb(T,this.clone.presences.get(y)))}catch($){throw this.clone=void 0,Lt.error($),$}finally{this.isUpdating=!1}if(T.hasChange()){Lt.isEnabled(ra.Trivial)&&Lt.trivial(`trying to update a local change: ${this.toJSON()}`);const $=T.getChange(),{opInfos:q,reverseOps:ne}=$.execute(this.root,this.presences,$r.Local),me=T.getReversePresence();me&&ne.push({type:"presence",value:me}),this.localChanges.push($),ne.length>0&&this.internalHistory.pushUndo(ne),q.length>0&&this.internalHistory.clearRedo(),this.changeID=$.getID();const Se=[];q.length>0&&Se.push({type:"local-change",source:$r.Local,value:{message:$.getMessage()||"",operations:q,actor:y,clientSeq:$.getID().getClientSeq(),serverSeq:$.getID().getServerSeq()},rawChange:this.isEnableDevtools()?$.toStruct():void 0}),$.hasPresenceChange()&&Se.push({type:"presence-changed",source:$r.Local,value:{clientID:y,presence:this.getPresence(y)}}),this.publish(Se),Lt.isEnabled(ra.Trivial)&&Lt.trivial(`after update a local change: ${this.toJSON()}`)}}subscribe(d,p,y,T){if(typeof d=="string"){if(typeof p!="function")throw new Error("Second argument must be a callback function");if(d==="presence"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="initialized"&&Se.type!=="watched"&&Se.type!=="unwatched"&&Se.type!=="presence-changed"||ne(Se)},y,T)}if(d==="my-presence"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="initialized"&&Se.type!=="presence-changed"||Se.type==="presence-changed"&&Se.value.clientID!==this.changeID.getActorID()||ne(Se)},y,T)}if(d==="others"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="watched"&&Se.type!=="unwatched"&&Se.type!=="presence-changed"||Se.value.clientID!==this.changeID.getActorID()&&ne(Se)},y,T)}if(d==="connection"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="connection-changed"&&ne(Se)},y,T)}if(d==="status"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="status-changed"&&ne(Se)},y,T)}if(d==="sync"){const ne=p;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type==="sync-status-changed"&&ne(Se)},y,T)}if(d==="all"){const ne=p;return this.eventStream.subscribe(ne,y,T)}const $=d,q=p;return this.eventStream.subscribe(ne=>{for(const me of ne){if(me.type!=="local-change"&&me.type!=="remote-change")continue;const Se=[];for(const ze of me.value.operations)this.isSameElementOrChildOf(ze.path,$)&&Se.push(ze);Se.length&&q({...me,value:{...me.value,operations:Se}})}},y,T)}if(typeof d=="function"){const $=d,q=p,ne=y;return this.eventStream.subscribe(me=>{for(const Se of me)Se.type!=="snapshot"&&Se.type!=="local-change"&&Se.type!=="remote-change"||$(Se)},q,ne)}throw new Error(`"${d}" is not a valid`)}publish(d){this.eventStreamObserver&&this.eventStreamObserver.next(d)}isSameElementOrChildOf(d,p){if(p===d)return!0;const y=d.split(".");return p.split(".").every(($,q)=>$===y[q])}applyChangePack(d){for(d.hasSnapshot()?this.applySnapshot(d.getCheckpoint().getServerSeq(),d.getSnapshot()):d.hasChanges()&&this.applyChanges(d.getChanges(),$r.Remote);this.localChanges.length&&!(this.localChanges[0].getID().getClientSeq()>d.getCheckpoint().getClientSeq());)this.localChanges.shift();d.hasSnapshot()&&this.applyChanges(this.localChanges,$r.Remote),this.checkpoint=this.checkpoint.forward(d.getCheckpoint()),this.garbageCollect(d.getMinSyncedTicket()),d.getIsRemoved()&&this.applyStatus("removed"),Lt.isEnabled(ra.Trivial)&&Lt.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:jl(this.presences)})}createChangePack(){const d=Array.from(this.localChanges),p=this.checkpoint.increaseClientSeq(d.length);return gb.create(this.key,p,!1,d)}setActor(d){for(const p of this.localChanges)p.setActor(d);this.changeID=this.changeID.setActor(d)}isEnableDevtools(){return!!this.opts.enableDevtools}getKey(){return this.key}getStatus(){return this.status}getCloneRoot(){if(this.clone)return this.clone.root.getObject()}getRoot(){this.ensureClone();const d=vh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});return JS(d,this.clone.root.getObject())}garbageCollect(d){return this.opts.disableGC?0:(this.clone&&this.clone.root.garbageCollect(d),this.root.garbageCollect(d))}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(d,p){const{root:y,presences:T}=pa.bytesToSnapshot(p);this.root=new ja(y),this.presences=T,this.changeID=this.changeID.syncLamport(d),this.clone=void 0,this.publish([{type:"snapshot",source:$r.Remote,value:{snapshot:this.isEnableDevtools()?pa.bytesToHex(p):void 0,serverSeq:d.toString()}}])}applyChanges(d,p){Lt.isEnabled(ra.Debug)&&Lt.debug(`trying to apply ${d.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`),Lt.isEnabled(ra.Trivial)&&Lt.trivial(d.map(y=>`${y.getID().toTestString()} ${y.toTestString()}`).join(` -`));for(const y of d)this.applyChange(y,p);Lt.isEnabled(ra.Debug)&&Lt.debug(`after appling ${d.length} remote changes.elements:${this.root.getElementMapSize()}, removeds:${this.root.getGarbageElementSetSize()}`)}applyChange(d,p){this.ensureClone(),d.execute(this.clone.root,this.clone.presences,p);const y=[],T=d.getID().getActorID();if(d.hasPresenceChange()&&this.onlineClients.has(T)){const q=d.getPresenceChange();switch(q.type){case jd.Put:y.push(this.presences.has(T)?{type:"presence-changed",source:p,value:{clientID:T,presence:q.presence}}:{type:"watched",source:$r.Remote,value:{clientID:T,presence:q.presence}});break;case jd.Clear:y.push({type:"unwatched",source:$r.Remote,value:{clientID:T,presence:this.getPresence(T)}}),this.removeOnlineClient(T);break}}const{opInfos:$}=d.execute(this.root,this.presences,p);if(this.changeID=this.changeID.syncLamport(d.getID().getLamport()),$.length>0){const q=this.isEnableDevtools()?d.toStruct():void 0;y.push(p===$r.Remote?{type:"remote-change",source:p,value:{actor:T,clientSeq:d.getID().getClientSeq(),serverSeq:d.getID().getServerSeq(),message:d.getMessage()||"",operations:$},rawChange:q}:{type:"local-change",source:p,value:{actor:T,clientSeq:d.getID().getClientSeq(),serverSeq:d.getID().getServerSeq(),message:d.getMessage()||"",operations:$},rawChange:q})}y.length>0&&this.publish(y)}applyWatchStream(d){if(d.body.case==="initialization"){const p=d.body.value.clientIds,y=new Set;for(const T of p)T!==this.changeID.getActorID()&&y.add(T);this.setOnlineClients(y),this.publish([{type:"initialized",source:$r.Local,value:this.getPresences()}]);return}if(d.body.case==="event"){const{type:p,publisher:y}=d.body.value,T=[];if(p===Fl.DOCUMENT_WATCHED)this.addOnlineClient(y),this.hasPresence(y)&&T.push({type:"watched",source:$r.Remote,value:{clientID:y,presence:this.getPresence(y)}});else if(p===Fl.DOCUMENT_UNWATCHED){const $=this.getPresence(y);this.removeOnlineClient(y),$&&T.push({type:"unwatched",source:$r.Remote,value:{clientID:y,presence:$}})}T.length>0&&this.publish(T)}}applyStatus(d){this.status=d,d==="detached"&&this.setActor(pb),this.publish([{source:d==="removed"?$r.Remote:$r.Local,type:"status-changed",value:d==="attached"?{status:d,actorID:this.changeID.getActorID()}:{status:d}}])}applyDocEvent(d){if(d.type==="status-changed"){this.applyStatus(d.value.status),d.value.status==="attached"&&this.setActor(d.value.actorID);return}if(d.type==="snapshot"){const{snapshot:p,serverSeq:y}=d.value;if(!p)return;this.applySnapshot(Zn.fromString(y),pa.hexToBytes(p));return}if(d.type==="local-change"||d.type==="remote-change"){if(!d.rawChange)return;const p=za.fromStruct(d.rawChange);this.applyChange(p,d.source)}if(d.type==="initialized"){const p=new Set;for(const{clientID:y,presence:T}of d.value)p.add(y),this.presences.set(y,T);this.setOnlineClients(p);return}if(d.type==="watched"){const{clientID:p,presence:y}=d.value;this.addOnlineClient(p),this.presences.set(p,y);return}if(d.type==="unwatched"){const{clientID:p}=d.value;this.removeOnlineClient(p),this.presences.delete(p)}if(d.type==="presence-changed"){const{clientID:p,presence:y}=d.value;this.presences.set(p,y)}}applyTransactionEvent(d){for(const p of d)this.applyDocEvent(p)}getValueByPath(d){if(!d.startsWith("$"))throw new jr(xr.ErrInvalidArgument,'path must start with "$"');const p=d.split(".");p.shift();let y=this.getRoot();for(const T of p)if(y=y[T],y===void 0)return;return y}setOnlineClients(d){this.onlineClients=d}resetOnlineClients(){this.onlineClients=new Set}addOnlineClient(d){this.onlineClients.add(d)}removeOnlineClient(d){this.onlineClients.delete(d)}hasPresence(d){return this.presences.has(d)}getMyPresence(){if(this.status!=="attached")return{};const d=this.presences.get(this.changeID.getActorID());return d?jl(d):{}}getPresence(d){if(d===this.changeID.getActorID())return this.getMyPresence();if(!this.onlineClients.has(d))return;const p=this.presences.get(d);return p?jl(p):void 0}getPresenceForTest(d){const p=this.presences.get(d);return p?jl(p):void 0}getPresences(){const d=[];d.push({clientID:this.changeID.getActorID(),presence:jl(this.getMyPresence())});for(const p of this.onlineClients)this.presences.has(p)&&d.push({clientID:p,presence:jl(this.presences.get(p))});return d}getSelfForTest(){return{clientID:this.getChangeID().getActorID(),presence:this.getMyPresence()}}getOthersForTest(){const d=this.getChangeID().getActorID();return this.getPresences().filter(p=>p.clientID!==d).sort((p,y)=>p.clientID>y.clientID?1:-1)}canUndo(){return this.internalHistory.hasUndo()&&!this.isUpdating}canRedo(){return this.internalHistory.hasRedo()&&!this.isUpdating}undo(){if(this.isUpdating)throw new Error("Undo is not allowed during an update");const d=this.internalHistory.popUndo();if(d===void 0)throw new Error("There is no operation to be undone");this.ensureClone();const p=vh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Se of d){if(!(Se instanceof so)){new hb(p,jl(this.clone.presences.get(this.changeID.getActorID()))).set(Se.value,{addToHistory:!0});continue}const ze=p.issueTimeTicket();Se.setExecutedAt(ze),p.push(Se)}const y=p.getChange();y.execute(this.clone.root,this.clone.presences,$r.UndoRedo);const{opInfos:T,reverseOps:$}=y.execute(this.root,this.presences,$r.UndoRedo),q=p.getReversePresence();if(q&&$.push({type:"presence",value:q}),$.length>0&&this.internalHistory.pushRedo($),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const ne=this.changeID.getActorID(),me=[];T.length>0&&me.push({type:"local-change",source:$r.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:ne,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&me.push({type:"presence-changed",source:$r.UndoRedo,value:{clientID:ne,presence:this.getPresence(ne)}}),this.publish(me)}redo(){if(this.isUpdating)throw new Error("Redo is not allowed during an update");const d=this.internalHistory.popRedo();if(d===void 0)throw new Error("There is no operation to be redone");this.ensureClone();const p=vh.create(this.changeID.next(),this.clone.root,this.clone.presences.get(this.changeID.getActorID())||{});for(const Se of d){if(!(Se instanceof so)){new hb(p,jl(this.clone.presences.get(this.changeID.getActorID()))).set(Se.value,{addToHistory:!0});continue}const ze=p.issueTimeTicket();Se.setExecutedAt(ze),p.push(Se)}const y=p.getChange();y.execute(this.clone.root,this.clone.presences,$r.UndoRedo);const{opInfos:T,reverseOps:$}=y.execute(this.root,this.presences,$r.UndoRedo),q=p.getReversePresence();if(q&&$.push({type:"presence",value:q}),$.length>0&&this.internalHistory.pushUndo($),!y.hasPresenceChange()&&T.length===0)return;this.localChanges.push(y),this.changeID=y.getID();const ne=this.changeID.getActorID(),me=[];T.length>0&&me.push({type:"local-change",source:$r.UndoRedo,value:{message:y.getMessage()||"",operations:T,actor:ne,clientSeq:y.getID().getClientSeq(),serverSeq:y.getID().getServerSeq()},rawChange:this.isEnableDevtools()?y.toStruct():void 0}),y.hasPresenceChange()&&me.push({type:"presence-changed",source:$r.UndoRedo,value:{clientID:ne,presence:this.getPresence(ne)}}),this.publish(me)}getUndoStackForTest(){return this.internalHistory.getUndoStackForTest()}getRedoStackForTest(){return this.internalHistory.getRedoStackForTest()}}function TD(O,d){return p=>async y=>(O&&y.header.set("x-api-key",O),d&&y.header.set("authorization",d),await p(y))}const iE={name:"yorkie-js-sdk",version:"0.4.27",description:"Yorkie JS SDK",main:"./dist/yorkie-js-sdk.js",typings:"./dist/yorkie-js-sdk.d.ts",files:["dist"],scripts:{build:"tsc && vite build","build:proto":"npx buf generate","build:docs":"typedoc","build:examples":"npm run build --workspace examples","build:ghpages":"mkdir -p ghpages/examples && cp -r docs ghpages/api-reference && find examples -name 'dist' -type d -exec sh -c 'cp -r {} ghpages/examples/$(basename $(dirname {}))' \\;",dev:"vite build -c vite.preview.ts && vite preview",test:"vitest run","test:watch":"vitest","test:bench":"vitest bench","test:ci":"vitest run --coverage","test:yorkie.dev":"TEST_RPC_ADDR=https://api.yorkie.dev vitest run --coverage",lint:"eslint . --fix --max-warnings=0 --ext .ts",prepare:"npm run build"},engines:{node:">=18.0.0",npm:">=7.1.0"},repository:{type:"git",url:"git+https://github.com/yorkie-team/yorkie-js-sdk.git"},author:{name:"hackerwins",email:"susukang98@gmail.com"},license:"Apache-2.0",bugs:{url:"https://github.com/yorkie-team/yorkie-js-sdk/issues"},homepage:"https://github.com/yorkie-team/yorkie-js-sdk#readme",devDependencies:{"@buf/googleapis_googleapis.connectrpc_es":"^1.4.0-20240524201209-f0e53af8f2fc.3","@bufbuild/buf":"^1.28.1","@bufbuild/protoc-gen-es":"^1.6.0","@connectrpc/protoc-gen-connect-es":"^1.4.0","@types/google-protobuf":"^3.15.5","@types/long":"^4.0.1","@typescript-eslint/eslint-plugin":"^5.30.6","@typescript-eslint/parser":"^5.30.6","@vitest/coverage-istanbul":"^0.34.5","@vitest/coverage-v8":"^0.34.5",eslint:"^8.19.0","eslint-plugin-jsdoc":"^39.3.3","eslint-plugin-prettier":"^4.2.1","eslint-plugin-tsdoc":"^0.2.16",husky:"^8.0.3",prettier:"^2.7.1","ts-node":"^10.9.1",typedoc:"^0.25.13",typescript:"^4.7.4","typescript-transform-paths":"^3.3.1",vite:"^4.4.9","vite-plugin-commonjs":"^0.10.1","vite-plugin-dts":"^3.9.1","vite-tsconfig-paths":"^4.2.1",vitest:"^0.34.5"},dependencies:{"@bufbuild/protobuf":"^1.6.0","@connectrpc/connect":"^1.4.0","@connectrpc/connect-web":"^1.4.0",long:"^5.2.0"},husky:{hooks:{"pre-commit":"npm run lint"}},workspaces:["examples/*"]};function CD(){return O=>async d=>(d.header.set("x-yorkie-user-agent",iE.name+"/"+iE.version),await O(d))}var qp=(O=>(O.Manual="manual",O.Realtime="realtime",O.RealtimePushOnly="realtime-pushonly",O.RealtimeSyncOff="realtime-syncoff",O))(qp||{}),pC=(O=>(O.Deactivated="deactivated",O.Activated="activated",O))(pC||{}),mC=(O=>(O.SyncLoop="SyncLoop",O.WatchLoop="WatchLoop",O))(mC||{});const Ub={syncLoopDuration:50,retrySyncLoopDelay:1e3,reconnectStreamDelay:1e3};class Yl{constructor(d,p){s(this,"id"),s(this,"key"),s(this,"status"),s(this,"attachmentMap"),s(this,"apiKey"),s(this,"conditions"),s(this,"syncLoopDuration"),s(this,"reconnectStreamDelay"),s(this,"retrySyncLoopDelay"),s(this,"rpcClient"),s(this,"taskQueue"),s(this,"processing",!1),p=p||Ub,this.key=p.key?p.key:rC(),this.status="deactivated",this.attachmentMap=new Map,this.apiKey=p.apiKey||"",this.conditions={SyncLoop:!1,WatchLoop:!1},this.syncLoopDuration=p.syncLoopDuration||Ub.syncLoopDuration,this.reconnectStreamDelay=p.reconnectStreamDelay||Ub.reconnectStreamDelay,this.retrySyncLoopDelay=p.retrySyncLoopDelay||Ub.retrySyncLoopDelay,this.rpcClient=D6(tD,SS({baseUrl:d,interceptors:[TD(p.apiKey,p.token),CD()]})),this.taskQueue=[]}activate(){return this.isActive()?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.activateClient({clientKey:this.key},{headers:{"x-shard-key":this.apiKey}}).then(d=>{this.id=d.clientId,this.status="activated",this.runSyncLoop(),Lt.info(`[AC] c:"${this.getKey()}" activated, id:"${this.id}"`)}).catch(d=>{throw Lt.error(`[AC] c:"${this.getKey()}" err :`,d),this.handleConnectError(d),d}))}deactivate(){return this.status==="deactivated"?Promise.resolve():this.enqueueTask(async()=>this.rpcClient.deactivateClient({clientId:this.id},{headers:{"x-shard-key":this.apiKey}}).then(()=>{this.deactivateInternal(),Lt.info(`[DC] c"${this.getKey()}" deactivated`)}).catch(d=>{throw Lt.error(`[DC] c:"${this.getKey()}" err :`,d),this.handleConnectError(d),d}))}attach(d,p={}){if(!this.isActive())throw new jr(xr.ErrClientNotActivated,`${this.key} is not active`);if(d.getStatus()!==Za.Detached)throw new jr(xr.ErrDocumentNotDetached,`${d.getKey()} is not detached`);d.setActor(this.id),d.update((T,$)=>$.set(p.initialPresence||{}));const y=p.syncMode??"realtime";return this.enqueueTask(async()=>this.rpcClient.attachDocument({clientId:this.id,changePack:pa.toChangePack(d.createChangePack())},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(async T=>{const $=pa.fromChangePack(T.changePack);return d.applyChangePack($),d.getStatus()===Za.Removed||(d.applyStatus(Za.Attached),this.attachmentMap.set(d.getKey(),new iC(this.reconnectStreamDelay,d,T.documentId,y)),y!=="manual"&&await this.runWatchLoop(d.getKey()),Lt.info(`[AD] c:"${this.getKey()}" attaches d:"${d.getKey()}"`)),d}).catch(T=>{throw Lt.error(`[AD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}detach(d,p={}){if(!this.isActive())throw new jr(xr.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(d.getKey());if(!y)throw new jr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);return d.update((T,$)=>$.clear()),this.enqueueTask(async()=>this.rpcClient.detachDocument({clientId:this.id,documentId:y.docID,changePack:pa.toChangePack(d.createChangePack()),removeIfNotAttached:p.removeIfNotAttached??!1},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(T=>{const $=pa.fromChangePack(T.changePack);return d.applyChangePack($),d.getStatus()!==Za.Removed&&d.applyStatus(Za.Detached),this.detachInternal(d.getKey()),Lt.info(`[DD] c:"${this.getKey()}" detaches d:"${d.getKey()}"`),d}).catch(T=>{throw Lt.error(`[DD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}async changeSyncMode(d,p){if(!this.isActive())throw new jr(xr.ErrClientNotActivated,`${this.key} is not active`);const y=this.attachmentMap.get(d.getKey());if(!y)throw new jr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);const T=y.syncMode;return T===p?d:(y.changeSyncMode(p),p==="manual"?(y.cancelWatchStream(),d):(p==="realtime"&&(y.remoteChangeEventReceived=!0),T==="manual"&&await this.runWatchLoop(d.getKey()),d))}sync(d){if(!this.isActive())throw new jr(xr.ErrClientNotActivated,`${this.key} is not active`);if(d){const p=this.attachmentMap.get(d.getKey());if(!p)throw new jr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);return this.enqueueTask(async()=>this.syncInternal(p,"realtime").catch(y=>{throw Lt.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y}))}return this.enqueueTask(async()=>{const p=[];for(const[,y]of this.attachmentMap)p.push(this.syncInternal(y,y.syncMode));return Promise.all(p).catch(y=>{throw Lt.error(`[SY] c:"${this.getKey()}" err :`,y),this.handleConnectError(y),y})})}remove(d){if(!this.isActive())throw new jr(xr.ErrClientNotActivated,`${this.key} is not active`);const p=this.attachmentMap.get(d.getKey());if(!p)throw new jr(xr.ErrDocumentNotAttached,`${d.getKey()} is not attached`);d.setActor(this.id);const y=pa.toChangePack(d.createChangePack());return y.isRemoved=!0,this.enqueueTask(async()=>this.rpcClient.removeDocument({clientId:this.id,documentId:p.docID,changePack:y},{headers:{"x-shard-key":`${this.apiKey}/${d.getKey()}`}}).then(T=>{const $=pa.fromChangePack(T.changePack);d.applyChangePack($),this.detachInternal(d.getKey()),Lt.info(`[RD] c:"${this.getKey()}" removes d:"${d.getKey()}"`)}).catch(T=>{throw Lt.error(`[RD] c:"${this.getKey()}" err :`,T),this.handleConnectError(T),T}))}getID(){return this.id}getKey(){return this.key}isActive(){return this.status==="activated"}getStatus(){return this.status}getCondition(d){return this.conditions[d]}runSyncLoop(){const d=()=>{if(!this.isActive()){Lt.debug(`[SL] c:"${this.getKey()}" exit sync loop`),this.conditions.SyncLoop=!1;return}const p=[];for(const[,y]of this.attachmentMap)y.needRealtimeSync()&&(y.remoteChangeEventReceived=!1,p.push(this.syncInternal(y,y.syncMode)));Promise.all(p).then(()=>setTimeout(d,this.syncLoopDuration)).catch(y=>{Lt.error(`[SL] c:"${this.getKey()}" sync failed:`,y),this.handleConnectError(y)?setTimeout(d,this.retrySyncLoopDelay):this.conditions.SyncLoop=!1})};Lt.debug(`[SL] c:"${this.getKey()}" run sync loop`),this.conditions.SyncLoop=!0,d()}async runWatchLoop(d){const p=this.attachmentMap.get(d);if(!p)throw new jr(xr.ErrDocumentNotAttached,`${d} is not attached`);return this.conditions.WatchLoop=!0,p.runWatchLoop(y=>{if(!this.isActive())return this.conditions.WatchLoop=!1,Promise.reject(new jr(xr.ErrClientNotActivated,`${this.key} is not active`));const T=new AbortController,$=this.rpcClient.watchDocument({clientId:this.id,documentId:p.docID},{headers:{"x-shard-key":`${this.apiKey}/${d}`},signal:T.signal});return p.doc.publish([{type:ys.ConnectionChanged,value:lg.Connected}]),Lt.info(`[WD] c:"${this.getKey()}" watches d:"${d}"`),new Promise((q,ne)=>{(async()=>{try{for await(const Se of $)this.handleWatchDocumentsResponse(p,Se),Se.body.case==="initialization"&&q([$,T])}catch(Se){p.doc.resetOnlineClients(),p.doc.publish([{type:ys.Initialized,source:$r.Local,value:p.doc.getPresences()}]),p.doc.publish([{type:ys.ConnectionChanged,value:lg.Disconnected}]),Lt.debug(`[WD] c:"${this.getKey()}" unwatches`),this.handleConnectError(Se)?y():this.conditions.WatchLoop=!1,ne(Se)}})()})})}handleWatchDocumentsResponse(d,p){if(p.body.case==="event"&&p.body.value.type===Fl.DOCUMENT_CHANGED){d.remoteChangeEventReceived=!0;return}d.doc.applyWatchStream(p)}deactivateInternal(){this.status="deactivated";for(const[d,p]of this.attachmentMap)this.detachInternal(d),p.doc.applyStatus(Za.Detached)}detachInternal(d){const p=this.attachmentMap.get(d);p&&(p.cancelWatchStream(),this.attachmentMap.delete(d))}syncInternal(d,p){const{doc:y,docID:T}=d,$=y.createChangePack();return this.rpcClient.pushPullChanges({clientId:this.id,documentId:T,changePack:pa.toChangePack($),pushOnly:p==="realtime-pushonly"},{headers:{"x-shard-key":`${this.apiKey}/${y.getKey()}`}}).then(q=>{const ne=pa.fromChangePack(q.changePack);if(ne.hasChanges()&&(d.syncMode==="realtime-pushonly"||d.syncMode==="realtime-syncoff"))return y;y.applyChangePack(ne),d.doc.publish([{type:ys.SyncStatusChanged,value:Fb.Synced}]),y.getStatus()===Za.Removed&&this.detachInternal(y.getKey());const me=y.getKey(),Se=ne.getChangeSize();return Lt.info(`[PP] c:"${this.getKey()}" sync d:"${me}", push:${$.getChangeSize()} pull:${Se} cp:${ne.getCheckpoint().toTestString()}`),y}).catch(q=>{throw y.publish([{type:ys.SyncStatusChanged,value:Fb.SyncFailed}]),Lt.error(`[PP] c:"${this.getKey()}" err :`,q),q})}handleConnectError(d){return d instanceof u?d.code===o.Canceled||d.code===o.Unknown||d.code===o.ResourceExhausted||d.code===o.Unavailable?!0:((WS(d)===xr.ErrClientNotActivated||WS(d)===xr.ErrClientNotFound)&&this.deactivateInternal(),!1):!1}enqueueTask(d){return new Promise((p,y)=>{this.taskQueue.push(()=>d().then(p).catch(y)),this.processing||this.processNext()})}async processNext(){if(this.taskQueue.length===0){this.processing=!1;return}try{this.processing=!0,await this.taskQueue.shift()()}catch{Lt.error(`[TQ] c:"${this.getKey()}" process failed, id:"${this.id}"`)}this.processNext()}}const Ls=Object.freeze(Object.defineProperty({__proto__:null},Symbol.toStringTag,{value:"Module"})),aE={Client:Yl,Document:Bb,Primitive:Ti,Text:zp,Counter:og,Tree:Vp,LogLevel:ra,setLogLevel:$S,IntType:Ql.IntegerCnt,LongType:Ql.LongCnt};typeof globalThis<"u"&&(globalThis.yorkie={Client:Yl,Document:Bb,Primitive:Ti,Text:zp,Counter:og,Tree:Vp,LogLevel:ra,setLogLevel:$S,IntType:Ql.IntegerCnt,LongType:Ql.LongCnt}),r.Change=za,r.Client=Yl,r.ClientCondition=mC,r.ClientStatus=pC,r.Counter=og,r.Devtools=Ls,r.DocEventType=ys,r.Document=Bb,r.DocumentStatus=Za,r.DocumentSyncStatus=Fb,r.EventSourceDevPanel=oC,r.EventSourceSDK=eE,r.LogLevel=ra,r.OpSource=$r,r.Primitive=Ti,r.StreamConnectionStatus=lg,r.SyncMode=qp,r.Text=zp,r.TimeTicket=Ta,r.Tree=Vp,r.converter=pa,r.default=aE,r.setLogLevel=$S,Object.defineProperties(r,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}})})})(ML,ML.exports);var i5=ML.exports;class Wlt{constructor(t,n){$s(this,"doc");$s(this,"client");this.doc=t,this.client=n}}const sz=Sn.define({combine(e){return e[e.length-1]}});Nd.define();class Qlt{constructor(t){$s(this,"view");$s(this,"conf");$s(this,"_doc");this.view=t,this.conf=t.state.facet(sz),this._doc=this.conf.doc,this._doc.subscribe(n=>{if(n.type!=="snapshot")return;const r=this._doc.getRoot().content;t.dispatch({changes:{from:0,to:t.state.doc.length,insert:r.toString()},annotations:[ls.remote.of(!0)]})}),this._doc.update(n=>{n.content||(n.content=new i5.Text)}),this._doc.subscribe("$.content",n=>{if(n.type!=="remote-change")return;const{operations:r}=n.value;r.forEach(i=>{if(i.type==="edit"){const a=[{from:Math.max(0,i.from),to:Math.max(0,i.to),insert:i.value.content}];t.dispatch({changes:a,annotations:[ls.remote.of(!0)]})}})})}update(t){if(t.docChanged)for(const n of t.transactions){if(!["select","input","delete","move","undo","redo"].some(a=>n.isUserEvent(a))||n.annotation(ls.remote))continue;let i=0;this._doc.update(a=>{n.changes.iterChanges((s,o,l,u,c)=>{const f=c.toJSON().join(` -`);a.content.edit(s+i,o+i,f),i+=f.length-(o-s)})})}}}const qlt=fa.fromClass(Qlt);class Glt{constructor(t,n){this.left=t,this.right=n}}const Hg=(e,t)=>new Glt(e,t),Ylt=(e,t)=>e.forEach(n=>t(n.left,n.right)),th=typeof document<"u"?document:{},Zlt=e=>th.createElement(e),Xlt=()=>th.createDocumentFragment(),Klt=e=>th.createTextNode(e);typeof DOMParser<"u"&&new DOMParser;const Jlt=(e,t)=>(Ylt(t,(n,r)=>{r===!1?e.removeAttribute(n):r===!0?e.setAttribute(n,""):e.setAttribute(n,r)}),e),eut=e=>{const t=Xlt();for(let n=0;n(q0e(e,eut(t)),e),t_=(e,t=[],n=[])=>tut(Jlt(Zlt(e),t),n),LA=Klt,q0e=(e,t)=>e.appendChild(t);th.ELEMENT_NODE;th.TEXT_NODE;th.CDATA_SECTION_NODE;th.COMMENT_NODE;th.DOCUMENT_NODE;th.DOCUMENT_TYPE_NODE;th.DOCUMENT_FRAGMENT_NODE;var a5={exports:{}};/** - * @license - * Lodash - * Copyright OpenJS Foundation and other contributors - * Released under MIT license - * Based on Underscore.js 1.8.3 - * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors - */a5.exports;(function(e,t){(function(){var n,r="4.17.21",i=200,a="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",s="Expected a function",o="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",u=500,c="__lodash_placeholder__",f=1,h=2,g=4,b=1,S=2,w=1,E=2,x=4,k=8,C=16,I=32,A=64,D=128,B=256,L=512,F=30,W="...",V=800,Z=16,Q=1,H=2,J=3,K=1/0,X=9007199254740991,te=17976931348623157e292,z=NaN,Te=4294967295,be=Te-1,ee=Te>>>1,ye=[["ary",D],["bind",w],["bindKey",E],["curry",k],["curryRight",C],["flip",L],["partial",I],["partialRight",A],["rearg",B]],Oe="[object Arguments]",ie="[object Array]",_e="[object AsyncFunction]",Ie="[object Boolean]",qe="[object Date]",st="[object DOMException]",Pe="[object Error]",tt="[object Function]",Ve="[object GeneratorFunction]",Xe="[object Map]",et="[object Number]",ft="[object Null]",At="[object Object]",Je="[object Promise]",pe="[object Proxy]",le="[object RegExp]",he="[object Set]",je="[object String]",Ze="[object Symbol]",We="[object Undefined]",fe="[object WeakMap]",xe="[object WeakSet]",ve="[object ArrayBuffer]",De="[object DataView]",$e="[object Float32Array]",Ot="[object Float64Array]",Wt="[object Int8Array]",Kt="[object Int16Array]",gt="[object Int32Array]",Gt="[object Uint8Array]",ut="[object Uint8ClampedArray]",wt="[object Uint16Array]",Xt="[object Uint32Array]",Ln=/\b__p \+= '';/g,$n=/\b(__p \+=) '' \+/g,jn=/(__e\(.*?\)|\b__t\)) \+\n'';/g,sr=/&(?:amp|lt|gt|quot|#39);/g,zr=/[&<>"']/g,Me=RegExp(sr.source),Ue=RegExp(zr.source),lt=/<%-([\s\S]+?)%>/g,Nt=/<%([\s\S]+?)%>/g,Qt=/<%=([\s\S]+?)%>/g,Hn=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,yn=/^\w*$/,rn=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,Yt=/[\\^$.*+?()[\]{}|]/g,xn=RegExp(Yt.source),Qe=/^\s+/,Ye=/\s/,ot=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,yt=/\{\n\/\* \[wrapped with (.+)\] \*/,Yn=/,? & /,pn=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Fn=/[()=,{}\[\]\/\s]/,Pi=/\\(\\)?/g,nt=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Be=/\w*$/,Dt=/^[-+]0x[0-9a-f]+$/i,en=/^0b[01]+$/i,Vn=/^\[object .+?Constructor\]$/,Kr=/^0o[0-7]+$/i,wr=/^(?:0|[1-9]\d*)$/,In=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,Wn=/($^)/,ni=/['\n\r\u2028\u2029\\]/g,Ga="\\ud800-\\udfff",Hc="\\u0300-\\u036f",_p="\\ufe20-\\ufe2f",q1="\\u20d0-\\u20ff",G1=Hc+_p+q1,Y1="\\u2700-\\u27bf",Z1="a-z\\xdf-\\xf6\\xf8-\\xff",rt="\\xac\\xb1\\xd7\\xf7",Ds="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",mk="\\u2000-\\u206f",ms=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Bu="A-Z\\xc0-\\xd6\\xd8-\\xde",Nl="\\ufe0e\\ufe0f",Pl=rt+Ds+mk+ms,el="['’]",Uu="["+Ga+"]",Ml="["+Pl+"]",ko="["+G1+"]",Ll="\\d+",zu="["+Y1+"]",to="["+Z1+"]",$l="[^"+Ga+Pl+Ll+Y1+Z1+Bu+"]",dS="\\ud83c[\\udffb-\\udfff]",R6="(?:"+ko+"|"+dS+")",fS="[^"+Ga+"]",X1="(?:\\ud83c[\\udde6-\\uddff]){2}",hS="[\\ud800-\\udbff][\\udc00-\\udfff]",ju="["+Bu+"]",gk="\\u200d",bk="(?:"+to+"|"+$l+")",I6="(?:"+ju+"|"+$l+")",pS="(?:"+el+"(?:d|ll|m|re|s|t|ve))?",lh="(?:"+el+"(?:D|LL|M|RE|S|T|VE))?",yk=R6+"?",vk="["+Nl+"]?",D6="(?:"+gk+"(?:"+[fS,X1,hS].join("|")+")"+vk+yk+")*",N6="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",P6="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Ok=vk+yk+D6,M6="(?:"+[zu,X1,hS].join("|")+")"+Ok,Sk="(?:"+[fS+ko+"?",ko,X1,hS,Uu].join("|")+")",L6=RegExp(el,"g"),$6=RegExp(ko,"g"),K1=RegExp(dS+"(?="+dS+")|"+Sk+Ok,"g"),Ek=RegExp([ju+"?"+to+"+"+pS+"(?="+[Ml,ju,"$"].join("|")+")",I6+"+"+lh+"(?="+[Ml,ju+bk,"$"].join("|")+")",ju+"?"+bk+"+"+pS,ju+"+"+lh,P6,N6,Ll,M6].join("|"),"g"),mS=RegExp("["+gk+Ga+G1+Nl+"]"),wk=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,F6=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],B6=-1,gi={};gi[$e]=gi[Ot]=gi[Wt]=gi[Kt]=gi[gt]=gi[Gt]=gi[ut]=gi[wt]=gi[Xt]=!0,gi[Oe]=gi[ie]=gi[ve]=gi[Ie]=gi[De]=gi[qe]=gi[Pe]=gi[tt]=gi[Xe]=gi[et]=gi[At]=gi[le]=gi[he]=gi[je]=gi[fe]=!1;var fi={};fi[Oe]=fi[ie]=fi[ve]=fi[De]=fi[Ie]=fi[qe]=fi[$e]=fi[Ot]=fi[Wt]=fi[Kt]=fi[gt]=fi[Xe]=fi[et]=fi[At]=fi[le]=fi[he]=fi[je]=fi[Ze]=fi[Gt]=fi[ut]=fi[wt]=fi[Xt]=!0,fi[Pe]=fi[tt]=fi[fe]=!1;var U6={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},z6={"&":"&","<":"<",">":">",'"':""","'":"'"},j6={"&":"&","<":"<",">":">",""":'"',"'":"'"},H6={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},V6=parseFloat,W6=parseInt,Hu=typeof vf=="object"&&vf&&vf.Object===Object&&vf,Q6=typeof self=="object"&&self&&self.Object===Object&&self,Ua=Hu||Q6||Function("return this")(),J1=t&&!t.nodeType&&t,Ud=J1&&!0&&e&&!e.nodeType&&e,xk=Ud&&Ud.exports===J1,eb=xk&&Hu.process,tl=function(){try{var He=Ud&&Ud.require&&Ud.require("util").types;return He||eb&&eb.binding&&eb.binding("util")}catch{}}(),gS=tl&&tl.isArrayBuffer,bS=tl&&tl.isDate,yS=tl&&tl.isMap,Tk=tl&&tl.isRegExp,kk=tl&&tl.isSet,vS=tl&&tl.isTypedArray;function Co(He,bt,ct){switch(ct.length){case 0:return He.call(bt);case 1:return He.call(bt,ct[0]);case 2:return He.call(bt,ct[0],ct[1]);case 3:return He.call(bt,ct[0],ct[1],ct[2])}return He.apply(bt,ct)}function Ck(He,bt,ct,mn){for(var rr=-1,Gr=He==null?0:He.length;++rr-1}function SS(He,bt,ct){for(var mn=-1,rr=He==null?0:He.length;++mn-1;);return ct}function lb(He,bt){for(var ct=He.length;ct--&&uh(bt,He[ct],0)>-1;);return ct}function ub(He,bt){for(var ct=He.length,mn=0;ct--;)He[ct]===bt&&++mn;return mn}var Dk=ab(U6),_S=ab(z6);function RS(He){return"\\"+H6[He]}function Nk(He,bt){return He==null?n:He[bt]}function Bl(He){return mS.test(He)}function F0(He){return wk.test(He)}function G6(He){for(var bt,ct=[];!(bt=He.next()).done;)ct.push(bt.value);return ct}function B0(He){var bt=-1,ct=Array(He.size);return He.forEach(function(mn,rr){ct[++bt]=[rr,mn]}),ct}function Ip(He,bt){return function(ct){return He(bt(ct))}}function Vu(He,bt){for(var ct=-1,mn=He.length,rr=0,Gr=[];++ct-1}function K0(m,v){var R=this.__data__,j=$p(R,m);return j<0?(++this.size,R.push([m,v])):R[j][1]=v,this}Ps.prototype.clear=qc,Ps.prototype.delete=Z0,Ps.prototype.get=il,Ps.prototype.has=X0,Ps.prototype.set=K0;function Gc(m){var v=-1,R=m==null?0:m.length;for(this.clear();++v=v?m:v)),m}function za(m,v,R,j,re,ce){var ke,Ne=v&f,Ge=v&h,xt=v&g;if(R&&(ke=re?R(m,j,re,ce):R(m)),ke!==n)return ke;if(!ia(m))return m;var Tt=or(m);if(Tt){if(ke=CD(m),!Ne)return ja(m,ke)}else{var Rt=Ms(m),an=Rt==tt||Rt==Ve;if(Yp(m))return Ib(m,Ne);if(Rt==At||Rt==Oe||an&&!re){if(ke=Ge||an?{}:qp(m),!Ne)return Ge?xD(m,al(ke,m)):sg(m,US(ke,m))}else{if(!fi[Rt])return re?m:{};ke=pC(m,Rt,Ne)}}ce||(ce=new oo);var _n=ce.get(m);if(_n)return _n;ce.set(m,ke),Mq(m)?m.forEach(function(Kn){ke.add(za(Kn,v,R,Kn,m,ce))}):Nq(m)&&m.forEach(function(Kn,Ar){ke.set(Ar,za(Kn,v,R,Ar,m,ce))});var Xn=xt?Ge?cC:uC:Ge?ll:vs,Sr=Tt?n:Xn(m);return Ao(Sr||m,function(Kn,Ar){Sr&&(Ar=Kn,Kn=m[Ar]),Ya(ke,Ar,za(Kn,v,R,Ar,m,ce))}),ke}function gb(m){var v=vs(m);return function(R){return yh(R,m,v)}}function yh(m,v,R){var j=R.length;if(m==null)return!j;for(m=hi(m);j--;){var re=R[j],ce=v[re],ke=m[re];if(ke===n&&!(re in m)||!ce(ke))return!1}return!0}function jk(m,v,R){if(typeof m!="function")throw new Mi(s);return kn(function(){m.apply(n,R)},v)}function lo(m,v,R,j){var re=-1,ce=tb,ke=!0,Ne=m.length,Ge=[],xt=v.length;if(!Ne)return Ge;R&&(v=vn(v,io(R))),j?(ce=SS,ke=!1):v.length>=i&&(ce=Rp,ke=!1,v=new bi(v));e:for(;++rere?0:re+R),j=j===n||j>re?re:mr(j),j<0&&(j+=re),j=R>j?0:$q(j);R0&&R(Ne)?v>1?ri(Ne,v-1,R,j,re):Fl(re,Ne):j||(re[re.length]=Ne)}return re}var Gd=zp(),Gu=zp(!0);function Yu(m,v){return m&&Gd(m,v,vs)}function zS(m,v){return m&&Gu(m,v,vs)}function bb(m,v){return no(v,function(R){return Eh(m[R])})}function Yd(m,v){v=Kd(v,m);for(var R=0,j=v.length;m!=null&&Rv}function jS(m,v){return m!=null&&kr.call(m,v)}function cD(m,v){return m!=null&&v in hi(m)}function vb(m,v,R){return m>=na(v,R)&&m=120&&Tt.length>=120)?new bi(ke&&Tt):n}Tt=m[0];var Rt=-1,an=Ne[0];e:for(;++Rt-1;)Ne!==m&&Qc.call(Ne,Ge,1),Qc.call(m,Ge,1);return m}function ig(m,v){for(var R=m?v.length:0,j=R-1;R--;){var re=v[R];if(R==j||re!==ce){var ce=re;Yl(re)?Qc.call(m,re,1):Cb(m,re)}}return m}function xb(m,v){return m+fb(hb()*(v-m+1))}function yD(m,v,R,j){for(var re=-1,ce=ha(db((v-m)/(R||1)),0),ke=ct(ce);ce--;)ke[j?ce:++re]=m,m+=R;return ke}function Zd(m,v){var R="";if(!m||v<1||v>X)return R;do v%2&&(R+=m),v=fb(v/2),v&&(m+=m);while(v);return R}function ar(m,v){return pr(Ct(m,v,ul),m+"")}function vD(m){return Uk(jb(m))}function Xk(m,v){var R=jb(m);return Yr(R,bh(v,0,R.length))}function ag(m,v,R,j){if(!ia(m))return m;v=Kd(v,m);for(var re=-1,ce=v.length,ke=ce-1,Ne=m;Ne!=null&&++rere?0:re+v),R=R>re?re:R,R<0&&(R+=re),re=v>R?0:R-v>>>0,v>>>=0;for(var ce=ct(re);++j>>1,ke=m[ce];ke!==null&&!Zl(ke)&&(R?ke<=v:ke=i){var xt=v?null:$b(m);if(xt)return U0(xt);ke=!1,re=Rp,Ge=new bi}else Ge=v?[]:Ne;e:for(;++j=j?m:No(m,v,R)}var XS=ao||function(m){return Ua.clearTimeout(m)};function Ib(m,v){if(v)return m.slice();var R=m.length,j=NS?NS(R):new m.constructor(R);return m.copy(j),j}function KS(m){var v=new m.constructor(m.byteLength);return new H0(v).set(new H0(m)),v}function ED(m,v){var R=v?KS(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.byteLength)}function pa(m){var v=new m.constructor(m.source,Be.exec(m));return v.lastIndex=m.lastIndex,v}function rC(m){return mh?hi(mh.call(m)):{}}function iC(m,v){var R=v?KS(m.buffer):m.buffer;return new m.constructor(R,m.byteOffset,m.length)}function Db(m,v){if(m!==v){var R=m!==n,j=m===null,re=m===m,ce=Zl(m),ke=v!==n,Ne=v===null,Ge=v===v,xt=Zl(v);if(!Ne&&!xt&&!ce&&m>v||ce&&ke&&Ge&&!Ne&&!xt||j&&ke&&Ge||!R&&Ge||!re)return 1;if(!j&&!ce&&!xt&&m=Ne)return Ge;var xt=R[j];return Ge*(xt=="desc"?-1:1)}}return m.index-v.index}function aC(m,v,R,j){for(var re=-1,ce=m.length,ke=R.length,Ne=-1,Ge=v.length,xt=ha(ce-ke,0),Tt=ct(Ge+xt),Rt=!j;++Ne1?R[re-1]:n,ke=re>2?R[2]:n;for(ce=m.length>3&&typeof ce=="function"?(re--,ce):n,ke&&Ls(R[0],R[1],ke)&&(ce=re<3?n:ce,re=1),v=hi(v);++j-1?re[ce?v[ke]:ke]:n}}function JS(m){return ef(function(v){var R=v.length,j=R,re=Ro.prototype.thru;for(m&&v.reverse();j--;){var ce=v[j];if(typeof ce!="function")throw new Mi(s);if(re&&!ke&&nE(ce)=="wrapper")var ke=new Ro([],!0)}for(j=ke?j:R;++j1&&Br.reverse(),Tt&&GeNe))return!1;var xt=ce.get(m),Tt=ce.get(v);if(xt&&Tt)return xt==v&&Tt==m;var Rt=-1,an=!0,_n=R&S?new bi:n;for(ce.set(m,v),ce.set(v,m);++Rt1?"& ":"")+v[j],v=v.join(R>2?", ":" "),m.replace(ot,`{ -/* [wrapped with `+v+`] */ -`)}function Ub(m){return or(m)||cg(m)||!!(PS&&m&&m[PS])}function Yl(m,v){var R=typeof m;return v=v??X,!!v&&(R=="number"||R!="symbol"&&wr.test(m))&&m>-1&&m%1==0&&m0){if(++v>=V)return arguments[0]}else v=0;return m.apply(n,arguments)}}function Yr(m,v){var R=-1,j=m.length,re=j-1;for(v=v===n?j:v;++R1?m[v-1]:n;return R=typeof R=="function"?(m.pop(),R):n,Sq(m,R)});function Eq(m){var v=se(m);return v.__chain__=!0,v}function uSe(m,v){return v(m),m}function gC(m,v){return v(m)}var cSe=ef(function(m){var v=m.length,R=v?m[0]:0,j=this.__wrapped__,re=function(ce){return qu(ce,m)};return v>1||this.__actions__.length||!(j instanceof cr)||!Yl(R)?this.thru(re):(j=j.slice(R,+R+(v?1:0)),j.__actions__.push({func:gC,args:[re],thisArg:n}),new Ro(j,this.__chain__).thru(function(ce){return v&&!ce.length&&ce.push(n),ce}))});function dSe(){return Eq(this)}function fSe(){return new Ro(this.value(),this.__chain__)}function hSe(){this.__values__===n&&(this.__values__=Lq(this.value()));var m=this.__index__>=this.__values__.length,v=m?n:this.__values__[this.__index__++];return{done:m,value:v}}function pSe(){return this}function mSe(m){for(var v,R=this;R instanceof so;){var j=Gp(R);j.__index__=0,j.__values__=n,v?re.__wrapped__=j:v=j;var re=j;R=R.__wrapped__}return re.__wrapped__=m,v}function gSe(){var m=this.__wrapped__;if(m instanceof cr){var v=m;return this.__actions__.length&&(v=new cr(this)),v=v.reverse(),v.__actions__.push({func:gC,args:[RD],thisArg:n}),new Ro(v,this.__chain__)}return this.thru(RD)}function bSe(){return GS(this.__wrapped__,this.__actions__)}var ySe=Nb(function(m,v,R){kr.call(m,R)?++m[R]:Do(m,R,1)});function vSe(m,v,R){var j=or(m)?OS:qd;return R&&Ls(m,v,R)&&(v=n),j(m,Qn(v,3))}function OSe(m,v){var R=or(m)?no:Ql;return R(m,Qn(v,3))}var SSe=Vp(gq),ESe=Vp(bq);function wSe(m,v){return ri(bC(m,v),1)}function xSe(m,v){return ri(bC(m,v),K)}function TSe(m,v,R){return R=R===n?1:mr(R),ri(bC(m,v),R)}function wq(m,v){var R=or(m)?Ao:Qd;return R(m,Qn(v,3))}function xq(m,v){var R=or(m)?q6:sl;return R(m,Qn(v,3))}var kSe=Nb(function(m,v,R){kr.call(m,R)?m[R].push(v):Do(m,R,[v])});function CSe(m,v,R,j){m=ol(m)?m:jb(m),R=R&&!j?mr(R):0;var re=m.length;return R<0&&(R=ha(re+R,0)),EC(m)?R<=re&&m.indexOf(v,R)>-1:!!re&&uh(m,v,R)>-1}var ASe=ar(function(m,v,R){var j=-1,re=typeof v=="function",ce=ol(m)?ct(m.length):[];return Qd(m,function(ke){ce[++j]=re?Co(v,ke,R):Bp(ke,v,R)}),ce}),_Se=Nb(function(m,v,R){Do(m,R,v)});function bC(m,v){var R=or(m)?vn:Sb;return R(m,Qn(v,3))}function RSe(m,v,R,j){return m==null?[]:(or(v)||(v=v==null?[]:[v]),R=j?n:R,or(R)||(R=R==null?[]:[R]),Zk(m,v,R))}var ISe=Nb(function(m,v,R){m[R?0:1].push(v)},function(){return[[],[]]});function DSe(m,v,R){var j=or(m)?ES:kS,re=arguments.length<3;return j(m,Qn(v,4),R,re,Qd)}function NSe(m,v,R){var j=or(m)?Vc:kS,re=arguments.length<3;return j(m,Qn(v,4),R,re,sl)}function PSe(m,v){var R=or(m)?no:Ql;return R(m,OC(Qn(v,3)))}function MSe(m){var v=or(m)?Uk:vD;return v(m)}function LSe(m,v,R){(R?Ls(m,v,R):v===n)?v=1:v=mr(v);var j=or(m)?zk:Xk;return j(m,v)}function $Se(m){var v=or(m)?Wl:OD;return v(m)}function FSe(m){if(m==null)return 0;if(ol(m))return EC(m)?Dp(m):m.length;var v=Ms(m);return v==Xe||v==he?m.size:VS(m).length}function BSe(m,v,R){var j=or(m)?nb:SD;return R&&Ls(m,v,R)&&(v=n),j(m,Qn(v,3))}var USe=ar(function(m,v){if(m==null)return[];var R=v.length;return R>1&&Ls(m,v[0],v[1])?v=[]:R>2&&Ls(v[0],v[1],v[2])&&(v=[v[0]]),Zk(m,ri(v,1),[])}),yC=zt||function(){return Ua.Date.now()};function zSe(m,v){if(typeof v!="function")throw new Mi(s);return m=mr(m),function(){if(--m<1)return v.apply(this,arguments)}}function Tq(m,v,R){return v=R?n:v,v=m&&v==null?m.length:v,Za(m,D,n,n,n,n,v)}function kq(m,v){var R;if(typeof v!="function")throw new Mi(s);return m=mr(m),function(){return--m>0&&(R=v.apply(this,arguments)),m<=1&&(v=n),R}}var DD=ar(function(m,v,R){var j=w;if(R.length){var re=Vu(R,ug(DD));j|=I}return Za(m,j,v,R,re)}),Cq=ar(function(m,v,R){var j=w|E;if(R.length){var re=Vu(R,ug(Cq));j|=I}return Za(v,j,m,R,re)});function Aq(m,v,R){v=R?n:v;var j=Za(m,k,n,n,n,n,n,v);return j.placeholder=Aq.placeholder,j}function _q(m,v,R){v=R?n:v;var j=Za(m,C,n,n,n,n,n,v);return j.placeholder=_q.placeholder,j}function Rq(m,v,R){var j,re,ce,ke,Ne,Ge,xt=0,Tt=!1,Rt=!1,an=!0;if(typeof m!="function")throw new Mi(s);v=Ku(v)||0,ia(R)&&(Tt=!!R.leading,Rt="maxWait"in R,ce=Rt?ha(Ku(R.maxWait)||0,v):ce,an="trailing"in R?!!R.trailing:an);function _n(_a){var Jc=j,xh=re;return j=re=n,xt=_a,ke=m.apply(xh,Jc),ke}function Xn(_a){return xt=_a,Ne=kn(Ar,v),Tt?_n(_a):ke}function Sr(_a){var Jc=_a-Ge,xh=_a-xt,Yq=v-Jc;return Rt?na(Yq,ce-xh):Yq}function Kn(_a){var Jc=_a-Ge,xh=_a-xt;return Ge===n||Jc>=v||Jc<0||Rt&&xh>=ce}function Ar(){var _a=yC();if(Kn(_a))return Br(_a);Ne=kn(Ar,Sr(_a))}function Br(_a){return Ne=n,an&&j?_n(_a):(j=re=n,ke)}function Xl(){Ne!==n&&XS(Ne),xt=0,j=Ge=re=Ne=n}function Lo(){return Ne===n?ke:Br(yC())}function Kl(){var _a=yC(),Jc=Kn(_a);if(j=arguments,re=this,Ge=_a,Jc){if(Ne===n)return Xn(Ge);if(Rt)return XS(Ne),Ne=kn(Ar,v),_n(Ge)}return Ne===n&&(Ne=kn(Ar,v)),ke}return Kl.cancel=Xl,Kl.flush=Lo,Kl}var jSe=ar(function(m,v){return jk(m,1,v)}),HSe=ar(function(m,v,R){return jk(m,Ku(v)||0,R)});function VSe(m){return Za(m,L)}function vC(m,v){if(typeof m!="function"||v!=null&&typeof v!="function")throw new Mi(s);var R=function(){var j=arguments,re=v?v.apply(this,j):j[0],ce=R.cache;if(ce.has(re))return ce.get(re);var ke=m.apply(this,j);return R.cache=ce.set(re,ke)||ce,ke};return R.cache=new(vC.Cache||Gc),R}vC.Cache=Gc;function OC(m){if(typeof m!="function")throw new Mi(s);return function(){var v=arguments;switch(v.length){case 0:return!m.call(this);case 1:return!m.call(this,v[0]);case 2:return!m.call(this,v[0],v[1]);case 3:return!m.call(this,v[0],v[1],v[2])}return!m.apply(this,v)}}function WSe(m){return kq(2,m)}var QSe=nC(function(m,v){v=v.length==1&&or(v[0])?vn(v[0],io(Qn())):vn(ri(v,1),io(Qn()));var R=v.length;return ar(function(j){for(var re=-1,ce=na(j.length,R);++re=v}),cg=Vk(function(){return arguments}())?Vk:function(m){return ma(m)&&kr.call(m,"callee")&&!Wu.call(m,"callee")},or=ct.isArray,oEe=gS?io(gS):dD;function ol(m){return m!=null&&SC(m.length)&&!Eh(m)}function Aa(m){return ma(m)&&ol(m)}function lEe(m){return m===!0||m===!1||ma(m)&&bs(m)==Ie}var Yp=rD||VD,uEe=bS?io(bS):fD;function cEe(m){return ma(m)&&m.nodeType===1&&!sE(m)}function dEe(m){if(m==null)return!0;if(ol(m)&&(or(m)||typeof m=="string"||typeof m.splice=="function"||Yp(m)||zb(m)||cg(m)))return!m.length;var v=Ms(m);if(v==Xe||v==he)return!m.size;if(T(m))return!VS(m).length;for(var R in m)if(kr.call(m,R))return!1;return!0}function fEe(m,v){return tg(m,v)}function hEe(m,v,R){R=typeof R=="function"?R:n;var j=R?R(m,v):n;return j===n?tg(m,v,n,R):!!j}function PD(m){if(!ma(m))return!1;var v=bs(m);return v==Pe||v==st||typeof m.message=="string"&&typeof m.name=="string"&&!sE(m)}function pEe(m){return typeof m=="number"&&xr(m)}function Eh(m){if(!ia(m))return!1;var v=bs(m);return v==tt||v==Ve||v==_e||v==pe}function Dq(m){return typeof m=="number"&&m==mr(m)}function SC(m){return typeof m=="number"&&m>-1&&m%1==0&&m<=X}function ia(m){var v=typeof m;return m!=null&&(v=="object"||v=="function")}function ma(m){return m!=null&&typeof m=="object"}var Nq=yS?io(yS):pD;function mEe(m,v){return m===v||HS(m,v,fC(v))}function gEe(m,v,R){return R=typeof R=="function"?R:n,HS(m,v,fC(v),R)}function bEe(m){return Pq(m)&&m!=+m}function yEe(m){if(y(m))throw new rr(a);return Wk(m)}function vEe(m){return m===null}function OEe(m){return m==null}function Pq(m){return typeof m=="number"||ma(m)&&bs(m)==et}function sE(m){if(!ma(m)||bs(m)!=At)return!1;var v=V0(m);if(v===null)return!0;var R=kr.call(v,"constructor")&&v.constructor;return typeof R=="function"&&R instanceof R&&j0.call(R)==DS}var MD=Tk?io(Tk):Qk;function SEe(m){return Dq(m)&&m>=-X&&m<=X}var Mq=kk?io(kk):mD;function EC(m){return typeof m=="string"||!or(m)&&ma(m)&&bs(m)==je}function Zl(m){return typeof m=="symbol"||ma(m)&&bs(m)==Ze}var zb=vS?io(vS):qk;function EEe(m){return m===n}function wEe(m){return ma(m)&&Ms(m)==fe}function xEe(m){return ma(m)&&bs(m)==xe}var TEe=Xc(Ob),kEe=Xc(function(m,v){return m<=v});function Lq(m){if(!m)return[];if(ol(m))return EC(m)?Ul(m):ja(m);if(hh&&m[hh])return G6(m[hh]());var v=Ms(m),R=v==Xe?B0:v==he?U0:jb;return R(m)}function wh(m){if(!m)return m===0?m:0;if(m=Ku(m),m===K||m===-K){var v=m<0?-1:1;return v*te}return m===m?m:0}function mr(m){var v=wh(m),R=v%1;return v===v?R?v-R:v:0}function $q(m){return m?bh(mr(m),0,Te):0}function Ku(m){if(typeof m=="number")return m;if(Zl(m))return z;if(ia(m)){var v=typeof m.valueOf=="function"?m.valueOf():m;m=ia(v)?v+"":v}if(typeof m!="string")return m===0?m:+m;m=CS(m);var R=en.test(m);return R||Kr.test(m)?W6(m.slice(2),R?2:8):Dt.test(m)?z:+m}function Fq(m){return ql(m,ll(m))}function CEe(m){return m?bh(mr(m),-X,X):m===0?m:0}function ui(m){return m==null?"":Po(m)}var AEe=Up(function(m,v){if(T(v)||ol(v)){ql(v,vs(v),m);return}for(var R in v)kr.call(v,R)&&Ya(m,R,v[R])}),Bq=Up(function(m,v){ql(v,ll(v),m)}),wC=Up(function(m,v,R,j){ql(v,ll(v),m,j)}),_Ee=Up(function(m,v,R,j){ql(v,vs(v),m,j)}),REe=ef(qu);function IEe(m,v){var R=$r(m);return v==null?R:US(R,v)}var DEe=ar(function(m,v){m=hi(m);var R=-1,j=v.length,re=j>2?v[2]:n;for(re&&Ls(v[0],v[1],re)&&(j=1);++R1),ce}),ql(m,cC(m),R),j&&(R=za(R,f|h|g,Fb));for(var re=v.length;re--;)Cb(R,v[re]);return R});function ZEe(m,v){return zq(m,OC(Qn(v)))}var XEe=ef(function(m,v){return m==null?{}:bD(m,v)});function zq(m,v){if(m==null)return{};var R=vn(cC(m),function(j){return[j]});return v=Qn(v),QS(m,R,function(j,re){return v(j,re[0])})}function KEe(m,v,R){v=Kd(v,m);var j=-1,re=v.length;for(re||(re=1,m=n);++jv){var j=m;m=v,v=j}if(R||m%1||v%1){var re=hb();return na(m+re*(v-m+V6("1e-"+((re+"").length-1))),v)}return xb(m,v)}var u2e=jp(function(m,v,R){return v=v.toLowerCase(),m+(R?Vq(v):v)});function Vq(m){return FD(ui(m).toLowerCase())}function Wq(m){return m=ui(m),m&&m.replace(In,Dk).replace($6,"")}function c2e(m,v,R){m=ui(m),v=Po(v);var j=m.length;R=R===n?j:bh(mr(R),0,j);var re=R;return R-=v.length,R>=0&&m.slice(R,re)==v}function d2e(m){return m=ui(m),m&&Ue.test(m)?m.replace(zr,_S):m}function f2e(m){return m=ui(m),m&&xn.test(m)?m.replace(Yt,"\\$&"):m}var h2e=jp(function(m,v,R){return m+(R?"-":"")+v.toLowerCase()}),p2e=jp(function(m,v,R){return m+(R?" ":"")+v.toLowerCase()}),m2e=Pb("toLowerCase");function g2e(m,v,R){m=ui(m),v=mr(v);var j=v?Dp(m):0;if(!v||j>=v)return m;var re=(v-j)/2;return Lb(fb(re),R)+m+Lb(db(re),R)}function b2e(m,v,R){m=ui(m),v=mr(v);var j=v?Dp(m):0;return v&&j>>0,R?(m=ui(m),m&&(typeof v=="string"||v!=null&&!MD(v))&&(v=Po(v),!v&&Bl(m))?Zu(Ul(m),0,R):m.split(v,R)):[]}var x2e=jp(function(m,v,R){return m+(R?" ":"")+FD(v)});function T2e(m,v,R){return m=ui(m),R=R==null?0:bh(mr(R),0,m.length),v=Po(v),m.slice(R,R+v.length)==v}function k2e(m,v,R){var j=se.templateSettings;R&&Ls(m,v,R)&&(v=n),m=ui(m),v=wC({},v,j,ys);var re=wC({},v.imports,j.imports,ys),ce=vs(re),ke=ob(re,ce),Ne,Ge,xt=0,Tt=v.interpolate||Wn,Rt="__p += '",an=IS((v.escape||Wn).source+"|"+Tt.source+"|"+(Tt===Qt?nt:Wn).source+"|"+(v.evaluate||Wn).source+"|$","g"),_n="//# sourceURL="+(kr.call(v,"sourceURL")?(v.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++B6+"]")+` -`;m.replace(an,function(Kn,Ar,Br,Xl,Lo,Kl){return Br||(Br=Xl),Rt+=m.slice(xt,Kl).replace(ni,RS),Ar&&(Ne=!0,Rt+=`' + -__e(`+Ar+`) + -'`),Lo&&(Ge=!0,Rt+=`'; -`+Lo+`; -__p += '`),Br&&(Rt+=`' + -((__t = (`+Br+`)) == null ? '' : __t) + -'`),xt=Kl+Kn.length,Kn}),Rt+=`'; -`;var Xn=kr.call(v,"variable")&&v.variable;if(!Xn)Rt=`with (obj) { -`+Rt+` -} -`;else if(Fn.test(Xn))throw new rr(o);Rt=(Ge?Rt.replace(Ln,""):Rt).replace($n,"$1").replace(jn,"$1;"),Rt="function("+(Xn||"obj")+`) { -`+(Xn?"":`obj || (obj = {}); -`)+"var __t, __p = ''"+(Ne?", __e = _.escape":"")+(Ge?`, __j = Array.prototype.join; -function print() { __p += __j.call(arguments, '') } -`:`; -`)+Rt+`return __p -}`;var Sr=qq(function(){return Gr(ce,_n+"return "+Rt).apply(n,ke)});if(Sr.source=Rt,PD(Sr))throw Sr;return Sr}function C2e(m){return ui(m).toLowerCase()}function A2e(m){return ui(m).toUpperCase()}function _2e(m,v,R){if(m=ui(m),m&&(R||v===n))return CS(m);if(!m||!(v=Po(v)))return m;var j=Ul(m),re=Ul(v),ce=AS(j,re),ke=lb(j,re)+1;return Zu(j,ce,ke).join("")}function R2e(m,v,R){if(m=ui(m),m&&(R||v===n))return m.slice(0,Pk(m)+1);if(!m||!(v=Po(v)))return m;var j=Ul(m),re=lb(j,Ul(v))+1;return Zu(j,0,re).join("")}function I2e(m,v,R){if(m=ui(m),m&&(R||v===n))return m.replace(Qe,"");if(!m||!(v=Po(v)))return m;var j=Ul(m),re=AS(j,Ul(v));return Zu(j,re).join("")}function D2e(m,v){var R=F,j=W;if(ia(v)){var re="separator"in v?v.separator:re;R="length"in v?mr(v.length):R,j="omission"in v?Po(v.omission):j}m=ui(m);var ce=m.length;if(Bl(m)){var ke=Ul(m);ce=ke.length}if(R>=ce)return m;var Ne=R-Dp(j);if(Ne<1)return j;var Ge=ke?Zu(ke,0,Ne).join(""):m.slice(0,Ne);if(re===n)return Ge+j;if(ke&&(Ne+=Ge.length-Ne),MD(re)){if(m.slice(Ne).search(re)){var xt,Tt=Ge;for(re.global||(re=IS(re.source,ui(Be.exec(re))+"g")),re.lastIndex=0;xt=re.exec(Tt);)var Rt=xt.index;Ge=Ge.slice(0,Rt===n?Ne:Rt)}}else if(m.indexOf(Po(re),Ne)!=Ne){var an=Ge.lastIndexOf(re);an>-1&&(Ge=Ge.slice(0,an))}return Ge+j}function N2e(m){return m=ui(m),m&&Me.test(m)?m.replace(sr,Z6):m}var P2e=jp(function(m,v,R){return m+(R?" ":"")+v.toUpperCase()}),FD=Pb("toUpperCase");function Qq(m,v,R){return m=ui(m),v=R?n:v,v===n?F0(m)?J6(m):Ak(m):m.match(v)||[]}var qq=ar(function(m,v){try{return Co(m,n,v)}catch(R){return PD(R)?R:new rr(R)}}),M2e=ef(function(m,v){return Ao(v,function(R){R=Fr(R),Do(m,R,DD(m[R],m))}),m});function L2e(m){var v=m==null?0:m.length,R=Qn();return m=v?vn(m,function(j){if(typeof j[1]!="function")throw new Mi(s);return[R(j[0]),j[1]]}):[],ar(function(j){for(var re=-1;++reX)return[];var R=Te,j=na(m,Te);v=Qn(v),m-=Te;for(var re=sb(j,v);++R0||v<0)?new cr(R):(m<0?R=R.takeRight(-m):m&&(R=R.drop(m)),v!==n&&(v=mr(v),R=v<0?R.dropRight(-v):R.take(v-m)),R)},cr.prototype.takeRightWhile=function(m){return this.reverse().takeWhile(m).reverse()},cr.prototype.toArray=function(){return this.take(Te)},Yu(cr.prototype,function(m,v){var R=/^(?:filter|find|map|reject)|While$/.test(v),j=/^(?:head|last)$/.test(v),re=se[j?"take"+(v=="last"?"Right":""):v],ce=j||/^find/.test(v);re&&(se.prototype[v]=function(){var ke=this.__wrapped__,Ne=j?[1]:arguments,Ge=ke instanceof cr,xt=Ne[0],Tt=Ge||or(ke),Rt=function(Ar){var Br=re.apply(se,Fl([Ar],Ne));return j&&an?Br[0]:Br};Tt&&R&&typeof xt=="function"&&xt.length!=1&&(Ge=Tt=!1);var an=this.__chain__,_n=!!this.__actions__.length,Xn=ce&&!an,Sr=Ge&&!_n;if(!ce&&Tt){ke=Sr?ke:new cr(this);var Kn=m.apply(ke,Ne);return Kn.__actions__.push({func:gC,args:[Rt],thisArg:n}),new Ro(Kn,an)}return Xn&&Sr?m.apply(this,Ne):(Kn=this.thru(Rt),Xn?j?Kn.value()[0]:Kn.value():Kn)})}),Ao(["pop","push","shift","sort","splice","unshift"],function(m){var v=Zn[m],R=/^(?:push|sort|unshift)$/.test(m)?"tap":"thru",j=/^(?:pop|shift)$/.test(m);se.prototype[m]=function(){var re=arguments;if(j&&!this.__chain__){var ce=this.value();return v.apply(or(ce)?ce:[],re)}return this[R](function(ke){return v.apply(or(ke)?ke:[],re)})}}),Yu(cr.prototype,function(m,v){var R=se[v];if(R){var j=R.name+"";kr.call(ra,j)||(ra[j]=[]),ra[j].push({name:v,func:R})}}),ra[Gl(n,E).name]=[{name:"wrapper",func:n}],cr.prototype.clone=ka,cr.prototype.reverse=Ti,cr.prototype.value=mb,se.prototype.at=cSe,se.prototype.chain=dSe,se.prototype.commit=fSe,se.prototype.next=hSe,se.prototype.plant=mSe,se.prototype.reverse=gSe,se.prototype.toJSON=se.prototype.valueOf=se.prototype.value=bSe,se.prototype.first=se.prototype.head,hh&&(se.prototype[hh]=pSe),se},Np=eD();Ud?((Ud.exports=Np)._=Np,J1._=Np):Ua._=Np}).call(vf)})(a5,a5.exports);var nut=a5.exports;const rut=_d(nut),iut=dn.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"}}),aut=Nd.define();class sut extends Pd{constructor(n,r){super();$s(this,"color");$s(this,"name");this.color=n,this.name=r}toDOM(){return t_("span",[Hg("class","cm-ySelectionCaret"),Hg("style",`background-color: ${this.color}; border-color: ${this.color}`)],[LA("⁠"),t_("div",[Hg("class","cm-ySelectionCaretDot")]),LA("⁠"),t_("div",[Hg("class","cm-ySelectionInfo")],[LA(this.name)]),LA("⁠")])}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 out{constructor(t){$s(this,"conf");$s(this,"decorations");$s(this,"unsubscribe");this.conf=t.state.facet(sz),this.unsubscribe=this.conf.doc.subscribe("others",n=>{["presence-changed","unwatched"].includes(n.type)&&t.dispatch({annotations:[aut.of([])]})}),this.decorations=Ur.of([])}destroy(){this.unsubscribe()}update(t){const n=[];this.conf.doc.update((r,i)=>{const s=t.view.hasFocus&&t.view.dom.ownerDocument.hasFocus()?t.state.selection.main:null;if(s&&r.content){const o=r.content.indexRangeToPosRange([s.anchor,s.head]);rut.isEqual(o,i.get("selection"))||i.set({selection:o})}else i.get("selection")&&i.set({selection:null})}),this.conf.doc.getPresences().forEach(r=>{if(r.clientID===this.conf.client.getID()||r.presence.selection==null)return;const i=this.conf.doc.getRoot().content.posRangeToIndexRange(r.presence.selection),a=r.presence.color,s=r.presence.name,o=Math.min(i[0],i[1]),l=Math.max(i[0],i[1]),u=t.view.state.doc.lineAt(o),c=t.view.state.doc.lineAt(l);if(u.number===c.number)n.push({from:o,to:l,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});else{n.push({from:o,to:u.from+u.length,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})}),n.push({from:c.from,to:l,value:An.mark({attributes:{style:`background-color: ${a}`},class:"cm-ySelection"})});for(let f=u.number+1;f0?-1:1,block:!1,widget:new sut(a,s)})})}),this.decorations=An.set(n,!0)}}const lut=fa.fromClass(out,{decorations:e=>e.decorations});function uut(e,t){const n=new Wlt(e,t),r=[sz.of(n),qlt];return t&&r.push(iut,lut),r}var G0e=e=>{var{theme:t,settings:n={},styles:r=[]}=e,i={".cm-gutters":{}},a={};n.background&&(a.backgroundColor=n.background),n.backgroundImage&&(a.backgroundImage=n.backgroundImage),n.foreground&&(a.color=n.foreground),(n.background||n.foreground)&&(i["&"]=a),n.fontFamily&&(i["&.cm-editor .cm-scroller"]={fontFamily:n.fontFamily}),n.gutterBackground&&(i[".cm-gutters"].backgroundColor=n.gutterBackground),n.gutterForeground&&(i[".cm-gutters"].color=n.gutterForeground),n.gutterBorder&&(i[".cm-gutters"].borderRightColor=n.gutterBorder),n.caret&&(i[".cm-content"]={caretColor:n.caret},i[".cm-cursor, .cm-dropCursor"]={borderLeftColor:n.caret});var s={};n.gutterActiveForeground&&(s.color=n.gutterActiveForeground),n.lineHighlight&&(i[".cm-activeLine"]={backgroundColor:n.lineHighlight},s.backgroundColor=n.lineHighlight),i[".cm-activeLineGutter"]=s,n.selection&&(i["&.cm-focused .cm-selectionBackground, & .cm-line::selection, & .cm-selectionLayer .cm-selectionBackground, .cm-content ::selection"]={background:n.selection+" !important"}),n.selectionMatch&&(i["& .cm-selectionMatch"]={backgroundColor:n.selectionMatch});var o=dn.theme(i,{dark:t==="dark"}),l=zT.define(r),u=[o,Cpe(l)];return u},cut={background:"#fff",foreground:"#3D3D3D",selection:"#BBDFFF",selectionMatch:"#BBDFFF",gutterBackground:"#fff",gutterForeground:"#AFAFAF",lineHighlight:"#d5e6ff69"};function dut(e){var{theme:t="light",settings:n={},styles:r=[]}=e||{};return G0e({theme:t,settings:M({},cut,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#707F8D"},{tag:[Ee.typeName,Ee.typeOperator],color:"#aa0d91"},{tag:[Ee.keyword],color:"#aa0d91",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#D23423"},{tag:[Ee.name],color:"#032f62"},{tag:[Ee.typeName],color:"#522BB2"},{tag:[Ee.variableName],color:"#23575C"},{tag:[Ee.definition(Ee.variableName)],color:"#327A9E"},{tag:[Ee.regexp,Ee.link],color:"#0e0eff"},...r]})}var fut=dut(),hut={background:"#292A30",foreground:"#CECFD0",caret:"#fff",selection:"#727377",selectionMatch:"#727377",lineHighlight:"#ffffff0f"},put=e=>{var{theme:t="dark",settings:n={},styles:r=[]}=e||{};return G0e({theme:t,settings:M({},hut,n),styles:[{tag:[Ee.comment,Ee.quote],color:"#7F8C98"},{tag:[Ee.keyword],color:"#FF7AB2",fontWeight:"bold"},{tag:[Ee.string,Ee.meta],color:"#FF8170"},{tag:[Ee.typeName],color:"#DABAFF"},{tag:[Ee.definition(Ee.variableName)],color:"#6BDFFF"},{tag:[Ee.name],color:"#6BAA9F"},{tag:[Ee.variableName],color:"#ACF2E4"},{tag:[Ee.regexp,Ee.link],color:"#FF8170"},...r]})},mut=put();const Y0e="yorkie-intelligence-header",oz="yorkie-intelligence-footer";class ete extends Pd{constructor(n,r,i){super();$s(this,"id");$s(this,"content");$s(this,"selectionRange");this.id=n,this.content=r,this.selectionRange=i}toDOM(){return t_("span",[Hg("id",this.id),Hg("content",this.content),Hg("style","position: relaitve;")])}eq(n){return n.selectionRange===this.selectionRange}compare(n){return n.selectionRange===this.selectionRange}updateDOM(){return!1}get estimatedHeight(){return-1}ignoreEvent(){return!0}}class gut{constructor(){$s(this,"decorations");this.decorations=Ur.of([])}update(t){const n=[],r=t.state.selection.main;if((r==null?void 0:r.from)!==(r==null?void 0:r.to)&&r){const a=t.state.sliceDoc(r.from,r.to);n.push({from:r.from,to:r.from,value:An.widget({side:1,block:!1,widget:new ete(Y0e,a,r)})}),n.push({from:r.to,to:r.to,value:An.widget({side:1,block:!1,widget:new ete(oz,a,r)})})}this.decorations=An.set(n,!0)}}const but=fa.fromClass(gut,{decorations:e=>e.decorations}),tte=async(e,t)=>await Promise.all(Array.from(e).map(n=>{if(n.type.startsWith("image/"))return new Promise((r,i)=>{const a=new FileReader;a.readAsDataURL(n),a.onload=function(){r(t(n))},a.onerror=function(s){i(s)}})})),nte=(e,t,n)=>{if(!e)return;const i=t.state.selection.main.to,a=i,s=` -![image](${e}) -`,o=a+s.length;n.update((l,u)=>{l.content.edit(i,a,s),u.set({selection:l.content.indexRangeToPosRange([o,o])})}),t.dispatch({changes:{from:i,to:a,insert:s},selection:{anchor:o}})},yut=(e,t)=>dn.domEventHandlers({paste(n,r){var i,a;!((i=n.clipboardData)!=null&&i.files)||((a=n.clipboardData)==null?void 0:a.files.length)==0||tte(n.clipboardData.files,e).then(s=>s.forEach(o=>nte(o,r,t)))},drop(n,r){var i,a;!((i=n.dataTransfer)!=null&&i.files)||((a=n.dataTransfer)==null?void 0:a.files.length)==0||tte(n.dataTransfer.files,e).then(s=>s.forEach(o=>nte(o,r,t)))}});var Z0e={exports:{}};(function(e,t){(function(r,i){e.exports=i(N)})(vf,function(n){return function(r){var i={};function a(s){if(i[s])return i[s].exports;var o=i[s]={i:s,l:!1,exports:{}};return r[s].call(o.exports,o,o.exports,a),o.l=!0,o.exports}return a.m=r,a.c=i,a.i=function(s){return s},a.d=function(s,o,l){a.o(s,o)||Object.defineProperty(s,o,{configurable:!1,enumerable:!0,get:l})},a.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return a.d(o,"a",o),o},a.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},a.p="",a(a.s=10)}([function(r,i){var a=r.exports={},s,o;function l(){throw new Error("setTimeout has not been defined")}function u(){throw new Error("clearTimeout has not been defined")}(function(){try{typeof setTimeout=="function"?s=setTimeout:s=l}catch{s=l}try{typeof clearTimeout=="function"?o=clearTimeout:o=u}catch{o=u}})();function c(C){if(s===setTimeout)return setTimeout(C,0);if((s===l||!s)&&setTimeout)return s=setTimeout,setTimeout(C,0);try{return s(C,0)}catch{try{return s.call(null,C,0)}catch{return s.call(this,C,0)}}}function f(C){if(o===clearTimeout)return clearTimeout(C);if((o===u||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(C);try{return o(C)}catch{try{return o.call(null,C)}catch{return o.call(this,C)}}}var h=[],g=!1,b,S=-1;function w(){!g||!b||(g=!1,b.length?h=b.concat(h):S=-1,h.length&&E())}function E(){if(!g){var C=c(w);g=!0;for(var I=h.length;I;){for(b=h,h=[];++S1)for(var A=1;A1?h-1:0),b=1;b2?g-2:0),S=2;S0&&A.syncScrollPosition(A.panes[Z][0],W),A.panes[Z].push(W))}),A.addEvents(W,V)},A.unregisterPane=function(W,V){V.forEach(function(Z){A.findPane(W,Z)&&(A.removeEvents(W),A.panes[Z].splice(A.panes[Z].indexOf(W),1))})},A.addEvents=function(W,V){W.onscroll=A.handlePaneScroll.bind(A,W,V)},A.removeEvents=function(W){W.onscroll=null},A.findPane=function(W,V){return A.panes[V]?A.panes[V].find(function(Z){return Z===W}):!1},A.handlePaneScroll=function(W,V){A.props.enabled&&window.requestAnimationFrame(function(){A.syncScrollPositions(W,V)})},A.syncScrollPositions=function(W,V){V.forEach(function(Z){A.panes[Z].forEach(function(Q){W!==Q&&(A.removeEvents(Q,Z),A.syncScrollPosition(W,Q),window.requestAnimationFrame(function(){A.addEvents(Q,V)}))})}),A.props.onSync&&A.props.onSync(W)},I),S(A,D)}return s(k,[{key:"getContextValue",value:function(){return{registerPane:this.registerPane,unregisterPane:this.unregisterPane}}},{key:"syncScrollPosition",value:function(I,A){var D=I.scrollTop,B=I.scrollHeight,L=I.clientHeight,F=I.scrollLeft,W=I.scrollWidth,V=I.clientWidth,Z=B-L,Q=W-V,H=this.props,J=H.proportional,K=H.vertical,X=H.horizontal,te=A.scrollHeight-L,z=A.scrollWidth-V;K&&Z>0&&(A.scrollTop=J?te*D/Z:D),X&&Q>0&&(A.scrollLeft=J?z*F/Q:F)}},{key:"render",value:function(){return l.default.createElement(h.default.Provider,{value:this.getContextValue()},l.default.Children.only(this.props.children))}}]),k}(o.Component);E.propTypes={onSync:c.default.func,children:c.default.element.isRequired,proportional:c.default.bool,vertical:c.default.bool,horizontal:c.default.bool,enabled:c.default.bool},E.defaultProps={proportional:!0,vertical:!0,horizontal:!0,enabled:!0},i.default=E,r.exports=i.default},function(r,i,a){Object.defineProperty(i,"__esModule",{value:!0});var s=function(){function E(x,k){for(var C=0;C"u"||be===null)return""+be;var ee=X(be);if(ee==="object"){if(be instanceof Date)return"date";if(be instanceof RegExp)return"regexp"}return ee}function z(be){var ee=te(be);switch(ee){case"array":case"object":return"an "+ee;case"boolean":case"date":case"regexp":return"a "+ee;default:return ee}}function Te(be){return!be.constructor||!be.constructor.name?E:be.constructor.name}return x.checkPropTypes=f,x.PropTypes=x,x}}).call(i,a(0))}])})})(Z0e);var LL=Z0e.exports;const vut={yorkieIntelligence:null,fileUpload:null},X0e=R1({name:"setting",initialState:vut,reducers:{setYorkieIntelligence:(e,t)=>{e.yorkieIntelligence=t.payload},setFileUpload:(e,t)=>{e.fileUpload=t.payload}}}),{setYorkieIntelligence:Out,setFileUpload:Sut}=X0e.actions,MI=e=>e.setting,Eut=X0e.reducer;var lu=(e=>(e.BOLD="bold",e.ITALIC="italic",e.CODE="code",e.STRIKETHROUGH="strikeThrough",e))(lu||{});const K0e=()=>{const{cmView:e}=Qr(A0),t=N.useCallback(s=>{switch(s){case"bold":return"**";case"italic":return"_";case"code":return"`";case"strikeThrough":return"~~"}},[]),n=N.useCallback((s,o)=>{const u=new Set(["*","_","`","~"]);return[...s.sliceDoc(Math.max(0,o-10),o)].reduce((f,h)=>u.has(h)?f+1:f,0)},[]),r=N.useCallback(s=>{const o=t(s),l=o.length;return({state:u,dispatch:c})=>{const f=u.changeByRange(h=>{const g=n(u,h.from),b=u.sliceDoc(h.from-g<0?0:h.from-g,h.from).indexOf(o),S=u.sliceDoc(h.to,h.to+g).indexOf(o),w=[b===-1?{from:h.from,insert:Nr.of([o])}:{from:h.from-g+b,to:h.from-g+b+l,insert:Nr.of([""])},S===-1?{from:h.to,insert:Nr.of([o])}:{from:h.to+S,to:h.to+S+l,insert:Nr.of([""])}],E=b===-1?l:-l,x=S===-1?l:-l;return{changes:w,range:vt.range(h.from+E,h.to+x)}});return c(u.update(f,{scrollIntoView:!0,annotations:ls.userEvent.of("input")})),!0}},[t,n]),i=N.useCallback(()=>[pit,{key:"Mod-b",run:r("bold")},{key:"Mod-i",run:r("italic")},{key:"Mod-e",run:r("code")},{key:"Mod-Shift-x",run:r("strikeThrough")}],[r]),a=N.useCallback((s,o)=>(l,u)=>{if(!e)return;const c=new Set(s);c.has(u)?c.delete(u):c.add(u),o(f=>({...f,selectedFormats:c})),r(u)(e)},[e,r]);return{getFormatMarkerLength:n,applyFormat:r,setKeymapConfig:i,toggleButtonChangeHandler:a}},wut={toggleButton:{width:"25px",height:"25px",minWidth:"25px",padding:"0",margin:"2px",border:"none",fontWeight:"bold"}};function $A({title:e,children:t,...n}){return _.jsx(Rm,{title:e,placement:"top",children:_.jsx(_4,{sx:wut.toggleButton,...n,children:t})})}function xut({formatBarState:{show:e,position:t,selectedFormats:n},onChangeFormatBarState:r}){const{toggleButtonChangeHandler:i}=K0e();return _.jsx(DO,{open:e,anchorReference:"anchorPosition",anchorPosition:{top:t.top,left:t.left},onClose:()=>r(a=>({...a,show:!1})),anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"bottom",horizontal:"left"},disableAutoFocus:!0,children:_.jsxs(Rle,{sx:{padding:"3px 5px"},value:Array.from(n),onChange:i(n,r),exclusive:!0,"aria-label":"text formatting",children:[_.jsx($A,{color:n.has(lu.ITALIC)?"primary":"secondary",title:"Cmd+I / Ctrl+I",value:lu.ITALIC,children:_.jsx("i",{children:"i"})}),_.jsx($A,{color:n.has(lu.BOLD)?"primary":"secondary",title:"Cmd+B / Ctrl+B",value:lu.BOLD,children:_.jsx("strong",{children:"B"})}),_.jsx($A,{color:n.has(lu.STRIKETHROUGH)?"primary":"secondary",title:"Cmd+Shift+X / Ctrl+Shfit+X",value:lu.STRIKETHROUGH,children:"~"}),_.jsx($A,{color:n.has(lu.CODE)?"primary":"secondary",title:"Cmd+E / Ctrl+E",value:lu.CODE,children:""})]})})}function rte(){var w;const e=Pu(),t=DT(),[n,r]=N.useState(),i=Qr(A0),a=Qr(MI),s=Qr(yT),{mutateAsync:o}=vze(),{mutateAsync:l}=Oze(),[u,c]=N.useState({show:!1,position:{top:0,left:0},selectedFormats:new Set}),{getFormatMarkerLength:f,applyFormat:h,setKeymapConfig:g}=K0e(),b=N.useCallback(E=>{E&&r(E)},[]),S=N.useCallback(E=>{const x=E.state.selection.main;if(x.empty)c(k=>({...k,show:!1,selectedFormats:new Set}));else{const k=E.view.coordsAtPos(x.from);if(k){const C=f(E.view.state,x.from),I=E.state.sliceDoc(x.from-C,x.from),A=E.state.sliceDoc(x.to,x.to+C),D=new Set,B=(L,F)=>{I.includes(L)&&A.includes(L)&&D.add(F)};B("**",lu.BOLD),B("_",lu.ITALIC),B("`",lu.CODE),B("~~",lu.STRIKETHROUGH),c(L=>({...L,show:!0,position:{top:k.top-8,left:k.left+190},selectedFormats:D}))}}},[f]);return N.useEffect(()=>{var C,I;let E;if(!n||!i.doc||!i.client||typeof((C=a.fileUpload)==null?void 0:C.enable)!="boolean")return;const x=async A=>{if(!s.data)return"";const D=await o({workspaceId:s.data.id,contentLength:new Blob([A]).size,contentType:A.type});return await l({...D,file:A}),`https://codepair-api.yorkie.dev/files/${D.fileKey}`},k=Vr.create({doc:((I=i.doc.getRoot().content)==null?void 0:I.toString())??"",extensions:[jO.of(g()),Gat,jlt(),uut(i.doc,i.client),t=="light"?fut:mut,dn.theme({"&":{width:"100%"}}),dn.lineWrapping,but,...a.fileUpload.enable?[yut(x,i.doc)]:[],dn.updateListener.of(A=>{A.selectionSet&&S(A)})]});return E=new dn({state:k,parent:n}),e(fUe(E)),()=>{E==null||E.destroy()}},[e,i.client,i.doc,n,t,s.data,o,l,(w=a.fileUpload)==null?void 0:w.enable,h,S,g]),_.jsx(LL.ScrollSyncPane,{children:_.jsxs("div",{style:{height:"100%",overflow:"auto"},children:[_.jsx("div",{ref:b,style:{display:"flex",alignItems:"stretch",minHeight:"100%"}}),!!(u.show&&i.cmView)&&_.jsx(xut,{formatBarState:u,onChangeFormatBarState:c})]})})}function S1(e){const t=[],n=String(e||"");let r=n.indexOf(","),i=0,a=!1;for(;!a;){r===-1&&(r=n.length,a=!0);const s=n.slice(i,r).trim();(s||!a)&&t.push(s),i=r+1,r=n.indexOf(",",i)}return t}function lz(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Tut=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,kut=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Cut={};function ite(e,t){return((t||Cut).jsx?kut:Tut).test(e)}const Aut=/[ \t\n\f\r]/g;function J0e(e){return typeof e=="object"?e.type==="text"?ate(e.value):!1:ate(e)}function ate(e){return e.replace(Aut,"")===""}class WT{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}WT.prototype.property={};WT.prototype.normal={};WT.prototype.space=null;function ege(e,t){const n={},r={};let i=-1;for(;++i4&&n.slice(0,4)==="data"&&Nut.test(t)){if(t.charAt(4)==="-"){const a=t.slice(5).replace(ote,Lut);r="data"+a.charAt(0).toUpperCase()+a.slice(1)}else{const a=t.slice(4);if(!ote.test(a)){let s=a.replace(Put,Mut);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}i=uz}return new i(r,t)}function Mut(e){return"-"+e.toLowerCase()}function Lut(e){return e.charAt(1).toUpperCase()}const $ut={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"},D0=ege([rge,nge,sge,oge,Iut],"html"),$d=ege([rge,nge,sge,oge,Dut],"svg");function p0(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function cz(e){return e.join(" ").trim()}var lge={},lte=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,Fut=/\n/g,But=/^\s*/,Uut=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,zut=/^:\s*/,jut=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,Hut=/^[;\s]*/,Vut=/^\s+|\s+$/g,Wut=` -`,ute="/",cte="*",Ag="",Qut="comment",qut="declaration",Gut=function(e,t){if(typeof e!="string")throw new TypeError("First argument must be a string");if(!e)return[];t=t||{};var n=1,r=1;function i(b){var S=b.match(Fut);S&&(n+=S.length);var w=b.lastIndexOf(Wut);r=~w?b.length-w:r+b.length}function a(){var b={line:n,column:r};return function(S){return S.position=new s(b),u(),S}}function s(b){this.start=b,this.end={line:n,column:r},this.source=t.source}s.prototype.content=e;function o(b){var S=new Error(t.source+":"+n+":"+r+": "+b);if(S.reason=b,S.filename=t.source,S.line=n,S.column=r,S.source=e,!t.silent)throw S}function l(b){var S=b.exec(e);if(S){var w=S[0];return i(w),e=e.slice(w.length),S}}function u(){l(But)}function c(b){var S;for(b=b||[];S=f();)S!==!1&&b.push(S);return b}function f(){var b=a();if(!(ute!=e.charAt(0)||cte!=e.charAt(1))){for(var S=2;Ag!=e.charAt(S)&&(cte!=e.charAt(S)||ute!=e.charAt(S+1));)++S;if(S+=2,Ag===e.charAt(S-1))return o("End of comment missing");var w=e.slice(2,S-2);return r+=2,i(w),e=e.slice(S),r+=2,b({type:Qut,comment:w})}}function h(){var b=a(),S=l(Uut);if(S){if(f(),!l(zut))return o("property missing ':'");var w=l(jut),E=b({type:qut,property:dte(S[0].replace(lte,Ag)),value:w?dte(w[0].replace(lte,Ag)):Ag});return l(Hut),E}}function g(){var b=[];c(b);for(var S;S=h();)S!==!1&&(b.push(S),c(b));return b}return u(),g()};function dte(e){return e?e.replace(Vut,Ag):Ag}var Yut=vf&&vf.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(lge,"__esModule",{value:!0});var Zut=Yut(Gut);function Xut(e,t){var n=null;if(!e||typeof e!="string")return n;var r=(0,Zut.default)(e),i=typeof t=="function";return r.forEach(function(a){if(a.type==="declaration"){var s=a.property,o=a.value;i?t(s,o,a):o&&(n=n||{},n[s]=o)}}),n}var fte=lge.default=Xut;const Kut=fte.default||fte,LI=uge("end"),nh=uge("start");function uge(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 Jut(e){const t=nh(e),n=LI(e);if(t&&n)return{start:t,end:n}}function K2(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?hte(e.position):"start"in e||"end"in e?hte(e):"line"in e||"column"in e?FL(e):""}function FL(e){return pte(e&&e.line)+":"+pte(e&&e.column)}function hte(e){return FL(e&&e.start)+"-"+FL(e&&e.end)}function pte(e){return e&&typeof e=="number"?e:1}class xo extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let i="",a={},s=!1;if(n&&("line"in n&&"column"in n?a={place:n}:"start"in n&&"end"in n?a={place:n}:"type"in n?a={ancestors:[n],place:n.position}:a={...n}),typeof t=="string"?i=t:!a.cause&&t&&(s=!0,i=t.message,a.cause=t),!a.ruleId&&!a.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?a.ruleId=r:(a.source=r.slice(0,l),a.ruleId=r.slice(l+1))}if(!a.place&&a.ancestors&&a.ancestors){const l=a.ancestors[a.ancestors.length-1];l&&(a.place=l.position)}const o=a.place&&"start"in a.place?a.place.start:a.place;this.ancestors=a.ancestors||void 0,this.cause=a.cause||void 0,this.column=o?o.column:void 0,this.fatal=void 0,this.file,this.message=i,this.line=o?o.line:void 0,this.name=K2(a.place)||"1:1",this.place=a.place||void 0,this.reason=this.message,this.ruleId=a.ruleId||void 0,this.source=a.source||void 0,this.stack=s&&a.cause&&typeof a.cause.stack=="string"?a.cause.stack:"",this.actual,this.expected,this.note,this.url}}xo.prototype.file="";xo.prototype.name="";xo.prototype.reason="";xo.prototype.message="";xo.prototype.stack="";xo.prototype.column=void 0;xo.prototype.line=void 0;xo.prototype.ancestors=void 0;xo.prototype.cause=void 0;xo.prototype.fatal=void 0;xo.prototype.place=void 0;xo.prototype.ruleId=void 0;xo.prototype.source=void 0;const dz={}.hasOwnProperty,ect=new Map,tct=/[A-Z]/g,nct=/-([a-z])/g,rct=new Set(["table","tbody","thead","tfoot","tr"]),ict=new Set(["td","th"]),cge="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function act(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=hct(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=fct(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"?$d:D0,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},a=dge(i,e,void 0);return a&&typeof a!="string"?a:i.create(e,i.Fragment,{children:a||void 0},void 0)}function dge(e,t,n){if(t.type==="element")return sct(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return oct(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return uct(e,t,n);if(t.type==="mdxjsEsm")return lct(e,t);if(t.type==="root")return cct(e,t,n);if(t.type==="text")return dct(e,t)}function sct(e,t,n){const r=e.schema;let i=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(i=$d,e.schema=i),e.ancestors.push(t);const a=hge(e,t.tagName,!1),s=pct(e,t);let o=hz(e,t);return rct.has(t.tagName)&&(o=o.filter(function(l){return typeof l=="string"?!J0e(l):!0})),fge(e,s,a,t),fz(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function oct(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)}xx(e,t.position)}function lct(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);xx(e,t.position)}function uct(e,t,n){const r=e.schema;let i=r;t.name==="svg"&&r.space==="html"&&(i=$d,e.schema=i),e.ancestors.push(t);const a=t.name===null?e.Fragment:hge(e,t.name,!0),s=mct(e,t),o=hz(e,t);return fge(e,s,a,t),fz(s,o),e.ancestors.pop(),e.schema=r,e.create(t,a,s,n)}function cct(e,t,n){const r={};return fz(r,hz(e,t)),e.create(t,e.Fragment,r,n)}function dct(e,t){return t.value}function fge(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function fz(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function fct(e,t,n){return r;function r(i,a,s,o){const u=Array.isArray(s.children)?n:t;return o?u(a,s,o):u(a,s)}}function hct(e,t){return n;function n(r,i,a,s){const o=Array.isArray(a.children),l=nh(r);return t(i,a,s,o,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function pct(e,t){const n={};let r,i;for(i in t.properties)if(i!=="children"&&dz.call(t.properties,i)){const a=gct(e,i,t.properties[i]);if(a){const[s,o]=a;e.tableCellAlignToStyle&&s==="align"&&typeof o=="string"&&ict.has(t.tagName)?r=o:n[s]=o}}if(r){const a=n.style||(n.style={});a[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function mct(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const a=r.data.estree.body[0];a.type;const s=a.expression;s.type;const o=s.properties[0];o.type,Object.assign(n,e.evaluater.evaluateExpression(o.argument))}else xx(e,t.position);else{const i=r.name;let a;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const o=r.value.data.estree.body[0];o.type,a=e.evaluater.evaluateExpression(o.expression)}else xx(e,t.position);else a=r.value===null?!0:r.value;n[i]=a}return n}function hz(e,t){const n=[];let r=-1;const i=e.passKeys?new Map:ect;for(;++ri?0:i+t:t=t>i?i:t,n=n>0?n:0,r.length<1e4)s=Array.from(r),s.unshift(t,n),e.splice(...s);else for(n&&e.splice(t,n);a0?(Tu(e,e.length,0,t),e):t}const bte={}.hasOwnProperty;function mge(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 Od(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const Vo=N0(/[A-Za-z]/),bo=N0(/[\dA-Za-z]/),kct=N0(/[#-'*+\--9=?A-Z^-~]/);function s5(e){return e!==null&&(e<32||e===127)}const BL=N0(/\d/),Cct=N0(/[\dA-Fa-f]/),Act=N0(/[!-/:-@[-`{-~]/);function Mn(e){return e!==null&&e<-2}function wi(e){return e!==null&&(e<0||e===32)}function Ir(e){return e===-2||e===-1||e===32}const $I=N0(new RegExp("\\p{P}|\\p{S}","u")),E1=N0(/\s/);function N0(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function YO(e){const t=[];let n=-1,r=0,i=0;for(;++n55295&&a<57344){const o=e.charCodeAt(n+1);a<56320&&o>56319&&o<57344?(s=String.fromCharCode(a,o),i=1):s="�"}else s=String.fromCharCode(a);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+i+1,s=""),i&&(n+=i,i=0)}return t.join("")+e.slice(r)}function Tr(e,t,n,r){const i=r?r-1:Number.POSITIVE_INFINITY;let a=0;return s;function s(l){return Ir(l)?(e.enter(n),o(l)):t(l)}function o(l){return Ir(l)&&a++s))return;const D=t.events.length;let B=D,L,F;for(;B--;)if(t.events[B][0]==="exit"&&t.events[B][1].type==="chunkFlow"){if(L){F=t.events[B][1].end;break}L=!0}for(E(r),A=D;Ak;){const I=n[C];t.containerState=I[1],I[0].exit.call(t,e)}n.length=k}function x(){i.write([null]),a=void 0,i=void 0,t.containerState._closeFlow=void 0}}function Nct(e,t,n){return Tr(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function o5(e){if(e===null||wi(e)||E1(e))return 1;if($I(e))return 2}function FI(e,t,n){const r=[];let i=-1;for(;++i1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const f=Object.assign({},e[r][1].end),h=Object.assign({},e[n][1].start);vte(f,-l),vte(h,l),s={type:l>1?"strongSequence":"emphasisSequence",start:f,end:Object.assign({},e[r][1].end)},o={type:l>1?"strongSequence":"emphasisSequence",start:Object.assign({},e[n][1].start),end:h},a={type:l>1?"strongText":"emphasisText",start:Object.assign({},e[r][1].end),end:Object.assign({},e[n][1].start)},i={type:l>1?"strong":"emphasis",start:Object.assign({},s.start),end:Object.assign({},o.end)},e[r][1].end=Object.assign({},s.start),e[n][1].start=Object.assign({},o.end),u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=dc(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=dc(u,[["enter",i,t],["enter",s,t],["exit",s,t],["enter",a,t]]),u=dc(u,FI(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=dc(u,[["exit",a,t],["enter",o,t],["exit",o,t],["exit",i,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=dc(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Tu(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n0&&Ir(A)?Tr(e,x,"linePrefix",a+1)(A):x(A)}function x(A){return A===null||Mn(A)?e.check(Ote,S,C)(A):(e.enter("codeFlowValue"),k(A))}function k(A){return A===null||Mn(A)?(e.exit("codeFlowValue"),x(A)):(e.consume(A),k)}function C(A){return e.exit("codeFenced"),t(A)}function I(A,D,B){let L=0;return F;function F(H){return A.enter("lineEnding"),A.consume(H),A.exit("lineEnding"),W}function W(H){return A.enter("codeFencedFence"),Ir(H)?Tr(A,V,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(H):V(H)}function V(H){return H===o?(A.enter("codeFencedFenceSequence"),Z(H)):B(H)}function Z(H){return H===o?(L++,A.consume(H),Z):L>=s?(A.exit("codeFencedFenceSequence"),Ir(H)?Tr(A,Q,"whitespace")(H):Q(H)):B(H)}function Q(H){return H===null||Mn(H)?(A.exit("codeFencedFence"),D(H)):B(H)}}}function Wct(e,t,n){const r=this;return i;function i(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const UP={name:"codeIndented",tokenize:qct},Qct={tokenize:Gct,partial:!0};function qct(e,t,n){const r=this;return i;function i(u){return e.enter("codeIndented"),Tr(e,a,"linePrefix",5)(u)}function a(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):Mn(u)?e.attempt(Qct,s,l)(u):(e.enter("codeFlowValue"),o(u))}function o(u){return u===null||Mn(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),o)}function l(u){return e.exit("codeIndented"),t(u)}}function Gct(e,t,n){const r=this;return i;function i(s){return r.parser.lazy[r.now().line]?n(s):Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),i):Tr(e,a,"linePrefix",5)(s)}function a(s){const o=r.events[r.events.length-1];return o&&o[1].type==="linePrefix"&&o[2].sliceSerialize(o[1],!0).length>=4?t(s):Mn(s)?i(s):n(s)}}const Yct={name:"codeText",tokenize:Kct,resolve:Zct,previous:Xct};function Zct(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(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function Sge(e,t,n,r,i,a,s,o,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return f;function f(E){return E===60?(e.enter(r),e.enter(i),e.enter(a),e.consume(E),e.exit(a),h):E===null||E===32||E===41||s5(E)?n(E):(e.enter(r),e.enter(s),e.enter(o),e.enter("chunkString",{contentType:"string"}),S(E))}function h(E){return E===62?(e.enter(a),e.consume(E),e.exit(a),e.exit(i),e.exit(r),t):(e.enter(o),e.enter("chunkString",{contentType:"string"}),g(E))}function g(E){return E===62?(e.exit("chunkString"),e.exit(o),h(E)):E===null||E===60||Mn(E)?n(E):(e.consume(E),E===92?b:g)}function b(E){return E===60||E===62||E===92?(e.consume(E),g):g(E)}function S(E){return!c&&(E===null||E===41||wi(E))?(e.exit("chunkString"),e.exit(o),e.exit(s),e.exit(r),t(E)):c999||g===null||g===91||g===93&&!l||g===94&&!o&&"_hiddenFootnoteSupport"in s.parser.constructs?n(g):g===93?(e.exit(a),e.enter(i),e.consume(g),e.exit(i),e.exit(r),t):Mn(g)?(e.enter("lineEnding"),e.consume(g),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),f(g))}function f(g){return g===null||g===91||g===93||Mn(g)||o++>999?(e.exit("chunkString"),c(g)):(e.consume(g),l||(l=!Ir(g)),g===92?h:f)}function h(g){return g===91||g===92||g===93?(e.consume(g),o++,f):f(g)}}function wge(e,t,n,r,i,a){let s;return o;function o(h){return h===34||h===39||h===40?(e.enter(r),e.enter(i),e.consume(h),e.exit(i),s=h===40?41:h,l):n(h)}function l(h){return h===s?(e.enter(i),e.consume(h),e.exit(i),e.exit(r),t):(e.enter(a),u(h))}function u(h){return h===s?(e.exit(a),l(s)):h===null?n(h):Mn(h)?(e.enter("lineEnding"),e.consume(h),e.exit("lineEnding"),Tr(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(h))}function c(h){return h===s||h===null||Mn(h)?(e.exit("chunkString"),u(h)):(e.consume(h),h===92?f:c)}function f(h){return h===s||h===92?(e.consume(h),c):c(h)}}function J2(e,t){let n;return r;function r(i){return Mn(i)?(e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),n=!0,r):Ir(i)?Tr(e,r,n?"linePrefix":"lineSuffix")(i):t(i)}}const adt={name:"definition",tokenize:odt},sdt={tokenize:ldt,partial:!0};function odt(e,t,n){const r=this;let i;return a;function a(g){return e.enter("definition"),s(g)}function s(g){return Ege.call(r,e,o,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(g)}function o(g){return i=Od(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),g===58?(e.enter("definitionMarker"),e.consume(g),e.exit("definitionMarker"),l):n(g)}function l(g){return wi(g)?J2(e,u)(g):u(g)}function u(g){return Sge(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(g)}function c(g){return e.attempt(sdt,f,f)(g)}function f(g){return Ir(g)?Tr(e,h,"whitespace")(g):h(g)}function h(g){return g===null||Mn(g)?(e.exit("definition"),r.parser.defined.push(i),t(g)):n(g)}}function ldt(e,t,n){return r;function r(o){return wi(o)?J2(e,i)(o):n(o)}function i(o){return wge(e,a,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(o)}function a(o){return Ir(o)?Tr(e,s,"whitespace")(o):s(o)}function s(o){return o===null||Mn(o)?t(o):n(o)}}const udt={name:"hardBreakEscape",tokenize:cdt};function cdt(e,t,n){return r;function r(a){return e.enter("hardBreakEscape"),e.consume(a),i}function i(a){return Mn(a)?(e.exit("hardBreakEscape"),t(a)):n(a)}}const ddt={name:"headingAtx",tokenize:hdt,resolve:fdt};function fdt(e,t){let n=e.length-2,r=3,i,a;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(i={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},a={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Tu(e,r,n-r+1,[["enter",i,t],["enter",a,t],["exit",a,t],["exit",i,t]])),e}function hdt(e,t,n){let r=0;return i;function i(c){return e.enter("atxHeading"),a(c)}function a(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||wi(c)?(e.exit("atxHeadingSequence"),o(c)):n(c)}function o(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Mn(c)?(e.exit("atxHeading"),t(c)):Ir(c)?Tr(e,o,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),o(c))}function u(c){return c===null||c===35||wi(c)?(e.exit("atxHeadingText"),o(c)):(e.consume(c),u)}}const pdt=["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"],Ete=["pre","script","style","textarea"],mdt={name:"htmlFlow",tokenize:vdt,resolveTo:ydt,concrete:!0},gdt={tokenize:Sdt,partial:!0},bdt={tokenize:Odt,partial:!0};function ydt(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 vdt(e,t,n){const r=this;let i,a,s,o,l;return u;function u(ee){return c(ee)}function c(ee){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(ee),f}function f(ee){return ee===33?(e.consume(ee),h):ee===47?(e.consume(ee),a=!0,S):ee===63?(e.consume(ee),i=3,r.interrupt?t:z):Vo(ee)?(e.consume(ee),s=String.fromCharCode(ee),w):n(ee)}function h(ee){return ee===45?(e.consume(ee),i=2,g):ee===91?(e.consume(ee),i=5,o=0,b):Vo(ee)?(e.consume(ee),i=4,r.interrupt?t:z):n(ee)}function g(ee){return ee===45?(e.consume(ee),r.interrupt?t:z):n(ee)}function b(ee){const ye="CDATA[";return ee===ye.charCodeAt(o++)?(e.consume(ee),o===ye.length?r.interrupt?t:V:b):n(ee)}function S(ee){return Vo(ee)?(e.consume(ee),s=String.fromCharCode(ee),w):n(ee)}function w(ee){if(ee===null||ee===47||ee===62||wi(ee)){const ye=ee===47,Oe=s.toLowerCase();return!ye&&!a&&Ete.includes(Oe)?(i=1,r.interrupt?t(ee):V(ee)):pdt.includes(s.toLowerCase())?(i=6,ye?(e.consume(ee),E):r.interrupt?t(ee):V(ee)):(i=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(ee):a?x(ee):k(ee))}return ee===45||bo(ee)?(e.consume(ee),s+=String.fromCharCode(ee),w):n(ee)}function E(ee){return ee===62?(e.consume(ee),r.interrupt?t:V):n(ee)}function x(ee){return Ir(ee)?(e.consume(ee),x):F(ee)}function k(ee){return ee===47?(e.consume(ee),F):ee===58||ee===95||Vo(ee)?(e.consume(ee),C):Ir(ee)?(e.consume(ee),k):F(ee)}function C(ee){return ee===45||ee===46||ee===58||ee===95||bo(ee)?(e.consume(ee),C):I(ee)}function I(ee){return ee===61?(e.consume(ee),A):Ir(ee)?(e.consume(ee),I):k(ee)}function A(ee){return ee===null||ee===60||ee===61||ee===62||ee===96?n(ee):ee===34||ee===39?(e.consume(ee),l=ee,D):Ir(ee)?(e.consume(ee),A):B(ee)}function D(ee){return ee===l?(e.consume(ee),l=null,L):ee===null||Mn(ee)?n(ee):(e.consume(ee),D)}function B(ee){return ee===null||ee===34||ee===39||ee===47||ee===60||ee===61||ee===62||ee===96||wi(ee)?I(ee):(e.consume(ee),B)}function L(ee){return ee===47||ee===62||Ir(ee)?k(ee):n(ee)}function F(ee){return ee===62?(e.consume(ee),W):n(ee)}function W(ee){return ee===null||Mn(ee)?V(ee):Ir(ee)?(e.consume(ee),W):n(ee)}function V(ee){return ee===45&&i===2?(e.consume(ee),J):ee===60&&i===1?(e.consume(ee),K):ee===62&&i===4?(e.consume(ee),Te):ee===63&&i===3?(e.consume(ee),z):ee===93&&i===5?(e.consume(ee),te):Mn(ee)&&(i===6||i===7)?(e.exit("htmlFlowData"),e.check(gdt,be,Z)(ee)):ee===null||Mn(ee)?(e.exit("htmlFlowData"),Z(ee)):(e.consume(ee),V)}function Z(ee){return e.check(bdt,Q,be)(ee)}function Q(ee){return e.enter("lineEnding"),e.consume(ee),e.exit("lineEnding"),H}function H(ee){return ee===null||Mn(ee)?Z(ee):(e.enter("htmlFlowData"),V(ee))}function J(ee){return ee===45?(e.consume(ee),z):V(ee)}function K(ee){return ee===47?(e.consume(ee),s="",X):V(ee)}function X(ee){if(ee===62){const ye=s.toLowerCase();return Ete.includes(ye)?(e.consume(ee),Te):V(ee)}return Vo(ee)&&s.length<8?(e.consume(ee),s+=String.fromCharCode(ee),X):V(ee)}function te(ee){return ee===93?(e.consume(ee),z):V(ee)}function z(ee){return ee===62?(e.consume(ee),Te):ee===45&&i===2?(e.consume(ee),z):V(ee)}function Te(ee){return ee===null||Mn(ee)?(e.exit("htmlFlowData"),be(ee)):(e.consume(ee),Te)}function be(ee){return e.exit("htmlFlow"),t(ee)}}function Odt(e,t,n){const r=this;return i;function i(s){return Mn(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):n(s)}function a(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function Sdt(e,t,n){return r;function r(i){return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),e.attempt(QT,t,n)}}const Edt={name:"htmlText",tokenize:wdt};function wdt(e,t,n){const r=this;let i,a,s;return o;function o(z){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(z),l}function l(z){return z===33?(e.consume(z),u):z===47?(e.consume(z),I):z===63?(e.consume(z),k):Vo(z)?(e.consume(z),B):n(z)}function u(z){return z===45?(e.consume(z),c):z===91?(e.consume(z),a=0,b):Vo(z)?(e.consume(z),x):n(z)}function c(z){return z===45?(e.consume(z),g):n(z)}function f(z){return z===null?n(z):z===45?(e.consume(z),h):Mn(z)?(s=f,K(z)):(e.consume(z),f)}function h(z){return z===45?(e.consume(z),g):f(z)}function g(z){return z===62?J(z):z===45?h(z):f(z)}function b(z){const Te="CDATA[";return z===Te.charCodeAt(a++)?(e.consume(z),a===Te.length?S:b):n(z)}function S(z){return z===null?n(z):z===93?(e.consume(z),w):Mn(z)?(s=S,K(z)):(e.consume(z),S)}function w(z){return z===93?(e.consume(z),E):S(z)}function E(z){return z===62?J(z):z===93?(e.consume(z),E):S(z)}function x(z){return z===null||z===62?J(z):Mn(z)?(s=x,K(z)):(e.consume(z),x)}function k(z){return z===null?n(z):z===63?(e.consume(z),C):Mn(z)?(s=k,K(z)):(e.consume(z),k)}function C(z){return z===62?J(z):k(z)}function I(z){return Vo(z)?(e.consume(z),A):n(z)}function A(z){return z===45||bo(z)?(e.consume(z),A):D(z)}function D(z){return Mn(z)?(s=D,K(z)):Ir(z)?(e.consume(z),D):J(z)}function B(z){return z===45||bo(z)?(e.consume(z),B):z===47||z===62||wi(z)?L(z):n(z)}function L(z){return z===47?(e.consume(z),J):z===58||z===95||Vo(z)?(e.consume(z),F):Mn(z)?(s=L,K(z)):Ir(z)?(e.consume(z),L):J(z)}function F(z){return z===45||z===46||z===58||z===95||bo(z)?(e.consume(z),F):W(z)}function W(z){return z===61?(e.consume(z),V):Mn(z)?(s=W,K(z)):Ir(z)?(e.consume(z),W):L(z)}function V(z){return z===null||z===60||z===61||z===62||z===96?n(z):z===34||z===39?(e.consume(z),i=z,Z):Mn(z)?(s=V,K(z)):Ir(z)?(e.consume(z),V):(e.consume(z),Q)}function Z(z){return z===i?(e.consume(z),i=void 0,H):z===null?n(z):Mn(z)?(s=Z,K(z)):(e.consume(z),Z)}function Q(z){return z===null||z===34||z===39||z===60||z===61||z===96?n(z):z===47||z===62||wi(z)?L(z):(e.consume(z),Q)}function H(z){return z===47||z===62||wi(z)?L(z):n(z)}function J(z){return z===62?(e.consume(z),e.exit("htmlTextData"),e.exit("htmlText"),t):n(z)}function K(z){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(z),e.exit("lineEnding"),X}function X(z){return Ir(z)?Tr(e,te,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(z):te(z)}function te(z){return e.enter("htmlTextData"),s(z)}}const mz={name:"labelEnd",tokenize:_dt,resolveTo:Adt,resolveAll:Cdt},xdt={tokenize:Rdt},Tdt={tokenize:Idt},kdt={tokenize:Ddt};function Cdt(e){let t=-1;for(;++t=3&&(u===null||Mn(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===i?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),Ir(u)?Tr(e,o,"whitespace")(u):o(u))}}const dl={name:"list",tokenize:zdt,continuation:{tokenize:jdt},exit:Vdt},Bdt={tokenize:Wdt,partial:!0},Udt={tokenize:Hdt,partial:!0};function zdt(e,t,n){const r=this,i=r.events[r.events.length-1];let a=i&&i[1].type==="linePrefix"?i[2].sliceSerialize(i[1],!0).length:0,s=0;return o;function o(g){const b=r.containerState.type||(g===42||g===43||g===45?"listUnordered":"listOrdered");if(b==="listUnordered"?!r.containerState.marker||g===r.containerState.marker:BL(g)){if(r.containerState.type||(r.containerState.type=b,e.enter(b,{_container:!0})),b==="listUnordered")return e.enter("listItemPrefix"),g===42||g===45?e.check(n_,n,u)(g):u(g);if(!r.interrupt||g===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(g)}return n(g)}function l(g){return BL(g)&&++s<10?(e.consume(g),l):(!r.interrupt||s<2)&&(r.containerState.marker?g===r.containerState.marker:g===41||g===46)?(e.exit("listItemValue"),u(g)):n(g)}function u(g){return e.enter("listItemMarker"),e.consume(g),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||g,e.check(QT,r.interrupt?n:c,e.attempt(Bdt,h,f))}function c(g){return r.containerState.initialBlankLine=!0,a++,h(g)}function f(g){return Ir(g)?(e.enter("listItemPrefixWhitespace"),e.consume(g),e.exit("listItemPrefixWhitespace"),h):n(g)}function h(g){return r.containerState.size=a+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(g)}}function jdt(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(QT,i,a);function i(o){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,Tr(e,t,"listItemIndent",r.containerState.size+1)(o)}function a(o){return r.containerState.furtherBlankLines||!Ir(o)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(o)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Udt,t,s)(o))}function s(o){return r.containerState._closeFlow=!0,r.interrupt=void 0,Tr(e,e.attempt(dl,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(o)}}function Hdt(e,t,n){const r=this;return Tr(e,i,"listItemIndent",r.containerState.size+1);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="listItemIndent"&&s[2].sliceSerialize(s[1],!0).length===r.containerState.size?t(a):n(a)}}function Vdt(e){e.exit(this.containerState.type)}function Wdt(e,t,n){const r=this;return Tr(e,i,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function i(a){const s=r.events[r.events.length-1];return!Ir(a)&&s&&s[1].type==="listItemPrefixWhitespace"?t(a):n(a)}}const wte={name:"setextUnderline",tokenize:qdt,resolveTo:Qdt};function Qdt(e,t){let n=e.length,r,i,a;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(i=n)}else e[n][1].type==="content"&&e.splice(n,1),!a&&e[n][1].type==="definition"&&(a=n);const s={type:"setextHeading",start:Object.assign({},e[i][1].start),end:Object.assign({},e[e.length-1][1].end)};return e[i][1].type="setextHeadingText",a?(e.splice(i,0,["enter",s,t]),e.splice(a+1,0,["exit",e[r][1],t]),e[r][1].end=Object.assign({},e[a][1].end)):e[r][1]=s,e.push(["exit",s,t]),e}function qdt(e,t,n){const r=this;let i;return a;function a(u){let c=r.events.length,f;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){f=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||f)?(e.enter("setextHeadingLine"),i=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),o(u)}function o(u){return u===i?(e.consume(u),o):(e.exit("setextHeadingLineSequence"),Ir(u)?Tr(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Mn(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Gdt={tokenize:Ydt};function Ydt(e){const t=this,n=e.attempt(QT,r,e.attempt(this.parser.constructs.flowInitial,i,Tr(e,e.attempt(this.parser.constructs.flow,i,e.attempt(edt,i)),"linePrefix")));return n;function r(a){if(a===null){e.consume(a);return}return e.enter("lineEndingBlank"),e.consume(a),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function i(a){if(a===null){e.consume(a);return}return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const Zdt={resolveAll:Tge()},Xdt=xge("string"),Kdt=xge("text");function xge(e){return{tokenize:t,resolveAll:Tge(e==="text"?Jdt:void 0)};function t(n){const r=this,i=this.parser.constructs[e],a=n.attempt(i,s,o);return s;function s(c){return u(c)?a(c):o(c)}function o(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),a(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const f=i[c];let h=-1;if(f)for(;++h-1){const o=s[0];typeof o=="string"?s[0]=o.slice(r):s.shift()}a>0&&s.push(e[i].slice(0,a))}return s}function nft(e,t){let n=-1;const r=[];let i;for(;++n0){const Ot=ve.tokenStack[ve.tokenStack.length-1];(Ot[1]||Tte).call(ve,void 0,Ot[0])}for(xe.position={start:em(fe.length>0?fe[0][1].start:{line:1,column:1,offset:0}),end:em(fe.length>0?fe[fe.length-2][1].end:{line:1,column:1,offset:0})},$e=-1;++$e1?"-"+o:""),dataFootnoteRef:!0,ariaDescribedBy:["footnote-label"]},children:[{type:"text",value:String(s)}]};e.patch(t,l);const u={type:"element",tagName:"sup",properties:{},children:[l]};return e.patch(t,u),e.applyData(t,u)}function _ft(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 Rft(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function Age(e,t){const n=t.referenceType;let r="]";if(n==="collapsed"?r+="[]":n==="full"&&(r+="["+(t.label||t.identifier)+"]"),t.type==="imageReference")return[{type:"text",value:"!["+t.alt+r}];const i=e.all(t),a=i[0];a&&a.type==="text"?a.value="["+a.value:i.unshift({type:"text",value:"["});const s=i[i.length-1];return s&&s.type==="text"?s.value+=r:i.push({type:"text",value:r}),i}function Ift(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Age(e,t);const i={src:YO(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"img",properties:i,children:[]};return e.patch(t,a),e.applyData(t,a)}function Dft(e,t){const n={src:YO(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 Nft(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 Pft(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return Age(e,t);const i={href:YO(r.url||"")};r.title!==null&&r.title!==void 0&&(i.title=r.title);const a={type:"element",tagName:"a",properties:i,children:e.all(t)};return e.patch(t,a),e.applyData(t,a)}function Mft(e,t){const n={href:YO(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 Lft(e,t,n){const r=e.all(t),i=n?$ft(n):_ge(t),a={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let f;c&&c.type==="element"&&c.tagName==="p"?f=c:(f={type:"element",tagName:"p",properties:{},children:[]},r.unshift(f)),f.children.length>0&&f.children.unshift({type:"text",value:" "}),f.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),a.className=["task-list-item"]}let o=-1;for(;++o1}function Fft(e,t){const n={},r=e.all(t);let i=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++i0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},o=nh(t.children[1]),l=LI(t.children[t.children.length-1]);o&&l&&(s.position={start:o,end:l}),i.push(s)}const a={type:"element",tagName:"table",properties:{},children:e.wrap(i,!0)};return e.patch(t,a),e.applyData(t,a)}function Hft(e,t,n){const r=n?n.children:void 0,a=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,o=s?s.length:t.children.length;let l=-1;const u=[];for(;++l0,!0),r[0]),i=r.index+r[0].length,r=n.exec(t);return a.push(Ate(t.slice(i),i>0,!1)),a.join("")}function Ate(e,t,n){let r=0,i=e.length;if(t){let a=e.codePointAt(r);for(;a===kte||a===Cte;)r++,a=e.codePointAt(r)}if(n){let a=e.codePointAt(i-1);for(;a===kte||a===Cte;)i--,a=e.codePointAt(i-1)}return i>r?e.slice(r,i):""}function Qft(e,t){const n={type:"text",value:Wft(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function qft(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const Gft={blockquote:wft,break:xft,code:Tft,delete:kft,emphasis:Cft,footnoteReference:Aft,heading:_ft,html:Rft,imageReference:Ift,image:Dft,inlineCode:Nft,linkReference:Pft,link:Mft,listItem:Lft,list:Fft,paragraph:Bft,root:Uft,strong:zft,table:jft,tableCell:Vft,tableRow:Hft,text:Qft,thematicBreak:qft,toml:FA,yaml:FA,definition:FA,footnoteDefinition:FA};function FA(){}const Rge=-1,BI=0,l5=1,u5=2,gz=3,bz=4,yz=5,vz=6,Ige=7,Dge=8,_te=typeof self=="object"?self:globalThis,Yft=(e,t)=>{const n=(i,a)=>(e.set(a,i),i),r=i=>{if(e.has(i))return e.get(i);const[a,s]=t[i];switch(a){case BI:case Rge:return n(s,i);case l5:{const o=n([],i);for(const l of s)o.push(r(l));return o}case u5:{const o=n({},i);for(const[l,u]of s)o[r(l)]=r(u);return o}case gz:return n(new Date(s),i);case bz:{const{source:o,flags:l}=s;return n(new RegExp(o,l),i)}case yz:{const o=n(new Map,i);for(const[l,u]of s)o.set(r(l),r(u));return o}case vz:{const o=n(new Set,i);for(const l of s)o.add(r(l));return o}case Ige:{const{name:o,message:l}=s;return n(new _te[o](l),i)}case Dge:return n(BigInt(s),i);case"BigInt":return n(Object(BigInt(s)),i)}return n(new _te[a](s),i)};return r},Rte=e=>Yft(new Map,e)(0),ny="",{toString:Zft}={},{keys:Xft}=Object,VE=e=>{const t=typeof e;if(t!=="object"||!e)return[BI,t];const n=Zft.call(e).slice(8,-1);switch(n){case"Array":return[l5,ny];case"Object":return[u5,ny];case"Date":return[gz,ny];case"RegExp":return[bz,ny];case"Map":return[yz,ny];case"Set":return[vz,ny]}return n.includes("Array")?[l5,n]:n.includes("Error")?[Ige,n]:[u5,n]},BA=([e,t])=>e===BI&&(t==="function"||t==="symbol"),Kft=(e,t,n,r)=>{const i=(s,o)=>{const l=r.push(s)-1;return n.set(o,l),l},a=s=>{if(n.has(s))return n.get(s);let[o,l]=VE(s);switch(o){case BI:{let c=s;switch(l){case"bigint":o=Dge,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return i([Rge],s)}return i([o,c],s)}case l5:{if(l)return i([l,[...s]],s);const c=[],f=i([o,c],s);for(const h of s)c.push(a(h));return f}case u5:{if(l)switch(l){case"BigInt":return i([l,s.toString()],s);case"Boolean":case"Number":case"String":return i([l,s.valueOf()],s)}if(t&&"toJSON"in s)return a(s.toJSON());const c=[],f=i([o,c],s);for(const h of Xft(s))(e||!BA(VE(s[h])))&&c.push([a(h),a(s[h])]);return f}case gz:return i([o,s.toISOString()],s);case bz:{const{source:c,flags:f}=s;return i([o,{source:c,flags:f}],s)}case yz:{const c=[],f=i([o,c],s);for(const[h,g]of s)(e||!(BA(VE(h))||BA(VE(g))))&&c.push([a(h),a(g)]);return f}case vz:{const c=[],f=i([o,c],s);for(const h of s)(e||!BA(VE(h)))&&c.push(a(h));return f}}const{message:u}=s;return i([o,{name:l,message:u}],s)};return a},Ite=(e,{json:t,lossy:n}={})=>{const r=[];return Kft(!(t||n),!!t,new Map,r)(e),r},Hf=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Rte(Ite(e,t)):structuredClone(e):(e,t)=>Rte(Ite(e,t));function Jft(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 eht(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function tht(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||Jft,r=e.options.footnoteBackLabel||eht,i=e.options.footnoteLabel||"Footnotes",a=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},o=[];let l=-1;for(;++l0&&b.push({type:"text",value:" "});let x=typeof n=="string"?n:n(l,g);typeof x=="string"&&(x={type:"text",value:x}),b.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+h+(g>1?"-"+g:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,g),className:["data-footnote-backref"]},children:Array.isArray(x)?x:[x]})}const w=c[c.length-1];if(w&&w.type==="element"&&w.tagName==="p"){const x=w.children[w.children.length-1];x&&x.type==="text"?x.value+=" ":w.children.push({type:"text",value:" "}),w.children.push(...b)}else c.push(...b);const E={type:"element",tagName:"li",properties:{id:t+"fn-"+h},children:e.wrap(c,!0)};e.patch(u,E),o.push(E)}if(o.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:a,properties:{...Hf(s),id:"footnote-label"},children:[{type:"text",value:i}]},{type:"text",value:` -`},{type:"element",tagName:"ol",properties:{},children:e.wrap(o,!0)},{type:"text",value:` -`}]}}const ZO=function(e){if(e==null)return aht;if(typeof e=="function")return UI(e);if(typeof e=="object")return Array.isArray(e)?nht(e):rht(e);if(typeof e=="string")return iht(e);throw new Error("Expected function, string, or object as test")};function nht(e){const t=[];let n=-1;for(;++n":""))+")"})}return h;function h(){let g=Nge,b,S,w;if((!t||a(l,u,c[c.length-1]||void 0))&&(g=lht(n(l,c)),g[0]===c5))return g;if("children"in l&&l.children){const E=l;if(E.children&&g[0]!==vv)for(S=(r?E.children.length:-1)+s,w=c.concat(E);S>-1&&S0&&n.push({type:"text",value:` -`}),n}function Dte(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function Nte(e,t){const n=cht(e,t),r=n.one(e,void 0),i=tht(n),a=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return i&&a.children.push({type:"text",value:` -`},i),a}function mht(e,t){return e&&"run"in e?async function(n,r){const i=Nte(n,{file:r,...t});await e.run(i,r)}:function(n,r){return Nte(n,{file:r,...t||e})}}function Pte(e){if(e)throw e}var r_=Object.prototype.hasOwnProperty,Pge=Object.prototype.toString,Mte=Object.defineProperty,Lte=Object.getOwnPropertyDescriptor,$te=function(t){return typeof Array.isArray=="function"?Array.isArray(t):Pge.call(t)==="[object Array]"},Fte=function(t){if(!t||Pge.call(t)!=="[object Object]")return!1;var n=r_.call(t,"constructor"),r=t.constructor&&t.constructor.prototype&&r_.call(t.constructor.prototype,"isPrototypeOf");if(t.constructor&&!n&&!r)return!1;var i;for(i in t);return typeof i>"u"||r_.call(t,i)},Bte=function(t,n){Mte&&n.name==="__proto__"?Mte(t,n.name,{enumerable:!0,configurable:!0,value:n.newValue,writable:!0}):t[n.name]=n.newValue},Ute=function(t,n){if(n==="__proto__")if(r_.call(t,n)){if(Lte)return Lte(t,n).value}else return;return t[n]},ght=function e(){var t,n,r,i,a,s,o=arguments[0],l=1,u=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},l=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});ls.length;let l;o&&s.push(i);try{l=e.apply(this,s)}catch(u){const c=u;if(o&&n)throw c;return i(c)}o||(l instanceof Promise?l.then(a,i):l instanceof Error?i(l):a(l))}function i(s,...o){n||(n=!0,t(s,...o))}function a(s){i(null,s)}}const cf={basename:vht,dirname:Oht,extname:Sht,join:Eht,sep:"/"};function vht(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');qT(e);let n=0,r=-1,i=e.length,a;if(t===void 0||t.length===0||t.length>e.length){for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else r<0&&(a=!0,r=i+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,o=t.length-1;for(;i--;)if(e.codePointAt(i)===47){if(a){n=i+1;break}}else s<0&&(a=!0,s=i+1),o>-1&&(e.codePointAt(i)===t.codePointAt(o--)?o<0&&(r=i):(o=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function Oht(e){if(qT(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 Sht(e){qT(e);let t=e.length,n=-1,r=0,i=-1,a=0,s;for(;t--;){const o=e.codePointAt(t);if(o===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),o===46?i<0?i=t:a!==1&&(a=1):i>-1&&(a=-1)}return i<0||n<0||a===0||a===1&&i===n-1&&i===r+1?"":e.slice(i,n)}function Eht(...e){let t=-1,n;for(;++t0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function xht(e,t){let n="",r=0,i=-1,a=0,s=-1,o,l;for(;++s<=e.length;){if(s2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),i=s,a=0;continue}}else if(n.length>0){n="",r=0,i=s,a=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(i+1,s):n=e.slice(i+1,s),r=s-i-1;i=s,a=0}else o===46&&a>-1?a++:a=-1}return n}function qT(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const Tht={cwd:kht};function kht(){return"/"}function HL(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function Cht(e){if(typeof e=="string")e=new URL(e);else if(!HL(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 Aht(e)}function Aht(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n0){let[g,...b]=c;const S=r[h][1];jL(S)&&jL(g)&&(g=jP(!0,S,g)),r[h]=[u,g,...b]}}}}const Dht=new Sz().freeze();function QP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function qP(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function GP(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 jte(e){if(!jL(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Hte(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function UA(e){return Nht(e)?e:new Mge(e)}function Nht(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Pht(e){return typeof e=="string"||Mht(e)}function Mht(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Lht="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Vte=[],Wte={allowDangerousHtml:!0},$ht=/^(https?|ircs?|mailto|xmpp)$/i,Fht=[{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 Bht(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",i=e.className,a=e.components,s=e.disallowedElements,o=e.rehypePlugins||Vte,l=e.remarkPlugins||Vte,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Wte}:Wte,c=e.skipHtml,f=e.unwrapDisallowed,h=e.urlTransform||Uht,g=Dht().use(Eft).use(l).use(mht,u).use(o),b=new Mge;typeof r=="string"&&(b.value=r);for(const x of Fht)Object.hasOwn(e,x.from)&&(""+x.from+(x.to?"use `"+x.to+"` instead":"remove it")+Lht+x.id,void 0);const S=g.parse(b);let w=g.runSync(S,b);return i&&(w={type:"element",tagName:"div",properties:{className:i},children:w.type==="root"?w.children:[w]}),Yo(w,E),act(w,{Fragment:_.Fragment,components:a,ignoreInvalidStyle:!0,jsx:_.jsx,jsxs:_.jsxs,passKeys:!0,passNode:!0});function E(x,k,C){if(x.type==="raw"&&C&&typeof k=="number")return c?C.children.splice(k,1):C.children[k]={type:"text",value:x.value},k;if(x.type==="element"){let I;for(I in BP)if(Object.hasOwn(BP,I)&&Object.hasOwn(x.properties,I)){const A=x.properties[I],D=BP[I];(D===null||D.includes(x.tagName))&&(x.properties[I]=h(String(A||""),I,x))}}if(x.type==="element"){let I=t?!t.includes(x.tagName):s?s.includes(x.tagName):!1;if(!I&&n&&typeof k=="number"&&(I=!n(x,k,C)),I&&C&&typeof k=="number")return f&&x.children?C.children.splice(k,1,...x.children):C.children.splice(k,1),k}}}function Uht(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||$ht.test(e.slice(0,t))?e:""}function Qte(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 zht(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function jht(e,t,n){const i=ZO((n||{}).ignore||[]),a=Hht(t);let s=-1;for(;++s0?{type:"text",value:A}:void 0),A===!1?h.lastIndex=C+1:(b!==C&&x.push({type:"text",value:u.value.slice(b,C)}),Array.isArray(A)?x.push(...A):A&&x.push(A),b=C+k[0].length,E=!0),!h.global)break;k=h.exec(u.value)}return E?(b?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const i=Qte(e,"(");let a=Qte(e,")");for(;r!==-1&&i>a;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),a++;return[e,n]}function Lge(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||E1(n)||$I(n))&&(!t||n!==47)}$ge.peek=ppt;function ipt(){return{enter:{gfmFootnoteDefinition:spt,gfmFootnoteDefinitionLabelString:opt,gfmFootnoteCall:cpt,gfmFootnoteCallString:dpt},exit:{gfmFootnoteDefinition:upt,gfmFootnoteDefinitionLabelString:lpt,gfmFootnoteCall:hpt,gfmFootnoteCallString:fpt}}}function apt(){return{unsafe:[{character:"[",inConstruct:["phrasing","label","reference"]}],handlers:{footnoteDefinition:mpt,footnoteReference:$ge}}}function spt(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function opt(){this.buffer()}function lpt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Od(this.sliceSerialize(e)).toLowerCase()}function upt(e){this.exit(e)}function cpt(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function dpt(){this.buffer()}function fpt(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.label=t,n.identifier=Od(this.sliceSerialize(e)).toLowerCase()}function hpt(e){this.exit(e)}function $ge(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteReference"),o=n.enter("reference");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),s(),a+=i.move("]"),a}function ppt(){return"["}function mpt(e,t,n,r){const i=n.createTracker(r);let a=i.move("[^");const s=n.enter("footnoteDefinition"),o=n.enter("label");return a+=i.move(n.safe(n.associationId(e),{...i.current(),before:a,after:"]"})),o(),a+=i.move("]:"+(e.children&&e.children.length>0?" ":"")),i.shift(4),a+=i.move(n.indentLines(n.containerFlow(e,i.current()),gpt)),s(),a}function gpt(e,t,n){return t===0?e:(n?"":" ")+e}const bpt=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Fge.peek=Ept;function ypt(){return{canContainEols:["delete"],enter:{strikethrough:Opt},exit:{strikethrough:Spt}}}function vpt(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:bpt}],handlers:{delete:Fge}}}function Opt(e){this.enter({type:"delete",children:[]},e)}function Spt(e){this.exit(e)}function Fge(e,t,n,r){const i=n.createTracker(r),a=n.enter("strikethrough");let s=i.move("~~");return s+=n.containerPhrasing(e,{...i.current(),before:s,after:"~"}),s+=i.move("~~"),a(),s}function Ept(){return"~"}function wpt(e,t={}){const n=(t.align||[]).concat(),r=t.stringLength||Tpt,i=[],a=[],s=[],o=[];let l=0,u=-1;for(;++ul&&(l=e[u].length);++wo[w])&&(o[w]=x)}b.push(E)}a[u]=b,s[u]=S}let c=-1;if(typeof n=="object"&&"length"in n)for(;++co[c]&&(o[c]=E),h[c]=E),f[c]=x}a.splice(1,0,f),s.splice(1,0,h),u=-1;const g=[];for(;++u "),a.shift(2);const s=n.indentLines(n.containerFlow(e,a.current()),Cpt);return i(),s}function Cpt(e,t,n){return">"+(n?"":" ")+e}function Apt(e,t){return Yte(e,t.inConstruct,!0)&&!Yte(e,t.notInConstruct,!1)}function Yte(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++rs&&(s=a):a=1,i=r+t.length,r=n.indexOf(t,i);return s}function _pt(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 Rpt(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 Ipt(e,t,n,r){const i=Rpt(n),a=e.value||"",s=i==="`"?"GraveAccent":"Tilde";if(_pt(e,n)){const f=n.enter("codeIndented"),h=n.indentLines(a,Dpt);return f(),h}const o=n.createTracker(r),l=i.repeat(Math.max(Bge(a,i)+1,3)),u=n.enter("codeFenced");let c=o.move(l);if(e.lang){const f=n.enter(`codeFencedLang${s}`);c+=o.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...o.current()})),f()}if(e.lang&&e.meta){const f=n.enter(`codeFencedMeta${s}`);c+=o.move(" "),c+=o.move(n.safe(e.meta,{before:c,after:` -`,encode:["`"],...o.current()})),f()}return c+=o.move(` -`),a&&(c+=o.move(a+` -`)),c+=o.move(l),u(),c}function Dpt(e,t,n){return(n?"":" ")+e}function wz(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 Npt(e,t,n,r){const i=wz(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("definition");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("[");return u+=l.move(n.safe(n.associationId(e),{before:u,after:"]",...l.current()})),u+=l.move("]: "),o(),!e.url||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":` -`,...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),s(),u}function Ppt(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}Uge.peek=Mpt;function Uge(e,t,n,r){const i=Ppt(n),a=n.enter("emphasis"),s=n.createTracker(r);let o=s.move(i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i),a(),o}function Mpt(e,t,n){return n.options.emphasis||"*"}function Lpt(e,t){let n=!1;return Yo(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,c5}),!!((!e.depth||e.depth<3)&&pz(e)&&(t.options.setext||n))}function $pt(e,t,n,r){const i=Math.max(Math.min(6,e.depth||1),1),a=n.createTracker(r);if(Lpt(e,n)){const c=n.enter("headingSetext"),f=n.enter("phrasing"),h=n.containerPhrasing(e,{...a.current(),before:` -`,after:` -`});return f(),c(),h+` -`+(i===1?"=":"-").repeat(h.length-(Math.max(h.lastIndexOf("\r"),h.lastIndexOf(` -`))+1))}const s="#".repeat(i),o=n.enter("headingAtx"),l=n.enter("phrasing");a.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:` -`,...a.current()});return/^[\t ]/.test(u)&&(u="&#x"+u.charCodeAt(0).toString(16).toUpperCase()+";"+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),o(),u}zge.peek=Fpt;function zge(e){return e.value||""}function Fpt(){return"<"}jge.peek=Bpt;function jge(e,t,n,r){const i=wz(n),a=i==='"'?"Quote":"Apostrophe",s=n.enter("image");let o=n.enter("label");const l=n.createTracker(r);let u=l.move("![");return u+=l.move(n.safe(e.alt,{before:u,after:"]",...l.current()})),u+=l.move("]("),o(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(o=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(o=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),o(),e.title&&(o=n.enter(`title${a}`),u+=l.move(" "+i),u+=l.move(n.safe(e.title,{before:u,after:i,...l.current()})),u+=l.move(i),o()),u+=l.move(")"),s(),u}function Bpt(){return"!"}Hge.peek=Upt;function Hge(e,t,n,r){const i=e.referenceType,a=n.enter("imageReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("![");const u=n.safe(e.alt,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Upt(){return"!"}Vge.peek=zpt;function Vge(e,t,n){let r=e.value||"",i="`",a=-1;for(;new RegExp("(^|[^`])"+i+"([^`]|$)").test(r);)i+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++a\u007F]/.test(e.url))}Qge.peek=jpt;function Qge(e,t,n,r){const i=wz(n),a=i==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let o,l;if(Wge(e,n)){const c=n.stack;n.stack=[],o=n.enter("autolink");let f=s.move("<");return f+=s.move(n.containerPhrasing(e,{before:f,after:">",...s.current()})),f+=s.move(">"),o(),n.stack=c,f}o=n.enter("link"),l=n.enter("label");let u=s.move("[");return u+=s.move(n.containerPhrasing(e,{before:u,after:"](",...s.current()})),u+=s.move("]("),l(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(l=n.enter("destinationLiteral"),u+=s.move("<"),u+=s.move(n.safe(e.url,{before:u,after:">",...s.current()})),u+=s.move(">")):(l=n.enter("destinationRaw"),u+=s.move(n.safe(e.url,{before:u,after:e.title?" ":")",...s.current()}))),l(),e.title&&(l=n.enter(`title${a}`),u+=s.move(" "+i),u+=s.move(n.safe(e.title,{before:u,after:i,...s.current()})),u+=s.move(i),l()),u+=s.move(")"),o(),u}function jpt(e,t,n){return Wge(e,n)?"<":"["}qge.peek=Hpt;function qge(e,t,n,r){const i=e.referenceType,a=n.enter("linkReference");let s=n.enter("label");const o=n.createTracker(r);let l=o.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...o.current()});l+=o.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const f=n.safe(n.associationId(e),{before:l,after:"]",...o.current()});return s(),n.stack=c,a(),i==="full"||!u||u!==f?l+=o.move(f+"]"):i==="shortcut"?l=l.slice(0,-1):l+=o.move("]"),l}function Hpt(){return"["}function xz(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 Vpt(e){const t=xz(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 Wpt(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 Gge(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 Qpt(e,t,n,r){const i=n.enter("list"),a=n.bulletCurrent;let s=e.ordered?Wpt(n):xz(n);const o=e.ordered?s==="."?")":".":Vpt(n);let l=t&&n.bulletLastUsed?s===n.bulletLastUsed:!1;if(!e.ordered){const c=e.children?e.children[0]:void 0;if((s==="*"||s==="-")&&c&&(!c.children||!c.children[0])&&n.stack[n.stack.length-1]==="list"&&n.stack[n.stack.length-2]==="listItem"&&n.stack[n.stack.length-3]==="list"&&n.stack[n.stack.length-4]==="listItem"&&n.indexStack[n.indexStack.length-1]===0&&n.indexStack[n.indexStack.length-2]===0&&n.indexStack[n.indexStack.length-3]===0&&(l=!0),Gge(n)===s&&c){let f=-1;for(;++f-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+a);let s=a.length+1;(i==="tab"||i==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const o=n.createTracker(r);o.move(a+" ".repeat(s-a.length)),o.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,o.current()),c);return l(),u;function c(f,h,g){return h?(g?"":" ".repeat(s))+f:(g?a:a+" ".repeat(s-a.length))+f}}function Ypt(e,t,n,r){const i=n.enter("paragraph"),a=n.enter("phrasing"),s=n.containerPhrasing(e,r);return a(),i(),s}const Zpt=ZO(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","link","linkReference","strong","text"]);function Xpt(e,t,n,r){return(e.children.some(function(s){return Zpt(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function Kpt(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Yge.peek=Jpt;function Yge(e,t,n,r){const i=Kpt(n),a=n.enter("strong"),s=n.createTracker(r);let o=s.move(i+i);return o+=s.move(n.containerPhrasing(e,{before:o,after:i,...s.current()})),o+=s.move(i+i),a(),o}function Jpt(e,t,n){return n.options.strong||"*"}function emt(e,t,n,r){return n.safe(e.value,r)}function tmt(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 nmt(e,t,n){const r=(Gge(n)+(n.options.ruleSpaces?" ":"")).repeat(tmt(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Zge={blockquote:kpt,break:Zte,code:Ipt,definition:Npt,emphasis:Uge,hardBreak:Zte,heading:$pt,html:zge,image:jge,imageReference:Hge,inlineCode:Vge,link:Qge,linkReference:qge,list:Qpt,listItem:Gpt,paragraph:Ypt,root:Xpt,strong:Yge,text:emt,thematicBreak:nmt};function rmt(){return{enter:{table:imt,tableData:Xte,tableHeader:Xte,tableRow:smt},exit:{codeText:omt,table:amt,tableData:KP,tableHeader:KP,tableRow:KP}}}function imt(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 amt(e){this.exit(e),this.data.inTable=void 0}function smt(e){this.enter({type:"tableRow",children:[]},e)}function KP(e){this.exit(e)}function Xte(e){this.enter({type:"tableCell",children:[]},e)}function omt(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,lmt));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function lmt(e,t){return t==="|"?t:e}function umt(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,i=t.stringLength,a=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:` -`,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:h,table:s,tableCell:l,tableRow:o}};function s(g,b,S,w){return u(c(g,S,w),g.align)}function o(g,b,S,w){const E=f(g,S,w),x=u([E]);return x.slice(0,x.indexOf(` -`))}function l(g,b,S,w){const E=S.enter("tableCell"),x=S.enter("phrasing"),k=S.containerPhrasing(g,{...w,before:a,after:a});return x(),E(),k}function u(g,b){return wpt(g,{align:b,alignDelimiters:r,padding:n,stringLength:i})}function c(g,b,S){const w=g.children;let E=-1;const x=[],k=b.enter("table");for(;++E0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const Cmt={tokenize:Mmt,partial:!0};function Amt(){return{document:{91:{tokenize:Dmt,continuation:{tokenize:Nmt},exit:Pmt}},text:{91:{tokenize:Imt},93:{add:"after",tokenize:_mt,resolveTo:Rmt}}}}function _mt(e,t,n){const r=this;let i=r.events.length;const a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;i--;){const l=r.events[i][1];if(l.type==="labelImage"){s=l;break}if(l.type==="gfmFootnoteCall"||l.type==="labelLink"||l.type==="label"||l.type==="image"||l.type==="link")break}return o;function o(l){if(!s||!s._balanced)return n(l);const u=Od(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!a.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function Rmt(e,t){let n=e.length;for(;n--;)if(e[n][1].type==="labelImage"&&e[n][0]==="enter"){e[n][1];break}e[n+1][1].type="data",e[n+3][1].type="gfmFootnoteCallLabelMarker";const r={type:"gfmFootnoteCall",start:Object.assign({},e[n+3][1].start),end:Object.assign({},e[e.length-1][1].end)},i={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};i.end.column++,i.end.offset++,i.end._bufferIndex++;const a={type:"gfmFootnoteCallString",start:Object.assign({},i.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},a.start),end:Object.assign({},a.end)},o=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",i,t],["exit",i,t],["enter",a,t],["enter",s,t],["exit",s,t],["exit",a,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...o),e}function Imt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a=0,s;return o;function o(f){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),l}function l(f){return f!==94?n(f):(e.enter("gfmFootnoteCallMarker"),e.consume(f),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(f){if(a>999||f===93&&!s||f===null||f===91||wi(f))return n(f);if(f===93){e.exit("chunkString");const h=e.exit("gfmFootnoteCallString");return i.includes(Od(r.sliceSerialize(h)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(f),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(f)}return wi(f)||(s=!0),a++,e.consume(f),f===92?c:u}function c(f){return f===91||f===92||f===93?(e.consume(f),a++,u):u(f)}}function Dmt(e,t,n){const r=this,i=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let a,s=0,o;return l;function l(b){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(b){return b===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(b)}function c(b){if(s>999||b===93&&!o||b===null||b===91||wi(b))return n(b);if(b===93){e.exit("chunkString");const S=e.exit("gfmFootnoteDefinitionLabelString");return a=Od(r.sliceSerialize(S)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(b),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),h}return wi(b)||(o=!0),s++,e.consume(b),b===92?f:c}function f(b){return b===91||b===92||b===93?(e.consume(b),s++,c):c(b)}function h(b){return b===58?(e.enter("definitionMarker"),e.consume(b),e.exit("definitionMarker"),i.includes(a)||i.push(a),Tr(e,g,"gfmFootnoteDefinitionWhitespace")):n(b)}function g(b){return t(b)}}function Nmt(e,t,n){return e.check(QT,t,e.attempt(Cmt,t,n))}function Pmt(e){e.exit("gfmFootnoteDefinition")}function Mmt(e,t,n){const r=this;return Tr(e,i,"gfmFootnoteDefinitionIndent",5);function i(a){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(a):n(a)}}function Lmt(e){let n=(e||{}).singleTilde;const r={tokenize:a,resolveAll:i};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function i(s,o){let l=-1;for(;++l1?l(b):(s.consume(b),f++,g);if(f<2&&!n)return l(b);const w=s.exit("strikethroughSequenceTemporary"),E=o5(b);return w._open=!E||E===2&&!!S,w._close=!S||S===2&&!!E,o(b)}}}class $mt{constructor(){this.map=[]}add(t,n,r){Fmt(this,t,n,r)}consume(t){if(this.map.sort(function(a,s){return a[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push([...t]),t.length=0;let i=r.pop();for(;i;)t.push(...i),i=r.pop();this.map.length=0}}function Fmt(e,t,n,r){let i=0;if(!(n===0&&r.length===0)){for(;i-1;){const Q=r.events[W][1].type;if(Q==="lineEnding"||Q==="linePrefix")W--;else break}const V=W>-1?r.events[W][1].type:null,Z=V==="tableHead"||V==="tableRow"?A:l;return Z===A&&r.parser.lazy[r.now().line]?n(F):Z(F)}function l(F){return e.enter("tableHead"),e.enter("tableRow"),u(F)}function u(F){return F===124||(s=!0,a+=1),c(F)}function c(F){return F===null?n(F):Mn(F)?a>1?(a=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),g):n(F):Ir(F)?Tr(e,c,"whitespace")(F):(a+=1,s&&(s=!1,i+=1),F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),f(F)))}function f(F){return F===null||F===124||wi(F)?(e.exit("data"),c(F)):(e.consume(F),F===92?h:f)}function h(F){return F===92||F===124?(e.consume(F),f):f(F)}function g(F){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(F):(e.enter("tableDelimiterRow"),s=!1,Ir(F)?Tr(e,b,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(F):b(F))}function b(F){return F===45||F===58?w(F):F===124?(s=!0,e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),S):I(F)}function S(F){return Ir(F)?Tr(e,w,"whitespace")(F):w(F)}function w(F){return F===58?(a+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),E):F===45?(a+=1,E(F)):F===null||Mn(F)?C(F):I(F)}function E(F){return F===45?(e.enter("tableDelimiterFiller"),x(F)):I(F)}function x(F){return F===45?(e.consume(F),x):F===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(F),e.exit("tableDelimiterMarker"),k):(e.exit("tableDelimiterFiller"),k(F))}function k(F){return Ir(F)?Tr(e,C,"whitespace")(F):C(F)}function C(F){return F===124?b(F):F===null||Mn(F)?!s||i!==a?I(F):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(F)):I(F)}function I(F){return n(F)}function A(F){return e.enter("tableRow"),D(F)}function D(F){return F===124?(e.enter("tableCellDivider"),e.consume(F),e.exit("tableCellDivider"),D):F===null||Mn(F)?(e.exit("tableRow"),t(F)):Ir(F)?Tr(e,D,"whitespace")(F):(e.enter("data"),B(F))}function B(F){return F===null||F===124||wi(F)?(e.exit("data"),D(F)):(e.consume(F),F===92?L:B)}function L(F){return F===92||F===124?(e.consume(F),B):B(F)}}function jmt(e,t){let n=-1,r=!0,i=0,a=[0,0,0,0],s=[0,0,0,0],o=!1,l=0,u,c,f;const h=new $mt;for(;++nn[2]+1){const b=n[2]+1,S=n[3]-n[2]-1;e.add(b,S,[])}}e.add(n[3]+1,0,[["exit",f,t]])}return i!==void 0&&(a.end=Object.assign({},gy(t.events,i)),e.add(i,0,[["exit",a,t]]),a=void 0),a}function Jte(e,t,n,r,i){const a=[],s=gy(t.events,n);i&&(i.end=Object.assign({},s),a.push(["exit",i,t])),r.end=Object.assign({},s),a.push(["exit",r,t]),e.add(n+1,0,a)}function gy(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const Hmt={tokenize:Wmt};function Vmt(){return{text:{91:Hmt}}}function Wmt(e,t,n){const r=this;return i;function i(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),a)}function a(l){return wi(l)?(e.enter("taskListCheckValueUnchecked"),e.consume(l),e.exit("taskListCheckValueUnchecked"),s):l===88||l===120?(e.enter("taskListCheckValueChecked"),e.consume(l),e.exit("taskListCheckValueChecked"),s):n(l)}function s(l){return l===93?(e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),e.exit("taskListCheck"),o):n(l)}function o(l){return Mn(l)?t(l):Ir(l)?e.check({tokenize:Qmt},t,n)(l):n(l)}}function Qmt(e,t,n){return Tr(e,r,"whitespace");function r(i){return i===null?n(i):t(i)}}function qmt(e){return mge([ymt(),Amt(),Lmt(e),Umt(),Vmt()])}const Gmt={};function Ymt(e){const t=this,n=e||Gmt,r=t.data(),i=r.micromarkExtensions||(r.micromarkExtensions=[]),a=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);i.push(qmt(n)),a.push(pmt()),s.push(mmt(n))}const ene=/[#.]/g;function Zmt(e,t){const n=e||"",r={};let i=0,a,s;for(;i-1&&aa)return{line:s+1,column:a-(s>0?n[s-1]:0)+1,offset:a}}}function i(a){const s=a&&a.line,o=a&&a.column;if(typeof s=="number"&&typeof o=="number"&&!Number.isNaN(s)&&!Number.isNaN(o)&&s-1 in n){const l=(n[s-2]||0)+o-1||0;if(l>-1&&l=55296&&e<=57343}function E0t(e){return e>=56320&&e<=57343}function w0t(e,t){return(e-55296)*1024+9216+t}function c1e(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function d1e(e){return e>=64976&&e<=65007||S0t.has(e)}var pt;(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"})(pt=pt||(pt={}));const x0t=65536;class T0t{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=x0t,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(E0t(n))return this.pos++,this._addGap(),w0t(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,de.EOF;return this._err(pt.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,de.EOF;const r=this.html.charCodeAt(n);return r===de.CARRIAGE_RETURN?de.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,de.EOF;let t=this.html.charCodeAt(this.pos);return t===de.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,de.LINE_FEED):t===de.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,u1e(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===de.LINE_FEED||t===de.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){c1e(t)?this._err(pt.controlCharacterInInputStream):d1e(t)&&this._err(pt.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 sm=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))),k0t=new Uint16Array("Ȁaglq \x1Bɭ\0\0p;䀦os;䀧t;䀾t;䀼uot;䀢".split("").map(e=>e.charCodeAt(0)));var e7;const C0t=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]]),A0t=(e7=String.fromCodePoint)!==null&&e7!==void 0?e7: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 _0t(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=C0t.get(e))!==null&&t!==void 0?t:e}var Ts;(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"})(Ts||(Ts={}));const R0t=32;var If;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(If||(If={}));function qL(e){return e>=Ts.ZERO&&e<=Ts.NINE}function I0t(e){return e>=Ts.UPPER_A&&e<=Ts.UPPER_F||e>=Ts.LOWER_A&&e<=Ts.LOWER_F}function D0t(e){return e>=Ts.UPPER_A&&e<=Ts.UPPER_Z||e>=Ts.LOWER_A&&e<=Ts.LOWER_Z||qL(e)}function N0t(e){return e===Ts.EQUALS||D0t(e)}var Os;(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"})(Os||(Os={}));var _g;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(_g||(_g={}));class P0t{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Os.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=_g.Strict}startEntity(t){this.decodeMode=t,this.state=Os.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Os.EntityStart:return t.charCodeAt(n)===Ts.NUM?(this.state=Os.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Os.NamedEntity,this.stateNamedEntity(t,n));case Os.NumericStart:return this.stateNumericStart(t,n);case Os.NumericDecimal:return this.stateNumericDecimal(t,n);case Os.NumericHex:return this.stateNumericHex(t,n);case Os.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|R0t)===Ts.LOWER_X?(this.state=Os.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Os.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,i){if(n!==r){const a=r-n;this.result=this.result*Math.pow(i,a)+parseInt(t.substr(n,a),i),this.consumed+=a}}stateNumericHex(t,n){const r=n;for(;n>14;for(;n>14,a!==0){if(s===Ts.SEMI)return this.emitNamedEntityData(this.treeIndex,a,this.consumed+this.excess);this.decodeMode!==_g.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,i=(r[n]&If.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]&~If.VALUE_LENGTH:i[t+1],r),n===3&&this.emitCodePoint(i[t+2],r),r}end(){var t;switch(this.state){case Os.NamedEntity:return this.result!==0&&(this.decodeMode!==_g.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Os.NumericDecimal:return this.emitNumericEntity(0,2);case Os.NumericHex:return this.emitNumericEntity(0,3);case Os.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Os.EntityStart:return 0}}}function h1e(e){let t="";const n=new P0t(e,r=>t+=A0t(r));return function(i,a){let s=0,o=0;for(;(o=i.indexOf("&",o))>=0;){t+=i.slice(s,o),n.startEntity(a);const u=n.write(i,o+1);if(u<0){s=o+n.end();break}s=o+u,o=u===0?s+1:s}const l=t+i.slice(s);return t="",l}}function p1e(e,t,n,r){const i=(t&If.BRANCH_LENGTH)>>7,a=t&If.JUMP_TABLE;if(i===0)return a!==0&&r===a?n:-1;if(a){const l=r-a;return l<0||l>=i?-1:e[n+l]-1}let s=n,o=s+i-1;for(;s<=o;){const l=s+o>>>1,u=e[l];if(ur)o=l-1;else return e[l+i]}return-1}h1e(sm);h1e(k0t);var Et;(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/"})(Et=Et||(Et={}));var Km;(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"})(Km=Km||(Km={}));var hu;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(hu=hu||(hu={}));var Ke;(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"})(Ke=Ke||(Ke={}));var P;(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"})(P=P||(P={}));const M0t=new Map([[Ke.A,P.A],[Ke.ADDRESS,P.ADDRESS],[Ke.ANNOTATION_XML,P.ANNOTATION_XML],[Ke.APPLET,P.APPLET],[Ke.AREA,P.AREA],[Ke.ARTICLE,P.ARTICLE],[Ke.ASIDE,P.ASIDE],[Ke.B,P.B],[Ke.BASE,P.BASE],[Ke.BASEFONT,P.BASEFONT],[Ke.BGSOUND,P.BGSOUND],[Ke.BIG,P.BIG],[Ke.BLOCKQUOTE,P.BLOCKQUOTE],[Ke.BODY,P.BODY],[Ke.BR,P.BR],[Ke.BUTTON,P.BUTTON],[Ke.CAPTION,P.CAPTION],[Ke.CENTER,P.CENTER],[Ke.CODE,P.CODE],[Ke.COL,P.COL],[Ke.COLGROUP,P.COLGROUP],[Ke.DD,P.DD],[Ke.DESC,P.DESC],[Ke.DETAILS,P.DETAILS],[Ke.DIALOG,P.DIALOG],[Ke.DIR,P.DIR],[Ke.DIV,P.DIV],[Ke.DL,P.DL],[Ke.DT,P.DT],[Ke.EM,P.EM],[Ke.EMBED,P.EMBED],[Ke.FIELDSET,P.FIELDSET],[Ke.FIGCAPTION,P.FIGCAPTION],[Ke.FIGURE,P.FIGURE],[Ke.FONT,P.FONT],[Ke.FOOTER,P.FOOTER],[Ke.FOREIGN_OBJECT,P.FOREIGN_OBJECT],[Ke.FORM,P.FORM],[Ke.FRAME,P.FRAME],[Ke.FRAMESET,P.FRAMESET],[Ke.H1,P.H1],[Ke.H2,P.H2],[Ke.H3,P.H3],[Ke.H4,P.H4],[Ke.H5,P.H5],[Ke.H6,P.H6],[Ke.HEAD,P.HEAD],[Ke.HEADER,P.HEADER],[Ke.HGROUP,P.HGROUP],[Ke.HR,P.HR],[Ke.HTML,P.HTML],[Ke.I,P.I],[Ke.IMG,P.IMG],[Ke.IMAGE,P.IMAGE],[Ke.INPUT,P.INPUT],[Ke.IFRAME,P.IFRAME],[Ke.KEYGEN,P.KEYGEN],[Ke.LABEL,P.LABEL],[Ke.LI,P.LI],[Ke.LINK,P.LINK],[Ke.LISTING,P.LISTING],[Ke.MAIN,P.MAIN],[Ke.MALIGNMARK,P.MALIGNMARK],[Ke.MARQUEE,P.MARQUEE],[Ke.MATH,P.MATH],[Ke.MENU,P.MENU],[Ke.META,P.META],[Ke.MGLYPH,P.MGLYPH],[Ke.MI,P.MI],[Ke.MO,P.MO],[Ke.MN,P.MN],[Ke.MS,P.MS],[Ke.MTEXT,P.MTEXT],[Ke.NAV,P.NAV],[Ke.NOBR,P.NOBR],[Ke.NOFRAMES,P.NOFRAMES],[Ke.NOEMBED,P.NOEMBED],[Ke.NOSCRIPT,P.NOSCRIPT],[Ke.OBJECT,P.OBJECT],[Ke.OL,P.OL],[Ke.OPTGROUP,P.OPTGROUP],[Ke.OPTION,P.OPTION],[Ke.P,P.P],[Ke.PARAM,P.PARAM],[Ke.PLAINTEXT,P.PLAINTEXT],[Ke.PRE,P.PRE],[Ke.RB,P.RB],[Ke.RP,P.RP],[Ke.RT,P.RT],[Ke.RTC,P.RTC],[Ke.RUBY,P.RUBY],[Ke.S,P.S],[Ke.SCRIPT,P.SCRIPT],[Ke.SECTION,P.SECTION],[Ke.SELECT,P.SELECT],[Ke.SOURCE,P.SOURCE],[Ke.SMALL,P.SMALL],[Ke.SPAN,P.SPAN],[Ke.STRIKE,P.STRIKE],[Ke.STRONG,P.STRONG],[Ke.STYLE,P.STYLE],[Ke.SUB,P.SUB],[Ke.SUMMARY,P.SUMMARY],[Ke.SUP,P.SUP],[Ke.TABLE,P.TABLE],[Ke.TBODY,P.TBODY],[Ke.TEMPLATE,P.TEMPLATE],[Ke.TEXTAREA,P.TEXTAREA],[Ke.TFOOT,P.TFOOT],[Ke.TD,P.TD],[Ke.TH,P.TH],[Ke.THEAD,P.THEAD],[Ke.TITLE,P.TITLE],[Ke.TR,P.TR],[Ke.TRACK,P.TRACK],[Ke.TT,P.TT],[Ke.U,P.U],[Ke.UL,P.UL],[Ke.SVG,P.SVG],[Ke.VAR,P.VAR],[Ke.WBR,P.WBR],[Ke.XMP,P.XMP]]);function KO(e){var t;return(t=M0t.get(e))!==null&&t!==void 0?t:P.UNKNOWN}const Bt=P,L0t={[Et.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]),[Et.MATHML]:new Set([Bt.MI,Bt.MO,Bt.MN,Bt.MS,Bt.MTEXT,Bt.ANNOTATION_XML]),[Et.SVG]:new Set([Bt.TITLE,Bt.FOREIGN_OBJECT,Bt.DESC]),[Et.XLINK]:new Set,[Et.XML]:new Set,[Et.XMLNS]:new Set};function m1e(e){return e===Bt.H1||e===Bt.H2||e===Bt.H3||e===Bt.H4||e===Bt.H5||e===Bt.H6}Ke.STYLE,Ke.SCRIPT,Ke.XMP,Ke.IFRAME,Ke.NOEMBED,Ke.NOFRAMES,Ke.PLAINTEXT;const $0t=new Map([[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);var ge;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.NAMED_CHARACTER_REFERENCE=72]="NAMED_CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=73]="AMBIGUOUS_AMPERSAND",e[e.NUMERIC_CHARACTER_REFERENCE=74]="NUMERIC_CHARACTER_REFERENCE",e[e.HEXADEMICAL_CHARACTER_REFERENCE_START=75]="HEXADEMICAL_CHARACTER_REFERENCE_START",e[e.HEXADEMICAL_CHARACTER_REFERENCE=76]="HEXADEMICAL_CHARACTER_REFERENCE",e[e.DECIMAL_CHARACTER_REFERENCE=77]="DECIMAL_CHARACTER_REFERENCE",e[e.NUMERIC_CHARACTER_REFERENCE_END=78]="NUMERIC_CHARACTER_REFERENCE_END"})(ge||(ge={}));const Ma={DATA:ge.DATA,RCDATA:ge.RCDATA,RAWTEXT:ge.RAWTEXT,SCRIPT_DATA:ge.SCRIPT_DATA,PLAINTEXT:ge.PLAINTEXT,CDATA_SECTION:ge.CDATA_SECTION};function ew(e){return e>=de.DIGIT_0&&e<=de.DIGIT_9}function g2(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_Z}function F0t(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_Z}function om(e){return F0t(e)||g2(e)}function GL(e){return om(e)||ew(e)}function g1e(e){return e>=de.LATIN_CAPITAL_A&&e<=de.LATIN_CAPITAL_F}function b1e(e){return e>=de.LATIN_SMALL_A&&e<=de.LATIN_SMALL_F}function B0t(e){return ew(e)||g1e(e)||b1e(e)}function jA(e){return e+32}function y1e(e){return e===de.SPACE||e===de.LINE_FEED||e===de.TABULATION||e===de.FORM_FEED}function U0t(e){return e===de.EQUALS_SIGN||GL(e)}function rne(e){return y1e(e)||e===de.SOLIDUS||e===de.GREATER_THAN_SIGN}class z0t{constructor(t,n){this.options=t,this.handler=n,this.paused=!1,this.inLoop=!1,this.inForeignNode=!1,this.lastStartTagName="",this.active=!1,this.state=ge.DATA,this.returnState=ge.DATA,this.charRefCode=-1,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new T0t(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(pt.endTagWithAttributes),t.selfClosing&&this._err(pt.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 Er.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case Er.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case Er.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:Er.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=y1e(t)?Er.WHITESPACE_CHARACTER:t===de.NULL?Er.NULL_CHARACTER:Er.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(Er.CHARACTER,t)}_matchNamedCharacterReference(t){let n=null,r=0,i=!1;for(let a=0,s=sm[0];a>=0&&(a=p1e(sm,s,a+1,t),!(a<0));t=this._consume()){r+=1,s=sm[a];const o=s&If.VALUE_LENGTH;if(o){const l=(o>>14)-1;if(t!==de.SEMICOLON&&this._isCharacterReferenceInAttribute()&&U0t(this.preprocessor.peek(1))?(n=[de.AMPERSAND],a+=l):(n=l===0?[sm[a]&~If.VALUE_LENGTH]:l===1?[sm[++a]]:[sm[++a],sm[++a]],r=0,i=t!==de.SEMICOLON),l===0){this._consume();break}}}return this._unconsume(r),i&&!this.preprocessor.endOfChunkHit&&this._err(pt.missingSemicolonAfterCharacterReference),this._unconsume(1),n}_isCharacterReferenceInAttribute(){return this.returnState===ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===ge.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case ge.DATA:{this._stateData(t);break}case ge.RCDATA:{this._stateRcdata(t);break}case ge.RAWTEXT:{this._stateRawtext(t);break}case ge.SCRIPT_DATA:{this._stateScriptData(t);break}case ge.PLAINTEXT:{this._statePlaintext(t);break}case ge.TAG_OPEN:{this._stateTagOpen(t);break}case ge.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case ge.TAG_NAME:{this._stateTagName(t);break}case ge.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case ge.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case ge.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case ge.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case ge.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case ge.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case ge.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case ge.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case ge.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case ge.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case ge.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case ge.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case ge.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case ge.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case ge.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case ge.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case ge.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case ge.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case ge.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case ge.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case ge.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case ge.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case ge.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case ge.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case ge.BOGUS_COMMENT:{this._stateBogusComment(t);break}case ge.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case ge.COMMENT_START:{this._stateCommentStart(t);break}case ge.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case ge.COMMENT:{this._stateComment(t);break}case ge.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case ge.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case ge.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case ge.COMMENT_END:{this._stateCommentEnd(t);break}case ge.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case ge.DOCTYPE:{this._stateDoctype(t);break}case ge.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case ge.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case ge.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case ge.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case ge.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case ge.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case ge.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case ge.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case ge.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case ge.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case ge.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case ge.CDATA_SECTION:{this._stateCdataSection(t);break}case ge.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case ge.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case ge.CHARACTER_REFERENCE:{this._stateCharacterReference(t);break}case ge.NAMED_CHARACTER_REFERENCE:{this._stateNamedCharacterReference(t);break}case ge.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}case ge.NUMERIC_CHARACTER_REFERENCE:{this._stateNumericCharacterReference(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE_START:{this._stateHexademicalCharacterReferenceStart(t);break}case ge.HEXADEMICAL_CHARACTER_REFERENCE:{this._stateHexademicalCharacterReference(t);break}case ge.DECIMAL_CHARACTER_REFERENCE:{this._stateDecimalCharacterReference(t);break}case ge.NUMERIC_CHARACTER_REFERENCE_END:{this._stateNumericCharacterReferenceEnd(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.TAG_OPEN;break}case de.AMPERSAND:{this.returnState=ge.DATA,this.state=ge.CHARACTER_REFERENCE;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitCodePoint(t);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case de.AMPERSAND:{this.returnState=ge.RCDATA,this.state=ge.CHARACTER_REFERENCE;break}case de.LESS_THAN_SIGN:{this.state=ge.RCDATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Yi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.RAWTEXT_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Yi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case de.LESS_THAN_SIGN:{this.state=ge.SCRIPT_DATA_LESS_THAN_SIGN;break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Yi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case de.NULL:{this._err(pt.unexpectedNullCharacter),this._emitChars(Yi);break}case de.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(om(t))this._createStartTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case de.EXCLAMATION_MARK:{this.state=ge.MARKUP_DECLARATION_OPEN;break}case de.SOLIDUS:{this.state=ge.END_TAG_OPEN;break}case de.QUESTION_MARK:{this._err(pt.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=ge.BOGUS_COMMENT,this._stateBogusComment(t);break}case de.EOF:{this._err(pt.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(pt.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=ge.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(om(t))this._createEndTagToken(),this.state=ge.TAG_NAME,this._stateTagName(t);else switch(t){case de.GREATER_THAN_SIGN:{this._err(pt.missingEndTagName),this.state=ge.DATA;break}case de.EOF:{this._err(pt.eofBeforeTagName),this._emitChars("");break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_ESCAPED,this._emitChars(Yi);break}case de.EOF:{this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===de.SOLIDUS?this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:om(t)?(this._emitChars("<"),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=ge.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){om(t)?(this.state=ge.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("");break}case de.NULL:{this._err(pt.unexpectedNullCharacter),this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Yi);break}case de.EOF:{this._err(pt.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===de.SOLIDUS?(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=ge.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(cl.SCRIPT,!1)&&rne(this.preprocessor.peek(cl.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n1114111)this._err(pt.characterReferenceOutsideUnicodeRange),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(u1e(this.charRefCode))this._err(pt.surrogateCharacterReference),this.charRefCode=de.REPLACEMENT_CHARACTER;else if(d1e(this.charRefCode))this._err(pt.noncharacterCharacterReference);else if(c1e(this.charRefCode)||this.charRefCode===de.CARRIAGE_RETURN){this._err(pt.controlCharacterReference);const n=$0t.get(this.charRefCode);n!==void 0&&(this.charRefCode=n)}this._flushCodePointConsumedAsCharacterReference(this.charRefCode),this._reconsumeInState(this.returnState,t)}}const v1e=new Set([P.DD,P.DT,P.LI,P.OPTGROUP,P.OPTION,P.P,P.RB,P.RP,P.RT,P.RTC]),ine=new Set([...v1e,P.CAPTION,P.COLGROUP,P.TBODY,P.TD,P.TFOOT,P.TH,P.THEAD,P.TR]),HA=new Map([[P.APPLET,Et.HTML],[P.CAPTION,Et.HTML],[P.HTML,Et.HTML],[P.MARQUEE,Et.HTML],[P.OBJECT,Et.HTML],[P.TABLE,Et.HTML],[P.TD,Et.HTML],[P.TEMPLATE,Et.HTML],[P.TH,Et.HTML],[P.ANNOTATION_XML,Et.MATHML],[P.MI,Et.MATHML],[P.MN,Et.MATHML],[P.MO,Et.MATHML],[P.MS,Et.MATHML],[P.MTEXT,Et.MATHML],[P.DESC,Et.SVG],[P.FOREIGN_OBJECT,Et.SVG],[P.TITLE,Et.SVG]]),j0t=[P.H1,P.H2,P.H3,P.H4,P.H5,P.H6],H0t=[P.TR,P.TEMPLATE,P.HTML],V0t=[P.TBODY,P.TFOOT,P.THEAD,P.TEMPLATE,P.HTML],W0t=[P.TABLE,P.TEMPLATE,P.HTML],Q0t=[P.TD,P.TH];class q0t{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=P.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===P.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Et.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])!==Et.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(W0t,Et.HTML)}clearBackToTableBodyContext(){this.clearBackTo(V0t,Et.HTML)}clearBackToTableRowContext(){this.clearBackTo(H0t,Et.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]===P.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]===P.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===Et.HTML)return!0;if(HA.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(m1e(n)&&r===Et.HTML)return!0;if(HA.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===Et.HTML)return!0;if((r===P.UL||r===P.OL)&&i===Et.HTML||HA.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===Et.HTML)return!0;if(r===P.BUTTON&&i===Et.HTML||HA.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])===Et.HTML){if(r===t)return!0;if(r===P.TABLE||r===P.TEMPLATE||r===P.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])===Et.HTML){if(n===P.TBODY||n===P.THEAD||n===P.TFOOT)return!0;if(n===P.TABLE||n===P.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])===Et.HTML){if(r===t)return!0;if(r!==P.OPTION&&r!==P.OPTGROUP)return!1}}return!0}generateImpliedEndTags(){for(;v1e.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;ine.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==t&&ine.has(this.currentTagId);)this.pop()}}const t7=3;var fd;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(fd=fd||(fd={}));const ane={type:fd.Marker};class G0t{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],i=n.length,a=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let o=0;o[s.name,s.value]));let a=0;for(let s=0;si.get(l.name)===l.value)&&(a+=1,a>=t7&&this.entries.splice(o.idx,1))}}insertMarker(){this.entries.unshift(ane)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:fd.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:fd.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(ane);t>=0?this.entries.splice(0,t+1):this.entries.length=0}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===fd.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===fd.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===fd.Element&&n.element===t)}}function sne(e){return{nodeName:"#text",value:e,parentNode:null}}const by={createDocument(){return{nodeName:"#document",mode:hu.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const i=e.childNodes.find(a=>a.nodeName==="#documentType");if(i)i.name=t,i.publicId=n,i.systemId=r;else{const a={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};by.appendChild(e,a)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(by.isTextNode(n)){n.value+=t;return}}by.appendChild(e,sne(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&by.isTextNode(r)?r.value+=t:by.insertBefore(e,sne(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;re.startsWith(n))}function egt(e){return e.name===O1e&&e.publicId===null&&(e.systemId===null||e.systemId===Y0t)}function tgt(e){if(e.name!==O1e)return hu.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===Z0t)return hu.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),K0t.has(n))return hu.QUIRKS;let r=t===null?X0t:S1e;if(one(n,r))return hu.QUIRKS;if(r=t===null?E1e:J0t,one(n,r))return hu.LIMITED_QUIRKS}return hu.NO_QUIRKS}const lne={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},ngt="definitionurl",rgt="definitionURL",igt=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])),agt=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Et.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Et.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Et.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Et.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Et.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Et.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Et.XLINK}],["xml:base",{prefix:"xml",name:"base",namespace:Et.XML}],["xml:lang",{prefix:"xml",name:"lang",namespace:Et.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Et.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Et.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Et.XMLNS}]]),sgt=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])),ogt=new Set([P.B,P.BIG,P.BLOCKQUOTE,P.BODY,P.BR,P.CENTER,P.CODE,P.DD,P.DIV,P.DL,P.DT,P.EM,P.EMBED,P.H1,P.H2,P.H3,P.H4,P.H5,P.H6,P.HEAD,P.HR,P.I,P.IMG,P.LI,P.LISTING,P.MENU,P.META,P.NOBR,P.OL,P.P,P.PRE,P.RUBY,P.S,P.SMALL,P.SPAN,P.STRONG,P.STRIKE,P.SUB,P.SUP,P.TABLE,P.TT,P.U,P.UL,P.VAR]);function lgt(e){const t=e.tagID;return t===P.FONT&&e.attrs.some(({name:r})=>r===Km.COLOR||r===Km.SIZE||r===Km.FACE)||ogt.has(t)}function w1e(e){for(let t=0;t0&&this._setContextModes(t,n)}onItemPop(t,n){var r,i;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(i=(r=this.treeAdapter).onItemPop)===null||i===void 0||i.call(r,t,this.openElements.current),n){let a,s;this.openElements.stackTop===0&&this.fragmentContext?(a=this.fragmentContext,s=this.fragmentContextID):{current:a,currentTagId:s}=this.openElements,this._setContextModes(a,s)}}_setContextModes(t,n){const r=t===this.document||this.treeAdapter.getNamespaceURI(t)===Et.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Et.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=Ae.TEXT}switchToPlaintextParsing(){this.insertionMode=Ae.TEXT,this.originalInsertionMode=Ae.IN_BODY,this.tokenizer.state=Ma.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)===Ke.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Et.HTML))switch(this.fragmentContextID){case P.TITLE:case P.TEXTAREA:{this.tokenizer.state=Ma.RCDATA;break}case P.STYLE:case P.XMP:case P.IFRAME:case P.NOEMBED:case P.NOFRAMES:case P.NOSCRIPT:{this.tokenizer.state=Ma.RAWTEXT;break}case P.SCRIPT:{this.tokenizer.state=Ma.SCRIPT_DATA;break}case P.PLAINTEXT:{this.tokenizer.state=Ma.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",i=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,i),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(o=>this.treeAdapter.isDocumentTypeNode(o));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Et.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Et.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(Ke.HTML,Et.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,P.HTML)}_appendCommentNode(t,n){const r=this.treeAdapter.createCommentNode(t.data);this.treeAdapter.appendChild(n,r),this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(r,t.location)}_insertCharacters(t){let n,r;if(this._shouldFosterParentOnInsertion()?({parent:n,beforeElement:r}=this._findFosterParentingLocation(),r?this.treeAdapter.insertTextBefore(n,t.chars,r):this.treeAdapter.insertText(n,t.chars)):(n=this.openElements.currentTmplContentOrNode,this.treeAdapter.insertText(n,t.chars)),!t.location)return;const i=this.treeAdapter.getChildNodes(n),a=r?i.lastIndexOf(r):i.length,s=i[a-1];if(this.treeAdapter.getNodeSourceCodeLocation(s)){const{endLine:l,endCol:u,endOffset:c}=t.location;this.treeAdapter.updateNodeSourceCodeLocation(s,{endLine:l,endCol:u,endOffset:c})}else this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}_adoptNodes(t,n){for(let r=this.treeAdapter.getFirstChild(t);r;r=this.treeAdapter.getFirstChild(t))this.treeAdapter.detachNode(r),this.treeAdapter.appendChild(n,r)}_setEndLocation(t,n){if(this.treeAdapter.getNodeSourceCodeLocation(t)&&n.location){const r=n.location,i=this.treeAdapter.getTagName(t),a=n.type===Er.END_TAG&&i===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,a)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===P.SVG&&this.treeAdapter.getTagName(n)===Ke.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Et.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===P.MGLYPH||t.tagID===P.MALIGNMARK)&&!this._isIntegrationPoint(r,n,Et.HTML)}_processToken(t){switch(t.type){case Er.CHARACTER:{this.onCharacter(t);break}case Er.NULL_CHARACTER:{this.onNullCharacter(t);break}case Er.COMMENT:{this.onComment(t);break}case Er.DOCTYPE:{this.onDoctype(t);break}case Er.START_TAG:{this._processStartTag(t);break}case Er.END_TAG:{this.onEndTag(t);break}case Er.EOF:{this.onEof(t);break}case Er.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const i=this.treeAdapter.getNamespaceURI(n),a=this.treeAdapter.getAttrList(n);return fgt(t,i,a,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(i=>i.type===fd.Marker||this.openElements.contains(i.element)),r=n<0?t-1:n-1;for(let i=r;i>=0;i--){const a=this.activeFormattingElements.entries[i];this._insertElement(a.token,this.treeAdapter.getNamespaceURI(a.element)),a.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=Ae.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(P.P),this.openElements.popUntilTagNamePopped(P.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case P.TR:{this.insertionMode=Ae.IN_ROW;return}case P.TBODY:case P.THEAD:case P.TFOOT:{this.insertionMode=Ae.IN_TABLE_BODY;return}case P.CAPTION:{this.insertionMode=Ae.IN_CAPTION;return}case P.COLGROUP:{this.insertionMode=Ae.IN_COLUMN_GROUP;return}case P.TABLE:{this.insertionMode=Ae.IN_TABLE;return}case P.BODY:{this.insertionMode=Ae.IN_BODY;return}case P.FRAMESET:{this.insertionMode=Ae.IN_FRAMESET;return}case P.SELECT:{this._resetInsertionModeForSelect(t);return}case P.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case P.HTML:{this.insertionMode=this.headElement?Ae.AFTER_HEAD:Ae.BEFORE_HEAD;return}case P.TD:case P.TH:{if(t>0){this.insertionMode=Ae.IN_CELL;return}break}case P.HEAD:{if(t>0){this.insertionMode=Ae.IN_HEAD;return}break}}this.insertionMode=Ae.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===P.TEMPLATE)break;if(r===P.TABLE){this.insertionMode=Ae.IN_SELECT_IN_TABLE;return}}this.insertionMode=Ae.IN_SELECT}_isElementCausesFosterParenting(t){return T1e.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 P.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Et.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case P.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 L0t[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){Q1t(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{WE(this,t);break}case Ae.BEFORE_HTML:{tw(this,t);break}case Ae.BEFORE_HEAD:{nw(this,t);break}case Ae.IN_HEAD:{rw(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{iw(this,t);break}case Ae.AFTER_HEAD:{aw(this,t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:{C1e(this,t);break}case Ae.TEXT:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{n7(this,t);break}case Ae.IN_TABLE_TEXT:{N1e(this,t);break}case Ae.IN_COLUMN_GROUP:{d5(this,t);break}case Ae.AFTER_BODY:{f5(this,t);break}case Ae.AFTER_AFTER_BODY:{a_(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){W1t(this,t);return}switch(this.insertionMode){case Ae.INITIAL:{WE(this,t);break}case Ae.BEFORE_HTML:{tw(this,t);break}case Ae.BEFORE_HEAD:{nw(this,t);break}case Ae.IN_HEAD:{rw(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{iw(this,t);break}case Ae.AFTER_HEAD:{aw(this,t);break}case Ae.TEXT:{this._insertCharacters(t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{n7(this,t);break}case Ae.IN_COLUMN_GROUP:{d5(this,t);break}case Ae.AFTER_BODY:{f5(this,t);break}case Ae.AFTER_AFTER_BODY:{a_(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){YL(this,t);return}switch(this.insertionMode){case Ae.INITIAL:case Ae.BEFORE_HTML:case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_TEMPLATE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{YL(this,t);break}case Ae.IN_TABLE_TEXT:{QE(this,t);break}case Ae.AFTER_BODY:{wgt(this,t);break}case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{xgt(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case Ae.INITIAL:{Tgt(this,t);break}case Ae.BEFORE_HEAD:case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:{this._err(t,pt.misplacedDoctype);break}case Ae.IN_TABLE_TEXT:{QE(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,pt.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?q1t(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{WE(this,t);break}case Ae.BEFORE_HTML:{kgt(this,t);break}case Ae.BEFORE_HEAD:{Agt(this,t);break}case Ae.IN_HEAD:{Fd(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Igt(this,t);break}case Ae.AFTER_HEAD:{Ngt(this,t);break}case Ae.IN_BODY:{To(this,t);break}case Ae.IN_TABLE:{mO(this,t);break}case Ae.IN_TABLE_TEXT:{QE(this,t);break}case Ae.IN_CAPTION:{_1t(this,t);break}case Ae.IN_COLUMN_GROUP:{Iz(this,t);break}case Ae.IN_TABLE_BODY:{HI(this,t);break}case Ae.IN_ROW:{VI(this,t);break}case Ae.IN_CELL:{D1t(this,t);break}case Ae.IN_SELECT:{L1e(this,t);break}case Ae.IN_SELECT_IN_TABLE:{P1t(this,t);break}case Ae.IN_TEMPLATE:{L1t(this,t);break}case Ae.AFTER_BODY:{F1t(this,t);break}case Ae.IN_FRAMESET:{B1t(this,t);break}case Ae.AFTER_FRAMESET:{z1t(this,t);break}case Ae.AFTER_AFTER_BODY:{H1t(this,t);break}case Ae.AFTER_AFTER_FRAMESET:{V1t(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?G1t(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case Ae.INITIAL:{WE(this,t);break}case Ae.BEFORE_HTML:{Cgt(this,t);break}case Ae.BEFORE_HEAD:{_gt(this,t);break}case Ae.IN_HEAD:{Rgt(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{Dgt(this,t);break}case Ae.AFTER_HEAD:{Pgt(this,t);break}case Ae.IN_BODY:{jI(this,t);break}case Ae.TEXT:{v1t(this,t);break}case Ae.IN_TABLE:{kx(this,t);break}case Ae.IN_TABLE_TEXT:{QE(this,t);break}case Ae.IN_CAPTION:{R1t(this,t);break}case Ae.IN_COLUMN_GROUP:{I1t(this,t);break}case Ae.IN_TABLE_BODY:{ZL(this,t);break}case Ae.IN_ROW:{M1e(this,t);break}case Ae.IN_CELL:{N1t(this,t);break}case Ae.IN_SELECT:{$1e(this,t);break}case Ae.IN_SELECT_IN_TABLE:{M1t(this,t);break}case Ae.IN_TEMPLATE:{$1t(this,t);break}case Ae.AFTER_BODY:{B1e(this,t);break}case Ae.IN_FRAMESET:{U1t(this,t);break}case Ae.AFTER_FRAMESET:{j1t(this,t);break}case Ae.AFTER_AFTER_BODY:{a_(this,t);break}}}onEof(t){switch(this.insertionMode){case Ae.INITIAL:{WE(this,t);break}case Ae.BEFORE_HTML:{tw(this,t);break}case Ae.BEFORE_HEAD:{nw(this,t);break}case Ae.IN_HEAD:{rw(this,t);break}case Ae.IN_HEAD_NO_SCRIPT:{iw(this,t);break}case Ae.AFTER_HEAD:{aw(this,t);break}case Ae.IN_BODY:case Ae.IN_TABLE:case Ae.IN_CAPTION:case Ae.IN_COLUMN_GROUP:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:case Ae.IN_CELL:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:{I1e(this,t);break}case Ae.TEXT:{O1t(this,t);break}case Ae.IN_TABLE_TEXT:{QE(this,t);break}case Ae.IN_TEMPLATE:{F1e(this,t);break}case Ae.AFTER_BODY:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{Rz(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===de.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case Ae.IN_HEAD:case Ae.IN_HEAD_NO_SCRIPT:case Ae.AFTER_HEAD:case Ae.TEXT:case Ae.IN_COLUMN_GROUP:case Ae.IN_SELECT:case Ae.IN_SELECT_IN_TABLE:case Ae.IN_FRAMESET:case Ae.AFTER_FRAMESET:{this._insertCharacters(t);break}case Ae.IN_BODY:case Ae.IN_CAPTION:case Ae.IN_CELL:case Ae.IN_TEMPLATE:case Ae.AFTER_BODY:case Ae.AFTER_AFTER_BODY:case Ae.AFTER_AFTER_FRAMESET:{k1e(this,t);break}case Ae.IN_TABLE:case Ae.IN_TABLE_BODY:case Ae.IN_ROW:{n7(this,t);break}case Ae.IN_TABLE_TEXT:{D1e(this,t);break}}}};function bgt(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):R1e(e,t),n}function ygt(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 vgt(e,t,n){let r=t,i=e.openElements.getCommonAncestor(t);for(let a=0,s=i;s!==n;a++,s=i){i=e.openElements.getCommonAncestor(s);const o=e.activeFormattingElements.getElementEntry(s),l=o&&a>=mgt;!o||l?(l&&e.activeFormattingElements.removeEntry(o),e.openElements.remove(s)):(s=Ogt(e,o),r===t&&(e.activeFormattingElements.bookmark=o),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function Ogt(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 Sgt(e,t,n){const r=e.treeAdapter.getTagName(t),i=KO(r);if(e._isElementCausesFosterParenting(i))e._fosterParentElement(n);else{const a=e.treeAdapter.getNamespaceURI(t);i===P.TEMPLATE&&a===Et.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function Egt(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:i}=n,a=e.treeAdapter.createElement(i.tagName,r,i.attrs);e._adoptNodes(t,a),e.treeAdapter.appendChild(t,a),e.activeFormattingElements.insertElementAfterBookmark(a,i),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,a,i.tagID)}function _z(e,t){for(let n=0;n=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],i=e.treeAdapter.getNodeSourceCodeLocation(r);if(i&&!i.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const a=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(a);s&&!s.endTag&&e._setEndLocation(a,t)}}}}function Tgt(e,t){e._setDocumentType(t);const n=t.forceQuirks?hu.QUIRKS:tgt(t);egt(t)||e._err(t,pt.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=Ae.BEFORE_HTML}function WE(e,t){e._err(t,pt.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,hu.QUIRKS),e.insertionMode=Ae.BEFORE_HTML,e._processToken(t)}function kgt(e,t){t.tagID===P.HTML?(e._insertElement(t,Et.HTML),e.insertionMode=Ae.BEFORE_HEAD):tw(e,t)}function Cgt(e,t){const n=t.tagID;(n===P.HTML||n===P.HEAD||n===P.BODY||n===P.BR)&&tw(e,t)}function tw(e,t){e._insertFakeRootElement(),e.insertionMode=Ae.BEFORE_HEAD,e._processToken(t)}function Agt(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.HEAD:{e._insertElement(t,Et.HTML),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD;break}default:nw(e,t)}}function _gt(e,t){const n=t.tagID;n===P.HEAD||n===P.BODY||n===P.HTML||n===P.BR?nw(e,t):e._err(t,pt.endTagWithoutMatchingOpenElement)}function nw(e,t){e._insertFakeElement(Ke.HEAD,P.HEAD),e.headElement=e.openElements.current,e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function Fd(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:{e._appendElement(t,Et.HTML),t.ackSelfClosing=!0;break}case P.TITLE:{e._switchToTextParsing(t,Ma.RCDATA);break}case P.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,Ma.RAWTEXT):(e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_HEAD_NO_SCRIPT);break}case P.NOFRAMES:case P.STYLE:{e._switchToTextParsing(t,Ma.RAWTEXT);break}case P.SCRIPT:{e._switchToTextParsing(t,Ma.SCRIPT_DATA);break}case P.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=Ae.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(Ae.IN_TEMPLATE);break}case P.HEAD:{e._err(t,pt.misplacedStartTagForHeadElement);break}default:rw(e,t)}}function Rgt(e,t){switch(t.tagID){case P.HEAD:{e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD;break}case P.BODY:case P.BR:case P.HTML:{rw(e,t);break}case P.TEMPLATE:{$1(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function $1(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==P.TEMPLATE&&e._err(t,pt.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(P.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,pt.endTagWithoutMatchingOpenElement)}function rw(e,t){e.openElements.pop(),e.insertionMode=Ae.AFTER_HEAD,e._processToken(t)}function Igt(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BASEFONT:case P.BGSOUND:case P.HEAD:case P.LINK:case P.META:case P.NOFRAMES:case P.STYLE:{Fd(e,t);break}case P.NOSCRIPT:{e._err(t,pt.nestedNoscriptInHead);break}default:iw(e,t)}}function Dgt(e,t){switch(t.tagID){case P.NOSCRIPT:{e.openElements.pop(),e.insertionMode=Ae.IN_HEAD;break}case P.BR:{iw(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function iw(e,t){const n=t.type===Er.EOF?pt.openElementsLeftAfterEof:pt.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=Ae.IN_HEAD,e._processToken(t)}function Ngt(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.BODY:{e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_BODY;break}case P.FRAMESET:{e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_FRAMESET;break}case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:case P.NOFRAMES:case P.SCRIPT:case P.STYLE:case P.TEMPLATE:case P.TITLE:{e._err(t,pt.abandonedHeadElementChild),e.openElements.push(e.headElement,P.HEAD),Fd(e,t),e.openElements.remove(e.headElement);break}case P.HEAD:{e._err(t,pt.misplacedStartTagForHeadElement);break}default:aw(e,t)}}function Pgt(e,t){switch(t.tagID){case P.BODY:case P.HTML:case P.BR:{aw(e,t);break}case P.TEMPLATE:{$1(e,t);break}default:e._err(t,pt.endTagWithoutMatchingOpenElement)}}function aw(e,t){e._insertFakeElement(Ke.BODY,P.BODY),e.insertionMode=Ae.IN_BODY,zI(e,t)}function zI(e,t){switch(t.type){case Er.CHARACTER:{C1e(e,t);break}case Er.WHITESPACE_CHARACTER:{k1e(e,t);break}case Er.COMMENT:{YL(e,t);break}case Er.START_TAG:{To(e,t);break}case Er.END_TAG:{jI(e,t);break}case Er.EOF:{I1e(e,t);break}}}function k1e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function C1e(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function Mgt(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function Lgt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function $gt(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_FRAMESET)}function Fgt(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML)}function Bgt(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),m1e(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Et.HTML)}function Ugt(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function zgt(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),n||(e.formElement=e.openElements.current))}function jgt(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===P.LI&&i===P.LI||(n===P.DD||n===P.DT)&&(i===P.DD||i===P.DT)){e.openElements.generateImpliedEndTagsWithExclusion(i),e.openElements.popUntilTagNamePopped(i);break}if(i!==P.ADDRESS&&i!==P.DIV&&i!==P.P&&e._isSpecialElement(e.openElements.items[r],i))break}e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML)}function Hgt(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.tokenizer.state=Ma.PLAINTEXT}function Vgt(e,t){e.openElements.hasInScope(P.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(P.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.framesetOk=!1}function Wgt(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(Ke.A);n&&(_z(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Qgt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function qgt(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(P.NOBR)&&(_z(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Et.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function Ggt(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function Ygt(e,t){e.treeAdapter.getDocumentMode(e.document)!==hu.QUIRKS&&e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=Ae.IN_TABLE}function A1e(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Et.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function _1e(e){const t=f1e(e,Km.TYPE);return t!=null&&t.toLowerCase()===hgt}function Zgt(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Et.HTML),_1e(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function Xgt(e,t){e._appendElement(t,Et.HTML),t.ackSelfClosing=!0}function Kgt(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._appendElement(t,Et.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function Jgt(e,t){t.tagName=Ke.IMG,t.tagID=P.IMG,A1e(e,t)}function e1t(e,t){e._insertElement(t,Et.HTML),e.skipNextNewLine=!0,e.tokenizer.state=Ma.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=Ae.TEXT}function t1t(e,t){e.openElements.hasInButtonScope(P.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,Ma.RAWTEXT)}function n1t(e,t){e.framesetOk=!1,e._switchToTextParsing(t,Ma.RAWTEXT)}function dne(e,t){e._switchToTextParsing(t,Ma.RAWTEXT)}function r1t(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===Ae.IN_TABLE||e.insertionMode===Ae.IN_CAPTION||e.insertionMode===Ae.IN_TABLE_BODY||e.insertionMode===Ae.IN_ROW||e.insertionMode===Ae.IN_CELL?Ae.IN_SELECT_IN_TABLE:Ae.IN_SELECT}function i1t(e,t){e.openElements.currentTagId===P.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML)}function a1t(e,t){e.openElements.hasInScope(P.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Et.HTML)}function s1t(e,t){e.openElements.hasInScope(P.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(P.RTC),e._insertElement(t,Et.HTML)}function o1t(e,t){e._reconstructActiveFormattingElements(),w1e(t),Az(t),t.selfClosing?e._appendElement(t,Et.MATHML):e._insertElement(t,Et.MATHML),t.ackSelfClosing=!0}function l1t(e,t){e._reconstructActiveFormattingElements(),x1e(t),Az(t),t.selfClosing?e._appendElement(t,Et.SVG):e._insertElement(t,Et.SVG),t.ackSelfClosing=!0}function fne(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Et.HTML)}function To(e,t){switch(t.tagID){case P.I:case P.S:case P.B:case P.U:case P.EM:case P.TT:case P.BIG:case P.CODE:case P.FONT:case P.SMALL:case P.STRIKE:case P.STRONG:{Qgt(e,t);break}case P.A:{Wgt(e,t);break}case P.H1:case P.H2:case P.H3:case P.H4:case P.H5:case P.H6:{Bgt(e,t);break}case P.P:case P.DL:case P.OL:case P.UL:case P.DIV:case P.DIR:case P.NAV:case P.MAIN:case P.MENU:case P.ASIDE:case P.CENTER:case P.FIGURE:case P.FOOTER:case P.HEADER:case P.HGROUP:case P.DIALOG:case P.DETAILS:case P.ADDRESS:case P.ARTICLE:case P.SECTION:case P.SUMMARY:case P.FIELDSET:case P.BLOCKQUOTE:case P.FIGCAPTION:{Fgt(e,t);break}case P.LI:case P.DD:case P.DT:{jgt(e,t);break}case P.BR:case P.IMG:case P.WBR:case P.AREA:case P.EMBED:case P.KEYGEN:{A1e(e,t);break}case P.HR:{Kgt(e,t);break}case P.RB:case P.RTC:{a1t(e,t);break}case P.RT:case P.RP:{s1t(e,t);break}case P.PRE:case P.LISTING:{Ugt(e,t);break}case P.XMP:{t1t(e,t);break}case P.SVG:{l1t(e,t);break}case P.HTML:{Mgt(e,t);break}case P.BASE:case P.LINK:case P.META:case P.STYLE:case P.TITLE:case P.SCRIPT:case P.BGSOUND:case P.BASEFONT:case P.TEMPLATE:{Fd(e,t);break}case P.BODY:{Lgt(e,t);break}case P.FORM:{zgt(e,t);break}case P.NOBR:{qgt(e,t);break}case P.MATH:{o1t(e,t);break}case P.TABLE:{Ygt(e,t);break}case P.INPUT:{Zgt(e,t);break}case P.PARAM:case P.TRACK:case P.SOURCE:{Xgt(e,t);break}case P.IMAGE:{Jgt(e,t);break}case P.BUTTON:{Vgt(e,t);break}case P.APPLET:case P.OBJECT:case P.MARQUEE:{Ggt(e,t);break}case P.IFRAME:{n1t(e,t);break}case P.SELECT:{r1t(e,t);break}case P.OPTION:case P.OPTGROUP:{i1t(e,t);break}case P.NOEMBED:{dne(e,t);break}case P.FRAMESET:{$gt(e,t);break}case P.TEXTAREA:{e1t(e,t);break}case P.NOSCRIPT:{e.options.scriptingEnabled?dne(e,t):fne(e,t);break}case P.PLAINTEXT:{Hgt(e,t);break}case P.COL:case P.TH:case P.TD:case P.TR:case P.HEAD:case P.FRAME:case P.TBODY:case P.TFOOT:case P.THEAD:case P.CAPTION:case P.COLGROUP:break;default:fne(e,t)}}function u1t(e,t){if(e.openElements.hasInScope(P.BODY)&&(e.insertionMode=Ae.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function c1t(e,t){e.openElements.hasInScope(P.BODY)&&(e.insertionMode=Ae.AFTER_BODY,B1e(e,t))}function d1t(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function f1t(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(P.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(P.FORM):n&&e.openElements.remove(n))}function h1t(e){e.openElements.hasInButtonScope(P.P)||e._insertFakeElement(Ke.P,P.P),e._closePElement()}function p1t(e){e.openElements.hasInListItemScope(P.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(P.LI),e.openElements.popUntilTagNamePopped(P.LI))}function m1t(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function g1t(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function b1t(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function y1t(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(Ke.BR,P.BR),e.openElements.pop(),e.framesetOk=!1}function R1e(e,t){const n=t.tagName,r=t.tagID;for(let i=e.openElements.stackTop;i>0;i--){const a=e.openElements.items[i],s=e.openElements.tagIDs[i];if(r===s&&(r!==P.UNKNOWN||e.treeAdapter.getTagName(a)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=i&&e.openElements.shortenToLength(i);break}if(e._isSpecialElement(a,s))break}}function jI(e,t){switch(t.tagID){case P.A:case P.B:case P.I:case P.S:case P.U:case P.EM:case P.TT:case P.BIG:case P.CODE:case P.FONT:case P.NOBR:case P.SMALL:case P.STRIKE:case P.STRONG:{_z(e,t);break}case P.P:{h1t(e);break}case P.DL:case P.UL:case P.OL:case P.DIR:case P.DIV:case P.NAV:case P.PRE:case P.MAIN:case P.MENU:case P.ASIDE:case P.BUTTON:case P.CENTER:case P.FIGURE:case P.FOOTER:case P.HEADER:case P.HGROUP:case P.DIALOG:case P.ADDRESS:case P.ARTICLE:case P.DETAILS:case P.SECTION:case P.SUMMARY:case P.LISTING:case P.FIELDSET:case P.BLOCKQUOTE:case P.FIGCAPTION:{d1t(e,t);break}case P.LI:{p1t(e);break}case P.DD:case P.DT:{m1t(e,t);break}case P.H1:case P.H2:case P.H3:case P.H4:case P.H5:case P.H6:{g1t(e);break}case P.BR:{y1t(e);break}case P.BODY:{u1t(e,t);break}case P.HTML:{c1t(e,t);break}case P.FORM:{f1t(e);break}case P.APPLET:case P.OBJECT:case P.MARQUEE:{b1t(e,t);break}case P.TEMPLATE:{$1(e,t);break}default:R1e(e,t)}}function I1e(e,t){e.tmplInsertionModeStack.length>0?F1e(e,t):Rz(e,t)}function v1t(e,t){var n;t.tagID===P.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function O1t(e,t){e._err(t,pt.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function n7(e,t){if(T1e.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=Ae.IN_TABLE_TEXT,t.type){case Er.CHARACTER:{N1e(e,t);break}case Er.WHITESPACE_CHARACTER:{D1e(e,t);break}}else GT(e,t)}function S1t(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_CAPTION}function E1t(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_COLUMN_GROUP}function w1t(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ke.COLGROUP,P.COLGROUP),e.insertionMode=Ae.IN_COLUMN_GROUP,Iz(e,t)}function x1t(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Et.HTML),e.insertionMode=Ae.IN_TABLE_BODY}function T1t(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(Ke.TBODY,P.TBODY),e.insertionMode=Ae.IN_TABLE_BODY,HI(e,t)}function k1t(e,t){e.openElements.hasInTableScope(P.TABLE)&&(e.openElements.popUntilTagNamePopped(P.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function C1t(e,t){_1e(t)?e._appendElement(t,Et.HTML):GT(e,t),t.ackSelfClosing=!0}function A1t(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Et.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function mO(e,t){switch(t.tagID){case P.TD:case P.TH:case P.TR:{T1t(e,t);break}case P.STYLE:case P.SCRIPT:case P.TEMPLATE:{Fd(e,t);break}case P.COL:{w1t(e,t);break}case P.FORM:{A1t(e,t);break}case P.TABLE:{k1t(e,t);break}case P.TBODY:case P.TFOOT:case P.THEAD:{x1t(e,t);break}case P.INPUT:{C1t(e,t);break}case P.CAPTION:{S1t(e,t);break}case P.COLGROUP:{E1t(e,t);break}default:GT(e,t)}}function kx(e,t){switch(t.tagID){case P.TABLE:{e.openElements.hasInTableScope(P.TABLE)&&(e.openElements.popUntilTagNamePopped(P.TABLE),e._resetInsertionMode());break}case P.TEMPLATE:{$1(e,t);break}case P.BODY:case P.CAPTION:case P.COL:case P.COLGROUP:case P.HTML:case P.TBODY:case P.TD:case P.TFOOT:case P.TH:case P.THEAD:case P.TR:break;default:GT(e,t)}}function GT(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,zI(e,t),e.fosterParentingEnabled=n}function D1e(e,t){e.pendingCharacterTokens.push(t)}function N1e(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function QE(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n0&&e.openElements.currentTagId===P.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===P.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===P.OPTGROUP&&e.openElements.pop();break}case P.OPTION:{e.openElements.currentTagId===P.OPTION&&e.openElements.pop();break}case P.SELECT:{e.openElements.hasInSelectScope(P.SELECT)&&(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode());break}case P.TEMPLATE:{$1(e,t);break}}}function P1t(e,t){const n=t.tagID;n===P.CAPTION||n===P.TABLE||n===P.TBODY||n===P.TFOOT||n===P.THEAD||n===P.TR||n===P.TD||n===P.TH?(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode(),e._processStartTag(t)):L1e(e,t)}function M1t(e,t){const n=t.tagID;n===P.CAPTION||n===P.TABLE||n===P.TBODY||n===P.TFOOT||n===P.THEAD||n===P.TR||n===P.TD||n===P.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(P.SELECT),e._resetInsertionMode(),e.onEndTag(t)):$1e(e,t)}function L1t(e,t){switch(t.tagID){case P.BASE:case P.BASEFONT:case P.BGSOUND:case P.LINK:case P.META:case P.NOFRAMES:case P.SCRIPT:case P.STYLE:case P.TEMPLATE:case P.TITLE:{Fd(e,t);break}case P.CAPTION:case P.COLGROUP:case P.TBODY:case P.TFOOT:case P.THEAD:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE,e.insertionMode=Ae.IN_TABLE,mO(e,t);break}case P.COL:{e.tmplInsertionModeStack[0]=Ae.IN_COLUMN_GROUP,e.insertionMode=Ae.IN_COLUMN_GROUP,Iz(e,t);break}case P.TR:{e.tmplInsertionModeStack[0]=Ae.IN_TABLE_BODY,e.insertionMode=Ae.IN_TABLE_BODY,HI(e,t);break}case P.TD:case P.TH:{e.tmplInsertionModeStack[0]=Ae.IN_ROW,e.insertionMode=Ae.IN_ROW,VI(e,t);break}default:e.tmplInsertionModeStack[0]=Ae.IN_BODY,e.insertionMode=Ae.IN_BODY,To(e,t)}}function $1t(e,t){t.tagID===P.TEMPLATE&&$1(e,t)}function F1e(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(P.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):Rz(e,t)}function F1t(e,t){t.tagID===P.HTML?To(e,t):f5(e,t)}function B1e(e,t){var n;if(t.tagID===P.HTML){if(e.fragmentContext||(e.insertionMode=Ae.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===P.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 f5(e,t)}function f5(e,t){e.insertionMode=Ae.IN_BODY,zI(e,t)}function B1t(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.FRAMESET:{e._insertElement(t,Et.HTML);break}case P.FRAME:{e._appendElement(t,Et.HTML),t.ackSelfClosing=!0;break}case P.NOFRAMES:{Fd(e,t);break}}}function U1t(e,t){t.tagID===P.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==P.FRAMESET&&(e.insertionMode=Ae.AFTER_FRAMESET))}function z1t(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.NOFRAMES:{Fd(e,t);break}}}function j1t(e,t){t.tagID===P.HTML&&(e.insertionMode=Ae.AFTER_AFTER_FRAMESET)}function H1t(e,t){t.tagID===P.HTML?To(e,t):a_(e,t)}function a_(e,t){e.insertionMode=Ae.IN_BODY,zI(e,t)}function V1t(e,t){switch(t.tagID){case P.HTML:{To(e,t);break}case P.NOFRAMES:{Fd(e,t);break}}}function W1t(e,t){t.chars=Yi,e._insertCharacters(t)}function Q1t(e,t){e._insertCharacters(t),e.framesetOk=!1}function U1e(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Et.HTML&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function q1t(e,t){if(lgt(t))U1e(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Et.MATHML?w1e(t):r===Et.SVG&&(ugt(t),x1e(t)),Az(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function G1t(e,t){if(t.tagID===P.P||t.tagID===P.BR){U1e(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)===Et.HTML){e._endTagOutsideForeignContent(t);break}const i=e.treeAdapter.getTagName(r);if(i.toLowerCase()===t.tagName){t.tagName=i,e.openElements.shortenToLength(n);break}}}Ke.AREA,Ke.BASE,Ke.BASEFONT,Ke.BGSOUND,Ke.BR,Ke.COL,Ke.EMBED,Ke.FRAME,Ke.HR,Ke.IMG,Ke.INPUT,Ke.KEYGEN,Ke.LINK,Ke.META,Ke.PARAM,Ke.SOURCE,Ke.TRACK,Ke.WBR;const Y1t=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),hne={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function z1e(e,t){const n=abt(e),r=Ez("type",{handlers:{root:Z1t,element:X1t,text:K1t,comment:H1e,doctype:J1t,raw:tbt},unknown:nbt}),i={parser:n?new cne(hne):cne.getFragmentParser(void 0,hne),handle(o){r(o,i)},stitches:!1,options:t||{}};r(e,i),JO(i,nh());const a=n?i.parser.document:i.parser.getFragment(),s=o0t(a,{file:i.options.file});return i.stitches&&Yo(s,"comment",function(o,l,u){const c=o;if(c.value.stitch&&u&&l!==void 0){const f=u.children;return f[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function j1e(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 Q1e(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?Q1e(t.parentElement):null}function lbt(e){var t=n=>{var r=Q1e(n.target);r&&(r.classList.add("active"),obt(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};N.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 ubt=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],cbt=e=>e;const dbt=hn.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:i,style:a,disableCopy:s=!1,skipHtml:o=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:f={},warpperElement:h={},urlTransform:g}=e,b=at(e,ubt),S=hn.useRef(null);N.useImperativeHandle(t,()=>M({},e,{mdp:S}),[S,e]);var w=(n||"")+" "+(r||"");lbt(S);var E=[...b.rehypePlugins||[]],x={allowElement:(I,A,D)=>b.allowElement?b.allowElement(I,A,D):/^[A-Za-z0-9]+$/.test(I.tagName)};o&&E.push(W1e);var k=[...b.remarkPlugins||[],Ymt],C=M({},h,f);return _.jsx("div",M({ref:S,onScroll:l,onMouseOver:u},C,{className:w,style:a,children:_.jsx(Bht,M({},x,b,{skipHtml:o,urlTransform:g||cbt,rehypePlugins:c?c("rehype",E):E,remarkPlugins:c?c("remark",k):k,children:i||""}))}))});function Hy(e){return"children"in e?q1e(e):"value"in e?e.value:""}function fbt(e){return e.type==="text"?e.value:"children"in e?q1e(e):""}function q1e(e){let t=-1;const n=[];for(;++t0&&c.length===0)return}const f={};let h;for(h in o)hbt.call(o,h)&&(f[h]=h==="children"?c:o[h]);return f}}function mbt(e){return"children"in e&&e.children!==void 0}var XL={exports:{}};(function(e,t){function n(r){let i=[],a;for(let s of r.split(",").map(o=>o.trim()))if(/^-?\d+$/.test(s))i.push(parseInt(s,10));else if(a=s.match(/^(-?\d+)(-|\.\.\.?|\u2025|\u2026|\u22EF)(-?\d+)$/)){let[o,l,u,c]=a;if(l&&c){l=parseInt(l),c=parseInt(c);const f=l]=?|[!=]=?=?|--?|\+\+?|&&?|\|\|?|[?*/~^%]/,punctuation:/[{}[\];(),.:]/}}Bd.displayName="c";Bd.aliases=[];function Bd(e){e.register(Dr),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}F1.displayName="cpp";F1.aliases=[];function F1(e){e.register(Bd),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)}WI.displayName="arduino";WI.aliases=["ino"];function WI(e){e.register(F1),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}ZT.displayName="bash";ZT.aliases=["sh","shell"];function ZT(e){(function(t){var n="\\b(?:BASH|BASHOPTS|BASH_ALIASES|BASH_ARGC|BASH_ARGV|BASH_CMDS|BASH_COMPLETION_COMPAT_DIR|BASH_LINENO|BASH_REMATCH|BASH_SOURCE|BASH_VERSINFO|BASH_VERSION|COLORTERM|COLUMNS|COMP_WORDBREAKS|DBUS_SESSION_BUS_ADDRESS|DEFAULTS_PATH|DESKTOP_SESSION|DIRSTACK|DISPLAY|EUID|GDMSESSION|GDM_LANG|GNOME_KEYRING_CONTROL|GNOME_KEYRING_PID|GPG_AGENT_INFO|GROUPS|HISTCONTROL|HISTFILE|HISTFILESIZE|HISTSIZE|HOME|HOSTNAME|HOSTTYPE|IFS|INSTANCE|JOB|LANG|LANGUAGE|LC_ADDRESS|LC_ALL|LC_IDENTIFICATION|LC_MEASUREMENT|LC_MONETARY|LC_NAME|LC_NUMERIC|LC_PAPER|LC_TELEPHONE|LC_TIME|LESSCLOSE|LESSOPEN|LINES|LOGNAME|LS_COLORS|MACHTYPE|MAILCHECK|MANDATORY_PATH|NO_AT_BRIDGE|OLDPWD|OPTERR|OPTIND|ORBIT_SOCKETDIR|OSTYPE|PAPERSIZE|PATH|PIPESTATUS|PPID|PS1|PS2|PS3|PS4|PWD|RANDOM|REPLY|SECONDS|SELINUX_INIT|SESSION|SESSIONTYPE|SESSION_MANAGER|SHELL|SHELLOPTS|SHLVL|SSH_AUTH_SOCK|TERM|UID|UPSTART_EVENTS|UPSTART_INSTANCE|UPSTART_JOB|UPSTART_SESSION|USER|WINDOWID|XAUTHORITY|XDG_CONFIG_DIRS|XDG_CURRENT_DESKTOP|XDG_DATA_DIRS|XDG_GREETER_DATA_DIR|XDG_MENU_PREFIX|XDG_RUNTIME_DIR|XDG_SEAT|XDG_SEAT_PATH|XDG_SESSION_DESKTOP|XDG_SESSION_ID|XDG_SESSION_PATH|XDG_SESSION_TYPE|XDG_VTNR|XMODIFIERS)\\b",r={pattern:/(^(["']?)\w+\2)[ \t]+\S.*/,lookbehind:!0,alias:"punctuation",inside:null},i={bash:r,environment:{pattern:RegExp("\\$"+n),alias:"constant"},variable:[{pattern:/\$?\(\([\s\S]+?\)\)/,greedy:!0,inside:{variable:[{pattern:/(^\$\(\([\s\S]+)\)\)/,lookbehind:!0},/^\$\(\(/],number:/\b0x[\dA-Fa-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee]-?\d+)?/,operator:/--|\+\+|\*\*=?|<<=?|>>=?|&&|\|\||[=!+\-*/%<>^&|]=?|[?~:]/,punctuation:/\(\(?|\)\)?|,|;/}},{pattern:/\$\((?:\([^)]+\)|[^()])+\)|`[^`]+`/,greedy:!0,inside:{variable:/^\$\(|^`|\)$|`$/}},{pattern:/\$\{[^}]+\}/,greedy:!0,inside:{operator:/:[-=?+]?|[!\/]|##?|%%?|\^\^?|,,?/,punctuation:/[\[\]]/,environment:{pattern:RegExp("(\\{)"+n),lookbehind:!0,alias:"constant"}}},/\$(?:\w+|[#?*!@$])/],entity:/\\(?:[abceEfnrtv\\"]|O?[0-7]{1,3}|U[0-9a-fA-F]{8}|u[0-9a-fA-F]{4}|x[0-9a-fA-F]{1,2})/};t.languages.bash={shebang:{pattern:/^#!\s*\/.*/,alias:"important"},comment:{pattern:/(^|[^"{\\$])#.*/,lookbehind:!0},"function-name":[{pattern:/(\bfunction\s+)[\w-]+(?=(?:\s*\(?:\s*\))?\s*\{)/,lookbehind:!0,alias:"function"},{pattern:/\b[\w-]+(?=\s*\(\s*\)\s*\{)/,alias:"function"}],"for-or-select":{pattern:/(\b(?:for|select)\s+)\w+(?=\s+in\s)/,alias:"variable",lookbehind:!0},"assign-left":{pattern:/(^|[\s;|&]|[<>]\()\w+(?:\.\w+)*(?=\+?=)/,inside:{environment:{pattern:RegExp("(^|[\\s;|&]|[<>]\\()"+n),lookbehind:!0,alias:"constant"}},alias:"variable",lookbehind:!0},parameter:{pattern:/(^|\s)-{1,2}(?:\w+:[+-]?)?\w+(?:\.\w+)*(?=[=\s]|$)/,alias:"variable",lookbehind:!0},string:[{pattern:/((?:^|[^<])<<-?\s*)(\w+)\s[\s\S]*?(?:\r?\n|\r)\2/,lookbehind:!0,greedy:!0,inside:i},{pattern:/((?:^|[^<])<<-?\s*)(["'])(\w+)\2\s[\s\S]*?(?:\r?\n|\r)\3/,lookbehind:!0,greedy:!0,inside:{bash:r}},{pattern:/(^|[^\\](?:\\\\)*)"(?:\\[\s\S]|\$\([^)]+\)|\$(?!\()|`[^`]+`|[^"\\`$])*"/,lookbehind:!0,greedy:!0,inside:i},{pattern:/(^|[^$\\])'[^']*'/,lookbehind:!0,greedy:!0},{pattern:/\$'(?:[^'\\]|\\[\s\S])*'/,greedy:!0,inside:{entity:i.entity}}],environment:{pattern:RegExp("\\$?"+n),alias:"constant"},variable:i.variable,function:{pattern:/(^|[\s;|&]|[<>]\()(?:add|apropos|apt|apt-cache|apt-get|aptitude|aspell|automysqlbackup|awk|basename|bash|bc|bconsole|bg|bzip2|cal|cargo|cat|cfdisk|chgrp|chkconfig|chmod|chown|chroot|cksum|clear|cmp|column|comm|composer|cp|cron|crontab|csplit|curl|cut|date|dc|dd|ddrescue|debootstrap|df|diff|diff3|dig|dir|dircolors|dirname|dirs|dmesg|docker|docker-compose|du|egrep|eject|env|ethtool|expand|expect|expr|fdformat|fdisk|fg|fgrep|file|find|fmt|fold|format|free|fsck|ftp|fuser|gawk|git|gparted|grep|groupadd|groupdel|groupmod|groups|grub-mkconfig|gzip|halt|head|hg|history|host|hostname|htop|iconv|id|ifconfig|ifdown|ifup|import|install|ip|java|jobs|join|kill|killall|less|link|ln|locate|logname|logrotate|look|lpc|lpr|lprint|lprintd|lprintq|lprm|ls|lsof|lynx|make|man|mc|mdadm|mkconfig|mkdir|mke2fs|mkfifo|mkfs|mkisofs|mknod|mkswap|mmv|more|most|mount|mtools|mtr|mutt|mv|nano|nc|netstat|nice|nl|node|nohup|notify-send|npm|nslookup|op|open|parted|passwd|paste|pathchk|ping|pkill|pnpm|podman|podman-compose|popd|pr|printcap|printenv|ps|pushd|pv|quota|quotacheck|quotactl|ram|rar|rcp|reboot|remsync|rename|renice|rev|rm|rmdir|rpm|rsync|scp|screen|sdiff|sed|sendmail|seq|service|sftp|sh|shellcheck|shuf|shutdown|sleep|slocate|sort|split|ssh|stat|strace|su|sudo|sum|suspend|swapon|sync|sysctl|tac|tail|tar|tee|time|timeout|top|touch|tr|traceroute|tsort|tty|umount|uname|unexpand|uniq|units|unrar|unshar|unzip|update-grub|uptime|useradd|userdel|usermod|users|uudecode|uuencode|v|vcpkg|vdir|vi|vim|virsh|vmstat|wait|watch|wc|wget|whereis|which|who|whoami|write|xargs|xdg-open|yarn|yes|zenity|zip|zsh|zypper)(?=$|[)\s;|&])/,lookbehind:!0},keyword:{pattern:/(^|[\s;|&]|[<>]\()(?:case|do|done|elif|else|esac|fi|for|function|if|in|select|then|until|while)(?=$|[)\s;|&])/,lookbehind:!0},builtin:{pattern:/(^|[\s;|&]|[<>]\()(?:\.|:|alias|bind|break|builtin|caller|cd|command|continue|declare|echo|enable|eval|exec|exit|export|getopts|hash|help|let|local|logout|mapfile|printf|pwd|read|readarray|readonly|return|set|shift|shopt|source|test|times|trap|type|typeset|ulimit|umask|unalias|unset)(?=$|[)\s;|&])/,lookbehind:!0,alias:"class-name"},boolean:{pattern:/(^|[\s;|&]|[<>]\()(?:false|true)(?=$|[)\s;|&])/,lookbehind:!0},"file-descriptor":{pattern:/\B&\d\b/,alias:"important"},operator:{pattern:/\d?<>|>\||\+=|=[=~]?|!=?|<<[<-]?|[&\d]?>>|\d[<>]&?|[<>][&=]?|&[>&]?|\|[&|]?/,inside:{"file-descriptor":{pattern:/^\d/,alias:"important"}}},punctuation:/\$?\(\(?|\)\)?|\.\.|[{}[\];\\]/,number:{pattern:/(^|\s)(?:[1-9]\d*|0)(?:[.,]\d+)?\b/,lookbehind:!0}},r.inside=t.languages.bash;for(var a=["comment","function-name","for-or-select","assign-left","parameter","string","environment","function","keyword","builtin","boolean","file-descriptor","operator","punctuation","number"],s=i.variable[1].inside,o=0;o>/g,function(be,ee){return"(?:"+Te[+ee]+")"})}function r(z,Te,be){return RegExp(n(z,Te),be||"")}function i(z,Te){for(var be=0;be>/g,function(){return"(?:"+z+")"});return z.replace(/<>/g,"[^\\s\\S]")}var a={type:"bool byte char decimal double dynamic float int long object sbyte short string uint ulong ushort var void",typeDeclaration:"class enum interface record struct",contextual:"add alias and ascending async await by descending from(?=\\s*(?:\\w|$)) get global group into init(?=\\s*;) join let nameof not notnull on or orderby partial remove select set unmanaged value when where with(?=\\s*{)",other:"abstract as base break case catch checked const continue default delegate do else event explicit extern finally fixed for foreach goto if implicit in internal is lock namespace new null operator out override params private protected public readonly ref return sealed sizeof stackalloc static switch this throw try typeof unchecked unsafe using virtual volatile while yield"};function s(z){return"\\b(?:"+z.trim().replace(/ /g,"|")+")\\b"}var o=s(a.typeDeclaration),l=RegExp(s(a.type+" "+a.typeDeclaration+" "+a.contextual+" "+a.other)),u=s(a.typeDeclaration+" "+a.contextual+" "+a.other),c=s(a.type+" "+a.typeDeclaration+" "+a.other),f=i(/<(?:[^<>;=+\-*/%&|^]|<>)*>/.source,2),h=i(/\((?:[^()]|<>)*\)/.source,2),g=/@?\b[A-Za-z_]\w*\b/.source,b=n(/<<0>>(?:\s*<<1>>)?/.source,[g,f]),S=n(/(?!<<0>>)<<1>>(?:\s*\.\s*<<1>>)*/.source,[u,b]),w=/\[\s*(?:,\s*)*\]/.source,E=n(/<<0>>(?:\s*(?:\?\s*)?<<1>>)*(?:\s*\?)?/.source,[S,w]),x=n(/[^,()<>[\];=+\-*/%&|^]|<<0>>|<<1>>|<<2>>/.source,[f,h,w]),k=n(/\(<<0>>+(?:,<<0>>+)+\)/.source,[x]),C=n(/(?:<<0>>|<<1>>)(?:\s*(?:\?\s*)?<<2>>)*(?:\s*\?)?/.source,[k,S,w]),I={keyword:l,punctuation:/[<>()?,.:[\]]/},A=/'(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'/.source,D=/"(?:\\.|[^\\"\r\n])*"/.source,B=/@"(?:""|\\[\s\S]|[^\\"])*"(?!")/.source;t.languages.csharp=t.languages.extend("clike",{string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[B]),lookbehind:!0,greedy:!0},{pattern:r(/(^|[^@$\\])<<0>>/.source,[D]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\busing\s+static\s+)<<0>>(?=\s*;)/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+<<0>>\s*=\s*)<<1>>(?=\s*;)/.source,[g,C]),lookbehind:!0,inside:I},{pattern:r(/(\busing\s+)<<0>>(?=\s*=)/.source,[g]),lookbehind:!0},{pattern:r(/(\b<<0>>\s+)<<1>>/.source,[o,b]),lookbehind:!0,inside:I},{pattern:r(/(\bcatch\s*\(\s*)<<0>>/.source,[S]),lookbehind:!0,inside:I},{pattern:r(/(\bwhere\s+)<<0>>/.source,[g]),lookbehind:!0},{pattern:r(/(\b(?:is(?:\s+not)?|as)\s+)<<0>>/.source,[E]),lookbehind:!0,inside:I},{pattern:r(/\b<<0>>(?=\s+(?!<<1>>|with\s*\{)<<2>>(?:\s*[=,;:{)\]]|\s+(?:in|when)\b))/.source,[C,c,g]),inside:I}],keyword:l,number:/(?:\b0(?:x[\da-f_]*[\da-f]|b[01_]*[01])|(?:\B\.\d+(?:_+\d+)*|\b\d+(?:_+\d+)*(?:\.\d+(?:_+\d+)*)?)(?:e[-+]?\d+(?:_+\d+)*)?)(?:[dflmu]|lu|ul)?\b/i,operator:/>>=?|<<=?|[-=]>|([-+&|])\1|~|\?\?=?|[-+*/%&|^!=<>]=?/,punctuation:/\?\.?|::|[{}[\];(),.:]/}),t.languages.insertBefore("csharp","number",{range:{pattern:/\.\./,alias:"operator"}}),t.languages.insertBefore("csharp","punctuation",{"named-parameter":{pattern:r(/([(,]\s*)<<0>>(?=\s*:)/.source,[g]),lookbehind:!0,alias:"punctuation"}}),t.languages.insertBefore("csharp","class-name",{namespace:{pattern:r(/(\b(?:namespace|using)\s+)<<0>>(?:\s*\.\s*<<0>>)*(?=\s*[;{])/.source,[g]),lookbehind:!0,inside:{punctuation:/\./}},"type-expression":{pattern:r(/(\b(?:default|sizeof|typeof)\s*\(\s*(?!\s))(?:[^()\s]|\s(?!\s)|<<0>>)*(?=\s*\))/.source,[h]),lookbehind:!0,alias:"class-name",inside:I},"return-type":{pattern:r(/<<0>>(?=\s+(?:<<1>>\s*(?:=>|[({]|\.\s*this\s*\[)|this\s*\[))/.source,[C,S]),inside:I,alias:"class-name"},"constructor-invocation":{pattern:r(/(\bnew\s+)<<0>>(?=\s*[[({])/.source,[C]),lookbehind:!0,inside:I,alias:"class-name"},"generic-method":{pattern:r(/<<0>>\s*<<1>>(?=\s*\()/.source,[g,f]),inside:{function:r(/^<<0>>/.source,[g]),generic:{pattern:RegExp(f),alias:"class-name",inside:I}}},"type-list":{pattern:r(/\b((?:<<0>>\s+<<1>>|record\s+<<1>>\s*<<5>>|where\s+<<2>>)\s*:\s*)(?:<<3>>|<<4>>|<<1>>\s*<<5>>|<<6>>)(?:\s*,\s*(?:<<3>>|<<4>>|<<6>>))*(?=\s*(?:where|[{;]|=>|$))/.source,[o,b,g,C,l.source,h,/\bnew\s*\(\s*\)/.source]),lookbehind:!0,inside:{"record-arguments":{pattern:r(/(^(?!new\s*\()<<0>>\s*)<<1>>/.source,[b,h]),lookbehind:!0,greedy:!0,inside:t.languages.csharp},keyword:l,"class-name":{pattern:RegExp(C),greedy:!0,inside:I},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 L=D+"|"+A,F=n(/\/(?![*/])|\/\/[^\r\n]*[\r\n]|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>/.source,[L]),W=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),V=/\b(?:assembly|event|field|method|module|param|property|return|type)\b/.source,Z=n(/<<0>>(?:\s*\(<<1>>*\))?/.source,[S,W]);t.languages.insertBefore("csharp","class-name",{attribute:{pattern:r(/((?:^|[^\s\w>)?])\s*\[\s*)(?:<<0>>\s*:\s*)?<<1>>(?:\s*,\s*<<1>>)*(?=\s*\])/.source,[V,Z]),lookbehind:!0,greedy:!0,inside:{target:{pattern:r(/^<<0>>(?=\s*:)/.source,[V]),alias:"keyword"},"attribute-arguments":{pattern:r(/\(<<0>>*\)/.source,[W]),inside:t.languages.csharp},"class-name":{pattern:RegExp(S),inside:{punctuation:/\./}},punctuation:/[:,]/}}});var Q=/:[^}\r\n]+/.source,H=i(n(/[^"'/()]|<<0>>|\(<>*\)/.source,[F]),2),J=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[H,Q]),K=i(n(/[^"'/()]|\/(?!\*)|\/\*(?:[^*]|\*(?!\/))*\*\/|<<0>>|\(<>*\)/.source,[L]),2),X=n(/\{(?!\{)(?:(?![}:])<<0>>)*<<1>>?\}/.source,[K,Q]);function te(z,Te){return{interpolation:{pattern:r(/((?:^|[^{])(?:\{\{)*)<<0>>/.source,[z]),lookbehind:!0,inside:{"format-string":{pattern:r(/(^\{(?:(?![}:])<<0>>)*)<<1>>(?=\}$)/.source,[Te,Q]),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,[J]),lookbehind:!0,greedy:!0,inside:te(J,H)},{pattern:r(/(^|[^@\\])\$"(?:\\.|\{\{|<<0>>|[^\\"{])*"/.source,[X]),lookbehind:!0,greedy:!0,inside:te(X,K)}],char:{pattern:RegExp(A),greedy:!0}}),t.languages.dotnet=t.languages.cs=t.languages.csharp}(e)}Is.displayName="markup";Is.aliases=["atom","html","mathml","rss","ssml","svg","xml"];function Is(e){e.languages.markup={comment:{pattern://,greedy:!0},prolog:{pattern:/<\?[\s\S]+?\?>/,greedy:!0},doctype:{pattern:/"'[\]]|"[^"]*"|'[^']*')+(?:\[(?:[^<"'\]]|"[^"]*"|'[^']*'|<(?!!--)|)*\]\s*)?>/i,greedy:!0,inside:{"internal-subset":{pattern:/(^[^\[]*\[)[\s\S]+(?=\]>$)/,lookbehind:!0,greedy:!0,inside:null},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},punctuation:/^$|[[\]]/,"doctype-tag":/^DOCTYPE/i,name:/[^\s<>'"]+/}},cdata:{pattern://i,greedy:!0},tag:{pattern:/<\/?(?!\d)[^\s>\/=$<%]+(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))|(?=[\s/>])))+)?\s*\/?>/,greedy:!0,inside:{tag:{pattern:/^<\/?[^\s>\/]+/,inside:{punctuation:/^<\/?/,namespace:/^[^\s>\/:]+:/}},"special-attr":[],"attr-value":{pattern:/=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+)/,inside:{punctuation:[{pattern:/^=/,alias:"attr-equals"},{pattern:/^(\s*)["']|["']$/,lookbehind:!0}]}},punctuation:/\/?>/,"attr-name":{pattern:/[^\s>\/]+/,inside:{namespace:/^[^\s>\/:]+:/}}}},entity:[{pattern:/&[\da-z]{1,8};/i,alias:"named-entity"},/&#x?[\da-f]{1,8};/i]},e.languages.markup.tag.inside["attr-value"].inside.entity=e.languages.markup.entity,e.languages.markup.doctype.inside["internal-subset"].inside=e.languages.markup,e.hooks.add("wrap",function(t){t.type==="entity"&&(t.attributes.title=t.content.value.replace(/&/,"&"))}),Object.defineProperty(e.languages.markup.tag,"addInlined",{value:function(n,r){var i={};i["language-"+r]={pattern:/(^$)/i,lookbehind:!0,inside:e.languages[r]},i.cdata=/^$/i;var a={"included-cdata":{pattern://i,inside:i}};a["language-"+r]={pattern:/[\s\S]+/,inside:e.languages[r]};var s={};s[n]={pattern:RegExp(/(<__[^>]*>)(?:))*\]\]>|(?!)/.source.replace(/__/g,function(){return n}),"i"),lookbehind:!0,greedy:!0,inside:a},e.languages.insertBefore("markup","cdata",s)}}),Object.defineProperty(e.languages.markup.tag,"addAttribute",{value:function(t,n){e.languages.markup.tag.inside["special-attr"].push({pattern:RegExp(/(^|["'\s])/.source+"(?:"+t+")"+/\s*=\s*(?:"[^"]*"|'[^']*'|[^\s'">=]+(?=[\s>]))/.source,"i"),lookbehind:!0,inside:{"attr-name":/^[^\s=]+/,"attr-value":{pattern:/=[\s\S]+/,inside:{value:{pattern:/(^=\s*(["']|(?!["'])))\S[\s\S]*(?=\2$)/,lookbehind:!0,alias:[n,"language-"+n],inside:e.languages[n]},punctuation:[{pattern:/^=/,alias:"attr-equals"},/"|'/]}}}})}}),e.languages.html=e.languages.markup,e.languages.mathml=e.languages.markup,e.languages.svg=e.languages.markup,e.languages.xml=e.languages.extend("markup",{}),e.languages.ssml=e.languages.xml,e.languages.atom=e.languages.xml,e.languages.rss=e.languages.xml}P0.displayName="css";P0.aliases=[];function P0(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)}QI.displayName="diff";QI.aliases=[];function QI(e){(function(t){t.languages.diff={coord:[/^(?:\*{3}|-{3}|\+{3}).*$/m,/^@@.*@@$/m,/^\d.*$/m]};var n={"deleted-sign":"-","deleted-arrow":"<","inserted-sign":"+","inserted-arrow":">",unchanged:" ",diff:"!"};Object.keys(n).forEach(function(r){var i=n[r],a=[];/^\w+$/.test(r)||a.push(/\w+/.exec(r)[0]),r==="diff"&&a.push("bold"),t.languages.diff[r]={pattern:RegExp("^(?:["+i+`].*(?:\r -?| -|(?![\\s\\S])))+`,"m"),alias:a,inside:{line:{pattern:/(.)(?=[\s\S]).*(?:\r\n?|\n)?/,lookbehind:!0},prefix:{pattern:/[\s\S]/,alias:/\w+/.exec(r)[0]}}}}),Object.defineProperty(t.languages.diff,"PREFIXES",{value:n})})(e)}qI.displayName="go";qI.aliases=[];function qI(e){e.register(Dr),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"]}GI.displayName="ini";GI.aliases=[];function GI(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:/=/}}U1.displayName="java";U1.aliases=[];function U1(e){e.register(Dr),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)}YI.displayName="regex";YI.aliases=[];function YI(e){(function(t){var n={pattern:/\\[\\(){}[\]^$+*?|.]/,alias:"escape"},r=/\\(?:x[\da-fA-F]{2}|u[\da-fA-F]{4}|u\{[\da-fA-F]+\}|0[0-7]{0,2}|[123][0-7]{2}|c[a-zA-Z]|.)/,i={pattern:/\.|\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},a={pattern:/\\[wsd]|\\p\{[^{}]+\}/i,alias:"class-name"},s="(?:[^\\\\-]|"+r.source+")",o=RegExp(s+"-"+s),l={pattern:/(<|')[^<>']+(?=[>']$)/,lookbehind:!0,alias:"variable"};t.languages.regex={"char-class":{pattern:/((?:^|[^\\])(?:\\\\)*)\[(?:[^\\\]]|\\[\s\S])*\]/,lookbehind:!0,inside:{"char-class-negation":{pattern:/(^\[)\^/,lookbehind:!0,alias:"operator"},"char-class-punctuation":{pattern:/^\[|\]$/,alias:"punctuation"},range:{pattern:o,inside:{escape:r,"range-punctuation":{pattern:/-/,alias:"operator"}}},"special-escape":n,"char-set":a,escape:r}},"special-escape":n,"char-set":i,backreference:[{pattern:/\\(?![123][0-7]{2})[1-9]/,alias:"keyword"},{pattern:/\\k<[^<>']+>/,alias:"keyword",inside:{"group-name":l}}],anchor:{pattern:/[$^]|\\[ABbGZz]/,alias:"function"},escape:r,group:[{pattern:/\((?:\?(?:<[^<>']+>|'[^<>']+'|[>:]||&&=?|\|\|=?|[!=]==|<<=?|>>>?=?|[-+*/%&|^!=<>]=?|\.{3}|\?\?=?|\?\.?|[~:]/}),e.languages.javascript["class-name"][0].pattern=/(\b(?:class|extends|implements|instanceof|interface|new)\s+)[\w.\\]+/,e.languages.insertBefore("javascript","keyword",{regex:{pattern:RegExp(/((?:^|[^$\w\xA0-\uFFFF."'\])\s]|\b(?:return|yield))\s*)/.source+/\//.source+"(?:"+/(?:\[(?:[^\]\\\r\n]|\\.)*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}/.source+"|"+/(?:\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.|\[(?:[^[\]\\\r\n]|\\.)*\])*\])*\]|\\.|[^/\\\[\r\n])+\/[dgimyus]{0,7}v[dgimyus]{0,7}/.source+")"+/(?=(?:\s|\/\*(?:[^*]|\*(?!\/))*\*\/)*(?:$|[\r\n,.;:})\]]|\/\/))/.source),lookbehind:!0,greedy:!0,inside:{"regex-source":{pattern:/^(\/)[\s\S]+(?=\/[a-z]*$)/,lookbehind:!0,alias:"language-regex",inside:e.languages.regex},"regex-delimiter":/^\/|\/$/,"regex-flags":/^[a-z]+$/}},"function-variable":{pattern:/#?(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*[=:]\s*(?:async\s*)?(?:\bfunction\b|(?:\((?:[^()]|\([^()]*\))*\)|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)\s*=>))/,alias:"function"},parameter:[{pattern:/(function(?:\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)?\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\))/,lookbehind:!0,inside:e.languages.javascript},{pattern:/(^|[^$\w\xA0-\uFFFF])(?!\s)[_$a-z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*=>)/i,lookbehind:!0,inside:e.languages.javascript},{pattern:/(\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*=>)/,lookbehind:!0,inside:e.languages.javascript},{pattern:/((?:\b|\s|^)(?!(?:as|async|await|break|case|catch|class|const|continue|debugger|default|delete|do|else|enum|export|extends|finally|for|from|function|get|if|implements|import|in|instanceof|interface|let|new|null|of|package|private|protected|public|return|set|static|super|switch|this|throw|try|typeof|undefined|var|void|while|with|yield)(?![$\w\xA0-\uFFFF]))(?:(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*)\(\s*|\]\s*\(\s*)(?!\s)(?:[^()\s]|\s+(?![\s)])|\([^()]*\))+(?=\s*\)\s*\{)/,lookbehind:!0,inside:e.languages.javascript}],constant:/\b[A-Z](?:[A-Z_]|\dx?)*\b/}),e.languages.insertBefore("javascript","string",{hashbang:{pattern:/^#!.*/,greedy:!0,alias:"comment"},"template-string":{pattern:/`(?:\\[\s\S]|\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}|(?!\$\{)[^\\`])*`/,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},interpolation:{pattern:/((?:^|[^\\])(?:\\{2})*)\$\{(?:[^{}]|\{(?:[^{}]|\{[^}]*\})*\})+\}/,lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:e.languages.javascript}},string:/[\s\S]+/}},"string-property":{pattern:/((?:^|[,{])[ \t]*)(["'])(?:\\(?:\r\n|[\s\S])|(?!\2)[^\\\r\n])*\2(?=\s*:)/m,lookbehind:!0,greedy:!0,alias:"property"}}),e.languages.insertBefore("javascript","operator",{"literal-property":{pattern:/((?:^|[,{])[ \t]*)(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*(?=\s*:)/m,lookbehind:!0,alias:"property"}}),e.languages.markup&&(e.languages.markup.tag.addInlined("script","javascript"),e.languages.markup.tag.addAttribute(/on(?:abort|blur|change|click|composition(?:end|start|update)|dblclick|error|focus(?:in|out)?|key(?:down|up)|load|mouse(?:down|enter|leave|move|out|over|up)|reset|resize|scroll|select|slotchange|submit|unload|wheel)/.source,"javascript")),e.languages.js=e.languages.javascript}eS.displayName="json";eS.aliases=["webmanifest"];function eS(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}ZI.displayName="kotlin";ZI.aliases=["kt","kts"];function ZI(e){e.register(Dr),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)}XI.displayName="less";XI.aliases=[];function XI(e){e.register(P0),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"}})}XT.displayName="lua";XT.aliases=[];function XT(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:/[\[\](){},;]|\.+|:+/}}KI.displayName="makefile";KI.aliases=[];function KI(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:/[:;(){}]/}}KT.displayName="yaml";KT.aliases=["yml"];function KT(e){(function(t){var n=/[*&][^\s[\]{},]+/,r=/!(?:<[\w\-%#;/?:@&=+$,.!~*'()[\]]+>|(?:[a-zA-Z\d-]*!)?[\w\-%#;/?:@&=+$.~*'()]+)?/,i="(?:"+r.source+"(?:[ ]+"+n.source+")?|"+n.source+"(?:[ ]+"+r.source+")?)",a=/(?:[^\s\x00-\x08\x0e-\x1f!"#%&'*,\-:>?@[\]`{|}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]|[?:-])(?:[ \t]*(?:(?![#:])|:))*/.source.replace(//g,function(){return/[^\s\x00-\x08\x0e-\x1f,[\]{}\x7f-\x84\x86-\x9f\ud800-\udfff\ufffe\uffff]/.source}),s=/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\\\r\n]|\\.)*'/.source;function o(l,u){u=(u||"").replace(/m/g,"")+"m";var 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"(?:"+a+"|"+s+")"})),lookbehind:!0,greedy:!0,alias:"atrule"},directive:{pattern:/(^[ \t]*)%.+/m,lookbehind:!0,alias:"important"},datetime:{pattern:o(/\d{4}-\d\d?-\d\d?(?:[tT]|[ \t]+)\d\d?:\d{2}:\d{2}(?:\.\d*)?(?:[ \t]*(?:Z|[-+]\d\d?(?::\d{2})?))?|\d{4}-\d{2}-\d{2}|\d\d?:\d{2}(?::\d{2}(?:\.\d*)?)?/.source),lookbehind:!0,alias:"number"},boolean:{pattern:o(/false|true/.source,"i"),lookbehind:!0,alias:"important"},null:{pattern:o(/null|~/.source,"i"),lookbehind:!0,alias:"important"},string:{pattern:o(s),lookbehind:!0,greedy:!0},number:{pattern:o(/[+-]?(?:0x[\da-f]+|0o[0-7]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|\.inf|\.nan)/.source,"i"),lookbehind:!0},tag:r,important:n,punctuation:/---|[:[\]{}\-,|>?]|\.\.\./},t.languages.yml=t.languages.yaml})(e)}JI.displayName="markdown";JI.aliases=["md"];function JI(e){e.register(Is),function(t){var n=/(?:\\.|[^\\\n\r]|(?:\n|\r\n?)(?![\r\n]))/.source;function r(o){return o=o.replace(//g,function(){return n}),RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+"(?:"+o+")")}var i=/(?:\\.|``(?:[^`\r\n]|`(?!`))+``|`[^`\r\n]+`|[^\\|\r\n`])+/.source,a=/\|?__(?:\|__)+\|?(?:(?:\n|\r\n?)|(?![\s\S]))/.source.replace(/__/g,function(){return i}),s=/\|?[ \t]*:?-{3,}:?[ \t]*(?:\|[ \t]*:?-{3,}:?[ \t]*)+\|?(?:\n|\r\n?)/.source;t.languages.markdown=t.languages.extend("markup",{}),t.languages.insertBefore("markdown","prolog",{"front-matter-block":{pattern:/(^(?:\s*[\r\n])?)---(?!.)[\s\S]*?[\r\n]---(?!.)/,lookbehind:!0,greedy:!0,inside:{punctuation:/^---|---$/,"front-matter":{pattern:/\S+(?:\s+\S+)*/,alias:["yaml","language-yaml"],inside:t.languages.yaml}}},blockquote:{pattern:/^>(?:[\t ]*>)*/m,alias:"punctuation"},table:{pattern:RegExp("^"+a+s+"(?:"+a+")*","m"),inside:{"table-data-rows":{pattern:RegExp("^("+a+s+")(?:"+a+")*$"),lookbehind:!0,inside:{"table-data":{pattern:RegExp(i),inside:t.languages.markdown},punctuation:/\|/}},"table-line":{pattern:RegExp("^("+a+")"+s+"$"),lookbehind:!0,inside:{punctuation:/\||:?-{3,}:?/}},"table-header-row":{pattern:RegExp("^"+a+"$"),inside:{"table-header":{pattern:RegExp(i),alias:"important",inside:t.languages.markdown},punctuation:/\|/}}}},code:[{pattern:/((?:^|\n)[ \t]*\n|(?:^|\r\n?)[ \t]*\r\n?)(?: {4}|\t).+(?:(?:\n|\r\n?)(?: {4}|\t).+)*/,lookbehind:!0,alias:"keyword"},{pattern:/^```[\s\S]*?^```$/m,greedy:!0,inside:{"code-block":{pattern:/^(```.*(?:\n|\r\n?))[\s\S]+?(?=(?:\n|\r\n?)^```$)/m,lookbehind:!0},"code-language":{pattern:/^(```).+/,lookbehind:!0},punctuation:/```/}}],title:[{pattern:/\S.*(?:\n|\r\n?)(?:==+|--+)(?=[ \t]*$)/m,alias:"important",inside:{punctuation:/==+$|--+$/}},{pattern:/(^\s*)#.+/m,lookbehind:!0,alias:"important",inside:{punctuation:/^#+|#+$/}}],hr:{pattern:/(^\s*)([*-])(?:[\t ]*\2){2,}(?=\s*$)/m,lookbehind:!0,alias:"punctuation"},list:{pattern:/(^\s*)(?:[*+-]|\d+\.)(?=[\t ].)/m,lookbehind:!0,alias:"punctuation"},"url-reference":{pattern:/!?\[[^\]]+\]:[\t ]+(?:\S+|<(?:\\.|[^>\\])+>)(?:[\t ]+(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\)))?/,inside:{variable:{pattern:/^(!?\[)[^\]]+/,lookbehind:!0},string:/(?:"(?:\\.|[^"\\])*"|'(?:\\.|[^'\\])*'|\((?:\\.|[^)\\])*\))$/,punctuation:/^[\[\]!:]|[<>]/},alias:"url"},bold:{pattern:r(/\b__(?:(?!_)|_(?:(?!_))+_)+__\b|\*\*(?:(?!\*)|\*(?:(?!\*))+\*)+\*\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^..)[\s\S]+(?=..$)/,lookbehind:!0,inside:{}},punctuation:/\*\*|__/}},italic:{pattern:r(/\b_(?:(?!_)|__(?:(?!_))+__)+_\b|\*(?:(?!\*)|\*\*(?:(?!\*))+\*\*)+\*/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^.)[\s\S]+(?=.$)/,lookbehind:!0,inside:{}},punctuation:/[*_]/}},strike:{pattern:r(/(~~?)(?:(?!~))+\2/.source),lookbehind:!0,greedy:!0,inside:{content:{pattern:/(^~~?)[\s\S]+(?=\1$)/,lookbehind:!0,inside:{}},punctuation:/~~?/}},"code-snippet":{pattern:/(^|[^\\`])(?:``[^`\r\n]+(?:`[^`\r\n]+)*``(?!`)|`[^`\r\n]+`(?!`))/,lookbehind:!0,greedy:!0,alias:["code","keyword"]},url:{pattern:r(/!?\[(?:(?!\]))+\](?:\([^\s)]+(?:[\t ]+"(?:\\.|[^"\\])*")?\)|[ \t]?\[(?:(?!\]))+\])/.source),lookbehind:!0,greedy:!0,inside:{operator:/^!/,content:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0,inside:{}},variable:{pattern:/(^\][ \t]?\[)[^\]]+(?=\]$)/,lookbehind:!0},url:{pattern:/(^\]\()[^\s)]+/,lookbehind:!0},string:{pattern:/(^[ \t]+)"(?:\\.|[^"\\])*"(?=\)$)/,lookbehind:!0}}}}),["url","bold","italic","strike"].forEach(function(o){["url","bold","italic","strike","code-snippet"].forEach(function(l){o!==l&&(t.languages.markdown[o].inside.content.inside[l]=t.languages.markdown[l])})}),t.hooks.add("after-tokenize",function(o){if(o.language!=="markdown"&&o.language!=="md")return;function l(u){if(!(!u||typeof u=="string"))for(var c=0,f=u.length;c]?|\+\+?|!=?|<>?=?|==?|&&?|\|\|?|[~^%?*\/@]/}),delete e.languages.objectivec["class-name"],e.languages.objc=e.languages.objectivec}t6.displayName="perl";t6.aliases=[];function t6(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)}Js.displayName="markup-templating";Js.aliases=[];function Js(e){e.register(Is),function(t){function n(r,i){return"___"+r.toUpperCase()+i+"___"}Object.defineProperties(t.languages["markup-templating"]={},{buildPlaceholders:{value:function(r,i,a,s){if(r.language===i){var o=r.tokenStack=[];r.code=r.code.replace(a,function(l){if(typeof s=="function"&&!s(l))return l;for(var u=o.length,c;r.code.indexOf(c=n(i,u))!==-1;)++u;return o[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 a=0,s=Object.keys(r.tokenStack);function o(l){for(var u=0;u=s.length);u++){var c=l[u];if(typeof c=="string"||c.content&&typeof c.content=="string"){var f=s[a],h=r.tokenStack[f],g=typeof c=="string"?c:c.content,b=n(i,f),S=g.indexOf(b);if(S>-1){++a;var w=g.substring(0,S),E=new t.Token(i,t.tokenize(h,r.grammar),"language-"+i,h),x=g.substring(S+b.length),k=[];w&&k.push.apply(k,o([w])),k.push(E),x&&k.push.apply(k,o([x])),typeof c=="string"?l.splice.apply(l,[u,1].concat(k)):c.content=k}}else c.content&&o(c.content)}return l}o(r.tokens)}}})}(e)}z1.displayName="php";z1.aliases=[];function z1(e){e.register(Js),function(t){var n=/\/\*[\s\S]*?\*\/|\/\/.*|#(?!\[).*/,r=[{pattern:/\b(?:false|true)\b/i,alias:"boolean"},{pattern:/(::\s*)\b[a-z_]\w*\b(?!\s*\()/i,greedy:!0,lookbehind:!0},{pattern:/(\b(?:case|const)\s+)\b[a-z_]\w*(?=\s*[;=])/i,greedy:!0,lookbehind:!0},/\b(?:null)\b/i,/\b[A-Z_][A-Z0-9_]*\b(?!\s*\()/],i=/\b0b[01]+(?:_[01]+)*\b|\b0o[0-7]+(?:_[0-7]+)*\b|\b0x[\da-f]+(?:_[\da-f]+)*\b|(?:\b\d+(?:_\d+)*\.?(?:\d+(?:_\d+)*)?|\B\.\d+)(?:e[+-]?\d+)?/i,a=/|\?\?=?|\.{3}|\??->|[!=]=?=?|::|\*\*=?|--|\+\+|&&|\|\||<<|>>|[?~]|[/^|%*&<>.+-]=?/,s=/[{}\[\](),:;]/;t.languages.php={delimiter:{pattern:/\?>$|^<\?(?:php(?=\s)|=)?/i,alias:"important"},comment:n,variable:/\$+(?:\w+\b|(?=\{))/,package:{pattern:/(namespace\s+|use\s+(?:function\s+)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,lookbehind:!0,inside:{punctuation:/\\/}},"class-name-definition":{pattern:/(\b(?:class|enum|interface|trait)\s+)\b[a-z_]\w*(?!\\)\b/i,lookbehind:!0,alias:"class-name"},"function-definition":{pattern:/(\bfunction\s+)[a-z_]\w*(?=\s*\()/i,lookbehind:!0,alias:"function"},keyword:[{pattern:/(\(\s*)\b(?:array|bool|boolean|float|int|integer|object|string)\b(?=\s*\))/i,alias:"type-casting",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|object|self|static|string)\b(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b(?:array(?!\s*\()|bool|callable|(?:false|null)(?=\s*\|)|float|int|iterable|mixed|never|object|self|static|string|void)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/\b(?:array(?!\s*\()|bool|float|int|iterable|mixed|object|string|void)\b/i,alias:"type-declaration",greedy:!0},{pattern:/(\|\s*)(?:false|null)\b|\b(?:false|null)(?=\s*\|)/i,alias:"type-declaration",greedy:!0,lookbehind:!0},{pattern:/\b(?:parent|self|static)(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(\byield\s+)from\b/i,lookbehind:!0},/\bclass\b/i,{pattern:/((?:^|[^\s>:]|(?:^|[^-])>|(?:^|[^:]):)\s*)\b(?:abstract|and|array|as|break|callable|case|catch|clone|const|continue|declare|default|die|do|echo|else|elseif|empty|enddeclare|endfor|endforeach|endif|endswitch|endwhile|enum|eval|exit|extends|final|finally|fn|for|foreach|function|global|goto|if|implements|include|include_once|instanceof|insteadof|interface|isset|list|match|namespace|never|new|or|parent|print|private|protected|public|readonly|require|require_once|return|self|static|switch|throw|trait|try|unset|use|var|while|xor|yield|__halt_compiler)\b/i,lookbehind:!0}],"argument-name":{pattern:/([(,]\s*)\b[a-z_]\w*(?=\s*:(?!:))/i,lookbehind:!0},"class-name":[{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self|\s+static))\s+|\bcatch\s*\()\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/(\|\s*)\b[a-z_]\w*(?!\\)\b/i,greedy:!0,lookbehind:!0},{pattern:/\b[a-z_]\w*(?!\\)\b(?=\s*\|)/i,greedy:!0},{pattern:/(\|\s*)(?:\\?\b[a-z_]\w*)+\b/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(?:\\?\b[a-z_]\w*)+\b(?=\s*\|)/i,alias:"class-name-fully-qualified",greedy:!0,inside:{punctuation:/\\/}},{pattern:/(\b(?:extends|implements|instanceof|new(?!\s+self\b|\s+static\b))\s+|\bcatch\s*\()(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:"class-name-fully-qualified",greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*\$)/i,alias:"type-declaration",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-declaration"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/\b[a-z_]\w*(?=\s*::)/i,alias:"static-context",greedy:!0},{pattern:/(?:\\?\b[a-z_]\w*)+(?=\s*::)/i,alias:["class-name-fully-qualified","static-context"],greedy:!0,inside:{punctuation:/\\/}},{pattern:/([(,?]\s*)[a-z_]\w*(?=\s*\$)/i,alias:"type-hint",greedy:!0,lookbehind:!0},{pattern:/([(,?]\s*)(?:\\?\b[a-z_]\w*)+(?=\s*\$)/i,alias:["class-name-fully-qualified","type-hint"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}},{pattern:/(\)\s*:\s*(?:\?\s*)?)\b[a-z_]\w*(?!\\)\b/i,alias:"return-type",greedy:!0,lookbehind:!0},{pattern:/(\)\s*:\s*(?:\?\s*)?)(?:\\?\b[a-z_]\w*)+\b(?!\\)/i,alias:["class-name-fully-qualified","return-type"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,function:{pattern:/(^|[^\\\w])\\?[a-z_](?:[\w\\]*\w)?(?=\s*\()/i,lookbehind:!0,inside:{punctuation:/\\/}},property:{pattern:/(->\s*)\w+/,lookbehind:!0},number:i,operator:a,punctuation:s};var o={pattern:/\{\$(?:\{(?:\{[^{}]+\}|[^{}]+)\}|[^{}])+\}|(^|[^\\{])\$+(?:\w+(?:\[[^\r\n\[\]]+\]|->\w+)?)/,lookbehind:!0,inside:t.languages.php},l=[{pattern:/<<<'([^']+)'[\r\n](?:.*[\r\n])*?\1;/,alias:"nowdoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<'[^']+'|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<'?|[';]$/}}}},{pattern:/<<<(?:"([^"]+)"[\r\n](?:.*[\r\n])*?\1;|([a-z_]\w*)[\r\n](?:.*[\r\n])*?\2;)/i,alias:"heredoc-string",greedy:!0,inside:{delimiter:{pattern:/^<<<(?:"[^"]+"|[a-z_]\w*)|[a-z_]\w*;$/i,alias:"symbol",inside:{punctuation:/^<<<"?|[";]$/}},interpolation:o}},{pattern:/`(?:\\[\s\S]|[^\\`])*`/,alias:"backtick-quoted-string",greedy:!0},{pattern:/'(?:\\[\s\S]|[^\\'])*'/,alias:"single-quoted-string",greedy:!0},{pattern:/"(?:\\[\s\S]|[^\\"])*"/,alias:"double-quoted-string",greedy:!0,inside:{interpolation:o}}];t.languages.insertBefore("php","variable",{string:l,attribute:{pattern:/#\[(?:[^"'\/#]|\/(?![*/])|\/\/.*$|#(?!\[).*$|\/\*(?:[^*]|\*(?!\/))*\*\/|"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*')+\](?=\s*[a-z$#])/im,greedy:!0,inside:{"attribute-content":{pattern:/^(#\[)[\s\S]+(?=\]$)/,lookbehind:!0,inside:{comment:n,string:l,"attribute-class-name":[{pattern:/([^:]|^)\b[a-z_]\w*(?!\\)\b/i,alias:"class-name",greedy:!0,lookbehind:!0},{pattern:/([^:]|^)(?:\\?\b[a-z_]\w*)+/i,alias:["class-name","class-name-fully-qualified"],greedy:!0,lookbehind:!0,inside:{punctuation:/\\/}}],constant:r,number:i,operator:a,punctuation:s}},delimiter:{pattern:/^#\[|\]$/,alias:"punctuation"}}}}),t.hooks.add("before-tokenize",function(u){if(/<\?/.test(u.code)){var 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)}JT.displayName="python";JT.aliases=["py"];function JT(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}n6.displayName="r";n6.aliases=[];function n6(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:/[(){}\[\],;]/}}j1.displayName="ruby";j1.aliases=["rb"];function j1(e){e.register(Dr),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)}r6.displayName="rust";r6.aliases=[];function r6(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)}i6.displayName="sass";i6.aliases=[];function i6(e){e.register(P0),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)}a6.displayName="scss";a6.aliases=[];function a6(e){e.register(P0),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}tS.displayName="sql";tS.aliases=[];function tS(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:/[;[\]()`,.]/}}s6.displayName="swift";s6.aliases=[];function s6(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})}nS.displayName="typescript";nS.aliases=["ts"];function nS(e){e.register(Ks),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)}ek.displayName="basic";ek.aliases=[];function ek(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:/[,;:()]/}}tk.displayName="vbnet";tk.aliases=[];function tk(e){e.register(ek),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 pne=/[#.]/g;function ybt(e,t){const n=e||"",r={};let i=0,a,s;for(;i=48&&t<=57}function Cbt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=102||t>=65&&t<=70||t>=48&&t<=57}function Abt(e){const t=typeof e=="string"?e.charCodeAt(0):e;return t>=97&&t<=122||t>=65&&t<=90}function bne(e){return Abt(e)||G1e(e)}const ry=String.fromCharCode,_bt=["","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 Rbt(e,t={}){const n=typeof t.additional=="string"?t.additional.charCodeAt(0):t.additional,r=[];let i=0,a=-1,s="",o,l;t.position&&("start"in t.position||"indent"in t.position?(l=t.position.indent,o=t.position.start):o=t.position);let u=(o?o.line:0)||1,c=(o?o.column:0)||1,f=g(),h;for(i--;++i<=e.length;)if(h===10&&(c=(l?l[a]:0)||1),h=e.charCodeAt(i),h===38){const w=e.charCodeAt(i+1);if(w===9||w===10||w===12||w===32||w===38||w===60||Number.isNaN(w)||n&&w===n){s+=ry(h),c++;continue}const E=i+1;let x=E,k=E,C;if(w===35){k=++x;const V=e.charCodeAt(k);V===88||V===120?(C="hexadecimal",k=++x):C="decimal"}else C="named";let I="",A="",D="";const B=C==="named"?bne:C==="decimal"?G1e:Cbt;for(k--;++k<=e.length;){const V=e.charCodeAt(k);if(!B(V))break;D+=ry(V),C==="named"&&kbt.includes(D)&&(I=D,A=Tx(D))}let L=e.charCodeAt(k)===59;if(L){k++;const V=C==="named"?Tx(D):!1;V&&(I=D,A=V)}let F=1+k-E,W="";if(!(!L&&t.nonTerminated===!1))if(!D)C!=="named"&&b(4,F);else if(C==="named"){if(L&&!A)b(5,1);else if(I!==D&&(k=x+I.length,F=1+k-x,L=!1),!L){const V=I?1:3;if(t.attribute){const Z=e.charCodeAt(k);Z===61?(b(V,F),A=""):bne(Z)?A="":b(V,F)}else b(V,F)}W=A}else{L||b(2,F);let V=Number.parseInt(D,C==="hexadecimal"?16:10);if(Ibt(V))b(7,F),W=ry(65533);else if(V in gne)b(6,F),W=gne[V];else{let Z="";Dbt(V)&&b(6,F),V>65535&&(V-=65536,Z+=ry(V>>>10|55296),V=56320|V&1023),W=Z+ry(V)}}if(W){S(),f=g(),i=k-1,c+=k-E+1,r.push(W);const V=g();V.offset++,t.reference&&t.reference.call(t.referenceContext,W,{start:f,end:V},e.slice(E-1,k)),f=V}else D=e.slice(E-1,k),s+=D,c+=D.length,i=k-1}else h===10&&(u++,a++,c=0),Number.isNaN(h)?S():(s+=ry(h),c++);return r.join("");function g(){return{line:u,column:c,offset:i+((o?o.offset:0)||0)}}function b(w,E){let x;t.warning&&(x=g(),x.column+=E,x.offset+=E,t.warning.call(t.warningContext,_bt[w],x,w))}function S(){s&&(r.push(s),t.text&&t.text.call(t.textContext,s,{start:f,end:g()}),s="")}}function Ibt(e){return e>=55296&&e<=57343||e>1114111}function Dbt(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 Nbt=0,VA={},Ss={util:{type:function(e){return Object.prototype.toString.call(e).slice(8,-1)},objId:function(e){return e.__id||Object.defineProperty(e,"__id",{value:++Nbt}),e.__id},clone:function e(t,n){n=n||{};var r,i;switch(Ss.util.type(t)){case"Object":if(i=Ss.util.objId(t),n[i])return n[i];r={},n[i]=r;for(var a in t)t.hasOwnProperty(a)&&(r[a]=e(t[a],n));return r;case"Array":return i=Ss.util.objId(t),n[i]?n[i]:(r=[],n[i]=r,t.forEach(function(s,o){r[o]=e(s,n)}),r);default:return t}}},languages:{plain:VA,plaintext:VA,text:VA,txt:VA,extend:function(e,t){var n=Ss.util.clone(Ss.languages[e]);for(var r in t)n[r]=t[r];return n},insertBefore:function(e,t,n,r){r=r||Ss.languages;var i=r[e],a={};for(var s in i)if(i.hasOwnProperty(s)){if(s==t)for(var o in n)n.hasOwnProperty(o)&&(a[o]=n[o]);n.hasOwnProperty(s)||(a[s]=i[s])}var l=r[e];return r[e]=a,Ss.languages.DFS(Ss.languages,function(u,c){c===l&&u!=e&&(this[u]=a)}),a},DFS:function e(t,n,r,i){i=i||{};var a=Ss.util.objId;for(var s in t)if(t.hasOwnProperty(s)){n.call(t,s,t[s],r||s);var o=t[s],l=Ss.util.type(o);l==="Object"&&!i[a(o)]?(i[a(o)]=!0,e(o,n,null,i)):l==="Array"&&!i[a(o)]&&(i[a(o)]=!0,e(o,n,s,i))}}},plugins:{},highlight:function(e,t,n){var r={code:e,grammar:t,language:n};if(Ss.hooks.run("before-tokenize",r),!r.grammar)throw new Error('The language "'+r.language+'" has no grammar.');return r.tokens=Ss.tokenize(r.code,r.grammar),Ss.hooks.run("after-tokenize",r),sw.stringify(Ss.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 Pbt;return s_(i,i.head,e),Y1e(e,i,t,i.head,0),Lbt(i)},hooks:{all:{},add:function(e,t){var n=Ss.hooks.all;n[e]=n[e]||[],n[e].push(t)},run:function(e,t){var n=Ss.hooks.all[e];if(!(!n||!n.length))for(var r=0,i;i=n[r++];)i(t)}},Token:sw};function sw(e,t,n,r){this.type=e,this.content=t,this.alias=n,this.length=(r||"").length|0}function yne(e,t,n,r){e.lastIndex=t;var i=e.exec(n);if(i&&r&&i[1]){var a=i[1].length;i.index+=a,i[0]=i[0].slice(a)}return i}function Y1e(e,t,n,r,i,a){for(var s in n)if(!(!n.hasOwnProperty(s)||!n[s])){var o=n[s];o=Array.isArray(o)?o:[o];for(var l=0;l=a.reach);E+=w.value.length,w=w.next){var x=w.value;if(t.length>e.length)return;if(!(x instanceof sw)){var k=1,C;if(h){if(C=yne(S,E,e,f),!C||C.index>=e.length)break;var B=C.index,I=C.index+C[0].length,A=E;for(A+=w.value.length;B>=A;)w=w.next,A+=w.value.length;if(A-=w.value.length,E=A,w.value instanceof sw)continue;for(var D=w;D!==t.tail&&(Aa.reach&&(a.reach=V);var Z=w.prev;F&&(Z=s_(t,Z,F),E+=F.length),Mbt(t,Z,k);var Q=new sw(s,c?Ss.tokenize(L,c):L,g,L);if(w=s_(t,Z,Q),W&&s_(t,w,W),k>1){var H={cause:s+","+l,reach:V};Y1e(e,t,n,w.prev,E,H),a&&H.reach>a.reach&&(a.reach=H.reach)}}}}}}function Pbt(){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 s_(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 Mbt(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:/[,.:()]/}}Nz.displayName="abnf";Nz.aliases=[];function Nz(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)}Pz.displayName="actionscript";Pz.aliases=[];function Pz(e){e.register(Ks),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}})}Mz.displayName="ada";Mz.aliases=[];function Mz(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}}Lz.displayName="agda";Lz.aliases=[];function Lz(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)}$z.displayName="al";$z.aliases=[];function $z(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:/[()\[\]{}:.;,]/}}Fz.displayName="antlr4";Fz.aliases=["g4"];function Fz(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}Bz.displayName="apacheconf";Bz.aliases=[];function Bz(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:/\^?.*\$|\^.*\$?/}}Uz.displayName="apex";Uz.aliases=[];function Uz(e){e.register(Dr),e.register(tS),function(t){var n=/\b(?:(?:after|before)(?=\s+[a-z])|abstract|activate|and|any|array|as|asc|autonomous|begin|bigdecimal|blob|boolean|break|bulk|by|byte|case|cast|catch|char|class|collect|commit|const|continue|currency|date|datetime|decimal|default|delete|desc|do|double|else|end|enum|exception|exit|export|extends|final|finally|float|for|from|get(?=\s*[{};])|global|goto|group|having|hint|if|implements|import|in|inner|insert|instanceof|int|integer|interface|into|join|like|limit|list|long|loop|map|merge|new|not|null|nulls|number|object|of|on|or|outer|override|package|parallel|pragma|private|protected|public|retrieve|return|rollback|select|set|short|sObject|sort|static|string|super|switch|synchronized|system|testmethod|then|this|throw|time|transaction|transient|trigger|try|undelete|update|upsert|using|virtual|void|webservice|when|where|while|(?:inherited|with|without)\s+sharing)\b/i,r=/\b(?:(?=[a-z_]\w*\s*[<\[])|(?!))[A-Z_]\w*(?:\s*\.\s*[A-Z_]\w*)*\b(?:\s*(?:\[\s*\]|<(?:[^<>]|<(?:[^<>]|<[^<>]*>)*>)*>))*/.source.replace(//g,function(){return n.source});function i(s){return RegExp(s.replace(//g,function(){return r}),"i")}var a={keyword:n,punctuation:/[()\[\]{};,:.<>]/};t.languages.apex={comment:t.languages.clike.comment,string:t.languages.clike.string,sql:{pattern:/((?:[=,({:]|\breturn)\s*)\[[^\[\]]*\]/i,lookbehind:!0,greedy:!0,alias:"language-sql",inside:t.languages.sql},annotation:{pattern:/@\w+\b/,alias:"punctuation"},"class-name":[{pattern:i(/(\b(?:class|enum|extends|implements|instanceof|interface|new|trigger\s+\w+\s+on)\s+)/.source),lookbehind:!0,inside:a},{pattern:i(/(\(\s*)(?=\s*\)\s*[\w(])/.source),lookbehind:!0,inside:a},{pattern:i(/(?=\s*\w+\s*[;=,(){:])/.source),inside:a}],trigger:{pattern:/(\btrigger\s+)\w+\b/i,lookbehind:!0,alias:"class-name"},keyword:n,function:/\b[a-z_]\w*(?=\s*\()/i,boolean:/\b(?:false|true)\b/i,number:/(?:\B\.\d+|\b\d+(?:\.\d+|L)?)\b/i,operator:/[!=](?:==?)?|\?\.?|&&|\|\||--|\+\+|[-+*/^&|]=?|:|<{1,3}=?/,punctuation:/[()\[\]{};,.]/}}(e)}zz.displayName="apl";zz.aliases=[];function zz(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"}}}jz.displayName="applescript";jz.aliases=[];function jz(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:/[{}():,¬«»《》]/}}Hz.displayName="aql";Hz.aliases=[];function Hz(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:/::|[?.:,;()[\]{}]/}}Vz.displayName="arff";Vz.aliases=[];function Vz(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:/[{},]/}}Wz.displayName="armasm";Wz.aliases=["arm-asm"];function Wz(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}Qz.displayName="arturo";Qz.aliases=["art"];function Qz(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)}qz.displayName="asciidoc";qz.aliases=["adoc"];function qz(e){(function(t){var n={pattern:/(^[ \t]*)\[(?!\[)(?:(["'$`])(?:(?!\2)[^\\]|\\.)*\2|\[(?:[^\[\]\\]|\\.)*\]|[^\[\]\\"'$`]|\\.)*\]/m,lookbehind:!0,inside:{quoted:{pattern:/([$`])(?:(?!\1)[^\\]|\\.)*\1/,inside:{punctuation:/^[$`]|[$`]$/}},interpreted:{pattern:/'(?:[^'\\]|\\.)*'/,inside:{punctuation:/^'|'$/}},string:/"(?:[^"\\]|\\.)*"/,variable:/\w+(?==)/,punctuation:/^\[|\]$|,/,operator:/=/,"attr-value":/(?!^\s+$).+/}},r=t.languages.asciidoc={"comment-block":{pattern:/^(\/{4,})$[\s\S]*?^\1/m,alias:"comment"},table:{pattern:/^\|={3,}(?:(?:\r?\n|\r(?!\n)).*)*?(?:\r?\n|\r)\|={3,}$/m,inside:{specifiers:{pattern:/(?:(?:(?:\d+(?:\.\d+)?|\.\d+)[+*](?:[<^>](?:\.[<^>])?|\.[<^>])?|[<^>](?:\.[<^>])?|\.[<^>])[a-z]*|[a-z]+)(?=\|)/,alias:"attr-value"},punctuation:{pattern:/(^|[^\\])[|!]=*/,lookbehind:!0}}},"passthrough-block":{pattern:/^(\+{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^\++|\++$/}},"literal-block":{pattern:/^(-{4,}|\.{4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\.+)|(?:-+|\.+)$/}},"other-block":{pattern:/^(--|\*{4,}|_{4,}|={4,})$[\s\S]*?^\1$/m,inside:{punctuation:/^(?:-+|\*+|_+|=+)|(?:-+|\*+|_+|=+)$/}},"list-punctuation":{pattern:/(^[ \t]*)(?:-|\*{1,5}|\.{1,5}|(?:[a-z]|\d+)\.|[xvi]+\))(?= )/im,lookbehind:!0,alias:"punctuation"},"list-label":{pattern:/(^[ \t]*)[a-z\d].+(?::{2,4}|;;)(?=\s)/im,lookbehind:!0,alias:"symbol"},"indented-block":{pattern:/((\r?\n|\r)\2)([ \t]+)\S.*(?:(?:\r?\n|\r)\3.+)*(?=\2{2}|$)/,lookbehind:!0},comment:/^\/\/.*/m,title:{pattern:/^.+(?:\r?\n|\r)(?:={3,}|-{3,}|~{3,}|\^{3,}|\+{3,})$|^={1,5} .+|^\.(?![\s.]).*/m,alias:"important",inside:{punctuation:/^(?:\.|=+)|(?:=+|-+|~+|\^+|\++)$/}},"attribute-entry":{pattern:/^:[^:\r\n]+:(?: .*?(?: \+(?:\r?\n|\r).*?)*)?$/m,alias:"tag"},attributes:n,hr:{pattern:/^'{3,}$/m,alias:"punctuation"},"page-break":{pattern:/^<{3,}$/m,alias:"punctuation"},admonition:{pattern:/^(?:CAUTION|IMPORTANT|NOTE|TIP|WARNING):/m,alias:"keyword"},callout:[{pattern:/(^[ \t]*)/m,lookbehind:!0,alias:"symbol"},{pattern:/<\d+>/,alias:"symbol"}],macro:{pattern:/\b[a-z\d][a-z\d-]*::?(?:[^\s\[\]]*\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:{function:/^[a-z\d-]+(?=:)/,punctuation:/^::?/,attributes:{pattern:/(?:\[(?:[^\]\\"']|(["'])(?:(?!\1)[^\\]|\\.)*\1|\\.)*\])/,inside:n.inside}}},inline:{pattern:/(^|[^\\])(?:(?:\B\[(?:[^\]\\"']|(["'])(?:(?!\2)[^\\]|\\.)*\2|\\.)*\])?(?:\b_(?!\s)(?: _|[^_\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: _|[^_\\\r\n]|\\.)+)*_\b|\B``(?!\s).+?(?:(?:\r?\n|\r).+?)*''\B|\B`(?!\s)(?:[^`'\s]|\s+\S)+['`]\B|\B(['*+#])(?!\s)(?: \3|(?!\3)[^\\\r\n]|\\.)+(?:(?:\r?\n|\r)(?: \3|(?!\3)[^\\\r\n]|\\.)+)*\3\B)|(?:\[(?:[^\]\\"']|(["'])(?:(?!\4)[^\\]|\\.)*\4|\\.)*\])?(?:(__|\*\*|\+\+\+?|##|\$\$|[~^]).+?(?:(?:\r?\n|\r).+?)*\5|\{[^}\r\n]+\}|\[\[\[?.+?(?:(?:\r?\n|\r).+?)*\]?\]\]|<<.+?(?:(?:\r?\n|\r).+?)*>>|\(\(\(?.+?(?:(?:\r?\n|\r).+?)*\)?\)\)))/m,lookbehind:!0,inside:{attributes:n,url:{pattern:/^(?:\[\[\[?.+?\]?\]\]|<<.+?>>)$/,inside:{punctuation:/^(?:\[\[\[?|<<)|(?:\]\]\]?|>>)$/}},"attribute-ref":{pattern:/^\{.+\}$/,inside:{variable:{pattern:/(^\{)[a-z\d,+_-]+/,lookbehind:!0},operator:/^[=?!#%@$]|!(?=[:}])/,punctuation:/^\{|\}$|::?/}},italic:{pattern:/^(['_])[\s\S]+\1$/,inside:{punctuation:/^(?:''?|__?)|(?:''?|__?)$/}},bold:{pattern:/^\*[\s\S]+\*$/,inside:{punctuation:/^\*\*?|\*\*?$/}},punctuation:/^(?:``?|\+{1,3}|##?|\$\$|[~^]|\(\(\(?)|(?:''?|\+{1,3}|##?|\$\$|[~^`]|\)?\)\))$/}},replacement:{pattern:/\((?:C|R|TM)\)/,alias:"builtin"},entity:/&#?[\da-z]{1,8};/i,"line-continuation":{pattern:/(^| )\+$/m,lookbehind:!0,alias:"punctuation"}};function i(a){a=a.split(" ");for(var s={},o=0,l=a.length;o/,alias:"tag",inside:{"page-directive":{pattern:/<%\s*@\s*(?:Assembly|Control|Implements|Import|Master(?:Type)?|OutputCache|Page|PreviousPageType|Reference|Register)?|%>/i,alias:"tag"},rest:e.languages.markup.tag.inside}},directive:{pattern:/<%.*%>/,alias:"tag",inside:{directive:{pattern:/<%\s*?[$=%#:]{0,2}|%>/,alias:"tag"},rest:e.languages.csharp}}}),e.languages.aspnet.tag.pattern=/<(?!%)\/?[^\s>\/]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,e.languages.insertBefore("inside","punctuation",{directive:e.languages.aspnet.directive},e.languages.aspnet.tag.inside["attr-value"]),e.languages.insertBefore("aspnet","comment",{"asp-comment":{pattern:/<%--[\s\S]*?--%>/,alias:["asp","comment"]}}),e.languages.insertBefore("aspnet",e.languages.javascript?"script":"tag",{"asp-script":{pattern:/(]*>)[\s\S]*?(?=<\/script>)/i,lookbehind:!0,alias:["asp","script"],inside:e.languages.csharp||{}}})}Yz.displayName="asm6502";Yz.aliases=[];function Yz(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:/[(),:]/}}Zz.displayName="asmatmel";Zz.aliases=[];function Zz(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:/[(),:]/}}Xz.displayName="autohotkey";Xz.aliases=[];function Xz(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:/[{}[\]():,]/}}Kz.displayName="autoit";Kz.aliases=[];function Kz(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:/[\[\]().,:]/}}Jz.displayName="avisynth";Jz.aliases=["avs"];function Jz(e){(function(t){function n(u,c){return u.replace(/<<(\d+)>>/g,function(f,h){return c[+h]})}function r(u,c,f){return RegExp(n(u,c),f||"")}var i=/bool|clip|float|int|string|val/.source,a=[/is(?:bool|clip|float|int|string)|defined|(?:(?:internal)?function|var)?exists?/.source,/apply|assert|default|eval|import|nop|select|undefined/.source,/opt_(?:allowfloataudio|avipadscanlines|dwchannelmask|enable_(?:b64a|planartopackedrgb|v210|y3_10_10|y3_10_16)|usewaveextensible|vdubplanarhack)|set(?:cachemode|maxcpu|memorymax|planarlegacyalignment|workingdir)/.source,/hex(?:value)?|value/.source,/abs|ceil|continued(?:denominator|numerator)?|exp|floor|fmod|frac|log(?:10)?|max|min|muldiv|pi|pow|rand|round|sign|spline|sqrt/.source,/a?sinh?|a?cosh?|a?tan[2h]?/.source,/(?:bit(?:and|not|x?or|[lr]?shift[aslu]?|sh[lr]|sa[lr]|[lr]rotatel?|ro[rl]|te?st|set(?:count)?|cl(?:ea)?r|ch(?:an)?ge?))/.source,/average(?:[bgr]|chroma[uv]|luma)|(?:[rgb]|chroma[uv]|luma|rgb|[yuv](?=difference(?:fromprevious|tonext)))difference(?:fromprevious|tonext)?|[yuvrgb]plane(?:median|min|max|minmaxdifference)/.source,/getprocessinfo|logmsg|script(?:dir(?:utf8)?|file(?:utf8)?|name(?:utf8)?)|setlogparams/.source,/chr|(?:fill|find|left|mid|replace|rev|right)str|format|[lu]case|ord|str(?:cmpi?|fromutf8|len|toutf8)|time|trim(?:all|left|right)/.source,/isversionorgreater|version(?:number|string)/.source,/buildpixeltype|colorspacenametopixeltype/.source,/addautoloaddir|on(?:cpu|cuda)|prefetch|setfiltermtmode/.source].join("|"),s=[/has(?:audio|video)/.source,/height|width/.source,/frame(?:count|rate)|framerate(?:denominator|numerator)/.source,/getparity|is(?:field|frame)based/.source,/bitspercomponent|componentsize|hasalpha|is(?:planar(?:rgba?)?|interleaved|rgb(?:24|32|48|64)?|y(?:8|u(?:va?|y2))?|yv(?:12|16|24|411)|420|422|444|packedrgb)|numcomponents|pixeltype/.source,/audio(?:bits|channels|duration|length(?:[fs]|hi|lo)?|rate)|isaudio(?:float|int)/.source].join("|"),o=[/avi(?:file)?source|directshowsource|image(?:reader|source|sourceanim)|opendmlsource|segmented(?:avisource|directshowsource)|wavsource/.source,/coloryuv|convertbacktoyuy2|convertto(?:RGB(?:24|32|48|64)|(?:planar)?RGBA?|Y8?|YV(?:12|16|24|411)|YUVA?(?:411|420|422|444)|YUY2)|fixluminance|gr[ae]yscale|invert|levels|limiter|mergea?rgb|merge(?:chroma|luma)|rgbadjust|show(?:alpha|blue|green|red)|swapuv|tweak|[uv]toy8?|ytouv/.source,/(?:colorkey|reset)mask|layer|mask(?:hs)?|merge|overlay|subtract/.source,/addborders|(?:bicubic|bilinear|blackman|gauss|lanczos4|lanczos|point|sinc|spline(?:16|36|64))resize|crop(?:bottom)?|flip(?:horizontal|vertical)|(?:horizontal|vertical)?reduceby2|letterbox|skewrows|turn(?:180|left|right)/.source,/blur|fixbrokenchromaupsampling|generalconvolution|(?:spatial|temporal)soften|sharpen/.source,/trim|(?:un)?alignedsplice|(?:assume|assumescaled|change|convert)FPS|(?:delete|duplicate)frame|dissolve|fade(?:in|io|out)[02]?|freezeframe|interleave|loop|reverse|select(?:even|odd|(?:range)?every)/.source,/assume[bt]ff|assume(?:field|frame)based|bob|complementparity|doubleweave|peculiarblend|pulldown|separate(?:columns|fields|rows)|swapfields|weave(?:columns|rows)?/.source,/amplify(?:db)?|assumesamplerate|audiodub(?:ex)?|audiotrim|convertaudioto(?:(?:8|16|24|32)bit|float)|converttomono|delayaudio|ensurevbrmp3sync|get(?:left|right)?channel|kill(?:audio|video)|mergechannels|mixaudio|monotostereo|normalize|resampleaudio|ssrc|supereq|timestretch/.source,/animate|applyrange|conditional(?:filter|reader|select)|frameevaluate|scriptclip|tcp(?:server|source)|writefile(?:end|if|start)?/.source,/imagewriter/.source,/blackness|blankclip|colorbars(?:hd)?|compare|dumpfiltergraph|echo|histogram|info|messageclip|preroll|setgraphanalysis|show(?:framenumber|smpte|time)|showfiveversions|stack(?:horizontal|vertical)|subtitle|tone|version/.source].join("|"),l=[a,s,o].join("|");t.languages.avisynth={comment:[{pattern:/(^|[^\\])\[\*(?:[^\[*]|\[(?!\*)|\*(?!\])|\[\*(?:[^\[*]|\[(?!\*)|\*(?!\]))*\*\])*\*\]/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\])\/\*[\s\S]*?(?:\*\/|$)/,lookbehind:!0,greedy:!0},{pattern:/(^|[^\\$])#.*/,lookbehind:!0,greedy:!0}],argument:{pattern:r(/\b(?:<<0>>)\s+("?)\w+\1/.source,[i],"i"),inside:{keyword:/^\w+/}},"argument-label":{pattern:/([,(][\s\\]*)\w+\s*=(?!=)/,lookbehind:!0,inside:{"argument-name":{pattern:/^\w+/,alias:"punctuation"},punctuation:/=$/}},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:\\(?:\r\n|[\s\S])|[^"\\\r\n])*"/,greedy:!0,inside:{constant:{pattern:/\b(?:DEFAULT_MT_MODE|(?:MAINSCRIPT|PROGRAM|SCRIPT)DIR|(?:MACHINE|USER)_(?:CLASSIC|PLUS)_PLUGINS)\b/}}}],variable:/\b(?:last)\b/i,boolean:/\b(?:false|no|true|yes)\b/i,keyword:/\b(?:catch|else|for|function|global|if|return|try|while|__END__)\b/i,constant:/\bMT_(?:MULTI_INSTANCE|NICE_FILTER|SERIALIZED|SPECIAL_MT)\b/,"builtin-function":{pattern:r(/\b(?:<<0>>)\b/.source,[l],"i"),alias:"function"},"type-cast":{pattern:r(/\b(?:<<0>>)(?=\s*\()/.source,[i],"i"),alias:"keyword"},function:{pattern:/\b[a-z_]\w*(?=\s*\()|(\.)[a-z_]\w*\b/i,lookbehind:!0},"line-continuation":{pattern:/(^[ \t]*)\\|\\(?=[ \t]*$)/m,lookbehind:!0,alias:"punctuation"},number:/\B\$(?:[\da-f]{6}|[\da-f]{8})\b|(?:(?:\b|\B-)\d+(?:\.\d*)?\b|\B\.\d+\b)/i,operator:/\+\+?|[!=<>]=?|&&|\|\||[?:*/%-]/,punctuation:/[{}\[\]();,.]/},t.languages.avs=t.languages.avisynth})(e)}ej.displayName="avro-idl";ej.aliases=["avdl"];function ej(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"]}tj.displayName="awk";tj.aliases=["gawk"];function tj(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}nj.displayName="batch";nj.aliases=[];function nj(e){(function(t){var n=/%%?[~:\w]+%?|!\S+!/,r={pattern:/\/[a-z?]+(?=[ :]|$):?|-[a-z]\b|--[a-z-]+\b/im,alias:"attr-name",inside:{punctuation:/:/}},i=/"(?:[\\"]"|[^"])*"(?!")/,a=/(?:\b|-)\d+\b/;t.languages.batch={comment:[/^::.*/m,{pattern:/((?:^|[&(])[ \t]*)rem\b(?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0}],label:{pattern:/^:.*/m,alias:"property"},command:[{pattern:/((?:^|[&(])[ \t]*)for(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* \S+ in \([^)]+\) do/im,lookbehind:!0,inside:{keyword:/\b(?:do|in)\b|^for\b/i,string:i,parameter:r,variable:n,number:a,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*)if(?: \/[a-z?](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:not )?(?:cmdextversion \d+|defined \w+|errorlevel \d+|exist \S+|(?:"[^"]*"|(?!")(?:(?!==)\S)+)?(?:==| (?:equ|geq|gtr|leq|lss|neq) )(?:"[^"]*"|[^\s"]\S*))/im,lookbehind:!0,inside:{keyword:/\b(?:cmdextversion|defined|errorlevel|exist|not)\b|^if\b/i,string:i,parameter:r,variable:n,number:a,operator:/\^|==|\b(?:equ|geq|gtr|leq|lss|neq)\b/i}},{pattern:/((?:^|[&()])[ \t]*)else\b/im,lookbehind:!0,inside:{keyword:/^else\b/i}},{pattern:/((?:^|[&(])[ \t]*)set(?: \/[a-z](?:[ :](?:"[^"]*"|[^\s"/]\S*))?)* (?:[^^&)\r\n]|\^(?:\r\n|[\s\S]))*/im,lookbehind:!0,inside:{keyword:/^set\b/i,string:i,parameter:r,variable:[n,/\w+(?=(?:[*\/%+\-&^|]|<<|>>)?=)/],number:a,operator:/[*\/%+\-&^|]=?|<<=?|>>=?|[!~_=]/,punctuation:/[()',]/}},{pattern:/((?:^|[&(])[ \t]*@?)\w+\b(?:"(?:[\\"]"|[^"])*"(?!")|[^"^&)\r\n]|\^(?:\r\n|[\s\S]))*/m,lookbehind:!0,inside:{keyword:/^\w+\b/,string:i,parameter:r,label:{pattern:/(^\s*):\S+/m,lookbehind:!0,alias:"property"},variable:n,number:a,operator:/\^/}}],operator:/[&@]/,punctuation:/[()']/}})(e)}rj.displayName="bbcode";rj.aliases=["shortcode"];function rj(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}ij.displayName="bbj";ij.aliases=[];function ij(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)}aj.displayName="bicep";aj.aliases=[];function aj(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}sj.displayName="birb";sj.aliases=[];function sj(e){e.register(Dr),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"}})}oj.displayName="bison";oj.aliases=[];function oj(e){e.register(Bd),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:/%[%?]|[|:;\[\]<>]/}}})}lj.displayName="bnf";lj.aliases=["rbnf"];function lj(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}uj.displayName="bqn";uj.aliases=[];function uj(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:/[←⇐↩(){}⟨⟩[\]‿·⋄,.;:?]/}}cj.displayName="brainfuck";cj.aliases=[];function cj(e){e.languages.brainfuck={pointer:{pattern:/<|>/,alias:"keyword"},increment:{pattern:/\+/,alias:"inserted"},decrement:{pattern:/-/,alias:"deleted"},branching:{pattern:/\[|\]/,alias:"important"},operator:/[.,]/,comment:/\S+/}}dj.displayName="brightscript";dj.aliases=[];function dj(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}fj.displayName="bro";fj.aliases=[];function fj(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:/[{}[\];(),.:]/}}hj.displayName="bsl";hj.aliases=["oscript"];function hj(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}pj.displayName="cfscript";pj.aliases=["cfc"];function pj(e){e.register(Dr),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}mj.displayName="chaiscript";mj.aliases=[];function mj(e){e.register(Dr),e.register(F1),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]+/}}})}gj.displayName="cil";gj.aliases=[];function gj(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]+/}}bj.displayName="cilkc";bj.aliases=["cilk-c"];function bj(e){e.register(Bd),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}yj.displayName="cilkcpp";yj.aliases=["cilk","cilk-cpp"];function yj(e){e.register(F1),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}vj.displayName="clojure";vj.aliases=[];function vj(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:/[{}\[\](),]/}}Oj.displayName="cmake";Oj.aliases=[];function Oj(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:/[()>}]|\$[<{]/}}Sj.displayName="cobol";Sj.aliases=[];function Sj(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:/[.:,()]/}}Ej.displayName="coffeescript";Ej.aliases=["coffee"];function Ej(e){e.register(Ks),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)}wj.displayName="concurnas";wj.aliases=["conc"];function wj(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}xj.displayName="csp";xj.aliases=[];function xj(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)}Tj.displayName="cooklang";Tj.aliases=[];function Tj(e){(function(t){var n=/(?:(?!\s)[\d$+<=a-zA-Z\x80-\uFFFF])+/.source,r=/[^{}@#]+/.source,i=/\{[^}#@]*\}/.source,a=r+i,s=/(?:h|hours|hrs|m|min|minutes)/.source,o={pattern:/\{[^{}]*\}/,inside:{amount:{pattern:/([\{|])[^{}|*%]+/,lookbehind:!0,alias:"number"},unit:{pattern:/(%)[^}]+/,lookbehind:!0,alias:"symbol"},"servings-scaler":{pattern:/\*/,alias:"operator"},"servings-alternative-separator":{pattern:/\|/,alias:"operator"},"unit-separator":{pattern:/(?:%|(\*)%)/,lookbehind:!0,alias:"operator"},punctuation:/[{}]/}};t.languages.cooklang={comment:{pattern:/\[-[\s\S]*?-\]|--.*/,greedy:!0},meta:{pattern:/>>.*:.*/,inside:{property:{pattern:/(>>\s*)[^\s:](?:[^:]*[^\s:])?/,lookbehind:!0}}},"cookware-group":{pattern:new RegExp("#(?:"+a+"|"+n+")"),inside:{cookware:{pattern:new RegExp("(^#)(?:"+r+")"),lookbehind:!0,alias:"variable"},"cookware-keyword":{pattern:/^#/,alias:"keyword"},"quantity-group":{pattern:new RegExp(/\{[^{}@#]*\}/),inside:{quantity:{pattern:new RegExp(/(^\{)/.source+r),lookbehind:!0,alias:"number"},punctuation:/[{}]/}}}},"ingredient-group":{pattern:new RegExp("@(?:"+a+"|"+n+")"),inside:{ingredient:{pattern:new RegExp("(^@)(?:"+r+")"),lookbehind:!0,alias:"variable"},"ingredient-keyword":{pattern:/^@/,alias:"keyword"},"amount-group":o}},"timer-group":{pattern:/~(?!\s)[^@#~{}]*\{[^{}]*\}/,inside:{timer:{pattern:/(^~)[^{]+/,lookbehind:!0,alias:"variable"},"duration-group":{pattern:/\{[^{}]*\}/,inside:{punctuation:/[{}]/,unit:{pattern:new RegExp(/(%\s*)/.source+s+/\b/.source),lookbehind:!0,alias:"symbol"},operator:/%/,duration:{pattern:/\d+/,alias:"number"}}},"timer-keyword":{pattern:/^~/,alias:"keyword"}}}}})(e)}kj.displayName="coq";kj.aliases=[];function kj(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)}Cj.displayName="crystal";Cj.aliases=[];function Cj(e){e.register(j1),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)}Aj.displayName="css-extras";Aj.aliases=[];function Aj(e){e.register(P0),function(t){var n=/("|')(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r;t.languages.css.selector={pattern:t.languages.css.selector.pattern,lookbehind:!0,inside:r={"pseudo-element":/:(?:after|before|first-letter|first-line|selection)|::[-\w]+/,"pseudo-class":/:[-\w]+/,class:/\.[-\w]+/,id:/#[-\w]+/,attribute:{pattern:RegExp(`\\[(?:[^[\\]"']|`+n.source+")*\\]"),greedy:!0,inside:{punctuation:/^\[|\]$/,"case-sensitivity":{pattern:/(\s)[si]$/i,lookbehind:!0,alias:"keyword"},namespace:{pattern:/^(\s*)(?:(?!\s)[-*\w\xA0-\uFFFF])*\|(?!=)/,lookbehind:!0,inside:{punctuation:/\|$/}},"attr-name":{pattern:/^(\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+/,lookbehind:!0},"attr-value":[n,{pattern:/(=\s*)(?:(?!\s)[-\w\xA0-\uFFFF])+(?=\s*$)/,lookbehind:!0}],operator:/[|~*^$]?=/}},"n-th":[{pattern:/(\(\s*)[+-]?\d*[\dn](?:\s*[+-]\s*\d+)?(?=\s*\))/,lookbehind:!0,inside:{number:/[\dn]+/,operator:/[+-]/}},{pattern:/(\(\s*)(?:even|odd)(?=\s*\))/i,lookbehind:!0}],combinator:/>|\+|~|\|\|/,punctuation:/[(),]/}},t.languages.css.atrule.inside["selector-function-argument"].inside=r,t.languages.insertBefore("css","property",{variable:{pattern:/(^|[^-\w\xA0-\uFFFF])--(?!\s)[-_a-z\xA0-\uFFFF](?:(?!\s)[-\w\xA0-\uFFFF])*/i,lookbehind:!0}});var i={pattern:/(\b\d+)(?:%|[a-z]+(?![\w-]))/,lookbehind:!0},a={pattern:/(^|[^\w.-])-?(?:\d+(?:\.\d+)?|\.\d+)/,lookbehind:!0};t.languages.insertBefore("css","function",{operator:{pattern:/(\s)[+\-*\/](?=\s)/,lookbehind:!0},hexcode:{pattern:/\B#[\da-f]{3,8}\b/i,alias:"color"},color:[{pattern:/(^|[^\w-])(?:AliceBlue|AntiqueWhite|Aqua|Aquamarine|Azure|Beige|Bisque|Black|BlanchedAlmond|Blue|BlueViolet|Brown|BurlyWood|CadetBlue|Chartreuse|Chocolate|Coral|CornflowerBlue|Cornsilk|Crimson|Cyan|DarkBlue|DarkCyan|DarkGoldenRod|DarkGr[ae]y|DarkGreen|DarkKhaki|DarkMagenta|DarkOliveGreen|DarkOrange|DarkOrchid|DarkRed|DarkSalmon|DarkSeaGreen|DarkSlateBlue|DarkSlateGr[ae]y|DarkTurquoise|DarkViolet|DeepPink|DeepSkyBlue|DimGr[ae]y|DodgerBlue|FireBrick|FloralWhite|ForestGreen|Fuchsia|Gainsboro|GhostWhite|Gold|GoldenRod|Gr[ae]y|Green|GreenYellow|HoneyDew|HotPink|IndianRed|Indigo|Ivory|Khaki|Lavender|LavenderBlush|LawnGreen|LemonChiffon|LightBlue|LightCoral|LightCyan|LightGoldenRodYellow|LightGr[ae]y|LightGreen|LightPink|LightSalmon|LightSeaGreen|LightSkyBlue|LightSlateGr[ae]y|LightSteelBlue|LightYellow|Lime|LimeGreen|Linen|Magenta|Maroon|MediumAquaMarine|MediumBlue|MediumOrchid|MediumPurple|MediumSeaGreen|MediumSlateBlue|MediumSpringGreen|MediumTurquoise|MediumVioletRed|MidnightBlue|MintCream|MistyRose|Moccasin|NavajoWhite|Navy|OldLace|Olive|OliveDrab|Orange|OrangeRed|Orchid|PaleGoldenRod|PaleGreen|PaleTurquoise|PaleVioletRed|PapayaWhip|PeachPuff|Peru|Pink|Plum|PowderBlue|Purple|RebeccaPurple|Red|RosyBrown|RoyalBlue|SaddleBrown|Salmon|SandyBrown|SeaGreen|SeaShell|Sienna|Silver|SkyBlue|SlateBlue|SlateGr[ae]y|Snow|SpringGreen|SteelBlue|Tan|Teal|Thistle|Tomato|Transparent|Turquoise|Violet|Wheat|White|WhiteSmoke|Yellow|YellowGreen)(?![\w-])/i,lookbehind:!0},{pattern:/\b(?:hsl|rgb)\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*\)\B|\b(?:hsl|rgb)a\(\s*\d{1,3}\s*,\s*\d{1,3}%?\s*,\s*\d{1,3}%?\s*,\s*(?:0|0?\.\d+|1)\s*\)\B/i,inside:{unit:i,number:a,function:/[\w-]+(?=\()/,punctuation:/[(),]/}}],entity:/\\[\da-f]{1,8}/i,unit:i,number:a})}(e)}_j.displayName="csv";_j.aliases=[];function _j(e){e.languages.csv={value:/[^\r\n,"]+|"(?:[^"]|"")*"(?!")/,punctuation:/,/}}Rj.displayName="cue";Rj.aliases=[];function Rj(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)}Ij.displayName="cypher";Ij.aliases=[];function Ij(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:/[()[\]{},;.]/}}Dj.displayName="d";Dj.aliases=[];function Dj(e){e.register(Dr),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"}})}Nj.displayName="dart";Nj.aliases=[];function Nj(e){e.register(Dr),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)}Pj.displayName="dataweave";Pj.aliases=[];function Pj(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)}Mj.displayName="dax";Mj.aliases=[];function Mj(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:/[;\[\](){}`,.]/}}Lj.displayName="dhall";Lj.aliases=[];function Lj(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}$j.displayName="django";$j.aliases=["jinja2"];function $j(e){e.register(Js),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)}Fj.displayName="dns-zone-file";Fj.aliases=["dns-zone"];function Fj(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"]}Bj.displayName="docker";Bj.aliases=["dockerfile"];function Bj(e){(function(t){var n=/\\[\r\n](?:\s|\\[\r\n]|#.*(?!.))*(?![\s#]|\\[\r\n])/.source,r=/(?:[ \t]+(?![ \t])(?:)?|)/.source.replace(//g,function(){return n}),i=/"(?:[^"\\\r\n]|\\(?:\r\n|[\s\S]))*"|'(?:[^'\\\r\n]|\\(?:\r\n|[\s\S]))*'/.source,a=/--[\w-]+=(?:|(?!["'])(?:[^\s\\]|\\.)+)/.source.replace(//g,function(){return i}),s={pattern:RegExp(i),greedy:!0},o={pattern:/(^[ \t]*)#.*/m,lookbehind:!0,greedy:!0};function l(u,c){return u=u.replace(//g,function(){return a}).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:[s,{pattern:/(=)(?!["'])(?:[^\s\\]|\\.)+/,lookbehind:!0}],operator:/\\$/m,punctuation:/=/}},keyword:[{pattern:l(/(^(?:ONBUILD)?HEALTHCHECK(?:)*)(?:CMD|NONE)\b/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^(?:ONBUILD)?FROM(?:)*(?!--)[^ \t\\]+)AS/.source,"i"),lookbehind:!0,greedy:!0},{pattern:l(/(^ONBUILD)\w+/.source,"i"),lookbehind:!0,greedy:!0},{pattern:/^\w+/,greedy:!0}],comment:o,string:s,variable:/\$(?:\w+|\{[^{}"'\\]*\})/,operator:/\\$/m}},comment:o},t.languages.dockerfile=t.languages.docker})(e)}Uj.displayName="dot";Uj.aliases=["gv"];function Uj(e){(function(t){var n="(?:"+[/[a-zA-Z_\x80-\uFFFF][\w\x80-\uFFFF]*/.source,/-?(?:\.\d+|\d+(?:\.\d*)?)/.source,/"[^"\\]*(?:\\[\s\S][^"\\]*)*"/.source,/<(?:[^<>]|(?!)*>/.source].join("|")+")",r={markup:{pattern:/(^<)[\s\S]+(?=>$)/,lookbehind:!0,alias:["language-markup","language-html","language-xml"],inside:t.languages.markup}};function i(a,s){return RegExp(a.replace(//g,function(){return n}),s)}t.languages.dot={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\/|^#.*/m,greedy:!0},"graph-name":{pattern:i(/(\b(?:digraph|graph|subgraph)[ \t\r\n]+)/.source,"i"),lookbehind:!0,greedy:!0,alias:"class-name",inside:r},"attr-value":{pattern:i(/(=[ \t\r\n]*)/.source),lookbehind:!0,greedy:!0,inside:r},"attr-name":{pattern:i(/([\[;, \t\r\n])(?=[ \t\r\n]*=)/.source),lookbehind:!0,greedy:!0,inside:r},keyword:/\b(?:digraph|edge|graph|node|strict|subgraph)\b/i,"compass-point":{pattern:/(:[ \t\r\n]*)(?:[ewc_]|[ns][ew]?)(?![\w\x80-\uFFFF])/,lookbehind:!0,alias:"builtin"},node:{pattern:i(/(^|[^-.\w\x80-\uFFFF\\])/.source),lookbehind:!0,greedy:!0,inside:r},operator:/[=:]|-[->]/,punctuation:/[\[\]{};,]/},t.languages.gv=t.languages.dot})(e)}zj.displayName="ebnf";zj.aliases=[];function zj(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:/[-=|*/!]/}}jj.displayName="editorconfig";jj.aliases=[];function jj(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:/^=/}}}}Hj.displayName="eiffel";Hj.aliases=[];function Hj(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:/\\\\|\|\.\.\||\.\.|\/[~\/=]?|[><]=?|[-+*^=~]/}}Vj.displayName="ejs";Vj.aliases=["eta"];function Vj(e){e.register(Ks),e.register(Js),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)}Wj.displayName="elixir";Wj.aliases=[];function Wj(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}}}})}Qj.displayName="elm";Qj.aliases=[];function Qj(e){e.languages.elm={comment:/--.*|\{-[\s\S]*?-\}/,char:{pattern:/'(?:[^\\'\r\n]|\\(?:[abfnrtv\\']|\d+|x[0-9a-fA-F]+|u\{[0-9a-fA-F]+\}))'/,greedy:!0},string:[{pattern:/"""[\s\S]*?"""/,greedy:!0},{pattern:/"(?:[^\\"\r\n]|\\.)*"/,greedy:!0}],"import-statement":{pattern:/(^[\t ]*)import\s+[A-Z]\w*(?:\.[A-Z]\w*)*(?:\s+as\s+(?:[A-Z]\w*)(?:\.[A-Z]\w*)*)?(?:\s+exposing\s+)?/m,lookbehind:!0,inside:{keyword:/\b(?:as|exposing|import)\b/}},keyword:/\b(?:alias|as|case|else|exposing|if|in|infixl|infixr|let|module|of|then|type)\b/,builtin:/\b(?:abs|acos|always|asin|atan|atan2|ceiling|clamp|compare|cos|curry|degrees|e|flip|floor|fromPolar|identity|isInfinite|isNaN|logBase|max|min|negate|never|not|pi|radians|rem|round|sin|sqrt|tan|toFloat|toPolar|toString|truncate|turns|uncurry|xor)\b/,number:/\b(?:\d+(?:\.\d+)?(?:e[+-]?\d+)?|0x[0-9a-f]+)\b/i,operator:/\s\.\s|[+\-/*=.$<>:&|^?%#@~!]{2,}|[+\-/*=$<>:&|^?%#@~!]/,hvariable:/\b(?:[A-Z]\w*\.)*[a-z]\w*\b/,constant:/\b(?:[A-Z]\w*\.)*[A-Z]\w*\b/,punctuation:/[{}[\]|(),.:]/}}qj.displayName="etlua";qj.aliases=[];function qj(e){e.register(XT),e.register(Js),function(t){t.languages.etlua={delimiter:{pattern:/^<%[-=]?|-?%>$/,alias:"punctuation"},"language-lua":{pattern:/[\s\S]+/,inside:t.languages.lua}},t.hooks.add("before-tokenize",function(n){var r=/<%[\s\S]+?%>/g;t.languages["markup-templating"].buildPlaceholders(n,"etlua",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"etlua")})}(e)}Gj.displayName="erb";Gj.aliases=[];function Gj(e){e.register(Js),e.register(j1),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)}Yj.displayName="erlang";Yj.aliases=[];function Yj(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:/[()[\]{}:;,.#|]|<<|>>/}}Zj.displayName="excel-formula";Zj.aliases=["xls","xlsx"];function Zj(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"]}Xj.displayName="fsharp";Xj.aliases=[];function Xj(e){e.register(Dr),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}})}Kj.displayName="factor";Kj.aliases=[];function Kj(e){(function(t){var n={function:/\b(?:BUGS?|FIX(?:MES?)?|NOTES?|TODOS?|XX+|HACKS?|WARN(?:ING)?|\?{2,}|!{2,})\b/},r={number:/\\[^\s']|%\w/},i={comment:[{pattern:/(^|\s)(?:! .*|!$)/,lookbehind:!0,inside:n},{pattern:/(^|\s)\/\*\s[\s\S]*?\*\/(?=\s|$)/,lookbehind:!0,greedy:!0,inside:n},{pattern:/(^|\s)!\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,inside:n}],number:[{pattern:/(^|\s)[+-]?\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b[01]+|o[0-7]+|d\d+|x[\dA-F]+)(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)[+-]?\d+\/\d+\.?(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)\+?\d+\+\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)-\d+-\d+\/\d+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?(?:\d*\.\d+|\d+\.\d*|\d+)(?:e[+-]?\d+)?(?=\s|$)/i,lookbehind:!0},{pattern:/(^|\s)NAN:\s+[\da-fA-F]+(?=\s|$)/,lookbehind:!0},{pattern:/(^|\s)[+-]?0(?:b1\.[01]*|o1\.[0-7]*|d1\.\d*|x1\.[\dA-F]*)p\d+(?=\s|$)/i,lookbehind:!0}],regexp:{pattern:/(^|\s)R\/\s(?:\\\S|[^\\/])*\/(?:[idmsr]*|[idmsr]+-[idmsr]+)(?=\s|$)/,lookbehind:!0,alias:"number",inside:{variable:/\\\S/,keyword:/[+?*\[\]^$(){}.|]/,operator:{pattern:/(\/)[idmsr]+(?:-[idmsr]+)?/,lookbehind:!0}}},boolean:{pattern:/(^|\s)[tf](?=\s|$)/,lookbehind:!0},"custom-string":{pattern:/(^|\s)[A-Z0-9\-]+"\s(?:\\\S|[^"\\])*"/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:/\\\S|%\w|\//}},"multiline-string":[{pattern:/(^|\s)STRING:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*;(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:{number:r.number,"semicolon-or-setlocal":{pattern:/([\r\n][ \t]*);(?=\s|$)/,lookbehind:!0,alias:"function"}}},{pattern:/(^|\s)HEREDOC:\s+\S+(?:\n|\r\n).*(?:\n|\r\n)\s*\S+(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r},{pattern:/(^|\s)\[(={0,6})\[\s[\s\S]*?\]\2\](?=\s|$)/,lookbehind:!0,greedy:!0,alias:"string",inside:r}],"special-using":{pattern:/(^|\s)USING:(?:\s\S+)*(?=\s+;(?:\s|$))/,lookbehind:!0,alias:"function",inside:{string:{pattern:/(\s)[^:\s]+/,lookbehind:!0}}},"stack-effect-delimiter":[{pattern:/(^|\s)(?:call|eval|execute)?\((?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)--(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\)(?=\s|$)/,lookbehind:!0,alias:"operator"}],combinators:{pattern:null,lookbehind:!0,alias:"keyword"},"kernel-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"sequences-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"math-builtin":{pattern:null,lookbehind:!0,alias:"variable"},"constructor-word":{pattern:/(^|\s)<(?!=+>|-+>)\S+>(?=\s|$)/,lookbehind:!0,alias:"keyword"},"other-builtin-syntax":{pattern:null,lookbehind:!0,alias:"operator"},"conventionally-named-word":{pattern:/(^|\s)(?!")(?:(?:change|new|set|with)-\S+|\$\S+|>[^>\s]+|[^:>\s]+>|[^>\s]+>[^>\s]+|\+[^+\s]+\+|[^?\s]+\?|\?[^?\s]+|[^>\s]+>>|>>[^>\s]+|[^<\s]+<<|\([^()\s]+\)|[^!\s]+!|[^*\s]\S*\*|[^.\s]\S*\.)(?=\s|$)/,lookbehind:!0,alias:"keyword"},"colon-syntax":{pattern:/(^|\s)(?:[A-Z0-9\-]+#?)?:{1,2}\s+(?:;\S+|(?!;)\S+)(?=\s|$)/,lookbehind:!0,greedy:!0,alias:"function"},"semicolon-or-setlocal":{pattern:/(\s)(?:;|:>)(?=\s|$)/,lookbehind:!0,alias:"function"},"curly-brace-literal-delimiter":[{pattern:/(^|\s)[a-z]*\{(?=\s)/i,lookbehind:!0,alias:"operator"},{pattern:/(\s)\}(?=\s|$)/,lookbehind:!0,alias:"operator"}],"quotation-delimiter":[{pattern:/(^|\s)\[(?=\s)/,lookbehind:!0,alias:"operator"},{pattern:/(\s)\](?=\s|$)/,lookbehind:!0,alias:"operator"}],"normal-word":{pattern:/(^|\s)[^"\s]\S*(?=\s|$)/,lookbehind:!0},string:{pattern:/"(?:\\\S|[^"\\])*"/,greedy:!0,inside:r}},a=function(u){return(u+"").replace(/([.?*+\^$\[\]\\(){}|\-])/g,"\\$1")},s=function(u){return new RegExp("(^|\\s)(?:"+u.map(a).join("|")+")(?=\\s|$)")},o={"kernel-builtin":["or","2nipd","4drop","tuck","wrapper","nip","wrapper?","callstack>array","die","dupd","callstack","callstack?","3dup","hashcode","pick","4nip","build",">boolean","nipd","clone","5nip","eq?","?","=","swapd","2over","clear","2dup","get-retainstack","not","tuple?","dup","3nipd","call","-rotd","object","drop","assert=","assert?","-rot","execute","boa","get-callstack","curried?","3drop","pickd","overd","over","roll","3nip","swap","and","2nip","rotd","throw","(clone)","hashcode*","spin","reach","4dup","equal?","get-datastack","assert","2drop","","boolean?","identity-hashcode","identity-tuple?","null","composed?","new","5drop","rot","-roll","xor","identity-tuple","boolean"],"other-builtin-syntax":["=======","recursive","flushable",">>","<<<<<<","M\\","B","PRIVATE>","\\","======","final","inline","delimiter","deprecated",">>>>>","<<<<<<<","parse-complex","malformed-complex","read-only",">>>>>>>","call-next-method","<<","foldable","$","$[","${"],"sequences-builtin":["member-eq?","mismatch","append","assert-sequence=","longer","repetition","clone-like","3sequence","assert-sequence?","last-index-from","reversed","index-from","cut*","pad-tail","join-as","remove-eq!","concat-as","but-last","snip","nths","nth","sequence","longest","slice?","","remove-nth","tail-slice","empty?","tail*","member?","virtual-sequence?","set-length","drop-prefix","iota","unclip","bounds-error?","unclip-last-slice","non-negative-integer-expected","non-negative-integer-expected?","midpoint@","longer?","?set-nth","?first","rest-slice","prepend-as","prepend","fourth","sift","subseq-start","new-sequence","?last","like","first4","1sequence","reverse","slice","virtual@","repetition?","set-last","index","4sequence","max-length","set-second","immutable-sequence","first2","first3","supremum","unclip-slice","suffix!","insert-nth","tail","3append","short","suffix","concat","flip","immutable?","reverse!","2sequence","sum","delete-all","indices","snip-slice","","check-slice","sequence?","head","append-as","halves","sequence=","collapse-slice","?second","slice-error?","product","bounds-check?","bounds-check","immutable","virtual-exemplar","harvest","remove","pad-head","last","set-fourth","cartesian-product","remove-eq","shorten","shorter","reversed?","shorter?","shortest","head-slice","pop*","tail-slice*","but-last-slice","iota?","append!","cut-slice","new-resizable","head-slice*","sequence-hashcode","pop","set-nth","?nth","second","join","immutable-sequence?","","3append-as","virtual-sequence","subseq?","remove-nth!","length","last-index","lengthen","assert-sequence","copy","move","third","first","tail?","set-first","prefix","bounds-error","","exchange","surround","cut","min-length","set-third","push-all","head?","subseq-start-from","delete-slice","rest","sum-lengths","head*","infimum","remove!","glue","slice-error","subseq","push","replace-slice","subseq-as","unclip-last"],"math-builtin":["number=","next-power-of-2","?1+","fp-special?","imaginary-part","float>bits","number?","fp-infinity?","bignum?","fp-snan?","denominator","gcd","*","+","fp-bitwise=","-","u>=","/",">=","bitand","power-of-2?","log2-expects-positive","neg?","<","log2",">","integer?","number","bits>double","2/","zero?","bits>float","float?","shift","ratio?","rect>","even?","ratio","fp-sign","bitnot",">fixnum","complex?","/i","integer>fixnum","/f","sgn",">bignum","next-float","u<","u>","mod","recip","rational",">float","2^","integer","fixnum?","neg","fixnum","sq","bignum",">rect","bit?","fp-qnan?","simple-gcd","complex","","real",">fraction","double>bits","bitor","rem","fp-nan-payload","real-part","log2-expects-positive?","prev-float","align","unordered?","float","fp-nan?","abs","bitxor","integer>fixnum-strict","u<=","odd?","<=","/mod",">integer","real?","rational?","numerator"]};Object.keys(o).forEach(function(u){i[u].pattern=s(o[u])});var l=["2bi","while","2tri","bi*","4dip","both?","same?","tri@","curry","prepose","3bi","?if","tri*","2keep","3keep","curried","2keepd","when","2bi*","2tri*","4keep","bi@","keepdd","do","unless*","tri-curry","if*","loop","bi-curry*","when*","2bi@","2tri@","with","2with","either?","bi","until","3dip","3curry","tri-curry*","tri-curry@","bi-curry","keepd","compose","2dip","if","3tri","unless","tuple","keep","2curry","tri","most","while*","dip","composed","bi-curry@","find-last-from","trim-head-slice","map-as","each-from","none?","trim-tail","partition","if-empty","accumulate*","reject!","find-from","accumulate-as","collector-for-as","reject","map","map-sum","accumulate!","2each-from","follow","supremum-by","map!","unless-empty","collector","padding","reduce-index","replicate-as","infimum-by","trim-tail-slice","count","find-index","filter","accumulate*!","reject-as","map-integers","map-find","reduce","selector","interleave","2map","filter-as","binary-reduce","map-index-as","find","produce","filter!","replicate","cartesian-map","cartesian-each","find-index-from","map-find-last","3map-as","3map","find-last","selector-as","2map-as","2map-reduce","accumulate","each","each-index","accumulate*-as","when-empty","all?","collector-as","push-either","new-like","collector-for","2selector","push-if","2all?","map-reduce","3each","any?","trim-slice","2reduce","change-nth","produce-as","2each","trim","trim-head","cartesian-find","map-index","if-zero","each-integer","unless-zero","(find-integer)","when-zero","find-last-integer","(all-integers?)","times","(each-integer)","find-integer","all-integers?","unless-negative","if-positive","when-positive","when-negative","unless-positive","if-negative","case","2cleave","cond>quot","case>quot","3cleave","wrong-values","to-fixed-point","alist>quot","cond","cleave","call-effect","recursive-hashcode","spread","deep-spread>quot","2||","0||","n||","0&&","2&&","3||","1||","1&&","n&&","3&&","smart-unless*","keep-inputs","reduce-outputs","smart-when*","cleave>array","smart-with","smart-apply","smart-if","inputs/outputs","output>sequence-n","map-outputs","map-reduce-outputs","dropping","output>array","smart-map-reduce","smart-2map-reduce","output>array-n","nullary","inputsequence"];i.combinators.pattern=s(l),t.languages.factor=i})(e)}Jj.displayName="false";Jj.aliases=[];function Jj(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:/,/}}})}tH.displayName="flow";tH.aliases=[];function tH(e){e.register(Ks),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)}nH.displayName="fortran";nH.aliases=[];function nH(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:/\(\/|\/\)|[(),;:&]/}}rH.displayName="ftl";rH.aliases=[];function rH(e){e.register(Js),function(t){for(var n=/[^<()"']|\((?:)*\)|<(?!#--)|<#--(?:[^-]|-(?!->))*-->|"(?:[^\\"]|\\.)*"|'(?:[^\\']|\\.)*'/.source,r=0;r<2;r++)n=n.replace(//g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var i={comment:/<#--[\s\S]*?-->/,string:[{pattern:/\br("|')(?:(?!\1)[^\\]|\\.)*\1/,greedy:!0},{pattern:RegExp(/("|')(?:(?!\1|\$\{)[^\\]|\\.|\$\{(?:(?!\})(?:))*\})*\1/.source.replace(//g,function(){return n})),greedy:!0,inside:{interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\\\)*)\$\{(?:(?!\})(?:))*\}/.source.replace(//g,function(){return n})),lookbehind:!0,inside:{"interpolation-punctuation":{pattern:/^\$\{|\}$/,alias:"punctuation"},rest:null}}}}],keyword:/\b(?:as)\b/,boolean:/\b(?:false|true)\b/,"builtin-function":{pattern:/((?:^|[^?])\?\s*)\w+/,lookbehind:!0,alias:"function"},function:/\b\w+(?=\s*\()/,number:/\b\d+(?:\.\d+)?\b/,operator:/\.\.[<*!]?|->|--|\+\+|&&|\|\||\?{1,2}|[-+*/%!=<>]=?|\b(?:gt|gte|lt|lte)\b/,punctuation:/[,;.:()[\]{}]/};i.string[1].inside.interpolation.inside.rest=i,t.languages.ftl={"ftl-comment":{pattern:/^<#--[\s\S]*/,alias:"comment"},"ftl-directive":{pattern:/^<[\s\S]+>$/,inside:{directive:{pattern:/(^<\/?)[#@][a-z]\w*/i,lookbehind:!0,alias:"keyword"},punctuation:/^<\/?|\/?>$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}},"ftl-interpolation":{pattern:/^\$\{[\s\S]*\}$/,inside:{punctuation:/^\$\{|\}$/,content:{pattern:/\s*\S[\s\S]*/,alias:"ftl",inside:i}}}},t.hooks.add("before-tokenize",function(a){var s=RegExp(/<#--[\s\S]*?-->|<\/?[#@][a-zA-Z](?:)*?>|\$\{(?:)*?\}/.source.replace(//g,function(){return n}),"gi");t.languages["markup-templating"].buildPlaceholders(a,"ftl",s)}),t.hooks.add("after-tokenize",function(a){t.languages["markup-templating"].tokenizePlaceholders(a,"ftl")})}(e)}iH.displayName="gml";iH.aliases=["gamemakerlanguage"];function iH(e){e.register(Dr),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/})}aH.displayName="gap";aH.aliases=[];function aH(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}sH.displayName="gcode";sH.aliases=[];function sH(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:/[:*]/}}oH.displayName="gdscript";oH.aliases=[];function oH(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:/[.:,;()[\]{}]/}}lH.displayName="gedcom";lH.aliases=[];function lH(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"}}}uH.displayName="gettext";uH.aliases=["po"];function uH(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}cH.displayName="gherkin";cH.aliases=[];function cH(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)}dH.displayName="git";dH.aliases=[];function dH(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}}fH.displayName="glsl";fH.aliases=[];function fH(e){e.register(Bd),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/})}hH.displayName="gn";hH.aliases=["gni"];function hH(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}pH.displayName="linker-script";pH.aliases=["ld"];function pH(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"]}mH.displayName="go-module";mH.aliases=["go-mod"];function mH(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:/[()[\],]/}}gH.displayName="gradle";gH.aliases=[];function gH(e){e.register(Dr),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)}bH.displayName="graphql";bH.aliases=[];function bH(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(w){return typeof w!="string"&&w.type!=="comment"&&w.type!=="scalar"}),i=0;function a(w){return r[i+w]}function s(w,E){E=E||0;for(var x=0;x0)){var g=o(/^\{$/,/^\}$/);if(g===-1)continue;for(var b=i;b=0&&l(S,"variable-input")}}}}})}yH.displayName="groovy";yH.aliases=[];function yH(e){e.register(Dr),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)}vH.displayName="textile";vH.aliases=[];function vH(e){e.register(Is),function(t){var n=/\([^|()\n]+\)|\[[^\]\n]+\]|\{[^}\n]+\}/.source,r=/\)|\((?![^|()\n]+\))/.source;function i(f,h){return RegExp(f.replace(//g,function(){return"(?:"+n+")"}).replace(//g,function(){return"(?:"+r+")"}),h||"")}var a={css:{pattern:/\{[^{}]+\}/,inside:{rest:t.languages.css}},"class-id":{pattern:/(\()[^()]+(?=\))/,lookbehind:!0,alias:"attr-value"},lang:{pattern:/(\[)[^\[\]]+(?=\])/,lookbehind:!0,alias:"attr-value"},punctuation:/[\\\/]\d+|\S/},s=t.languages.textile=t.languages.extend("markup",{phrase:{pattern:/(^|\r|\n)\S[\s\S]*?(?=$|\r?\n\r?\n|\r\r)/,lookbehind:!0,inside:{"block-tag":{pattern:i(/^[a-z]\w*(?:||[<>=])*\./.source),inside:{modifier:{pattern:i(/(^[a-z]\w*)(?:||[<>=])+(?=\.)/.source),lookbehind:!0,inside:a},tag:/^[a-z]\w*/,punctuation:/\.$/}},list:{pattern:i(/^[*#]+*\s+\S.*/.source,"m"),inside:{modifier:{pattern:i(/(^[*#]+)+/.source),lookbehind:!0,inside:a},punctuation:/^[*#]+/}},table:{pattern:i(/^(?:(?:||[<>=^~])+\.\s*)?(?:\|(?:(?:||[<>=^~_]|[\\/]\d+)+\.|(?!(?:||[<>=^~_]|[\\/]\d+)+\.))[^|]*)+\|/.source,"m"),inside:{modifier:{pattern:i(/(^|\|(?:\r?\n|\r)?)(?:||[<>=^~_]|[\\/]\d+)+(?=\.)/.source),lookbehind:!0,inside:a},punctuation:/\||^\./}},inline:{pattern:i(/(^|[^a-zA-Z\d])(\*\*|__|\?\?|[*_%@+\-^~])*.+?\2(?![a-zA-Z\d])/.source),lookbehind:!0,inside:{bold:{pattern:i(/(^(\*\*?)*).+?(?=\2)/.source),lookbehind:!0},italic:{pattern:i(/(^(__?)*).+?(?=\2)/.source),lookbehind:!0},cite:{pattern:i(/(^\?\?*).+?(?=\?\?)/.source),lookbehind:!0,alias:"string"},code:{pattern:i(/(^@*).+?(?=@)/.source),lookbehind:!0,alias:"keyword"},inserted:{pattern:i(/(^\+*).+?(?=\+)/.source),lookbehind:!0},deleted:{pattern:i(/(^-*).+?(?=-)/.source),lookbehind:!0},span:{pattern:i(/(^%*).+?(?=%)/.source),lookbehind:!0},modifier:{pattern:i(/(^\*\*|__|\?\?|[*_%@+\-^~])+/.source),lookbehind:!0,inside:a},punctuation:/[*_%?@+\-^~]+/}},"link-ref":{pattern:/^\[[^\]]+\]\S+$/m,inside:{string:{pattern:/(^\[)[^\]]+(?=\])/,lookbehind:!0},url:{pattern:/(^\])\S+$/,lookbehind:!0},punctuation:/[\[\]]/}},link:{pattern:i(/"*[^"]+":.+?(?=[^\w/]?(?:\s|$))/.source),inside:{text:{pattern:i(/(^"*)[^"]+(?=")/.source),lookbehind:!0},modifier:{pattern:i(/(^")+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[":]/}},image:{pattern:i(/!(?:||[<>=])*(?![<>=])[^!\s()]+(?:\([^)]+\))?!(?::.+?(?=[^\w/]?(?:\s|$)))?/.source),inside:{source:{pattern:i(/(^!(?:||[<>=])*)(?![<>=])[^!\s()]+(?:\([^)]+\))?(?=!)/.source),lookbehind:!0,alias:"url"},modifier:{pattern:i(/(^!)(?:||[<>=])+/.source),lookbehind:!0,inside:a},url:{pattern:/(:).+/,lookbehind:!0},punctuation:/[!:]/}},footnote:{pattern:/\b\[\d+\]/,alias:"comment",inside:{punctuation:/\[|\]/}},acronym:{pattern:/\b[A-Z\d]+\([^)]+\)/,inside:{comment:{pattern:/(\()[^()]+(?=\))/,lookbehind:!0},punctuation:/[()]/}},mark:{pattern:/\b\((?:C|R|TM)\)/,alias:"comment",inside:{punctuation:/[()]/}}}}}),o=s.phrase.inside,l={inline:o.inline,link:o.link,image:o.image,footnote:o.footnote,acronym:o.acronym,mark:o.mark};s.tag.pattern=/<\/?(?!\d)[a-z0-9]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/i;var u=o.inline.inside;u.bold.inside=l,u.italic.inside=l,u.inserted.inside=l,u.deleted.inside=l,u.span.inside=l;var c=o.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)}OH.displayName="haml";OH.aliases=[];function OH(e){e.register(j1),function(t){t.languages.haml={"multiline-comment":{pattern:/((?:^|\r?\n|\r)([\t ]*))(?:\/|-#).*(?:(?:\r?\n|\r)\2[\t ].+)*/,lookbehind:!0,alias:"comment"},"multiline-code":[{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*,[\t ]*(?:(?:\r?\n|\r)\2[\t ].*,[\t ]*)*(?:(?:\r?\n|\r)\2[\t ].+)/,lookbehind:!0,inside:t.languages.ruby},{pattern:/((?:^|\r?\n|\r)([\t ]*)(?:[~-]|[&!]?=)).*\|[\t ]*(?:(?:\r?\n|\r)\2[\t ].*\|[\t ]*)*/,lookbehind:!0,inside:t.languages.ruby}],filter:{pattern:/((?:^|\r?\n|\r)([\t ]*)):[\w-]+(?:(?:\r?\n|\r)(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"symbol"}}},markup:{pattern:/((?:^|\r?\n|\r)[\t ]*)<.+/,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\r?\n|\r)[\t ]*)!!!(?: .+)?/,lookbehind:!0},tag:{pattern:/((?:^|\r?\n|\r)[\t ]*)[%.#][\w\-#.]*[\w\-](?:\([^)]+\)|\{(?:\{[^}]+\}|[^{}])+\}|\[[^\]]+\])*[\/<>]*/,lookbehind:!0,inside:{attributes:[{pattern:/(^|[^#])\{(?:\{[^}]+\}|[^{}])+\}/,lookbehind:!0,inside:t.languages.ruby},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*)(?:"(?:\\.|[^\\"\r\n])*"|[^)\s]+)/,lookbehind:!0},"attr-name":/[\w:-]+(?=\s*!?=|\s*[,)])/,punctuation:/[=(),]/}},{pattern:/\[[^\]]+\]/,inside:t.languages.ruby}],punctuation:/[<>]/}},code:{pattern:/((?:^|\r?\n|\r)[\t ]*(?:[~-]|[&!]?=)).+/,lookbehind:!0,inside:t.languages.ruby},interpolation:{pattern:/#\{[^}]+\}/,inside:{delimiter:{pattern:/^#\{|\}$/,alias:"punctuation"},ruby:{pattern:/[\s\S]+/,inside:t.languages.ruby}}},punctuation:{pattern:/((?:^|\r?\n|\r)[\t ]*)[~=\-&!]+/,lookbehind:!0}};for(var n="((?:^|\\r?\\n|\\r)([\\t ]*)):{{filter_name}}(?:(?:\\r?\\n|\\r)(?:\\2[\\t ].+|\\s*?(?=\\r?\\n|\\r)))+",r=["css",{filter:"coffee",language:"coffeescript"},"erb","javascript","less","markdown","ruby","scss","textile"],i={},a=0,s=r.length;a@\[\\\]^`{|}~]/,variable:/[^!"#%&'()*+,\/;<=>@\[\\\]^`{|}~\s]+/},t.hooks.add("before-tokenize",function(n){var r=/\{\{\{[\s\S]+?\}\}\}|\{\{[\s\S]+?\}\}/g;t.languages["markup-templating"].buildPlaceholders(n,"handlebars",r)}),t.hooks.add("after-tokenize",function(n){t.languages["markup-templating"].tokenizePlaceholders(n,"handlebars")}),t.languages.hbs=t.languages.handlebars,t.languages.mustache=t.languages.handlebars}(e)}nk.displayName="haskell";nk.aliases=["hs"];function nk(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}EH.displayName="haxe";EH.aliases=[];function EH(e){e.register(Dr),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"}})}wH.displayName="hcl";wH.aliases=[];function wH(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:/[=\[\]{}]/}}xH.displayName="hlsl";xH.aliases=[];function xH(e){e.register(Bd),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/})}TH.displayName="hoon";TH.aliases=[];function TH(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:/\.[\^\+\*=\?]|![><:\.=\?!]|=[>|:,\.\-\^<+;/~\*\?]|\?[>|:\.\-\^<\+&~=@!]|\|[\$_%:\.\-\^~\*=@\?]|\+[|\$\+\*]|:[_\-\^\+~\*]|%[_:\.\-\^\+~\*=]|\^[|:\.\-\+&~\*=\?]|\$[|_%:<>\-\^&~@=\?]|;[:<\+;\/~\*=]|~[>|\$_%<\+\/&=\?!]|--|==/}}kH.displayName="hpkp";kH.aliases=[];function kH(e){e.languages.hpkp={directive:{pattern:/\b(?:includeSubDomains|max-age|pin-sha256|preload|report-to|report-uri|strict)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}CH.displayName="hsts";CH.aliases=[];function CH(e){e.languages.hsts={directive:{pattern:/\b(?:includeSubDomains|max-age|preload)(?=[\s;=]|$)/i,alias:"property"},operator:/=/,punctuation:/;/}}AH.displayName="uri";AH.aliases=["url"];function AH(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}_H.displayName="http";_H.aliases=[];function _H(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},a={"application/json":!0,"application/xml":!0};function s(c){var f=c.replace(/^[a-z]+\//,""),h="\\w+/(?:[\\w.-]+\\+)+"+f+"(?![+\\w.-])";return"(?:"+c+"|"+h+")"}var o;for(var l in i)if(i[l]){o=o||{};var u=a[l]?s(l):l;o[l.replace(/\//g,"-")]={pattern:RegExp("("+/content-type:\s*/.source+u+/(?:(?:\r\n?|\n)[\w-].*)*(?:\r(?:\n|(?!\n))|\n)/.source+")"+/[^ \t\w-][\s\S]*/.source,"i"),lookbehind:!0,inside:i[l]}}o&&t.languages.insertBefore("http","header",o)})(e)}RH.displayName="ichigojam";RH.aliases=[];function RH(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:/[\[,;:()\]]/}}IH.displayName="icon";IH.aliases=[];function IH(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:/[\[\](){},;]/}}DH.displayName="icu-message-format";DH.aliases=[];function DH(e){(function(t){function n(l,u){return u<=0?/[]/.source:l.replace(//g,function(){return n(l,u-1)})}var r=/'[{}:=,](?:[^']|'')*'(?!')/,i={pattern:/''/,greedy:!0,alias:"operator"},a={pattern:r,greedy:!0,inside:{escape:i}},s=n(/\{(?:[^{}']|'(?![{},'])|''||)*\}/.source.replace(//g,function(){return r.source}),8),o={pattern:RegExp(s),inside:{message:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:null},"message-delimiter":{pattern:/./,alias:"punctuation"}}};t.languages["icu-message-format"]={argument:{pattern:RegExp(s),greedy:!0,inside:{content:{pattern:/^(\{)[\s\S]+(?=\}$)/,lookbehind:!0,inside:{"argument-name":{pattern:/^(\s*)[^{}:=,\s]+/,lookbehind:!0},"choice-style":{pattern:/^(\s*,\s*choice\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{punctuation:/\|/,range:{pattern:/^(\s*)[+-]?(?:\d+(?:\.\d*)?|\u221e)\s*[<#\u2264]/,lookbehind:!0,inside:{operator:/[<#\u2264]/,number:/\S+/}},rest:null}},"plural-style":{pattern:/^(\s*,\s*(?:plural|selectordinal)\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{offset:/^offset:\s*\d+/,"nested-message":o,selector:{pattern:/=\d+|[^{}:=,\s]+/,inside:{keyword:/^(?:few|many|one|other|two|zero)$/}}}},"select-style":{pattern:/^(\s*,\s*select\s*,\s*)\S(?:[\s\S]*\S)?/,lookbehind:!0,inside:{"nested-message":o,selector:{pattern:/[^{}:=,\s]+/,inside:{keyword:/^other$/}}}},keyword:/\b(?:choice|plural|select|selectordinal)\b/,"arg-type":{pattern:/\b(?:date|duration|number|ordinal|spellout|time)\b/,alias:"keyword"},"arg-skeleton":{pattern:/(,\s*)::[^{}:=,\s]+/,lookbehind:!0},"arg-style":{pattern:/(,\s*)(?:currency|full|integer|long|medium|percent|short)(?=\s*$)/,lookbehind:!0},"arg-style-text":{pattern:RegExp(/(^\s*,\s*(?=\S))/.source+n(/(?:[^{}']|'[^']*'|\{(?:)?\})+/.source,8)+"$"),lookbehind:!0,alias:"string"},punctuation:/,/}},"argument-delimiter":{pattern:/./,alias:"operator"}}},escape:i,string:a},o.inside.message.inside=t.languages["icu-message-format"],t.languages["icu-message-format"].argument.inside.content.inside["choice-style"].inside.rest=t.languages["icu-message-format"]})(e)}NH.displayName="idris";NH.aliases=["idr"];function NH(e){e.register(nk),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}PH.displayName="ignore";PH.aliases=["gitignore","hgignore","npmignore"];function PH(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)}MH.displayName="inform7";MH.aliases=[];function MH(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"}}LH.displayName="io";LH.aliases=[];function LH(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:/[()]/}}iS.displayName="javadoclike";iS.aliases=[];function iS(e){(function(t){var n=t.languages.javadoclike={parameter:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*@(?:arg|arguments|param)\s+)\w+/m,lookbehind:!0},keyword:{pattern:/(^[\t ]*(?:\/{3}|\*|\/\*\*)\s*|\{)@[a-z][a-zA-Z-]+\b/m,lookbehind:!0},punctuation:/[{}]/};function r(a,s){var o="doc-comment",l=t.languages[a];if(l){var u=l[o];if(!u){var c={};c[o]={pattern:/(^|[^\\])\/\*\*[^/][\s\S]*?(?:\*\/|$)/,lookbehind:!0,alias:"comment"},l=t.languages.insertBefore(a,"comment",c),u=l[o]}if(u instanceof RegExp&&(u=l[o]={pattern:u}),Array.isArray(u))for(var f=0,h=u.length;f|\b(?:abstract|case|catch|class|def|derives|do|else|enum|extends|extension|final|finally|for|forSome|given|if|implicit|import|infix|inline|lazy|match|new|null|object|opaque|open|override|package|private|protected|return|sealed|self|super|this|throw|trait|transparent|try|type|using|val|var|while|with|yield)\b/,number:/\b0x(?:[\da-f]*\.)?[\da-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e\d+)?[dfl]?/i,builtin:/\b(?:Any|AnyRef|AnyVal|Boolean|Byte|Char|Double|Float|Int|Long|Nothing|Short|String|Unit)\b/,symbol:/'[^\d\s\\]\w*/}),e.languages.insertBefore("scala","triple-quoted-string",{"string-interpolation":{pattern:/\b[a-z]\w*(?:"""(?:[^$]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*?"""|"(?:[^$"\r\n]|\$(?:[^{]|\{(?:[^{}]|\{[^{}]*\})*\}))*")/i,greedy:!0,inside:{id:{pattern:/^\w+/,greedy:!0,alias:"function"},escape:{pattern:/\\\$"|\$[$"]/,greedy:!0,alias:"symbol"},interpolation:{pattern:/\$(?:\w+|\{(?:[^{}]|\{[^{}]*\})*\})/,greedy:!0,inside:{punctuation:/^\$\{?|\}$/,expression:{pattern:/[\s\S]+/,inside:e.languages.scala}}},string:/[\s\S]+/}}}),delete e.languages.scala["class-name"],delete e.languages.scala.function,delete e.languages.scala.constant}BH.displayName="javadoc";BH.aliases=[];function BH(e){e.register(U1),e.register(iS),e.register(Is),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)}UH.displayName="javastacktrace";UH.aliases=[];function UH(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/}}}}zH.displayName="jexl";zH.aliases=[];function zH(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:/[{}[\](),.]/}}jH.displayName="jolie";jH.aliases=[];function jH(e){e.register(Dr),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]*:)/}})}HH.displayName="jq";HH.aliases=[];function HH(e){(function(t){var n=/\\\((?:[^()]|\([^()]*\))*\)/.source,r=RegExp(/(^|[^\\])"(?:[^"\r\n\\]|\\[^\r\n(]|__)*"/.source.replace(/__/g,function(){return n})),i={interpolation:{pattern:RegExp(/((?:^|[^\\])(?:\\{2})*)/.source+n),lookbehind:!0,inside:{content:{pattern:/^(\\\()[\s\S]+(?=\)$)/,lookbehind:!0,inside:null},punctuation:/^\\\(|\)$/}}},a=t.languages.jq={comment:/#.*/,property:{pattern:RegExp(r.source+/(?=\s*:(?!:))/.source),lookbehind:!0,greedy:!0,inside:i},string:{pattern:r,lookbehind:!0,greedy:!0,inside:i},function:{pattern:/(\bdef\s+)[a-z_]\w+/i,lookbehind:!0},variable:/\B\$\w+/,"property-literal":{pattern:/\b[a-z_]\w*(?=\s*:(?!:))/i,alias:"property"},keyword:/\b(?:as|break|catch|def|elif|else|end|foreach|if|import|include|label|module|modulemeta|null|reduce|then|try|while)\b/,boolean:/\b(?:false|true)\b/,number:/(?:\b\d+\.|\B\.)?\b\d+(?:[eE][+-]?\d+)?\b/,operator:[{pattern:/\|=?/,alias:"pipe"},/\.\.|[!=<>]?=|\?\/\/|\/\/=?|[-+*/%]=?|[<>?]|\b(?:and|not|or)\b/],"c-style-function":{pattern:/\b[a-z_]\w*(?=\s*\()/i,alias:"function"},punctuation:/::|[()\[\]{},:;]|\.(?=\s*[\[\w$])/,dot:{pattern:/\./,alias:"important"}};i.interpolation.inside.content.inside=a})(e)}VH.displayName="js-templates";VH.aliases=[];function VH(e){e.register(Ks),function(t){var n=t.languages.javascript["template-string"],r=n.pattern.source,i=n.inside.interpolation,a=i.inside["interpolation-punctuation"],s=i.pattern.source;function o(b,S){if(t.languages[b])return{pattern:RegExp("((?:"+S+")\\s*)"+r),lookbehind:!0,greedy:!0,inside:{"template-punctuation":{pattern:/^`|`$/,alias:"string"},"embedded-code":{pattern:/[\s\S]+/,alias:b}}}}t.languages.javascript["template-string"]=[o("css",/\b(?:styled(?:\([^)]*\))?(?:\s*\.\s*\w+(?:\([^)]*\))*)*|css(?:\s*\.\s*(?:global|resolve))?|createGlobalStyle|keyframes)/.source),o("html",/\bhtml|\.\s*(?:inner|outer)HTML\s*\+?=/.source),o("svg",/\bsvg/.source),o("markdown",/\b(?:markdown|md)/.source),o("graphql",/\b(?:gql|graphql(?:\s*\.\s*experimental)?)/.source),o("sql",/\bsql/.source),n].filter(Boolean);function l(b,S){return"___"+S.toUpperCase()+"_"+b+"___"}function u(b,S,w){var E={code:b,grammar:S,language:w};return t.hooks.run("before-tokenize",E),E.tokens=t.tokenize(E.code,E.grammar),t.hooks.run("after-tokenize",E),E.tokens}function c(b){var S={};S["interpolation-punctuation"]=a;var w=t.tokenize(b,S);if(w.length===3){var E=[1,1];E.push.apply(E,u(w[1],t.languages.javascript,"javascript")),w.splice.apply(w,E)}return new t.Token("interpolation",w,i.alias,b)}function f(b,S,w){var E=t.tokenize(b,{interpolation:{pattern:RegExp(s),lookbehind:!0}}),x=0,k={},C=E.map(function(B){if(typeof B=="string")return B;for(var L=B.content,F;b.indexOf(F=l(x++,w))!==-1;);return k[F]=L,F}).join(""),I=u(C,S,w),A=Object.keys(k);x=0;function D(B){for(var L=0;L=A.length)return;var F=B[L];if(typeof F=="string"||typeof F.content=="string"){var W=A[x],V=typeof F=="string"?F:F.content,Z=V.indexOf(W);if(Z!==-1){++x;var Q=V.substring(0,Z),H=c(k[W]),J=V.substring(Z+W.length),K=[];if(Q&&K.push(Q),K.push(H),J){var X=[J];D(X),K.push.apply(K,X)}typeof F=="string"?(B.splice.apply(B,[L,1].concat(K)),L+=K.length-1):F.content=K}}else{var te=F.content;Array.isArray(te)?D(te):D([te])}}}return D(I),new t.Token(w,I,"language-"+w,b)}var h={javascript:!0,js:!0,typescript:!0,ts:!0,jsx:!0,tsx:!0};t.hooks.add("after-tokenize",function(b){if(!(b.language in h))return;function S(w){for(var E=0,x=w.length;E\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)}QH.displayName="n4js";QH.aliases=["n4jsd"];function QH(e){e.register(Ks),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}qH.displayName="js-extras";qH.aliases=[];function qH(e){e.register(Ks),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:/:/}}}}}}XH.displayName="julia";XH.aliases=[];function XH(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|[πℯ]/}}KH.displayName="keepalived";KH.aliases=[];function KH(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:/[\{\}]/}}JH.displayName="keyman";JH.aliases=[];function JH(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:/[()=,]/}}eV.displayName="kumir";eV.aliases=["kum"];function eV(e){(function(t){var n=/\s\x00-\x1f\x22-\x2f\x3a-\x3f\x5b-\x5e\x60\x7b-\x7e/.source;function r(i,a){return RegExp(i.replace(//g,n),a)}t.languages.kumir={comment:{pattern:/\|.*/},prolog:{pattern:/#.*/,greedy:!0},string:{pattern:/"[^\n\r"]*"|'[^\n\r']*'/,greedy:!0},boolean:{pattern:r(/(^|[])(?:да|нет)(?=[]|$)/.source),lookbehind:!0},"operator-word":{pattern:r(/(^|[])(?:и|или|не)(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},"system-variable":{pattern:r(/(^|[])знач(?=[]|$)/.source),lookbehind:!0,alias:"keyword"},type:[{pattern:r(/(^|[])(?:вещ|лит|лог|сим|цел)(?:\x20*таб)?(?=[]|$)/.source),lookbehind:!0,alias:"builtin"},{pattern:r(/(^|[])(?:компл|сканкод|файл|цвет)(?=[]|$)/.source),lookbehind:!0,alias:"important"}],keyword:{pattern:r(/(^|[])(?:алг|арг(?:\x20*рез)?|ввод|ВКЛЮЧИТЬ|вс[её]|выбор|вывод|выход|дано|для|до|дс|если|иначе|исп|использовать|кон(?:(?:\x20+|_)исп)?|кц(?:(?:\x20+|_)при)?|надо|нач|нс|нц|от|пауза|пока|при|раза?|рез|стоп|таб|то|утв|шаг)(?=[]|$)/.source),lookbehind:!0},name:{pattern:r(/(^|[])[^\d][^]*(?:\x20+[^]+)*(?=[]|$)/.source),lookbehind:!0},number:{pattern:r(/(^|[])(?:\B\$[\da-f]+\b|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:e[+-]?\d+)?)(?=[]|$)/.source,"i"),lookbehind:!0},punctuation:/:=|[(),:;\[\]]/,"operator-char":{pattern:/\*\*?|<[=>]?|>=?|[-+/=]/,alias:"operator"}},t.languages.kum=t.languages.kumir})(e)}tV.displayName="kusto";tV.aliases=[];function tV(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:/[()\[\]{},;.:]/}}nV.displayName="latex";nV.aliases=["context","tex"];function nV(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)}rV.displayName="latte";rV.aliases=[];function rV(e){e.register(Dr),e.register(Js),e.register(z1),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)}rk.displayName="scheme";rk.aliases=[];function rk(e){(function(t){t.languages.scheme={comment:/;.*|#;\s*(?:\((?:[^()]|\([^()]*\))*\)|\[(?:[^\[\]]|\[[^\[\]]*\])*\])|#\|(?:[^#|]|#(?!\|)|\|(?!#)|#\|(?:[^#|]|#(?!\|)|\|(?!#))*\|#)*\|#/,string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},symbol:{pattern:/'[^()\[\]#'\s]+/,greedy:!0},char:{pattern:/#\\(?:[ux][a-fA-F\d]+\b|[-a-zA-Z]+\b|[\uD800-\uDBFF][\uDC00-\uDFFF]|\S)/,greedy:!0},"lambda-parameter":[{pattern:/((?:^|[^'`#])[(\[]lambda\s+)(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)/,lookbehind:!0},{pattern:/((?:^|[^'`#])[(\[]lambda\s+[(\[])[^()\[\]']+/,lookbehind:!0}],keyword:{pattern:/((?:^|[^'`#])[(\[])(?:begin|case(?:-lambda)?|cond(?:-expand)?|define(?:-library|-macro|-record-type|-syntax|-values)?|defmacro|delay(?:-force)?|do|else|except|export|guard|if|import|include(?:-ci|-library-declarations)?|lambda|let(?:rec)?(?:-syntax|-values|\*)?|let\*-values|only|parameterize|prefix|(?:quasi-?)?quote|rename|set!|syntax-(?:case|rules)|unless|unquote(?:-splicing)?|when)(?=[()\[\]\s]|$)/,lookbehind:!0},builtin:{pattern:/((?:^|[^'`#])[(\[])(?:abs|and|append|apply|assoc|ass[qv]|binary-port\?|boolean=?\?|bytevector(?:-append|-copy|-copy!|-length|-u8-ref|-u8-set!|\?)?|caar|cadr|call-with-(?:current-continuation|port|values)|call\/cc|car|cdar|cddr|cdr|ceiling|char(?:->integer|-ready\?|\?|<\?|<=\?|=\?|>\?|>=\?)|close-(?:input-port|output-port|port)|complex\?|cons|current-(?:error|input|output)-port|denominator|dynamic-wind|eof-object\??|eq\?|equal\?|eqv\?|error|error-object(?:-irritants|-message|\?)|eval|even\?|exact(?:-integer-sqrt|-integer\?|\?)?|expt|features|file-error\?|floor(?:-quotient|-remainder|\/)?|flush-output-port|for-each|gcd|get-output-(?:bytevector|string)|inexact\??|input-port(?:-open\?|\?)|integer(?:->char|\?)|lcm|length|list(?:->string|->vector|-copy|-ref|-set!|-tail|\?)?|make-(?:bytevector|list|parameter|string|vector)|map|max|member|memq|memv|min|modulo|negative\?|newline|not|null\?|number(?:->string|\?)|numerator|odd\?|open-(?:input|output)-(?:bytevector|string)|or|output-port(?:-open\?|\?)|pair\?|peek-char|peek-u8|port\?|positive\?|procedure\?|quotient|raise|raise-continuable|rational\?|rationalize|read-(?:bytevector|bytevector!|char|error\?|line|string|u8)|real\?|remainder|reverse|round|set-c[ad]r!|square|string(?:->list|->number|->symbol|->utf8|->vector|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?|<\?|<=\?|=\?|>\?|>=\?)?|substring|symbol(?:->string|\?|=\?)|syntax-error|textual-port\?|truncate(?:-quotient|-remainder|\/)?|u8-ready\?|utf8->string|values|vector(?:->list|->string|-append|-copy|-copy!|-fill!|-for-each|-length|-map|-ref|-set!|\?)?|with-exception-handler|write-(?:bytevector|char|string|u8)|zero\?)(?=[()\[\]\s]|$)/,lookbehind:!0},operator:{pattern:/((?:^|[^'`#])[(\[])(?:[-+*%/]|[<>]=?|=>?)(?=[()\[\]\s]|$)/,lookbehind:!0},number:{pattern:RegExp(n({"":/\d+(?:\/\d+)|(?:\d+(?:\.\d*)?|\.\d+)(?:[esfdl][+-]?\d+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/(?:#d(?:#[ei])?|#[ei](?:#d)?)?/.source,"":/[0-9a-f]+(?:\/[0-9a-f]+)?/.source,"":/[+-]?|[+-](?:inf|nan)\.0/.source,"":/[+-](?:|(?:inf|nan)\.0)?i/.source,"":/(?:@|)?|/.source,"":/#[box](?:#[ei])?|(?:#[ei])?#[box]/.source,"":/(^|[()\[\]\s])(?:|)(?=[()\[\]\s]|$)/.source}),"i"),lookbehind:!0},boolean:{pattern:/(^|[()\[\]\s])#(?:[ft]|false|true)(?=[()\[\]\s]|$)/,lookbehind:!0},function:{pattern:/((?:^|[^'`#])[(\[])(?:[^|()\[\]'\s]+|\|(?:[^\\|]|\\.)*\|)(?=[()\[\]\s]|$)/,lookbehind:!0},identifier:{pattern:/(^|[()\[\]\s])\|(?:[^\\|]|\\.)*\|(?=[()\[\]\s]|$)/,lookbehind:!0,greedy:!0},punctuation:/[()\[\]']/};function n(r){for(var i in r)r[i]=r[i].replace(/<[\w\s]+>/g,function(a){return"(?:"+r[a].trim()+")"});return r[i]}})(e)}iV.displayName="lilypond";iV.aliases=["ly"];function iV(e){e.register(rk),function(t){for(var n=/\((?:[^();"#\\]|\\[\s\S]|;.*(?!.)|"(?:[^"\\]|\\.)*"|#(?:\{(?:(?!#\})[\s\S])*#\}|[^{])|)*\)/.source,r=5,i=0;i/g,function(){return n});n=n.replace(//g,/[^\s\S]/.source);var a=t.languages.lilypond={comment:/%(?:(?!\{).*|\{[\s\S]*?%\})/,"embedded-scheme":{pattern:RegExp(/(^|[=\s])#(?:"(?:[^"\\]|\\.)*"|[^\s()"]*(?:[^\s()]|))/.source.replace(//g,function(){return n}),"m"),lookbehind:!0,greedy:!0,inside:{scheme:{pattern:/^(#)[\s\S]+$/,lookbehind:!0,alias:"language-scheme",inside:{"embedded-lilypond":{pattern:/#\{[\s\S]*?#\}/,greedy:!0,inside:{punctuation:/^#\{|#\}$/,lilypond:{pattern:/[\s\S]+/,alias:"language-lilypond",inside:null}}},rest:t.languages.scheme}},punctuation:/#/}},string:{pattern:/"(?:[^"\\]|\\.)*"/,greedy:!0},"class-name":{pattern:/(\\new\s+)[\w-]+/,lookbehind:!0},keyword:{pattern:/\\[a-z][-\w]*/i,inside:{punctuation:/^\\/}},operator:/[=|]|<<|>>/,punctuation:{pattern:/(^|[a-z\d])(?:'+|,+|[_^]?-[_^]?(?:[-+^!>._]|(?=\d))|[_^]\.?|[.!])|[{}()[\]<>^~]|\\[()[\]<>\\!]|--|__/,lookbehind:!0},number:/\b\d+(?:\/\d+)?\b/};a["embedded-scheme"].inside.scheme.inside["embedded-lilypond"].inside.lilypond.inside=a,t.languages.ly=a}(e)}aV.displayName="liquid";aV.aliases=[];function aV(e){e.register(Js),e.languages.liquid={comment:{pattern:/(^\{%\s*comment\s*%\})[\s\S]+(?=\{%\s*endcomment\s*%\}$)/,lookbehind:!0},delimiter:{pattern:/^\{(?:\{\{|[%\{])-?|-?(?:\}\}|[%\}])\}$/,alias:"punctuation"},string:{pattern:/"[^"]*"|'[^']*'/,greedy:!0},keyword:/\b(?:as|assign|break|(?:end)?(?:capture|case|comment|for|form|if|paginate|raw|style|tablerow|unless)|continue|cycle|decrement|echo|else|elsif|in|include|increment|limit|liquid|offset|range|render|reversed|section|when|with)\b/,object:/\b(?:address|all_country_option_tags|article|block|blog|cart|checkout|collection|color|country|country_option_tags|currency|current_page|current_tags|customer|customer_address|date|discount_allocation|discount_application|external_video|filter|filter_value|font|forloop|fulfillment|generic_file|gift_card|group|handle|image|line_item|link|linklist|localization|location|measurement|media|metafield|model|model_source|order|page|page_description|page_image|page_title|part|policy|product|product_option|recommendations|request|robots|routes|rule|script|search|selling_plan|selling_plan_allocation|selling_plan_group|shipping_method|shop|shop_locale|sitemap|store_availability|tax_line|template|theme|transaction|unit_price_measurement|user_agent|variant|video|video_source)\b/,function:[{pattern:/(\|\s*)\w+/,lookbehind:!0,alias:"filter"},{pattern:/(\.\s*)(?:first|last|size)/,lookbehind:!0}],boolean:/\b(?:false|nil|true)\b/,range:{pattern:/\.\./,alias:"operator"},number:/\b\d+(?:\.\d+)?\b/,operator:/[!=]=|<>|[<>]=?|[|?:=-]|\b(?:and|contains(?=\s)|or)\b/,punctuation:/[.,\[\]()]/,empty:{pattern:/\bempty\b/,alias:"keyword"}},e.hooks.add("before-tokenize",function(t){var n=/\{%\s*comment\s*%\}[\s\S]*?\{%\s*endcomment\s*%\}|\{(?:%[\s\S]*?%|\{\{[\s\S]*?\}\}|\{[\s\S]*?\})\}/g,r=!1;e.languages["markup-templating"].buildPlaceholders(t,"liquid",n,function(i){var a=/^\{%-?\s*(\w+)/.exec(i);if(a){var s=a[1];if(s==="raw"&&!r)return r=!0,!0;if(s==="endraw")return r=!1,!0}return!r})}),e.hooks.add("after-tokenize",function(t){e.languages["markup-templating"].tokenizePlaceholders(t,"liquid")})}sV.displayName="lisp";sV.aliases=["elisp","emacs","emacs-lisp"];function sV(e){(function(t){function n(b){return RegExp(/(\()/.source+"(?:"+b+")"+/(?=[\s\)])/.source)}function r(b){return RegExp(/([\s([])/.source+"(?:"+b+")"+/(?=[\s)])/.source)}var i=/(?!\d)[-+*/~!@$%^=<>{}\w]+/.source,a="&"+i,s="(\\()",o="(?=\\))",l="(?=\\s)",u=/(?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\))*\))*\))*/.source,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(s+"(?:and|(?:cl-)?letf|cl-loop|cond|cons|error|if|(?:lexical-)?let\\*?|message|not|null|or|provide|require|setq|unless|use-package|when|while)"+l),lookbehind:!0},{pattern:RegExp(s+"(?:append|by|collect|concat|do|finally|for|in|return)"+l),lookbehind:!0}],declare:{pattern:n(/declare/.source),lookbehind:!0,alias:"keyword"},interactive:{pattern:n(/interactive/.source),lookbehind:!0,alias:"keyword"},boolean:{pattern:r(/nil|t/.source),lookbehind:!0},number:{pattern:r(/[-+]?\d+(?:\.\d*)?/.source),lookbehind:!0},defvar:{pattern:RegExp(s+"def(?:const|custom|group|var)\\s+"+i),lookbehind:!0,inside:{keyword:/^def[a-z]+/,variable:RegExp(i)}},defun:{pattern:RegExp(s+/(?:cl-)?(?:defmacro|defun\*?)\s+/.source+i+/\s+\(/.source+u+/\)/.source),lookbehind:!0,greedy:!0,inside:{keyword:/^(?:cl-)?def\S+/,arguments:null,function:{pattern:RegExp("(^\\s)"+i),lookbehind:!0},punctuation:/[()]/}},lambda:{pattern:RegExp(s+"lambda\\s+\\(\\s*(?:&?"+i+"(?:\\s+&?"+i+")*\\s*)?\\)"),lookbehind:!0,greedy:!0,inside:{keyword:/^lambda/,arguments:null,punctuation:/[()]/}},car:{pattern:RegExp(s+i),lookbehind:!0},punctuation:[/(?:['`,]?\(|[)\[\]])/,{pattern:/(\s)\.(?=\s)/,lookbehind:!0}]},f={"lisp-marker":RegExp(a),varform:{pattern:RegExp(/\(/.source+i+/\s+(?=\S)/.source+u+/\)/.source),inside:c},argument:{pattern:RegExp(/(^|[\s(])/.source+i),lookbehind:!0,alias:"variable"},rest:c},h="\\S+(?:\\s+\\S+)*",g={pattern:RegExp(s+u+o),lookbehind:!0,inside:{"rest-vars":{pattern:RegExp("&(?:body|rest)\\s+"+h),inside:f},"other-marker-vars":{pattern:RegExp("&(?:aux|optional)\\s+"+h),inside:f},keys:{pattern:RegExp("&key\\s+"+h+"(?:\\s+&allow-other-keys)?"),inside:f},argument:{pattern:RegExp(i),alias:"variable"},punctuation:/[()]/}};c.lambda.inside.arguments=g,c.defun.inside.arguments=t.util.clone(g),c.defun.inside.arguments.inside.sublist=g,t.languages.lisp=c,t.languages.elisp=c,t.languages.emacs=c,t.languages["emacs-lisp"]=c})(e)}oV.displayName="livescript";oV.aliases=[];function oV(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}lV.displayName="llvm";lV.aliases=[];function lV(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)}uV.displayName="log";uV.aliases=[];function uV(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:/[\[\].,]/}}cV.displayName="lolcode";cV.aliases=[];function cV(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}|…|,|!/}}dV.displayName="magma";dV.aliases=[];function dV(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:/[()[\]{}<>,;.:]/}}o6.displayName="mata";o6.aliases=[];function o6(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)}fV.displayName="matlab";fV.aliases=[];function fV(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}|[.,;\[\](){}!]/}}hV.displayName="maxscript";hV.aliases=[];function hV(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)}pV.displayName="mel";pV.aliases=[];function pV(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}mV.displayName="mermaid";mV.aliases=[];function mV(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:/[(){};]/}}gV.displayName="metafont";gV.aliases=[];function gV(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}}}bV.displayName="mizar";bV.aliases=[];function bV(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:/\(#|#\)|[,:;\[\](){}]/}}yV.displayName="mongodb";yV.aliases=[];function yV(e){e.register(Ks),function(t){var n=["$eq","$gt","$gte","$in","$lt","$lte","$ne","$nin","$and","$not","$nor","$or","$exists","$type","$expr","$jsonSchema","$mod","$regex","$text","$where","$geoIntersects","$geoWithin","$near","$nearSphere","$all","$elemMatch","$size","$bitsAllClear","$bitsAllSet","$bitsAnyClear","$bitsAnySet","$comment","$elemMatch","$meta","$slice","$currentDate","$inc","$min","$max","$mul","$rename","$set","$setOnInsert","$unset","$addToSet","$pop","$pull","$push","$pullAll","$each","$position","$slice","$sort","$bit","$addFields","$bucket","$bucketAuto","$collStats","$count","$currentOp","$facet","$geoNear","$graphLookup","$group","$indexStats","$limit","$listLocalSessions","$listSessions","$lookup","$match","$merge","$out","$planCacheStats","$project","$redact","$replaceRoot","$replaceWith","$sample","$set","$skip","$sort","$sortByCount","$unionWith","$unset","$unwind","$setWindowFields","$abs","$accumulator","$acos","$acosh","$add","$addToSet","$allElementsTrue","$and","$anyElementTrue","$arrayElemAt","$arrayToObject","$asin","$asinh","$atan","$atan2","$atanh","$avg","$binarySize","$bsonSize","$ceil","$cmp","$concat","$concatArrays","$cond","$convert","$cos","$dateFromParts","$dateToParts","$dateFromString","$dateToString","$dayOfMonth","$dayOfWeek","$dayOfYear","$degreesToRadians","$divide","$eq","$exp","$filter","$first","$floor","$function","$gt","$gte","$hour","$ifNull","$in","$indexOfArray","$indexOfBytes","$indexOfCP","$isArray","$isNumber","$isoDayOfWeek","$isoWeek","$isoWeekYear","$last","$last","$let","$literal","$ln","$log","$log10","$lt","$lte","$ltrim","$map","$max","$mergeObjects","$meta","$min","$millisecond","$minute","$mod","$month","$multiply","$ne","$not","$objectToArray","$or","$pow","$push","$radiansToDegrees","$range","$reduce","$regexFind","$regexFindAll","$regexMatch","$replaceOne","$replaceAll","$reverseArray","$round","$rtrim","$second","$setDifference","$setEquals","$setIntersection","$setIsSubset","$setUnion","$size","$sin","$slice","$split","$sqrt","$stdDevPop","$stdDevSamp","$strcasecmp","$strLenBytes","$strLenCP","$substr","$substrBytes","$substrCP","$subtract","$sum","$switch","$tan","$toBool","$toDate","$toDecimal","$toDouble","$toInt","$toLong","$toObjectId","$toString","$toLower","$toUpper","$trim","$trunc","$type","$week","$year","$zip","$count","$dateAdd","$dateDiff","$dateSubtract","$dateTrunc","$getField","$rand","$sampleRate","$setField","$unsetField","$comment","$explain","$hint","$max","$maxTimeMS","$min","$orderby","$query","$returnKey","$showDiskLoc","$natural"],r=["ObjectId","Code","BinData","DBRef","Timestamp","NumberLong","NumberDecimal","MaxKey","MinKey","RegExp","ISODate","UUID"];n=n.map(function(a){return a.replace("$","\\$")});var i="(?:"+n.join("|")+")\\b";t.languages.mongodb=t.languages.extend("javascript",{}),t.languages.insertBefore("mongodb","string",{property:{pattern:/(?:(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1|(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*)(?=\s*:)/,greedy:!0,inside:{keyword:RegExp(`^(['"])?`+i+"(?:\\1)?$")}}}),t.languages.mongodb.string.inside={url:{pattern:/https?:\/\/[-\w@:%.+~#=]{1,256}\.[a-z0-9()]{1,6}\b[-\w()@:%+.~#?&/=]*/i,greedy:!0},entity:{pattern:/\b(?:(?:[01]?\d\d?|2[0-4]\d|25[0-5])\.){3}(?:[01]?\d\d?|2[0-4]\d|25[0-5])\b/,greedy:!0}},t.languages.insertBefore("mongodb","constant",{builtin:{pattern:RegExp("\\b(?:"+r.join("|")+")\\b"),alias:"keyword"}})}(e)}vV.displayName="monkey";vV.aliases=[];function vV(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:/[.,:;()\[\]]/}}OV.displayName="moonscript";OV.aliases=["moon"];function OV(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}SV.displayName="n1ql";SV.aliases=[];function SV(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:/[;[\](),.{}:]/}}EV.displayName="nand2tetris-hdl";EV.aliases=[];function EV(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:/[{}[\];(),:]/}}wV.displayName="naniscript";wV.aliases=["nani"];function wV(e){(function(t){var n=/\{[^\r\n\[\]{}]*\}/,r={"quoted-string":{pattern:/"(?:[^"\\]|\\.)*"/,alias:"operator"},"command-param-id":{pattern:/(\s)\w+:/,lookbehind:!0,alias:"property"},"command-param-value":[{pattern:n,alias:"selector"},{pattern:/([\t ])\S+/,lookbehind:!0,greedy:!0,alias:"operator"},{pattern:/\S(?:.*\S)?/,alias:"operator"}]};t.languages.naniscript={comment:{pattern:/^([\t ]*);.*/m,lookbehind:!0},define:{pattern:/^>.+/m,alias:"tag",inside:{value:{pattern:/(^>\w+[\t ]+)(?!\s)[^{}\r\n]+/,lookbehind:!0,alias:"operator"},key:{pattern:/(^>)\w+/,lookbehind:!0}}},label:{pattern:/^([\t ]*)#[\t ]*\w+[\t ]*$/m,lookbehind:!0,alias:"regex"},command:{pattern:/^([\t ]*)@\w+(?=[\t ]|$).*/m,lookbehind:!0,alias:"function",inside:{"command-name":/^@\w+/,expression:{pattern:n,greedy:!0,alias:"selector"},"command-params":{pattern:/\s*\S[\s\S]*/,inside:r}}},"generic-text":{pattern:/(^[ \t]*)[^#@>;\s].*/m,lookbehind:!0,alias:"punctuation",inside:{"escaped-char":/\\[{}\[\]"]/,expression:{pattern:n,greedy:!0,alias:"selector"},"inline-command":{pattern:/\[[\t ]*\w[^\r\n\[\]]*\]/,greedy:!0,alias:"function",inside:{"command-params":{pattern:/(^\[[\t ]*\w+\b)[\s\S]+(?=\]$)/,lookbehind:!0,inside:r},"command-param-name":{pattern:/^(\[[\t ]*)\w+/,lookbehind:!0,alias:"name"},"start-stop-char":/[\[\]]/}}}}},t.languages.nani=t.languages.naniscript,t.hooks.add("after-tokenize",function(s){var o=s.tokens;o.forEach(function(l){if(typeof l!="string"&&l.type==="generic-text"){var u=a(l);i(u)||(l.type="bad-line",l.content=u)}})});function i(s){for(var o="[]{}",l=[],u=0;u=&|$!]/}}TV.displayName="neon";TV.aliases=[];function TV(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:/[,:=[\]{}()-]/}}kV.displayName="nevod";kV.aliases=[];function kV(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\-.]+/}}CV.displayName="nginx";CV.aliases=[];function CV(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)}AV.displayName="nim";AV.aliases=[];function AV(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:/[({\[]\.|\.[)}\]]|[`(){}\[\],:]/}}_V.displayName="nix";_V.aliases=[];function _V(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}RV.displayName="nsis";RV.aliases=[];function RV(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}}}IV.displayName="ocaml";IV.aliases=[];function IV(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/}}DV.displayName="odin";DV.aliases=[];function DV(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)}NV.displayName="opencl";NV.aliases=[];function NV(e){e.register(Bd),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)}PV.displayName="openqasm";PV.aliases=["qasm"];function PV(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}MV.displayName="oz";MV.aliases=[];function MV(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:/[\[\](){}.:;?]/}}LV.displayName="parigp";LV.aliases=[];function LV(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:/[\[\]{}().,:;|]/}}$V.displayName="parser";$V.aliases=[];function $V(e){e.register(Is),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)}FV.displayName="pascal";FV.aliases=["objectpascal"];function FV(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}BV.displayName="pascaligo";BV.aliases=[];function BV(e){(function(t){var n=/\((?:[^()]|\((?:[^()]|\([^()]*\))*\))*\)/.source,r=/(?:\b\w+(?:)?|)/.source.replace(//g,function(){return n}),i=t.languages.pascaligo={comment:/\(\*[\s\S]+?\*\)|\/\/.*/,string:{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1|\^[a-z]/i,greedy:!0},"class-name":[{pattern:RegExp(/(\btype\s+\w+\s+is\s+)/.source.replace(//g,function(){return r}),"i"),lookbehind:!0,inside:null},{pattern:RegExp(/(?=\s+is\b)/.source.replace(//g,function(){return r}),"i"),inside:null},{pattern:RegExp(/(:\s*)/.source.replace(//g,function(){return r})),lookbehind:!0,inside:null}],keyword:{pattern:/(^|[^&])\b(?:begin|block|case|const|else|end|fail|for|from|function|if|is|nil|of|remove|return|skip|then|type|var|while|with)\b/i,lookbehind:!0},boolean:{pattern:/(^|[^&])\b(?:False|True)\b/i,lookbehind:!0},builtin:{pattern:/(^|[^&])\b(?:bool|int|list|map|nat|record|string|unit)\b/i,lookbehind:!0},function:/\b\w+(?=\s*\()/,number:[/%[01]+|&[0-7]+|\$[a-f\d]+/i,/\b\d+(?:\.\d+)?(?:e[+-]?\d+)?(?:mtz|n)?/i],operator:/->|=\/=|\.\.|\*\*|:=|<[<=>]?|>[>=]?|[+\-*\/]=?|[@^=|]|\b(?:and|mod|or)\b/,punctuation:/\(\.|\.\)|[()\[\]:;,.{}]/},a=["comment","keyword","builtin","operator","punctuation"].reduce(function(s,o){return s[o]=i[o],s},{});i["class-name"].forEach(function(s){s.inside=a})})(e)}UV.displayName="psl";UV.aliases=[];function UV(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:/[(){}\[\];,]/}}zV.displayName="pcaxis";zV.aliases=["px"];function zV(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}jV.displayName="peoplecode";jV.aliases=["pcode"];function jV(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}HV.displayName="phpdoc";HV.aliases=[];function HV(e){e.register(iS),e.register(z1),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)}VV.displayName="php-extras";VV.aliases=[];function VV(e){e.register(z1),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:/::|\\/}}})}WV.displayName="plant-uml";WV.aliases=["plantuml"];function WV(e){(function(t){var n=/\$\w+|%[a-z]+%/,r=/\[[^[\]]*\]/.source,i=/(?:[drlu]|do|down|le|left|ri|right|up)/.source,a="(?:-+"+i+"-+|\\.+"+i+"\\.+|-+(?:"+r+"-*)?|"+r+"-+|\\.+(?:"+r+"\\.*)?|"+r+"\\.+)",s=/(?:<{1,2}|\/{1,2}|\\{1,2}|<\||[#*^+}xo])/.source,o=/(?:>{1,2}|\/{1,2}|\\{1,2}|\|>|[#*^+{xo])/.source,l=/[[?]?[ox]?/.source,u=/[ox]?[\]?]?/.source,c=l+"(?:"+a+o+"|"+s+a+"(?:"+o+")?)"+u;t.languages["plant-uml"]={comment:{pattern:/(^[ \t]*)(?:'.*|\/'[\s\S]*?'\/)/m,lookbehind:!0,greedy:!0},preprocessor:{pattern:/(^[ \t]*)!.*/m,lookbehind:!0,greedy:!0,alias:"property",inside:{variable:n}},delimiter:{pattern:/(^[ \t]*)@(?:end|start)uml\b/m,lookbehind:!0,greedy:!0,alias:"punctuation"},arrow:{pattern:RegExp(/(^|[^-.<>?|\\[\]ox])/.source+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)}QV.displayName="plsql";QV.aliases=[];function QV(e){e.register(tS),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"}})}qV.displayName="powerquery";qV.aliases=["mscript","pq"];function qV(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}GV.displayName="powershell";GV.aliases=[];function GV(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)}YV.displayName="processing";YV.aliases=[];function YV(e){e.register(Dr),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"}})}ZV.displayName="prolog";ZV.aliases=[];function ZV(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:/[(){}\[\],]/}}XV.displayName="promql";XV.aliases=[];function XV(e){(function(t){var n=["sum","min","max","avg","group","stddev","stdvar","count","count_values","bottomk","topk","quantile"],r=["on","ignoring","group_right","group_left","by","without"],i=["offset"],a=n.concat(r,i);t.languages.promql={comment:{pattern:/(^[ \t]*)#.*/m,lookbehind:!0},"vector-match":{pattern:new RegExp("((?:"+r.join("|")+")\\s*)\\([^)]*\\)"),lookbehind:!0,inside:{"label-key":{pattern:/\b[^,]+\b/,alias:"attr-name"},punctuation:/[(),]/}},"context-labels":{pattern:/\{[^{}]*\}/,inside:{"label-key":{pattern:/\b[a-z_]\w*(?=\s*(?:=|![=~]))/,alias:"attr-name"},"label-value":{pattern:/(["'`])(?:\\[\s\S]|(?!\1)[^\\])*\1/,greedy:!0,alias:"attr-value"},punctuation:/\{|\}|=~?|![=~]|,/}},"context-range":[{pattern:/\[[\w\s:]+\]/,inside:{punctuation:/\[|\]|:/,"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}},{pattern:/(\boffset\s+)\w+/,lookbehind:!0,inside:{"range-duration":{pattern:/\b(?:\d+(?:[smhdwy]|ms))+\b/i,alias:"number"}}}],keyword:new RegExp("\\b(?:"+a.join("|")+")\\b","i"),function:/\b[a-z_]\w*(?=\s*\()/i,number:/[-+]?(?:(?:\b\d+(?:\.\d+)?|\B\.\d+)(?:e[-+]?\d+)?\b|\b(?:0x[0-9a-f]+|nan|inf)\b)/i,operator:/[\^*/%+-]|==|!=|<=|<|>=|>|\b(?:and|or|unless)\b/i,punctuation:/[{};()`,.[\]]/}})(e)}KV.displayName="properties";KV.aliases=[];function KV(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:/[=:]/}}JV.displayName="protobuf";JV.aliases=[];function JV(e){e.register(Dr),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)}eW.displayName="stylus";eW.aliases=[];function eW(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)}tW.displayName="twig";tW.aliases=[];function tW(e){e.register(Js),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")})}nW.displayName="pug";nW.aliases=[];function nW(e){e.register(Ks),e.register(Is),function(t){t.languages.pug={comment:{pattern:/(^([\t ]*))\/\/.*(?:(?:\r?\n|\r)\2[\t ].+)*/m,lookbehind:!0},"multiline-script":{pattern:/(^([\t ]*)script\b.*\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:t.languages.javascript},filter:{pattern:/(^([\t ]*)):.+(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:/\S[\s\S]*/}},"multiline-plain-text":{pattern:/(^([\t ]*)[\w\-#.]+\.[\t ]*)(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/m,lookbehind:!0},markup:{pattern:/(^[\t ]*)<.+/m,lookbehind:!0,inside:t.languages.markup},doctype:{pattern:/((?:^|\n)[\t ]*)doctype(?: .+)?/,lookbehind:!0},"flow-control":{pattern:/(^[\t ]*)(?:case|default|each|else|if|unless|when|while)\b(?: .+)?/m,lookbehind:!0,inside:{each:{pattern:/^each .+? in\b/,inside:{keyword:/\b(?:each|in)\b/,punctuation:/,/}},branch:{pattern:/^(?:case|default|else|if|unless|when|while)\b/,alias:"keyword"},rest:t.languages.javascript}},keyword:{pattern:/(^[\t ]*)(?:append|block|extends|include|prepend)\b.+/m,lookbehind:!0},mixin:[{pattern:/(^[\t ]*)mixin .+/m,lookbehind:!0,inside:{keyword:/^mixin/,function:/\w+(?=\s*\(|\s*$)/,punctuation:/[(),.]/}},{pattern:/(^[\t ]*)\+.+/m,lookbehind:!0,inside:{name:{pattern:/^\+\w+/,alias:"function"},rest:t.languages.javascript}}],script:{pattern:/(^[\t ]*script(?:(?:&[^(]+)?\([^)]+\))*[\t ]).+/m,lookbehind:!0,inside:t.languages.javascript},"plain-text":{pattern:/(^[\t ]*(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?[\t ]).+/m,lookbehind:!0},tag:{pattern:/(^[\t ]*)(?!-)[\w\-#.]*[\w\-](?:(?:&[^(]+)?\([^)]+\))*\/?:?/m,lookbehind:!0,inside:{attributes:[{pattern:/&[^(]+\([^)]+\)/,inside:t.languages.javascript},{pattern:/\([^)]+\)/,inside:{"attr-value":{pattern:/(=\s*(?!\s))(?:\{[^}]*\}|[^,)\r\n]+)/,lookbehind:!0,inside:t.languages.javascript},"attr-name":/[\w-]+(?=\s*!?=|\s*[,)])/,punctuation:/[!=(),]+/}}],punctuation:/:/,"attr-id":/#[\w\-]+/,"attr-class":/\.[\w\-]+/}},code:[{pattern:/(^[\t ]*(?:-|!?=)).+/m,lookbehind:!0,inside:t.languages.javascript}],punctuation:/[.\-!=|]+/};for(var n=/(^([\t ]*)):(?:(?:\r?\n|\r(?!\n))(?:\2[\t ].+|\s*?(?=\r?\n|\r)))+/.source,r=[{filter:"atpl",language:"twig"},{filter:"coffee",language:"coffeescript"},"ejs","handlebars","less","livescript","markdown",{filter:"sass",language:"scss"},"stylus"],i={},a=0,s=r.length;a",function(){return o.filter}),"m"),lookbehind:!0,inside:{"filter-name":{pattern:/^:[\w-]+/,alias:"variable"},text:{pattern:/\S[\s\S]*/,alias:[o.language,"language-"+o.language],inside:t.languages[o.language]}}})}t.languages.insertBefore("pug","filter",i)}(e)}rW.displayName="puppet";rW.aliases=[];function rW(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)}iW.displayName="pure";iW.aliases=[];function iW(e){(function(t){t.languages.pure={comment:[{pattern:/(^|[^\\])\/\*[\s\S]*?\*\//,lookbehind:!0},{pattern:/(^|[^\\:])\/\/.*/,lookbehind:!0},/#!.+/],"inline-lang":{pattern:/%<[\s\S]+?%>/,greedy:!0,inside:{lang:{pattern:/(^%< *)-\*-.+?-\*-/,lookbehind:!0,alias:"comment"},delimiter:{pattern:/^%<.*|%>$/,alias:"punctuation"}}},string:{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0},number:{pattern:/((?:\.\.)?)(?:\b(?:inf|nan)\b|\b0x[\da-f]+|(?:\b(?:0b)?\d+(?:\.\d+)?|\B\.\d+)(?:e[+-]?\d+)?L?)/i,lookbehind:!0},keyword:/\b(?:NULL|ans|break|bt|case|catch|cd|clear|const|def|del|dump|else|end|exit|extern|false|force|help|if|infix[lr]?|interface|let|ls|mem|namespace|nonfix|of|otherwise|outfix|override|postfix|prefix|private|public|pwd|quit|run|save|show|stats|then|throw|trace|true|type|underride|using|when|with)\b/,function:/\b(?:abs|add_(?:addr|constdef|(?:fundef|interface|macdef|typedef)(?:_at)?|vardef)|all|any|applp?|arity|bigintp?|blob(?:_crc|_size|p)?|boolp?|byte_c?string(?:_pointer)?|byte_(?:matrix|pointer)|calloc|cat|catmap|ceil|char[ps]?|check_ptrtag|chr|clear_sentry|clearsym|closurep?|cmatrixp?|cols?|colcat(?:map)?|colmap|colrev|colvector(?:p|seq)?|complex(?:_float_(?:matrix|pointer)|_matrix(?:_view)?|_pointer|p)?|conj|cookedp?|cst|cstring(?:_(?:dup|list|vector))?|curry3?|cyclen?|del_(?:constdef|fundef|interface|macdef|typedef|vardef)|delete|diag(?:mat)?|dim|dmatrixp?|do|double(?:_matrix(?:_view)?|_pointer|p)?|dowith3?|drop|dropwhile|eval(?:cmd)?|exactp|filter|fix|fixity|flip|float(?:_matrix|_pointer)|floor|fold[lr]1?|frac|free|funp?|functionp?|gcd|get(?:_(?:byte|constdef|double|float|fundef|int(?:64)?|interface(?:_typedef)?|long|macdef|pointer|ptrtag|sentry|short|string|typedef|vardef))?|globsym|hash|head|id|im|imatrixp?|index|inexactp|infp|init|insert|int(?:_matrix(?:_view)?|_pointer|p)?|int64_(?:matrix|pointer)|integerp?|iteraten?|iterwhile|join|keys?|lambdap?|last(?:err(?:pos)?)?|lcd|list[2p]?|listmap|make_ptrtag|malloc|map|matcat|matrixp?|max|member|min|nanp|nargs|nmatrixp?|null|numberp?|ord|pack(?:ed)?|pointer(?:_cast|_tag|_type|p)?|pow|pred|ptrtag|put(?:_(?:byte|double|float|int(?:64)?|long|pointer|short|string))?|rationalp?|re|realp?|realloc|recordp?|redim|reduce(?:_with)?|refp?|repeatn?|reverse|rlistp?|round|rows?|rowcat(?:map)?|rowmap|rowrev|rowvector(?:p|seq)?|same|scan[lr]1?|sentry|sgn|short_(?:matrix|pointer)|slice|smatrixp?|sort|split|str|strcat|stream|stride|string(?:_(?:dup|list|vector)|p)?|subdiag(?:mat)?|submat|subseq2?|substr|succ|supdiag(?:mat)?|symbolp?|tail|take|takewhile|thunkp?|transpose|trunc|tuplep?|typep|ubyte|uint(?:64)?|ulong|uncurry3?|unref|unzip3?|update|ushort|vals?|varp?|vector(?:p|seq)?|void|zip3?|zipwith3?)\b/,special:{pattern:/\b__[a-z]+__\b/i,alias:"builtin"},operator:/(?:[!"#$%&'*+,\-.\/:<=>?@\\^`|~\u00a1-\u00bf\u00d7-\u00f7\u20d0-\u2bff]|\b_+\b)+|\b(?:and|div|mod|not|or)\b/,punctuation:/[(){}\[\];,|]/};var n=["c",{lang:"c++",alias:"cpp"},"fortran"],r=/%< *-\*- *\d* *-\*-[\s\S]+?%>/.source;n.forEach(function(i){var a=i;if(typeof i!="string"&&(a=i.alias,i=i.lang),t.languages[a]){var s={};s["inline-lang-"+a]={pattern:RegExp(r.replace("",i.replace(/([.+*?\/\\(){}\[\]])/g,"\\$1")),"i"),inside:t.util.clone(t.languages.pure["inline-lang"].inside)},s["inline-lang-"+a].inside.rest=t.util.clone(t.languages[a]),t.languages.insertBefore("pure","inline-lang",s)}}),t.languages.c&&(t.languages.pure["inline-lang"].inside.rest=t.util.clone(t.languages.c))})(e)}aW.displayName="purebasic";aW.aliases=["pbfasm"];function aW(e){e.register(Dr),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}sW.displayName="purescript";sW.aliases=["purs"];function sW(e){e.register(nk),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}oW.displayName="qsharp";oW.aliases=["qs"];function oW(e){e.register(Dr),function(t){function n(g,b){return g.replace(/<<(\d+)>>/g,function(S,w){return"(?:"+b[+w]+")"})}function r(g,b,S){return RegExp(n(g,b),S||"")}function i(g,b){for(var S=0;S>/g,function(){return"(?:"+g+")"});return g.replace(/<>/g,"[^\\s\\S]")}var a={type:"Adj BigInt Bool Ctl Double false Int One Pauli PauliI PauliX PauliY PauliZ Qubit Range Result String true Unit Zero",other:"Adjoint adjoint apply as auto body borrow borrowing Controlled controlled distribute elif else fail fixup for function if in internal intrinsic invert is let mutable namespace new newtype open operation repeat return self set until use using while within"};function s(g){return"\\b(?:"+g.trim().replace(/ /g,"|")+")\\b"}var o=RegExp(s(a.type+" "+a.other)),l=/\b[A-Za-z_]\w*\b/.source,u=n(/<<0>>(?:\s*\.\s*<<0>>)*/.source,[l]),c={keyword:o,punctuation:/[<>()?,.:[\]]/},f=/"(?:\\.|[^\\"])*"/.source;t.languages.qsharp=t.languages.extend("clike",{comment:/\/\/.*/,string:[{pattern:r(/(^|[^$\\])<<0>>/.source,[f]),lookbehind:!0,greedy:!0}],"class-name":[{pattern:r(/(\b(?:as|open)\s+)<<0>>(?=\s*(?:;|as\b))/.source,[u]),lookbehind:!0,inside:c},{pattern:r(/(\bnamespace\s+)<<0>>(?=\s*\{)/.source,[u]),lookbehind:!0,inside:c}],keyword:o,number:/(?:\b0(?:x[\da-f]+|b[01]+|o[0-7]+)|(?:\B\.\d+|\b\d+(?:\.\d*)?)(?:e[-+]?\d+)?)l?\b/i,operator:/\band=|\bor=|\band\b|\bnot\b|\bor\b|<[-=]|[-=]>|>>>=?|<<<=?|\^\^\^=?|\|\|\|=?|&&&=?|w\/=?|~~~|[*\/+\-^=!%]=?/,punctuation:/::|[{}[\];(),.:]/}),t.languages.insertBefore("qsharp","number",{range:{pattern:/\.\./,alias:"operator"}});var h=i(n(/\{(?:[^"{}]|<<0>>|<>)*\}/.source,[f]),2);t.languages.insertBefore("qsharp","string",{"interpolation-string":{pattern:r(/\$"(?:\\.|<<0>>|[^\\"{])*"/.source,[h]),greedy:!0,inside:{interpolation:{pattern:r(/((?:^|[^\\])(?:\\\\)*)<<0>>/.source,[h]),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}lW.displayName="q";lW.aliases=[];function lW(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:/[(){}\[\];.]/}}uW.displayName="qml";uW.aliases=[];function uW(e){e.register(Ks),function(t){for(var n=/"(?:\\.|[^\\"\r\n])*"|'(?:\\.|[^\\'\r\n])*'/.source,r=/\/\/.*(?!.)|\/\*(?:[^*]|\*(?!\/))*\*\//.source,i=/(?:[^\\()[\]{}"'/]||\/(?![*/])||\(*\)|\[*\]|\{*\}|\\[\s\S])/.source.replace(//g,function(){return n}).replace(//g,function(){return r}),a=0;a<2;a++)i=i.replace(//g,function(){return i});i=i.replace(//g,"[^\\s\\S]"),t.languages.qml={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},"javascript-function":{pattern:RegExp(/((?:^|;)[ \t]*)function\s+(?!\s)[_$a-zA-Z\xA0-\uFFFF](?:(?!\s)[$\w\xA0-\uFFFF])*\s*\(*\)\s*\{*\}/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},"class-name":{pattern:/((?:^|[:;])[ \t]*)(?!\d)\w+(?=[ \t]*\{|[ \t]+on\b)/m,lookbehind:!0},property:[{pattern:/((?:^|[;{])[ \t]*)(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0},{pattern:/((?:^|[;{])[ \t]*)property[ \t]+(?!\d)\w+(?:\.\w+)*[ \t]+(?!\d)\w+(?:\.\w+)*(?=[ \t]*:)/m,lookbehind:!0,inside:{keyword:/^property/,property:/\w+(?:\.\w+)*/}}],"javascript-expression":{pattern:RegExp(/(:[ \t]*)(?![\s;}[])(?:(?!$|[;}]))+/.source.replace(//g,function(){return i}),"m"),lookbehind:!0,greedy:!0,alias:"language-javascript",inside:t.languages.javascript},string:{pattern:/"(?:\\.|[^\\"\r\n])*"/,greedy:!0},keyword:/\b(?:as|import|on)\b/,punctuation:/[{}[\]:;,]/}}(e)}cW.displayName="qore";cW.aliases=[];function cW(e){e.register(Dr),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/})}dW.displayName="racket";dW.aliases=["rkt"];function dW(e){e.register(rk),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}fW.displayName="cshtml";fW.aliases=["razor"];function fW(e){e.register(B1),e.register(Is),function(t){var n=/\/(?![/*])|\/\/.*[\r\n]|\/\*[^*]*(?:\*(?!\/)[^*]*)*\*\//.source,r=/@(?!")|"(?:[^\r\n\\"]|\\.)*"|@"(?:[^\\"]|""|\\[\s\S])*"(?!")/.source+"|"+/'(?:(?:[^\r\n'\\]|\\.|\\[Uux][\da-fA-F]{1,8})'|(?=[^\\](?!')))/.source;function i(x,k){for(var C=0;C/g,function(){return"(?:"+x+")"});return x.replace(//g,"[^\\s\\S]").replace(//g,"(?:"+r+")").replace(//g,"(?:"+n+")")}var a=i(/\((?:[^()'"@/]|||)*\)/.source,2),s=i(/\[(?:[^\[\]'"@/]|||)*\]/.source,1),o=i(/\{(?:[^{}'"@/]|||)*\}/.source,2),l=i(/<(?:[^<>'"@/]||)*>/.source,1),u=/@/.source+/(?:await\b\s*)?/.source+"(?:"+/(?!await\b)\w+\b/.source+"|"+a+")(?:"+/[?!]?\.\w+\b/.source+"|(?:"+l+")?"+a+"|"+s+")*"+/(?![?!\.(\[]|<(?!\/))/.source,c=/@(?![\w()])/.source+"|"+u,f="(?:"+/"[^"@]*"|'[^'@]*'|[^\s'"@>=]+(?=[\s>])/.source+`|["'][^"'@]*(?:(?:`+c+`)[^"'@]*)+["'])`,h=/(?:\s(?:\s*[^\s>\/=]+(?:\s*=\s*|(?=[\s/>])))+)?/.source.replace(//,f),g=/(?!\d)[^\s>\/=$<%]+/.source+h+/\s*\/?>/.source,b=/\B@?/.source+"(?:"+/<([a-zA-Z][\w:]*)/.source+h+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|"+i(/<\1/.source+h+/\s*>/.source+"(?:"+(/[^<]/.source+"|"+/<\/?(?!\1\b)/.source+g+"|")+")*"+/<\/\1\s*>/.source,2))+")*"+/<\/\1\s*>/.source+"|"+/*\.{3}(?:[^{}]|)*\})/.source;function s(u,c){return u=u.replace(//g,function(){return r}).replace(//g,function(){return i}).replace(//g,function(){return a}),RegExp(u,c)}a=s(a).source,t.languages.jsx=t.languages.extend("markup",n),t.languages.jsx.tag.pattern=s(/<\/?(?:[\w.:-]+(?:+(?:[\w.:$-]+(?:=(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s{'"/>=]+|))?|))**\/?)?>/.source),t.languages.jsx.tag.inside.tag.pattern=/^<\/?[^\s>\/]*/,t.languages.jsx.tag.inside["attr-value"].pattern=/=(?!\{)(?:"(?:\\[\s\S]|[^\\"])*"|'(?:\\[\s\S]|[^\\'])*'|[^\s'">]+)/,t.languages.jsx.tag.inside.tag.inside["class-name"]=/^[A-Z]\w*(?:\.[A-Z]\w*)*$/,t.languages.jsx.tag.inside.comment=n.comment,t.languages.insertBefore("inside","attr-name",{spread:{pattern:s(//.source),inside:t.languages.jsx}},t.languages.jsx.tag),t.languages.insertBefore("inside","special-attr",{script:{pattern:s(/=/.source),alias:"language-javascript",inside:{"script-punctuation":{pattern:/^=(?=\{)/,alias:"punctuation"},rest:t.languages.jsx}}},t.languages.jsx.tag);var o=function(u){return u?typeof u=="string"?u:typeof u.content=="string"?u.content:u.content.map(o).join(""):""},l=function(u){for(var c=[],f=0;f0&&c[c.length-1].tagName===o(h.content[0].content[1])&&c.pop():h.content[h.content.length-1].content==="/>"||c.push({tagName:o(h.content[0].content[1]),openedBraces:0}):c.length>0&&h.type==="punctuation"&&h.content==="{"?c[c.length-1].openedBraces++:c.length>0&&c[c.length-1].openedBraces>0&&h.type==="punctuation"&&h.content==="}"?c[c.length-1].openedBraces--:g=!0),(g||typeof h=="string")&&c.length>0&&c[c.length-1].openedBraces===0){var b=o(h);f0&&(typeof u[f-1]=="string"||u[f-1].type==="plain-text")&&(b=o(u[f-1])+b,u.splice(f-1,1),f--),u[f]=new t.Token("plain-text",b,null,b)}h.content&&typeof h.content!="string"&&l(h.content)}};t.hooks.add("after-tokenize",function(u){u.language!=="jsx"&&u.language!=="tsx"||l(u.tokens)})}(e)}hW.displayName="tsx";hW.aliases=[];function hW(e){e.register(l6),e.register(nS),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)}pW.displayName="reason";pW.aliases=[];function pW(e){e.register(Dr),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}mW.displayName="rego";mW.aliases=[];function mW(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:/[,;.\[\]{}()]/}}gW.displayName="renpy";gW.aliases=["rpy"];function gW(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}bW.displayName="rescript";bW.aliases=["res"];function bW(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}yW.displayName="rest";yW.aliases=[];function yW(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}}}vW.displayName="rip";vW.aliases=[];function vW(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`'",.:;#\/\\()<>\[\]{}]*/}}OW.displayName="roboconf";OW.aliases=[];function OW(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:/[{},.;:=]/}}SW.displayName="robotframework";SW.aliases=["robot"];function SW(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 f in u)c[f]=u[f];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 a={pattern:/(\[Documentation\](?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},s={pattern:/([\r\n] ?)(?!#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,alias:"function",inside:{variable:r}},o={pattern:/([\r\n](?: {2}|\t)[ \t]*)(?!\[|\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0,inside:{variable:r}};t.languages.robotframework={settings:i("Settings",{documentation:{pattern:/([\r\n] ?Documentation(?: {2}|\t)[ \t]*)(?![ \t]|#)(?:.|(?:\r\n?|\n)[ \t]*\.{3})+/,lookbehind:!0,alias:"string"},property:{pattern:/([\r\n] ?)(?!\.{3}|#)(?:\S(?:[ \t]\S)*)+/,lookbehind:!0}}),variables:i("Variables"),"test-cases":i("Test Cases",{"test-name":s,documentation:a,property:o}),keywords:i("Keywords",{"keyword-name":s,documentation:a,property:o}),tasks:i("Tasks",{"task-name":s,documentation:a,property:o}),comment:n},t.languages.robot=t.languages.robotframework})(e)}EW.displayName="sas";EW.aliases=[];function EW(e){(function(t){var n=/(?:"(?:""|[^"])*"(?!")|'(?:''|[^'])*'(?!'))/.source,r=/\b(?:\d[\da-f]*x|\d+(?:\.\d+)?(?:e[+-]?\d+)?)\b/i,i={pattern:RegExp(n+"[bx]"),alias:"number"},a={pattern:/&[a-z_]\w*/i},s={pattern:/((?:^|\s|=|\())%(?:ABORT|BY|CMS|COPY|DISPLAY|DO|ELSE|END|EVAL|GLOBAL|GO|GOTO|IF|INC|INCLUDE|INDEX|INPUT|KTRIM|LENGTH|LET|LIST|LOCAL|PUT|QKTRIM|QSCAN|QSUBSTR|QSYSFUNC|QUPCASE|RETURN|RUN|SCAN|SUBSTR|SUPERQ|SYMDEL|SYMEXIST|SYMGLOBL|SYMLOCAL|SYSCALL|SYSEVALF|SYSEXEC|SYSFUNC|SYSGET|SYSRPUT|THEN|TO|TSO|UNQUOTE|UNTIL|UPCASE|WHILE|WINDOW)\b/i,lookbehind:!0,alias:"keyword"},o={pattern:/(^|\s)(?:proc\s+\w+|data(?!=)|quit|run)\b/i,alias:"keyword",lookbehind:!0},l=[/\/\*[\s\S]*?\*\//,{pattern:/(^[ \t]*|;\s*)\*[^;]*;/m,lookbehind:!0}],u={pattern:RegExp(n),greedy:!0},c=/[$%@.(){}\[\];,\\]/,f={pattern:/%?\b\w+(?=\()/,alias:"keyword"},h={function:f,"arg-value":{pattern:/(=\s*)[A-Z\.]+/i,lookbehind:!0},operator:/=/,"macro-variable":a,arg:{pattern:/[A-Z]+/i,alias:"keyword"},number:r,"numeric-constant":i,punctuation:c,string:u},g={pattern:/\b(?:format|put)\b=?[\w'$.]+/i,inside:{keyword:/^(?:format|put)(?==)/i,equals:/=/,format:{pattern:/(?:\w|\$\d)+\.\d?/,alias:"number"}}},b={pattern:/\b(?:format|put)\s+[\w']+(?:\s+[$.\w]+)+(?=;)/i,inside:{keyword:/^(?:format|put)/i,format:{pattern:/[\w$]+\.\d?/,alias:"number"}}},S={pattern:/((?:^|\s)=?)(?:catname|checkpoint execute_always|dm|endsas|filename|footnote|%include|libname|%list|lock|missing|options|page|resetline|%run|sasfile|skip|sysecho|title\d?)\b/i,lookbehind:!0,alias:"keyword"},w={pattern:/(^|\s)(?:submit(?:\s+(?:load|norun|parseonly))?|endsubmit)\b/i,lookbehind:!0,alias:"keyword"},E=/aStore|accessControl|aggregation|audio|autotune|bayesianNetClassifier|bioMedImage|boolRule|builtins|cardinality|cdm|clustering|conditionalRandomFields|configuration|copula|countreg|dataDiscovery|dataPreprocess|dataSciencePilot|dataStep|decisionTree|deduplication|deepLearn|deepNeural|deepRnn|ds2|ecm|entityRes|espCluster|explainModel|factmac|fastKnn|fcmpact|fedSql|freqTab|gVarCluster|gam|gleam|graphSemiSupLearn|hiddenMarkovModel|hyperGroup|ica|image|iml|kernalPca|langModel|ldaTopic|loadStreams|mbc|mixed|mlTools|modelPublishing|network|neuralNet|nmf|nonParametricBayes|nonlinear|optNetwork|optimization|panel|pca|percentile|phreg|pls|qkb|qlim|quantreg|recommend|regression|reinforcementLearn|robustPca|ruleMining|sampling|sandwich|sccasl|search(?:Analytics)?|sentimentAnalysis|sequence|session(?:Prop)?|severity|simSystem|simple|smartData|sparkEmbeddedProcess|sparseML|spatialreg|spc|stabilityMonitoring|svDataDescription|svm|table|text(?:Filters|Frequency|Mining|Parse|Rule(?:Develop|Score)|Topic|Util)|timeData|transpose|tsInfo|tsReconcile|uniTimeSeries|varReduce/.source,x={pattern:RegExp(/(^|\s)(?:action\s+)?(?:)\.[a-z]+\b[^;]+/.source.replace(//g,function(){return E}),"i"),lookbehind:!0,inside:{keyword:RegExp(/(?:)\.[a-z]+\b/.source.replace(//g,function(){return E}),"i"),action:{pattern:/(?:action)/i,alias:"keyword"},comment:l,function:f,"arg-value":h["arg-value"],operator:h.operator,argument:h.arg,number:r,"numeric-constant":i,punctuation:c,string:u}},k={pattern:/((?:^|\s)=?)(?:after|analysis|and|array|barchart|barwidth|begingraph|by|call|cas|cbarline|cfill|class(?:lev)?|close|column|computed?|contains|continue|data(?==)|define|delete|describe|document|do\s+over|do|dol|drop|dul|else|end(?:comp|source)?|entryTitle|eval(?:uate)?|exec(?:ute)?|exit|file(?:name)?|fill(?:attrs)?|flist|fnc|function(?:list)?|global|goto|group(?:by)?|headline|headskip|histogram|if|infile|keep|keylabel|keyword|label|layout|leave|legendlabel|length|libname|loadactionset|merge|midpoints|_?null_|name|noobs|nowd|ods|options|or|otherwise|out(?:put)?|over(?:lay)?|plot|print|put|raise|ranexp|rannor|rbreak|retain|return|select|session|sessref|set|source|statgraph|sum|summarize|table|temp|terminate|then\s+do|then|title\d?|to|var|when|where|xaxisopts|y2axisopts|yaxisopts)\b/i,lookbehind:!0};t.languages.sas={datalines:{pattern:/^([ \t]*)(?:cards|(?:data)?lines);[\s\S]+?^[ \t]*;/im,lookbehind:!0,alias:"string",inside:{keyword:{pattern:/^(?:cards|(?:data)?lines)/i},punctuation:/;/}},"proc-sql":{pattern:/(^proc\s+(?:fed)?sql(?:\s+[\w|=]+)?;)[\s\S]+?(?=^(?:proc\s+\w+|data|quit|run);|(?![\s\S]))/im,lookbehind:!0,inside:{sql:{pattern:RegExp(/^[ \t]*(?:select|alter\s+table|(?:create|describe|drop)\s+(?:index|table(?:\s+constraints)?|view)|create\s+unique\s+index|insert\s+into|update)(?:|[^;"'])+;/.source.replace(//g,function(){return n}),"im"),alias:"language-sql",inside:t.languages.sql},"global-statements":S,"sql-statements":{pattern:/(^|\s)(?:disconnect\s+from|begin|commit|exec(?:ute)?|reset|rollback|validate)\b/i,lookbehind:!0,alias:"keyword"},number:r,"numeric-constant":i,punctuation: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:k,"submit-statement":w,"global-statements":S,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:k,"submit-statement":w,"global-statements":S,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:h}},"cas-actions":x,statement:{pattern:/((?:^|\s)=?)(?:default|(?:un)?set|on|output|upload)[^;]+/im,lookbehind:!0,inside:h},step:o,keyword:k,function:f,format:g,altformat:b,"global-statements":S,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:h},"macro-keyword":s,"macro-variable":a,"macro-string-functions":{pattern:/((?:^|\s|=))%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)\(.*?(?:[^%]\))/i,lookbehind:!0,inside:{function:{pattern:/%(?:BQUOTE|NRBQUOTE|NRQUOTE|NRSTR|QUOTE|STR)/i,alias:"keyword"},"macro-keyword":s,"macro-variable":a,"escaped-char":{pattern:/%['"()<>=¬^~;,#]/},punctuation: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:h},"cas-actions":x,comment:l,function:f,format:g,altformat:b,"numeric-constant":i,datetime:{pattern:RegExp(n+"(?:dt?|t)"),alias:"number"},string:u,step:o,keyword:k,"operator-keyword":{pattern:/\b(?:eq|ge|gt|in|le|lt|ne|not)\b/i,alias:"operator"},number:r,operator:/\*\*?|\|\|?|!!?|¦¦?|<[>=]?|>[<=]?|[-+\/=&]|[~¬^]=?/,punctuation:c}})(e)}wW.displayName="shell-session";wW.aliases=["sh-session","shellsession"];function wW(e){e.register(ZT),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)}xW.displayName="smali";xW.aliases=[];function xW(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:/[{}(),;:]/}}TW.displayName="smalltalk";TW.aliases=[];function TW(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:/[.;:?\[\](){}]/}}kW.displayName="smarty";kW.aliases=[];function kW(e){e.register(Js),function(t){t.languages.smarty={comment:{pattern:/^\{\*[\s\S]*?\*\}/,greedy:!0},"embedded-php":{pattern:/^\{php\}[\s\S]*?\{\/php\}/,greedy:!0,inside:{smarty:{pattern:/^\{php\}|\{\/php\}$/,inside:null},php:{pattern:/[\s\S]+/,alias:"language-php",inside:t.languages.php}}},string:[{pattern:/"(?:\\.|[^"\\\r\n])*"/,greedy:!0,inside:{interpolation:{pattern:/\{[^{}]*\}|`[^`]*`/,inside:{"interpolation-punctuation":{pattern:/^[{`]|[`}]$/,alias:"punctuation"},expression:{pattern:/[\s\S]+/,inside:null}}},variable:/\$\w+/}},{pattern:/'(?:\\.|[^'\\\r\n])*'/,greedy:!0}],keyword:{pattern:/(^\{\/?)[a-z_]\w*\b(?!\()/i,lookbehind:!0,greedy:!0},delimiter:{pattern:/^\{\/?|\}$/,greedy:!0,alias:"punctuation"},number:/\b0x[\dA-Fa-f]+|(?:\b\d+(?:\.\d*)?|\B\.\d+)(?:[Ee][-+]?\d+)?/,variable:[/\$(?!\d)\w+/,/#(?!\d)\w+#/,{pattern:/(\.|->|\w\s*=)(?!\d)\w+\b(?!\()/,lookbehind:!0},{pattern:/(\[)(?!\d)\w+(?=\])/,lookbehind:!0}],function:{pattern:/(\|\s*)@?[a-z_]\w*|\b[a-z_]\w*(?=\()/i,lookbehind:!0},"attr-name":/\b[a-z_]\w*(?=\s*=)/i,boolean:/\b(?:false|no|off|on|true|yes)\b/,punctuation:/[\[\](){}.,:`]|->/,operator:[/[+\-*\/%]|==?=?|[!<>]=?|&&|\|\|?/,/\bis\s+(?:not\s+)?(?:div|even|odd)(?:\s+by)?\b/,/\b(?:and|eq|gt?e|gt|lt?e|lt|mod|neq?|not|or)\b/]},t.languages.smarty["embedded-php"].inside.smarty.inside=t.languages.smarty,t.languages.smarty.string[0].inside.interpolation.inside.expression.inside=t.languages.smarty;var n=/"(?:\\.|[^"\\\r\n])*"|'(?:\\.|[^'\\\r\n])*'/,r=RegExp(/\{\*[\s\S]*?\*\}/.source+"|"+/\{php\}[\s\S]*?\{\/php\}/.source+"|"+/\{(?:[^{}"']||\{(?:[^{}"']||\{(?:[^{}"']|)*\})*\})*\}/.source.replace(//g,function(){return n.source}),"g");t.hooks.add("before-tokenize",function(i){var a="{literal}",s="{/literal}",o=!1;t.languages["markup-templating"].buildPlaceholders(i,"smarty",r,function(l){return l===s&&(o=!1),o?!1:(l===a&&(o=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"smarty")})}(e)}CW.displayName="sml";CW.aliases=["smlnj"];function CW(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)}AW.displayName="solidity";AW.aliases=["sol"];function AW(e){e.register(Dr),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}_W.displayName="solution-file";_W.aliases=["sln"];function _W(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)}RW.displayName="soy";RW.aliases=[];function RW(e){e.register(Js),function(t){var n=/(["'])(?:\\(?:\r\n|[\s\S])|(?!\1)[^\\\r\n])*\1/,r=/\b\d+(?:\.\d+)?(?:[eE][+-]?\d+)?\b|\b0x[\dA-F]+\b/;t.languages.soy={comment:[/\/\*[\s\S]*?\*\//,{pattern:/(\s)\/\/.*/,lookbehind:!0,greedy:!0}],"command-arg":{pattern:/(\{+\/?\s*(?:alias|call|delcall|delpackage|deltemplate|namespace|template)\s+)\.?[\w.]+/,lookbehind:!0,alias:"string",inside:{punctuation:/\./}},parameter:{pattern:/(\{+\/?\s*@?param\??\s+)\.?[\w.]+/,lookbehind:!0,alias:"variable"},keyword:[{pattern:/(\{+\/?[^\S\r\n]*)(?:\\[nrt]|alias|call|case|css|default|delcall|delpackage|deltemplate|else(?:if)?|fallbackmsg|for(?:each)?|if(?:empty)?|lb|let|literal|msg|namespace|nil|@?param\??|rb|sp|switch|template|xid)/,lookbehind:!0},/\b(?:any|as|attributes|bool|css|float|html|in|int|js|list|map|null|number|string|uri)\b/],delimiter:{pattern:/^\{+\/?|\/?\}+$/,alias:"punctuation"},property:/\w+(?==)/,variable:{pattern:/\$[^\W\d]\w*(?:\??(?:\.\w+|\[[^\]]+\]))*/,inside:{string:{pattern:n,greedy:!0},number:r,punctuation:/[\[\].?]/}},string:{pattern:n,greedy:!0},function:[/\w+(?=\()/,{pattern:/(\|[^\S\r\n]*)\w+/,lookbehind:!0}],boolean:/\b(?:false|true)\b/,number:r,operator:/\?:?|<=?|>=?|==?|!=|[+*/%-]|\b(?:and|not|or)\b/,punctuation:/[{}()\[\]|.,:]/},t.hooks.add("before-tokenize",function(i){var a=/\{\{.+?\}\}|\{.+?\}|\s\/\/.*|\/\*[\s\S]*?\*\//g,s="{literal}",o="{/literal}",l=!1;t.languages["markup-templating"].buildPlaceholders(i,"soy",a,function(u){return u===o&&(l=!1),l?!1:(u===s&&(l=!0),!0)})}),t.hooks.add("after-tokenize",function(i){t.languages["markup-templating"].tokenizePlaceholders(i,"soy")})}(e)}u6.displayName="turtle";u6.aliases=["trig"];function u6(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}IW.displayName="sparql";IW.aliases=["rq"];function IW(e){e.register(u6),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}DW.displayName="splunk-spl";DW.aliases=[];function DW(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:/[()[\],]/}}NW.displayName="sqf";NW.aliases=[];function NW(e){e.register(Dr),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"]}PW.displayName="squirrel";PW.aliases=[];function PW(e){e.register(Dr),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"}})}MW.displayName="stan";MW.aliases=[];function MW(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)}LW.displayName="stata";LW.aliases=[];function LW(e){e.register(U1),e.register(o6),e.register(JT),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}$W.displayName="iecst";$W.aliases=[];function $W(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:/[()[\].,;]/}}FW.displayName="supercollider";FW.aliases=["sclang"];function FW(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}BW.displayName="systemd";BW.aliases=[];function BW(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)}ik.displayName="t4-templating";ik.aliases=[];function ik(e){(function(t){function n(i,a,s){return{pattern:RegExp("<#"+i+"[\\s\\S]*?#>"),alias:"block",inside:{delimiter:{pattern:RegExp("^<#"+i+"|#>$"),alias:"important"},content:{pattern:/[\s\S]+/,inside:a,alias:s}}}}function r(i){var a=t.languages[i],s="language-"+i;return{block:{pattern:/<#[\s\S]+?#>/,inside:{directive:n("@",{"attr-value":{pattern:/=(?:("|')(?:\\[\s\S]|(?!\1)[^\\])*\1|[^\s'">=]+)/,inside:{punctuation:/^=|^["']|["']$/}},keyword:/\b\w+(?=\s)/,"attr-name":/\b\w+/}),expression:n("=",a,s),"class-feature":n("\\+",a,s),standard:n("",a,s)}}}}t.languages["t4-templating"]=Object.defineProperty({},"createT4",{value:r})})(e)}UW.displayName="t4-cs";UW.aliases=["t4"];function UW(e){e.register(B1),e.register(ik),e.languages.t4=e.languages["t4-cs"]=e.languages["t4-templating"].createT4("csharp")}zW.displayName="t4-vb";zW.aliases=[];function zW(e){e.register(ik),e.register(tk),e.languages["t4-vb"]=e.languages["t4-templating"].createT4("vbnet")}jW.displayName="tap";jW.aliases=[];function jW(e){e.register(KT),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"}}}HW.displayName="tcl";HW.aliases=[];function HW(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:/[{}()\[\]]/}}VW.displayName="tt2";VW.aliases=[];function VW(e){e.register(Dr),e.register(Js),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)}WW.displayName="toml";WW.aliases=[];function WW(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)}QW.displayName="tremor";QW.aliases=["trickle","troy"];function QW(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)}qW.displayName="typoscript";qW.aliases=["tsconfig"];function qW(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)}GW.displayName="unrealscript";GW.aliases=["uc","uscript"];function GW(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}YW.displayName="uorazor";YW.aliases=[];function YW(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:/[()\[\]{}:.,]/}}ZW.displayName="v";ZW.aliases=[];function ZW(e){e.register(Dr),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)}XW.displayName="vala";XW.aliases=[];function XW(e){e.register(Dr),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]+$/}}})}KW.displayName="velocity";KW.aliases=[];function KW(e){e.register(Is),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)}JW.displayName="verilog";JW.aliases=[];function JW(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:/[[\];(),.:]/}}eQ.displayName="vhdl";eQ.aliases=[];function eQ(e){e.languages.vhdl={comment:/--.+/,"vhdl-vectors":{pattern:/\b[oxb]"[\da-f_]+"|"[01uxzwlh-]+"/i,alias:"number"},"quoted-function":{pattern:/"\S+?"(?=\()/,alias:"function"},string:/"(?:[^\\"\r\n]|\\(?:\r\n|[\s\S]))*"/,attribute:{pattern:/\b'\w+/,alias:"attr-name"},keyword:/\b(?:access|after|alias|all|architecture|array|assert|attribute|begin|block|body|buffer|bus|case|component|configuration|constant|disconnect|downto|else|elsif|end|entity|exit|file|for|function|generate|generic|group|guarded|if|impure|in|inertial|inout|is|label|library|linkage|literal|loop|map|new|next|null|of|on|open|others|out|package|port|postponed|private|procedure|process|pure|range|record|register|reject|report|return|select|severity|shared|signal|subtype|then|to|transport|type|unaffected|units|until|use|variable|view|wait|when|while|with)\b/i,boolean:/\b(?:false|true)\b/i,function:/\w+(?=\()/,number:/'[01uxzwlh-]'|\b(?:\d+#[\da-f_.]+#|\d[\d_.]*)(?:e[-+]?\d+)?/i,operator:/[<>]=?|:=|[-+*/&=]|\b(?:abs|and|mod|nand|nor|not|or|rem|rol|ror|sla|sll|sra|srl|xnor|xor)\b/i,punctuation:/[{}[\];(),.:]/}}tQ.displayName="vim";tQ.aliases=[];function tQ(e){e.languages.vim={string:/"(?:[^"\\\r\n]|\\.)*"|'(?:[^'\r\n]|'')*'/,comment:/".*/,function:/\b\w+(?=\()/,keyword:/\b(?:N|Next|P|Print|X|XMLent|XMLns|ab|abbreviate|abc|abclear|abo|aboveleft|al|all|ar|arga|argadd|argd|argdelete|argdo|arge|argedit|argg|argglobal|argl|arglocal|args|argu|argument|as|ascii|b|bN|bNext|ba|bad|badd|ball|bd|bdelete|be|bel|belowright|bf|bfirst|bl|blast|bm|bmodified|bn|bnext|bo|botright|bp|bprevious|br|brea|break|breaka|breakadd|breakd|breakdel|breakl|breaklist|brewind|bro|browse|bufdo|buffer|buffers|bun|bunload|bw|bwipeout|c|cN|cNext|cNfcNfile|ca|cabbrev|cabc|cabclear|cad|caddb|caddbuffer|caddexpr|caddf|caddfile|cal|call|cat|catch|cb|cbuffer|cc|ccl|cclose|cd|ce|center|cex|cexpr|cf|cfile|cfir|cfirst|cg|cgetb|cgetbuffer|cgete|cgetexpr|cgetfile|change|changes|chd|chdir|che|checkpath|checkt|checktime|cl|cla|clast|clist|clo|close|cmapc|cmapclear|cn|cnew|cnewer|cnext|cnf|cnfile|cnorea|cnoreabbrev|co|col|colder|colo|colorscheme|comc|comclear|comp|compiler|con|conf|confirm|continue|cope|copen|copy|cp|cpf|cpfile|cprevious|cq|cquit|cr|crewind|cu|cuna|cunabbrev|cunmap|cw|cwindow|d|debugg|debuggreedy|delc|delcommand|delete|delf|delfunction|delm|delmarks|di|diffg|diffget|diffoff|diffpatch|diffpu|diffput|diffsplit|diffthis|diffu|diffupdate|dig|digraphs|display|dj|djump|dl|dlist|dr|drop|ds|dsearch|dsp|dsplit|e|earlier|echoe|echoerr|echom|echomsg|echon|edit|el|else|elsei|elseif|em|emenu|en|endf|endfo|endfor|endfun|endfunction|endif|endt|endtry|endw|endwhile|ene|enew|ex|exi|exit|exu|exusage|f|file|files|filetype|fin|fina|finally|find|fini|finish|fir|first|fix|fixdel|fo|fold|foldc|foldclose|foldd|folddoc|folddoclosed|folddoopen|foldo|foldopen|for|fu|fun|function|go|goto|gr|grep|grepa|grepadd|h|ha|hardcopy|help|helpf|helpfind|helpg|helpgrep|helpt|helptags|hid|hide|his|history|ia|iabbrev|iabc|iabclear|if|ij|ijump|il|ilist|imapc|imapclear|in|inorea|inoreabbrev|isearch|isp|isplit|iu|iuna|iunabbrev|iunmap|j|join|ju|jumps|k|kee|keepalt|keepj|keepjumps|keepmarks|l|lN|lNext|lNf|lNfile|la|lad|laddb|laddbuffer|laddexpr|laddf|laddfile|lan|language|last|later|lb|lbuffer|lc|lcd|lch|lchdir|lcl|lclose|left|lefta|leftabove|let|lex|lexpr|lf|lfile|lfir|lfirst|lg|lgetb|lgetbuffer|lgete|lgetexpr|lgetfile|lgr|lgrep|lgrepa|lgrepadd|lh|lhelpgrep|list|ll|lla|llast|lli|llist|lm|lmak|lmake|lmap|lmapc|lmapclear|ln|lne|lnew|lnewer|lnext|lnf|lnfile|lnoremap|lo|loadview|loc|lockmarks|lockv|lockvar|lol|lolder|lop|lopen|lp|lpf|lpfile|lprevious|lr|lrewind|ls|lt|ltag|lu|lunmap|lv|lvimgrep|lvimgrepa|lvimgrepadd|lw|lwindow|m|ma|mak|make|mark|marks|mat|match|menut|menutranslate|mk|mkexrc|mks|mksession|mksp|mkspell|mkv|mkvie|mkview|mkvimrc|mod|mode|move|mz|mzf|mzfile|mzscheme|n|nbkey|new|next|nmapc|nmapclear|noh|nohlsearch|norea|noreabbrev|nu|number|nun|nunmap|o|omapc|omapclear|on|only|open|opt|options|ou|ounmap|p|pc|pclose|pe|ped|pedit|perl|perld|perldo|po|pop|popu|popup|pp|ppop|pre|preserve|prev|previous|print|prof|profd|profdel|profile|promptf|promptfind|promptr|promptrepl|ps|psearch|ptN|ptNext|pta|ptag|ptf|ptfirst|ptj|ptjump|ptl|ptlast|ptn|ptnext|ptp|ptprevious|ptr|ptrewind|pts|ptselect|pu|put|pw|pwd|py|pyf|pyfile|python|q|qa|qall|quit|quita|quitall|r|read|rec|recover|red|redi|redir|redo|redr|redraw|redraws|redrawstatus|reg|registers|res|resize|ret|retab|retu|return|rew|rewind|ri|right|rightb|rightbelow|ru|rub|ruby|rubyd|rubydo|rubyf|rubyfile|runtime|rv|rviminfo|sN|sNext|sa|sal|sall|san|sandbox|sargument|sav|saveas|sb|sbN|sbNext|sba|sball|sbf|sbfirst|sbl|sblast|sbm|sbmodified|sbn|sbnext|sbp|sbprevious|sbr|sbrewind|sbuffer|scrip|scripte|scriptencoding|scriptnames|se|set|setf|setfiletype|setg|setglobal|setl|setlocal|sf|sfind|sfir|sfirst|sh|shell|sign|sil|silent|sim|simalt|sl|sla|slast|sleep|sm|smagic|smap|smapc|smapclear|sme|smenu|sn|snext|sni|sniff|sno|snomagic|snor|snoremap|snoreme|snoremenu|so|sor|sort|source|sp|spe|spelld|spelldump|spellgood|spelli|spellinfo|spellr|spellrepall|spellu|spellundo|spellw|spellwrong|split|spr|sprevious|sre|srewind|st|sta|stag|star|startg|startgreplace|startinsert|startr|startreplace|stj|stjump|stop|stopi|stopinsert|sts|stselect|sun|sunhide|sunm|sunmap|sus|suspend|sv|sview|syncbind|t|tN|tNext|ta|tab|tabN|tabNext|tabc|tabclose|tabd|tabdo|tabe|tabedit|tabf|tabfind|tabfir|tabfirst|tabl|tablast|tabm|tabmove|tabn|tabnew|tabnext|tabo|tabonly|tabp|tabprevious|tabr|tabrewind|tabs|tag|tags|tc|tcl|tcld|tcldo|tclf|tclfile|te|tearoff|tf|tfirst|th|throw|tj|tjump|tl|tlast|tm|tmenu|tn|tnext|to|topleft|tp|tprevious|tr|trewind|try|ts|tselect|tu|tunmenu|u|una|unabbreviate|undo|undoj|undojoin|undol|undolist|unh|unhide|unlet|unlo|unlockvar|unm|unmap|up|update|ve|verb|verbose|version|vert|vertical|vi|vie|view|vim|vimgrep|vimgrepa|vimgrepadd|visual|viu|viusage|vmapc|vmapclear|vne|vnew|vs|vsplit|vu|vunmap|w|wN|wNext|wa|wall|wh|while|win|winc|wincmd|windo|winp|winpos|winsize|wn|wnext|wp|wprevious|wq|wqa|wqall|write|ws|wsverb|wv|wviminfo|x|xa|xall|xit|xm|xmap|xmapc|xmapclear|xme|xmenu|xn|xnoremap|xnoreme|xnoremenu|xu|xunmap|y|yank)\b/,builtin:/\b(?:acd|ai|akm|aleph|allowrevins|altkeymap|ambiwidth|ambw|anti|antialias|arab|arabic|arabicshape|ari|arshape|autochdir|autocmd|autoindent|autoread|autowrite|autowriteall|aw|awa|background|backspace|backup|backupcopy|backupdir|backupext|backupskip|balloondelay|ballooneval|balloonexpr|bdir|bdlay|beval|bex|bexpr|bg|bh|bin|binary|biosk|bioskey|bk|bkc|bomb|breakat|brk|browsedir|bs|bsdir|bsk|bt|bufhidden|buflisted|buftype|casemap|ccv|cdpath|cedit|cfu|ch|charconvert|ci|cin|cindent|cink|cinkeys|cino|cinoptions|cinw|cinwords|clipboard|cmdheight|cmdwinheight|cmp|cms|columns|com|comments|commentstring|compatible|complete|completefunc|completeopt|consk|conskey|copyindent|cot|cpo|cpoptions|cpt|cscopepathcomp|cscopeprg|cscopequickfix|cscopetag|cscopetagorder|cscopeverbose|cspc|csprg|csqf|cst|csto|csverb|cuc|cul|cursorcolumn|cursorline|cwh|debug|deco|def|define|delcombine|dex|dg|dict|dictionary|diff|diffexpr|diffopt|digraph|dip|dir|directory|dy|ea|ead|eadirection|eb|ed|edcompatible|ef|efm|ei|ek|enc|encoding|endofline|eol|ep|equalalways|equalprg|errorbells|errorfile|errorformat|esckeys|et|eventignore|expandtab|exrc|fcl|fcs|fdc|fde|fdi|fdl|fdls|fdm|fdn|fdo|fdt|fen|fenc|fencs|fex|ff|ffs|fileencoding|fileencodings|fileformat|fileformats|fillchars|fk|fkmap|flp|fml|fmr|foldcolumn|foldenable|foldexpr|foldignore|foldlevel|foldlevelstart|foldmarker|foldmethod|foldminlines|foldnestmax|foldtext|formatexpr|formatlistpat|formatoptions|formatprg|fp|fs|fsync|ft|gcr|gd|gdefault|gfm|gfn|gfs|gfw|ghr|gp|grepformat|grepprg|gtl|gtt|guicursor|guifont|guifontset|guifontwide|guiheadroom|guioptions|guipty|guitablabel|guitabtooltip|helpfile|helpheight|helplang|hf|hh|hi|hidden|highlight|hk|hkmap|hkmapp|hkp|hl|hlg|hls|hlsearch|ic|icon|iconstring|ignorecase|im|imactivatekey|imak|imc|imcmdline|imd|imdisable|imi|iminsert|ims|imsearch|inc|include|includeexpr|incsearch|inde|indentexpr|indentkeys|indk|inex|inf|infercase|insertmode|invacd|invai|invakm|invallowrevins|invaltkeymap|invanti|invantialias|invar|invarab|invarabic|invarabicshape|invari|invarshape|invautochdir|invautoindent|invautoread|invautowrite|invautowriteall|invaw|invawa|invbackup|invballooneval|invbeval|invbin|invbinary|invbiosk|invbioskey|invbk|invbl|invbomb|invbuflisted|invcf|invci|invcin|invcindent|invcompatible|invconfirm|invconsk|invconskey|invcopyindent|invcp|invcscopetag|invcscopeverbose|invcst|invcsverb|invcuc|invcul|invcursorcolumn|invcursorline|invdeco|invdelcombine|invdg|invdiff|invdigraph|invdisable|invea|inveb|inved|invedcompatible|invek|invendofline|inveol|invequalalways|inverrorbells|invesckeys|invet|invex|invexpandtab|invexrc|invfen|invfk|invfkmap|invfoldenable|invgd|invgdefault|invguipty|invhid|invhidden|invhk|invhkmap|invhkmapp|invhkp|invhls|invhlsearch|invic|invicon|invignorecase|invim|invimc|invimcmdline|invimd|invincsearch|invinf|invinfercase|invinsertmode|invis|invjoinspaces|invjs|invlazyredraw|invlbr|invlinebreak|invlisp|invlist|invloadplugins|invlpl|invlz|invma|invmacatsui|invmagic|invmh|invml|invmod|invmodeline|invmodifiable|invmodified|invmore|invmousef|invmousefocus|invmousehide|invnu|invnumber|invodev|invopendevice|invpaste|invpi|invpreserveindent|invpreviewwindow|invprompt|invpvw|invreadonly|invremap|invrestorescreen|invrevins|invri|invrightleft|invrightleftcmd|invrl|invrlc|invro|invrs|invru|invruler|invsb|invsc|invscb|invscrollbind|invscs|invsecure|invsft|invshellslash|invshelltemp|invshiftround|invshortname|invshowcmd|invshowfulltag|invshowmatch|invshowmode|invsi|invsm|invsmartcase|invsmartindent|invsmarttab|invsmd|invsn|invsol|invspell|invsplitbelow|invsplitright|invspr|invsr|invssl|invsta|invstartofline|invstmp|invswapfile|invswf|invta|invtagbsearch|invtagrelative|invtagstack|invtbi|invtbidi|invtbs|invtermbidi|invterse|invtextauto|invtextmode|invtf|invtgst|invtildeop|invtimeout|invtitle|invto|invtop|invtr|invttimeout|invttybuiltin|invttyfast|invtx|invvb|invvisualbell|invwa|invwarn|invwb|invweirdinvert|invwfh|invwfw|invwildmenu|invwinfixheight|invwinfixwidth|invwiv|invwmnu|invwrap|invwrapscan|invwrite|invwriteany|invwritebackup|invws|isf|isfname|isi|isident|isk|iskeyword|isprint|joinspaces|js|key|keymap|keymodel|keywordprg|km|kmp|kp|langmap|langmenu|laststatus|lazyredraw|lbr|lcs|linebreak|lines|linespace|lisp|lispwords|listchars|loadplugins|lpl|lsp|lz|macatsui|magic|makeef|makeprg|matchpairs|matchtime|maxcombine|maxfuncdepth|maxmapdepth|maxmem|maxmempattern|maxmemtot|mco|mef|menuitems|mfd|mh|mis|mkspellmem|ml|mls|mm|mmd|mmp|mmt|modeline|modelines|modifiable|modified|more|mouse|mousef|mousefocus|mousehide|mousem|mousemodel|mouses|mouseshape|mouset|mousetime|mp|mps|msm|mzq|mzquantum|nf|noacd|noai|noakm|noallowrevins|noaltkeymap|noanti|noantialias|noar|noarab|noarabic|noarabicshape|noari|noarshape|noautochdir|noautoindent|noautoread|noautowrite|noautowriteall|noaw|noawa|nobackup|noballooneval|nobeval|nobin|nobinary|nobiosk|nobioskey|nobk|nobl|nobomb|nobuflisted|nocf|noci|nocin|nocindent|nocompatible|noconfirm|noconsk|noconskey|nocopyindent|nocp|nocscopetag|nocscopeverbose|nocst|nocsverb|nocuc|nocul|nocursorcolumn|nocursorline|nodeco|nodelcombine|nodg|nodiff|nodigraph|nodisable|noea|noeb|noed|noedcompatible|noek|noendofline|noeol|noequalalways|noerrorbells|noesckeys|noet|noex|noexpandtab|noexrc|nofen|nofk|nofkmap|nofoldenable|nogd|nogdefault|noguipty|nohid|nohidden|nohk|nohkmap|nohkmapp|nohkp|nohls|noic|noicon|noignorecase|noim|noimc|noimcmdline|noimd|noincsearch|noinf|noinfercase|noinsertmode|nois|nojoinspaces|nojs|nolazyredraw|nolbr|nolinebreak|nolisp|nolist|noloadplugins|nolpl|nolz|noma|nomacatsui|nomagic|nomh|noml|nomod|nomodeline|nomodifiable|nomodified|nomore|nomousef|nomousefocus|nomousehide|nonu|nonumber|noodev|noopendevice|nopaste|nopi|nopreserveindent|nopreviewwindow|noprompt|nopvw|noreadonly|noremap|norestorescreen|norevins|nori|norightleft|norightleftcmd|norl|norlc|noro|nors|noru|noruler|nosb|nosc|noscb|noscrollbind|noscs|nosecure|nosft|noshellslash|noshelltemp|noshiftround|noshortname|noshowcmd|noshowfulltag|noshowmatch|noshowmode|nosi|nosm|nosmartcase|nosmartindent|nosmarttab|nosmd|nosn|nosol|nospell|nosplitbelow|nosplitright|nospr|nosr|nossl|nosta|nostartofline|nostmp|noswapfile|noswf|nota|notagbsearch|notagrelative|notagstack|notbi|notbidi|notbs|notermbidi|noterse|notextauto|notextmode|notf|notgst|notildeop|notimeout|notitle|noto|notop|notr|nottimeout|nottybuiltin|nottyfast|notx|novb|novisualbell|nowa|nowarn|nowb|noweirdinvert|nowfh|nowfw|nowildmenu|nowinfixheight|nowinfixwidth|nowiv|nowmnu|nowrap|nowrapscan|nowrite|nowriteany|nowritebackup|nows|nrformats|numberwidth|nuw|odev|oft|ofu|omnifunc|opendevice|operatorfunc|opfunc|osfiletype|pa|para|paragraphs|paste|pastetoggle|patchexpr|patchmode|path|pdev|penc|pex|pexpr|pfn|ph|pheader|pi|pm|pmbcs|pmbfn|popt|preserveindent|previewheight|previewwindow|printdevice|printencoding|printexpr|printfont|printheader|printmbcharset|printmbfont|printoptions|prompt|pt|pumheight|pvh|pvw|qe|quoteescape|readonly|remap|report|restorescreen|revins|rightleft|rightleftcmd|rl|rlc|ro|rs|rtp|ruf|ruler|rulerformat|runtimepath|sbo|sc|scb|scr|scroll|scrollbind|scrolljump|scrolloff|scrollopt|scs|sect|sections|secure|sel|selection|selectmode|sessionoptions|sft|shcf|shellcmdflag|shellpipe|shellquote|shellredir|shellslash|shelltemp|shelltype|shellxquote|shiftround|shiftwidth|shm|shortmess|shortname|showbreak|showcmd|showfulltag|showmatch|showmode|showtabline|shq|si|sidescroll|sidescrolloff|siso|sj|slm|smartcase|smartindent|smarttab|smc|smd|softtabstop|sol|spc|spell|spellcapcheck|spellfile|spelllang|spellsuggest|spf|spl|splitbelow|splitright|sps|sr|srr|ss|ssl|ssop|stal|startofline|statusline|stl|stmp|su|sua|suffixes|suffixesadd|sw|swapfile|swapsync|swb|swf|switchbuf|sws|sxq|syn|synmaxcol|syntax|t_AB|t_AF|t_AL|t_CS|t_CV|t_Ce|t_Co|t_Cs|t_DL|t_EI|t_F1|t_F2|t_F3|t_F4|t_F5|t_F6|t_F7|t_F8|t_F9|t_IE|t_IS|t_K1|t_K3|t_K4|t_K5|t_K6|t_K7|t_K8|t_K9|t_KA|t_KB|t_KC|t_KD|t_KE|t_KF|t_KG|t_KH|t_KI|t_KJ|t_KK|t_KL|t_RI|t_RV|t_SI|t_Sb|t_Sf|t_WP|t_WS|t_ZH|t_ZR|t_al|t_bc|t_cd|t_ce|t_cl|t_cm|t_cs|t_da|t_db|t_dl|t_fs|t_k1|t_k2|t_k3|t_k4|t_k5|t_k6|t_k7|t_k8|t_k9|t_kB|t_kD|t_kI|t_kN|t_kP|t_kb|t_kd|t_ke|t_kh|t_kl|t_kr|t_ks|t_ku|t_le|t_mb|t_md|t_me|t_mr|t_ms|t_nd|t_op|t_se|t_so|t_sr|t_te|t_ti|t_ts|t_ue|t_us|t_ut|t_vb|t_ve|t_vi|t_vs|t_xs|tabline|tabpagemax|tabstop|tagbsearch|taglength|tagrelative|tagstack|tal|tb|tbi|tbidi|tbis|tbs|tenc|term|termbidi|termencoding|terse|textauto|textmode|textwidth|tgst|thesaurus|tildeop|timeout|timeoutlen|title|titlelen|titleold|titlestring|toolbar|toolbariconsize|top|tpm|tsl|tsr|ttimeout|ttimeoutlen|ttm|tty|ttybuiltin|ttyfast|ttym|ttymouse|ttyscroll|ttytype|tw|tx|uc|ul|undolevels|updatecount|updatetime|ut|vb|vbs|vdir|verbosefile|vfile|viewdir|viewoptions|viminfo|virtualedit|visualbell|vop|wak|warn|wb|wc|wcm|wd|weirdinvert|wfh|wfw|whichwrap|wi|wig|wildchar|wildcharm|wildignore|wildmenu|wildmode|wildoptions|wim|winaltkeys|window|winfixheight|winfixwidth|winheight|winminheight|winminwidth|winwidth|wiv|wiw|wm|wmh|wmnu|wmw|wop|wrap|wrapmargin|wrapscan|writeany|writebackup|writedelay|ww)\b/,number:/\b(?:0x[\da-f]+|\d+(?:\.\d+)?)\b/i,operator:/\|\||&&|[-+.]=?|[=!](?:[=~][#?]?)?|[<>]=?[#?]?|[*\/%?]|\b(?:is(?:not)?)\b/,punctuation:/[{}[\](),;:]/}}nQ.displayName="visual-basic";nQ.aliases=["vb","vba"];function nQ(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"]}rQ.displayName="warpscript";rQ.aliases=[];function rQ(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/}}iQ.displayName="wasm";iQ.aliases=[];function iQ(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:/[()]/}}aQ.displayName="web-idl";aQ.aliases=["webidl"];function aQ(e){(function(t){var n=/(?:\B-|\b_|\b)[A-Za-z][\w-]*(?![\w-])/.source,r="(?:"+/\b(?:unsigned\s+)?long\s+long(?![\w-])/.source+"|"+/\b(?:unrestricted|unsigned)\s+[a-z]+(?![\w-])/.source+"|"+/(?!(?:unrestricted|unsigned)\b)/.source+n+/(?:\s*<(?:[^<>]|<[^<>]*>)*>)?/.source+")"+/(?:\s*\?)?/.source,i={};t.languages["web-idl"]={comment:{pattern:/\/\/.*|\/\*[\s\S]*?\*\//,greedy:!0},string:{pattern:/"[^"]*"/,greedy:!0},namespace:{pattern:RegExp(/(\bnamespace\s+)/.source+n),lookbehind:!0},"class-name":[{pattern:/(^|[^\w-])(?:iterable|maplike|setlike)\s*<(?:[^<>]|<[^<>]*>)*>/,lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:attribute|const|deleter|getter|optional|setter)\s+)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp("("+/\bcallback\s+/.source+n+/\s*=\s*/.source+")"+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\btypedef\b\s*)/.source+r),lookbehind:!0,inside:i},{pattern:RegExp(/(\b(?:callback|dictionary|enum|interface(?:\s+mixin)?)\s+)(?!(?:interface|mixin)\b)/.source+n),lookbehind:!0},{pattern:RegExp(/(:\s*)/.source+n),lookbehind:!0},RegExp(n+/(?=\s+(?:implements|includes)\b)/.source),{pattern:RegExp(/(\b(?:implements|includes)\s+)/.source+n),lookbehind:!0},{pattern:RegExp(r+"(?="+/\s*(?:\.{3}\s*)?/.source+n+/\s*[(),;=]/.source+")"),inside:i}],builtin:/\b(?:ArrayBuffer|BigInt64Array|BigUint64Array|ByteString|DOMString|DataView|Float32Array|Float64Array|FrozenArray|Int16Array|Int32Array|Int8Array|ObservableArray|Promise|USVString|Uint16Array|Uint32Array|Uint8Array|Uint8ClampedArray)\b/,keyword:[/\b(?:async|attribute|callback|const|constructor|deleter|dictionary|enum|getter|implements|includes|inherit|interface|mixin|namespace|null|optional|or|partial|readonly|required|setter|static|stringifier|typedef|unrestricted)\b/,/\b(?:any|bigint|boolean|byte|double|float|iterable|long|maplike|object|octet|record|sequence|setlike|short|symbol|undefined|unsigned|void)\b/],boolean:/\b(?:false|true)\b/,number:{pattern:/(^|[^\w-])-?(?:0x[0-9a-f]+|(?:\d+(?:\.\d*)?|\.\d+)(?:e[+-]?\d+)?|NaN|Infinity)(?![\w-])/i,lookbehind:!0},operator:/\.{3}|[=:?<>-]/,punctuation:/[(){}[\].,;]/};for(var a in t.languages["web-idl"])a!=="class-name"&&(i[a]=t.languages["web-idl"][a]);t.languages.webidl=t.languages["web-idl"]})(e)}sQ.displayName="wgsl";sQ.aliases=[];function sQ(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:/[@(){}[\],;<>:.]/}}oQ.displayName="wiki";oQ.aliases=[];function oQ(e){e.register(Is),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}}}})}lQ.displayName="wolfram";lQ.aliases=["mathematica","nb","wl"];function lQ(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}uQ.displayName="wren";uQ.aliases=[];function uQ(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]+/}}}cQ.displayName="xeora";cQ.aliases=["xeoracube"];function cQ(e){e.register(Is),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)}dQ.displayName="xml-doc";dQ.aliases=[];function dQ(e){e.register(Is),function(t){function n(s,o){t.languages[s]&&t.languages.insertBefore(s,"comment",{"doc-comment":o})}var r=t.languages.markup.tag,i={pattern:/\/\/\/.*/,greedy:!0,alias:"comment",inside:{tag:r}},a={pattern:/'''.*/,greedy:!0,alias:"comment",inside:{tag:r}};n("csharp",i),n("fsharp",i),n("vbnet",a)}(e)}fQ.displayName="xojo";fQ.aliases=[];function fQ(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:/[.,;:()]/}}hQ.displayName="xquery";hQ.aliases=[];function hQ(e){e.register(Is),function(t){t.languages.xquery=t.languages.extend("markup",{"xquery-comment":{pattern:/\(:[\s\S]*?:\)/,greedy:!0,alias:"comment"},string:{pattern:/(["'])(?:\1\1|(?!\1)[\s\S])*\1/,greedy:!0},extension:{pattern:/\(#.+?#\)/,alias:"symbol"},variable:/\$[-\w:]+/,axis:{pattern:/(^|[^-])(?:ancestor(?:-or-self)?|attribute|child|descendant(?:-or-self)?|following(?:-sibling)?|parent|preceding(?:-sibling)?|self)(?=::)/,lookbehind:!0,alias:"operator"},"keyword-operator":{pattern:/(^|[^:-])\b(?:and|castable as|div|eq|except|ge|gt|idiv|instance of|intersect|is|le|lt|mod|ne|or|union)\b(?=$|[^:-])/,lookbehind:!0,alias:"operator"},keyword:{pattern:/(^|[^:-])\b(?:as|ascending|at|base-uri|boundary-space|case|cast as|collation|construction|copy-namespaces|declare|default|descending|else|empty (?:greatest|least)|encoding|every|external|for|function|if|import|in|inherit|lax|let|map|module|namespace|no-inherit|no-preserve|option|order(?: by|ed|ing)?|preserve|return|satisfies|schema|some|stable|strict|strip|then|to|treat as|typeswitch|unordered|validate|variable|version|where|xquery)\b(?=$|[^:-])/,lookbehind:!0},function:/[\w-]+(?::[\w-]+)*(?=\s*\()/,"xquery-element":{pattern:/(element\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"tag"},"xquery-attribute":{pattern:/(attribute\s+)[\w-]+(?::[\w-]+)*/,lookbehind:!0,alias:"attr-name"},builtin:{pattern:/(^|[^:-])\b(?:attribute|comment|document|element|processing-instruction|text|xs:(?:ENTITIES|ENTITY|ID|IDREFS?|NCName|NMTOKENS?|NOTATION|Name|QName|anyAtomicType|anyType|anyURI|base64Binary|boolean|byte|date|dateTime|dayTimeDuration|decimal|double|duration|float|gDay|gMonth|gMonthDay|gYear|gYearMonth|hexBinary|int|integer|language|long|negativeInteger|nonNegativeInteger|nonPositiveInteger|normalizedString|positiveInteger|short|string|time|token|unsigned(?:Byte|Int|Long|Short)|untyped(?:Atomic)?|yearMonthDuration))\b(?=$|[^:-])/,lookbehind:!0},number:/\b\d+(?:\.\d+)?(?:E[+-]?\d+)?/,operator:[/[+*=?|@]|\.\.?|:=|!=|<[=<]?|>[=>]?/,{pattern:/(\s)-(?=\s)/,lookbehind:!0}],punctuation:/[[\](){},;:/]/}),t.languages.xquery.tag.pattern=/<\/?(?!\d)[^\s>\/=$<%]+(?:\s+[^\s>\/=]+(?:=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+))?)*\s*\/?>/,t.languages.xquery.tag.inside["attr-value"].pattern=/=(?:("|')(?:\\[\s\S]|\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}|(?!\1)[^\\])*\1|[^\s'">=]+)/,t.languages.xquery.tag.inside["attr-value"].inside.punctuation=/^="|"$/,t.languages.xquery.tag.inside["attr-value"].inside.expression={pattern:/\{(?!\{)(?:\{(?:\{[^{}]*\}|[^{}])*\}|[^{}])+\}/,inside:t.languages.xquery,alias:"language-xquery"};var n=function(i){return typeof i=="string"?i:typeof i.content=="string"?i.content:i.content.map(n).join("")},r=function(i){for(var a=[],s=0;s0&&a[a.length-1].tagName===n(o.content[0].content[1])&&a.pop():o.content[o.content.length-1].content==="/>"||a.push({tagName:n(o.content[0].content[1]),openedBraces:0}):a.length>0&&o.type==="punctuation"&&o.content==="{"&&(!i[s+1]||i[s+1].type!=="punctuation"||i[s+1].content!=="{")&&(!i[s-1]||i[s-1].type!=="plain-text"||i[s-1].content!=="{")?a[a.length-1].openedBraces++:a.length>0&&a[a.length-1].openedBraces>0&&o.type==="punctuation"&&o.content==="}"?a[a.length-1].openedBraces--:o.type!=="comment"&&(l=!0)),(l||typeof o=="string")&&a.length>0&&a[a.length-1].openedBraces===0){var u=n(o);s0&&(typeof i[s-1]=="string"||i[s-1].type==="plain-text")&&(u=n(i[s-1])+u,i.splice(s-1,1),s--),/^\s+$/.test(u)?i[s]=u:i[s]=new t.Token("plain-text",u,null,u)}o.content&&typeof o.content!="string"&&r(o.content)}};t.hooks.add("after-tokenize",function(i){i.language==="xquery"&&r(i.tokens)})}(e)}pQ.displayName="yang";pQ.aliases=[];function pQ(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:/[{};:]/}}mQ.displayName="zig";mQ.aliases=[];function mQ(e){(function(t){function n(u){return function(){return u}}var r=/\b(?:align|allowzero|and|anyframe|anytype|asm|async|await|break|cancel|catch|comptime|const|continue|defer|else|enum|errdefer|error|export|extern|fn|for|if|inline|linksection|nakedcc|noalias|nosuspend|null|or|orelse|packed|promise|pub|resume|return|stdcallcc|struct|suspend|switch|test|threadlocal|try|undefined|union|unreachable|usingnamespace|var|volatile|while)\b/,i="\\b(?!"+r.source+")(?!\\d)\\w+\\b",a=/align\s*\((?:[^()]|\([^()]*\))*\)/.source,s=/(?:\?|\bpromise->|(?:\[[^[\]]*\]|\*(?!\*)|\*\*)(?:\s*|\s*const\b|\s*volatile\b|\s*allowzero\b)*)/.source.replace(//g,n(a)),o=/(?:\bpromise\b|(?:\berror\.)?(?:\.)*(?!\s+))/.source.replace(//g,n(i)),l="(?!\\s)(?:!?\\s*(?:"+s+"\\s*)*"+o+")+";t.languages.zig={comment:[{pattern:/\/\/[/!].*/,alias:"doc-comment"},/\/{2}.*/],string:[{pattern:/(^|[^\\@])c?"(?:[^"\\\r\n]|\\.)*"/,lookbehind:!0,greedy:!0},{pattern:/([\r\n])([ \t]+c?\\{2}).*(?:(?:\r\n?|\n)\2.*)*/,lookbehind:!0,greedy:!0}],char:{pattern:/(^|[^\\])'(?:[^'\\\r\n]|[\uD800-\uDFFF]{2}|\\(?:.|x[a-fA-F\d]{2}|u\{[a-fA-F\d]{1,6}\}))'/,lookbehind:!0,greedy:!0},builtin:/\B@(?!\d)\w+(?=\s*\()/,label:{pattern:/(\b(?:break|continue)\s*:\s*)\w+\b|\b(?!\d)\w+\b(?=\s*:\s*(?:\{|while\b))/,lookbehind:!0},"class-name":[/\b(?!\d)\w+(?=\s*=\s*(?:(?:extern|packed)\s+)?(?:enum|struct|union)\s*[({])/,{pattern:RegExp(/(:\s*)(?=\s*(?:\s*)?[=;,)])|(?=\s*(?:\s*)?\{)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null},{pattern:RegExp(/(\)\s*)(?=\s*(?:\s*)?;)/.source.replace(//g,n(l)).replace(//g,n(a))),lookbehind:!0,inside:null}],"builtin-type":{pattern:/\b(?:anyerror|bool|c_u?(?:int|long|longlong|short)|c_longdouble|c_void|comptime_(?:float|int)|f(?:16|32|64|128)|[iu](?:8|16|32|64|128|size)|noreturn|type|void)\b/,alias:"keyword"},keyword:r,function:/\b(?!\d)\w+(?=\s*\()/,number:/\b(?:0b[01]+|0o[0-7]+|0x[a-fA-F\d]+(?:\.[a-fA-F\d]*)?(?:[pP][+-]?[a-fA-F\d]+)?|\d+(?:\.\d*)?(?:[eE][+-]?\d+)?)\b/,boolean:/\b(?:false|true)\b/,operator:/\.[*?]|\.{2,3}|[-=]>|\*\*|\+\+|\|\||(?:<<|>>|[-+*]%|[-+*/%^&|<>!=])=?|[?~]/,punctuation:/[.:,;(){}[\]]/},t.languages.zig["class-name"].forEach(function(u){u.inside===null&&(u.inside=t.languages.zig)})})(e)}oe.register(Is);oe.register(P0);oe.register(Dr);oe.register(YI);oe.register(Ks);oe.register(Dz);oe.register(Nz);oe.register(Pz);oe.register(Mz);oe.register(Lz);oe.register($z);oe.register(Fz);oe.register(Bz);oe.register(tS);oe.register(Uz);oe.register(zz);oe.register(jz);oe.register(Hz);oe.register(Bd);oe.register(F1);oe.register(WI);oe.register(Vz);oe.register(Wz);oe.register(ZT);oe.register(KT);oe.register(JI);oe.register(Qz);oe.register(qz);oe.register(B1);oe.register(Gz);oe.register(Yz);oe.register(Zz);oe.register(Xz);oe.register(Kz);oe.register(Jz);oe.register(ej);oe.register(tj);oe.register(ek);oe.register(nj);oe.register(rj);oe.register(ij);oe.register(aj);oe.register(sj);oe.register(oj);oe.register(lj);oe.register(uj);oe.register(cj);oe.register(dj);oe.register(fj);oe.register(hj);oe.register(pj);oe.register(mj);oe.register(gj);oe.register(bj);oe.register(yj);oe.register(vj);oe.register(Oj);oe.register(Sj);oe.register(Ej);oe.register(wj);oe.register(xj);oe.register(Tj);oe.register(kj);oe.register(j1);oe.register(Cj);oe.register(Aj);oe.register(_j);oe.register(Rj);oe.register(Ij);oe.register(Dj);oe.register(Nj);oe.register(Pj);oe.register(Mj);oe.register(Lj);oe.register(QI);oe.register(Js);oe.register($j);oe.register(Fj);oe.register(Bj);oe.register(Uj);oe.register(zj);oe.register(jj);oe.register(Hj);oe.register(Vj);oe.register(Wj);oe.register(Qj);oe.register(XT);oe.register(qj);oe.register(Gj);oe.register(Yj);oe.register(Zj);oe.register(Xj);oe.register(Kj);oe.register(Jj);oe.register(eH);oe.register(tH);oe.register(nH);oe.register(rH);oe.register(iH);oe.register(aH);oe.register(sH);oe.register(oH);oe.register(lH);oe.register(uH);oe.register(cH);oe.register(dH);oe.register(fH);oe.register(hH);oe.register(pH);oe.register(qI);oe.register(mH);oe.register(gH);oe.register(bH);oe.register(yH);oe.register(XI);oe.register(a6);oe.register(vH);oe.register(OH);oe.register(SH);oe.register(nk);oe.register(EH);oe.register(wH);oe.register(xH);oe.register(TH);oe.register(kH);oe.register(CH);oe.register(eS);oe.register(AH);oe.register(_H);oe.register(RH);oe.register(IH);oe.register(DH);oe.register(NH);oe.register(PH);oe.register(MH);oe.register(GI);oe.register(LH);oe.register($H);oe.register(U1);oe.register(z1);oe.register(iS);oe.register(FH);oe.register(BH);oe.register(UH);oe.register(zH);oe.register(jH);oe.register(HH);oe.register(VH);oe.register(nS);oe.register(WH);oe.register(QH);oe.register(qH);oe.register(GH);oe.register(YH);oe.register(ZH);oe.register(XH);oe.register(KH);oe.register(JH);oe.register(ZI);oe.register(eV);oe.register(tV);oe.register(nV);oe.register(rV);oe.register(rk);oe.register(iV);oe.register(aV);oe.register(sV);oe.register(oV);oe.register(lV);oe.register(uV);oe.register(cV);oe.register(dV);oe.register(KI);oe.register(o6);oe.register(fV);oe.register(hV);oe.register(pV);oe.register(mV);oe.register(gV);oe.register(bV);oe.register(yV);oe.register(vV);oe.register(OV);oe.register(SV);oe.register(EV);oe.register(wV);oe.register(xV);oe.register(TV);oe.register(kV);oe.register(CV);oe.register(AV);oe.register(_V);oe.register(RV);oe.register(e6);oe.register(IV);oe.register(DV);oe.register(NV);oe.register(PV);oe.register(MV);oe.register(LV);oe.register($V);oe.register(FV);oe.register(BV);oe.register(UV);oe.register(zV);oe.register(jV);oe.register(t6);oe.register(HV);oe.register(VV);oe.register(WV);oe.register(QV);oe.register(qV);oe.register(GV);oe.register(YV);oe.register(ZV);oe.register(XV);oe.register(KV);oe.register(JV);oe.register(eW);oe.register(tW);oe.register(nW);oe.register(rW);oe.register(iW);oe.register(aW);oe.register(sW);oe.register(JT);oe.register(oW);oe.register(lW);oe.register(uW);oe.register(cW);oe.register(n6);oe.register(dW);oe.register(fW);oe.register(l6);oe.register(hW);oe.register(pW);oe.register(mW);oe.register(gW);oe.register(bW);oe.register(yW);oe.register(vW);oe.register(OW);oe.register(SW);oe.register(r6);oe.register(EW);oe.register(i6);oe.register(wW);oe.register(xW);oe.register(TW);oe.register(kW);oe.register(CW);oe.register(AW);oe.register(_W);oe.register(RW);oe.register(u6);oe.register(IW);oe.register(DW);oe.register(NW);oe.register(PW);oe.register(MW);oe.register(LW);oe.register($W);oe.register(FW);oe.register(s6);oe.register(BW);oe.register(ik);oe.register(UW);oe.register(tk);oe.register(zW);oe.register(jW);oe.register(HW);oe.register(VW);oe.register(WW);oe.register(QW);oe.register(qW);oe.register(GW);oe.register(YW);oe.register(ZW);oe.register(XW);oe.register(KW);oe.register(JW);oe.register(eQ);oe.register(tQ);oe.register(nQ);oe.register(rQ);oe.register(iQ);oe.register(aQ);oe.register(sQ);oe.register(oQ);oe.register(lQ);oe.register(uQ);oe.register(cQ);oe.register(dQ);oe.register(fQ);oe.register(hQ);oe.register(pQ);oe.register(mQ);function t9(){t9=function(i,a){return new n(i,void 0,a)};var e=RegExp.prototype,t=new WeakMap;function n(i,a,s){var o=new RegExp(i,a);return t.set(o,s||t.get(i)),h5(o,n.prototype)}function r(i,a){var s=t.get(a);return Object.keys(s).reduce(function(o,l){var u=s[l];if(typeof u=="number")o[l]=i[u];else{for(var c=0;i[u[c]]===void 0&&c+1]+)>/g,function(l,u){var c=s[u];return"$"+(Array.isArray(c)?c.join("$"):c)}))}if(typeof a=="function"){var o=this;return e[Symbol.replace].call(this,i,function(){var l=arguments;return typeof l[l.length-1]!="object"&&(l=[].slice.call(l)).push(r(l,o)),a.apply(this,l)})}return e[Symbol.replace].call(this,i,a)},t9.apply(this,arguments)}function h5(e,t){return h5=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},h5(e,t)}function vne(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 Vbt=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){Yo(r,"element",n)};function n(r,i,a){var s,o;if(a&&a.tagName==="pre"&&r.tagName==="code"){var l=(r==null||(s=r.data)==null?void 0:s.meta)||(r==null||(o=r.properties)==null?void 0:o.metastring)||"";r.properties.className?typeof r.properties.className=="boolean"?r.properties.className=[]:Array.isArray(r.properties.className)||(r.properties.className=[r.properties.className]):r.properties.className=[];var u,c,f=function(I){for(var A,D=r7(I.properties.className);!(A=D()).done;){var B=A.value;if(B.slice(0,9)==="language-")return B.slice(9).toLowerCase()}return null}(r);if(!f&&t.defaultLanguage&&r.properties.className.push("language-"+(f=t.defaultLanguage)),r.properties.className.push("code-highlight"),f)try{var h,g;g=(h=f)!=null&&h.includes("diff-")?f.split("-")[1]:f,u=e.highlight(Hy(r),g),a.properties.className=(a.properties.className||[]).concat("language-"+g)}catch(I){if(!t.ignoreMissing||!/Unknown language/.test(I.message))throw I;u=r}else u=r;u.children=(c=1,function I(A){return A.reduce(function(D,B){if(B.type==="text"){var L=B.value,F=(L.match(/\n/g)||"").length;if(F===0)B.position={start:{line:c,column:1},end:{line:c,column:1}},D.push(B);else for(var W,V=L.split(` -`),Z=r7(V.entries());!(W=Z()).done;){var Q=W.value,H=Q[0],J=Q[1];D.push({type:"text",value:H===V.length-1?J:J+` -`,position:{start:{line:c+H,column:1},end:{line:c+H,column:1}}})}return c+=F,D}if(Object.prototype.hasOwnProperty.call(B,"children")){var K=c;return B.children=I(B.children),D.push(B),B.position={start:{line:K,column:1},end:{line:c,column:1}},D}return D.push(B),D},[])})(u.children),u.position=u.children.length>0?{start:{line:u.children[0].position.start.line,column:0},end:{line:u.children[u.children.length-1].position.end.line,column:0}}:{start:{line:0,column:0},end:{line:0,column:0}};for(var b,S=function(I){var A=/{([\d,-]+)}/,D=I.split(",").map(function(F){return F.trim()}).join();if(A.test(D)){var B=A.exec(D)[1],L=bbt(B);return function(F){return L.includes(F+1)}}return function(){return!1}}(l),w=function(I){var A=t9(/showLineNumbers=(\d+)/i,{lines:1});if(A.test(I)){var D=A.exec(I);return Number(D.groups.lines)}return 1}(l),E=function(I){for(var A=new Array(I),D=0;D=B+1});L.children=F.children,!l.toLowerCase().includes("showLineNumbers".toLowerCase())&&!t.showLineNumbers||x.some(function(W){return l.toLowerCase().includes(W)})||(L.properties.line=[(B+w).toString()],L.properties.className.push("line-number")),S(B)&&L.properties.className.push("highlight-line"),(f==="diff"||(I=f)!=null&&I.includes("diff-"))&&Hy(L).substring(0,1)==="-"?L.properties.className.push("deleted"):(f==="diff"||(A=f)!=null&&A.includes("diff-"))&&Hy(L).substring(0,1)==="+"&&L.properties.className.push("inserted")},C=r7(E.entries());!(b=C()).done;)k();E.length>0&&Hy(E[E.length-1]).trim()===""&&E.pop(),r.children=E}}}},Wbt=Vbt(oe),o_={},n9={};function Qbt(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"]}}}),i9=ak(J1e,{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"]}}}),a9=ak(i9,{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"]}}}),eyt=ak(a9,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),Tne={css1:K1e,css2:J1e,css3:i9,"selectors-3":i9,"selectors-4":a9,latest:a9,progressive:eyt};function qE(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function tyt(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function GE(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var nyt={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},ryt={'"':!0,"'":!0},a7={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},iyt=6,s7="css-selector-parser parse error: ";function ayt(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,i=e.strict,a=i===void 0?!0:i,s=typeof n=="object"?n:Tne[n];s.baseSyntax&&(s=ak(Tne[s.baseSyntax],s));var o=s.tag?[!0,!!Xbt(s.tag).wildcard]:[!1,!1],l=o[0],u=o[1],c=!!s.ids,f=!!s.classNames,h=!!s.namespace,g=s.namespace&&(s.namespace===!0||s.namespace.wildcard===!0);if(h&&!l)throw new Error("".concat(s7,"Namespaces cannot be enabled while tags are disabled."));var b=!!r,S=s.combinators?One(s.combinators):o_,w=s.attributes?[!0,s.attributes.operators?One(s.attributes.operators):o_,s.attributes.caseSensitivityModifiers?qbt(s.attributes.caseSensitivityModifiers):n9,s.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,o_,n9,!1],E=w[0],x=w[1],k=w[2],C=w[3],I=C||Object.keys(k).length>0,A=s.pseudoClasses?[!0,s.pseudoClasses.definitions?Ene(s.pseudoClasses.definitions):WA,s.pseudoClasses.unknown==="accept"]:[!1,WA,!1],D=A[0],B=A[1],L=A[2],F=s.pseudoElements?[!0,s.pseudoElements.notation==="singleColon"||s.pseudoElements.notation==="both",!s.pseudoElements.notation||s.pseudoElements.notation==="doubleColon"||s.pseudoElements.notation==="both",s.pseudoElements.definitions?Ene(Array.isArray(s.pseudoElements.definitions)?{NoArgument:s.pseudoElements.definitions}:s.pseudoElements.definitions):WA,s.pseudoElements.unknown==="accept"]:[!1,!1,!1,WA,!1],W=F[0],V=F[1],Z=F[2],Q=F[3],H=F[4],J="",K=J.length,X=0,te="",z=function(ve){return te===ve},Te=function(){return z("*")||qE(te)},be=function(ve){X=ve,te=J.charAt(X)},ee=function(){X++,te=J.charAt(X)},ye=function(){var ve=te;return X++,te=J.charAt(X),ve};function Oe(ve){var De=Math.min(K-1,X),$e=new Error("".concat(s7).concat(ve," Pos: ").concat(De,"."));throw $e.position=De,$e.name="ParserError",$e}function ie(ve,De){if(!ve)return Oe(De)}var _e=function(){ie(X=K},qe=function(ve){ie(X=2&&Oe("Identifiers cannot start with two hyphens with strict mode on."),a7[te]&&Oe("Identifiers cannot start with hyphens followed by digits.");X0)return(t.commaSeparated?lz:cz)(e)}else return String(e)}const pyt=[];function myt(e,t){return(t.properties.className||pyt).includes(e.name)}function gyt(e,t){return t.properties.id===e.name}function byt(e,t){return e.name===t.tagName}function yyt(e,t){return function(n,r){let i=Cne(n,"tag");const a=Cne(r??"*","range"),s=[];let o=-1;for(;++o=Ane&&e.charCodeAt(t)<=Eyt;)u=u*10+(e.charCodeAt(t)-Ane),t++;return t===l?null:u}function o(){for(;ta<=n;if(t===0)return a=>a===n;if(t===1)return n<0?_ne.trueFunc:a=>a>=n;const r=Math.abs(t),i=(n%r+r)%r;return t>1?a=>a>=n&&a%r===i:a=>a<=n&&a%r===i}function Rne(e){return Tyt(wyt(e))}const kyt=Rne.default||Rne,Cyt=Ez("name",{handlers:{"any-link":Ayt,blank:_yt,checked:Ryt,dir:Iyt,disabled:nbe,empty:Dyt,enabled:Nyt,"first-child":Pyt,"first-of-type":Myt,has:Lyt,is:rbe,lang:Fyt,"last-child":Byt,"last-of-type":Uyt,not:zyt,"nth-child":jyt,"nth-last-child":Hyt,"nth-last-of-type":Vyt,"nth-of-type":Wyt,"only-child":Qyt,"only-of-type":qyt,optional:Gyt,"read-only":Yyt,"read-write":ibe,required:abe,root:Zyt,scope:Xyt},invalid:$yt,unknown:Kyt});function Ayt(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&w1(t,"href")}function ih(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function _yt(e,t){return!sbe(t,n);function n(r){return r.type==="element"||r.type==="text"&&!J0e(r)}}function Ryt(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&w1(t,"checked")):t.tagName==="option"?w1(t,"selected"):!1}function Iyt(e,t,n,r,i){return e.argument,e.argument.type,i.direction===e.argument.value}function nbe(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")&&w1(t,"disabled")}function Dyt(e,t){return!sbe(t,n);function n(r){return r.type==="element"||r.type==="text"}}function Nyt(e,t){return!nbe(e,t)}function Pyt(e,t,n,r,i){return ih(i,e),i.elementIndex===0}function Myt(e,t,n,r,i){return ih(i,e),i.typeIndex===0}function c6(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=kyt(n.a+"n+"+n.b),e._cachedFn=t}return t}function Lyt(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return gQ(a,{type:"root",children:t.children}),a.results.length>0}function $yt(){}function rbe(e,t,n,r,i){e.argument,e.argument.type;const a={...i,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return gQ(a,t),a.results[0]===t}function Fyt(e,t,n,r,i){return e.argument,e.argument.type,i.language!==""&&i.language!==void 0&&vyt(i.language,S1(e.argument.value)).length>0}function Byt(e,t,n,r,i){return ih(i,e),!!(i.elementCount&&i.elementIndex===i.elementCount-1)}function Uyt(e,t,n,r,i){return ih(i,e),typeof i.typeIndex=="number"&&typeof i.typeCount=="number"&&i.typeIndex===i.typeCount-1}function zyt(e,t,n,r,i){return!rbe(e,t,n,r,i)}function jyt(e,t,n,r,i){const a=c6(e);return ih(i,e),typeof i.elementIndex=="number"&&a(i.elementIndex)}function Hyt(e,t,n,r,i){const a=c6(e);return ih(i,e),!!(typeof i.elementCount=="number"&&typeof i.elementIndex=="number"&&a(i.elementCount-i.elementIndex-1))}function Vyt(e,t,n,r,i){const a=c6(e);return ih(i,e),typeof i.typeCount=="number"&&typeof i.typeIndex=="number"&&a(i.typeCount-1-i.typeIndex)}function Wyt(e,t,n,r,i){const a=c6(e);return ih(i,e),typeof i.typeIndex=="number"&&a(i.typeIndex)}function Qyt(e,t,n,r,i){return ih(i,e),i.elementCount===1}function qyt(e,t,n,r,i){return ih(i,e),i.typeCount===1}function Gyt(e,t){return!abe(e,t)}function Yyt(e,t,n,r,i){return!ibe(e,t,n,r,i)}function ibe(e,t,n,r,i){return t.tagName==="input"||t.tagName==="textarea"?!w1(t,"readOnly")&&!w1(t,"disabled"):!!i.editableOrEditingHost}function abe(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&w1(t,"required")}function Zyt(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 Xyt(e,t,n,r,i){return i.scopeElements.includes(t)}function sbe(e,t){const n=e.children;let r=-1;for(;++r"?"directChild":"descendant";l7(a,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}o.combinator===void 0?l7(a,"descendant",o):o.combinator==="~"&&l7(a,"generalSibling",o)}return a}function l_(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:evt}function Ine(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 obe(e,t,n,r,i,a){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const o=dyt(e,n);if(n.type==="element"){let l=e.rootQuery.rules;i&&i!==a&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&i===a)),s=nvt(e,l_(t,l),n,r,i)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&tvt(e,s,n,a),o(),s}function rvt(e,t,n){const r=ivt(e,t,n);return gQ(r,t||void 0),r.results}function ivt(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:oyt(e),schema:n==="svg"?$d:D0,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const bQ=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=bQ(n.children))}),t),avt=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const i=rvt(t,r);i&&i.length>0&&Yo(r,i,(a,s,o)=>{n(a,s,o)});return}Yo(r,(i,a,s)=>{n(i,a,s)})}}},svt=avt,ovt=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),lvt=(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]}},lbe=(e=[],t,n,r)=>{let i=t;for(;i/,"$2")||"")?void 0:r?lbe(e,i,"pre",r)?void 0:(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a):(a.value=(a.value||"").replace(/^(\n|\s)+/,""),a)}},Dne=({value:e=""})=>{const t=ovt(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},Nne=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},uvt=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{Yo(r,"element",(i,a,s)=>{if(n&&i.tagName==="pre"&&i&&Array.isArray(i.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const o=i.children[0];if(o&&o.tagName==="code"&&typeof a=="number"){const l=lvt(s.children,a);if(l){const u=Dne(l);Object.keys(u).length>0&&(i.properties={...i.properties,"data-type":"rehyp"},o.properties=Nne(o.properties,u,t))}}}if(/^(em|strong|b|a|i|p|pre|kbd|blockquote|h(1|2|3|4|5|6)|code|table|img|del|ul|ol)$/.test(i.tagName)&&s&&Array.isArray(s.children)&&typeof a=="number"){const o=lbe(s.children,a,"",n);if(o){const l=Dne(o);Object.keys(l).length>0&&(i.properties=Nne(i.properties,l,t))}}})}},cvt=uvt;var dvt=function(t){return n=>{Yo(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=M({},r.properties,{"data-meta":String(r.data.meta)}))})}},fvt=function(t){return n=>{Yo(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 hvt=/[\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,pvt=Object.hasOwnProperty;class mvt{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let i=gvt(t,n===!0);const a=i;for(;pvt.call(r.occurrences,i);)r.occurrences[a]++,i=a+"-"+r.occurrences[a];return r.occurrences[i]=0,i}reset(){this.occurrences=Object.create(null)}}function gvt(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(hvt,"").replace(/ /g,"-"))}function ube(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 bvt={},Pne=new mvt;function yvt(e){const n=(e||bvt).prefix||"";return function(r){Pne.reset(),Yo(r,"element",function(i){ube(i)&&!i.properties.id&&(i.properties.id=n+Pne.slug(Hy(i)))})}}const kp=function(e){if(e==null)return Svt;if(typeof e=="string")return Ovt(e);if(typeof e=="object")return vvt(e);if(typeof e=="function")return yQ(e);throw new Error("Expected function, string, or array as `test`")};function vvt(e){const t=[];let n=-1;for(;++n{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{Yo(r,(i,a,s)=>{if(i.type==="element"||i.type==="root"){let o=!1;i.children=i.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^/,"$1"),u===t)return o=!0,!1;if(u===n)return o=!1,!1}return!o})}})}},kvt=Tvt;var Cvt={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 Avt(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 _vt=(e,t)=>(n,r,i)=>{if(n.type==="element"&&i&&i.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var a=n.children&&n.children[0];a&&a.properties&&a.properties.ariaHidden==="true"&&(a.properties=M({class:"anchor"},a.properties),a.children=[Cvt])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=bQ(n.children);n.children.push(Avt(s))}t&&t(n,r===null?void 0:r,i===null?void 0:i)},Rvt=[yvt,xvt,kvt];const dbe=hn.forwardRef((e,t)=>{var n,r=[dvt,W1e,fvt,[Wbt,{ignoreMissing:!0}],...Rvt,[svt,{rewrite:_vt((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[cvt,{properties:"attr"}],...e.rehypePlugins||[]];return _.jsx(dbt,M({},e,{rehypePlugins:r,ref:t}))});class du{constructor(t,n,r){this.lexer=void 0,this.start=void 0,this.end=void 0,this.lexer=t,this.start=n,this.end=r}static range(t,n){return n?!t||!t.loc||!n.loc||t.loc.lexer!==n.loc.lexer?null:new du(t.loc.lexer,t.loc.start,n.loc.end):t&&t.loc}}class Vf{constructor(t,n){this.text=void 0,this.loc=void 0,this.noexpand=void 0,this.treatAsRelax=void 0,this.text=t,this.loc=n}range(t,n){return new Vf(n,du.range(this,t))}}class Ht{constructor(t,n){this.name=void 0,this.position=void 0,this.length=void 0,this.rawMessage=void 0;var r="KaTeX parse error: "+t,i,a,s=n&&n.loc;if(s&&s.start<=s.end){var o=s.lexer.input;i=s.start,a=s.end,i===o.length?r+=" at end of input: ":r+=" at position "+(i+1)+": ";var l=o.slice(i,a).replace(/[^]/g,"$&̲"),u;i>15?u="…"+o.slice(i-15,i):u=o.slice(0,i);var c;a+15":">","<":"<",'"':""","'":"'"},Lvt=/[&><"']/g;function $vt(e){return String(e).replace(Lvt,t=>Mvt[t])}var fbe=function e(t){return t.type==="ordgroup"||t.type==="color"?t.body.length===1?e(t.body[0]):t:t.type==="font"?e(t.body):t},Fvt=function(t){var n=fbe(t);return n.type==="mathord"||n.type==="textord"||n.type==="atom"},Bvt=function(t){if(!t)throw new Error("Expected non-null, but got "+String(t));return t},Uvt=function(t){var n=/^\s*([^\\/#]*?)(?::|�*58|�*3a)/i.exec(t);return n!=null?n[1]:"_relative"},tr={contains:Ivt,deflt:Dvt,escape:$vt,hyphenate:Pvt,getBaseElem:fbe,isCharacterBox:Fvt,protocolFromUrl:Uvt},u_={displayMode:{type:"boolean",description:"Render math in display mode, which puts the math in display style (so \\int and \\sum are large, for example), and centers the math on the page on its own line.",cli:"-d, --display-mode"},output:{type:{enum:["htmlAndMathml","html","mathml"]},description:"Determines the markup language of the output.",cli:"-F, --format "},leqno:{type:"boolean",description:"Render display math in leqno style (left-justified tags)."},fleqn:{type:"boolean",description:"Render display math flush left."},throwOnError:{type:"boolean",default:!0,cli:"-t, --no-throw-on-error",cliDescription:"Render errors (in the color given by --error-color) instead of throwing a ParseError exception when encountering an error."},errorColor:{type:"string",default:"#cc0000",cli:"-c, --error-color ",cliDescription:"A color string given in the format 'rgb' or 'rrggbb' (no #). This option determines the color of errors rendered by the -t option.",cliProcessor:e=>"#"+e},macros:{type:"object",cli:"-m, --macro ",cliDescription:"Define custom macro of the form '\\foo:expansion' (use multiple -m arguments for multiple macros).",cliDefault:[],cliProcessor:(e,t)=>(t.push(e),t)},minRuleThickness:{type:"number",description:"Specifies a minimum thickness, in ems, for fraction lines, `\\sqrt` top lines, `{array}` vertical lines, `\\hline`, `\\hdashline`, `\\underline`, `\\overline`, and the borders of `\\fbox`, `\\boxed`, and `\\fcolorbox`.",processor:e=>Math.max(0,e),cli:"--min-rule-thickness ",cliProcessor:parseFloat},colorIsTextColor:{type:"boolean",description:"Makes \\color behave like LaTeX's 2-argument \\textcolor, instead of LaTeX's one-argument \\color mode change.",cli:"-b, --color-is-text-color"},strict:{type:[{enum:["warn","ignore","error"]},"boolean","function"],description:"Turn on strict / LaTeX faithfulness mode, which throws an error if the input uses features that are not supported by LaTeX.",cli:"-S, --strict",cliDefault:!1},trust:{type:["boolean","function"],description:"Trust the input, enabling all HTML features such as \\url.",cli:"-T, --trust"},maxSize:{type:"number",default:1/0,description:"If non-zero, all user-specified sizes, e.g. in \\rule{500em}{500em}, will be capped to maxSize ems. Otherwise, elements and spaces can be arbitrarily large",processor:e=>Math.max(0,e),cli:"-s, --max-size ",cliProcessor:parseInt},maxExpand:{type:"number",default:1e3,description:"Limit the number of macro expansions to the specified number, to prevent e.g. infinite macro loops. If set to Infinity, the macro expander will try to fully expand as in LaTeX.",processor:e=>Math.max(0,e),cli:"-e, --max-expand ",cliProcessor:e=>e==="Infinity"?1/0:parseInt(e)},globalGroup:{type:"boolean",cli:!1}};function zvt(e){if(e.default)return e.default;var t=e.type,n=Array.isArray(t)?t[0]:t;if(typeof n!="string")return n.enum[0];switch(n){case"boolean":return!1;case"string":return"";case"number":return 0;case"object":return{}}}class OQ{constructor(t){this.displayMode=void 0,this.output=void 0,this.leqno=void 0,this.fleqn=void 0,this.throwOnError=void 0,this.errorColor=void 0,this.macros=void 0,this.minRuleThickness=void 0,this.colorIsTextColor=void 0,this.strict=void 0,this.trust=void 0,this.maxSize=void 0,this.maxExpand=void 0,this.globalGroup=void 0,t=t||{};for(var n in u_)if(u_.hasOwnProperty(n)){var r=u_[n];this[n]=t[n]!==void 0?r.processor?r.processor(t[n]):t[n]:zvt(r)}}reportNonstrict(t,n,r){var i=this.strict;if(typeof i=="function"&&(i=i(t,n,r)),!(!i||i==="ignore")){if(i===!0||i==="error")throw new Ht("LaTeX-incompatible input and strict mode is set to 'error': "+(n+" ["+t+"]"),r);i==="warn"?typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")):typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]"))}}useStrictBehavior(t,n,r){var i=this.strict;if(typeof i=="function")try{i=i(t,n,r)}catch{i="error"}return!i||i==="ignore"?!1:i===!0||i==="error"?!0:i==="warn"?(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to 'warn': "+(n+" ["+t+"]")),!1):(typeof console<"u"&&console.warn("LaTeX-incompatible input and strict mode is set to "+("unrecognized '"+i+"': "+n+" ["+t+"]")),!1)}isTrusted(t){t.url&&!t.protocol&&(t.protocol=tr.protocolFromUrl(t.url));var n=typeof this.trust=="function"?this.trust(t):this.trust;return!!n}}class tm{constructor(t,n,r){this.id=void 0,this.size=void 0,this.cramped=void 0,this.id=t,this.size=n,this.cramped=r}sup(){return yf[jvt[this.id]]}sub(){return yf[Hvt[this.id]]}fracNum(){return yf[Vvt[this.id]]}fracDen(){return yf[Wvt[this.id]]}cramp(){return yf[Qvt[this.id]]}text(){return yf[qvt[this.id]]}isTight(){return this.size>=2}}var SQ=0,m5=1,Ov=2,Kh=3,Cx=4,yc=5,gO=6,Wo=7,yf=[new tm(SQ,0,!1),new tm(m5,0,!0),new tm(Ov,1,!1),new tm(Kh,1,!0),new tm(Cx,2,!1),new tm(yc,2,!0),new tm(gO,3,!1),new tm(Wo,3,!0)],jvt=[Cx,yc,Cx,yc,gO,Wo,gO,Wo],Hvt=[yc,yc,yc,yc,Wo,Wo,Wo,Wo],Vvt=[Ov,Kh,Cx,yc,gO,Wo,gO,Wo],Wvt=[Kh,Kh,yc,yc,Wo,Wo,Wo,Wo],Qvt=[m5,m5,Kh,Kh,yc,yc,Wo,Wo],qvt=[SQ,m5,Ov,Kh,Ov,Kh,Ov,Kh],Gn={DISPLAY:yf[SQ],TEXT:yf[Ov],SCRIPT:yf[Cx],SCRIPTSCRIPT:yf[gO]},s9=[{name:"latin",blocks:[[256,591],[768,879]]},{name:"cyrillic",blocks:[[1024,1279]]},{name:"armenian",blocks:[[1328,1423]]},{name:"brahmic",blocks:[[2304,4255]]},{name:"georgian",blocks:[[4256,4351]]},{name:"cjk",blocks:[[12288,12543],[19968,40879],[65280,65376]]},{name:"hangul",blocks:[[44032,55215]]}];function Gvt(e){for(var t=0;t=i[0]&&e<=i[1])return n.name}return null}var c_=[];s9.forEach(e=>e.blocks.forEach(t=>c_.push(...t)));function hbe(e){for(var t=0;t=c_[t]&&e<=c_[t+1])return!0;return!1}var ay=80,Yvt=function(t,n){return"M95,"+(622+t+n)+` -c-2.7,0,-7.17,-2.7,-13.5,-8c-5.8,-5.3,-9.5,-10,-9.5,-14 -c0,-2,0.3,-3.3,1,-4c1.3,-2.7,23.83,-20.7,67.5,-54 -c44.2,-33.3,65.8,-50.3,66.5,-51c1.3,-1.3,3,-2,5,-2c4.7,0,8.7,3.3,12,10 -s173,378,173,378c0.7,0,35.3,-71,104,-213c68.7,-142,137.5,-285,206.5,-429 -c69,-144,104.5,-217.7,106.5,-221 -l`+t/2.075+" -"+t+` -c5.3,-9.3,12,-14,20,-14 -H400000v`+(40+t)+`H845.2724 -s-225.272,467,-225.272,467s-235,486,-235,486c-2.7,4.7,-9,7,-19,7 -c-6,0,-10,-1,-12,-3s-194,-422,-194,-422s-65,47,-65,47z -M`+(834+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Zvt=function(t,n){return"M263,"+(601+t+n)+`c0.7,0,18,39.7,52,119 -c34,79.3,68.167,158.7,102.5,238c34.3,79.3,51.8,119.3,52.5,120 -c340,-704.7,510.7,-1060.3,512,-1067 -l`+t/2.084+" -"+t+` -c4.7,-7.3,11,-11,19,-11 -H40000v`+(40+t)+`H1012.3 -s-271.3,567,-271.3,567c-38.7,80.7,-84,175,-136,283c-52,108,-89.167,185.3,-111.5,232 -c-22.3,46.7,-33.8,70.3,-34.5,71c-4.7,4.7,-12.3,7,-23,7s-12,-1,-12,-1 -s-109,-253,-109,-253c-72.7,-168,-109.3,-252,-110,-252c-10.7,8,-22,16.7,-34,26 -c-22,17.3,-33.3,26,-34,26s-26,-26,-26,-26s76,-59,76,-59s76,-60,76,-60z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Xvt=function(t,n){return"M983 "+(10+t+n)+` -l`+t/3.13+" -"+t+` -c4,-6.7,10,-10,18,-10 H400000v`+(40+t)+` -H1013.1s-83.4,268,-264.1,840c-180.7,572,-277,876.3,-289,913c-4.7,4.7,-12.7,7,-24,7 -s-12,0,-12,0c-1.3,-3.3,-3.7,-11.7,-7,-25c-35.3,-125.3,-106.7,-373.3,-214,-744 -c-10,12,-21,25,-33,39s-32,39,-32,39c-6,-5.3,-15,-14,-27,-26s25,-30,25,-30 -c26.7,-32.7,52,-63,76,-91s52,-60,52,-60s208,722,208,722 -c56,-175.3,126.3,-397.3,211,-666c84.7,-268.7,153.8,-488.2,207.5,-658.5 -c53.7,-170.3,84.5,-266.8,92.5,-289.5z -M`+(1001+t)+" "+n+"h400000v"+(40+t)+"h-400000z"},Kvt=function(t,n){return"M424,"+(2398+t+n)+` -c-1.3,-0.7,-38.5,-172,-111.5,-514c-73,-342,-109.8,-513.3,-110.5,-514 -c0,-2,-10.7,14.3,-32,49c-4.7,7.3,-9.8,15.7,-15.5,25c-5.7,9.3,-9.8,16,-12.5,20 -s-5,7,-5,7c-4,-3.3,-8.3,-7.7,-13,-13s-13,-13,-13,-13s76,-122,76,-122s77,-121,77,-121 -s209,968,209,968c0,-2,84.7,-361.7,254,-1079c169.3,-717.3,254.7,-1077.7,256,-1081 -l`+t/4.223+" -"+t+`c4,-6.7,10,-10,18,-10 H400000 -v`+(40+t)+`H1014.6 -s-87.3,378.7,-272.6,1166c-185.3,787.3,-279.3,1182.3,-282,1185 -c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2z M`+(1001+t)+" "+n+` -h400000v`+(40+t)+"h-400000z"},Jvt=function(t,n){return"M473,"+(2713+t+n)+` -c339.3,-1799.3,509.3,-2700,510,-2702 l`+t/5.298+" -"+t+` -c3.3,-7.3,9.3,-11,18,-11 H400000v`+(40+t)+`H1017.7 -s-90.5,478,-276.2,1466c-185.7,988,-279.5,1483,-281.5,1485c-2,6,-10,9,-24,9 -c-8,0,-12,-0.7,-12,-2c0,-1.3,-5.3,-32,-16,-92c-50.7,-293.3,-119.7,-693.3,-207,-1200 -c0,-1.3,-5.3,8.7,-16,30c-10.7,21.3,-21.3,42.7,-32,64s-16,33,-16,33s-26,-26,-26,-26 -s76,-153,76,-153s77,-151,77,-151c0.7,0.7,35.7,202,105,604c67.3,400.7,102,602.7,104, -606zM`+(1001+t)+" "+n+"h400000v"+(40+t)+"H1017.7z"},eOt=function(t){var n=t/2;return"M400000 "+t+" H0 L"+n+" 0 l65 45 L145 "+(t-80)+" H400000z"},tOt=function(t,n,r){var i=r-54-n-t;return"M702 "+(t+n)+"H400000"+(40+t)+` -H742v`+i+`l-4 4-4 4c-.667.7 -2 1.5-4 2.5s-4.167 1.833-6.5 2.5-5.5 1-9.5 1 -h-12l-28-84c-16.667-52-96.667 -294.333-240-727l-212 -643 -85 170 -c-4-3.333-8.333-7.667-13 -13l-13-13l77-155 77-156c66 199.333 139 419.667 -219 661 l218 661zM702 `+n+"H400000v"+(40+t)+"H742z"},nOt=function(t,n,r){n=1e3*n;var i="";switch(t){case"sqrtMain":i=Yvt(n,ay);break;case"sqrtSize1":i=Zvt(n,ay);break;case"sqrtSize2":i=Xvt(n,ay);break;case"sqrtSize3":i=Kvt(n,ay);break;case"sqrtSize4":i=Jvt(n,ay);break;case"sqrtTall":i=tOt(n,ay,r)}return i},rOt=function(t,n){switch(t){case"⎜":return"M291 0 H417 V"+n+" H291z M291 0 H417 V"+n+" H291z";case"∣":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z";case"∥":return"M145 0 H188 V"+n+" H145z M145 0 H188 V"+n+" H145z"+("M367 0 H410 V"+n+" H367z M367 0 H410 V"+n+" H367z");case"⎟":return"M457 0 H583 V"+n+" H457z M457 0 H583 V"+n+" H457z";case"⎢":return"M319 0 H403 V"+n+" H319z M319 0 H403 V"+n+" H319z";case"⎥":return"M263 0 H347 V"+n+" H263z M263 0 H347 V"+n+" H263z";case"⎪":return"M384 0 H504 V"+n+" H384z M384 0 H504 V"+n+" H384z";case"⏐":return"M312 0 H355 V"+n+" H312z M312 0 H355 V"+n+" H312z";case"‖":return"M257 0 H300 V"+n+" H257z M257 0 H300 V"+n+" H257z"+("M478 0 H521 V"+n+" H478z M478 0 H521 V"+n+" H478z");default:return""}},$ne={doubleleftarrow:`M262 157 -l10-10c34-36 62.7-77 86-123 3.3-8 5-13.3 5-16 0-5.3-6.7-8-20-8-7.3 - 0-12.2.5-14.5 1.5-2.3 1-4.8 4.5-7.5 10.5-49.3 97.3-121.7 169.3-217 216-28 - 14-57.3 25-88 33-6.7 2-11 3.8-13 5.5-2 1.7-3 4.2-3 7.5s1 5.8 3 7.5 -c2 1.7 6.3 3.5 13 5.5 68 17.3 128.2 47.8 180.5 91.5 52.3 43.7 93.8 96.2 124.5 - 157.5 9.3 8 15.3 12.3 18 13h6c12-.7 18-4 18-10 0-2-1.7-7-5-15-23.3-46-52-87 --86-123l-10-10h399738v-40H218c328 0 0 0 0 0l-10-8c-26.7-20-65.7-43-117-69 2.7 --2 6-3.7 10-5 36.7-16 72.3-37.3 107-64l10-8h399782v-40z -m8 0v40h399730v-40zm0 194v40h399730v-40z`,doublerightarrow:`M399738 392l --10 10c-34 36-62.7 77-86 123-3.3 8-5 13.3-5 16 0 5.3 6.7 8 20 8 7.3 0 12.2-.5 - 14.5-1.5 2.3-1 4.8-4.5 7.5-10.5 49.3-97.3 121.7-169.3 217-216 28-14 57.3-25 88 --33 6.7-2 11-3.8 13-5.5 2-1.7 3-4.2 3-7.5s-1-5.8-3-7.5c-2-1.7-6.3-3.5-13-5.5-68 --17.3-128.2-47.8-180.5-91.5-52.3-43.7-93.8-96.2-124.5-157.5-9.3-8-15.3-12.3-18 --13h-6c-12 .7-18 4-18 10 0 2 1.7 7 5 15 23.3 46 52 87 86 123l10 10H0v40h399782 -c-328 0 0 0 0 0l10 8c26.7 20 65.7 43 117 69-2.7 2-6 3.7-10 5-36.7 16-72.3 37.3 --107 64l-10 8H0v40zM0 157v40h399730v-40zm0 194v40h399730v-40z`,leftarrow:`M400000 241H110l3-3c68.7-52.7 113.7-120 - 135-202 4-14.7 6-23 6-25 0-7.3-7-11-21-11-8 0-13.2.8-15.5 2.5-2.3 1.7-4.2 5.8 --5.5 12.5-1.3 4.7-2.7 10.3-4 17-12 48.7-34.8 92-68.5 130S65.3 228.3 18 247 -c-10 4-16 7.7-18 11 0 8.7 6 14.3 18 17 47.3 18.7 87.8 47 121.5 85S196 441.3 208 - 490c.7 2 1.3 5 2 9s1.2 6.7 1.5 8c.3 1.3 1 3.3 2 6s2.2 4.5 3.5 5.5c1.3 1 3.3 - 1.8 6 2.5s6 1 10 1c14 0 21-3.7 21-11 0-2-2-10.3-6-25-20-79.3-65-146.7-135-202 - l-3-3h399890zM100 241v40h399900v-40z`,leftbrace:`M6 548l-6-6v-35l6-11c56-104 135.3-181.3 238-232 57.3-28.7 117 --45 179-50h399577v120H403c-43.3 7-81 15-113 26-100.7 33-179.7 91-237 174-2.7 - 5-6 9-10 13-.7 1-7.3 1-20 1H6z`,leftbraceunder:`M0 6l6-6h17c12.688 0 19.313.3 20 1 4 4 7.313 8.3 10 13 - 35.313 51.3 80.813 93.8 136.5 127.5 55.688 33.7 117.188 55.8 184.5 66.5.688 - 0 2 .3 4 1 18.688 2.7 76 4.3 172 5h399450v120H429l-6-1c-124.688-8-235-61.7 --331-161C60.687 138.7 32.312 99.3 7 54L0 41V6z`,leftgroup:`M400000 80 -H435C64 80 168.3 229.4 21 260c-5.9 1.2-18 0-18 0-2 0-3-1-3-3v-38C76 61 257 0 - 435 0h399565z`,leftgroupunder:`M400000 262 -H435C64 262 168.3 112.6 21 82c-5.9-1.2-18 0-18 0-2 0-3 1-3 3v38c76 158 257 219 - 435 219h399565z`,leftharpoon:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3 --3.3 10.2-9.5 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5 --18.3 3-21-1.3-4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7 --196 228-6.7 4.7-10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40z`,leftharpoonplus:`M0 267c.7 5.3 3 10 7 14h399993v-40H93c3.3-3.3 10.2-9.5 - 20.5-18.5s17.8-15.8 22.5-20.5c50.7-52 88-110.3 112-175 4-11.3 5-18.3 3-21-1.3 --4-7.3-6-18-6-8 0-13 .7-15 2s-4.7 6.7-8 16c-42 98.7-107.3 174.7-196 228-6.7 4.7 --10.7 8-12 10-1.3 2-2 5.7-2 11zm100-26v40h399900v-40zM0 435v40h400000v-40z -m0 0v40h400000v-40z`,leftharpoondown:`M7 241c-4 4-6.333 8.667-7 14 0 5.333.667 9 2 11s5.333 - 5.333 12 10c90.667 54 156 130 196 228 3.333 10.667 6.333 16.333 9 17 2 .667 5 - 1 9 1h5c10.667 0 16.667-2 18-6 2-2.667 1-9.667-3-21-32-87.333-82.667-157.667 --152-211l-3-3h399907v-40zM93 281 H400000 v-40L7 241z`,leftharpoondownplus:`M7 435c-4 4-6.3 8.7-7 14 0 5.3.7 9 2 11s5.3 5.3 12 - 10c90.7 54 156 130 196 228 3.3 10.7 6.3 16.3 9 17 2 .7 5 1 9 1h5c10.7 0 16.7 --2 18-6 2-2.7 1-9.7-3-21-32-87.3-82.7-157.7-152-211l-3-3h399907v-40H7zm93 0 -v40h399900v-40zM0 241v40h399900v-40zm0 0v40h399900v-40z`,lefthook:`M400000 281 H103s-33-11.2-61-33.5S0 197.3 0 164s14.2-61.2 42.5 --83.5C70.8 58.2 104 47 142 47 c16.7 0 25 6.7 25 20 0 12-8.7 18.7-26 20-40 3.3 --68.7 15.7-86 37-10 12-15 25.3-15 40 0 22.7 9.8 40.7 29.5 54 19.7 13.3 43.5 21 - 71.5 23h399859zM103 281v-40h399897v40z`,leftlinesegment:`M40 281 V428 H0 V94 H40 V241 H400000 v40z -M40 281 V428 H0 V94 H40 V241 H400000 v40z`,leftmapsto:`M40 281 V448H0V74H40V241H400000v40z -M40 281 V448H0V74H40V241H400000v40z`,leftToFrom:`M0 147h400000v40H0zm0 214c68 40 115.7 95.7 143 167h22c15.3 0 23 --.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69-70-101l-7-8h399905v-40H95l7-8 -c28.7-32 52-65.7 70-101 10.7-23.3 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 265.3 - 68 321 0 361zm0-174v-40h399900v40zm100 154v40h399900v-40z`,longequal:`M0 50 h400000 v40H0z m0 194h40000v40H0z -M0 50 h400000 v40H0z m0 194h40000v40H0z`,midbrace:`M200428 334 -c-100.7-8.3-195.3-44-280-108-55.3-42-101.7-93-139-153l-9-14c-2.7 4-5.7 8.7-9 14 --53.3 86.7-123.7 153-211 199-66.7 36-137.3 56.3-212 62H0V214h199568c178.3-11.7 - 311.7-78.3 403-201 6-8 9.7-12 11-12 .7-.7 6.7-1 18-1s17.3.3 18 1c1.3 0 5 4 11 - 12 44.7 59.3 101.3 106.3 170 141s145.3 54.3 229 60h199572v120z`,midbraceunder:`M199572 214 -c100.7 8.3 195.3 44 280 108 55.3 42 101.7 93 139 153l9 14c2.7-4 5.7-8.7 9-14 - 53.3-86.7 123.7-153 211-199 66.7-36 137.3-56.3 212-62h199568v120H200432c-178.3 - 11.7-311.7 78.3-403 201-6 8-9.7 12-11 12-.7.7-6.7 1-18 1s-17.3-.3-18-1c-1.3 0 --5-4-11-12-44.7-59.3-101.3-106.3-170-141s-145.3-54.3-229-60H0V214z`,oiintSize1:`M512.6 71.6c272.6 0 320.3 106.8 320.3 178.2 0 70.8-47.7 177.6 --320.3 177.6S193.1 320.6 193.1 249.8c0-71.4 46.9-178.2 319.5-178.2z -m368.1 178.2c0-86.4-60.9-215.4-368.1-215.4-306.4 0-367.3 129-367.3 215.4 0 85.8 -60.9 214.8 367.3 214.8 307.2 0 368.1-129 368.1-214.8z`,oiintSize2:`M757.8 100.1c384.7 0 451.1 137.6 451.1 230 0 91.3-66.4 228.8 --451.1 228.8-386.3 0-452.7-137.5-452.7-228.8 0-92.4 66.4-230 452.7-230z -m502.4 230c0-111.2-82.4-277.2-502.4-277.2s-504 166-504 277.2 -c0 110 84 276 504 276s502.4-166 502.4-276z`,oiiintSize1:`M681.4 71.6c408.9 0 480.5 106.8 480.5 178.2 0 70.8-71.6 177.6 --480.5 177.6S202.1 320.6 202.1 249.8c0-71.4 70.5-178.2 479.3-178.2z -m525.8 178.2c0-86.4-86.8-215.4-525.7-215.4-437.9 0-524.7 129-524.7 215.4 0 -85.8 86.8 214.8 524.7 214.8 438.9 0 525.7-129 525.7-214.8z`,oiiintSize2:`M1021.2 53c603.6 0 707.8 165.8 707.8 277.2 0 110-104.2 275.8 --707.8 275.8-606 0-710.2-165.8-710.2-275.8C311 218.8 415.2 53 1021.2 53z -m770.4 277.1c0-131.2-126.4-327.6-770.5-327.6S248.4 198.9 248.4 330.1 -c0 130 128.8 326.4 772.7 326.4s770.5-196.4 770.5-326.4z`,rightarrow:`M0 241v40h399891c-47.3 35.3-84 78-110 128 --16.7 32-27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 - 11 8 0 13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 - 39-84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85 --40.5-119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 - 151.7 139 205zm0 0v40h399900v-40z`,rightbrace:`M400000 542l --6 6h-17c-12.7 0-19.3-.3-20-1-4-4-7.3-8.3-10-13-35.3-51.3-80.8-93.8-136.5-127.5 -s-117.2-55.8-184.5-66.5c-.7 0-2-.3-4-1-18.7-2.7-76-4.3-172-5H0V214h399571l6 1 -c124.7 8 235 61.7 331 161 31.3 33.3 59.7 72.7 85 118l7 13v35z`,rightbraceunder:`M399994 0l6 6v35l-6 11c-56 104-135.3 181.3-238 232-57.3 - 28.7-117 45-179 50H-300V214h399897c43.3-7 81-15 113-26 100.7-33 179.7-91 237 --174 2.7-5 6-9 10-13 .7-1 7.3-1 20-1h17z`,rightgroup:`M0 80h399565c371 0 266.7 149.4 414 180 5.9 1.2 18 0 18 0 2 0 - 3-1 3-3v-38c-76-158-257-219-435-219H0z`,rightgroupunder:`M0 262h399565c371 0 266.7-149.4 414-180 5.9-1.2 18 0 18 - 0 2 0 3 1 3 3v38c-76 158-257 219-435 219H0z`,rightharpoon:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3 --3.7-15.3-11-18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2 --10.7 0-16.7 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 - 69.2 92 94.5zm0 0v40h399900v-40z`,rightharpoonplus:`M0 241v40h399993c4.7-4.7 7-9.3 7-14 0-9.3-3.7-15.3-11 --18-92.7-56.7-159-133.7-199-231-3.3-9.3-6-14.7-8-16-2-1.3-7-2-15-2-10.7 0-16.7 - 2-18 6-2 2.7-1 9.7 3 21 15.3 42 36.7 81.8 64 119.5 27.3 37.7 58 69.2 92 94.5z -m0 0v40h399900v-40z m100 194v40h399900v-40zm0 0v40h399900v-40z`,rightharpoondown:`M399747 511c0 7.3 6.7 11 20 11 8 0 13-.8 15-2.5s4.7-6.8 - 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 8.5-5.8 9.5 --7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3-64.7 57-92 95 --27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 241v40h399900v-40z`,rightharpoondownplus:`M399747 705c0 7.3 6.7 11 20 11 8 0 13-.8 - 15-2.5s4.7-6.8 8-15.5c40-94 99.3-166.3 178-217 13.3-8 20.3-12.3 21-13 5.3-3.3 - 8.5-5.8 9.5-7.5 1-1.7 1.5-5.2 1.5-10.5s-2.3-10.3-7-15H0v40h399908c-34 25.3 --64.7 57-92 95-27.3 38-48.7 77.7-64 119-3.3 8.7-5 14-5 16zM0 435v40h399900v-40z -m0-194v40h400000v-40zm0 0v40h400000v-40z`,righthook:`M399859 241c-764 0 0 0 0 0 40-3.3 68.7-15.7 86-37 10-12 15-25.3 - 15-40 0-22.7-9.8-40.7-29.5-54-19.7-13.3-43.5-21-71.5-23-17.3-1.3-26-8-26-20 0 --13.3 8.7-20 26-20 38 0 71 11.2 99 33.5 0 0 7 5.6 21 16.7 14 11.2 21 33.5 21 - 66.8s-14 61.2-42 83.5c-28 22.3-61 33.5-99 33.5L0 241z M0 281v-40h399859v40z`,rightlinesegment:`M399960 241 V94 h40 V428 h-40 V281 H0 v-40z -M399960 241 V94 h40 V428 h-40 V281 H0 v-40z`,rightToFrom:`M400000 167c-70.7-42-118-97.7-142-167h-23c-15.3 0-23 .3-23 - 1 0 1.3 5.3 13.7 16 37 18 35.3 41.3 69 70 101l7 8H0v40h399905l-7 8c-28.7 32 --52 65.7-70 101-10.7 23.3-16 35.7-16 37 0 .7 7.7 1 23 1h23c24-69.3 71.3-125 142 --167z M100 147v40h399900v-40zM0 341v40h399900v-40z`,twoheadleftarrow:`M0 167c68 40 - 115.7 95.7 143 167h22c15.3 0 23-.3 23-1 0-1.3-5.3-13.7-16-37-18-35.3-41.3-69 --70-101l-7-8h125l9 7c50.7 39.3 85 86 103 140h46c0-4.7-6.3-18.7-19-42-18-35.3 --40-67.3-66-96l-9-9h399716v-40H284l9-9c26-28.7 48-60.7 66-96 12.7-23.333 19 --37.333 19-42h-46c-18 54-52.3 100.7-103 140l-9 7H95l7-8c28.7-32 52-65.7 70-101 - 10.7-23.333 16-35.7 16-37 0-.7-7.7-1-23-1h-22C115.7 71.3 68 127 0 167z`,twoheadrightarrow:`M400000 167 -c-68-40-115.7-95.7-143-167h-22c-15.3 0-23 .3-23 1 0 1.3 5.3 13.7 16 37 18 35.3 - 41.3 69 70 101l7 8h-125l-9-7c-50.7-39.3-85-86-103-140h-46c0 4.7 6.3 18.7 19 42 - 18 35.3 40 67.3 66 96l9 9H0v40h399716l-9 9c-26 28.7-48 60.7-66 96-12.7 23.333 --19 37.333-19 42h46c18-54 52.3-100.7 103-140l9-7h125l-7 8c-28.7 32-52 65.7-70 - 101-10.7 23.333-16 35.7-16 37 0 .7 7.7 1 23 1h22c27.3-71.3 75-127 143-167z`,tilde1:`M200 55.538c-77 0-168 73.953-177 73.953-3 0-7 --2.175-9-5.437L2 97c-1-2-2-4-2-6 0-4 2-7 5-9l20-12C116 12 171 0 207 0c86 0 - 114 68 191 68 78 0 168-68 177-68 4 0 7 2 9 5l12 19c1 2.175 2 4.35 2 6.525 0 - 4.35-2 7.613-5 9.788l-19 13.05c-92 63.077-116.937 75.308-183 76.128 --68.267.847-113-73.952-191-73.952z`,tilde2:`M344 55.266c-142 0-300.638 81.316-311.5 86.418 --8.01 3.762-22.5 10.91-23.5 5.562L1 120c-1-2-1-3-1-4 0-5 3-9 8-10l18.4-9C160.9 - 31.9 283 0 358 0c148 0 188 122 331 122s314-97 326-97c4 0 8 2 10 7l7 21.114 -c1 2.14 1 3.21 1 4.28 0 5.347-3 9.626-7 10.696l-22.3 12.622C852.6 158.372 751 - 181.476 676 181.476c-149 0-189-126.21-332-126.21z`,tilde3:`M786 59C457 59 32 175.242 13 175.242c-6 0-10-3.457 --11-10.37L.15 138c-1-7 3-12 10-13l19.2-6.4C378.4 40.7 634.3 0 804.3 0c337 0 - 411.8 157 746.8 157 328 0 754-112 773-112 5 0 10 3 11 9l1 14.075c1 8.066-.697 - 16.595-6.697 17.492l-21.052 7.31c-367.9 98.146-609.15 122.696-778.15 122.696 - -338 0-409-156.573-744-156.573z`,tilde4:`M786 58C457 58 32 177.487 13 177.487c-6 0-10-3.345 --11-10.035L.15 143c-1-7 3-12 10-13l22-6.7C381.2 35 637.15 0 807.15 0c337 0 409 - 177 744 177 328 0 754-127 773-127 5 0 10 3 11 9l1 14.794c1 7.805-3 13.38-9 - 14.495l-20.7 5.574c-366.85 99.79-607.3 139.372-776.3 139.372-338 0-409 - -175.236-744-175.236z`,vec:`M377 20c0-5.333 1.833-10 5.5-14S391 0 397 0c4.667 0 8.667 1.667 12 5 -3.333 2.667 6.667 9 10 19 6.667 24.667 20.333 43.667 41 57 7.333 4.667 11 -10.667 11 18 0 6-1 10-3 12s-6.667 5-14 9c-28.667 14.667-53.667 35.667-75 63 --1.333 1.333-3.167 3.5-5.5 6.5s-4 4.833-5 5.5c-1 .667-2.5 1.333-4.5 2s-4.333 1 --7 1c-4.667 0-9.167-1.833-13.5-5.5S337 184 337 178c0-12.667 15.667-32.333 47-59 -H213l-171-1c-8.667-6-13-12.333-13-19 0-4.667 4.333-11.333 13-20h359 -c-16-25.333-24-45-24-59z`,widehat1:`M529 0h5l519 115c5 1 9 5 9 10 0 1-1 2-1 3l-4 22 -c-1 5-5 9-11 9h-2L532 67 19 159h-2c-5 0-9-4-11-9l-5-22c-1-6 2-12 8-13z`,widehat2:`M1181 0h2l1171 176c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 220h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat3:`M1181 0h2l1171 236c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 280h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widehat4:`M1181 0h2l1171 296c6 0 10 5 10 11l-2 23c-1 6-5 10 --11 10h-1L1182 67 15 340h-1c-6 0-10-4-11-10l-2-23c-1-6 4-11 10-11z`,widecheck1:`M529,159h5l519,-115c5,-1,9,-5,9,-10c0,-1,-1,-2,-1,-3l-4,-22c-1, --5,-5,-9,-11,-9h-2l-512,92l-513,-92h-2c-5,0,-9,4,-11,9l-5,22c-1,6,2,12,8,13z`,widecheck2:`M1181,220h2l1171,-176c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,153l-1167,-153h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck3:`M1181,280h2l1171,-236c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,213l-1167,-213h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,widecheck4:`M1181,340h2l1171,-296c6,0,10,-5,10,-11l-2,-23c-1,-6,-5,-10, --11,-10h-1l-1168,273l-1167,-273h-1c-6,0,-10,4,-11,10l-2,23c-1,6,4,11,10,11z`,baraboveleftarrow:`M400000 620h-399890l3 -3c68.7 -52.7 113.7 -120 135 -202 -c4 -14.7 6 -23 6 -25c0 -7.3 -7 -11 -21 -11c-8 0 -13.2 0.8 -15.5 2.5 -c-2.3 1.7 -4.2 5.8 -5.5 12.5c-1.3 4.7 -2.7 10.3 -4 17c-12 48.7 -34.8 92 -68.5 130 -s-74.2 66.3 -121.5 85c-10 4 -16 7.7 -18 11c0 8.7 6 14.3 18 17c47.3 18.7 87.8 47 -121.5 85s56.5 81.3 68.5 130c0.7 2 1.3 5 2 9s1.2 6.7 1.5 8c0.3 1.3 1 3.3 2 6 -s2.2 4.5 3.5 5.5c1.3 1 3.3 1.8 6 2.5s6 1 10 1c14 0 21 -3.7 21 -11 -c0 -2 -2 -10.3 -6 -25c-20 -79.3 -65 -146.7 -135 -202l-3 -3h399890z -M100 620v40h399900v-40z M0 241v40h399900v-40zM0 241v40h399900v-40z`,rightarrowabovebar:`M0 241v40h399891c-47.3 35.3-84 78-110 128-16.7 32 --27.7 63.7-33 95 0 1.3-.2 2.7-.5 4-.3 1.3-.5 2.3-.5 3 0 7.3 6.7 11 20 11 8 0 -13.2-.8 15.5-2.5 2.3-1.7 4.2-5.5 5.5-11.5 2-13.3 5.7-27 11-41 14.7-44.7 39 --84.5 73-119.5s73.7-60.2 119-75.5c6-2 9-5.7 9-11s-3-9-9-11c-45.3-15.3-85-40.5 --119-75.5s-58.3-74.8-73-119.5c-4.7-14-8.3-27.3-11-40-1.3-6.7-3.2-10.8-5.5 --12.5-2.3-1.7-7.5-2.5-15.5-2.5-14 0-21 3.7-21 11 0 2 2 10.3 6 25 20.7 83.3 67 -151.7 139 205zm96 379h399894v40H0zm0 0h399904v40H0z`,baraboveshortleftharpoon:`M507,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17 -c2,0.7,5,1,9,1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21 -c-32,-87.3,-82.7,-157.7,-152,-211c0,0,-3,-3,-3,-3l399351,0l0,-40 -c-398570,0,-399437,0,-399437,0z M593 435 v40 H399500 v-40z -M0 281 v-40 H399908 v40z M0 281 v-40 H399908 v40z`,rightharpoonaboveshortbar:`M0,241 l0,40c399126,0,399993,0,399993,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M0 241 v40 H399908 v-40z M0 475 v-40 H399500 v40z M0 475 v-40 H399500 v40z`,shortbaraboveleftharpoon:`M7,435c-4,4,-6.3,8.7,-7,14c0,5.3,0.7,9,2,11 -c1.3,2,5.3,5.3,12,10c90.7,54,156,130,196,228c3.3,10.7,6.3,16.3,9,17c2,0.7,5,1,9, -1c0,0,5,0,5,0c10.7,0,16.7,-2,18,-6c2,-2.7,1,-9.7,-3,-21c-32,-87.3,-82.7,-157.7, --152,-211c0,0,-3,-3,-3,-3l399907,0l0,-40c-399126,0,-399993,0,-399993,0z -M93 435 v40 H400000 v-40z M500 241 v40 H400000 v-40z M500 241 v40 H400000 v-40z`,shortrightharpoonabovebar:`M53,241l0,40c398570,0,399437,0,399437,0 -c4.7,-4.7,7,-9.3,7,-14c0,-9.3,-3.7,-15.3,-11,-18c-92.7,-56.7,-159,-133.7,-199, --231c-3.3,-9.3,-6,-14.7,-8,-16c-2,-1.3,-7,-2,-15,-2c-10.7,0,-16.7,2,-18,6 -c-2,2.7,-1,9.7,3,21c15.3,42,36.7,81.8,64,119.5c27.3,37.7,58,69.2,92,94.5z -M500 241 v40 H399408 v-40z M500 435 v40 H400000 v-40z`},iOt=function(t,n){switch(t){case"lbrack":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v1759 h347 v-84 -H403z M403 1759 V0 H319 V1759 v`+n+" v1759 h84z";case"rbrack":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v1759 H0 v84 H347z -M347 1759 V0 H263 V1759 v`+n+" v1759 h84z";case"vert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+" v585 h43z";case"doublevert":return"M145 15 v585 v"+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M188 15 H145 v585 v`+n+` v585 h43z -M367 15 v585 v`+n+` v585 c2.667,10,9.667,15,21,15 -c10,0,16.667,-5,20,-15 v-585 v`+-n+` v-585 c-2.667,-10,-9.667,-15,-21,-15 -c-10,0,-16.667,5,-20,15z M410 15 H367 v585 v`+n+" v585 h43z";case"lfloor":return"M319 602 V0 H403 V602 v"+n+` v1715 h263 v84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"rfloor":return"M319 602 V0 H403 V602 v"+n+` v1799 H0 v-84 H319z -MM319 602 V0 H403 V602 v`+n+" v1715 H319z";case"lceil":return"M403 1759 V84 H666 V0 H319 V1759 v"+n+` v602 h84z -M403 1759 V0 H319 V1759 v`+n+" v602 h84z";case"rceil":return"M347 1759 V0 H0 V84 H263 V1759 v"+n+` v602 h84z -M347 1759 V0 h-84 V1759 v`+n+" v602 h84z";case"lparen":return`M863,9c0,-2,-2,-5,-6,-9c0,0,-17,0,-17,0c-12.7,0,-19.3,0.3,-20,1 -c-5.3,5.3,-10.3,11,-15,17c-242.7,294.7,-395.3,682,-458,1162c-21.3,163.3,-33.3,349, --36,557 l0,`+(n+84)+`c0.2,6,0,26,0,60c2,159.3,10,310.7,24,454c53.3,528,210, -949.7,470,1265c4.7,6,9.7,11.7,15,17c0.7,0.7,7,1,19,1c0,0,18,0,18,0c4,-4,6,-7,6,-9 -c0,-2.7,-3.3,-8.7,-10,-18c-135.3,-192.7,-235.5,-414.3,-300.5,-665c-65,-250.7,-102.5, --544.7,-112.5,-882c-2,-104,-3,-167,-3,-189 -l0,-`+(n+92)+`c0,-162.7,5.7,-314,17,-454c20.7,-272,63.7,-513,129,-723c65.3, --210,155.3,-396.3,270,-559c6.7,-9.3,10,-15.3,10,-18z`;case"rparen":return`M76,0c-16.7,0,-25,3,-25,9c0,2,2,6.3,6,13c21.3,28.7,42.3,60.3, -63,95c96.7,156.7,172.8,332.5,228.5,527.5c55.7,195,92.8,416.5,111.5,664.5 -c11.3,139.3,17,290.7,17,454c0,28,1.7,43,3.3,45l0,`+(n+9)+` -c-3,4,-3.3,16.7,-3.3,38c0,162,-5.7,313.7,-17,455c-18.7,248,-55.8,469.3,-111.5,664 -c-55.7,194.7,-131.8,370.3,-228.5,527c-20.7,34.7,-41.7,66.3,-63,95c-2,3.3,-4,7,-6,11 -c0,7.3,5.7,11,17,11c0,0,11,0,11,0c9.3,0,14.3,-0.3,15,-1c5.3,-5.3,10.3,-11,15,-17 -c242.7,-294.7,395.3,-681.7,458,-1161c21.3,-164.7,33.3,-350.7,36,-558 -l0,-`+(n+144)+`c-2,-159.3,-10,-310.7,-24,-454c-53.3,-528,-210,-949.7, --470,-1265c-4.7,-6,-9.7,-11.7,-15,-17c-0.7,-0.7,-6.7,-1,-18,-1z`;default:throw new Error("Unknown stretchy delimiter.")}};let sk=class{constructor(t){this.children=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.children=t,this.classes=[],this.height=0,this.depth=0,this.maxFontSize=0,this.style={}}hasClass(t){return tr.contains(this.classes,t)}toNode(){for(var t=document.createDocumentFragment(),n=0;nn.toText();return this.children.map(t).join("")}};var Df={"AMS-Regular":{32:[0,0,0,0,.25],65:[0,.68889,0,0,.72222],66:[0,.68889,0,0,.66667],67:[0,.68889,0,0,.72222],68:[0,.68889,0,0,.72222],69:[0,.68889,0,0,.66667],70:[0,.68889,0,0,.61111],71:[0,.68889,0,0,.77778],72:[0,.68889,0,0,.77778],73:[0,.68889,0,0,.38889],74:[.16667,.68889,0,0,.5],75:[0,.68889,0,0,.77778],76:[0,.68889,0,0,.66667],77:[0,.68889,0,0,.94445],78:[0,.68889,0,0,.72222],79:[.16667,.68889,0,0,.77778],80:[0,.68889,0,0,.61111],81:[.16667,.68889,0,0,.77778],82:[0,.68889,0,0,.72222],83:[0,.68889,0,0,.55556],84:[0,.68889,0,0,.66667],85:[0,.68889,0,0,.72222],86:[0,.68889,0,0,.72222],87:[0,.68889,0,0,1],88:[0,.68889,0,0,.72222],89:[0,.68889,0,0,.72222],90:[0,.68889,0,0,.66667],107:[0,.68889,0,0,.55556],160:[0,0,0,0,.25],165:[0,.675,.025,0,.75],174:[.15559,.69224,0,0,.94666],240:[0,.68889,0,0,.55556],295:[0,.68889,0,0,.54028],710:[0,.825,0,0,2.33334],732:[0,.9,0,0,2.33334],770:[0,.825,0,0,2.33334],771:[0,.9,0,0,2.33334],989:[.08167,.58167,0,0,.77778],1008:[0,.43056,.04028,0,.66667],8245:[0,.54986,0,0,.275],8463:[0,.68889,0,0,.54028],8487:[0,.68889,0,0,.72222],8498:[0,.68889,0,0,.55556],8502:[0,.68889,0,0,.66667],8503:[0,.68889,0,0,.44445],8504:[0,.68889,0,0,.66667],8513:[0,.68889,0,0,.63889],8592:[-.03598,.46402,0,0,.5],8594:[-.03598,.46402,0,0,.5],8602:[-.13313,.36687,0,0,1],8603:[-.13313,.36687,0,0,1],8606:[.01354,.52239,0,0,1],8608:[.01354,.52239,0,0,1],8610:[.01354,.52239,0,0,1.11111],8611:[.01354,.52239,0,0,1.11111],8619:[0,.54986,0,0,1],8620:[0,.54986,0,0,1],8621:[-.13313,.37788,0,0,1.38889],8622:[-.13313,.36687,0,0,1],8624:[0,.69224,0,0,.5],8625:[0,.69224,0,0,.5],8630:[0,.43056,0,0,1],8631:[0,.43056,0,0,1],8634:[.08198,.58198,0,0,.77778],8635:[.08198,.58198,0,0,.77778],8638:[.19444,.69224,0,0,.41667],8639:[.19444,.69224,0,0,.41667],8642:[.19444,.69224,0,0,.41667],8643:[.19444,.69224,0,0,.41667],8644:[.1808,.675,0,0,1],8646:[.1808,.675,0,0,1],8647:[.1808,.675,0,0,1],8648:[.19444,.69224,0,0,.83334],8649:[.1808,.675,0,0,1],8650:[.19444,.69224,0,0,.83334],8651:[.01354,.52239,0,0,1],8652:[.01354,.52239,0,0,1],8653:[-.13313,.36687,0,0,1],8654:[-.13313,.36687,0,0,1],8655:[-.13313,.36687,0,0,1],8666:[.13667,.63667,0,0,1],8667:[.13667,.63667,0,0,1],8669:[-.13313,.37788,0,0,1],8672:[-.064,.437,0,0,1.334],8674:[-.064,.437,0,0,1.334],8705:[0,.825,0,0,.5],8708:[0,.68889,0,0,.55556],8709:[.08167,.58167,0,0,.77778],8717:[0,.43056,0,0,.42917],8722:[-.03598,.46402,0,0,.5],8724:[.08198,.69224,0,0,.77778],8726:[.08167,.58167,0,0,.77778],8733:[0,.69224,0,0,.77778],8736:[0,.69224,0,0,.72222],8737:[0,.69224,0,0,.72222],8738:[.03517,.52239,0,0,.72222],8739:[.08167,.58167,0,0,.22222],8740:[.25142,.74111,0,0,.27778],8741:[.08167,.58167,0,0,.38889],8742:[.25142,.74111,0,0,.5],8756:[0,.69224,0,0,.66667],8757:[0,.69224,0,0,.66667],8764:[-.13313,.36687,0,0,.77778],8765:[-.13313,.37788,0,0,.77778],8769:[-.13313,.36687,0,0,.77778],8770:[-.03625,.46375,0,0,.77778],8774:[.30274,.79383,0,0,.77778],8776:[-.01688,.48312,0,0,.77778],8778:[.08167,.58167,0,0,.77778],8782:[.06062,.54986,0,0,.77778],8783:[.06062,.54986,0,0,.77778],8785:[.08198,.58198,0,0,.77778],8786:[.08198,.58198,0,0,.77778],8787:[.08198,.58198,0,0,.77778],8790:[0,.69224,0,0,.77778],8791:[.22958,.72958,0,0,.77778],8796:[.08198,.91667,0,0,.77778],8806:[.25583,.75583,0,0,.77778],8807:[.25583,.75583,0,0,.77778],8808:[.25142,.75726,0,0,.77778],8809:[.25142,.75726,0,0,.77778],8812:[.25583,.75583,0,0,.5],8814:[.20576,.70576,0,0,.77778],8815:[.20576,.70576,0,0,.77778],8816:[.30274,.79383,0,0,.77778],8817:[.30274,.79383,0,0,.77778],8818:[.22958,.72958,0,0,.77778],8819:[.22958,.72958,0,0,.77778],8822:[.1808,.675,0,0,.77778],8823:[.1808,.675,0,0,.77778],8828:[.13667,.63667,0,0,.77778],8829:[.13667,.63667,0,0,.77778],8830:[.22958,.72958,0,0,.77778],8831:[.22958,.72958,0,0,.77778],8832:[.20576,.70576,0,0,.77778],8833:[.20576,.70576,0,0,.77778],8840:[.30274,.79383,0,0,.77778],8841:[.30274,.79383,0,0,.77778],8842:[.13597,.63597,0,0,.77778],8843:[.13597,.63597,0,0,.77778],8847:[.03517,.54986,0,0,.77778],8848:[.03517,.54986,0,0,.77778],8858:[.08198,.58198,0,0,.77778],8859:[.08198,.58198,0,0,.77778],8861:[.08198,.58198,0,0,.77778],8862:[0,.675,0,0,.77778],8863:[0,.675,0,0,.77778],8864:[0,.675,0,0,.77778],8865:[0,.675,0,0,.77778],8872:[0,.69224,0,0,.61111],8873:[0,.69224,0,0,.72222],8874:[0,.69224,0,0,.88889],8876:[0,.68889,0,0,.61111],8877:[0,.68889,0,0,.61111],8878:[0,.68889,0,0,.72222],8879:[0,.68889,0,0,.72222],8882:[.03517,.54986,0,0,.77778],8883:[.03517,.54986,0,0,.77778],8884:[.13667,.63667,0,0,.77778],8885:[.13667,.63667,0,0,.77778],8888:[0,.54986,0,0,1.11111],8890:[.19444,.43056,0,0,.55556],8891:[.19444,.69224,0,0,.61111],8892:[.19444,.69224,0,0,.61111],8901:[0,.54986,0,0,.27778],8903:[.08167,.58167,0,0,.77778],8905:[.08167,.58167,0,0,.77778],8906:[.08167,.58167,0,0,.77778],8907:[0,.69224,0,0,.77778],8908:[0,.69224,0,0,.77778],8909:[-.03598,.46402,0,0,.77778],8910:[0,.54986,0,0,.76042],8911:[0,.54986,0,0,.76042],8912:[.03517,.54986,0,0,.77778],8913:[.03517,.54986,0,0,.77778],8914:[0,.54986,0,0,.66667],8915:[0,.54986,0,0,.66667],8916:[0,.69224,0,0,.66667],8918:[.0391,.5391,0,0,.77778],8919:[.0391,.5391,0,0,.77778],8920:[.03517,.54986,0,0,1.33334],8921:[.03517,.54986,0,0,1.33334],8922:[.38569,.88569,0,0,.77778],8923:[.38569,.88569,0,0,.77778],8926:[.13667,.63667,0,0,.77778],8927:[.13667,.63667,0,0,.77778],8928:[.30274,.79383,0,0,.77778],8929:[.30274,.79383,0,0,.77778],8934:[.23222,.74111,0,0,.77778],8935:[.23222,.74111,0,0,.77778],8936:[.23222,.74111,0,0,.77778],8937:[.23222,.74111,0,0,.77778],8938:[.20576,.70576,0,0,.77778],8939:[.20576,.70576,0,0,.77778],8940:[.30274,.79383,0,0,.77778],8941:[.30274,.79383,0,0,.77778],8994:[.19444,.69224,0,0,.77778],8995:[.19444,.69224,0,0,.77778],9416:[.15559,.69224,0,0,.90222],9484:[0,.69224,0,0,.5],9488:[0,.69224,0,0,.5],9492:[0,.37788,0,0,.5],9496:[0,.37788,0,0,.5],9585:[.19444,.68889,0,0,.88889],9586:[.19444,.74111,0,0,.88889],9632:[0,.675,0,0,.77778],9633:[0,.675,0,0,.77778],9650:[0,.54986,0,0,.72222],9651:[0,.54986,0,0,.72222],9654:[.03517,.54986,0,0,.77778],9660:[0,.54986,0,0,.72222],9661:[0,.54986,0,0,.72222],9664:[.03517,.54986,0,0,.77778],9674:[.11111,.69224,0,0,.66667],9733:[.19444,.69224,0,0,.94445],10003:[0,.69224,0,0,.83334],10016:[0,.69224,0,0,.83334],10731:[.11111,.69224,0,0,.66667],10846:[.19444,.75583,0,0,.61111],10877:[.13667,.63667,0,0,.77778],10878:[.13667,.63667,0,0,.77778],10885:[.25583,.75583,0,0,.77778],10886:[.25583,.75583,0,0,.77778],10887:[.13597,.63597,0,0,.77778],10888:[.13597,.63597,0,0,.77778],10889:[.26167,.75726,0,0,.77778],10890:[.26167,.75726,0,0,.77778],10891:[.48256,.98256,0,0,.77778],10892:[.48256,.98256,0,0,.77778],10901:[.13667,.63667,0,0,.77778],10902:[.13667,.63667,0,0,.77778],10933:[.25142,.75726,0,0,.77778],10934:[.25142,.75726,0,0,.77778],10935:[.26167,.75726,0,0,.77778],10936:[.26167,.75726,0,0,.77778],10937:[.26167,.75726,0,0,.77778],10938:[.26167,.75726,0,0,.77778],10949:[.25583,.75583,0,0,.77778],10950:[.25583,.75583,0,0,.77778],10955:[.28481,.79383,0,0,.77778],10956:[.28481,.79383,0,0,.77778],57350:[.08167,.58167,0,0,.22222],57351:[.08167,.58167,0,0,.38889],57352:[.08167,.58167,0,0,.77778],57353:[0,.43056,.04028,0,.66667],57356:[.25142,.75726,0,0,.77778],57357:[.25142,.75726,0,0,.77778],57358:[.41951,.91951,0,0,.77778],57359:[.30274,.79383,0,0,.77778],57360:[.30274,.79383,0,0,.77778],57361:[.41951,.91951,0,0,.77778],57366:[.25142,.75726,0,0,.77778],57367:[.25142,.75726,0,0,.77778],57368:[.25142,.75726,0,0,.77778],57369:[.25142,.75726,0,0,.77778],57370:[.13597,.63597,0,0,.77778],57371:[.13597,.63597,0,0,.77778]},"Caligraphic-Regular":{32:[0,0,0,0,.25],65:[0,.68333,0,.19445,.79847],66:[0,.68333,.03041,.13889,.65681],67:[0,.68333,.05834,.13889,.52653],68:[0,.68333,.02778,.08334,.77139],69:[0,.68333,.08944,.11111,.52778],70:[0,.68333,.09931,.11111,.71875],71:[.09722,.68333,.0593,.11111,.59487],72:[0,.68333,.00965,.11111,.84452],73:[0,.68333,.07382,0,.54452],74:[.09722,.68333,.18472,.16667,.67778],75:[0,.68333,.01445,.05556,.76195],76:[0,.68333,0,.13889,.68972],77:[0,.68333,0,.13889,1.2009],78:[0,.68333,.14736,.08334,.82049],79:[0,.68333,.02778,.11111,.79611],80:[0,.68333,.08222,.08334,.69556],81:[.09722,.68333,0,.11111,.81667],82:[0,.68333,0,.08334,.8475],83:[0,.68333,.075,.13889,.60556],84:[0,.68333,.25417,0,.54464],85:[0,.68333,.09931,.08334,.62583],86:[0,.68333,.08222,0,.61278],87:[0,.68333,.08222,.08334,.98778],88:[0,.68333,.14643,.13889,.7133],89:[.09722,.68333,.08222,.08334,.66834],90:[0,.68333,.07944,.13889,.72473],160:[0,0,0,0,.25]},"Fraktur-Regular":{32:[0,0,0,0,.25],33:[0,.69141,0,0,.29574],34:[0,.69141,0,0,.21471],38:[0,.69141,0,0,.73786],39:[0,.69141,0,0,.21201],40:[.24982,.74947,0,0,.38865],41:[.24982,.74947,0,0,.38865],42:[0,.62119,0,0,.27764],43:[.08319,.58283,0,0,.75623],44:[0,.10803,0,0,.27764],45:[.08319,.58283,0,0,.75623],46:[0,.10803,0,0,.27764],47:[.24982,.74947,0,0,.50181],48:[0,.47534,0,0,.50181],49:[0,.47534,0,0,.50181],50:[0,.47534,0,0,.50181],51:[.18906,.47534,0,0,.50181],52:[.18906,.47534,0,0,.50181],53:[.18906,.47534,0,0,.50181],54:[0,.69141,0,0,.50181],55:[.18906,.47534,0,0,.50181],56:[0,.69141,0,0,.50181],57:[.18906,.47534,0,0,.50181],58:[0,.47534,0,0,.21606],59:[.12604,.47534,0,0,.21606],61:[-.13099,.36866,0,0,.75623],63:[0,.69141,0,0,.36245],65:[0,.69141,0,0,.7176],66:[0,.69141,0,0,.88397],67:[0,.69141,0,0,.61254],68:[0,.69141,0,0,.83158],69:[0,.69141,0,0,.66278],70:[.12604,.69141,0,0,.61119],71:[0,.69141,0,0,.78539],72:[.06302,.69141,0,0,.7203],73:[0,.69141,0,0,.55448],74:[.12604,.69141,0,0,.55231],75:[0,.69141,0,0,.66845],76:[0,.69141,0,0,.66602],77:[0,.69141,0,0,1.04953],78:[0,.69141,0,0,.83212],79:[0,.69141,0,0,.82699],80:[.18906,.69141,0,0,.82753],81:[.03781,.69141,0,0,.82699],82:[0,.69141,0,0,.82807],83:[0,.69141,0,0,.82861],84:[0,.69141,0,0,.66899],85:[0,.69141,0,0,.64576],86:[0,.69141,0,0,.83131],87:[0,.69141,0,0,1.04602],88:[0,.69141,0,0,.71922],89:[.18906,.69141,0,0,.83293],90:[.12604,.69141,0,0,.60201],91:[.24982,.74947,0,0,.27764],93:[.24982,.74947,0,0,.27764],94:[0,.69141,0,0,.49965],97:[0,.47534,0,0,.50046],98:[0,.69141,0,0,.51315],99:[0,.47534,0,0,.38946],100:[0,.62119,0,0,.49857],101:[0,.47534,0,0,.40053],102:[.18906,.69141,0,0,.32626],103:[.18906,.47534,0,0,.5037],104:[.18906,.69141,0,0,.52126],105:[0,.69141,0,0,.27899],106:[0,.69141,0,0,.28088],107:[0,.69141,0,0,.38946],108:[0,.69141,0,0,.27953],109:[0,.47534,0,0,.76676],110:[0,.47534,0,0,.52666],111:[0,.47534,0,0,.48885],112:[.18906,.52396,0,0,.50046],113:[.18906,.47534,0,0,.48912],114:[0,.47534,0,0,.38919],115:[0,.47534,0,0,.44266],116:[0,.62119,0,0,.33301],117:[0,.47534,0,0,.5172],118:[0,.52396,0,0,.5118],119:[0,.52396,0,0,.77351],120:[.18906,.47534,0,0,.38865],121:[.18906,.47534,0,0,.49884],122:[.18906,.47534,0,0,.39054],160:[0,0,0,0,.25],8216:[0,.69141,0,0,.21471],8217:[0,.69141,0,0,.21471],58112:[0,.62119,0,0,.49749],58113:[0,.62119,0,0,.4983],58114:[.18906,.69141,0,0,.33328],58115:[.18906,.69141,0,0,.32923],58116:[.18906,.47534,0,0,.50343],58117:[0,.69141,0,0,.33301],58118:[0,.62119,0,0,.33409],58119:[0,.47534,0,0,.50073]},"Main-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.35],34:[0,.69444,0,0,.60278],35:[.19444,.69444,0,0,.95833],36:[.05556,.75,0,0,.575],37:[.05556,.75,0,0,.95833],38:[0,.69444,0,0,.89444],39:[0,.69444,0,0,.31944],40:[.25,.75,0,0,.44722],41:[.25,.75,0,0,.44722],42:[0,.75,0,0,.575],43:[.13333,.63333,0,0,.89444],44:[.19444,.15556,0,0,.31944],45:[0,.44444,0,0,.38333],46:[0,.15556,0,0,.31944],47:[.25,.75,0,0,.575],48:[0,.64444,0,0,.575],49:[0,.64444,0,0,.575],50:[0,.64444,0,0,.575],51:[0,.64444,0,0,.575],52:[0,.64444,0,0,.575],53:[0,.64444,0,0,.575],54:[0,.64444,0,0,.575],55:[0,.64444,0,0,.575],56:[0,.64444,0,0,.575],57:[0,.64444,0,0,.575],58:[0,.44444,0,0,.31944],59:[.19444,.44444,0,0,.31944],60:[.08556,.58556,0,0,.89444],61:[-.10889,.39111,0,0,.89444],62:[.08556,.58556,0,0,.89444],63:[0,.69444,0,0,.54305],64:[0,.69444,0,0,.89444],65:[0,.68611,0,0,.86944],66:[0,.68611,0,0,.81805],67:[0,.68611,0,0,.83055],68:[0,.68611,0,0,.88194],69:[0,.68611,0,0,.75555],70:[0,.68611,0,0,.72361],71:[0,.68611,0,0,.90416],72:[0,.68611,0,0,.9],73:[0,.68611,0,0,.43611],74:[0,.68611,0,0,.59444],75:[0,.68611,0,0,.90138],76:[0,.68611,0,0,.69166],77:[0,.68611,0,0,1.09166],78:[0,.68611,0,0,.9],79:[0,.68611,0,0,.86388],80:[0,.68611,0,0,.78611],81:[.19444,.68611,0,0,.86388],82:[0,.68611,0,0,.8625],83:[0,.68611,0,0,.63889],84:[0,.68611,0,0,.8],85:[0,.68611,0,0,.88472],86:[0,.68611,.01597,0,.86944],87:[0,.68611,.01597,0,1.18888],88:[0,.68611,0,0,.86944],89:[0,.68611,.02875,0,.86944],90:[0,.68611,0,0,.70277],91:[.25,.75,0,0,.31944],92:[.25,.75,0,0,.575],93:[.25,.75,0,0,.31944],94:[0,.69444,0,0,.575],95:[.31,.13444,.03194,0,.575],97:[0,.44444,0,0,.55902],98:[0,.69444,0,0,.63889],99:[0,.44444,0,0,.51111],100:[0,.69444,0,0,.63889],101:[0,.44444,0,0,.52708],102:[0,.69444,.10903,0,.35139],103:[.19444,.44444,.01597,0,.575],104:[0,.69444,0,0,.63889],105:[0,.69444,0,0,.31944],106:[.19444,.69444,0,0,.35139],107:[0,.69444,0,0,.60694],108:[0,.69444,0,0,.31944],109:[0,.44444,0,0,.95833],110:[0,.44444,0,0,.63889],111:[0,.44444,0,0,.575],112:[.19444,.44444,0,0,.63889],113:[.19444,.44444,0,0,.60694],114:[0,.44444,0,0,.47361],115:[0,.44444,0,0,.45361],116:[0,.63492,0,0,.44722],117:[0,.44444,0,0,.63889],118:[0,.44444,.01597,0,.60694],119:[0,.44444,.01597,0,.83055],120:[0,.44444,0,0,.60694],121:[.19444,.44444,.01597,0,.60694],122:[0,.44444,0,0,.51111],123:[.25,.75,0,0,.575],124:[.25,.75,0,0,.31944],125:[.25,.75,0,0,.575],126:[.35,.34444,0,0,.575],160:[0,0,0,0,.25],163:[0,.69444,0,0,.86853],168:[0,.69444,0,0,.575],172:[0,.44444,0,0,.76666],176:[0,.69444,0,0,.86944],177:[.13333,.63333,0,0,.89444],184:[.17014,0,0,0,.51111],198:[0,.68611,0,0,1.04166],215:[.13333,.63333,0,0,.89444],216:[.04861,.73472,0,0,.89444],223:[0,.69444,0,0,.59722],230:[0,.44444,0,0,.83055],247:[.13333,.63333,0,0,.89444],248:[.09722,.54167,0,0,.575],305:[0,.44444,0,0,.31944],338:[0,.68611,0,0,1.16944],339:[0,.44444,0,0,.89444],567:[.19444,.44444,0,0,.35139],710:[0,.69444,0,0,.575],711:[0,.63194,0,0,.575],713:[0,.59611,0,0,.575],714:[0,.69444,0,0,.575],715:[0,.69444,0,0,.575],728:[0,.69444,0,0,.575],729:[0,.69444,0,0,.31944],730:[0,.69444,0,0,.86944],732:[0,.69444,0,0,.575],733:[0,.69444,0,0,.575],915:[0,.68611,0,0,.69166],916:[0,.68611,0,0,.95833],920:[0,.68611,0,0,.89444],923:[0,.68611,0,0,.80555],926:[0,.68611,0,0,.76666],928:[0,.68611,0,0,.9],931:[0,.68611,0,0,.83055],933:[0,.68611,0,0,.89444],934:[0,.68611,0,0,.83055],936:[0,.68611,0,0,.89444],937:[0,.68611,0,0,.83055],8211:[0,.44444,.03194,0,.575],8212:[0,.44444,.03194,0,1.14999],8216:[0,.69444,0,0,.31944],8217:[0,.69444,0,0,.31944],8220:[0,.69444,0,0,.60278],8221:[0,.69444,0,0,.60278],8224:[.19444,.69444,0,0,.51111],8225:[.19444,.69444,0,0,.51111],8242:[0,.55556,0,0,.34444],8407:[0,.72444,.15486,0,.575],8463:[0,.69444,0,0,.66759],8465:[0,.69444,0,0,.83055],8467:[0,.69444,0,0,.47361],8472:[.19444,.44444,0,0,.74027],8476:[0,.69444,0,0,.83055],8501:[0,.69444,0,0,.70277],8592:[-.10889,.39111,0,0,1.14999],8593:[.19444,.69444,0,0,.575],8594:[-.10889,.39111,0,0,1.14999],8595:[.19444,.69444,0,0,.575],8596:[-.10889,.39111,0,0,1.14999],8597:[.25,.75,0,0,.575],8598:[.19444,.69444,0,0,1.14999],8599:[.19444,.69444,0,0,1.14999],8600:[.19444,.69444,0,0,1.14999],8601:[.19444,.69444,0,0,1.14999],8636:[-.10889,.39111,0,0,1.14999],8637:[-.10889,.39111,0,0,1.14999],8640:[-.10889,.39111,0,0,1.14999],8641:[-.10889,.39111,0,0,1.14999],8656:[-.10889,.39111,0,0,1.14999],8657:[.19444,.69444,0,0,.70277],8658:[-.10889,.39111,0,0,1.14999],8659:[.19444,.69444,0,0,.70277],8660:[-.10889,.39111,0,0,1.14999],8661:[.25,.75,0,0,.70277],8704:[0,.69444,0,0,.63889],8706:[0,.69444,.06389,0,.62847],8707:[0,.69444,0,0,.63889],8709:[.05556,.75,0,0,.575],8711:[0,.68611,0,0,.95833],8712:[.08556,.58556,0,0,.76666],8715:[.08556,.58556,0,0,.76666],8722:[.13333,.63333,0,0,.89444],8723:[.13333,.63333,0,0,.89444],8725:[.25,.75,0,0,.575],8726:[.25,.75,0,0,.575],8727:[-.02778,.47222,0,0,.575],8728:[-.02639,.47361,0,0,.575],8729:[-.02639,.47361,0,0,.575],8730:[.18,.82,0,0,.95833],8733:[0,.44444,0,0,.89444],8734:[0,.44444,0,0,1.14999],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.31944],8741:[.25,.75,0,0,.575],8743:[0,.55556,0,0,.76666],8744:[0,.55556,0,0,.76666],8745:[0,.55556,0,0,.76666],8746:[0,.55556,0,0,.76666],8747:[.19444,.69444,.12778,0,.56875],8764:[-.10889,.39111,0,0,.89444],8768:[.19444,.69444,0,0,.31944],8771:[.00222,.50222,0,0,.89444],8773:[.027,.638,0,0,.894],8776:[.02444,.52444,0,0,.89444],8781:[.00222,.50222,0,0,.89444],8801:[.00222,.50222,0,0,.89444],8804:[.19667,.69667,0,0,.89444],8805:[.19667,.69667,0,0,.89444],8810:[.08556,.58556,0,0,1.14999],8811:[.08556,.58556,0,0,1.14999],8826:[.08556,.58556,0,0,.89444],8827:[.08556,.58556,0,0,.89444],8834:[.08556,.58556,0,0,.89444],8835:[.08556,.58556,0,0,.89444],8838:[.19667,.69667,0,0,.89444],8839:[.19667,.69667,0,0,.89444],8846:[0,.55556,0,0,.76666],8849:[.19667,.69667,0,0,.89444],8850:[.19667,.69667,0,0,.89444],8851:[0,.55556,0,0,.76666],8852:[0,.55556,0,0,.76666],8853:[.13333,.63333,0,0,.89444],8854:[.13333,.63333,0,0,.89444],8855:[.13333,.63333,0,0,.89444],8856:[.13333,.63333,0,0,.89444],8857:[.13333,.63333,0,0,.89444],8866:[0,.69444,0,0,.70277],8867:[0,.69444,0,0,.70277],8868:[0,.69444,0,0,.89444],8869:[0,.69444,0,0,.89444],8900:[-.02639,.47361,0,0,.575],8901:[-.02639,.47361,0,0,.31944],8902:[-.02778,.47222,0,0,.575],8968:[.25,.75,0,0,.51111],8969:[.25,.75,0,0,.51111],8970:[.25,.75,0,0,.51111],8971:[.25,.75,0,0,.51111],8994:[-.13889,.36111,0,0,1.14999],8995:[-.13889,.36111,0,0,1.14999],9651:[.19444,.69444,0,0,1.02222],9657:[-.02778,.47222,0,0,.575],9661:[.19444,.69444,0,0,1.02222],9667:[-.02778,.47222,0,0,.575],9711:[.19444,.69444,0,0,1.14999],9824:[.12963,.69444,0,0,.89444],9825:[.12963,.69444,0,0,.89444],9826:[.12963,.69444,0,0,.89444],9827:[.12963,.69444,0,0,.89444],9837:[0,.75,0,0,.44722],9838:[.19444,.69444,0,0,.44722],9839:[.19444,.69444,0,0,.44722],10216:[.25,.75,0,0,.44722],10217:[.25,.75,0,0,.44722],10815:[0,.68611,0,0,.9],10927:[.19667,.69667,0,0,.89444],10928:[.19667,.69667,0,0,.89444],57376:[.19444,.69444,0,0,0]},"Main-BoldItalic":{32:[0,0,0,0,.25],33:[0,.69444,.11417,0,.38611],34:[0,.69444,.07939,0,.62055],35:[.19444,.69444,.06833,0,.94444],37:[.05556,.75,.12861,0,.94444],38:[0,.69444,.08528,0,.88555],39:[0,.69444,.12945,0,.35555],40:[.25,.75,.15806,0,.47333],41:[.25,.75,.03306,0,.47333],42:[0,.75,.14333,0,.59111],43:[.10333,.60333,.03306,0,.88555],44:[.19444,.14722,0,0,.35555],45:[0,.44444,.02611,0,.41444],46:[0,.14722,0,0,.35555],47:[.25,.75,.15806,0,.59111],48:[0,.64444,.13167,0,.59111],49:[0,.64444,.13167,0,.59111],50:[0,.64444,.13167,0,.59111],51:[0,.64444,.13167,0,.59111],52:[.19444,.64444,.13167,0,.59111],53:[0,.64444,.13167,0,.59111],54:[0,.64444,.13167,0,.59111],55:[.19444,.64444,.13167,0,.59111],56:[0,.64444,.13167,0,.59111],57:[0,.64444,.13167,0,.59111],58:[0,.44444,.06695,0,.35555],59:[.19444,.44444,.06695,0,.35555],61:[-.10889,.39111,.06833,0,.88555],63:[0,.69444,.11472,0,.59111],64:[0,.69444,.09208,0,.88555],65:[0,.68611,0,0,.86555],66:[0,.68611,.0992,0,.81666],67:[0,.68611,.14208,0,.82666],68:[0,.68611,.09062,0,.87555],69:[0,.68611,.11431,0,.75666],70:[0,.68611,.12903,0,.72722],71:[0,.68611,.07347,0,.89527],72:[0,.68611,.17208,0,.8961],73:[0,.68611,.15681,0,.47166],74:[0,.68611,.145,0,.61055],75:[0,.68611,.14208,0,.89499],76:[0,.68611,0,0,.69777],77:[0,.68611,.17208,0,1.07277],78:[0,.68611,.17208,0,.8961],79:[0,.68611,.09062,0,.85499],80:[0,.68611,.0992,0,.78721],81:[.19444,.68611,.09062,0,.85499],82:[0,.68611,.02559,0,.85944],83:[0,.68611,.11264,0,.64999],84:[0,.68611,.12903,0,.7961],85:[0,.68611,.17208,0,.88083],86:[0,.68611,.18625,0,.86555],87:[0,.68611,.18625,0,1.15999],88:[0,.68611,.15681,0,.86555],89:[0,.68611,.19803,0,.86555],90:[0,.68611,.14208,0,.70888],91:[.25,.75,.1875,0,.35611],93:[.25,.75,.09972,0,.35611],94:[0,.69444,.06709,0,.59111],95:[.31,.13444,.09811,0,.59111],97:[0,.44444,.09426,0,.59111],98:[0,.69444,.07861,0,.53222],99:[0,.44444,.05222,0,.53222],100:[0,.69444,.10861,0,.59111],101:[0,.44444,.085,0,.53222],102:[.19444,.69444,.21778,0,.4],103:[.19444,.44444,.105,0,.53222],104:[0,.69444,.09426,0,.59111],105:[0,.69326,.11387,0,.35555],106:[.19444,.69326,.1672,0,.35555],107:[0,.69444,.11111,0,.53222],108:[0,.69444,.10861,0,.29666],109:[0,.44444,.09426,0,.94444],110:[0,.44444,.09426,0,.64999],111:[0,.44444,.07861,0,.59111],112:[.19444,.44444,.07861,0,.59111],113:[.19444,.44444,.105,0,.53222],114:[0,.44444,.11111,0,.50167],115:[0,.44444,.08167,0,.48694],116:[0,.63492,.09639,0,.385],117:[0,.44444,.09426,0,.62055],118:[0,.44444,.11111,0,.53222],119:[0,.44444,.11111,0,.76777],120:[0,.44444,.12583,0,.56055],121:[.19444,.44444,.105,0,.56166],122:[0,.44444,.13889,0,.49055],126:[.35,.34444,.11472,0,.59111],160:[0,0,0,0,.25],168:[0,.69444,.11473,0,.59111],176:[0,.69444,0,0,.94888],184:[.17014,0,0,0,.53222],198:[0,.68611,.11431,0,1.02277],216:[.04861,.73472,.09062,0,.88555],223:[.19444,.69444,.09736,0,.665],230:[0,.44444,.085,0,.82666],248:[.09722,.54167,.09458,0,.59111],305:[0,.44444,.09426,0,.35555],338:[0,.68611,.11431,0,1.14054],339:[0,.44444,.085,0,.82666],567:[.19444,.44444,.04611,0,.385],710:[0,.69444,.06709,0,.59111],711:[0,.63194,.08271,0,.59111],713:[0,.59444,.10444,0,.59111],714:[0,.69444,.08528,0,.59111],715:[0,.69444,0,0,.59111],728:[0,.69444,.10333,0,.59111],729:[0,.69444,.12945,0,.35555],730:[0,.69444,0,0,.94888],732:[0,.69444,.11472,0,.59111],733:[0,.69444,.11472,0,.59111],915:[0,.68611,.12903,0,.69777],916:[0,.68611,0,0,.94444],920:[0,.68611,.09062,0,.88555],923:[0,.68611,0,0,.80666],926:[0,.68611,.15092,0,.76777],928:[0,.68611,.17208,0,.8961],931:[0,.68611,.11431,0,.82666],933:[0,.68611,.10778,0,.88555],934:[0,.68611,.05632,0,.82666],936:[0,.68611,.10778,0,.88555],937:[0,.68611,.0992,0,.82666],8211:[0,.44444,.09811,0,.59111],8212:[0,.44444,.09811,0,1.18221],8216:[0,.69444,.12945,0,.35555],8217:[0,.69444,.12945,0,.35555],8220:[0,.69444,.16772,0,.62055],8221:[0,.69444,.07939,0,.62055]},"Main-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.12417,0,.30667],34:[0,.69444,.06961,0,.51444],35:[.19444,.69444,.06616,0,.81777],37:[.05556,.75,.13639,0,.81777],38:[0,.69444,.09694,0,.76666],39:[0,.69444,.12417,0,.30667],40:[.25,.75,.16194,0,.40889],41:[.25,.75,.03694,0,.40889],42:[0,.75,.14917,0,.51111],43:[.05667,.56167,.03694,0,.76666],44:[.19444,.10556,0,0,.30667],45:[0,.43056,.02826,0,.35778],46:[0,.10556,0,0,.30667],47:[.25,.75,.16194,0,.51111],48:[0,.64444,.13556,0,.51111],49:[0,.64444,.13556,0,.51111],50:[0,.64444,.13556,0,.51111],51:[0,.64444,.13556,0,.51111],52:[.19444,.64444,.13556,0,.51111],53:[0,.64444,.13556,0,.51111],54:[0,.64444,.13556,0,.51111],55:[.19444,.64444,.13556,0,.51111],56:[0,.64444,.13556,0,.51111],57:[0,.64444,.13556,0,.51111],58:[0,.43056,.0582,0,.30667],59:[.19444,.43056,.0582,0,.30667],61:[-.13313,.36687,.06616,0,.76666],63:[0,.69444,.1225,0,.51111],64:[0,.69444,.09597,0,.76666],65:[0,.68333,0,0,.74333],66:[0,.68333,.10257,0,.70389],67:[0,.68333,.14528,0,.71555],68:[0,.68333,.09403,0,.755],69:[0,.68333,.12028,0,.67833],70:[0,.68333,.13305,0,.65277],71:[0,.68333,.08722,0,.77361],72:[0,.68333,.16389,0,.74333],73:[0,.68333,.15806,0,.38555],74:[0,.68333,.14028,0,.525],75:[0,.68333,.14528,0,.76888],76:[0,.68333,0,0,.62722],77:[0,.68333,.16389,0,.89666],78:[0,.68333,.16389,0,.74333],79:[0,.68333,.09403,0,.76666],80:[0,.68333,.10257,0,.67833],81:[.19444,.68333,.09403,0,.76666],82:[0,.68333,.03868,0,.72944],83:[0,.68333,.11972,0,.56222],84:[0,.68333,.13305,0,.71555],85:[0,.68333,.16389,0,.74333],86:[0,.68333,.18361,0,.74333],87:[0,.68333,.18361,0,.99888],88:[0,.68333,.15806,0,.74333],89:[0,.68333,.19383,0,.74333],90:[0,.68333,.14528,0,.61333],91:[.25,.75,.1875,0,.30667],93:[.25,.75,.10528,0,.30667],94:[0,.69444,.06646,0,.51111],95:[.31,.12056,.09208,0,.51111],97:[0,.43056,.07671,0,.51111],98:[0,.69444,.06312,0,.46],99:[0,.43056,.05653,0,.46],100:[0,.69444,.10333,0,.51111],101:[0,.43056,.07514,0,.46],102:[.19444,.69444,.21194,0,.30667],103:[.19444,.43056,.08847,0,.46],104:[0,.69444,.07671,0,.51111],105:[0,.65536,.1019,0,.30667],106:[.19444,.65536,.14467,0,.30667],107:[0,.69444,.10764,0,.46],108:[0,.69444,.10333,0,.25555],109:[0,.43056,.07671,0,.81777],110:[0,.43056,.07671,0,.56222],111:[0,.43056,.06312,0,.51111],112:[.19444,.43056,.06312,0,.51111],113:[.19444,.43056,.08847,0,.46],114:[0,.43056,.10764,0,.42166],115:[0,.43056,.08208,0,.40889],116:[0,.61508,.09486,0,.33222],117:[0,.43056,.07671,0,.53666],118:[0,.43056,.10764,0,.46],119:[0,.43056,.10764,0,.66444],120:[0,.43056,.12042,0,.46389],121:[.19444,.43056,.08847,0,.48555],122:[0,.43056,.12292,0,.40889],126:[.35,.31786,.11585,0,.51111],160:[0,0,0,0,.25],168:[0,.66786,.10474,0,.51111],176:[0,.69444,0,0,.83129],184:[.17014,0,0,0,.46],198:[0,.68333,.12028,0,.88277],216:[.04861,.73194,.09403,0,.76666],223:[.19444,.69444,.10514,0,.53666],230:[0,.43056,.07514,0,.71555],248:[.09722,.52778,.09194,0,.51111],338:[0,.68333,.12028,0,.98499],339:[0,.43056,.07514,0,.71555],710:[0,.69444,.06646,0,.51111],711:[0,.62847,.08295,0,.51111],713:[0,.56167,.10333,0,.51111],714:[0,.69444,.09694,0,.51111],715:[0,.69444,0,0,.51111],728:[0,.69444,.10806,0,.51111],729:[0,.66786,.11752,0,.30667],730:[0,.69444,0,0,.83129],732:[0,.66786,.11585,0,.51111],733:[0,.69444,.1225,0,.51111],915:[0,.68333,.13305,0,.62722],916:[0,.68333,0,0,.81777],920:[0,.68333,.09403,0,.76666],923:[0,.68333,0,0,.69222],926:[0,.68333,.15294,0,.66444],928:[0,.68333,.16389,0,.74333],931:[0,.68333,.12028,0,.71555],933:[0,.68333,.11111,0,.76666],934:[0,.68333,.05986,0,.71555],936:[0,.68333,.11111,0,.76666],937:[0,.68333,.10257,0,.71555],8211:[0,.43056,.09208,0,.51111],8212:[0,.43056,.09208,0,1.02222],8216:[0,.69444,.12417,0,.30667],8217:[0,.69444,.12417,0,.30667],8220:[0,.69444,.1685,0,.51444],8221:[0,.69444,.06961,0,.51444],8463:[0,.68889,0,0,.54028]},"Main-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.27778],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.77778],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.19444,.10556,0,0,.27778],45:[0,.43056,0,0,.33333],46:[0,.10556,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.64444,0,0,.5],49:[0,.64444,0,0,.5],50:[0,.64444,0,0,.5],51:[0,.64444,0,0,.5],52:[0,.64444,0,0,.5],53:[0,.64444,0,0,.5],54:[0,.64444,0,0,.5],55:[0,.64444,0,0,.5],56:[0,.64444,0,0,.5],57:[0,.64444,0,0,.5],58:[0,.43056,0,0,.27778],59:[.19444,.43056,0,0,.27778],60:[.0391,.5391,0,0,.77778],61:[-.13313,.36687,0,0,.77778],62:[.0391,.5391,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.77778],65:[0,.68333,0,0,.75],66:[0,.68333,0,0,.70834],67:[0,.68333,0,0,.72222],68:[0,.68333,0,0,.76389],69:[0,.68333,0,0,.68056],70:[0,.68333,0,0,.65278],71:[0,.68333,0,0,.78472],72:[0,.68333,0,0,.75],73:[0,.68333,0,0,.36111],74:[0,.68333,0,0,.51389],75:[0,.68333,0,0,.77778],76:[0,.68333,0,0,.625],77:[0,.68333,0,0,.91667],78:[0,.68333,0,0,.75],79:[0,.68333,0,0,.77778],80:[0,.68333,0,0,.68056],81:[.19444,.68333,0,0,.77778],82:[0,.68333,0,0,.73611],83:[0,.68333,0,0,.55556],84:[0,.68333,0,0,.72222],85:[0,.68333,0,0,.75],86:[0,.68333,.01389,0,.75],87:[0,.68333,.01389,0,1.02778],88:[0,.68333,0,0,.75],89:[0,.68333,.025,0,.75],90:[0,.68333,0,0,.61111],91:[.25,.75,0,0,.27778],92:[.25,.75,0,0,.5],93:[.25,.75,0,0,.27778],94:[0,.69444,0,0,.5],95:[.31,.12056,.02778,0,.5],97:[0,.43056,0,0,.5],98:[0,.69444,0,0,.55556],99:[0,.43056,0,0,.44445],100:[0,.69444,0,0,.55556],101:[0,.43056,0,0,.44445],102:[0,.69444,.07778,0,.30556],103:[.19444,.43056,.01389,0,.5],104:[0,.69444,0,0,.55556],105:[0,.66786,0,0,.27778],106:[.19444,.66786,0,0,.30556],107:[0,.69444,0,0,.52778],108:[0,.69444,0,0,.27778],109:[0,.43056,0,0,.83334],110:[0,.43056,0,0,.55556],111:[0,.43056,0,0,.5],112:[.19444,.43056,0,0,.55556],113:[.19444,.43056,0,0,.52778],114:[0,.43056,0,0,.39167],115:[0,.43056,0,0,.39445],116:[0,.61508,0,0,.38889],117:[0,.43056,0,0,.55556],118:[0,.43056,.01389,0,.52778],119:[0,.43056,.01389,0,.72222],120:[0,.43056,0,0,.52778],121:[.19444,.43056,.01389,0,.52778],122:[0,.43056,0,0,.44445],123:[.25,.75,0,0,.5],124:[.25,.75,0,0,.27778],125:[.25,.75,0,0,.5],126:[.35,.31786,0,0,.5],160:[0,0,0,0,.25],163:[0,.69444,0,0,.76909],167:[.19444,.69444,0,0,.44445],168:[0,.66786,0,0,.5],172:[0,.43056,0,0,.66667],176:[0,.69444,0,0,.75],177:[.08333,.58333,0,0,.77778],182:[.19444,.69444,0,0,.61111],184:[.17014,0,0,0,.44445],198:[0,.68333,0,0,.90278],215:[.08333,.58333,0,0,.77778],216:[.04861,.73194,0,0,.77778],223:[0,.69444,0,0,.5],230:[0,.43056,0,0,.72222],247:[.08333,.58333,0,0,.77778],248:[.09722,.52778,0,0,.5],305:[0,.43056,0,0,.27778],338:[0,.68333,0,0,1.01389],339:[0,.43056,0,0,.77778],567:[.19444,.43056,0,0,.30556],710:[0,.69444,0,0,.5],711:[0,.62847,0,0,.5],713:[0,.56778,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.66786,0,0,.27778],730:[0,.69444,0,0,.75],732:[0,.66786,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.68333,0,0,.625],916:[0,.68333,0,0,.83334],920:[0,.68333,0,0,.77778],923:[0,.68333,0,0,.69445],926:[0,.68333,0,0,.66667],928:[0,.68333,0,0,.75],931:[0,.68333,0,0,.72222],933:[0,.68333,0,0,.77778],934:[0,.68333,0,0,.72222],936:[0,.68333,0,0,.77778],937:[0,.68333,0,0,.72222],8211:[0,.43056,.02778,0,.5],8212:[0,.43056,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5],8224:[.19444,.69444,0,0,.44445],8225:[.19444,.69444,0,0,.44445],8230:[0,.123,0,0,1.172],8242:[0,.55556,0,0,.275],8407:[0,.71444,.15382,0,.5],8463:[0,.68889,0,0,.54028],8465:[0,.69444,0,0,.72222],8467:[0,.69444,0,.11111,.41667],8472:[.19444,.43056,0,.11111,.63646],8476:[0,.69444,0,0,.72222],8501:[0,.69444,0,0,.61111],8592:[-.13313,.36687,0,0,1],8593:[.19444,.69444,0,0,.5],8594:[-.13313,.36687,0,0,1],8595:[.19444,.69444,0,0,.5],8596:[-.13313,.36687,0,0,1],8597:[.25,.75,0,0,.5],8598:[.19444,.69444,0,0,1],8599:[.19444,.69444,0,0,1],8600:[.19444,.69444,0,0,1],8601:[.19444,.69444,0,0,1],8614:[.011,.511,0,0,1],8617:[.011,.511,0,0,1.126],8618:[.011,.511,0,0,1.126],8636:[-.13313,.36687,0,0,1],8637:[-.13313,.36687,0,0,1],8640:[-.13313,.36687,0,0,1],8641:[-.13313,.36687,0,0,1],8652:[.011,.671,0,0,1],8656:[-.13313,.36687,0,0,1],8657:[.19444,.69444,0,0,.61111],8658:[-.13313,.36687,0,0,1],8659:[.19444,.69444,0,0,.61111],8660:[-.13313,.36687,0,0,1],8661:[.25,.75,0,0,.61111],8704:[0,.69444,0,0,.55556],8706:[0,.69444,.05556,.08334,.5309],8707:[0,.69444,0,0,.55556],8709:[.05556,.75,0,0,.5],8711:[0,.68333,0,0,.83334],8712:[.0391,.5391,0,0,.66667],8715:[.0391,.5391,0,0,.66667],8722:[.08333,.58333,0,0,.77778],8723:[.08333,.58333,0,0,.77778],8725:[.25,.75,0,0,.5],8726:[.25,.75,0,0,.5],8727:[-.03472,.46528,0,0,.5],8728:[-.05555,.44445,0,0,.5],8729:[-.05555,.44445,0,0,.5],8730:[.2,.8,0,0,.83334],8733:[0,.43056,0,0,.77778],8734:[0,.43056,0,0,1],8736:[0,.69224,0,0,.72222],8739:[.25,.75,0,0,.27778],8741:[.25,.75,0,0,.5],8743:[0,.55556,0,0,.66667],8744:[0,.55556,0,0,.66667],8745:[0,.55556,0,0,.66667],8746:[0,.55556,0,0,.66667],8747:[.19444,.69444,.11111,0,.41667],8764:[-.13313,.36687,0,0,.77778],8768:[.19444,.69444,0,0,.27778],8771:[-.03625,.46375,0,0,.77778],8773:[-.022,.589,0,0,.778],8776:[-.01688,.48312,0,0,.77778],8781:[-.03625,.46375,0,0,.77778],8784:[-.133,.673,0,0,.778],8801:[-.03625,.46375,0,0,.77778],8804:[.13597,.63597,0,0,.77778],8805:[.13597,.63597,0,0,.77778],8810:[.0391,.5391,0,0,1],8811:[.0391,.5391,0,0,1],8826:[.0391,.5391,0,0,.77778],8827:[.0391,.5391,0,0,.77778],8834:[.0391,.5391,0,0,.77778],8835:[.0391,.5391,0,0,.77778],8838:[.13597,.63597,0,0,.77778],8839:[.13597,.63597,0,0,.77778],8846:[0,.55556,0,0,.66667],8849:[.13597,.63597,0,0,.77778],8850:[.13597,.63597,0,0,.77778],8851:[0,.55556,0,0,.66667],8852:[0,.55556,0,0,.66667],8853:[.08333,.58333,0,0,.77778],8854:[.08333,.58333,0,0,.77778],8855:[.08333,.58333,0,0,.77778],8856:[.08333,.58333,0,0,.77778],8857:[.08333,.58333,0,0,.77778],8866:[0,.69444,0,0,.61111],8867:[0,.69444,0,0,.61111],8868:[0,.69444,0,0,.77778],8869:[0,.69444,0,0,.77778],8872:[.249,.75,0,0,.867],8900:[-.05555,.44445,0,0,.5],8901:[-.05555,.44445,0,0,.27778],8902:[-.03472,.46528,0,0,.5],8904:[.005,.505,0,0,.9],8942:[.03,.903,0,0,.278],8943:[-.19,.313,0,0,1.172],8945:[-.1,.823,0,0,1.282],8968:[.25,.75,0,0,.44445],8969:[.25,.75,0,0,.44445],8970:[.25,.75,0,0,.44445],8971:[.25,.75,0,0,.44445],8994:[-.14236,.35764,0,0,1],8995:[-.14236,.35764,0,0,1],9136:[.244,.744,0,0,.412],9137:[.244,.745,0,0,.412],9651:[.19444,.69444,0,0,.88889],9657:[-.03472,.46528,0,0,.5],9661:[.19444,.69444,0,0,.88889],9667:[-.03472,.46528,0,0,.5],9711:[.19444,.69444,0,0,1],9824:[.12963,.69444,0,0,.77778],9825:[.12963,.69444,0,0,.77778],9826:[.12963,.69444,0,0,.77778],9827:[.12963,.69444,0,0,.77778],9837:[0,.75,0,0,.38889],9838:[.19444,.69444,0,0,.38889],9839:[.19444,.69444,0,0,.38889],10216:[.25,.75,0,0,.38889],10217:[.25,.75,0,0,.38889],10222:[.244,.744,0,0,.412],10223:[.244,.745,0,0,.412],10229:[.011,.511,0,0,1.609],10230:[.011,.511,0,0,1.638],10231:[.011,.511,0,0,1.859],10232:[.024,.525,0,0,1.609],10233:[.024,.525,0,0,1.638],10234:[.024,.525,0,0,1.858],10236:[.011,.511,0,0,1.638],10815:[0,.68333,0,0,.75],10927:[.13597,.63597,0,0,.77778],10928:[.13597,.63597,0,0,.77778],57376:[.19444,.69444,0,0,0]},"Math-BoldItalic":{32:[0,0,0,0,.25],48:[0,.44444,0,0,.575],49:[0,.44444,0,0,.575],50:[0,.44444,0,0,.575],51:[.19444,.44444,0,0,.575],52:[.19444,.44444,0,0,.575],53:[.19444,.44444,0,0,.575],54:[0,.64444,0,0,.575],55:[.19444,.44444,0,0,.575],56:[0,.64444,0,0,.575],57:[.19444,.44444,0,0,.575],65:[0,.68611,0,0,.86944],66:[0,.68611,.04835,0,.8664],67:[0,.68611,.06979,0,.81694],68:[0,.68611,.03194,0,.93812],69:[0,.68611,.05451,0,.81007],70:[0,.68611,.15972,0,.68889],71:[0,.68611,0,0,.88673],72:[0,.68611,.08229,0,.98229],73:[0,.68611,.07778,0,.51111],74:[0,.68611,.10069,0,.63125],75:[0,.68611,.06979,0,.97118],76:[0,.68611,0,0,.75555],77:[0,.68611,.11424,0,1.14201],78:[0,.68611,.11424,0,.95034],79:[0,.68611,.03194,0,.83666],80:[0,.68611,.15972,0,.72309],81:[.19444,.68611,0,0,.86861],82:[0,.68611,.00421,0,.87235],83:[0,.68611,.05382,0,.69271],84:[0,.68611,.15972,0,.63663],85:[0,.68611,.11424,0,.80027],86:[0,.68611,.25555,0,.67778],87:[0,.68611,.15972,0,1.09305],88:[0,.68611,.07778,0,.94722],89:[0,.68611,.25555,0,.67458],90:[0,.68611,.06979,0,.77257],97:[0,.44444,0,0,.63287],98:[0,.69444,0,0,.52083],99:[0,.44444,0,0,.51342],100:[0,.69444,0,0,.60972],101:[0,.44444,0,0,.55361],102:[.19444,.69444,.11042,0,.56806],103:[.19444,.44444,.03704,0,.5449],104:[0,.69444,0,0,.66759],105:[0,.69326,0,0,.4048],106:[.19444,.69326,.0622,0,.47083],107:[0,.69444,.01852,0,.6037],108:[0,.69444,.0088,0,.34815],109:[0,.44444,0,0,1.0324],110:[0,.44444,0,0,.71296],111:[0,.44444,0,0,.58472],112:[.19444,.44444,0,0,.60092],113:[.19444,.44444,.03704,0,.54213],114:[0,.44444,.03194,0,.5287],115:[0,.44444,0,0,.53125],116:[0,.63492,0,0,.41528],117:[0,.44444,0,0,.68102],118:[0,.44444,.03704,0,.56666],119:[0,.44444,.02778,0,.83148],120:[0,.44444,0,0,.65903],121:[.19444,.44444,.03704,0,.59028],122:[0,.44444,.04213,0,.55509],160:[0,0,0,0,.25],915:[0,.68611,.15972,0,.65694],916:[0,.68611,0,0,.95833],920:[0,.68611,.03194,0,.86722],923:[0,.68611,0,0,.80555],926:[0,.68611,.07458,0,.84125],928:[0,.68611,.08229,0,.98229],931:[0,.68611,.05451,0,.88507],933:[0,.68611,.15972,0,.67083],934:[0,.68611,0,0,.76666],936:[0,.68611,.11653,0,.71402],937:[0,.68611,.04835,0,.8789],945:[0,.44444,0,0,.76064],946:[.19444,.69444,.03403,0,.65972],947:[.19444,.44444,.06389,0,.59003],948:[0,.69444,.03819,0,.52222],949:[0,.44444,0,0,.52882],950:[.19444,.69444,.06215,0,.50833],951:[.19444,.44444,.03704,0,.6],952:[0,.69444,.03194,0,.5618],953:[0,.44444,0,0,.41204],954:[0,.44444,0,0,.66759],955:[0,.69444,0,0,.67083],956:[.19444,.44444,0,0,.70787],957:[0,.44444,.06898,0,.57685],958:[.19444,.69444,.03021,0,.50833],959:[0,.44444,0,0,.58472],960:[0,.44444,.03704,0,.68241],961:[.19444,.44444,0,0,.6118],962:[.09722,.44444,.07917,0,.42361],963:[0,.44444,.03704,0,.68588],964:[0,.44444,.13472,0,.52083],965:[0,.44444,.03704,0,.63055],966:[.19444,.44444,0,0,.74722],967:[.19444,.44444,0,0,.71805],968:[.19444,.69444,.03704,0,.75833],969:[0,.44444,.03704,0,.71782],977:[0,.69444,0,0,.69155],981:[.19444,.69444,0,0,.7125],982:[0,.44444,.03194,0,.975],1009:[.19444,.44444,0,0,.6118],1013:[0,.44444,0,0,.48333],57649:[0,.44444,0,0,.39352],57911:[.19444,.44444,0,0,.43889]},"Math-Italic":{32:[0,0,0,0,.25],48:[0,.43056,0,0,.5],49:[0,.43056,0,0,.5],50:[0,.43056,0,0,.5],51:[.19444,.43056,0,0,.5],52:[.19444,.43056,0,0,.5],53:[.19444,.43056,0,0,.5],54:[0,.64444,0,0,.5],55:[.19444,.43056,0,0,.5],56:[0,.64444,0,0,.5],57:[.19444,.43056,0,0,.5],65:[0,.68333,0,.13889,.75],66:[0,.68333,.05017,.08334,.75851],67:[0,.68333,.07153,.08334,.71472],68:[0,.68333,.02778,.05556,.82792],69:[0,.68333,.05764,.08334,.7382],70:[0,.68333,.13889,.08334,.64306],71:[0,.68333,0,.08334,.78625],72:[0,.68333,.08125,.05556,.83125],73:[0,.68333,.07847,.11111,.43958],74:[0,.68333,.09618,.16667,.55451],75:[0,.68333,.07153,.05556,.84931],76:[0,.68333,0,.02778,.68056],77:[0,.68333,.10903,.08334,.97014],78:[0,.68333,.10903,.08334,.80347],79:[0,.68333,.02778,.08334,.76278],80:[0,.68333,.13889,.08334,.64201],81:[.19444,.68333,0,.08334,.79056],82:[0,.68333,.00773,.08334,.75929],83:[0,.68333,.05764,.08334,.6132],84:[0,.68333,.13889,.08334,.58438],85:[0,.68333,.10903,.02778,.68278],86:[0,.68333,.22222,0,.58333],87:[0,.68333,.13889,0,.94445],88:[0,.68333,.07847,.08334,.82847],89:[0,.68333,.22222,0,.58056],90:[0,.68333,.07153,.08334,.68264],97:[0,.43056,0,0,.52859],98:[0,.69444,0,0,.42917],99:[0,.43056,0,.05556,.43276],100:[0,.69444,0,.16667,.52049],101:[0,.43056,0,.05556,.46563],102:[.19444,.69444,.10764,.16667,.48959],103:[.19444,.43056,.03588,.02778,.47697],104:[0,.69444,0,0,.57616],105:[0,.65952,0,0,.34451],106:[.19444,.65952,.05724,0,.41181],107:[0,.69444,.03148,0,.5206],108:[0,.69444,.01968,.08334,.29838],109:[0,.43056,0,0,.87801],110:[0,.43056,0,0,.60023],111:[0,.43056,0,.05556,.48472],112:[.19444,.43056,0,.08334,.50313],113:[.19444,.43056,.03588,.08334,.44641],114:[0,.43056,.02778,.05556,.45116],115:[0,.43056,0,.05556,.46875],116:[0,.61508,0,.08334,.36111],117:[0,.43056,0,.02778,.57246],118:[0,.43056,.03588,.02778,.48472],119:[0,.43056,.02691,.08334,.71592],120:[0,.43056,0,.02778,.57153],121:[.19444,.43056,.03588,.05556,.49028],122:[0,.43056,.04398,.05556,.46505],160:[0,0,0,0,.25],915:[0,.68333,.13889,.08334,.61528],916:[0,.68333,0,.16667,.83334],920:[0,.68333,.02778,.08334,.76278],923:[0,.68333,0,.16667,.69445],926:[0,.68333,.07569,.08334,.74236],928:[0,.68333,.08125,.05556,.83125],931:[0,.68333,.05764,.08334,.77986],933:[0,.68333,.13889,.05556,.58333],934:[0,.68333,0,.08334,.66667],936:[0,.68333,.11,.05556,.61222],937:[0,.68333,.05017,.08334,.7724],945:[0,.43056,.0037,.02778,.6397],946:[.19444,.69444,.05278,.08334,.56563],947:[.19444,.43056,.05556,0,.51773],948:[0,.69444,.03785,.05556,.44444],949:[0,.43056,0,.08334,.46632],950:[.19444,.69444,.07378,.08334,.4375],951:[.19444,.43056,.03588,.05556,.49653],952:[0,.69444,.02778,.08334,.46944],953:[0,.43056,0,.05556,.35394],954:[0,.43056,0,0,.57616],955:[0,.69444,0,0,.58334],956:[.19444,.43056,0,.02778,.60255],957:[0,.43056,.06366,.02778,.49398],958:[.19444,.69444,.04601,.11111,.4375],959:[0,.43056,0,.05556,.48472],960:[0,.43056,.03588,0,.57003],961:[.19444,.43056,0,.08334,.51702],962:[.09722,.43056,.07986,.08334,.36285],963:[0,.43056,.03588,0,.57141],964:[0,.43056,.1132,.02778,.43715],965:[0,.43056,.03588,.02778,.54028],966:[.19444,.43056,0,.08334,.65417],967:[.19444,.43056,0,.05556,.62569],968:[.19444,.69444,.03588,.11111,.65139],969:[0,.43056,.03588,0,.62245],977:[0,.69444,0,.08334,.59144],981:[.19444,.69444,0,.08334,.59583],982:[0,.43056,.02778,0,.82813],1009:[.19444,.43056,0,.08334,.51702],1013:[0,.43056,0,.05556,.4059],57649:[0,.43056,0,.02778,.32246],57911:[.19444,.43056,0,.08334,.38403]},"SansSerif-Bold":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.36667],34:[0,.69444,0,0,.55834],35:[.19444,.69444,0,0,.91667],36:[.05556,.75,0,0,.55],37:[.05556,.75,0,0,1.02912],38:[0,.69444,0,0,.83056],39:[0,.69444,0,0,.30556],40:[.25,.75,0,0,.42778],41:[.25,.75,0,0,.42778],42:[0,.75,0,0,.55],43:[.11667,.61667,0,0,.85556],44:[.10556,.13056,0,0,.30556],45:[0,.45833,0,0,.36667],46:[0,.13056,0,0,.30556],47:[.25,.75,0,0,.55],48:[0,.69444,0,0,.55],49:[0,.69444,0,0,.55],50:[0,.69444,0,0,.55],51:[0,.69444,0,0,.55],52:[0,.69444,0,0,.55],53:[0,.69444,0,0,.55],54:[0,.69444,0,0,.55],55:[0,.69444,0,0,.55],56:[0,.69444,0,0,.55],57:[0,.69444,0,0,.55],58:[0,.45833,0,0,.30556],59:[.10556,.45833,0,0,.30556],61:[-.09375,.40625,0,0,.85556],63:[0,.69444,0,0,.51945],64:[0,.69444,0,0,.73334],65:[0,.69444,0,0,.73334],66:[0,.69444,0,0,.73334],67:[0,.69444,0,0,.70278],68:[0,.69444,0,0,.79445],69:[0,.69444,0,0,.64167],70:[0,.69444,0,0,.61111],71:[0,.69444,0,0,.73334],72:[0,.69444,0,0,.79445],73:[0,.69444,0,0,.33056],74:[0,.69444,0,0,.51945],75:[0,.69444,0,0,.76389],76:[0,.69444,0,0,.58056],77:[0,.69444,0,0,.97778],78:[0,.69444,0,0,.79445],79:[0,.69444,0,0,.79445],80:[0,.69444,0,0,.70278],81:[.10556,.69444,0,0,.79445],82:[0,.69444,0,0,.70278],83:[0,.69444,0,0,.61111],84:[0,.69444,0,0,.73334],85:[0,.69444,0,0,.76389],86:[0,.69444,.01528,0,.73334],87:[0,.69444,.01528,0,1.03889],88:[0,.69444,0,0,.73334],89:[0,.69444,.0275,0,.73334],90:[0,.69444,0,0,.67223],91:[.25,.75,0,0,.34306],93:[.25,.75,0,0,.34306],94:[0,.69444,0,0,.55],95:[.35,.10833,.03056,0,.55],97:[0,.45833,0,0,.525],98:[0,.69444,0,0,.56111],99:[0,.45833,0,0,.48889],100:[0,.69444,0,0,.56111],101:[0,.45833,0,0,.51111],102:[0,.69444,.07639,0,.33611],103:[.19444,.45833,.01528,0,.55],104:[0,.69444,0,0,.56111],105:[0,.69444,0,0,.25556],106:[.19444,.69444,0,0,.28611],107:[0,.69444,0,0,.53056],108:[0,.69444,0,0,.25556],109:[0,.45833,0,0,.86667],110:[0,.45833,0,0,.56111],111:[0,.45833,0,0,.55],112:[.19444,.45833,0,0,.56111],113:[.19444,.45833,0,0,.56111],114:[0,.45833,.01528,0,.37222],115:[0,.45833,0,0,.42167],116:[0,.58929,0,0,.40417],117:[0,.45833,0,0,.56111],118:[0,.45833,.01528,0,.5],119:[0,.45833,.01528,0,.74445],120:[0,.45833,0,0,.5],121:[.19444,.45833,.01528,0,.5],122:[0,.45833,0,0,.47639],126:[.35,.34444,0,0,.55],160:[0,0,0,0,.25],168:[0,.69444,0,0,.55],176:[0,.69444,0,0,.73334],180:[0,.69444,0,0,.55],184:[.17014,0,0,0,.48889],305:[0,.45833,0,0,.25556],567:[.19444,.45833,0,0,.28611],710:[0,.69444,0,0,.55],711:[0,.63542,0,0,.55],713:[0,.63778,0,0,.55],728:[0,.69444,0,0,.55],729:[0,.69444,0,0,.30556],730:[0,.69444,0,0,.73334],732:[0,.69444,0,0,.55],733:[0,.69444,0,0,.55],915:[0,.69444,0,0,.58056],916:[0,.69444,0,0,.91667],920:[0,.69444,0,0,.85556],923:[0,.69444,0,0,.67223],926:[0,.69444,0,0,.73334],928:[0,.69444,0,0,.79445],931:[0,.69444,0,0,.79445],933:[0,.69444,0,0,.85556],934:[0,.69444,0,0,.79445],936:[0,.69444,0,0,.85556],937:[0,.69444,0,0,.79445],8211:[0,.45833,.03056,0,.55],8212:[0,.45833,.03056,0,1.10001],8216:[0,.69444,0,0,.30556],8217:[0,.69444,0,0,.30556],8220:[0,.69444,0,0,.55834],8221:[0,.69444,0,0,.55834]},"SansSerif-Italic":{32:[0,0,0,0,.25],33:[0,.69444,.05733,0,.31945],34:[0,.69444,.00316,0,.5],35:[.19444,.69444,.05087,0,.83334],36:[.05556,.75,.11156,0,.5],37:[.05556,.75,.03126,0,.83334],38:[0,.69444,.03058,0,.75834],39:[0,.69444,.07816,0,.27778],40:[.25,.75,.13164,0,.38889],41:[.25,.75,.02536,0,.38889],42:[0,.75,.11775,0,.5],43:[.08333,.58333,.02536,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,.01946,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,.13164,0,.5],48:[0,.65556,.11156,0,.5],49:[0,.65556,.11156,0,.5],50:[0,.65556,.11156,0,.5],51:[0,.65556,.11156,0,.5],52:[0,.65556,.11156,0,.5],53:[0,.65556,.11156,0,.5],54:[0,.65556,.11156,0,.5],55:[0,.65556,.11156,0,.5],56:[0,.65556,.11156,0,.5],57:[0,.65556,.11156,0,.5],58:[0,.44444,.02502,0,.27778],59:[.125,.44444,.02502,0,.27778],61:[-.13,.37,.05087,0,.77778],63:[0,.69444,.11809,0,.47222],64:[0,.69444,.07555,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,.08293,0,.66667],67:[0,.69444,.11983,0,.63889],68:[0,.69444,.07555,0,.72223],69:[0,.69444,.11983,0,.59722],70:[0,.69444,.13372,0,.56945],71:[0,.69444,.11983,0,.66667],72:[0,.69444,.08094,0,.70834],73:[0,.69444,.13372,0,.27778],74:[0,.69444,.08094,0,.47222],75:[0,.69444,.11983,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,.08094,0,.875],78:[0,.69444,.08094,0,.70834],79:[0,.69444,.07555,0,.73611],80:[0,.69444,.08293,0,.63889],81:[.125,.69444,.07555,0,.73611],82:[0,.69444,.08293,0,.64584],83:[0,.69444,.09205,0,.55556],84:[0,.69444,.13372,0,.68056],85:[0,.69444,.08094,0,.6875],86:[0,.69444,.1615,0,.66667],87:[0,.69444,.1615,0,.94445],88:[0,.69444,.13372,0,.66667],89:[0,.69444,.17261,0,.66667],90:[0,.69444,.11983,0,.61111],91:[.25,.75,.15942,0,.28889],93:[.25,.75,.08719,0,.28889],94:[0,.69444,.0799,0,.5],95:[.35,.09444,.08616,0,.5],97:[0,.44444,.00981,0,.48056],98:[0,.69444,.03057,0,.51667],99:[0,.44444,.08336,0,.44445],100:[0,.69444,.09483,0,.51667],101:[0,.44444,.06778,0,.44445],102:[0,.69444,.21705,0,.30556],103:[.19444,.44444,.10836,0,.5],104:[0,.69444,.01778,0,.51667],105:[0,.67937,.09718,0,.23889],106:[.19444,.67937,.09162,0,.26667],107:[0,.69444,.08336,0,.48889],108:[0,.69444,.09483,0,.23889],109:[0,.44444,.01778,0,.79445],110:[0,.44444,.01778,0,.51667],111:[0,.44444,.06613,0,.5],112:[.19444,.44444,.0389,0,.51667],113:[.19444,.44444,.04169,0,.51667],114:[0,.44444,.10836,0,.34167],115:[0,.44444,.0778,0,.38333],116:[0,.57143,.07225,0,.36111],117:[0,.44444,.04169,0,.51667],118:[0,.44444,.10836,0,.46111],119:[0,.44444,.10836,0,.68334],120:[0,.44444,.09169,0,.46111],121:[.19444,.44444,.10836,0,.46111],122:[0,.44444,.08752,0,.43472],126:[.35,.32659,.08826,0,.5],160:[0,0,0,0,.25],168:[0,.67937,.06385,0,.5],176:[0,.69444,0,0,.73752],184:[.17014,0,0,0,.44445],305:[0,.44444,.04169,0,.23889],567:[.19444,.44444,.04169,0,.26667],710:[0,.69444,.0799,0,.5],711:[0,.63194,.08432,0,.5],713:[0,.60889,.08776,0,.5],714:[0,.69444,.09205,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,.09483,0,.5],729:[0,.67937,.07774,0,.27778],730:[0,.69444,0,0,.73752],732:[0,.67659,.08826,0,.5],733:[0,.69444,.09205,0,.5],915:[0,.69444,.13372,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,.07555,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,.12816,0,.66667],928:[0,.69444,.08094,0,.70834],931:[0,.69444,.11983,0,.72222],933:[0,.69444,.09031,0,.77778],934:[0,.69444,.04603,0,.72222],936:[0,.69444,.09031,0,.77778],937:[0,.69444,.08293,0,.72222],8211:[0,.44444,.08616,0,.5],8212:[0,.44444,.08616,0,1],8216:[0,.69444,.07816,0,.27778],8217:[0,.69444,.07816,0,.27778],8220:[0,.69444,.14205,0,.5],8221:[0,.69444,.00316,0,.5]},"SansSerif-Regular":{32:[0,0,0,0,.25],33:[0,.69444,0,0,.31945],34:[0,.69444,0,0,.5],35:[.19444,.69444,0,0,.83334],36:[.05556,.75,0,0,.5],37:[.05556,.75,0,0,.83334],38:[0,.69444,0,0,.75834],39:[0,.69444,0,0,.27778],40:[.25,.75,0,0,.38889],41:[.25,.75,0,0,.38889],42:[0,.75,0,0,.5],43:[.08333,.58333,0,0,.77778],44:[.125,.08333,0,0,.27778],45:[0,.44444,0,0,.33333],46:[0,.08333,0,0,.27778],47:[.25,.75,0,0,.5],48:[0,.65556,0,0,.5],49:[0,.65556,0,0,.5],50:[0,.65556,0,0,.5],51:[0,.65556,0,0,.5],52:[0,.65556,0,0,.5],53:[0,.65556,0,0,.5],54:[0,.65556,0,0,.5],55:[0,.65556,0,0,.5],56:[0,.65556,0,0,.5],57:[0,.65556,0,0,.5],58:[0,.44444,0,0,.27778],59:[.125,.44444,0,0,.27778],61:[-.13,.37,0,0,.77778],63:[0,.69444,0,0,.47222],64:[0,.69444,0,0,.66667],65:[0,.69444,0,0,.66667],66:[0,.69444,0,0,.66667],67:[0,.69444,0,0,.63889],68:[0,.69444,0,0,.72223],69:[0,.69444,0,0,.59722],70:[0,.69444,0,0,.56945],71:[0,.69444,0,0,.66667],72:[0,.69444,0,0,.70834],73:[0,.69444,0,0,.27778],74:[0,.69444,0,0,.47222],75:[0,.69444,0,0,.69445],76:[0,.69444,0,0,.54167],77:[0,.69444,0,0,.875],78:[0,.69444,0,0,.70834],79:[0,.69444,0,0,.73611],80:[0,.69444,0,0,.63889],81:[.125,.69444,0,0,.73611],82:[0,.69444,0,0,.64584],83:[0,.69444,0,0,.55556],84:[0,.69444,0,0,.68056],85:[0,.69444,0,0,.6875],86:[0,.69444,.01389,0,.66667],87:[0,.69444,.01389,0,.94445],88:[0,.69444,0,0,.66667],89:[0,.69444,.025,0,.66667],90:[0,.69444,0,0,.61111],91:[.25,.75,0,0,.28889],93:[.25,.75,0,0,.28889],94:[0,.69444,0,0,.5],95:[.35,.09444,.02778,0,.5],97:[0,.44444,0,0,.48056],98:[0,.69444,0,0,.51667],99:[0,.44444,0,0,.44445],100:[0,.69444,0,0,.51667],101:[0,.44444,0,0,.44445],102:[0,.69444,.06944,0,.30556],103:[.19444,.44444,.01389,0,.5],104:[0,.69444,0,0,.51667],105:[0,.67937,0,0,.23889],106:[.19444,.67937,0,0,.26667],107:[0,.69444,0,0,.48889],108:[0,.69444,0,0,.23889],109:[0,.44444,0,0,.79445],110:[0,.44444,0,0,.51667],111:[0,.44444,0,0,.5],112:[.19444,.44444,0,0,.51667],113:[.19444,.44444,0,0,.51667],114:[0,.44444,.01389,0,.34167],115:[0,.44444,0,0,.38333],116:[0,.57143,0,0,.36111],117:[0,.44444,0,0,.51667],118:[0,.44444,.01389,0,.46111],119:[0,.44444,.01389,0,.68334],120:[0,.44444,0,0,.46111],121:[.19444,.44444,.01389,0,.46111],122:[0,.44444,0,0,.43472],126:[.35,.32659,0,0,.5],160:[0,0,0,0,.25],168:[0,.67937,0,0,.5],176:[0,.69444,0,0,.66667],184:[.17014,0,0,0,.44445],305:[0,.44444,0,0,.23889],567:[.19444,.44444,0,0,.26667],710:[0,.69444,0,0,.5],711:[0,.63194,0,0,.5],713:[0,.60889,0,0,.5],714:[0,.69444,0,0,.5],715:[0,.69444,0,0,.5],728:[0,.69444,0,0,.5],729:[0,.67937,0,0,.27778],730:[0,.69444,0,0,.66667],732:[0,.67659,0,0,.5],733:[0,.69444,0,0,.5],915:[0,.69444,0,0,.54167],916:[0,.69444,0,0,.83334],920:[0,.69444,0,0,.77778],923:[0,.69444,0,0,.61111],926:[0,.69444,0,0,.66667],928:[0,.69444,0,0,.70834],931:[0,.69444,0,0,.72222],933:[0,.69444,0,0,.77778],934:[0,.69444,0,0,.72222],936:[0,.69444,0,0,.77778],937:[0,.69444,0,0,.72222],8211:[0,.44444,.02778,0,.5],8212:[0,.44444,.02778,0,1],8216:[0,.69444,0,0,.27778],8217:[0,.69444,0,0,.27778],8220:[0,.69444,0,0,.5],8221:[0,.69444,0,0,.5]},"Script-Regular":{32:[0,0,0,0,.25],65:[0,.7,.22925,0,.80253],66:[0,.7,.04087,0,.90757],67:[0,.7,.1689,0,.66619],68:[0,.7,.09371,0,.77443],69:[0,.7,.18583,0,.56162],70:[0,.7,.13634,0,.89544],71:[0,.7,.17322,0,.60961],72:[0,.7,.29694,0,.96919],73:[0,.7,.19189,0,.80907],74:[.27778,.7,.19189,0,1.05159],75:[0,.7,.31259,0,.91364],76:[0,.7,.19189,0,.87373],77:[0,.7,.15981,0,1.08031],78:[0,.7,.3525,0,.9015],79:[0,.7,.08078,0,.73787],80:[0,.7,.08078,0,1.01262],81:[0,.7,.03305,0,.88282],82:[0,.7,.06259,0,.85],83:[0,.7,.19189,0,.86767],84:[0,.7,.29087,0,.74697],85:[0,.7,.25815,0,.79996],86:[0,.7,.27523,0,.62204],87:[0,.7,.27523,0,.80532],88:[0,.7,.26006,0,.94445],89:[0,.7,.2939,0,.70961],90:[0,.7,.24037,0,.8212],160:[0,0,0,0,.25]},"Size1-Regular":{32:[0,0,0,0,.25],40:[.35001,.85,0,0,.45834],41:[.35001,.85,0,0,.45834],47:[.35001,.85,0,0,.57778],91:[.35001,.85,0,0,.41667],92:[.35001,.85,0,0,.57778],93:[.35001,.85,0,0,.41667],123:[.35001,.85,0,0,.58334],125:[.35001,.85,0,0,.58334],160:[0,0,0,0,.25],710:[0,.72222,0,0,.55556],732:[0,.72222,0,0,.55556],770:[0,.72222,0,0,.55556],771:[0,.72222,0,0,.55556],8214:[-99e-5,.601,0,0,.77778],8593:[1e-5,.6,0,0,.66667],8595:[1e-5,.6,0,0,.66667],8657:[1e-5,.6,0,0,.77778],8659:[1e-5,.6,0,0,.77778],8719:[.25001,.75,0,0,.94445],8720:[.25001,.75,0,0,.94445],8721:[.25001,.75,0,0,1.05556],8730:[.35001,.85,0,0,1],8739:[-.00599,.606,0,0,.33333],8741:[-.00599,.606,0,0,.55556],8747:[.30612,.805,.19445,0,.47222],8748:[.306,.805,.19445,0,.47222],8749:[.306,.805,.19445,0,.47222],8750:[.30612,.805,.19445,0,.47222],8896:[.25001,.75,0,0,.83334],8897:[.25001,.75,0,0,.83334],8898:[.25001,.75,0,0,.83334],8899:[.25001,.75,0,0,.83334],8968:[.35001,.85,0,0,.47222],8969:[.35001,.85,0,0,.47222],8970:[.35001,.85,0,0,.47222],8971:[.35001,.85,0,0,.47222],9168:[-99e-5,.601,0,0,.66667],10216:[.35001,.85,0,0,.47222],10217:[.35001,.85,0,0,.47222],10752:[.25001,.75,0,0,1.11111],10753:[.25001,.75,0,0,1.11111],10754:[.25001,.75,0,0,1.11111],10756:[.25001,.75,0,0,.83334],10758:[.25001,.75,0,0,.83334]},"Size2-Regular":{32:[0,0,0,0,.25],40:[.65002,1.15,0,0,.59722],41:[.65002,1.15,0,0,.59722],47:[.65002,1.15,0,0,.81111],91:[.65002,1.15,0,0,.47222],92:[.65002,1.15,0,0,.81111],93:[.65002,1.15,0,0,.47222],123:[.65002,1.15,0,0,.66667],125:[.65002,1.15,0,0,.66667],160:[0,0,0,0,.25],710:[0,.75,0,0,1],732:[0,.75,0,0,1],770:[0,.75,0,0,1],771:[0,.75,0,0,1],8719:[.55001,1.05,0,0,1.27778],8720:[.55001,1.05,0,0,1.27778],8721:[.55001,1.05,0,0,1.44445],8730:[.65002,1.15,0,0,1],8747:[.86225,1.36,.44445,0,.55556],8748:[.862,1.36,.44445,0,.55556],8749:[.862,1.36,.44445,0,.55556],8750:[.86225,1.36,.44445,0,.55556],8896:[.55001,1.05,0,0,1.11111],8897:[.55001,1.05,0,0,1.11111],8898:[.55001,1.05,0,0,1.11111],8899:[.55001,1.05,0,0,1.11111],8968:[.65002,1.15,0,0,.52778],8969:[.65002,1.15,0,0,.52778],8970:[.65002,1.15,0,0,.52778],8971:[.65002,1.15,0,0,.52778],10216:[.65002,1.15,0,0,.61111],10217:[.65002,1.15,0,0,.61111],10752:[.55001,1.05,0,0,1.51112],10753:[.55001,1.05,0,0,1.51112],10754:[.55001,1.05,0,0,1.51112],10756:[.55001,1.05,0,0,1.11111],10758:[.55001,1.05,0,0,1.11111]},"Size3-Regular":{32:[0,0,0,0,.25],40:[.95003,1.45,0,0,.73611],41:[.95003,1.45,0,0,.73611],47:[.95003,1.45,0,0,1.04445],91:[.95003,1.45,0,0,.52778],92:[.95003,1.45,0,0,1.04445],93:[.95003,1.45,0,0,.52778],123:[.95003,1.45,0,0,.75],125:[.95003,1.45,0,0,.75],160:[0,0,0,0,.25],710:[0,.75,0,0,1.44445],732:[0,.75,0,0,1.44445],770:[0,.75,0,0,1.44445],771:[0,.75,0,0,1.44445],8730:[.95003,1.45,0,0,1],8968:[.95003,1.45,0,0,.58334],8969:[.95003,1.45,0,0,.58334],8970:[.95003,1.45,0,0,.58334],8971:[.95003,1.45,0,0,.58334],10216:[.95003,1.45,0,0,.75],10217:[.95003,1.45,0,0,.75]},"Size4-Regular":{32:[0,0,0,0,.25],40:[1.25003,1.75,0,0,.79167],41:[1.25003,1.75,0,0,.79167],47:[1.25003,1.75,0,0,1.27778],91:[1.25003,1.75,0,0,.58334],92:[1.25003,1.75,0,0,1.27778],93:[1.25003,1.75,0,0,.58334],123:[1.25003,1.75,0,0,.80556],125:[1.25003,1.75,0,0,.80556],160:[0,0,0,0,.25],710:[0,.825,0,0,1.8889],732:[0,.825,0,0,1.8889],770:[0,.825,0,0,1.8889],771:[0,.825,0,0,1.8889],8730:[1.25003,1.75,0,0,1],8968:[1.25003,1.75,0,0,.63889],8969:[1.25003,1.75,0,0,.63889],8970:[1.25003,1.75,0,0,.63889],8971:[1.25003,1.75,0,0,.63889],9115:[.64502,1.155,0,0,.875],9116:[1e-5,.6,0,0,.875],9117:[.64502,1.155,0,0,.875],9118:[.64502,1.155,0,0,.875],9119:[1e-5,.6,0,0,.875],9120:[.64502,1.155,0,0,.875],9121:[.64502,1.155,0,0,.66667],9122:[-99e-5,.601,0,0,.66667],9123:[.64502,1.155,0,0,.66667],9124:[.64502,1.155,0,0,.66667],9125:[-99e-5,.601,0,0,.66667],9126:[.64502,1.155,0,0,.66667],9127:[1e-5,.9,0,0,.88889],9128:[.65002,1.15,0,0,.88889],9129:[.90001,0,0,0,.88889],9130:[0,.3,0,0,.88889],9131:[1e-5,.9,0,0,.88889],9132:[.65002,1.15,0,0,.88889],9133:[.90001,0,0,0,.88889],9143:[.88502,.915,0,0,1.05556],10216:[1.25003,1.75,0,0,.80556],10217:[1.25003,1.75,0,0,.80556],57344:[-.00499,.605,0,0,1.05556],57345:[-.00499,.605,0,0,1.05556],57680:[0,.12,0,0,.45],57681:[0,.12,0,0,.45],57682:[0,.12,0,0,.45],57683:[0,.12,0,0,.45]},"Typewriter-Regular":{32:[0,0,0,0,.525],33:[0,.61111,0,0,.525],34:[0,.61111,0,0,.525],35:[0,.61111,0,0,.525],36:[.08333,.69444,0,0,.525],37:[.08333,.69444,0,0,.525],38:[0,.61111,0,0,.525],39:[0,.61111,0,0,.525],40:[.08333,.69444,0,0,.525],41:[.08333,.69444,0,0,.525],42:[0,.52083,0,0,.525],43:[-.08056,.53055,0,0,.525],44:[.13889,.125,0,0,.525],45:[-.08056,.53055,0,0,.525],46:[0,.125,0,0,.525],47:[.08333,.69444,0,0,.525],48:[0,.61111,0,0,.525],49:[0,.61111,0,0,.525],50:[0,.61111,0,0,.525],51:[0,.61111,0,0,.525],52:[0,.61111,0,0,.525],53:[0,.61111,0,0,.525],54:[0,.61111,0,0,.525],55:[0,.61111,0,0,.525],56:[0,.61111,0,0,.525],57:[0,.61111,0,0,.525],58:[0,.43056,0,0,.525],59:[.13889,.43056,0,0,.525],60:[-.05556,.55556,0,0,.525],61:[-.19549,.41562,0,0,.525],62:[-.05556,.55556,0,0,.525],63:[0,.61111,0,0,.525],64:[0,.61111,0,0,.525],65:[0,.61111,0,0,.525],66:[0,.61111,0,0,.525],67:[0,.61111,0,0,.525],68:[0,.61111,0,0,.525],69:[0,.61111,0,0,.525],70:[0,.61111,0,0,.525],71:[0,.61111,0,0,.525],72:[0,.61111,0,0,.525],73:[0,.61111,0,0,.525],74:[0,.61111,0,0,.525],75:[0,.61111,0,0,.525],76:[0,.61111,0,0,.525],77:[0,.61111,0,0,.525],78:[0,.61111,0,0,.525],79:[0,.61111,0,0,.525],80:[0,.61111,0,0,.525],81:[.13889,.61111,0,0,.525],82:[0,.61111,0,0,.525],83:[0,.61111,0,0,.525],84:[0,.61111,0,0,.525],85:[0,.61111,0,0,.525],86:[0,.61111,0,0,.525],87:[0,.61111,0,0,.525],88:[0,.61111,0,0,.525],89:[0,.61111,0,0,.525],90:[0,.61111,0,0,.525],91:[.08333,.69444,0,0,.525],92:[.08333,.69444,0,0,.525],93:[.08333,.69444,0,0,.525],94:[0,.61111,0,0,.525],95:[.09514,0,0,0,.525],96:[0,.61111,0,0,.525],97:[0,.43056,0,0,.525],98:[0,.61111,0,0,.525],99:[0,.43056,0,0,.525],100:[0,.61111,0,0,.525],101:[0,.43056,0,0,.525],102:[0,.61111,0,0,.525],103:[.22222,.43056,0,0,.525],104:[0,.61111,0,0,.525],105:[0,.61111,0,0,.525],106:[.22222,.61111,0,0,.525],107:[0,.61111,0,0,.525],108:[0,.61111,0,0,.525],109:[0,.43056,0,0,.525],110:[0,.43056,0,0,.525],111:[0,.43056,0,0,.525],112:[.22222,.43056,0,0,.525],113:[.22222,.43056,0,0,.525],114:[0,.43056,0,0,.525],115:[0,.43056,0,0,.525],116:[0,.55358,0,0,.525],117:[0,.43056,0,0,.525],118:[0,.43056,0,0,.525],119:[0,.43056,0,0,.525],120:[0,.43056,0,0,.525],121:[.22222,.43056,0,0,.525],122:[0,.43056,0,0,.525],123:[.08333,.69444,0,0,.525],124:[.08333,.69444,0,0,.525],125:[.08333,.69444,0,0,.525],126:[0,.61111,0,0,.525],127:[0,.61111,0,0,.525],160:[0,0,0,0,.525],176:[0,.61111,0,0,.525],184:[.19445,0,0,0,.525],305:[0,.43056,0,0,.525],567:[.22222,.43056,0,0,.525],711:[0,.56597,0,0,.525],713:[0,.56555,0,0,.525],714:[0,.61111,0,0,.525],715:[0,.61111,0,0,.525],728:[0,.61111,0,0,.525],730:[0,.61111,0,0,.525],770:[0,.61111,0,0,.525],771:[0,.61111,0,0,.525],776:[0,.61111,0,0,.525],915:[0,.61111,0,0,.525],916:[0,.61111,0,0,.525],920:[0,.61111,0,0,.525],923:[0,.61111,0,0,.525],926:[0,.61111,0,0,.525],928:[0,.61111,0,0,.525],931:[0,.61111,0,0,.525],933:[0,.61111,0,0,.525],934:[0,.61111,0,0,.525],936:[0,.61111,0,0,.525],937:[0,.61111,0,0,.525],8216:[0,.61111,0,0,.525],8217:[0,.61111,0,0,.525],8242:[0,.61111,0,0,.525],9251:[.11111,.21944,0,0,.525]}},qA={slant:[.25,.25,.25],space:[0,0,0],stretch:[0,0,0],shrink:[0,0,0],xHeight:[.431,.431,.431],quad:[1,1.171,1.472],extraSpace:[0,0,0],num1:[.677,.732,.925],num2:[.394,.384,.387],num3:[.444,.471,.504],denom1:[.686,.752,1.025],denom2:[.345,.344,.532],sup1:[.413,.503,.504],sup2:[.363,.431,.404],sup3:[.289,.286,.294],sub1:[.15,.143,.2],sub2:[.247,.286,.4],supDrop:[.386,.353,.494],subDrop:[.05,.071,.1],delim1:[2.39,1.7,1.98],delim2:[1.01,1.157,1.42],axisHeight:[.25,.25,.25],defaultRuleThickness:[.04,.049,.049],bigOpSpacing1:[.111,.111,.111],bigOpSpacing2:[.166,.166,.166],bigOpSpacing3:[.2,.2,.2],bigOpSpacing4:[.6,.611,.611],bigOpSpacing5:[.1,.143,.143],sqrtRuleThickness:[.04,.04,.04],ptPerEm:[10,10,10],doubleRuleSep:[.2,.2,.2],arrayRuleWidth:[.04,.04,.04],fboxsep:[.3,.3,.3],fboxrule:[.04,.04,.04]},Fne={Å:"A",Ð:"D",Þ:"o",å:"a",ð:"d",þ:"o",А:"A",Б:"B",В:"B",Г:"F",Д:"A",Е:"E",Ж:"K",З:"3",И:"N",Й:"N",К:"K",Л:"N",М:"M",Н:"H",О:"O",П:"N",Р:"P",С:"C",Т:"T",У:"y",Ф:"O",Х:"X",Ц:"U",Ч:"h",Ш:"W",Щ:"W",Ъ:"B",Ы:"X",Ь:"B",Э:"3",Ю:"X",Я:"R",а:"a",б:"b",в:"a",г:"r",д:"y",е:"e",ж:"m",з:"e",и:"n",й:"n",к:"n",л:"n",м:"m",н:"n",о:"o",п:"n",р:"p",с:"c",т:"o",у:"y",ф:"b",х:"x",ц:"n",ч:"n",ш:"w",щ:"w",ъ:"a",ы:"m",ь:"a",э:"e",ю:"m",я:"r"};function aOt(e,t){Df[e]=t}function EQ(e,t,n){if(!Df[t])throw new Error("Font metrics not found for font: "+t+".");var r=e.charCodeAt(0),i=Df[t][r];if(!i&&e[0]in Fne&&(r=Fne[e[0]].charCodeAt(0),i=Df[t][r]),!i&&n==="text"&&hbe(r)&&(i=Df[t][77]),i)return{depth:i[0],height:i[1],italic:i[2],skew:i[3],width:i[4]}}var c7={};function sOt(e){var t;if(e>=5?t=0:e>=3?t=1:t=2,!c7[t]){var n=c7[t]={cssEmPerMu:qA.quad[t]/18};for(var r in qA)qA.hasOwnProperty(r)&&(n[r]=qA[r][t])}return c7[t]}var oOt=[[1,1,1],[2,1,1],[3,1,1],[4,2,1],[5,2,1],[6,3,1],[7,4,2],[8,6,3],[9,7,6],[10,8,7],[11,10,9]],Bne=[.5,.6,.7,.8,.9,1,1.2,1.44,1.728,2.074,2.488],Une=function(t,n){return n.size<2?t:oOt[t-1][n.size-1]};class Fh{constructor(t){this.style=void 0,this.color=void 0,this.size=void 0,this.textSize=void 0,this.phantom=void 0,this.font=void 0,this.fontFamily=void 0,this.fontWeight=void 0,this.fontShape=void 0,this.sizeMultiplier=void 0,this.maxSize=void 0,this.minRuleThickness=void 0,this._fontMetrics=void 0,this.style=t.style,this.color=t.color,this.size=t.size||Fh.BASESIZE,this.textSize=t.textSize||this.size,this.phantom=!!t.phantom,this.font=t.font||"",this.fontFamily=t.fontFamily||"",this.fontWeight=t.fontWeight||"",this.fontShape=t.fontShape||"",this.sizeMultiplier=Bne[this.size-1],this.maxSize=t.maxSize,this.minRuleThickness=t.minRuleThickness,this._fontMetrics=void 0}extend(t){var n={style:this.style,size:this.size,textSize:this.textSize,color:this.color,phantom:this.phantom,font:this.font,fontFamily:this.fontFamily,fontWeight:this.fontWeight,fontShape:this.fontShape,maxSize:this.maxSize,minRuleThickness:this.minRuleThickness};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);return new Fh(n)}havingStyle(t){return this.style===t?this:this.extend({style:t,size:Une(this.textSize,t)})}havingCrampedStyle(){return this.havingStyle(this.style.cramp())}havingSize(t){return this.size===t&&this.textSize===t?this:this.extend({style:this.style.text(),size:t,textSize:t,sizeMultiplier:Bne[t-1]})}havingBaseStyle(t){t=t||this.style.text();var n=Une(Fh.BASESIZE,t);return this.size===n&&this.textSize===Fh.BASESIZE&&this.style===t?this:this.extend({style:t,size:n})}havingBaseSizing(){var t;switch(this.style.id){case 4:case 5:t=3;break;case 6:case 7:t=1;break;default:t=6}return this.extend({style:this.style.text(),size:t})}withColor(t){return this.extend({color:t})}withPhantom(){return this.extend({phantom:!0})}withFont(t){return this.extend({font:t})}withTextFontFamily(t){return this.extend({fontFamily:t,font:""})}withTextFontWeight(t){return this.extend({fontWeight:t,font:""})}withTextFontShape(t){return this.extend({fontShape:t,font:""})}sizingClasses(t){return t.size!==this.size?["sizing","reset-size"+t.size,"size"+this.size]:[]}baseSizingClasses(){return this.size!==Fh.BASESIZE?["sizing","reset-size"+this.size,"size"+Fh.BASESIZE]:[]}fontMetrics(){return this._fontMetrics||(this._fontMetrics=sOt(this.size)),this._fontMetrics}getColor(){return this.phantom?"transparent":this.color}}Fh.BASESIZE=6;var o9={pt:1,mm:7227/2540,cm:7227/254,in:72.27,bp:803/800,pc:12,dd:1238/1157,cc:14856/1157,nd:685/642,nc:1370/107,sp:1/65536,px:803/800},lOt={ex:!0,em:!0,mu:!0},pbe=function(t){return typeof t!="string"&&(t=t.unit),t in o9||t in lOt||t==="ex"},la=function(t,n){var r;if(t.unit in o9)r=o9[t.unit]/n.fontMetrics().ptPerEm/n.sizeMultiplier;else if(t.unit==="mu")r=n.fontMetrics().cssEmPerMu;else{var i;if(n.style.isTight()?i=n.havingStyle(n.style.text()):i=n,t.unit==="ex")r=i.fontMetrics().xHeight;else if(t.unit==="em")r=i.fontMetrics().quad;else throw new Ht("Invalid unit: '"+t.unit+"'");i!==n&&(r*=i.sizeMultiplier/n.sizeMultiplier)}return Math.min(t.number*r,n.maxSize)},Jt=function(t){return+t.toFixed(4)+"em"},m0=function(t){return t.filter(n=>n).join(" ")},mbe=function(t,n,r){if(this.classes=t||[],this.attributes={},this.height=0,this.depth=0,this.maxFontSize=0,this.style=r||{},n){n.style.isTight()&&this.classes.push("mtight");var i=n.getColor();i&&(this.style.color=i)}},gbe=function(t){var n=document.createElement(t);n.className=m0(this.classes);for(var r in this.style)this.style.hasOwnProperty(r)&&(n.style[r]=this.style[r]);for(var i in this.attributes)this.attributes.hasOwnProperty(i)&&n.setAttribute(i,this.attributes[i]);for(var a=0;a",n};let ok=class{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.width=void 0,this.maxFontSize=void 0,this.style=void 0,mbe.call(this,t,r,i),this.children=n||[]}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return tr.contains(this.classes,t)}toNode(){return gbe.call(this,"span")}toMarkup(){return bbe.call(this,"span")}};class wQ{constructor(t,n,r,i){this.children=void 0,this.attributes=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,mbe.call(this,n,i),this.children=r||[],this.setAttribute("href",t)}setAttribute(t,n){this.attributes[t]=n}hasClass(t){return tr.contains(this.classes,t)}toNode(){return gbe.call(this,"a")}toMarkup(){return bbe.call(this,"a")}}class uOt{constructor(t,n,r){this.src=void 0,this.alt=void 0,this.classes=void 0,this.height=void 0,this.depth=void 0,this.maxFontSize=void 0,this.style=void 0,this.alt=n,this.src=t,this.classes=["mord"],this.style=r}hasClass(t){return tr.contains(this.classes,t)}toNode(){var t=document.createElement("img");t.src=this.src,t.alt=this.alt,t.className="mord";for(var n in this.style)this.style.hasOwnProperty(n)&&(t.style[n]=this.style[n]);return t}toMarkup(){var t=""+this.alt+"0&&(n=document.createElement("span"),n.style.marginRight=Jt(this.italic)),this.classes.length>0&&(n=n||document.createElement("span"),n.className=m0(this.classes));for(var r in this.style)this.style.hasOwnProperty(r)&&(n=n||document.createElement("span"),n.style[r]=this.style[r]);return n?(n.appendChild(t),n):t}toMarkup(){var t=!1,n="0&&(r+="margin-right:"+this.italic+"em;");for(var i in this.style)this.style.hasOwnProperty(i)&&(r+=tr.hyphenate(i)+":"+this.style[i]+";");r&&(t=!0,n+=' style="'+tr.escape(r)+'"');var a=tr.escape(this.text);return t?(n+=">",n+=a,n+="",n):a}}class hp{constructor(t,n){this.children=void 0,this.attributes=void 0,this.children=t||[],this.attributes=n||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"svg");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);for(var i=0;i":""}}class l9{constructor(t){this.attributes=void 0,this.attributes=t||{}}toNode(){var t="http://www.w3.org/2000/svg",n=document.createElementNS(t,"line");for(var r in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,r)&&n.setAttribute(r,this.attributes[r]);return n}toMarkup(){var t=" but got "+String(e)+".")}var fOt={bin:1,close:1,inner:1,open:1,punct:1,rel:1},hOt={"accent-token":1,mathord:1,"op-token":1,spacing:1,textord:1},Ii={math:{},text:{}};function U(e,t,n,r,i,a){Ii[e][i]={font:t,group:n,replace:r},a&&r&&(Ii[e][r]=Ii[e][i])}var G="math",It="text",ae="main",we="ams",ta="accent-token",gn="bin",Jo="close",aS="inner",qn="mathord",qa="op-token",Fu="open",d6="punct",Ce="rel",Cp="spacing",Fe="textord";U(G,ae,Ce,"≡","\\equiv",!0);U(G,ae,Ce,"≺","\\prec",!0);U(G,ae,Ce,"≻","\\succ",!0);U(G,ae,Ce,"∼","\\sim",!0);U(G,ae,Ce,"⊥","\\perp");U(G,ae,Ce,"⪯","\\preceq",!0);U(G,ae,Ce,"⪰","\\succeq",!0);U(G,ae,Ce,"≃","\\simeq",!0);U(G,ae,Ce,"∣","\\mid",!0);U(G,ae,Ce,"≪","\\ll",!0);U(G,ae,Ce,"≫","\\gg",!0);U(G,ae,Ce,"≍","\\asymp",!0);U(G,ae,Ce,"∥","\\parallel");U(G,ae,Ce,"⋈","\\bowtie",!0);U(G,ae,Ce,"⌣","\\smile",!0);U(G,ae,Ce,"⊑","\\sqsubseteq",!0);U(G,ae,Ce,"⊒","\\sqsupseteq",!0);U(G,ae,Ce,"≐","\\doteq",!0);U(G,ae,Ce,"⌢","\\frown",!0);U(G,ae,Ce,"∋","\\ni",!0);U(G,ae,Ce,"∝","\\propto",!0);U(G,ae,Ce,"⊢","\\vdash",!0);U(G,ae,Ce,"⊣","\\dashv",!0);U(G,ae,Ce,"∋","\\owns");U(G,ae,d6,".","\\ldotp");U(G,ae,d6,"⋅","\\cdotp");U(G,ae,Fe,"#","\\#");U(It,ae,Fe,"#","\\#");U(G,ae,Fe,"&","\\&");U(It,ae,Fe,"&","\\&");U(G,ae,Fe,"ℵ","\\aleph",!0);U(G,ae,Fe,"∀","\\forall",!0);U(G,ae,Fe,"ℏ","\\hbar",!0);U(G,ae,Fe,"∃","\\exists",!0);U(G,ae,Fe,"∇","\\nabla",!0);U(G,ae,Fe,"♭","\\flat",!0);U(G,ae,Fe,"ℓ","\\ell",!0);U(G,ae,Fe,"♮","\\natural",!0);U(G,ae,Fe,"♣","\\clubsuit",!0);U(G,ae,Fe,"℘","\\wp",!0);U(G,ae,Fe,"♯","\\sharp",!0);U(G,ae,Fe,"♢","\\diamondsuit",!0);U(G,ae,Fe,"ℜ","\\Re",!0);U(G,ae,Fe,"♡","\\heartsuit",!0);U(G,ae,Fe,"ℑ","\\Im",!0);U(G,ae,Fe,"♠","\\spadesuit",!0);U(G,ae,Fe,"§","\\S",!0);U(It,ae,Fe,"§","\\S");U(G,ae,Fe,"¶","\\P",!0);U(It,ae,Fe,"¶","\\P");U(G,ae,Fe,"†","\\dag");U(It,ae,Fe,"†","\\dag");U(It,ae,Fe,"†","\\textdagger");U(G,ae,Fe,"‡","\\ddag");U(It,ae,Fe,"‡","\\ddag");U(It,ae,Fe,"‡","\\textdaggerdbl");U(G,ae,Jo,"⎱","\\rmoustache",!0);U(G,ae,Fu,"⎰","\\lmoustache",!0);U(G,ae,Jo,"⟯","\\rgroup",!0);U(G,ae,Fu,"⟮","\\lgroup",!0);U(G,ae,gn,"∓","\\mp",!0);U(G,ae,gn,"⊖","\\ominus",!0);U(G,ae,gn,"⊎","\\uplus",!0);U(G,ae,gn,"⊓","\\sqcap",!0);U(G,ae,gn,"∗","\\ast");U(G,ae,gn,"⊔","\\sqcup",!0);U(G,ae,gn,"◯","\\bigcirc",!0);U(G,ae,gn,"∙","\\bullet",!0);U(G,ae,gn,"‡","\\ddagger");U(G,ae,gn,"≀","\\wr",!0);U(G,ae,gn,"⨿","\\amalg");U(G,ae,gn,"&","\\And");U(G,ae,Ce,"⟵","\\longleftarrow",!0);U(G,ae,Ce,"⇐","\\Leftarrow",!0);U(G,ae,Ce,"⟸","\\Longleftarrow",!0);U(G,ae,Ce,"⟶","\\longrightarrow",!0);U(G,ae,Ce,"⇒","\\Rightarrow",!0);U(G,ae,Ce,"⟹","\\Longrightarrow",!0);U(G,ae,Ce,"↔","\\leftrightarrow",!0);U(G,ae,Ce,"⟷","\\longleftrightarrow",!0);U(G,ae,Ce,"⇔","\\Leftrightarrow",!0);U(G,ae,Ce,"⟺","\\Longleftrightarrow",!0);U(G,ae,Ce,"↦","\\mapsto",!0);U(G,ae,Ce,"⟼","\\longmapsto",!0);U(G,ae,Ce,"↗","\\nearrow",!0);U(G,ae,Ce,"↩","\\hookleftarrow",!0);U(G,ae,Ce,"↪","\\hookrightarrow",!0);U(G,ae,Ce,"↘","\\searrow",!0);U(G,ae,Ce,"↼","\\leftharpoonup",!0);U(G,ae,Ce,"⇀","\\rightharpoonup",!0);U(G,ae,Ce,"↙","\\swarrow",!0);U(G,ae,Ce,"↽","\\leftharpoondown",!0);U(G,ae,Ce,"⇁","\\rightharpoondown",!0);U(G,ae,Ce,"↖","\\nwarrow",!0);U(G,ae,Ce,"⇌","\\rightleftharpoons",!0);U(G,we,Ce,"≮","\\nless",!0);U(G,we,Ce,"","\\@nleqslant");U(G,we,Ce,"","\\@nleqq");U(G,we,Ce,"⪇","\\lneq",!0);U(G,we,Ce,"≨","\\lneqq",!0);U(G,we,Ce,"","\\@lvertneqq");U(G,we,Ce,"⋦","\\lnsim",!0);U(G,we,Ce,"⪉","\\lnapprox",!0);U(G,we,Ce,"⊀","\\nprec",!0);U(G,we,Ce,"⋠","\\npreceq",!0);U(G,we,Ce,"⋨","\\precnsim",!0);U(G,we,Ce,"⪹","\\precnapprox",!0);U(G,we,Ce,"≁","\\nsim",!0);U(G,we,Ce,"","\\@nshortmid");U(G,we,Ce,"∤","\\nmid",!0);U(G,we,Ce,"⊬","\\nvdash",!0);U(G,we,Ce,"⊭","\\nvDash",!0);U(G,we,Ce,"⋪","\\ntriangleleft");U(G,we,Ce,"⋬","\\ntrianglelefteq",!0);U(G,we,Ce,"⊊","\\subsetneq",!0);U(G,we,Ce,"","\\@varsubsetneq");U(G,we,Ce,"⫋","\\subsetneqq",!0);U(G,we,Ce,"","\\@varsubsetneqq");U(G,we,Ce,"≯","\\ngtr",!0);U(G,we,Ce,"","\\@ngeqslant");U(G,we,Ce,"","\\@ngeqq");U(G,we,Ce,"⪈","\\gneq",!0);U(G,we,Ce,"≩","\\gneqq",!0);U(G,we,Ce,"","\\@gvertneqq");U(G,we,Ce,"⋧","\\gnsim",!0);U(G,we,Ce,"⪊","\\gnapprox",!0);U(G,we,Ce,"⊁","\\nsucc",!0);U(G,we,Ce,"⋡","\\nsucceq",!0);U(G,we,Ce,"⋩","\\succnsim",!0);U(G,we,Ce,"⪺","\\succnapprox",!0);U(G,we,Ce,"≆","\\ncong",!0);U(G,we,Ce,"","\\@nshortparallel");U(G,we,Ce,"∦","\\nparallel",!0);U(G,we,Ce,"⊯","\\nVDash",!0);U(G,we,Ce,"⋫","\\ntriangleright");U(G,we,Ce,"⋭","\\ntrianglerighteq",!0);U(G,we,Ce,"","\\@nsupseteqq");U(G,we,Ce,"⊋","\\supsetneq",!0);U(G,we,Ce,"","\\@varsupsetneq");U(G,we,Ce,"⫌","\\supsetneqq",!0);U(G,we,Ce,"","\\@varsupsetneqq");U(G,we,Ce,"⊮","\\nVdash",!0);U(G,we,Ce,"⪵","\\precneqq",!0);U(G,we,Ce,"⪶","\\succneqq",!0);U(G,we,Ce,"","\\@nsubseteqq");U(G,we,gn,"⊴","\\unlhd");U(G,we,gn,"⊵","\\unrhd");U(G,we,Ce,"↚","\\nleftarrow",!0);U(G,we,Ce,"↛","\\nrightarrow",!0);U(G,we,Ce,"⇍","\\nLeftarrow",!0);U(G,we,Ce,"⇏","\\nRightarrow",!0);U(G,we,Ce,"↮","\\nleftrightarrow",!0);U(G,we,Ce,"⇎","\\nLeftrightarrow",!0);U(G,we,Ce,"△","\\vartriangle");U(G,we,Fe,"ℏ","\\hslash");U(G,we,Fe,"▽","\\triangledown");U(G,we,Fe,"◊","\\lozenge");U(G,we,Fe,"Ⓢ","\\circledS");U(G,we,Fe,"®","\\circledR");U(It,we,Fe,"®","\\circledR");U(G,we,Fe,"∡","\\measuredangle",!0);U(G,we,Fe,"∄","\\nexists");U(G,we,Fe,"℧","\\mho");U(G,we,Fe,"Ⅎ","\\Finv",!0);U(G,we,Fe,"⅁","\\Game",!0);U(G,we,Fe,"‵","\\backprime");U(G,we,Fe,"▲","\\blacktriangle");U(G,we,Fe,"▼","\\blacktriangledown");U(G,we,Fe,"■","\\blacksquare");U(G,we,Fe,"⧫","\\blacklozenge");U(G,we,Fe,"★","\\bigstar");U(G,we,Fe,"∢","\\sphericalangle",!0);U(G,we,Fe,"∁","\\complement",!0);U(G,we,Fe,"ð","\\eth",!0);U(It,ae,Fe,"ð","ð");U(G,we,Fe,"╱","\\diagup");U(G,we,Fe,"╲","\\diagdown");U(G,we,Fe,"□","\\square");U(G,we,Fe,"□","\\Box");U(G,we,Fe,"◊","\\Diamond");U(G,we,Fe,"¥","\\yen",!0);U(It,we,Fe,"¥","\\yen",!0);U(G,we,Fe,"✓","\\checkmark",!0);U(It,we,Fe,"✓","\\checkmark");U(G,we,Fe,"ℶ","\\beth",!0);U(G,we,Fe,"ℸ","\\daleth",!0);U(G,we,Fe,"ℷ","\\gimel",!0);U(G,we,Fe,"ϝ","\\digamma",!0);U(G,we,Fe,"ϰ","\\varkappa");U(G,we,Fu,"┌","\\@ulcorner",!0);U(G,we,Jo,"┐","\\@urcorner",!0);U(G,we,Fu,"└","\\@llcorner",!0);U(G,we,Jo,"┘","\\@lrcorner",!0);U(G,we,Ce,"≦","\\leqq",!0);U(G,we,Ce,"⩽","\\leqslant",!0);U(G,we,Ce,"⪕","\\eqslantless",!0);U(G,we,Ce,"≲","\\lesssim",!0);U(G,we,Ce,"⪅","\\lessapprox",!0);U(G,we,Ce,"≊","\\approxeq",!0);U(G,we,gn,"⋖","\\lessdot");U(G,we,Ce,"⋘","\\lll",!0);U(G,we,Ce,"≶","\\lessgtr",!0);U(G,we,Ce,"⋚","\\lesseqgtr",!0);U(G,we,Ce,"⪋","\\lesseqqgtr",!0);U(G,we,Ce,"≑","\\doteqdot");U(G,we,Ce,"≓","\\risingdotseq",!0);U(G,we,Ce,"≒","\\fallingdotseq",!0);U(G,we,Ce,"∽","\\backsim",!0);U(G,we,Ce,"⋍","\\backsimeq",!0);U(G,we,Ce,"⫅","\\subseteqq",!0);U(G,we,Ce,"⋐","\\Subset",!0);U(G,we,Ce,"⊏","\\sqsubset",!0);U(G,we,Ce,"≼","\\preccurlyeq",!0);U(G,we,Ce,"⋞","\\curlyeqprec",!0);U(G,we,Ce,"≾","\\precsim",!0);U(G,we,Ce,"⪷","\\precapprox",!0);U(G,we,Ce,"⊲","\\vartriangleleft");U(G,we,Ce,"⊴","\\trianglelefteq");U(G,we,Ce,"⊨","\\vDash",!0);U(G,we,Ce,"⊪","\\Vvdash",!0);U(G,we,Ce,"⌣","\\smallsmile");U(G,we,Ce,"⌢","\\smallfrown");U(G,we,Ce,"≏","\\bumpeq",!0);U(G,we,Ce,"≎","\\Bumpeq",!0);U(G,we,Ce,"≧","\\geqq",!0);U(G,we,Ce,"⩾","\\geqslant",!0);U(G,we,Ce,"⪖","\\eqslantgtr",!0);U(G,we,Ce,"≳","\\gtrsim",!0);U(G,we,Ce,"⪆","\\gtrapprox",!0);U(G,we,gn,"⋗","\\gtrdot");U(G,we,Ce,"⋙","\\ggg",!0);U(G,we,Ce,"≷","\\gtrless",!0);U(G,we,Ce,"⋛","\\gtreqless",!0);U(G,we,Ce,"⪌","\\gtreqqless",!0);U(G,we,Ce,"≖","\\eqcirc",!0);U(G,we,Ce,"≗","\\circeq",!0);U(G,we,Ce,"≜","\\triangleq",!0);U(G,we,Ce,"∼","\\thicksim");U(G,we,Ce,"≈","\\thickapprox");U(G,we,Ce,"⫆","\\supseteqq",!0);U(G,we,Ce,"⋑","\\Supset",!0);U(G,we,Ce,"⊐","\\sqsupset",!0);U(G,we,Ce,"≽","\\succcurlyeq",!0);U(G,we,Ce,"⋟","\\curlyeqsucc",!0);U(G,we,Ce,"≿","\\succsim",!0);U(G,we,Ce,"⪸","\\succapprox",!0);U(G,we,Ce,"⊳","\\vartriangleright");U(G,we,Ce,"⊵","\\trianglerighteq");U(G,we,Ce,"⊩","\\Vdash",!0);U(G,we,Ce,"∣","\\shortmid");U(G,we,Ce,"∥","\\shortparallel");U(G,we,Ce,"≬","\\between",!0);U(G,we,Ce,"⋔","\\pitchfork",!0);U(G,we,Ce,"∝","\\varpropto");U(G,we,Ce,"◀","\\blacktriangleleft");U(G,we,Ce,"∴","\\therefore",!0);U(G,we,Ce,"∍","\\backepsilon");U(G,we,Ce,"▶","\\blacktriangleright");U(G,we,Ce,"∵","\\because",!0);U(G,we,Ce,"⋘","\\llless");U(G,we,Ce,"⋙","\\gggtr");U(G,we,gn,"⊲","\\lhd");U(G,we,gn,"⊳","\\rhd");U(G,we,Ce,"≂","\\eqsim",!0);U(G,ae,Ce,"⋈","\\Join");U(G,we,Ce,"≑","\\Doteq",!0);U(G,we,gn,"∔","\\dotplus",!0);U(G,we,gn,"∖","\\smallsetminus");U(G,we,gn,"⋒","\\Cap",!0);U(G,we,gn,"⋓","\\Cup",!0);U(G,we,gn,"⩞","\\doublebarwedge",!0);U(G,we,gn,"⊟","\\boxminus",!0);U(G,we,gn,"⊞","\\boxplus",!0);U(G,we,gn,"⋇","\\divideontimes",!0);U(G,we,gn,"⋉","\\ltimes",!0);U(G,we,gn,"⋊","\\rtimes",!0);U(G,we,gn,"⋋","\\leftthreetimes",!0);U(G,we,gn,"⋌","\\rightthreetimes",!0);U(G,we,gn,"⋏","\\curlywedge",!0);U(G,we,gn,"⋎","\\curlyvee",!0);U(G,we,gn,"⊝","\\circleddash",!0);U(G,we,gn,"⊛","\\circledast",!0);U(G,we,gn,"⋅","\\centerdot");U(G,we,gn,"⊺","\\intercal",!0);U(G,we,gn,"⋒","\\doublecap");U(G,we,gn,"⋓","\\doublecup");U(G,we,gn,"⊠","\\boxtimes",!0);U(G,we,Ce,"⇢","\\dashrightarrow",!0);U(G,we,Ce,"⇠","\\dashleftarrow",!0);U(G,we,Ce,"⇇","\\leftleftarrows",!0);U(G,we,Ce,"⇆","\\leftrightarrows",!0);U(G,we,Ce,"⇚","\\Lleftarrow",!0);U(G,we,Ce,"↞","\\twoheadleftarrow",!0);U(G,we,Ce,"↢","\\leftarrowtail",!0);U(G,we,Ce,"↫","\\looparrowleft",!0);U(G,we,Ce,"⇋","\\leftrightharpoons",!0);U(G,we,Ce,"↶","\\curvearrowleft",!0);U(G,we,Ce,"↺","\\circlearrowleft",!0);U(G,we,Ce,"↰","\\Lsh",!0);U(G,we,Ce,"⇈","\\upuparrows",!0);U(G,we,Ce,"↿","\\upharpoonleft",!0);U(G,we,Ce,"⇃","\\downharpoonleft",!0);U(G,ae,Ce,"⊶","\\origof",!0);U(G,ae,Ce,"⊷","\\imageof",!0);U(G,we,Ce,"⊸","\\multimap",!0);U(G,we,Ce,"↭","\\leftrightsquigarrow",!0);U(G,we,Ce,"⇉","\\rightrightarrows",!0);U(G,we,Ce,"⇄","\\rightleftarrows",!0);U(G,we,Ce,"↠","\\twoheadrightarrow",!0);U(G,we,Ce,"↣","\\rightarrowtail",!0);U(G,we,Ce,"↬","\\looparrowright",!0);U(G,we,Ce,"↷","\\curvearrowright",!0);U(G,we,Ce,"↻","\\circlearrowright",!0);U(G,we,Ce,"↱","\\Rsh",!0);U(G,we,Ce,"⇊","\\downdownarrows",!0);U(G,we,Ce,"↾","\\upharpoonright",!0);U(G,we,Ce,"⇂","\\downharpoonright",!0);U(G,we,Ce,"⇝","\\rightsquigarrow",!0);U(G,we,Ce,"⇝","\\leadsto");U(G,we,Ce,"⇛","\\Rrightarrow",!0);U(G,we,Ce,"↾","\\restriction");U(G,ae,Fe,"‘","`");U(G,ae,Fe,"$","\\$");U(It,ae,Fe,"$","\\$");U(It,ae,Fe,"$","\\textdollar");U(G,ae,Fe,"%","\\%");U(It,ae,Fe,"%","\\%");U(G,ae,Fe,"_","\\_");U(It,ae,Fe,"_","\\_");U(It,ae,Fe,"_","\\textunderscore");U(G,ae,Fe,"∠","\\angle",!0);U(G,ae,Fe,"∞","\\infty",!0);U(G,ae,Fe,"′","\\prime");U(G,ae,Fe,"△","\\triangle");U(G,ae,Fe,"Γ","\\Gamma",!0);U(G,ae,Fe,"Δ","\\Delta",!0);U(G,ae,Fe,"Θ","\\Theta",!0);U(G,ae,Fe,"Λ","\\Lambda",!0);U(G,ae,Fe,"Ξ","\\Xi",!0);U(G,ae,Fe,"Π","\\Pi",!0);U(G,ae,Fe,"Σ","\\Sigma",!0);U(G,ae,Fe,"Υ","\\Upsilon",!0);U(G,ae,Fe,"Φ","\\Phi",!0);U(G,ae,Fe,"Ψ","\\Psi",!0);U(G,ae,Fe,"Ω","\\Omega",!0);U(G,ae,Fe,"A","Α");U(G,ae,Fe,"B","Β");U(G,ae,Fe,"E","Ε");U(G,ae,Fe,"Z","Ζ");U(G,ae,Fe,"H","Η");U(G,ae,Fe,"I","Ι");U(G,ae,Fe,"K","Κ");U(G,ae,Fe,"M","Μ");U(G,ae,Fe,"N","Ν");U(G,ae,Fe,"O","Ο");U(G,ae,Fe,"P","Ρ");U(G,ae,Fe,"T","Τ");U(G,ae,Fe,"X","Χ");U(G,ae,Fe,"¬","\\neg",!0);U(G,ae,Fe,"¬","\\lnot");U(G,ae,Fe,"⊤","\\top");U(G,ae,Fe,"⊥","\\bot");U(G,ae,Fe,"∅","\\emptyset");U(G,we,Fe,"∅","\\varnothing");U(G,ae,qn,"α","\\alpha",!0);U(G,ae,qn,"β","\\beta",!0);U(G,ae,qn,"γ","\\gamma",!0);U(G,ae,qn,"δ","\\delta",!0);U(G,ae,qn,"ϵ","\\epsilon",!0);U(G,ae,qn,"ζ","\\zeta",!0);U(G,ae,qn,"η","\\eta",!0);U(G,ae,qn,"θ","\\theta",!0);U(G,ae,qn,"ι","\\iota",!0);U(G,ae,qn,"κ","\\kappa",!0);U(G,ae,qn,"λ","\\lambda",!0);U(G,ae,qn,"μ","\\mu",!0);U(G,ae,qn,"ν","\\nu",!0);U(G,ae,qn,"ξ","\\xi",!0);U(G,ae,qn,"ο","\\omicron",!0);U(G,ae,qn,"π","\\pi",!0);U(G,ae,qn,"ρ","\\rho",!0);U(G,ae,qn,"σ","\\sigma",!0);U(G,ae,qn,"τ","\\tau",!0);U(G,ae,qn,"υ","\\upsilon",!0);U(G,ae,qn,"ϕ","\\phi",!0);U(G,ae,qn,"χ","\\chi",!0);U(G,ae,qn,"ψ","\\psi",!0);U(G,ae,qn,"ω","\\omega",!0);U(G,ae,qn,"ε","\\varepsilon",!0);U(G,ae,qn,"ϑ","\\vartheta",!0);U(G,ae,qn,"ϖ","\\varpi",!0);U(G,ae,qn,"ϱ","\\varrho",!0);U(G,ae,qn,"ς","\\varsigma",!0);U(G,ae,qn,"φ","\\varphi",!0);U(G,ae,gn,"∗","*",!0);U(G,ae,gn,"+","+");U(G,ae,gn,"−","-",!0);U(G,ae,gn,"⋅","\\cdot",!0);U(G,ae,gn,"∘","\\circ",!0);U(G,ae,gn,"÷","\\div",!0);U(G,ae,gn,"±","\\pm",!0);U(G,ae,gn,"×","\\times",!0);U(G,ae,gn,"∩","\\cap",!0);U(G,ae,gn,"∪","\\cup",!0);U(G,ae,gn,"∖","\\setminus",!0);U(G,ae,gn,"∧","\\land");U(G,ae,gn,"∨","\\lor");U(G,ae,gn,"∧","\\wedge",!0);U(G,ae,gn,"∨","\\vee",!0);U(G,ae,Fe,"√","\\surd");U(G,ae,Fu,"⟨","\\langle",!0);U(G,ae,Fu,"∣","\\lvert");U(G,ae,Fu,"∥","\\lVert");U(G,ae,Jo,"?","?");U(G,ae,Jo,"!","!");U(G,ae,Jo,"⟩","\\rangle",!0);U(G,ae,Jo,"∣","\\rvert");U(G,ae,Jo,"∥","\\rVert");U(G,ae,Ce,"=","=");U(G,ae,Ce,":",":");U(G,ae,Ce,"≈","\\approx",!0);U(G,ae,Ce,"≅","\\cong",!0);U(G,ae,Ce,"≥","\\ge");U(G,ae,Ce,"≥","\\geq",!0);U(G,ae,Ce,"←","\\gets");U(G,ae,Ce,">","\\gt",!0);U(G,ae,Ce,"∈","\\in",!0);U(G,ae,Ce,"","\\@not");U(G,ae,Ce,"⊂","\\subset",!0);U(G,ae,Ce,"⊃","\\supset",!0);U(G,ae,Ce,"⊆","\\subseteq",!0);U(G,ae,Ce,"⊇","\\supseteq",!0);U(G,we,Ce,"⊈","\\nsubseteq",!0);U(G,we,Ce,"⊉","\\nsupseteq",!0);U(G,ae,Ce,"⊨","\\models");U(G,ae,Ce,"←","\\leftarrow",!0);U(G,ae,Ce,"≤","\\le");U(G,ae,Ce,"≤","\\leq",!0);U(G,ae,Ce,"<","\\lt",!0);U(G,ae,Ce,"→","\\rightarrow",!0);U(G,ae,Ce,"→","\\to");U(G,we,Ce,"≱","\\ngeq",!0);U(G,we,Ce,"≰","\\nleq",!0);U(G,ae,Cp," ","\\ ");U(G,ae,Cp," ","\\space");U(G,ae,Cp," ","\\nobreakspace");U(It,ae,Cp," ","\\ ");U(It,ae,Cp," "," ");U(It,ae,Cp," ","\\space");U(It,ae,Cp," ","\\nobreakspace");U(G,ae,Cp,null,"\\nobreak");U(G,ae,Cp,null,"\\allowbreak");U(G,ae,d6,",",",");U(G,ae,d6,";",";");U(G,we,gn,"⊼","\\barwedge",!0);U(G,we,gn,"⊻","\\veebar",!0);U(G,ae,gn,"⊙","\\odot",!0);U(G,ae,gn,"⊕","\\oplus",!0);U(G,ae,gn,"⊗","\\otimes",!0);U(G,ae,Fe,"∂","\\partial",!0);U(G,ae,gn,"⊘","\\oslash",!0);U(G,we,gn,"⊚","\\circledcirc",!0);U(G,we,gn,"⊡","\\boxdot",!0);U(G,ae,gn,"△","\\bigtriangleup");U(G,ae,gn,"▽","\\bigtriangledown");U(G,ae,gn,"†","\\dagger");U(G,ae,gn,"⋄","\\diamond");U(G,ae,gn,"⋆","\\star");U(G,ae,gn,"◃","\\triangleleft");U(G,ae,gn,"▹","\\triangleright");U(G,ae,Fu,"{","\\{");U(It,ae,Fe,"{","\\{");U(It,ae,Fe,"{","\\textbraceleft");U(G,ae,Jo,"}","\\}");U(It,ae,Fe,"}","\\}");U(It,ae,Fe,"}","\\textbraceright");U(G,ae,Fu,"{","\\lbrace");U(G,ae,Jo,"}","\\rbrace");U(G,ae,Fu,"[","\\lbrack",!0);U(It,ae,Fe,"[","\\lbrack",!0);U(G,ae,Jo,"]","\\rbrack",!0);U(It,ae,Fe,"]","\\rbrack",!0);U(G,ae,Fu,"(","\\lparen",!0);U(G,ae,Jo,")","\\rparen",!0);U(It,ae,Fe,"<","\\textless",!0);U(It,ae,Fe,">","\\textgreater",!0);U(G,ae,Fu,"⌊","\\lfloor",!0);U(G,ae,Jo,"⌋","\\rfloor",!0);U(G,ae,Fu,"⌈","\\lceil",!0);U(G,ae,Jo,"⌉","\\rceil",!0);U(G,ae,Fe,"\\","\\backslash");U(G,ae,Fe,"∣","|");U(G,ae,Fe,"∣","\\vert");U(It,ae,Fe,"|","\\textbar",!0);U(G,ae,Fe,"∥","\\|");U(G,ae,Fe,"∥","\\Vert");U(It,ae,Fe,"∥","\\textbardbl");U(It,ae,Fe,"~","\\textasciitilde");U(It,ae,Fe,"\\","\\textbackslash");U(It,ae,Fe,"^","\\textasciicircum");U(G,ae,Ce,"↑","\\uparrow",!0);U(G,ae,Ce,"⇑","\\Uparrow",!0);U(G,ae,Ce,"↓","\\downarrow",!0);U(G,ae,Ce,"⇓","\\Downarrow",!0);U(G,ae,Ce,"↕","\\updownarrow",!0);U(G,ae,Ce,"⇕","\\Updownarrow",!0);U(G,ae,qa,"∐","\\coprod");U(G,ae,qa,"⋁","\\bigvee");U(G,ae,qa,"⋀","\\bigwedge");U(G,ae,qa,"⨄","\\biguplus");U(G,ae,qa,"⋂","\\bigcap");U(G,ae,qa,"⋃","\\bigcup");U(G,ae,qa,"∫","\\int");U(G,ae,qa,"∫","\\intop");U(G,ae,qa,"∬","\\iint");U(G,ae,qa,"∭","\\iiint");U(G,ae,qa,"∏","\\prod");U(G,ae,qa,"∑","\\sum");U(G,ae,qa,"⨂","\\bigotimes");U(G,ae,qa,"⨁","\\bigoplus");U(G,ae,qa,"⨀","\\bigodot");U(G,ae,qa,"∮","\\oint");U(G,ae,qa,"∯","\\oiint");U(G,ae,qa,"∰","\\oiiint");U(G,ae,qa,"⨆","\\bigsqcup");U(G,ae,qa,"∫","\\smallint");U(It,ae,aS,"…","\\textellipsis");U(G,ae,aS,"…","\\mathellipsis");U(It,ae,aS,"…","\\ldots",!0);U(G,ae,aS,"…","\\ldots",!0);U(G,ae,aS,"⋯","\\@cdots",!0);U(G,ae,aS,"⋱","\\ddots",!0);U(G,ae,Fe,"⋮","\\varvdots");U(G,ae,ta,"ˊ","\\acute");U(G,ae,ta,"ˋ","\\grave");U(G,ae,ta,"¨","\\ddot");U(G,ae,ta,"~","\\tilde");U(G,ae,ta,"ˉ","\\bar");U(G,ae,ta,"˘","\\breve");U(G,ae,ta,"ˇ","\\check");U(G,ae,ta,"^","\\hat");U(G,ae,ta,"⃗","\\vec");U(G,ae,ta,"˙","\\dot");U(G,ae,ta,"˚","\\mathring");U(G,ae,qn,"","\\@imath");U(G,ae,qn,"","\\@jmath");U(G,ae,Fe,"ı","ı");U(G,ae,Fe,"ȷ","ȷ");U(It,ae,Fe,"ı","\\i",!0);U(It,ae,Fe,"ȷ","\\j",!0);U(It,ae,Fe,"ß","\\ss",!0);U(It,ae,Fe,"æ","\\ae",!0);U(It,ae,Fe,"œ","\\oe",!0);U(It,ae,Fe,"ø","\\o",!0);U(It,ae,Fe,"Æ","\\AE",!0);U(It,ae,Fe,"Œ","\\OE",!0);U(It,ae,Fe,"Ø","\\O",!0);U(It,ae,ta,"ˊ","\\'");U(It,ae,ta,"ˋ","\\`");U(It,ae,ta,"ˆ","\\^");U(It,ae,ta,"˜","\\~");U(It,ae,ta,"ˉ","\\=");U(It,ae,ta,"˘","\\u");U(It,ae,ta,"˙","\\.");U(It,ae,ta,"¸","\\c");U(It,ae,ta,"˚","\\r");U(It,ae,ta,"ˇ","\\v");U(It,ae,ta,"¨",'\\"');U(It,ae,ta,"˝","\\H");U(It,ae,ta,"◯","\\textcircled");var ybe={"--":!0,"---":!0,"``":!0,"''":!0};U(It,ae,Fe,"–","--",!0);U(It,ae,Fe,"–","\\textendash");U(It,ae,Fe,"—","---",!0);U(It,ae,Fe,"—","\\textemdash");U(It,ae,Fe,"‘","`",!0);U(It,ae,Fe,"‘","\\textquoteleft");U(It,ae,Fe,"’","'",!0);U(It,ae,Fe,"’","\\textquoteright");U(It,ae,Fe,"“","``",!0);U(It,ae,Fe,"“","\\textquotedblleft");U(It,ae,Fe,"”","''",!0);U(It,ae,Fe,"”","\\textquotedblright");U(G,ae,Fe,"°","\\degree",!0);U(It,ae,Fe,"°","\\degree");U(It,ae,Fe,"°","\\textdegree",!0);U(G,ae,Fe,"£","\\pounds");U(G,ae,Fe,"£","\\mathsterling",!0);U(It,ae,Fe,"£","\\pounds");U(It,ae,Fe,"£","\\textsterling",!0);U(G,we,Fe,"✠","\\maltese");U(It,we,Fe,"✠","\\maltese");var jne='0123456789/@."';for(var d7=0;d70)return sd(a,u,i,n,s.concat(c));if(l){var f,h;if(l==="boldsymbol"){var g=gOt(a,i,n,s,r);f=g.fontName,h=[g.fontClass]}else o?(f=Sbe[l].fontName,h=[l]):(f=XA(l,n.fontWeight,n.fontShape),h=[l,n.fontWeight,n.fontShape]);if(f6(a,f,i).metrics)return sd(a,f,i,n,s.concat(h));if(ybe.hasOwnProperty(a)&&f.slice(0,10)==="Typewriter"){for(var b=[],S=0;S{if(m0(e.classes)!==m0(t.classes)||e.skew!==t.skew||e.maxFontSize!==t.maxFontSize)return!1;if(e.classes.length===1){var n=e.classes[0];if(n==="mbin"||n==="mord")return!1}for(var r in e.style)if(e.style.hasOwnProperty(r)&&e.style[r]!==t.style[r])return!1;for(var i in t.style)if(t.style.hasOwnProperty(i)&&e.style[i]!==t.style[i])return!1;return!0},vOt=e=>{for(var t=0;tn&&(n=s.height),s.depth>r&&(r=s.depth),s.maxFontSize>i&&(i=s.maxFontSize)}t.height=n,t.depth=r,t.maxFontSize=i},gl=function(t,n,r,i){var a=new ok(t,n,r,i);return xQ(a),a},vbe=(e,t,n,r)=>new ok(e,t,n,r),OOt=function(t,n,r){var i=gl([t],[],n);return i.height=Math.max(r||n.fontMetrics().defaultRuleThickness,n.minRuleThickness),i.style.borderBottomWidth=Jt(i.height),i.maxFontSize=1,i},SOt=function(t,n,r,i){var a=new wQ(t,n,r,i);return xQ(a),a},Obe=function(t){var n=new sk(t);return xQ(n),n},EOt=function(t,n){return t instanceof sk?gl([],[t],n):t},wOt=function(t){if(t.positionType==="individualShift"){for(var n=t.children,r=[n[0]],i=-n[0].shift-n[0].elem.depth,a=i,s=1;s{var n=gl(["mspace"],[],t),r=la(e,t);return n.style.marginRight=Jt(r),n},XA=function(t,n,r){var i="";switch(t){case"amsrm":i="AMS";break;case"textrm":i="Main";break;case"textsf":i="SansSerif";break;case"texttt":i="Typewriter";break;default:i=t}var a;return n==="textbf"&&r==="textit"?a="BoldItalic":n==="textbf"?a="Bold":n==="textit"?a="Italic":a="Regular",i+"-"+a},Sbe={mathbf:{variant:"bold",fontName:"Main-Bold"},mathrm:{variant:"normal",fontName:"Main-Regular"},textit:{variant:"italic",fontName:"Main-Italic"},mathit:{variant:"italic",fontName:"Main-Italic"},mathnormal:{variant:"italic",fontName:"Math-Italic"},mathbb:{variant:"double-struck",fontName:"AMS-Regular"},mathcal:{variant:"script",fontName:"Caligraphic-Regular"},mathfrak:{variant:"fraktur",fontName:"Fraktur-Regular"},mathscr:{variant:"script",fontName:"Script-Regular"},mathsf:{variant:"sans-serif",fontName:"SansSerif-Regular"},mathtt:{variant:"monospace",fontName:"Typewriter-Regular"}},Ebe={vec:["vec",.471,.714],oiintSize1:["oiintSize1",.957,.499],oiintSize2:["oiintSize2",1.472,.659],oiiintSize1:["oiiintSize1",1.304,.499],oiiintSize2:["oiiintSize2",1.98,.659]},kOt=function(t,n){var[r,i,a]=Ebe[t],s=new g0(r),o=new hp([s],{width:Jt(i),height:Jt(a),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+1e3*a,preserveAspectRatio:"xMinYMin"}),l=vbe(["overlay"],[o],n);return l.height=a,l.style.height=Jt(a),l.style.width=Jt(i),l},it={fontMap:Sbe,makeSymbol:sd,mathsym:mOt,makeSpan:gl,makeSvgSpan:vbe,makeLineSpan:OOt,makeAnchor:SOt,makeFragment:Obe,wrapFragment:EOt,makeVList:xOt,makeOrd:bOt,makeGlue:TOt,staticSvg:kOt,svgData:Ebe,tryCombineChars:vOt},aa={number:3,unit:"mu"},Og={number:4,unit:"mu"},Rh={number:5,unit:"mu"},COt={mord:{mop:aa,mbin:Og,mrel:Rh,minner:aa},mop:{mord:aa,mop:aa,mrel:Rh,minner:aa},mbin:{mord:Og,mop:Og,mopen:Og,minner:Og},mrel:{mord:Rh,mop:Rh,mopen:Rh,minner:Rh},mopen:{},mclose:{mop:aa,mbin:Og,mrel:Rh,minner:aa},mpunct:{mord:aa,mop:aa,mrel:Rh,mopen:aa,mclose:aa,mpunct:aa,minner:aa},minner:{mord:aa,mop:aa,mbin:Og,mrel:Rh,mopen:aa,mpunct:aa,minner:aa}},AOt={mord:{mop:aa},mop:{mord:aa,mop:aa},mbin:{},mrel:{},mopen:{},mclose:{mop:aa},mpunct:{},minner:{mop:aa}},wbe={},b5={},y5={};function fn(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs,argTypes:r.argTypes,allowedInArgument:!!r.allowedInArgument,allowedInText:!!r.allowedInText,allowedInMath:r.allowedInMath===void 0?!0:r.allowedInMath,numOptionalArgs:r.numOptionalArgs||0,infix:!!r.infix,primitive:!!r.primitive,handler:i},l=0;l{var w=S.classes[0],E=b.classes[0];w==="mbin"&&tr.contains(ROt,E)?S.classes[0]="mord":E==="mbin"&&tr.contains(_Ot,w)&&(b.classes[0]="mord")},{node:f},h,g),qne(a,(b,S)=>{var w=c9(S),E=c9(b),x=w&&E?b.hasClass("mtight")?AOt[w][E]:COt[w][E]:null;if(x)return it.makeGlue(x,u)},{node:f},h,g),a},qne=function e(t,n,r,i,a){i&&t.push(i);for(var s=0;sh=>{t.splice(f+1,0,h),s++})(s)}i&&t.pop()},xbe=function(t){return t instanceof sk||t instanceof wQ||t instanceof ok&&t.hasClass("enclosing")?t:null},NOt=function e(t,n){var r=xbe(t);if(r){var i=r.children;if(i.length){if(n==="right")return e(i[i.length-1],"right");if(n==="left")return e(i[0],"left")}}return t},c9=function(t,n){return t?(n&&(t=NOt(t,n)),DOt[t.classes[0]]||null):null},Ax=function(t,n){var r=["nulldelimiter"].concat(t.baseSizingClasses());return pp(n.concat(r))},Xr=function(t,n,r){if(!t)return pp();if(b5[t.type]){var i=b5[t.type](t,n);if(r&&n.size!==r.size){i=pp(n.sizingClasses(r),[i],n);var a=n.sizeMultiplier/r.sizeMultiplier;i.height*=a,i.depth*=a}return i}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function KA(e,t){var n=pp(["base"],e,t),r=pp(["strut"]);return r.style.height=Jt(n.height+n.depth),n.depth&&(r.style.verticalAlign=Jt(-n.depth)),n.children.unshift(r),n}function d9(e,t){var n=null;e.length===1&&e[0].type==="tag"&&(n=e[0].tag,e=e[0].body);var r=fs(e,t,"root"),i;r.length===2&&r[1].hasClass("tag")&&(i=r.pop());for(var a=[],s=[],o=0;o0&&(a.push(KA(s,t)),s=[]),a.push(r[o]));s.length>0&&a.push(KA(s,t));var u;n?(u=KA(fs(n,t,!0)),u.classes=["tag"],a.push(u)):i&&a.push(i);var c=pp(["katex-html"],a);if(c.setAttribute("aria-hidden","true"),u){var f=u.children[0];f.style.height=Jt(c.height+c.depth),c.depth&&(f.style.verticalAlign=Jt(-c.depth))}return c}function Tbe(e){return new sk(e)}class hc{constructor(t,n,r){this.type=void 0,this.attributes=void 0,this.children=void 0,this.classes=void 0,this.type=t,this.attributes={},this.children=n||[],this.classes=r||[]}setAttribute(t,n){this.attributes[t]=n}getAttribute(t){return this.attributes[t]}toNode(){var t=document.createElementNS("http://www.w3.org/1998/Math/MathML",this.type);for(var n in this.attributes)Object.prototype.hasOwnProperty.call(this.attributes,n)&&t.setAttribute(n,this.attributes[n]);this.classes.length>0&&(t.className=m0(this.classes));for(var r=0;r0&&(t+=' class ="'+tr.escape(m0(this.classes))+'"'),t+=">";for(var r=0;r",t}toText(){return this.children.map(t=>t.toText()).join("")}}class ow{constructor(t){this.text=void 0,this.text=t}toNode(){return document.createTextNode(this.text)}toMarkup(){return tr.escape(this.toText())}toText(){return this.text}}class POt{constructor(t){this.width=void 0,this.character=void 0,this.width=t,t>=.05555&&t<=.05556?this.character=" ":t>=.1666&&t<=.1667?this.character=" ":t>=.2222&&t<=.2223?this.character=" ":t>=.2777&&t<=.2778?this.character="  ":t>=-.05556&&t<=-.05555?this.character=" ⁣":t>=-.1667&&t<=-.1666?this.character=" ⁣":t>=-.2223&&t<=-.2222?this.character=" ⁣":t>=-.2778&&t<=-.2777?this.character=" ⁣":this.character=null}toNode(){if(this.character)return document.createTextNode(this.character);var t=document.createElementNS("http://www.w3.org/1998/Math/MathML","mspace");return t.setAttribute("width",Jt(this.width)),t}toMarkup(){return this.character?""+this.character+"":''}toText(){return this.character?this.character:" "}}var Ut={MathNode:hc,TextNode:ow,SpaceNode:POt,newDocumentFragment:Tbe},Nc=function(t,n,r){return Ii[n][t]&&Ii[n][t].replace&&t.charCodeAt(0)!==55349&&!(ybe.hasOwnProperty(t)&&r&&(r.fontFamily&&r.fontFamily.slice(4,6)==="tt"||r.font&&r.font.slice(4,6)==="tt"))&&(t=Ii[n][t].replace),new Ut.TextNode(t)},TQ=function(t){return t.length===1?t[0]:new Ut.MathNode("mrow",t)},kQ=function(t,n){if(n.fontFamily==="texttt")return"monospace";if(n.fontFamily==="textsf")return n.fontShape==="textit"&&n.fontWeight==="textbf"?"sans-serif-bold-italic":n.fontShape==="textit"?"sans-serif-italic":n.fontWeight==="textbf"?"bold-sans-serif":"sans-serif";if(n.fontShape==="textit"&&n.fontWeight==="textbf")return"bold-italic";if(n.fontShape==="textit")return"italic";if(n.fontWeight==="textbf")return"bold";var r=n.font;if(!r||r==="mathnormal")return null;var i=t.mode;if(r==="mathit")return"italic";if(r==="boldsymbol")return t.type==="textord"?"bold":"bold-italic";if(r==="mathbf")return"bold";if(r==="mathbb")return"double-struck";if(r==="mathfrak")return"fraktur";if(r==="mathscr"||r==="mathcal")return"script";if(r==="mathsf")return"sans-serif";if(r==="mathtt")return"monospace";var a=t.text;if(tr.contains(["\\imath","\\jmath"],a))return null;Ii[i][a]&&Ii[i][a].replace&&(a=Ii[i][a].replace);var s=it.fontMap[r].fontName;return EQ(a,s,i)?it.fontMap[r].variant:null},Dl=function(t,n,r){if(t.length===1){var i=xi(t[0],n);return r&&i instanceof hc&&i.type==="mo"&&(i.setAttribute("lspace","0em"),i.setAttribute("rspace","0em")),[i]}for(var a=[],s,o=0;o0&&(f.text=f.text.slice(0,1)+"̸"+f.text.slice(1),a.pop())}}}a.push(l),s=l}return a},b0=function(t,n,r){return TQ(Dl(t,n,r))},xi=function(t,n){if(!t)return new Ut.MathNode("mrow");if(y5[t.type]){var r=y5[t.type](t,n);return r}else throw new Ht("Got group of unknown type: '"+t.type+"'")};function Gne(e,t,n,r,i){var a=Dl(e,n),s;a.length===1&&a[0]instanceof hc&&tr.contains(["mrow","mtable"],a[0].type)?s=a[0]:s=new Ut.MathNode("mrow",a);var o=new Ut.MathNode("annotation",[new Ut.TextNode(t)]);o.setAttribute("encoding","application/x-tex");var l=new Ut.MathNode("semantics",[s,o]),u=new Ut.MathNode("math",[l]);u.setAttribute("xmlns","http://www.w3.org/1998/Math/MathML"),r&&u.setAttribute("display","block");var c=i?"katex":"katex-mathml";return it.makeSpan([c],[u])}var kbe=function(t){return new Fh({style:t.displayMode?Gn.DISPLAY:Gn.TEXT,maxSize:t.maxSize,minRuleThickness:t.minRuleThickness})},Cbe=function(t,n){if(n.displayMode){var r=["katex-display"];n.leqno&&r.push("leqno"),n.fleqn&&r.push("fleqn"),t=it.makeSpan(r,[t])}return t},MOt=function(t,n,r){var i=kbe(r),a;if(r.output==="mathml")return Gne(t,n,i,r.displayMode,!0);if(r.output==="html"){var s=d9(t,i);a=it.makeSpan(["katex"],[s])}else{var o=Gne(t,n,i,r.displayMode,!1),l=d9(t,i);a=it.makeSpan(["katex"],[o,l])}return Cbe(a,r)},LOt=function(t,n,r){var i=kbe(r),a=d9(t,i),s=it.makeSpan(["katex"],[a]);return Cbe(s,r)},$Ot={widehat:"^",widecheck:"ˇ",widetilde:"~",utilde:"~",overleftarrow:"←",underleftarrow:"←",xleftarrow:"←",overrightarrow:"→",underrightarrow:"→",xrightarrow:"→",underbrace:"⏟",overbrace:"⏞",overgroup:"⏠",undergroup:"⏡",overleftrightarrow:"↔",underleftrightarrow:"↔",xleftrightarrow:"↔",Overrightarrow:"⇒",xRightarrow:"⇒",overleftharpoon:"↼",xleftharpoonup:"↼",overrightharpoon:"⇀",xrightharpoonup:"⇀",xLeftarrow:"⇐",xLeftrightarrow:"⇔",xhookleftarrow:"↩",xhookrightarrow:"↪",xmapsto:"↦",xrightharpoondown:"⇁",xleftharpoondown:"↽",xrightleftharpoons:"⇌",xleftrightharpoons:"⇋",xtwoheadleftarrow:"↞",xtwoheadrightarrow:"↠",xlongequal:"=",xtofrom:"⇄",xrightleftarrows:"⇄",xrightequilibrium:"⇌",xleftequilibrium:"⇋","\\cdrightarrow":"→","\\cdleftarrow":"←","\\cdlongequal":"="},FOt=function(t){var n=new Ut.MathNode("mo",[new Ut.TextNode($Ot[t.replace(/^\\/,"")])]);return n.setAttribute("stretchy","true"),n},BOt={overrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],overleftarrow:[["leftarrow"],.888,522,"xMinYMin"],underrightarrow:[["rightarrow"],.888,522,"xMaxYMin"],underleftarrow:[["leftarrow"],.888,522,"xMinYMin"],xrightarrow:[["rightarrow"],1.469,522,"xMaxYMin"],"\\cdrightarrow":[["rightarrow"],3,522,"xMaxYMin"],xleftarrow:[["leftarrow"],1.469,522,"xMinYMin"],"\\cdleftarrow":[["leftarrow"],3,522,"xMinYMin"],Overrightarrow:[["doublerightarrow"],.888,560,"xMaxYMin"],xRightarrow:[["doublerightarrow"],1.526,560,"xMaxYMin"],xLeftarrow:[["doubleleftarrow"],1.526,560,"xMinYMin"],overleftharpoon:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoonup:[["leftharpoon"],.888,522,"xMinYMin"],xleftharpoondown:[["leftharpoondown"],.888,522,"xMinYMin"],overrightharpoon:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoonup:[["rightharpoon"],.888,522,"xMaxYMin"],xrightharpoondown:[["rightharpoondown"],.888,522,"xMaxYMin"],xlongequal:[["longequal"],.888,334,"xMinYMin"],"\\cdlongequal":[["longequal"],3,334,"xMinYMin"],xtwoheadleftarrow:[["twoheadleftarrow"],.888,334,"xMinYMin"],xtwoheadrightarrow:[["twoheadrightarrow"],.888,334,"xMaxYMin"],overleftrightarrow:[["leftarrow","rightarrow"],.888,522],overbrace:[["leftbrace","midbrace","rightbrace"],1.6,548],underbrace:[["leftbraceunder","midbraceunder","rightbraceunder"],1.6,548],underleftrightarrow:[["leftarrow","rightarrow"],.888,522],xleftrightarrow:[["leftarrow","rightarrow"],1.75,522],xLeftrightarrow:[["doubleleftarrow","doublerightarrow"],1.75,560],xrightleftharpoons:[["leftharpoondownplus","rightharpoonplus"],1.75,716],xleftrightharpoons:[["leftharpoonplus","rightharpoondownplus"],1.75,716],xhookleftarrow:[["leftarrow","righthook"],1.08,522],xhookrightarrow:[["lefthook","rightarrow"],1.08,522],overlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],underlinesegment:[["leftlinesegment","rightlinesegment"],.888,522],overgroup:[["leftgroup","rightgroup"],.888,342],undergroup:[["leftgroupunder","rightgroupunder"],.888,342],xmapsto:[["leftmapsto","rightarrow"],1.5,522],xtofrom:[["leftToFrom","rightToFrom"],1.75,528],xrightleftarrows:[["baraboveleftarrow","rightarrowabovebar"],1.75,901],xrightequilibrium:[["baraboveshortleftharpoon","rightharpoonaboveshortbar"],1.75,716],xleftequilibrium:[["shortbaraboveleftharpoon","shortrightharpoonabovebar"],1.75,716]},UOt=function(t){return t.type==="ordgroup"?t.body.length:1},zOt=function(t,n){function r(){var o=4e5,l=t.label.slice(1);if(tr.contains(["widehat","widecheck","widetilde","utilde"],l)){var u=t,c=UOt(u.base),f,h,g;if(c>5)l==="widehat"||l==="widecheck"?(f=420,o=2364,g=.42,h=l+"4"):(f=312,o=2340,g=.34,h="tilde4");else{var b=[1,1,2,2,3,3][c];l==="widehat"||l==="widecheck"?(o=[0,1062,2364,2364,2364][b],f=[0,239,300,360,420][b],g=[0,.24,.3,.3,.36,.42][b],h=l+b):(o=[0,600,1033,2339,2340][b],f=[0,260,286,306,312][b],g=[0,.26,.286,.3,.306,.34][b],h="tilde"+b)}var S=new g0(h),w=new hp([S],{width:"100%",height:Jt(g),viewBox:"0 0 "+o+" "+f,preserveAspectRatio:"none"});return{span:it.makeSvgSpan([],[w],n),minWidth:0,height:g}}else{var E=[],x=BOt[l],[k,C,I]=x,A=I/1e3,D=k.length,B,L;if(D===1){var F=x[3];B=["hide-tail"],L=[F]}else if(D===2)B=["halfarrow-left","halfarrow-right"],L=["xMinYMin","xMaxYMin"];else if(D===3)B=["brace-left","brace-center","brace-right"],L=["xMinYMin","xMidYMin","xMaxYMin"];else throw new Error(`Correct katexImagesData or update code here to support - `+D+" children.");for(var W=0;W0&&(i.style.minWidth=Jt(a)),i},jOt=function(t,n,r,i,a){var s,o=t.height+t.depth+r+i;if(/fbox|color|angl/.test(n)){if(s=it.makeSpan(["stretchy",n],[],a),n==="fbox"){var l=a.color&&a.getColor();l&&(s.style.borderColor=l)}}else{var u=[];/^[bx]cancel$/.test(n)&&u.push(new l9({x1:"0",y1:"0",x2:"100%",y2:"100%","stroke-width":"0.046em"})),/^x?cancel$/.test(n)&&u.push(new l9({x1:"0",y1:"100%",x2:"100%",y2:"0","stroke-width":"0.046em"}));var c=new hp(u,{width:"100%",height:Jt(o)});s=it.makeSvgSpan([],[c],a)}return s.height=o,s.style.height=Jt(o),s},mp={encloseSpan:jOt,mathMLnode:FOt,svgSpan:zOt};function vr(e,t){if(!e||e.type!==t)throw new Error("Expected node of type "+t+", but got "+(e?"node of type "+e.type:String(e)));return e}function CQ(e){var t=h6(e);if(!t)throw new Error("Expected node of symbol group type, but got "+(e?"node of type "+e.type:String(e)));return t}function h6(e){return e&&(e.type==="atom"||hOt.hasOwnProperty(e.type))?e:null}var AQ=(e,t)=>{var n,r,i;e&&e.type==="supsub"?(r=vr(e.base,"accent"),n=r.base,e.base=n,i=dOt(Xr(e,t)),e.base=r):(r=vr(e,"accent"),n=r.base);var a=Xr(n,t.havingCrampedStyle()),s=r.isShifty&&tr.isCharacterBox(n),o=0;if(s){var l=tr.getBaseElem(n),u=Xr(l,t.havingCrampedStyle());o=zne(u).skew}var c=r.label==="\\c",f=c?a.height+a.depth:Math.min(a.height,t.fontMetrics().xHeight),h;if(r.isStretchy)h=mp.svgSpan(r,t),h=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"elem",elem:h,wrapperClasses:["svg-align"],wrapperStyle:o>0?{width:"calc(100% - "+Jt(2*o)+")",marginLeft:Jt(2*o)}:void 0}]},t);else{var g,b;r.label==="\\vec"?(g=it.staticSvg("vec",t),b=it.svgData.vec[1]):(g=it.makeOrd({mode:r.mode,text:r.label},t,"textord"),g=zne(g),g.italic=0,b=g.width,c&&(f+=g.depth)),h=it.makeSpan(["accent-body"],[g]);var S=r.label==="\\textcircled";S&&(h.classes.push("accent-full"),f=a.height);var w=o;S||(w-=b/2),h.style.left=Jt(w),r.label==="\\textcircled"&&(h.style.top=".2em"),h=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:-f},{type:"elem",elem:h}]},t)}var E=it.makeSpan(["mord","accent"],[h],t);return i?(i.children[0]=E,i.height=Math.max(E.height,i.height),i.classes[0]="mord",i):E},Abe=(e,t)=>{var n=e.isStretchy?mp.mathMLnode(e.label):new Ut.MathNode("mo",[Nc(e.label,e.mode)]),r=new Ut.MathNode("mover",[xi(e.base,t),n]);return r.setAttribute("accent","true"),r},HOt=new RegExp(["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring"].map(e=>"\\"+e).join("|"));fn({type:"accent",names:["\\acute","\\grave","\\ddot","\\tilde","\\bar","\\breve","\\check","\\hat","\\vec","\\dot","\\mathring","\\widecheck","\\widehat","\\widetilde","\\overrightarrow","\\overleftarrow","\\Overrightarrow","\\overleftrightarrow","\\overgroup","\\overlinesegment","\\overleftharpoon","\\overrightharpoon"],props:{numArgs:1},handler:(e,t)=>{var n=v5(t[0]),r=!HOt.test(e.funcName),i=!r||e.funcName==="\\widehat"||e.funcName==="\\widetilde"||e.funcName==="\\widecheck";return{type:"accent",mode:e.parser.mode,label:e.funcName,isStretchy:r,isShifty:i,base:n}},htmlBuilder:AQ,mathmlBuilder:Abe});fn({type:"accent",names:["\\'","\\`","\\^","\\~","\\=","\\u","\\.",'\\"',"\\c","\\r","\\H","\\v","\\textcircled"],props:{numArgs:1,allowedInText:!0,allowedInMath:!0,argTypes:["primitive"]},handler:(e,t)=>{var n=t[0],r=e.parser.mode;return r==="math"&&(e.parser.settings.reportNonstrict("mathVsTextAccents","LaTeX's accent "+e.funcName+" works only in text mode"),r="text"),{type:"accent",mode:r,label:e.funcName,isStretchy:!1,isShifty:!0,base:n}},htmlBuilder:AQ,mathmlBuilder:Abe});fn({type:"accentUnder",names:["\\underleftarrow","\\underrightarrow","\\underleftrightarrow","\\undergroup","\\underlinesegment","\\utilde"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"accentUnder",mode:n.mode,label:r,base:i}},htmlBuilder:(e,t)=>{var n=Xr(e.base,t),r=mp.svgSpan(e,t),i=e.label==="\\utilde"?.12:0,a=it.makeVList({positionType:"top",positionData:n.height,children:[{type:"elem",elem:r,wrapperClasses:["svg-align"]},{type:"kern",size:i},{type:"elem",elem:n}]},t);return it.makeSpan(["mord","accentunder"],[a],t)},mathmlBuilder:(e,t)=>{var n=mp.mathMLnode(e.label),r=new Ut.MathNode("munder",[xi(e.base,t),n]);return r.setAttribute("accentunder","true"),r}});var JA=e=>{var t=new Ut.MathNode("mpadded",e?[e]:[]);return t.setAttribute("width","+0.6em"),t.setAttribute("lspace","0.3em"),t};fn({type:"xArrow",names:["\\xleftarrow","\\xrightarrow","\\xLeftarrow","\\xRightarrow","\\xleftrightarrow","\\xLeftrightarrow","\\xhookleftarrow","\\xhookrightarrow","\\xmapsto","\\xrightharpoondown","\\xrightharpoonup","\\xleftharpoondown","\\xleftharpoonup","\\xrightleftharpoons","\\xleftrightharpoons","\\xlongequal","\\xtwoheadrightarrow","\\xtwoheadleftarrow","\\xtofrom","\\xrightleftarrows","\\xrightequilibrium","\\xleftequilibrium","\\\\cdrightarrow","\\\\cdleftarrow","\\\\cdlongequal"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r,funcName:i}=e;return{type:"xArrow",mode:r.mode,label:i,body:t[0],below:n[0]}},htmlBuilder(e,t){var n=t.style,r=t.havingStyle(n.sup()),i=it.wrapFragment(Xr(e.body,r,t),t),a=e.label.slice(0,2)==="\\x"?"x":"cd";i.classes.push(a+"-arrow-pad");var s;e.below&&(r=t.havingStyle(n.sub()),s=it.wrapFragment(Xr(e.below,r,t),t),s.classes.push(a+"-arrow-pad"));var o=mp.svgSpan(e,t),l=-t.fontMetrics().axisHeight+.5*o.height,u=-t.fontMetrics().axisHeight-.5*o.height-.111;(i.depth>.25||e.label==="\\xleftequilibrium")&&(u-=i.depth);var c;if(s){var f=-t.fontMetrics().axisHeight+s.height+.5*o.height+.111;c=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l},{type:"elem",elem:s,shift:f}]},t)}else c=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:i,shift:u},{type:"elem",elem:o,shift:l}]},t);return c.children[0].children[0].children[1].classes.push("svg-align"),it.makeSpan(["mrel","x-arrow"],[c],t)},mathmlBuilder(e,t){var n=mp.mathMLnode(e.label);n.setAttribute("minsize",e.label.charAt(0)==="x"?"1.75em":"3.0em");var r;if(e.body){var i=JA(xi(e.body,t));if(e.below){var a=JA(xi(e.below,t));r=new Ut.MathNode("munderover",[n,a,i])}else r=new Ut.MathNode("mover",[n,i])}else if(e.below){var s=JA(xi(e.below,t));r=new Ut.MathNode("munder",[n,s])}else r=JA(),r=new Ut.MathNode("mover",[n,r]);return r}});var VOt=it.makeSpan;function _be(e,t){var n=fs(e.body,t,!0);return VOt([e.mclass],n,t)}function Rbe(e,t){var n,r=Dl(e.body,t);return e.mclass==="minner"?n=new Ut.MathNode("mpadded",r):e.mclass==="mord"?e.isCharacterBox?(n=r[0],n.type="mi"):n=new Ut.MathNode("mi",r):(e.isCharacterBox?(n=r[0],n.type="mo"):n=new Ut.MathNode("mo",r),e.mclass==="mbin"?(n.attributes.lspace="0.22em",n.attributes.rspace="0.22em"):e.mclass==="mpunct"?(n.attributes.lspace="0em",n.attributes.rspace="0.17em"):e.mclass==="mopen"||e.mclass==="mclose"?(n.attributes.lspace="0em",n.attributes.rspace="0em"):e.mclass==="minner"&&(n.attributes.lspace="0.0556em",n.attributes.width="+0.1111em")),n}fn({type:"mclass",names:["\\mathord","\\mathbin","\\mathrel","\\mathopen","\\mathclose","\\mathpunct","\\mathinner"],props:{numArgs:1,primitive:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"mclass",mode:n.mode,mclass:"m"+r.slice(5),body:$a(i),isCharacterBox:tr.isCharacterBox(i)}},htmlBuilder:_be,mathmlBuilder:Rbe});var p6=e=>{var t=e.type==="ordgroup"&&e.body.length?e.body[0]:e;return t.type==="atom"&&(t.family==="bin"||t.family==="rel")?"m"+t.family:"mord"};fn({type:"mclass",names:["\\@binrel"],props:{numArgs:2},handler(e,t){var{parser:n}=e;return{type:"mclass",mode:n.mode,mclass:p6(t[0]),body:$a(t[1]),isCharacterBox:tr.isCharacterBox(t[1])}}});fn({type:"mclass",names:["\\stackrel","\\overset","\\underset"],props:{numArgs:2},handler(e,t){var{parser:n,funcName:r}=e,i=t[1],a=t[0],s;r!=="\\stackrel"?s=p6(i):s="mrel";var o={type:"op",mode:i.mode,limits:!0,alwaysHandleSupSub:!0,parentIsSupSub:!1,symbol:!1,suppressBaseShift:r!=="\\stackrel",body:$a(i)},l={type:"supsub",mode:a.mode,base:o,sup:r==="\\underset"?null:a,sub:r==="\\underset"?a:null};return{type:"mclass",mode:n.mode,mclass:s,body:[l],isCharacterBox:tr.isCharacterBox(l)}},htmlBuilder:_be,mathmlBuilder:Rbe});fn({type:"pmb",names:["\\pmb"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"pmb",mode:n.mode,mclass:p6(t[0]),body:$a(t[0])}},htmlBuilder(e,t){var n=fs(e.body,t,!0),r=it.makeSpan([e.mclass],n,t);return r.style.textShadow="0.02em 0.01em 0.04px",r},mathmlBuilder(e,t){var n=Dl(e.body,t),r=new Ut.MathNode("mstyle",n);return r.setAttribute("style","text-shadow: 0.02em 0.01em 0.04px"),r}});var WOt={">":"\\\\cdrightarrow","<":"\\\\cdleftarrow","=":"\\\\cdlongequal",A:"\\uparrow",V:"\\downarrow","|":"\\Vert",".":"no arrow"},Yne=()=>({type:"styling",body:[],mode:"math",style:"display"}),Zne=e=>e.type==="textord"&&e.text==="@",QOt=(e,t)=>(e.type==="mathord"||e.type==="atom")&&e.text===t;function qOt(e,t,n){var r=WOt[e];switch(r){case"\\\\cdrightarrow":case"\\\\cdleftarrow":return n.callFunction(r,[t[0]],[t[1]]);case"\\uparrow":case"\\downarrow":{var i=n.callFunction("\\\\cdleft",[t[0]],[]),a={type:"atom",text:r,mode:"math",family:"rel"},s=n.callFunction("\\Big",[a],[]),o=n.callFunction("\\\\cdright",[t[1]],[]),l={type:"ordgroup",mode:"math",body:[i,s,o]};return n.callFunction("\\\\cdparent",[l],[])}case"\\\\cdlongequal":return n.callFunction("\\\\cdlongequal",[],[]);case"\\Vert":{var u={type:"textord",text:"\\Vert",mode:"math"};return n.callFunction("\\Big",[u],[])}default:return{type:"textord",text:" ",mode:"math"}}}function GOt(e){var t=[];for(e.gullet.beginGroup(),e.gullet.macros.set("\\cr","\\\\\\relax"),e.gullet.beginGroup();;){t.push(e.parseExpression(!1,"\\\\")),e.gullet.endGroup(),e.gullet.beginGroup();var n=e.fetch().text;if(n==="&"||n==="\\\\")e.consume();else if(n==="\\end"){t[t.length-1].length===0&&t.pop();break}else throw new Ht("Expected \\\\ or \\cr or \\end",e.nextToken)}for(var r=[],i=[r],a=0;a-1))if("<>AV".indexOf(u)>-1)for(var f=0;f<2;f++){for(var h=!0,g=l+1;gAV=|." after @',s[l]);var b=qOt(u,c,e),S={type:"styling",body:[b],mode:"math",style:"display"};r.push(S),o=Yne()}a%2===0?r.push(o):r.shift(),r=[],i.push(r)}e.gullet.endGroup(),e.gullet.endGroup();var w=new Array(i[0].length).fill({type:"align",align:"c",pregap:.25,postgap:.25});return{type:"array",mode:"math",body:i,arraystretch:1,addJot:!0,rowGaps:[null],cols:w,colSeparationType:"CD",hLinesBeforeRow:new Array(i.length+1).fill([])}}fn({type:"cdlabel",names:["\\\\cdleft","\\\\cdright"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"cdlabel",mode:n.mode,side:r.slice(4),label:t[0]}},htmlBuilder(e,t){var n=t.havingStyle(t.style.sup()),r=it.wrapFragment(Xr(e.label,n,t),t);return r.classes.push("cd-label-"+e.side),r.style.bottom=Jt(.8-r.depth),r.height=0,r.depth=0,r},mathmlBuilder(e,t){var n=new Ut.MathNode("mrow",[xi(e.label,t)]);return n=new Ut.MathNode("mpadded",[n]),n.setAttribute("width","0"),e.side==="left"&&n.setAttribute("lspace","-1width"),n.setAttribute("voffset","0.7em"),n=new Ut.MathNode("mstyle",[n]),n.setAttribute("displaystyle","false"),n.setAttribute("scriptlevel","1"),n}});fn({type:"cdlabelparent",names:["\\\\cdparent"],props:{numArgs:1},handler(e,t){var{parser:n}=e;return{type:"cdlabelparent",mode:n.mode,fragment:t[0]}},htmlBuilder(e,t){var n=it.wrapFragment(Xr(e.fragment,t),t);return n.classes.push("cd-vert-arrow"),n},mathmlBuilder(e,t){return new Ut.MathNode("mrow",[xi(e.fragment,t)])}});fn({type:"textord",names:["\\@char"],props:{numArgs:1,allowedInText:!0},handler(e,t){for(var{parser:n}=e,r=vr(t[0],"ordgroup"),i=r.body,a="",s=0;s=1114111)throw new Ht("\\@char with invalid code point "+a);return l<=65535?u=String.fromCharCode(l):(l-=65536,u=String.fromCharCode((l>>10)+55296,(l&1023)+56320)),{type:"textord",mode:n.mode,text:u}}});var Ibe=(e,t)=>{var n=fs(e.body,t.withColor(e.color),!1);return it.makeFragment(n)},Dbe=(e,t)=>{var n=Dl(e.body,t.withColor(e.color)),r=new Ut.MathNode("mstyle",n);return r.setAttribute("mathcolor",e.color),r};fn({type:"color",names:["\\textcolor"],props:{numArgs:2,allowedInText:!0,argTypes:["color","original"]},handler(e,t){var{parser:n}=e,r=vr(t[0],"color-token").color,i=t[1];return{type:"color",mode:n.mode,color:r,body:$a(i)}},htmlBuilder:Ibe,mathmlBuilder:Dbe});fn({type:"color",names:["\\color"],props:{numArgs:1,allowedInText:!0,argTypes:["color"]},handler(e,t){var{parser:n,breakOnTokenText:r}=e,i=vr(t[0],"color-token").color;n.gullet.macros.set("\\current@color",i);var a=n.parseExpression(!0,r);return{type:"color",mode:n.mode,color:i,body:a}},htmlBuilder:Ibe,mathmlBuilder:Dbe});fn({type:"cr",names:["\\\\"],props:{numArgs:0,numOptionalArgs:0,allowedInText:!0},handler(e,t,n){var{parser:r}=e,i=r.gullet.future().text==="["?r.parseSizeGroup(!0):null,a=!r.settings.displayMode||!r.settings.useStrictBehavior("newLineInDisplayMode","In LaTeX, \\\\ or \\newline does nothing in display mode");return{type:"cr",mode:r.mode,newLine:a,size:i&&vr(i,"size").value}},htmlBuilder(e,t){var n=it.makeSpan(["mspace"],[],t);return e.newLine&&(n.classes.push("newline"),e.size&&(n.style.marginTop=Jt(la(e.size,t)))),n},mathmlBuilder(e,t){var n=new Ut.MathNode("mspace");return e.newLine&&(n.setAttribute("linebreak","newline"),e.size&&n.setAttribute("height",Jt(la(e.size,t)))),n}});var f9={"\\global":"\\global","\\long":"\\\\globallong","\\\\globallong":"\\\\globallong","\\def":"\\gdef","\\gdef":"\\gdef","\\edef":"\\xdef","\\xdef":"\\xdef","\\let":"\\\\globallet","\\futurelet":"\\\\globalfuture"},Nbe=e=>{var t=e.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(t))throw new Ht("Expected a control sequence",e);return t},YOt=e=>{var t=e.gullet.popToken();return t.text==="="&&(t=e.gullet.popToken(),t.text===" "&&(t=e.gullet.popToken())),t},Pbe=(e,t,n,r)=>{var i=e.gullet.macros.get(n.text);i==null&&(n.noexpand=!0,i={tokens:[n],numArgs:0,unexpandable:!e.gullet.isExpandable(n.text)}),e.gullet.macros.set(t,i,r)};fn({type:"internal",names:["\\global","\\long","\\\\globallong"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t,funcName:n}=e;t.consumeSpaces();var r=t.fetch();if(f9[r.text])return(n==="\\global"||n==="\\\\globallong")&&(r.text=f9[r.text]),vr(t.parseFunction(),"internal");throw new Ht("Invalid token after macro prefix",r)}});fn({type:"internal",names:["\\def","\\gdef","\\edef","\\xdef"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=t.gullet.popToken(),i=r.text;if(/^(?:[\\{}$&#^_]|EOF)$/.test(i))throw new Ht("Expected a control sequence",r);for(var a=0,s,o=[[]];t.gullet.future().text!=="{";)if(r=t.gullet.popToken(),r.text==="#"){if(t.gullet.future().text==="{"){s=t.gullet.future(),o[a].push("{");break}if(r=t.gullet.popToken(),!/^[1-9]$/.test(r.text))throw new Ht('Invalid argument number "'+r.text+'"');if(parseInt(r.text)!==a+1)throw new Ht('Argument number "'+r.text+'" out of order');a++,o.push([])}else{if(r.text==="EOF")throw new Ht("Expected a macro definition");o[a].push(r.text)}var{tokens:l}=t.gullet.consumeArg();return s&&l.unshift(s),(n==="\\edef"||n==="\\xdef")&&(l=t.gullet.expandTokens(l),l.reverse()),t.gullet.macros.set(i,{tokens:l,numArgs:a,delimiters:o},n===f9[n]),{type:"internal",mode:t.mode}}});fn({type:"internal",names:["\\let","\\\\globallet"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Nbe(t.gullet.popToken());t.gullet.consumeSpaces();var i=YOt(t);return Pbe(t,r,i,n==="\\\\globallet"),{type:"internal",mode:t.mode}}});fn({type:"internal",names:["\\futurelet","\\\\globalfuture"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e){var{parser:t,funcName:n}=e,r=Nbe(t.gullet.popToken()),i=t.gullet.popToken(),a=t.gullet.popToken();return Pbe(t,r,a,n==="\\\\globalfuture"),t.gullet.pushToken(a),t.gullet.pushToken(i),{type:"internal",mode:t.mode}}});var b2=function(t,n,r){var i=Ii.math[t]&&Ii.math[t].replace,a=EQ(i||t,n,r);if(!a)throw new Error("Unsupported symbol "+t+" and font size "+n+".");return a},_Q=function(t,n,r,i){var a=r.havingBaseStyle(n),s=it.makeSpan(i.concat(a.sizingClasses(r)),[t],r),o=a.sizeMultiplier/r.sizeMultiplier;return s.height*=o,s.depth*=o,s.maxFontSize=a.sizeMultiplier,s},Mbe=function(t,n,r){var i=n.havingBaseStyle(r),a=(1-n.sizeMultiplier/i.sizeMultiplier)*n.fontMetrics().axisHeight;t.classes.push("delimcenter"),t.style.top=Jt(a),t.height-=a,t.depth+=a},ZOt=function(t,n,r,i,a,s){var o=it.makeSymbol(t,"Main-Regular",a,i),l=_Q(o,n,i,s);return r&&Mbe(l,i,n),l},XOt=function(t,n,r,i){return it.makeSymbol(t,"Size"+n+"-Regular",r,i)},Lbe=function(t,n,r,i,a,s){var o=XOt(t,n,a,i),l=_Q(it.makeSpan(["delimsizing","size"+n],[o],i),Gn.TEXT,i,s);return r&&Mbe(l,i,Gn.TEXT),l},m7=function(t,n,r){var i;n==="Size1-Regular"?i="delim-size1":i="delim-size4";var a=it.makeSpan(["delimsizinginner",i],[it.makeSpan([],[it.makeSymbol(t,n,r)])]);return{type:"elem",elem:a}},g7=function(t,n,r){var i=Df["Size4-Regular"][t.charCodeAt(0)]?Df["Size4-Regular"][t.charCodeAt(0)][4]:Df["Size1-Regular"][t.charCodeAt(0)][4],a=new g0("inner",rOt(t,Math.round(1e3*n))),s=new hp([a],{width:Jt(i),height:Jt(n),style:"width:"+Jt(i),viewBox:"0 0 "+1e3*i+" "+Math.round(1e3*n),preserveAspectRatio:"xMinYMin"}),o=it.makeSvgSpan([],[s],r);return o.height=n,o.style.height=Jt(n),o.style.width=Jt(i),{type:"elem",elem:o}},h9=.008,e4={type:"kern",size:-1*h9},KOt=["|","\\lvert","\\rvert","\\vert"],JOt=["\\|","\\lVert","\\rVert","\\Vert"],$be=function(t,n,r,i,a,s){var o,l,u,c,f="",h=0;o=u=c=t,l=null;var g="Size1-Regular";t==="\\uparrow"?u=c="⏐":t==="\\Uparrow"?u=c="‖":t==="\\downarrow"?o=u="⏐":t==="\\Downarrow"?o=u="‖":t==="\\updownarrow"?(o="\\uparrow",u="⏐",c="\\downarrow"):t==="\\Updownarrow"?(o="\\Uparrow",u="‖",c="\\Downarrow"):tr.contains(KOt,t)?(u="∣",f="vert",h=333):tr.contains(JOt,t)?(u="∥",f="doublevert",h=556):t==="["||t==="\\lbrack"?(o="⎡",u="⎢",c="⎣",g="Size4-Regular",f="lbrack",h=667):t==="]"||t==="\\rbrack"?(o="⎤",u="⎥",c="⎦",g="Size4-Regular",f="rbrack",h=667):t==="\\lfloor"||t==="⌊"?(u=o="⎢",c="⎣",g="Size4-Regular",f="lfloor",h=667):t==="\\lceil"||t==="⌈"?(o="⎡",u=c="⎢",g="Size4-Regular",f="lceil",h=667):t==="\\rfloor"||t==="⌋"?(u=o="⎥",c="⎦",g="Size4-Regular",f="rfloor",h=667):t==="\\rceil"||t==="⌉"?(o="⎤",u=c="⎥",g="Size4-Regular",f="rceil",h=667):t==="("||t==="\\lparen"?(o="⎛",u="⎜",c="⎝",g="Size4-Regular",f="lparen",h=875):t===")"||t==="\\rparen"?(o="⎞",u="⎟",c="⎠",g="Size4-Regular",f="rparen",h=875):t==="\\{"||t==="\\lbrace"?(o="⎧",l="⎨",c="⎩",u="⎪",g="Size4-Regular"):t==="\\}"||t==="\\rbrace"?(o="⎫",l="⎬",c="⎭",u="⎪",g="Size4-Regular"):t==="\\lgroup"||t==="⟮"?(o="⎧",c="⎩",u="⎪",g="Size4-Regular"):t==="\\rgroup"||t==="⟯"?(o="⎫",c="⎭",u="⎪",g="Size4-Regular"):t==="\\lmoustache"||t==="⎰"?(o="⎧",c="⎭",u="⎪",g="Size4-Regular"):(t==="\\rmoustache"||t==="⎱")&&(o="⎫",c="⎩",u="⎪",g="Size4-Regular");var b=b2(o,g,a),S=b.height+b.depth,w=b2(u,g,a),E=w.height+w.depth,x=b2(c,g,a),k=x.height+x.depth,C=0,I=1;if(l!==null){var A=b2(l,g,a);C=A.height+A.depth,I=2}var D=S+k+C,B=Math.max(0,Math.ceil((n-D)/(I*E))),L=D+B*I*E,F=i.fontMetrics().axisHeight;r&&(F*=i.sizeMultiplier);var W=L/2-F,V=[];if(f.length>0){var Z=L-S-k,Q=Math.round(L*1e3),H=iOt(f,Math.round(Z*1e3)),J=new g0(f,H),K=(h/1e3).toFixed(3)+"em",X=(Q/1e3).toFixed(3)+"em",te=new hp([J],{width:K,height:X,viewBox:"0 0 "+h+" "+Q}),z=it.makeSvgSpan([],[te],i);z.height=Q/1e3,z.style.width=K,z.style.height=X,V.push({type:"elem",elem:z})}else{if(V.push(m7(c,g,a)),V.push(e4),l===null){var Te=L-S-k+2*h9;V.push(g7(u,Te,i))}else{var be=(L-S-k-C)/2+2*h9;V.push(g7(u,be,i)),V.push(e4),V.push(m7(l,g,a)),V.push(e4),V.push(g7(u,be,i))}V.push(e4),V.push(m7(o,g,a))}var ee=i.havingBaseStyle(Gn.TEXT),ye=it.makeVList({positionType:"bottom",positionData:W,children:V},ee);return _Q(it.makeSpan(["delimsizing","mult"],[ye],ee),Gn.TEXT,i,s)},b7=80,y7=.08,v7=function(t,n,r,i,a){var s=nOt(t,i,r),o=new g0(t,s),l=new hp([o],{width:"400em",height:Jt(n),viewBox:"0 0 400000 "+r,preserveAspectRatio:"xMinYMin slice"});return it.makeSvgSpan(["hide-tail"],[l],a)},eSt=function(t,n){var r=n.havingBaseSizing(),i=zbe("\\surd",t*r.sizeMultiplier,Ube,r),a=r.sizeMultiplier,s=Math.max(0,n.minRuleThickness-n.fontMetrics().sqrtRuleThickness),o,l=0,u=0,c=0,f;return i.type==="small"?(c=1e3+1e3*s+b7,t<1?a=1:t<1.4&&(a=.7),l=(1+s+y7)/a,u=(1+s)/a,o=v7("sqrtMain",l,c,s,n),o.style.minWidth="0.853em",f=.833/a):i.type==="large"?(c=(1e3+b7)*lw[i.size],u=(lw[i.size]+s)/a,l=(lw[i.size]+s+y7)/a,o=v7("sqrtSize"+i.size,l,c,s,n),o.style.minWidth="1.02em",f=1/a):(l=t+s+y7,u=t+s,c=Math.floor(1e3*t+s)+b7,o=v7("sqrtTall",l,c,s,n),o.style.minWidth="0.742em",f=1.056),o.height=u,o.style.height=Jt(l),{span:o,advanceWidth:f,ruleWidth:(n.fontMetrics().sqrtRuleThickness+s)*a}},Fbe=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","\\surd"],tSt=["\\uparrow","\\downarrow","\\updownarrow","\\Uparrow","\\Downarrow","\\Updownarrow","|","\\|","\\vert","\\Vert","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱"],Bbe=["<",">","\\langle","\\rangle","/","\\backslash","\\lt","\\gt"],lw=[0,1.2,1.8,2.4,3],nSt=function(t,n,r,i,a){if(t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle"),tr.contains(Fbe,t)||tr.contains(Bbe,t))return Lbe(t,n,!1,r,i,a);if(tr.contains(tSt,t))return $be(t,lw[n],!1,r,i,a);throw new Ht("Illegal delimiter: '"+t+"'")},rSt=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4}],iSt=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"stack"}],Ube=[{type:"small",style:Gn.SCRIPTSCRIPT},{type:"small",style:Gn.SCRIPT},{type:"small",style:Gn.TEXT},{type:"large",size:1},{type:"large",size:2},{type:"large",size:3},{type:"large",size:4},{type:"stack"}],aSt=function(t){if(t.type==="small")return"Main-Regular";if(t.type==="large")return"Size"+t.size+"-Regular";if(t.type==="stack")return"Size4-Regular";throw new Error("Add support for delim type '"+t.type+"' here.")},zbe=function(t,n,r,i){for(var a=Math.min(2,3-i.style.size),s=a;sn)return r[s]}return r[r.length-1]},jbe=function(t,n,r,i,a,s){t==="<"||t==="\\lt"||t==="⟨"?t="\\langle":(t===">"||t==="\\gt"||t==="⟩")&&(t="\\rangle");var o;tr.contains(Bbe,t)?o=rSt:tr.contains(Fbe,t)?o=Ube:o=iSt;var l=zbe(t,n,o,i);return l.type==="small"?ZOt(t,l.style,r,i,a,s):l.type==="large"?Lbe(t,l.size,r,i,a,s):$be(t,n,r,i,a,s)},sSt=function(t,n,r,i,a,s){var o=i.fontMetrics().axisHeight*i.sizeMultiplier,l=901,u=5/i.fontMetrics().ptPerEm,c=Math.max(n-o,r+o),f=Math.max(c/500*l,2*c-u);return jbe(t,f,!0,i,a,s)},Jh={sqrtImage:eSt,sizedDelim:nSt,sizeToMaxHeight:lw,customSizedDelim:jbe,leftRightDelim:sSt},Xne={"\\bigl":{mclass:"mopen",size:1},"\\Bigl":{mclass:"mopen",size:2},"\\biggl":{mclass:"mopen",size:3},"\\Biggl":{mclass:"mopen",size:4},"\\bigr":{mclass:"mclose",size:1},"\\Bigr":{mclass:"mclose",size:2},"\\biggr":{mclass:"mclose",size:3},"\\Biggr":{mclass:"mclose",size:4},"\\bigm":{mclass:"mrel",size:1},"\\Bigm":{mclass:"mrel",size:2},"\\biggm":{mclass:"mrel",size:3},"\\Biggm":{mclass:"mrel",size:4},"\\big":{mclass:"mord",size:1},"\\Big":{mclass:"mord",size:2},"\\bigg":{mclass:"mord",size:3},"\\Bigg":{mclass:"mord",size:4}},oSt=["(","\\lparen",")","\\rparen","[","\\lbrack","]","\\rbrack","\\{","\\lbrace","\\}","\\rbrace","\\lfloor","\\rfloor","⌊","⌋","\\lceil","\\rceil","⌈","⌉","<",">","\\langle","⟨","\\rangle","⟩","\\lt","\\gt","\\lvert","\\rvert","\\lVert","\\rVert","\\lgroup","\\rgroup","⟮","⟯","\\lmoustache","\\rmoustache","⎰","⎱","/","\\backslash","|","\\vert","\\|","\\Vert","\\uparrow","\\Uparrow","\\downarrow","\\Downarrow","\\updownarrow","\\Updownarrow","."];function m6(e,t){var n=h6(e);if(n&&tr.contains(oSt,n.text))return n;throw n?new Ht("Invalid delimiter '"+n.text+"' after '"+t.funcName+"'",e):new Ht("Invalid delimiter type '"+e.type+"'",e)}fn({type:"delimsizing",names:["\\bigl","\\Bigl","\\biggl","\\Biggl","\\bigr","\\Bigr","\\biggr","\\Biggr","\\bigm","\\Bigm","\\biggm","\\Biggm","\\big","\\Big","\\bigg","\\Bigg"],props:{numArgs:1,argTypes:["primitive"]},handler:(e,t)=>{var n=m6(t[0],e);return{type:"delimsizing",mode:e.parser.mode,size:Xne[e.funcName].size,mclass:Xne[e.funcName].mclass,delim:n.text}},htmlBuilder:(e,t)=>e.delim==="."?it.makeSpan([e.mclass]):Jh.sizedDelim(e.delim,e.size,t,e.mode,[e.mclass]),mathmlBuilder:e=>{var t=[];e.delim!=="."&&t.push(Nc(e.delim,e.mode));var n=new Ut.MathNode("mo",t);e.mclass==="mopen"||e.mclass==="mclose"?n.setAttribute("fence","true"):n.setAttribute("fence","false"),n.setAttribute("stretchy","true");var r=Jt(Jh.sizeToMaxHeight[e.size]);return n.setAttribute("minsize",r),n.setAttribute("maxsize",r),n}});function Kne(e){if(!e.body)throw new Error("Bug: The leftright ParseNode wasn't fully parsed.")}fn({type:"leftright-right",names:["\\right"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=e.parser.gullet.macros.get("\\current@color");if(n&&typeof n!="string")throw new Ht("\\current@color set to non-string in \\right");return{type:"leftright-right",mode:e.parser.mode,delim:m6(t[0],e).text,color:n}}});fn({type:"leftright",names:["\\left"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e),r=e.parser;++r.leftrightDepth;var i=r.parseExpression(!1);--r.leftrightDepth,r.expect("\\right",!1);var a=vr(r.parseFunction(),"leftright-right");return{type:"leftright",mode:r.mode,body:i,left:n.text,right:a.delim,rightColor:a.color}},htmlBuilder:(e,t)=>{Kne(e);for(var n=fs(e.body,t,!0,["mopen","mclose"]),r=0,i=0,a=!1,s=0;s{Kne(e);var n=Dl(e.body,t);if(e.left!=="."){var r=new Ut.MathNode("mo",[Nc(e.left,e.mode)]);r.setAttribute("fence","true"),n.unshift(r)}if(e.right!=="."){var i=new Ut.MathNode("mo",[Nc(e.right,e.mode)]);i.setAttribute("fence","true"),e.rightColor&&i.setAttribute("mathcolor",e.rightColor),n.push(i)}return TQ(n)}});fn({type:"middle",names:["\\middle"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var n=m6(t[0],e);if(!e.parser.leftrightDepth)throw new Ht("\\middle without preceding \\left",n);return{type:"middle",mode:e.parser.mode,delim:n.text}},htmlBuilder:(e,t)=>{var n;if(e.delim===".")n=Ax(t,[]);else{n=Jh.sizedDelim(e.delim,1,t,e.mode,[]);var r={delim:e.delim,options:t};n.isMiddle=r}return n},mathmlBuilder:(e,t)=>{var n=e.delim==="\\vert"||e.delim==="|"?Nc("|","text"):Nc(e.delim,e.mode),r=new Ut.MathNode("mo",[n]);return r.setAttribute("fence","true"),r.setAttribute("lspace","0.05em"),r.setAttribute("rspace","0.05em"),r}});var RQ=(e,t)=>{var n=it.wrapFragment(Xr(e.body,t),t),r=e.label.slice(1),i=t.sizeMultiplier,a,s=0,o=tr.isCharacterBox(e.body);if(r==="sout")a=it.makeSpan(["stretchy","sout"]),a.height=t.fontMetrics().defaultRuleThickness/i,s=-.5*t.fontMetrics().xHeight;else if(r==="phase"){var l=la({number:.6,unit:"pt"},t),u=la({number:.35,unit:"ex"},t),c=t.havingBaseSizing();i=i/c.sizeMultiplier;var f=n.height+n.depth+l+u;n.style.paddingLeft=Jt(f/2+l);var h=Math.floor(1e3*f*i),g=eOt(h),b=new hp([new g0("phase",g)],{width:"400em",height:Jt(h/1e3),viewBox:"0 0 400000 "+h,preserveAspectRatio:"xMinYMin slice"});a=it.makeSvgSpan(["hide-tail"],[b],t),a.style.height=Jt(f),s=n.depth+l+u}else{/cancel/.test(r)?o||n.classes.push("cancel-pad"):r==="angl"?n.classes.push("anglpad"):n.classes.push("boxpad");var S=0,w=0,E=0;/box/.test(r)?(E=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness),S=t.fontMetrics().fboxsep+(r==="colorbox"?0:E),w=S):r==="angl"?(E=Math.max(t.fontMetrics().defaultRuleThickness,t.minRuleThickness),S=4*E,w=Math.max(0,.25-n.depth)):(S=o?.2:0,w=S),a=mp.encloseSpan(n,r,S,w,t),/fbox|boxed|fcolorbox/.test(r)?(a.style.borderStyle="solid",a.style.borderWidth=Jt(E)):r==="angl"&&E!==.049&&(a.style.borderTopWidth=Jt(E),a.style.borderRightWidth=Jt(E)),s=n.depth+w,e.backgroundColor&&(a.style.backgroundColor=e.backgroundColor,e.borderColor&&(a.style.borderColor=e.borderColor))}var x;if(e.backgroundColor)x=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:a,shift:s},{type:"elem",elem:n,shift:0}]},t);else{var k=/cancel|phase/.test(r)?["svg-align"]:[];x=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:n,shift:0},{type:"elem",elem:a,shift:s,wrapperClasses:k}]},t)}return/cancel/.test(r)&&(x.height=n.height,x.depth=n.depth),/cancel/.test(r)&&!o?it.makeSpan(["mord","cancel-lap"],[x],t):it.makeSpan(["mord"],[x],t)},IQ=(e,t)=>{var n=0,r=new Ut.MathNode(e.label.indexOf("colorbox")>-1?"mpadded":"menclose",[xi(e.body,t)]);switch(e.label){case"\\cancel":r.setAttribute("notation","updiagonalstrike");break;case"\\bcancel":r.setAttribute("notation","downdiagonalstrike");break;case"\\phase":r.setAttribute("notation","phasorangle");break;case"\\sout":r.setAttribute("notation","horizontalstrike");break;case"\\fbox":r.setAttribute("notation","box");break;case"\\angl":r.setAttribute("notation","actuarial");break;case"\\fcolorbox":case"\\colorbox":if(n=t.fontMetrics().fboxsep*t.fontMetrics().ptPerEm,r.setAttribute("width","+"+2*n+"pt"),r.setAttribute("height","+"+2*n+"pt"),r.setAttribute("lspace",n+"pt"),r.setAttribute("voffset",n+"pt"),e.label==="\\fcolorbox"){var i=Math.max(t.fontMetrics().fboxrule,t.minRuleThickness);r.setAttribute("style","border: "+i+"em solid "+String(e.borderColor))}break;case"\\xcancel":r.setAttribute("notation","updiagonalstrike downdiagonalstrike");break}return e.backgroundColor&&r.setAttribute("mathbackground",e.backgroundColor),r};fn({type:"enclose",names:["\\colorbox"],props:{numArgs:2,allowedInText:!0,argTypes:["color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=vr(t[0],"color-token").color,s=t[1];return{type:"enclose",mode:r.mode,label:i,backgroundColor:a,body:s}},htmlBuilder:RQ,mathmlBuilder:IQ});fn({type:"enclose",names:["\\fcolorbox"],props:{numArgs:3,allowedInText:!0,argTypes:["color","color","text"]},handler(e,t,n){var{parser:r,funcName:i}=e,a=vr(t[0],"color-token").color,s=vr(t[1],"color-token").color,o=t[2];return{type:"enclose",mode:r.mode,label:i,backgroundColor:s,borderColor:a,body:o}},htmlBuilder:RQ,mathmlBuilder:IQ});fn({type:"enclose",names:["\\fbox"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\fbox",body:t[0]}}});fn({type:"enclose",names:["\\cancel","\\bcancel","\\xcancel","\\sout","\\phase"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"enclose",mode:n.mode,label:r,body:i}},htmlBuilder:RQ,mathmlBuilder:IQ});fn({type:"enclose",names:["\\angl"],props:{numArgs:1,argTypes:["hbox"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"enclose",mode:n.mode,label:"\\angl",body:t[0]}}});var Hbe={};function ah(e){for(var{type:t,names:n,props:r,handler:i,htmlBuilder:a,mathmlBuilder:s}=e,o={type:t,numArgs:r.numArgs||0,allowedInText:!1,numOptionalArgs:0,handler:i},l=0;l{var t=e.parser.settings;if(!t.displayMode)throw new Ht("{"+e.envName+"} can be used only in display mode.")};function DQ(e){if(e.indexOf("ed")===-1)return e.indexOf("*")===-1}function M0(e,t,n){var{hskipBeforeAndAfter:r,addJot:i,cols:a,arraystretch:s,colSeparationType:o,autoTag:l,singleRow:u,emptySingleRow:c,maxNumCols:f,leqno:h}=t;if(e.gullet.beginGroup(),u||e.gullet.macros.set("\\cr","\\\\\\relax"),!s){var g=e.gullet.expandMacroAsText("\\arraystretch");if(g==null)s=1;else if(s=parseFloat(g),!s||s<0)throw new Ht("Invalid \\arraystretch: "+g)}e.gullet.beginGroup();var b=[],S=[b],w=[],E=[],x=l!=null?[]:void 0;function k(){l&&e.gullet.macros.set("\\@eqnsw","1",!0)}function C(){x&&(e.gullet.macros.get("\\df@tag")?(x.push(e.subparse([new Vf("\\df@tag")])),e.gullet.macros.set("\\df@tag",void 0,!0)):x.push(!!l&&e.gullet.macros.get("\\@eqnsw")==="1"))}for(k(),E.push(Jne(e));;){var I=e.parseExpression(!1,u?"\\end":"\\\\");e.gullet.endGroup(),e.gullet.beginGroup(),I={type:"ordgroup",mode:e.mode,body:I},n&&(I={type:"styling",mode:e.mode,style:n,body:[I]}),b.push(I);var A=e.fetch().text;if(A==="&"){if(f&&b.length===f){if(u||o)throw new Ht("Too many tab characters: &",e.nextToken);e.settings.reportNonstrict("textEnv","Too few columns specified in the {array} column argument.")}e.consume()}else if(A==="\\end"){C(),b.length===1&&I.type==="styling"&&I.body[0].body.length===0&&(S.length>1||!c)&&S.pop(),E.length0&&(k+=.25),u.push({pos:k,isDashed:Je[pe]})}for(C(s[0]),r=0;r0&&(W+=x,DJe))for(r=0;r=o)){var _e=void 0;(i>0||t.hskipBeforeAndAfter)&&(_e=tr.deflt(be.pregap,h),_e!==0&&(H=it.makeSpan(["arraycolsep"],[]),H.style.width=Jt(_e),Q.push(H)));var Ie=[];for(r=0;r0){for(var tt=it.makeLineSpan("hline",n,c),Ve=it.makeLineSpan("hdashline",n,c),Xe=[{type:"elem",elem:l,shift:0}];u.length>0;){var et=u.pop(),ft=et.pos-V;et.isDashed?Xe.push({type:"elem",elem:Ve,shift:ft}):Xe.push({type:"elem",elem:tt,shift:ft})}l=it.makeVList({positionType:"individualShift",children:Xe},n)}if(K.length===0)return it.makeSpan(["mord"],[l],n);var At=it.makeVList({positionType:"individualShift",children:K},n);return At=it.makeSpan(["tag"],[At],n),it.makeFragment([l,At])},lSt={c:"center ",l:"left ",r:"right "},oh=function(t,n){for(var r=[],i=new Ut.MathNode("mtd",[],["mtr-glue"]),a=new Ut.MathNode("mtd",[],["mml-eqn-num"]),s=0;s0){var b=t.cols,S="",w=!1,E=0,x=b.length;b[0].type==="separator"&&(h+="top ",E=1),b[b.length-1].type==="separator"&&(h+="bottom ",x-=1);for(var k=E;k0?"left ":"",h+=B[B.length-1].length>0?"right ":"";for(var L=1;L-1?"alignat":"align",a=t.envName==="split",s=M0(t.parser,{cols:r,addJot:!0,autoTag:a?void 0:DQ(t.envName),emptySingleRow:!0,colSeparationType:i,maxNumCols:a?2:void 0,leqno:t.parser.settings.leqno},"display"),o,l=0,u={type:"ordgroup",mode:t.mode,body:[]};if(n[0]&&n[0].type==="ordgroup"){for(var c="",f=0;f0&&g&&(w=1),r[b]={type:"align",align:S,pregap:w,postgap:0}}return s.colSeparationType=g?"align":"alignat",s};ah({type:"array",names:["array","darray"],props:{numArgs:1},handler(e,t){var n=h6(t[0]),r=n?[t[0]]:vr(t[0],"ordgroup").body,i=r.map(function(s){var o=CQ(s),l=o.text;if("lcr".indexOf(l)!==-1)return{type:"align",align:l};if(l==="|")return{type:"separator",separator:"|"};if(l===":")return{type:"separator",separator:":"};throw new Ht("Unknown column alignment: "+l,s)}),a={cols:i,hskipBeforeAndAfter:!0,maxNumCols:i.length};return M0(e.parser,a,NQ(e.envName))},htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["matrix","pmatrix","bmatrix","Bmatrix","vmatrix","Vmatrix","matrix*","pmatrix*","bmatrix*","Bmatrix*","vmatrix*","Vmatrix*"],props:{numArgs:0},handler(e){var t={matrix:null,pmatrix:["(",")"],bmatrix:["[","]"],Bmatrix:["\\{","\\}"],vmatrix:["|","|"],Vmatrix:["\\Vert","\\Vert"]}[e.envName.replace("*","")],n="c",r={hskipBeforeAndAfter:!1,cols:[{type:"align",align:n}]};if(e.envName.charAt(e.envName.length-1)==="*"){var i=e.parser;if(i.consumeSpaces(),i.fetch().text==="["){if(i.consume(),i.consumeSpaces(),n=i.fetch().text,"lcr".indexOf(n)===-1)throw new Ht("Expected l or c or r",i.nextToken);i.consume(),i.consumeSpaces(),i.expect("]"),i.consume(),r.cols=[{type:"align",align:n}]}}var a=M0(e.parser,r,NQ(e.envName)),s=Math.max(0,...a.body.map(o=>o.length));return a.cols=new Array(s).fill({type:"align",align:n}),t?{type:"leftright",mode:e.mode,body:[a],left:t[0],right:t[1],rightColor:void 0}:a},htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["smallmatrix"],props:{numArgs:0},handler(e){var t={arraystretch:.5},n=M0(e.parser,t,"script");return n.colSeparationType="small",n},htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["subarray"],props:{numArgs:1},handler(e,t){var n=h6(t[0]),r=n?[t[0]]:vr(t[0],"ordgroup").body,i=r.map(function(s){var o=CQ(s),l=o.text;if("lc".indexOf(l)!==-1)return{type:"align",align:l};throw new Ht("Unknown column alignment: "+l,s)});if(i.length>1)throw new Ht("{subarray} can contain only one column");var a={cols:i,hskipBeforeAndAfter:!1,arraystretch:.5};if(a=M0(e.parser,a,"script"),a.body.length>0&&a.body[0].length>1)throw new Ht("{subarray} can contain only one column");return a},htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["cases","dcases","rcases","drcases"],props:{numArgs:0},handler(e){var t={arraystretch:1.2,cols:[{type:"align",align:"l",pregap:0,postgap:1},{type:"align",align:"l",pregap:0,postgap:0}]},n=M0(e.parser,t,NQ(e.envName));return{type:"leftright",mode:e.mode,body:[n],left:e.envName.indexOf("r")>-1?".":"\\{",right:e.envName.indexOf("r")>-1?"\\}":".",rightColor:void 0}},htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["align","align*","aligned","split"],props:{numArgs:0},handler:Wbe,htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["gathered","gather","gather*"],props:{numArgs:0},handler(e){tr.contains(["gather","gather*"],e.envName)&&g6(e);var t={cols:[{type:"align",align:"c"}],addJot:!0,colSeparationType:"gather",autoTag:DQ(e.envName),emptySingleRow:!0,leqno:e.parser.settings.leqno};return M0(e.parser,t,"display")},htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["alignat","alignat*","alignedat"],props:{numArgs:1},handler:Wbe,htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["equation","equation*"],props:{numArgs:0},handler(e){g6(e);var t={autoTag:DQ(e.envName),emptySingleRow:!0,singleRow:!0,maxNumCols:1,leqno:e.parser.settings.leqno};return M0(e.parser,t,"display")},htmlBuilder:sh,mathmlBuilder:oh});ah({type:"array",names:["CD"],props:{numArgs:0},handler(e){return g6(e),GOt(e.parser)},htmlBuilder:sh,mathmlBuilder:oh});ue("\\nonumber","\\gdef\\@eqnsw{0}");ue("\\notag","\\nonumber");fn({type:"text",names:["\\hline","\\hdashline"],props:{numArgs:0,allowedInText:!0,allowedInMath:!0},handler(e,t){throw new Ht(e.funcName+" valid only within array environment")}});var ere=Hbe;fn({type:"environment",names:["\\begin","\\end"],props:{numArgs:1,argTypes:["text"]},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];if(i.type!=="ordgroup")throw new Ht("Invalid environment name",i);for(var a="",s=0;s{var n=e.font,r=t.withFont(n);return Xr(e.body,r)},qbe=(e,t)=>{var n=e.font,r=t.withFont(n);return xi(e.body,r)},tre={"\\Bbb":"\\mathbb","\\bold":"\\mathbf","\\frak":"\\mathfrak","\\bm":"\\boldsymbol"};fn({type:"font",names:["\\mathrm","\\mathit","\\mathbf","\\mathnormal","\\mathbb","\\mathcal","\\mathfrak","\\mathscr","\\mathsf","\\mathtt","\\Bbb","\\bold","\\frak"],props:{numArgs:1,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=v5(t[0]),a=r;return a in tre&&(a=tre[a]),{type:"font",mode:n.mode,font:a.slice(1),body:i}},htmlBuilder:Qbe,mathmlBuilder:qbe});fn({type:"mclass",names:["\\boldsymbol","\\bm"],props:{numArgs:1},handler:(e,t)=>{var{parser:n}=e,r=t[0],i=tr.isCharacterBox(r);return{type:"mclass",mode:n.mode,mclass:p6(r),body:[{type:"font",mode:n.mode,font:"boldsymbol",body:r}],isCharacterBox:i}}});fn({type:"font",names:["\\rm","\\sf","\\tt","\\bf","\\it","\\cal"],props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r,breakOnTokenText:i}=e,{mode:a}=n,s=n.parseExpression(!0,i),o="math"+r.slice(1);return{type:"font",mode:a,font:o,body:{type:"ordgroup",mode:n.mode,body:s}}},htmlBuilder:Qbe,mathmlBuilder:qbe});var Gbe=(e,t)=>{var n=t;return e==="display"?n=n.id>=Gn.SCRIPT.id?n.text():Gn.DISPLAY:e==="text"&&n.size===Gn.DISPLAY.size?n=Gn.TEXT:e==="script"?n=Gn.SCRIPT:e==="scriptscript"&&(n=Gn.SCRIPTSCRIPT),n},PQ=(e,t)=>{var n=Gbe(e.size,t.style),r=n.fracNum(),i=n.fracDen(),a;a=t.havingStyle(r);var s=Xr(e.numer,a,t);if(e.continued){var o=8.5/t.fontMetrics().ptPerEm,l=3.5/t.fontMetrics().ptPerEm;s.height=s.height0?b=3*h:b=7*h,S=t.fontMetrics().denom1):(f>0?(g=t.fontMetrics().num2,b=h):(g=t.fontMetrics().num3,b=3*h),S=t.fontMetrics().denom2);var w;if(c){var x=t.fontMetrics().axisHeight;g-s.depth-(x+.5*f){var n=new Ut.MathNode("mfrac",[xi(e.numer,t),xi(e.denom,t)]);if(!e.hasBarLine)n.setAttribute("linethickness","0px");else if(e.barSize){var r=la(e.barSize,t);n.setAttribute("linethickness",Jt(r))}var i=Gbe(e.size,t.style);if(i.size!==t.style.size){n=new Ut.MathNode("mstyle",[n]);var a=i.size===Gn.DISPLAY.size?"true":"false";n.setAttribute("displaystyle",a),n.setAttribute("scriptlevel","0")}if(e.leftDelim!=null||e.rightDelim!=null){var s=[];if(e.leftDelim!=null){var o=new Ut.MathNode("mo",[new Ut.TextNode(e.leftDelim.replace("\\",""))]);o.setAttribute("fence","true"),s.push(o)}if(s.push(n),e.rightDelim!=null){var l=new Ut.MathNode("mo",[new Ut.TextNode(e.rightDelim.replace("\\",""))]);l.setAttribute("fence","true"),s.push(l)}return TQ(s)}return n};fn({type:"genfrac",names:["\\dfrac","\\frac","\\tfrac","\\dbinom","\\binom","\\tbinom","\\\\atopfrac","\\\\bracefrac","\\\\brackfrac"],props:{numArgs:2,allowedInArgument:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1],s,o=null,l=null,u="auto";switch(r){case"\\dfrac":case"\\frac":case"\\tfrac":s=!0;break;case"\\\\atopfrac":s=!1;break;case"\\dbinom":case"\\binom":case"\\tbinom":s=!1,o="(",l=")";break;case"\\\\bracefrac":s=!1,o="\\{",l="\\}";break;case"\\\\brackfrac":s=!1,o="[",l="]";break;default:throw new Error("Unrecognized genfrac command")}switch(r){case"\\dfrac":case"\\dbinom":u="display";break;case"\\tfrac":case"\\tbinom":u="text";break}return{type:"genfrac",mode:n.mode,continued:!1,numer:i,denom:a,hasBarLine:s,leftDelim:o,rightDelim:l,size:u,barSize:null}},htmlBuilder:PQ,mathmlBuilder:MQ});fn({type:"genfrac",names:["\\cfrac"],props:{numArgs:2},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=t[1];return{type:"genfrac",mode:n.mode,continued:!0,numer:i,denom:a,hasBarLine:!0,leftDelim:null,rightDelim:null,size:"display",barSize:null}}});fn({type:"infix",names:["\\over","\\choose","\\atop","\\brace","\\brack"],props:{numArgs:0,infix:!0},handler(e){var{parser:t,funcName:n,token:r}=e,i;switch(n){case"\\over":i="\\frac";break;case"\\choose":i="\\binom";break;case"\\atop":i="\\\\atopfrac";break;case"\\brace":i="\\\\bracefrac";break;case"\\brack":i="\\\\brackfrac";break;default:throw new Error("Unrecognized infix genfrac command")}return{type:"infix",mode:t.mode,replaceWith:i,token:r}}});var nre=["display","text","script","scriptscript"],rre=function(t){var n=null;return t.length>0&&(n=t,n=n==="."?null:n),n};fn({type:"genfrac",names:["\\genfrac"],props:{numArgs:6,allowedInArgument:!0,argTypes:["math","math","size","text","math","math"]},handler(e,t){var{parser:n}=e,r=t[4],i=t[5],a=v5(t[0]),s=a.type==="atom"&&a.family==="open"?rre(a.text):null,o=v5(t[1]),l=o.type==="atom"&&o.family==="close"?rre(o.text):null,u=vr(t[2],"size"),c,f=null;u.isBlank?c=!0:(f=u.value,c=f.number>0);var h="auto",g=t[3];if(g.type==="ordgroup"){if(g.body.length>0){var b=vr(g.body[0],"textord");h=nre[Number(b.text)]}}else g=vr(g,"textord"),h=nre[Number(g.text)];return{type:"genfrac",mode:n.mode,numer:r,denom:i,continued:!1,hasBarLine:c,barSize:f,leftDelim:s,rightDelim:l,size:h}},htmlBuilder:PQ,mathmlBuilder:MQ});fn({type:"infix",names:["\\above"],props:{numArgs:1,argTypes:["size"],infix:!0},handler(e,t){var{parser:n,funcName:r,token:i}=e;return{type:"infix",mode:n.mode,replaceWith:"\\\\abovefrac",size:vr(t[0],"size").value,token:i}}});fn({type:"genfrac",names:["\\\\abovefrac"],props:{numArgs:3,argTypes:["math","size","math"]},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0],a=Bvt(vr(t[1],"infix").size),s=t[2],o=a.number>0;return{type:"genfrac",mode:n.mode,numer:i,denom:s,continued:!1,hasBarLine:o,barSize:a,leftDelim:null,rightDelim:null,size:"auto"}},htmlBuilder:PQ,mathmlBuilder:MQ});var Ybe=(e,t)=>{var n=t.style,r,i;e.type==="supsub"?(r=e.sup?Xr(e.sup,t.havingStyle(n.sup()),t):Xr(e.sub,t.havingStyle(n.sub()),t),i=vr(e.base,"horizBrace")):i=vr(e,"horizBrace");var a=Xr(i.base,t.havingBaseStyle(Gn.DISPLAY)),s=mp.svgSpan(i,t),o;if(i.isOver?(o=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:a},{type:"kern",size:.1},{type:"elem",elem:s}]},t),o.children[0].children[0].children[1].classes.push("svg-align")):(o=it.makeVList({positionType:"bottom",positionData:a.depth+.1+s.height,children:[{type:"elem",elem:s},{type:"kern",size:.1},{type:"elem",elem:a}]},t),o.children[0].children[0].children[0].classes.push("svg-align")),r){var l=it.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t);i.isOver?o=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:l},{type:"kern",size:.2},{type:"elem",elem:r}]},t):o=it.makeVList({positionType:"bottom",positionData:l.depth+.2+r.height+r.depth,children:[{type:"elem",elem:r},{type:"kern",size:.2},{type:"elem",elem:l}]},t)}return it.makeSpan(["mord",i.isOver?"mover":"munder"],[o],t)},uSt=(e,t)=>{var n=mp.mathMLnode(e.label);return new Ut.MathNode(e.isOver?"mover":"munder",[xi(e.base,t),n])};fn({type:"horizBrace",names:["\\overbrace","\\underbrace"],props:{numArgs:1},handler(e,t){var{parser:n,funcName:r}=e;return{type:"horizBrace",mode:n.mode,label:r,isOver:/^\\over/.test(r),base:t[0]}},htmlBuilder:Ybe,mathmlBuilder:uSt});fn({type:"href",names:["\\href"],props:{numArgs:2,argTypes:["url","original"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[1],i=vr(t[0],"url").url;return n.settings.isTrusted({command:"\\href",url:i})?{type:"href",mode:n.mode,href:i,body:$a(r)}:n.formatUnsupportedCmd("\\href")},htmlBuilder:(e,t)=>{var n=fs(e.body,t,!1);return it.makeAnchor(e.href,[],n,t)},mathmlBuilder:(e,t)=>{var n=b0(e.body,t);return n instanceof hc||(n=new hc("mrow",[n])),n.setAttribute("href",e.href),n}});fn({type:"href",names:["\\url"],props:{numArgs:1,argTypes:["url"],allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=vr(t[0],"url").url;if(!n.settings.isTrusted({command:"\\url",url:r}))return n.formatUnsupportedCmd("\\url");for(var i=[],a=0;a{var{parser:n,funcName:r,token:i}=e,a=vr(t[0],"raw").string,s=t[1];n.settings.strict&&n.settings.reportNonstrict("htmlExtension","HTML extension is disabled on strict mode");var o,l={};switch(r){case"\\htmlClass":l.class=a,o={command:"\\htmlClass",class:a};break;case"\\htmlId":l.id=a,o={command:"\\htmlId",id:a};break;case"\\htmlStyle":l.style=a,o={command:"\\htmlStyle",style:a};break;case"\\htmlData":{for(var u=a.split(","),c=0;c{var n=fs(e.body,t,!1),r=["enclosing"];e.attributes.class&&r.push(...e.attributes.class.trim().split(/\s+/));var i=it.makeSpan(r,n,t);for(var a in e.attributes)a!=="class"&&e.attributes.hasOwnProperty(a)&&i.setAttribute(a,e.attributes[a]);return i},mathmlBuilder:(e,t)=>b0(e.body,t)});fn({type:"htmlmathml",names:["\\html@mathml"],props:{numArgs:2,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"htmlmathml",mode:n.mode,html:$a(t[0]),mathml:$a(t[1])}},htmlBuilder:(e,t)=>{var n=fs(e.html,t,!1);return it.makeFragment(n)},mathmlBuilder:(e,t)=>b0(e.mathml,t)});var O7=function(t){if(/^[-+]? *(\d+(\.\d*)?|\.\d+)$/.test(t))return{number:+t,unit:"bp"};var n=/([-+]?) *(\d+(?:\.\d*)?|\.\d+) *([a-z]{2})/.exec(t);if(!n)throw new Ht("Invalid size: '"+t+"' in \\includegraphics");var r={number:+(n[1]+n[2]),unit:n[3]};if(!pbe(r))throw new Ht("Invalid unit: '"+r.unit+"' in \\includegraphics.");return r};fn({type:"includegraphics",names:["\\includegraphics"],props:{numArgs:1,numOptionalArgs:1,argTypes:["raw","url"],allowedInText:!1},handler:(e,t,n)=>{var{parser:r}=e,i={number:0,unit:"em"},a={number:.9,unit:"em"},s={number:0,unit:"em"},o="";if(n[0])for(var l=vr(n[0],"raw").string,u=l.split(","),c=0;c{var n=la(e.height,t),r=0;e.totalheight.number>0&&(r=la(e.totalheight,t)-n);var i=0;e.width.number>0&&(i=la(e.width,t));var a={height:Jt(n+r)};i>0&&(a.width=Jt(i)),r>0&&(a.verticalAlign=Jt(-r));var s=new uOt(e.src,e.alt,a);return s.height=n,s.depth=r,s},mathmlBuilder:(e,t)=>{var n=new Ut.MathNode("mglyph",[]);n.setAttribute("alt",e.alt);var r=la(e.height,t),i=0;if(e.totalheight.number>0&&(i=la(e.totalheight,t)-r,n.setAttribute("valign",Jt(-i))),n.setAttribute("height",Jt(r+i)),e.width.number>0){var a=la(e.width,t);n.setAttribute("width",Jt(a))}return n.setAttribute("src",e.src),n}});fn({type:"kern",names:["\\kern","\\mkern","\\hskip","\\mskip"],props:{numArgs:1,argTypes:["size"],primitive:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=vr(t[0],"size");if(n.settings.strict){var a=r[1]==="m",s=i.value.unit==="mu";a?(s||n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" supports only mu units, "+("not "+i.value.unit+" units")),n.mode!=="math"&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" works only in math mode")):s&&n.settings.reportNonstrict("mathVsTextUnits","LaTeX's "+r+" doesn't support mu units")}return{type:"kern",mode:n.mode,dimension:i.value}},htmlBuilder(e,t){return it.makeGlue(e.dimension,t)},mathmlBuilder(e,t){var n=la(e.dimension,t);return new Ut.SpaceNode(n)}});fn({type:"lap",names:["\\mathllap","\\mathrlap","\\mathclap"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"lap",mode:n.mode,alignment:r.slice(5),body:i}},htmlBuilder:(e,t)=>{var n;e.alignment==="clap"?(n=it.makeSpan([],[Xr(e.body,t)]),n=it.makeSpan(["inner"],[n],t)):n=it.makeSpan(["inner"],[Xr(e.body,t)]);var r=it.makeSpan(["fix"],[]),i=it.makeSpan([e.alignment],[n,r],t),a=it.makeSpan(["strut"]);return a.style.height=Jt(i.height+i.depth),i.depth&&(a.style.verticalAlign=Jt(-i.depth)),i.children.unshift(a),i=it.makeSpan(["thinbox"],[i],t),it.makeSpan(["mord","vbox"],[i],t)},mathmlBuilder:(e,t)=>{var n=new Ut.MathNode("mpadded",[xi(e.body,t)]);if(e.alignment!=="rlap"){var r=e.alignment==="llap"?"-1":"-0.5";n.setAttribute("lspace",r+"width")}return n.setAttribute("width","0px"),n}});fn({type:"styling",names:["\\(","$"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){var{funcName:n,parser:r}=e,i=r.mode;r.switchMode("math");var a=n==="\\("?"\\)":"$",s=r.parseExpression(!1,a);return r.expect(a),r.switchMode(i),{type:"styling",mode:r.mode,style:"text",body:s}}});fn({type:"text",names:["\\)","\\]"],props:{numArgs:0,allowedInText:!0,allowedInMath:!1},handler(e,t){throw new Ht("Mismatched "+e.funcName)}});var ire=(e,t)=>{switch(t.style.size){case Gn.DISPLAY.size:return e.display;case Gn.TEXT.size:return e.text;case Gn.SCRIPT.size:return e.script;case Gn.SCRIPTSCRIPT.size:return e.scriptscript;default:return e.text}};fn({type:"mathchoice",names:["\\mathchoice"],props:{numArgs:4,primitive:!0},handler:(e,t)=>{var{parser:n}=e;return{type:"mathchoice",mode:n.mode,display:$a(t[0]),text:$a(t[1]),script:$a(t[2]),scriptscript:$a(t[3])}},htmlBuilder:(e,t)=>{var n=ire(e,t),r=fs(n,t,!1);return it.makeFragment(r)},mathmlBuilder:(e,t)=>{var n=ire(e,t);return b0(n,t)}});var Zbe=(e,t,n,r,i,a,s)=>{e=it.makeSpan([],[e]);var o=n&&tr.isCharacterBox(n),l,u;if(t){var c=Xr(t,r.havingStyle(i.sup()),r);u={elem:c,kern:Math.max(r.fontMetrics().bigOpSpacing1,r.fontMetrics().bigOpSpacing3-c.depth)}}if(n){var f=Xr(n,r.havingStyle(i.sub()),r);l={elem:f,kern:Math.max(r.fontMetrics().bigOpSpacing2,r.fontMetrics().bigOpSpacing4-f.height)}}var h;if(u&&l){var g=r.fontMetrics().bigOpSpacing5+l.elem.height+l.elem.depth+l.kern+e.depth+s;h=it.makeVList({positionType:"bottom",positionData:g,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else if(l){var b=e.height-s;h=it.makeVList({positionType:"top",positionData:b,children:[{type:"kern",size:r.fontMetrics().bigOpSpacing5},{type:"elem",elem:l.elem,marginLeft:Jt(-a)},{type:"kern",size:l.kern},{type:"elem",elem:e}]},r)}else if(u){var S=e.depth+s;h=it.makeVList({positionType:"bottom",positionData:S,children:[{type:"elem",elem:e},{type:"kern",size:u.kern},{type:"elem",elem:u.elem,marginLeft:Jt(a)},{type:"kern",size:r.fontMetrics().bigOpSpacing5}]},r)}else return e;var w=[h];if(l&&a!==0&&!o){var E=it.makeSpan(["mspace"],[],r);E.style.marginRight=Jt(a),w.unshift(E)}return it.makeSpan(["mop","op-limits"],w,r)},Xbe=["\\smallint"],sS=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=vr(e.base,"op"),i=!0):a=vr(e,"op");var s=t.style,o=!1;s.size===Gn.DISPLAY.size&&a.symbol&&!tr.contains(Xbe,a.name)&&(o=!0);var l;if(a.symbol){var u=o?"Size2-Regular":"Size1-Regular",c="";if((a.name==="\\oiint"||a.name==="\\oiiint")&&(c=a.name.slice(1),a.name=c==="oiint"?"\\iint":"\\iiint"),l=it.makeSymbol(a.name,u,"math",t,["mop","op-symbol",o?"large-op":"small-op"]),c.length>0){var f=l.italic,h=it.staticSvg(c+"Size"+(o?"2":"1"),t);l=it.makeVList({positionType:"individualShift",children:[{type:"elem",elem:l,shift:0},{type:"elem",elem:h,shift:o?.08:0}]},t),a.name="\\"+c,l.classes.unshift("mop"),l.italic=f}}else if(a.body){var g=fs(a.body,t,!0);g.length===1&&g[0]instanceof Dc?(l=g[0],l.classes[0]="mop"):l=it.makeSpan(["mop"],g,t)}else{for(var b=[],S=1;S{var n;if(e.symbol)n=new hc("mo",[Nc(e.name,e.mode)]),tr.contains(Xbe,e.name)&&n.setAttribute("largeop","false");else if(e.body)n=new hc("mo",Dl(e.body,t));else{n=new hc("mi",[new ow(e.name.slice(1))]);var r=new hc("mo",[Nc("⁡","text")]);e.parentIsSupSub?n=new hc("mrow",[n,r]):n=Tbe([n,r])}return n},cSt={"∏":"\\prod","∐":"\\coprod","∑":"\\sum","⋀":"\\bigwedge","⋁":"\\bigvee","⋂":"\\bigcap","⋃":"\\bigcup","⨀":"\\bigodot","⨁":"\\bigoplus","⨂":"\\bigotimes","⨄":"\\biguplus","⨆":"\\bigsqcup"};fn({type:"op",names:["\\coprod","\\bigvee","\\bigwedge","\\biguplus","\\bigcap","\\bigcup","\\intop","\\prod","\\sum","\\bigotimes","\\bigoplus","\\bigodot","\\bigsqcup","\\smallint","∏","∐","∑","⋀","⋁","⋂","⋃","⨀","⨁","⨂","⨄","⨆"],props:{numArgs:0},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=r;return i.length===1&&(i=cSt[i]),{type:"op",mode:n.mode,limits:!0,parentIsSupSub:!1,symbol:!0,name:i}},htmlBuilder:sS,mathmlBuilder:lk});fn({type:"op",names:["\\mathop"],props:{numArgs:1,primitive:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"op",mode:n.mode,limits:!1,parentIsSupSub:!1,symbol:!1,body:$a(r)}},htmlBuilder:sS,mathmlBuilder:lk});var dSt={"∫":"\\int","∬":"\\iint","∭":"\\iiint","∮":"\\oint","∯":"\\oiint","∰":"\\oiiint"};fn({type:"op",names:["\\arcsin","\\arccos","\\arctan","\\arctg","\\arcctg","\\arg","\\ch","\\cos","\\cosec","\\cosh","\\cot","\\cotg","\\coth","\\csc","\\ctg","\\cth","\\deg","\\dim","\\exp","\\hom","\\ker","\\lg","\\ln","\\log","\\sec","\\sin","\\sinh","\\sh","\\tan","\\tanh","\\tg","\\th"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:sS,mathmlBuilder:lk});fn({type:"op",names:["\\det","\\gcd","\\inf","\\lim","\\max","\\min","\\Pr","\\sup"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e;return{type:"op",mode:t.mode,limits:!0,parentIsSupSub:!1,symbol:!1,name:n}},htmlBuilder:sS,mathmlBuilder:lk});fn({type:"op",names:["\\int","\\iint","\\iiint","\\oint","\\oiint","\\oiiint","∫","∬","∭","∮","∯","∰"],props:{numArgs:0},handler(e){var{parser:t,funcName:n}=e,r=n;return r.length===1&&(r=dSt[r]),{type:"op",mode:t.mode,limits:!1,parentIsSupSub:!1,symbol:!0,name:r}},htmlBuilder:sS,mathmlBuilder:lk});var Kbe=(e,t)=>{var n,r,i=!1,a;e.type==="supsub"?(n=e.sup,r=e.sub,a=vr(e.base,"operatorname"),i=!0):a=vr(e,"operatorname");var s;if(a.body.length>0){for(var o=a.body.map(f=>{var h=f.text;return typeof h=="string"?{type:"textord",mode:f.mode,text:h}:f}),l=fs(o,t.withFont("mathrm"),!0),u=0;u{for(var n=Dl(e.body,t.withFont("mathrm")),r=!0,i=0;ic.toText()).join("");n=[new Ut.TextNode(o)]}var l=new Ut.MathNode("mi",n);l.setAttribute("mathvariant","normal");var u=new Ut.MathNode("mo",[Nc("⁡","text")]);return e.parentIsSupSub?new Ut.MathNode("mrow",[l,u]):Ut.newDocumentFragment([l,u])};fn({type:"operatorname",names:["\\operatorname@","\\operatornamewithlimits"],props:{numArgs:1},handler:(e,t)=>{var{parser:n,funcName:r}=e,i=t[0];return{type:"operatorname",mode:n.mode,body:$a(i),alwaysHandleSupSub:r==="\\operatornamewithlimits",limits:!1,parentIsSupSub:!1}},htmlBuilder:Kbe,mathmlBuilder:fSt});ue("\\operatorname","\\@ifstar\\operatornamewithlimits\\operatorname@");H1({type:"ordgroup",htmlBuilder(e,t){return e.semisimple?it.makeFragment(fs(e.body,t,!1)):it.makeSpan(["mord"],fs(e.body,t,!0),t)},mathmlBuilder(e,t){return b0(e.body,t,!0)}});fn({type:"overline",names:["\\overline"],props:{numArgs:1},handler(e,t){var{parser:n}=e,r=t[0];return{type:"overline",mode:n.mode,body:r}},htmlBuilder(e,t){var n=Xr(e.body,t.havingCrampedStyle()),r=it.makeLineSpan("overline-line",t),i=t.fontMetrics().defaultRuleThickness,a=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n},{type:"kern",size:3*i},{type:"elem",elem:r},{type:"kern",size:i}]},t);return it.makeSpan(["mord","overline"],[a],t)},mathmlBuilder(e,t){var n=new Ut.MathNode("mo",[new Ut.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ut.MathNode("mover",[xi(e.body,t),n]);return r.setAttribute("accent","true"),r}});fn({type:"phantom",names:["\\phantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"phantom",mode:n.mode,body:$a(r)}},htmlBuilder:(e,t)=>{var n=fs(e.body,t.withPhantom(),!1);return it.makeFragment(n)},mathmlBuilder:(e,t)=>{var n=Dl(e.body,t);return new Ut.MathNode("mphantom",n)}});fn({type:"hphantom",names:["\\hphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"hphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=it.makeSpan([],[Xr(e.body,t.withPhantom())]);if(n.height=0,n.depth=0,n.children)for(var r=0;r{var n=Dl($a(e.body),t),r=new Ut.MathNode("mphantom",n),i=new Ut.MathNode("mpadded",[r]);return i.setAttribute("height","0px"),i.setAttribute("depth","0px"),i}});fn({type:"vphantom",names:["\\vphantom"],props:{numArgs:1,allowedInText:!0},handler:(e,t)=>{var{parser:n}=e,r=t[0];return{type:"vphantom",mode:n.mode,body:r}},htmlBuilder:(e,t)=>{var n=it.makeSpan(["inner"],[Xr(e.body,t.withPhantom())]),r=it.makeSpan(["fix"],[]);return it.makeSpan(["mord","rlap"],[n,r],t)},mathmlBuilder:(e,t)=>{var n=Dl($a(e.body),t),r=new Ut.MathNode("mphantom",n),i=new Ut.MathNode("mpadded",[r]);return i.setAttribute("width","0px"),i}});fn({type:"raisebox",names:["\\raisebox"],props:{numArgs:2,argTypes:["size","hbox"],allowedInText:!0},handler(e,t){var{parser:n}=e,r=vr(t[0],"size").value,i=t[1];return{type:"raisebox",mode:n.mode,dy:r,body:i}},htmlBuilder(e,t){var n=Xr(e.body,t),r=la(e.dy,t);return it.makeVList({positionType:"shift",positionData:-r,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){var n=new Ut.MathNode("mpadded",[xi(e.body,t)]),r=e.dy.number+e.dy.unit;return n.setAttribute("voffset",r),n}});fn({type:"internal",names:["\\relax"],props:{numArgs:0,allowedInText:!0},handler(e){var{parser:t}=e;return{type:"internal",mode:t.mode}}});fn({type:"rule",names:["\\rule"],props:{numArgs:2,numOptionalArgs:1,argTypes:["size","size","size"]},handler(e,t,n){var{parser:r}=e,i=n[0],a=vr(t[0],"size"),s=vr(t[1],"size");return{type:"rule",mode:r.mode,shift:i&&vr(i,"size").value,width:a.value,height:s.value}},htmlBuilder(e,t){var n=it.makeSpan(["mord","rule"],[],t),r=la(e.width,t),i=la(e.height,t),a=e.shift?la(e.shift,t):0;return n.style.borderRightWidth=Jt(r),n.style.borderTopWidth=Jt(i),n.style.bottom=Jt(a),n.width=r,n.height=i+a,n.depth=-a,n.maxFontSize=i*1.125*t.sizeMultiplier,n},mathmlBuilder(e,t){var n=la(e.width,t),r=la(e.height,t),i=e.shift?la(e.shift,t):0,a=t.color&&t.getColor()||"black",s=new Ut.MathNode("mspace");s.setAttribute("mathbackground",a),s.setAttribute("width",Jt(n)),s.setAttribute("height",Jt(r));var o=new Ut.MathNode("mpadded",[s]);return i>=0?o.setAttribute("height",Jt(i)):(o.setAttribute("height",Jt(i)),o.setAttribute("depth",Jt(-i))),o.setAttribute("voffset",Jt(i)),o}});function Jbe(e,t,n){for(var r=fs(e,t,!1),i=t.sizeMultiplier/n.sizeMultiplier,a=0;a{var n=t.havingSize(e.size);return Jbe(e.body,n,t)};fn({type:"sizing",names:are,props:{numArgs:0,allowedInText:!0},handler:(e,t)=>{var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!1,n);return{type:"sizing",mode:i.mode,size:are.indexOf(r)+1,body:a}},htmlBuilder:hSt,mathmlBuilder:(e,t)=>{var n=t.havingSize(e.size),r=Dl(e.body,n),i=new Ut.MathNode("mstyle",r);return i.setAttribute("mathsize",Jt(n.sizeMultiplier)),i}});fn({type:"smash",names:["\\smash"],props:{numArgs:1,numOptionalArgs:1,allowedInText:!0},handler:(e,t,n)=>{var{parser:r}=e,i=!1,a=!1,s=n[0]&&vr(n[0],"ordgroup");if(s)for(var o="",l=0;l{var n=it.makeSpan([],[Xr(e.body,t)]);if(!e.smashHeight&&!e.smashDepth)return n;if(e.smashHeight&&(n.height=0,n.children))for(var r=0;r{var n=new Ut.MathNode("mpadded",[xi(e.body,t)]);return e.smashHeight&&n.setAttribute("height","0px"),e.smashDepth&&n.setAttribute("depth","0px"),n}});fn({type:"sqrt",names:["\\sqrt"],props:{numArgs:1,numOptionalArgs:1},handler(e,t,n){var{parser:r}=e,i=n[0],a=t[0];return{type:"sqrt",mode:r.mode,body:a,index:i}},htmlBuilder(e,t){var n=Xr(e.body,t.havingCrampedStyle());n.height===0&&(n.height=t.fontMetrics().xHeight),n=it.wrapFragment(n,t);var r=t.fontMetrics(),i=r.defaultRuleThickness,a=i;t.style.idn.height+n.depth+s&&(s=(s+f-n.height-n.depth)/2);var h=l.height-n.height-s-u;n.style.paddingLeft=Jt(c);var g=it.makeVList({positionType:"firstBaseline",children:[{type:"elem",elem:n,wrapperClasses:["svg-align"]},{type:"kern",size:-(n.height+h)},{type:"elem",elem:l},{type:"kern",size:u}]},t);if(e.index){var b=t.havingStyle(Gn.SCRIPTSCRIPT),S=Xr(e.index,b,t),w=.6*(g.height-g.depth),E=it.makeVList({positionType:"shift",positionData:-w,children:[{type:"elem",elem:S}]},t),x=it.makeSpan(["root"],[E]);return it.makeSpan(["mord","sqrt"],[x,g],t)}else return it.makeSpan(["mord","sqrt"],[g],t)},mathmlBuilder(e,t){var{body:n,index:r}=e;return r?new Ut.MathNode("mroot",[xi(n,t),xi(r,t)]):new Ut.MathNode("msqrt",[xi(n,t)])}});var sre={display:Gn.DISPLAY,text:Gn.TEXT,script:Gn.SCRIPT,scriptscript:Gn.SCRIPTSCRIPT};fn({type:"styling",names:["\\displaystyle","\\textstyle","\\scriptstyle","\\scriptscriptstyle"],props:{numArgs:0,allowedInText:!0,primitive:!0},handler(e,t){var{breakOnTokenText:n,funcName:r,parser:i}=e,a=i.parseExpression(!0,n),s=r.slice(1,r.length-5);return{type:"styling",mode:i.mode,style:s,body:a}},htmlBuilder(e,t){var n=sre[e.style],r=t.havingStyle(n).withFont("");return Jbe(e.body,r,t)},mathmlBuilder(e,t){var n=sre[e.style],r=t.havingStyle(n),i=Dl(e.body,r),a=new Ut.MathNode("mstyle",i),s={display:["0","true"],text:["0","false"],script:["1","false"],scriptscript:["2","false"]},o=s[e.style];return a.setAttribute("scriptlevel",o[0]),a.setAttribute("displaystyle",o[1]),a}});var pSt=function(t,n){var r=t.base;if(r)if(r.type==="op"){var i=r.limits&&(n.style.size===Gn.DISPLAY.size||r.alwaysHandleSupSub);return i?sS:null}else if(r.type==="operatorname"){var a=r.alwaysHandleSupSub&&(n.style.size===Gn.DISPLAY.size||r.limits);return a?Kbe:null}else{if(r.type==="accent")return tr.isCharacterBox(r.base)?AQ:null;if(r.type==="horizBrace"){var s=!t.sub;return s===r.isOver?Ybe:null}else return null}else return null};H1({type:"supsub",htmlBuilder(e,t){var n=pSt(e,t);if(n)return n(e,t);var{base:r,sup:i,sub:a}=e,s=Xr(r,t),o,l,u=t.fontMetrics(),c=0,f=0,h=r&&tr.isCharacterBox(r);if(i){var g=t.havingStyle(t.style.sup());o=Xr(i,g,t),h||(c=s.height-g.fontMetrics().supDrop*g.sizeMultiplier/t.sizeMultiplier)}if(a){var b=t.havingStyle(t.style.sub());l=Xr(a,b,t),h||(f=s.depth+b.fontMetrics().subDrop*b.sizeMultiplier/t.sizeMultiplier)}var S;t.style===Gn.DISPLAY?S=u.sup1:t.style.cramped?S=u.sup3:S=u.sup2;var w=t.sizeMultiplier,E=Jt(.5/u.ptPerEm/w),x=null;if(l){var k=e.base&&e.base.type==="op"&&e.base.name&&(e.base.name==="\\oiint"||e.base.name==="\\oiiint");(s instanceof Dc||k)&&(x=Jt(-s.italic))}var C;if(o&&l){c=Math.max(c,S,o.depth+.25*u.xHeight),f=Math.max(f,u.sub2);var I=u.defaultRuleThickness,A=4*I;if(c-o.depth-(l.height-f)0&&(c+=D,f-=D)}var B=[{type:"elem",elem:l,shift:f,marginRight:E,marginLeft:x},{type:"elem",elem:o,shift:-c,marginRight:E}];C=it.makeVList({positionType:"individualShift",children:B},t)}else if(l){f=Math.max(f,u.sub1,l.height-.8*u.xHeight);var L=[{type:"elem",elem:l,marginLeft:x,marginRight:E}];C=it.makeVList({positionType:"shift",positionData:f,children:L},t)}else if(o)c=Math.max(c,S,o.depth+.25*u.xHeight),C=it.makeVList({positionType:"shift",positionData:-c,children:[{type:"elem",elem:o,marginRight:E}]},t);else throw new Error("supsub must have either sup or sub.");var F=c9(s,"right")||"mord";return it.makeSpan([F],[s,it.makeSpan(["msupsub"],[C])],t)},mathmlBuilder(e,t){var n=!1,r,i;e.base&&e.base.type==="horizBrace"&&(i=!!e.sup,i===e.base.isOver&&(n=!0,r=e.base.isOver)),e.base&&(e.base.type==="op"||e.base.type==="operatorname")&&(e.base.parentIsSupSub=!0);var a=[xi(e.base,t)];e.sub&&a.push(xi(e.sub,t)),e.sup&&a.push(xi(e.sup,t));var s;if(n)s=r?"mover":"munder";else if(e.sub)if(e.sup){var u=e.base;u&&u.type==="op"&&u.limits&&t.style===Gn.DISPLAY||u&&u.type==="operatorname"&&u.alwaysHandleSupSub&&(t.style===Gn.DISPLAY||u.limits)?s="munderover":s="msubsup"}else{var l=e.base;l&&l.type==="op"&&l.limits&&(t.style===Gn.DISPLAY||l.alwaysHandleSupSub)||l&&l.type==="operatorname"&&l.alwaysHandleSupSub&&(l.limits||t.style===Gn.DISPLAY)?s="munder":s="msub"}else{var o=e.base;o&&o.type==="op"&&o.limits&&(t.style===Gn.DISPLAY||o.alwaysHandleSupSub)||o&&o.type==="operatorname"&&o.alwaysHandleSupSub&&(o.limits||t.style===Gn.DISPLAY)?s="mover":s="msup"}return new Ut.MathNode(s,a)}});H1({type:"atom",htmlBuilder(e,t){return it.mathsym(e.text,e.mode,t,["m"+e.family])},mathmlBuilder(e,t){var n=new Ut.MathNode("mo",[Nc(e.text,e.mode)]);if(e.family==="bin"){var r=kQ(e,t);r==="bold-italic"&&n.setAttribute("mathvariant",r)}else e.family==="punct"?n.setAttribute("separator","true"):(e.family==="open"||e.family==="close")&&n.setAttribute("stretchy","false");return n}});var eye={mi:"italic",mn:"normal",mtext:"normal"};H1({type:"mathord",htmlBuilder(e,t){return it.makeOrd(e,t,"mathord")},mathmlBuilder(e,t){var n=new Ut.MathNode("mi",[Nc(e.text,e.mode,t)]),r=kQ(e,t)||"italic";return r!==eye[n.type]&&n.setAttribute("mathvariant",r),n}});H1({type:"textord",htmlBuilder(e,t){return it.makeOrd(e,t,"textord")},mathmlBuilder(e,t){var n=Nc(e.text,e.mode,t),r=kQ(e,t)||"normal",i;return e.mode==="text"?i=new Ut.MathNode("mtext",[n]):/[0-9]/.test(e.text)?i=new Ut.MathNode("mn",[n]):e.text==="\\prime"?i=new Ut.MathNode("mo",[n]):i=new Ut.MathNode("mi",[n]),r!==eye[i.type]&&i.setAttribute("mathvariant",r),i}});var S7={"\\nobreak":"nobreak","\\allowbreak":"allowbreak"},E7={" ":{},"\\ ":{},"~":{className:"nobreak"},"\\space":{},"\\nobreakspace":{className:"nobreak"}};H1({type:"spacing",htmlBuilder(e,t){if(E7.hasOwnProperty(e.text)){var n=E7[e.text].className||"";if(e.mode==="text"){var r=it.makeOrd(e,t,"textord");return r.classes.push(n),r}else return it.makeSpan(["mspace",n],[it.mathsym(e.text,e.mode,t)],t)}else{if(S7.hasOwnProperty(e.text))return it.makeSpan(["mspace",S7[e.text]],[],t);throw new Ht('Unknown type of space "'+e.text+'"')}},mathmlBuilder(e,t){var n;if(E7.hasOwnProperty(e.text))n=new Ut.MathNode("mtext",[new Ut.TextNode(" ")]);else{if(S7.hasOwnProperty(e.text))return new Ut.MathNode("mspace");throw new Ht('Unknown type of space "'+e.text+'"')}return n}});var ore=()=>{var e=new Ut.MathNode("mtd",[]);return e.setAttribute("width","50%"),e};H1({type:"tag",mathmlBuilder(e,t){var n=new Ut.MathNode("mtable",[new Ut.MathNode("mtr",[ore(),new Ut.MathNode("mtd",[b0(e.body,t)]),ore(),new Ut.MathNode("mtd",[b0(e.tag,t)])])]);return n.setAttribute("width","100%"),n}});var lre={"\\text":void 0,"\\textrm":"textrm","\\textsf":"textsf","\\texttt":"texttt","\\textnormal":"textrm"},ure={"\\textbf":"textbf","\\textmd":"textmd"},mSt={"\\textit":"textit","\\textup":"textup"},cre=(e,t)=>{var n=e.font;return n?lre[n]?t.withTextFontFamily(lre[n]):ure[n]?t.withTextFontWeight(ure[n]):t.withTextFontShape(mSt[n]):t};fn({type:"text",names:["\\text","\\textrm","\\textsf","\\texttt","\\textnormal","\\textbf","\\textmd","\\textit","\\textup"],props:{numArgs:1,argTypes:["text"],allowedInArgument:!0,allowedInText:!0},handler(e,t){var{parser:n,funcName:r}=e,i=t[0];return{type:"text",mode:n.mode,body:$a(i),font:r}},htmlBuilder(e,t){var n=cre(e,t),r=fs(e.body,n,!0);return it.makeSpan(["mord","text"],r,n)},mathmlBuilder(e,t){var n=cre(e,t);return b0(e.body,n)}});fn({type:"underline",names:["\\underline"],props:{numArgs:1,allowedInText:!0},handler(e,t){var{parser:n}=e;return{type:"underline",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Xr(e.body,t),r=it.makeLineSpan("underline-line",t),i=t.fontMetrics().defaultRuleThickness,a=it.makeVList({positionType:"top",positionData:n.height,children:[{type:"kern",size:i},{type:"elem",elem:r},{type:"kern",size:3*i},{type:"elem",elem:n}]},t);return it.makeSpan(["mord","underline"],[a],t)},mathmlBuilder(e,t){var n=new Ut.MathNode("mo",[new Ut.TextNode("‾")]);n.setAttribute("stretchy","true");var r=new Ut.MathNode("munder",[xi(e.body,t),n]);return r.setAttribute("accentunder","true"),r}});fn({type:"vcenter",names:["\\vcenter"],props:{numArgs:1,argTypes:["original"],allowedInText:!1},handler(e,t){var{parser:n}=e;return{type:"vcenter",mode:n.mode,body:t[0]}},htmlBuilder(e,t){var n=Xr(e.body,t),r=t.fontMetrics().axisHeight,i=.5*(n.height-r-(n.depth+r));return it.makeVList({positionType:"shift",positionData:i,children:[{type:"elem",elem:n}]},t)},mathmlBuilder(e,t){return new Ut.MathNode("mpadded",[xi(e.body,t)],["vcenter"])}});fn({type:"verb",names:["\\verb"],props:{numArgs:0,allowedInText:!0},handler(e,t,n){throw new Ht("\\verb ended by end of line instead of matching delimiter")},htmlBuilder(e,t){for(var n=dre(e),r=[],i=t.havingStyle(t.style.text()),a=0;ae.body.replace(/ /g,e.star?"␣":" "),$m=wbe,tye=`[ \r - ]`,gSt="\\\\[a-zA-Z@]+",bSt="\\\\[^\uD800-\uDFFF]",ySt="("+gSt+")"+tye+"*",vSt=`\\\\( -|[ \r ]+ -?)[ \r ]*`,p9="[̀-ͯ]",OSt=new RegExp(p9+"+$"),SSt="("+tye+"+)|"+(vSt+"|")+"([!-\\[\\]-‧‪-퟿豈-￿]"+(p9+"*")+"|[\uD800-\uDBFF][\uDC00-\uDFFF]"+(p9+"*")+"|\\\\verb\\*([^]).*?\\4|\\\\verb([^*a-zA-Z]).*?\\5"+("|"+ySt)+("|"+bSt+")");class fre{constructor(t,n){this.input=void 0,this.settings=void 0,this.tokenRegex=void 0,this.catcodes=void 0,this.input=t,this.settings=n,this.tokenRegex=new RegExp(SSt,"g"),this.catcodes={"%":14,"~":13}}setCatcode(t,n){this.catcodes[t]=n}lex(){var t=this.input,n=this.tokenRegex.lastIndex;if(n===t.length)return new Vf("EOF",new du(this,n,n));var r=this.tokenRegex.exec(t);if(r===null||r.index!==n)throw new Ht("Unexpected character: '"+t[n]+"'",new Vf(t[n],new du(this,n,n+1)));var i=r[6]||r[3]||(r[2]?"\\ ":" ");if(this.catcodes[i]===14){var a=t.indexOf(` -`,this.tokenRegex.lastIndex);return a===-1?(this.tokenRegex.lastIndex=t.length,this.settings.reportNonstrict("commentAtEnd","% comment has no terminating newline; LaTeX would fail because of commenting the end of math mode (e.g. $)")):this.tokenRegex.lastIndex=a+1,this.lex()}return new Vf(i,new du(this,n,this.tokenRegex.lastIndex))}}class ESt{constructor(t,n){t===void 0&&(t={}),n===void 0&&(n={}),this.current=void 0,this.builtins=void 0,this.undefStack=void 0,this.current=n,this.builtins=t,this.undefStack=[]}beginGroup(){this.undefStack.push({})}endGroup(){if(this.undefStack.length===0)throw new Ht("Unbalanced namespace destruction: attempt to pop global namespace; please report this as a bug");var t=this.undefStack.pop();for(var n in t)t.hasOwnProperty(n)&&(t[n]==null?delete this.current[n]:this.current[n]=t[n])}endGroups(){for(;this.undefStack.length>0;)this.endGroup()}has(t){return this.current.hasOwnProperty(t)||this.builtins.hasOwnProperty(t)}get(t){return this.current.hasOwnProperty(t)?this.current[t]:this.builtins[t]}set(t,n,r){if(r===void 0&&(r=!1),r){for(var i=0;i0&&(this.undefStack[this.undefStack.length-1][t]=n)}else{var a=this.undefStack[this.undefStack.length-1];a&&!a.hasOwnProperty(t)&&(a[t]=this.current[t])}n==null?delete this.current[t]:this.current[t]=n}}var wSt=Vbe;ue("\\noexpand",function(e){var t=e.popToken();return e.isExpandable(t.text)&&(t.noexpand=!0,t.treatAsRelax=!0),{tokens:[t],numArgs:0}});ue("\\expandafter",function(e){var t=e.popToken();return e.expandOnce(!0),{tokens:[t],numArgs:0}});ue("\\@firstoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[0],numArgs:0}});ue("\\@secondoftwo",function(e){var t=e.consumeArgs(2);return{tokens:t[1],numArgs:0}});ue("\\@ifnextchar",function(e){var t=e.consumeArgs(3);e.consumeSpaces();var n=e.future();return t[0].length===1&&t[0][0].text===n.text?{tokens:t[1],numArgs:0}:{tokens:t[2],numArgs:0}});ue("\\@ifstar","\\@ifnextchar *{\\@firstoftwo{#1}}");ue("\\TextOrMath",function(e){var t=e.consumeArgs(2);return e.mode==="text"?{tokens:t[0],numArgs:0}:{tokens:t[1],numArgs:0}});var hre={0:0,1:1,2:2,3:3,4:4,5:5,6:6,7:7,8:8,9:9,a:10,A:10,b:11,B:11,c:12,C:12,d:13,D:13,e:14,E:14,f:15,F:15};ue("\\char",function(e){var t=e.popToken(),n,r="";if(t.text==="'")n=8,t=e.popToken();else if(t.text==='"')n=16,t=e.popToken();else if(t.text==="`")if(t=e.popToken(),t.text[0]==="\\")r=t.text.charCodeAt(1);else{if(t.text==="EOF")throw new Ht("\\char` missing argument");r=t.text.charCodeAt(0)}else n=10;if(n){if(r=hre[t.text],r==null||r>=n)throw new Ht("Invalid base-"+n+" digit "+t.text);for(var i;(i=hre[e.future().text])!=null&&i{var r=e.consumeArg().tokens;if(r.length!==1)throw new Ht("\\newcommand's first argument must be a macro name");var i=r[0].text,a=e.isDefined(i);if(a&&!t)throw new Ht("\\newcommand{"+i+"} attempting to redefine "+(i+"; use \\renewcommand"));if(!a&&!n)throw new Ht("\\renewcommand{"+i+"} when command "+i+" does not yet exist; use \\newcommand");var s=0;if(r=e.consumeArg().tokens,r.length===1&&r[0].text==="["){for(var o="",l=e.expandNextToken();l.text!=="]"&&l.text!=="EOF";)o+=l.text,l=e.expandNextToken();if(!o.match(/^\s*[0-9]+\s*$/))throw new Ht("Invalid number of arguments: "+o);s=parseInt(o),r=e.consumeArg().tokens}return e.macros.set(i,{tokens:r,numArgs:s}),""};ue("\\newcommand",e=>LQ(e,!1,!0));ue("\\renewcommand",e=>LQ(e,!0,!1));ue("\\providecommand",e=>LQ(e,!0,!0));ue("\\message",e=>{var t=e.consumeArgs(1)[0];return console.log(t.reverse().map(n=>n.text).join("")),""});ue("\\errmessage",e=>{var t=e.consumeArgs(1)[0];return console.error(t.reverse().map(n=>n.text).join("")),""});ue("\\show",e=>{var t=e.popToken(),n=t.text;return console.log(t,e.macros.get(n),$m[n],Ii.math[n],Ii.text[n]),""});ue("\\bgroup","{");ue("\\egroup","}");ue("~","\\nobreakspace");ue("\\lq","`");ue("\\rq","'");ue("\\aa","\\r a");ue("\\AA","\\r A");ue("\\textcopyright","\\html@mathml{\\textcircled{c}}{\\char`©}");ue("\\copyright","\\TextOrMath{\\textcopyright}{\\text{\\textcopyright}}");ue("\\textregistered","\\html@mathml{\\textcircled{\\scriptsize R}}{\\char`®}");ue("ℬ","\\mathscr{B}");ue("ℰ","\\mathscr{E}");ue("ℱ","\\mathscr{F}");ue("ℋ","\\mathscr{H}");ue("ℐ","\\mathscr{I}");ue("ℒ","\\mathscr{L}");ue("ℳ","\\mathscr{M}");ue("ℛ","\\mathscr{R}");ue("ℭ","\\mathfrak{C}");ue("ℌ","\\mathfrak{H}");ue("ℨ","\\mathfrak{Z}");ue("\\Bbbk","\\Bbb{k}");ue("·","\\cdotp");ue("\\llap","\\mathllap{\\textrm{#1}}");ue("\\rlap","\\mathrlap{\\textrm{#1}}");ue("\\clap","\\mathclap{\\textrm{#1}}");ue("\\mathstrut","\\vphantom{(}");ue("\\underbar","\\underline{\\text{#1}}");ue("\\not",'\\html@mathml{\\mathrel{\\mathrlap\\@not}}{\\char"338}');ue("\\neq","\\html@mathml{\\mathrel{\\not=}}{\\mathrel{\\char`≠}}");ue("\\ne","\\neq");ue("≠","\\neq");ue("\\notin","\\html@mathml{\\mathrel{{\\in}\\mathllap{/\\mskip1mu}}}{\\mathrel{\\char`∉}}");ue("∉","\\notin");ue("≘","\\html@mathml{\\mathrel{=\\kern{-1em}\\raisebox{0.4em}{$\\scriptsize\\frown$}}}{\\mathrel{\\char`≘}}");ue("≙","\\html@mathml{\\stackrel{\\tiny\\wedge}{=}}{\\mathrel{\\char`≘}}");ue("≚","\\html@mathml{\\stackrel{\\tiny\\vee}{=}}{\\mathrel{\\char`≚}}");ue("≛","\\html@mathml{\\stackrel{\\scriptsize\\star}{=}}{\\mathrel{\\char`≛}}");ue("≝","\\html@mathml{\\stackrel{\\tiny\\mathrm{def}}{=}}{\\mathrel{\\char`≝}}");ue("≞","\\html@mathml{\\stackrel{\\tiny\\mathrm{m}}{=}}{\\mathrel{\\char`≞}}");ue("≟","\\html@mathml{\\stackrel{\\tiny?}{=}}{\\mathrel{\\char`≟}}");ue("⟂","\\perp");ue("‼","\\mathclose{!\\mkern-0.8mu!}");ue("∌","\\notni");ue("⌜","\\ulcorner");ue("⌝","\\urcorner");ue("⌞","\\llcorner");ue("⌟","\\lrcorner");ue("©","\\copyright");ue("®","\\textregistered");ue("️","\\textregistered");ue("\\ulcorner",'\\html@mathml{\\@ulcorner}{\\mathop{\\char"231c}}');ue("\\urcorner",'\\html@mathml{\\@urcorner}{\\mathop{\\char"231d}}');ue("\\llcorner",'\\html@mathml{\\@llcorner}{\\mathop{\\char"231e}}');ue("\\lrcorner",'\\html@mathml{\\@lrcorner}{\\mathop{\\char"231f}}');ue("\\vdots","\\mathord{\\varvdots\\rule{0pt}{15pt}}");ue("⋮","\\vdots");ue("\\varGamma","\\mathit{\\Gamma}");ue("\\varDelta","\\mathit{\\Delta}");ue("\\varTheta","\\mathit{\\Theta}");ue("\\varLambda","\\mathit{\\Lambda}");ue("\\varXi","\\mathit{\\Xi}");ue("\\varPi","\\mathit{\\Pi}");ue("\\varSigma","\\mathit{\\Sigma}");ue("\\varUpsilon","\\mathit{\\Upsilon}");ue("\\varPhi","\\mathit{\\Phi}");ue("\\varPsi","\\mathit{\\Psi}");ue("\\varOmega","\\mathit{\\Omega}");ue("\\substack","\\begin{subarray}{c}#1\\end{subarray}");ue("\\colon","\\nobreak\\mskip2mu\\mathpunct{}\\mathchoice{\\mkern-3mu}{\\mkern-3mu}{}{}{:}\\mskip6mu\\relax");ue("\\boxed","\\fbox{$\\displaystyle{#1}$}");ue("\\iff","\\DOTSB\\;\\Longleftrightarrow\\;");ue("\\implies","\\DOTSB\\;\\Longrightarrow\\;");ue("\\impliedby","\\DOTSB\\;\\Longleftarrow\\;");var pre={",":"\\dotsc","\\not":"\\dotsb","+":"\\dotsb","=":"\\dotsb","<":"\\dotsb",">":"\\dotsb","-":"\\dotsb","*":"\\dotsb",":":"\\dotsb","\\DOTSB":"\\dotsb","\\coprod":"\\dotsb","\\bigvee":"\\dotsb","\\bigwedge":"\\dotsb","\\biguplus":"\\dotsb","\\bigcap":"\\dotsb","\\bigcup":"\\dotsb","\\prod":"\\dotsb","\\sum":"\\dotsb","\\bigotimes":"\\dotsb","\\bigoplus":"\\dotsb","\\bigodot":"\\dotsb","\\bigsqcup":"\\dotsb","\\And":"\\dotsb","\\longrightarrow":"\\dotsb","\\Longrightarrow":"\\dotsb","\\longleftarrow":"\\dotsb","\\Longleftarrow":"\\dotsb","\\longleftrightarrow":"\\dotsb","\\Longleftrightarrow":"\\dotsb","\\mapsto":"\\dotsb","\\longmapsto":"\\dotsb","\\hookrightarrow":"\\dotsb","\\doteq":"\\dotsb","\\mathbin":"\\dotsb","\\mathrel":"\\dotsb","\\relbar":"\\dotsb","\\Relbar":"\\dotsb","\\xrightarrow":"\\dotsb","\\xleftarrow":"\\dotsb","\\DOTSI":"\\dotsi","\\int":"\\dotsi","\\oint":"\\dotsi","\\iint":"\\dotsi","\\iiint":"\\dotsi","\\iiiint":"\\dotsi","\\idotsint":"\\dotsi","\\DOTSX":"\\dotsx"};ue("\\dots",function(e){var t="\\dotso",n=e.expandAfterFuture().text;return n in pre?t=pre[n]:(n.slice(0,4)==="\\not"||n in Ii.math&&tr.contains(["bin","rel"],Ii.math[n].group))&&(t="\\dotsb"),t});var $Q={")":!0,"]":!0,"\\rbrack":!0,"\\}":!0,"\\rbrace":!0,"\\rangle":!0,"\\rceil":!0,"\\rfloor":!0,"\\rgroup":!0,"\\rmoustache":!0,"\\right":!0,"\\bigr":!0,"\\biggr":!0,"\\Bigr":!0,"\\Biggr":!0,$:!0,";":!0,".":!0,",":!0};ue("\\dotso",function(e){var t=e.future().text;return t in $Q?"\\ldots\\,":"\\ldots"});ue("\\dotsc",function(e){var t=e.future().text;return t in $Q&&t!==","?"\\ldots\\,":"\\ldots"});ue("\\cdots",function(e){var t=e.future().text;return t in $Q?"\\@cdots\\,":"\\@cdots"});ue("\\dotsb","\\cdots");ue("\\dotsm","\\cdots");ue("\\dotsi","\\!\\cdots");ue("\\dotsx","\\ldots\\,");ue("\\DOTSI","\\relax");ue("\\DOTSB","\\relax");ue("\\DOTSX","\\relax");ue("\\tmspace","\\TextOrMath{\\kern#1#3}{\\mskip#1#2}\\relax");ue("\\,","\\tmspace+{3mu}{.1667em}");ue("\\thinspace","\\,");ue("\\>","\\mskip{4mu}");ue("\\:","\\tmspace+{4mu}{.2222em}");ue("\\medspace","\\:");ue("\\;","\\tmspace+{5mu}{.2777em}");ue("\\thickspace","\\;");ue("\\!","\\tmspace-{3mu}{.1667em}");ue("\\negthinspace","\\!");ue("\\negmedspace","\\tmspace-{4mu}{.2222em}");ue("\\negthickspace","\\tmspace-{5mu}{.277em}");ue("\\enspace","\\kern.5em ");ue("\\enskip","\\hskip.5em\\relax");ue("\\quad","\\hskip1em\\relax");ue("\\qquad","\\hskip2em\\relax");ue("\\tag","\\@ifstar\\tag@literal\\tag@paren");ue("\\tag@paren","\\tag@literal{({#1})}");ue("\\tag@literal",e=>{if(e.macros.get("\\df@tag"))throw new Ht("Multiple \\tag");return"\\gdef\\df@tag{\\text{#1}}"});ue("\\bmod","\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}\\mathbin{\\rm mod}\\mathchoice{\\mskip1mu}{\\mskip1mu}{\\mskip5mu}{\\mskip5mu}");ue("\\pod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern8mu}{\\mkern8mu}{\\mkern8mu}(#1)");ue("\\pmod","\\pod{{\\rm mod}\\mkern6mu#1}");ue("\\mod","\\allowbreak\\mathchoice{\\mkern18mu}{\\mkern12mu}{\\mkern12mu}{\\mkern12mu}{\\rm mod}\\,\\,#1");ue("\\newline","\\\\\\relax");ue("\\TeX","\\textrm{\\html@mathml{T\\kern-.1667em\\raisebox{-.5ex}{E}\\kern-.125emX}{TeX}}");var nye=Jt(Df["Main-Regular"][84][1]-.7*Df["Main-Regular"][65][1]);ue("\\LaTeX","\\textrm{\\html@mathml{"+("L\\kern-.36em\\raisebox{"+nye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{LaTeX}}");ue("\\KaTeX","\\textrm{\\html@mathml{"+("K\\kern-.17em\\raisebox{"+nye+"}{\\scriptstyle A}")+"\\kern-.15em\\TeX}{KaTeX}}");ue("\\hspace","\\@ifstar\\@hspacer\\@hspace");ue("\\@hspace","\\hskip #1\\relax");ue("\\@hspacer","\\rule{0pt}{0pt}\\hskip #1\\relax");ue("\\ordinarycolon",":");ue("\\vcentcolon","\\mathrel{\\mathop\\ordinarycolon}");ue("\\dblcolon",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-.9mu}\\vcentcolon}}{\\mathop{\\char"2237}}');ue("\\coloneqq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2254}}');ue("\\Coloneqq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}=}}{\\mathop{\\char"2237\\char"3d}}');ue("\\coloneq",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"3a\\char"2212}}');ue("\\Coloneq",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\mathrel{-}}}{\\mathop{\\char"2237\\char"2212}}');ue("\\eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2255}}');ue("\\Eqqcolon",'\\html@mathml{\\mathrel{=\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"3d\\char"2237}}');ue("\\eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\vcentcolon}}{\\mathop{\\char"2239}}');ue("\\Eqcolon",'\\html@mathml{\\mathrel{\\mathrel{-}\\mathrel{\\mkern-1.2mu}\\dblcolon}}{\\mathop{\\char"2212\\char"2237}}');ue("\\colonapprox",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"3a\\char"2248}}');ue("\\Colonapprox",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\approx}}{\\mathop{\\char"2237\\char"2248}}');ue("\\colonsim",'\\html@mathml{\\mathrel{\\vcentcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"3a\\char"223c}}');ue("\\Colonsim",'\\html@mathml{\\mathrel{\\dblcolon\\mathrel{\\mkern-1.2mu}\\sim}}{\\mathop{\\char"2237\\char"223c}}');ue("∷","\\dblcolon");ue("∹","\\eqcolon");ue("≔","\\coloneqq");ue("≕","\\eqqcolon");ue("⩴","\\Coloneqq");ue("\\ratio","\\vcentcolon");ue("\\coloncolon","\\dblcolon");ue("\\colonequals","\\coloneqq");ue("\\coloncolonequals","\\Coloneqq");ue("\\equalscolon","\\eqqcolon");ue("\\equalscoloncolon","\\Eqqcolon");ue("\\colonminus","\\coloneq");ue("\\coloncolonminus","\\Coloneq");ue("\\minuscolon","\\eqcolon");ue("\\minuscoloncolon","\\Eqcolon");ue("\\coloncolonapprox","\\Colonapprox");ue("\\coloncolonsim","\\Colonsim");ue("\\simcolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ue("\\simcoloncolon","\\mathrel{\\sim\\mathrel{\\mkern-1.2mu}\\dblcolon}");ue("\\approxcolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\vcentcolon}");ue("\\approxcoloncolon","\\mathrel{\\approx\\mathrel{\\mkern-1.2mu}\\dblcolon}");ue("\\notni","\\html@mathml{\\not\\ni}{\\mathrel{\\char`∌}}");ue("\\limsup","\\DOTSB\\operatorname*{lim\\,sup}");ue("\\liminf","\\DOTSB\\operatorname*{lim\\,inf}");ue("\\injlim","\\DOTSB\\operatorname*{inj\\,lim}");ue("\\projlim","\\DOTSB\\operatorname*{proj\\,lim}");ue("\\varlimsup","\\DOTSB\\operatorname*{\\overline{lim}}");ue("\\varliminf","\\DOTSB\\operatorname*{\\underline{lim}}");ue("\\varinjlim","\\DOTSB\\operatorname*{\\underrightarrow{lim}}");ue("\\varprojlim","\\DOTSB\\operatorname*{\\underleftarrow{lim}}");ue("\\gvertneqq","\\html@mathml{\\@gvertneqq}{≩}");ue("\\lvertneqq","\\html@mathml{\\@lvertneqq}{≨}");ue("\\ngeqq","\\html@mathml{\\@ngeqq}{≱}");ue("\\ngeqslant","\\html@mathml{\\@ngeqslant}{≱}");ue("\\nleqq","\\html@mathml{\\@nleqq}{≰}");ue("\\nleqslant","\\html@mathml{\\@nleqslant}{≰}");ue("\\nshortmid","\\html@mathml{\\@nshortmid}{∤}");ue("\\nshortparallel","\\html@mathml{\\@nshortparallel}{∦}");ue("\\nsubseteqq","\\html@mathml{\\@nsubseteqq}{⊈}");ue("\\nsupseteqq","\\html@mathml{\\@nsupseteqq}{⊉}");ue("\\varsubsetneq","\\html@mathml{\\@varsubsetneq}{⊊}");ue("\\varsubsetneqq","\\html@mathml{\\@varsubsetneqq}{⫋}");ue("\\varsupsetneq","\\html@mathml{\\@varsupsetneq}{⊋}");ue("\\varsupsetneqq","\\html@mathml{\\@varsupsetneqq}{⫌}");ue("\\imath","\\html@mathml{\\@imath}{ı}");ue("\\jmath","\\html@mathml{\\@jmath}{ȷ}");ue("\\llbracket","\\html@mathml{\\mathopen{[\\mkern-3.2mu[}}{\\mathopen{\\char`⟦}}");ue("\\rrbracket","\\html@mathml{\\mathclose{]\\mkern-3.2mu]}}{\\mathclose{\\char`⟧}}");ue("⟦","\\llbracket");ue("⟧","\\rrbracket");ue("\\lBrace","\\html@mathml{\\mathopen{\\{\\mkern-3.2mu[}}{\\mathopen{\\char`⦃}}");ue("\\rBrace","\\html@mathml{\\mathclose{]\\mkern-3.2mu\\}}}{\\mathclose{\\char`⦄}}");ue("⦃","\\lBrace");ue("⦄","\\rBrace");ue("\\minuso","\\mathbin{\\html@mathml{{\\mathrlap{\\mathchoice{\\kern{0.145em}}{\\kern{0.145em}}{\\kern{0.1015em}}{\\kern{0.0725em}}\\circ}{-}}}{\\char`⦵}}");ue("⦵","\\minuso");ue("\\darr","\\downarrow");ue("\\dArr","\\Downarrow");ue("\\Darr","\\Downarrow");ue("\\lang","\\langle");ue("\\rang","\\rangle");ue("\\uarr","\\uparrow");ue("\\uArr","\\Uparrow");ue("\\Uarr","\\Uparrow");ue("\\N","\\mathbb{N}");ue("\\R","\\mathbb{R}");ue("\\Z","\\mathbb{Z}");ue("\\alef","\\aleph");ue("\\alefsym","\\aleph");ue("\\Alpha","\\mathrm{A}");ue("\\Beta","\\mathrm{B}");ue("\\bull","\\bullet");ue("\\Chi","\\mathrm{X}");ue("\\clubs","\\clubsuit");ue("\\cnums","\\mathbb{C}");ue("\\Complex","\\mathbb{C}");ue("\\Dagger","\\ddagger");ue("\\diamonds","\\diamondsuit");ue("\\empty","\\emptyset");ue("\\Epsilon","\\mathrm{E}");ue("\\Eta","\\mathrm{H}");ue("\\exist","\\exists");ue("\\harr","\\leftrightarrow");ue("\\hArr","\\Leftrightarrow");ue("\\Harr","\\Leftrightarrow");ue("\\hearts","\\heartsuit");ue("\\image","\\Im");ue("\\infin","\\infty");ue("\\Iota","\\mathrm{I}");ue("\\isin","\\in");ue("\\Kappa","\\mathrm{K}");ue("\\larr","\\leftarrow");ue("\\lArr","\\Leftarrow");ue("\\Larr","\\Leftarrow");ue("\\lrarr","\\leftrightarrow");ue("\\lrArr","\\Leftrightarrow");ue("\\Lrarr","\\Leftrightarrow");ue("\\Mu","\\mathrm{M}");ue("\\natnums","\\mathbb{N}");ue("\\Nu","\\mathrm{N}");ue("\\Omicron","\\mathrm{O}");ue("\\plusmn","\\pm");ue("\\rarr","\\rightarrow");ue("\\rArr","\\Rightarrow");ue("\\Rarr","\\Rightarrow");ue("\\real","\\Re");ue("\\reals","\\mathbb{R}");ue("\\Reals","\\mathbb{R}");ue("\\Rho","\\mathrm{P}");ue("\\sdot","\\cdot");ue("\\sect","\\S");ue("\\spades","\\spadesuit");ue("\\sub","\\subset");ue("\\sube","\\subseteq");ue("\\supe","\\supseteq");ue("\\Tau","\\mathrm{T}");ue("\\thetasym","\\vartheta");ue("\\weierp","\\wp");ue("\\Zeta","\\mathrm{Z}");ue("\\argmin","\\DOTSB\\operatorname*{arg\\,min}");ue("\\argmax","\\DOTSB\\operatorname*{arg\\,max}");ue("\\plim","\\DOTSB\\mathop{\\operatorname{plim}}\\limits");ue("\\bra","\\mathinner{\\langle{#1}|}");ue("\\ket","\\mathinner{|{#1}\\rangle}");ue("\\braket","\\mathinner{\\langle{#1}\\rangle}");ue("\\Bra","\\left\\langle#1\\right|");ue("\\Ket","\\left|#1\\right\\rangle");var rye=e=>t=>{var n=t.consumeArg().tokens,r=t.consumeArg().tokens,i=t.consumeArg().tokens,a=t.consumeArg().tokens,s=t.macros.get("|"),o=t.macros.get("\\|");t.macros.beginGroup();var l=f=>h=>{e&&(h.macros.set("|",s),i.length&&h.macros.set("\\|",o));var g=f;if(!f&&i.length){var b=h.future();b.text==="|"&&(h.popToken(),g=!0)}return{tokens:g?i:r,numArgs:0}};t.macros.set("|",l(!1)),i.length&&t.macros.set("\\|",l(!0));var u=t.consumeArg().tokens,c=t.expandTokens([...a,...u,...n]);return t.macros.endGroup(),{tokens:c.reverse(),numArgs:0}};ue("\\bra@ket",rye(!1));ue("\\bra@set",rye(!0));ue("\\Braket","\\bra@ket{\\left\\langle}{\\,\\middle\\vert\\,}{\\,\\middle\\vert\\,}{\\right\\rangle}");ue("\\Set","\\bra@set{\\left\\{\\:}{\\;\\middle\\vert\\;}{\\;\\middle\\Vert\\;}{\\:\\right\\}}");ue("\\set","\\bra@set{\\{\\,}{\\mid}{}{\\,\\}}");ue("\\angln","{\\angl n}");ue("\\blue","\\textcolor{##6495ed}{#1}");ue("\\orange","\\textcolor{##ffa500}{#1}");ue("\\pink","\\textcolor{##ff00af}{#1}");ue("\\red","\\textcolor{##df0030}{#1}");ue("\\green","\\textcolor{##28ae7b}{#1}");ue("\\gray","\\textcolor{gray}{#1}");ue("\\purple","\\textcolor{##9d38bd}{#1}");ue("\\blueA","\\textcolor{##ccfaff}{#1}");ue("\\blueB","\\textcolor{##80f6ff}{#1}");ue("\\blueC","\\textcolor{##63d9ea}{#1}");ue("\\blueD","\\textcolor{##11accd}{#1}");ue("\\blueE","\\textcolor{##0c7f99}{#1}");ue("\\tealA","\\textcolor{##94fff5}{#1}");ue("\\tealB","\\textcolor{##26edd5}{#1}");ue("\\tealC","\\textcolor{##01d1c1}{#1}");ue("\\tealD","\\textcolor{##01a995}{#1}");ue("\\tealE","\\textcolor{##208170}{#1}");ue("\\greenA","\\textcolor{##b6ffb0}{#1}");ue("\\greenB","\\textcolor{##8af281}{#1}");ue("\\greenC","\\textcolor{##74cf70}{#1}");ue("\\greenD","\\textcolor{##1fab54}{#1}");ue("\\greenE","\\textcolor{##0d923f}{#1}");ue("\\goldA","\\textcolor{##ffd0a9}{#1}");ue("\\goldB","\\textcolor{##ffbb71}{#1}");ue("\\goldC","\\textcolor{##ff9c39}{#1}");ue("\\goldD","\\textcolor{##e07d10}{#1}");ue("\\goldE","\\textcolor{##a75a05}{#1}");ue("\\redA","\\textcolor{##fca9a9}{#1}");ue("\\redB","\\textcolor{##ff8482}{#1}");ue("\\redC","\\textcolor{##f9685d}{#1}");ue("\\redD","\\textcolor{##e84d39}{#1}");ue("\\redE","\\textcolor{##bc2612}{#1}");ue("\\maroonA","\\textcolor{##ffbde0}{#1}");ue("\\maroonB","\\textcolor{##ff92c6}{#1}");ue("\\maroonC","\\textcolor{##ed5fa6}{#1}");ue("\\maroonD","\\textcolor{##ca337c}{#1}");ue("\\maroonE","\\textcolor{##9e034e}{#1}");ue("\\purpleA","\\textcolor{##ddd7ff}{#1}");ue("\\purpleB","\\textcolor{##c6b9fc}{#1}");ue("\\purpleC","\\textcolor{##aa87ff}{#1}");ue("\\purpleD","\\textcolor{##7854ab}{#1}");ue("\\purpleE","\\textcolor{##543b78}{#1}");ue("\\mintA","\\textcolor{##f5f9e8}{#1}");ue("\\mintB","\\textcolor{##edf2df}{#1}");ue("\\mintC","\\textcolor{##e0e5cc}{#1}");ue("\\grayA","\\textcolor{##f6f7f7}{#1}");ue("\\grayB","\\textcolor{##f0f1f2}{#1}");ue("\\grayC","\\textcolor{##e3e5e6}{#1}");ue("\\grayD","\\textcolor{##d6d8da}{#1}");ue("\\grayE","\\textcolor{##babec2}{#1}");ue("\\grayF","\\textcolor{##888d93}{#1}");ue("\\grayG","\\textcolor{##626569}{#1}");ue("\\grayH","\\textcolor{##3b3e40}{#1}");ue("\\grayI","\\textcolor{##21242c}{#1}");ue("\\kaBlue","\\textcolor{##314453}{#1}");ue("\\kaGreen","\\textcolor{##71B307}{#1}");var iye={"^":!0,_:!0,"\\limits":!0,"\\nolimits":!0};class xSt{constructor(t,n,r){this.settings=void 0,this.expansionCount=void 0,this.lexer=void 0,this.macros=void 0,this.stack=void 0,this.mode=void 0,this.settings=n,this.expansionCount=0,this.feed(t),this.macros=new ESt(wSt,n.macros),this.mode=r,this.stack=[]}feed(t){this.lexer=new fre(t,this.settings)}switchMode(t){this.mode=t}beginGroup(){this.macros.beginGroup()}endGroup(){this.macros.endGroup()}endGroups(){this.macros.endGroups()}future(){return this.stack.length===0&&this.pushToken(this.lexer.lex()),this.stack[this.stack.length-1]}popToken(){return this.future(),this.stack.pop()}pushToken(t){this.stack.push(t)}pushTokens(t){this.stack.push(...t)}scanArgument(t){var n,r,i;if(t){if(this.consumeSpaces(),this.future().text!=="[")return null;n=this.popToken(),{tokens:i,end:r}=this.consumeArg(["]"])}else({tokens:i,start:n,end:r}=this.consumeArg());return this.pushToken(new Vf("EOF",r.loc)),this.pushTokens(i),n.range(r,"")}consumeSpaces(){for(;;){var t=this.future();if(t.text===" ")this.stack.pop();else break}}consumeArg(t){var n=[],r=t&&t.length>0;r||this.consumeSpaces();var i=this.future(),a,s=0,o=0;do{if(a=this.popToken(),n.push(a),a.text==="{")++s;else if(a.text==="}"){if(--s,s===-1)throw new Ht("Extra }",a)}else if(a.text==="EOF")throw new Ht("Unexpected end of input in a macro argument, expected '"+(t&&r?t[o]:"}")+"'",a);if(t&&r)if((s===0||s===1&&t[o]==="{")&&a.text===t[o]){if(++o,o===t.length){n.splice(-o,o);break}}else o=0}while(s!==0||r);return i.text==="{"&&n[n.length-1].text==="}"&&(n.pop(),n.shift()),n.reverse(),{tokens:n,start:i,end:a}}consumeArgs(t,n){if(n){if(n.length!==t+1)throw new Ht("The length of delimiters doesn't match the number of args!");for(var r=n[0],i=0;ithis.settings.maxExpand)throw new Ht("Too many expansions: infinite loop or need to increase maxExpand setting");var a=i.tokens,s=this.consumeArgs(i.numArgs,i.delimiters);if(i.numArgs){a=a.slice();for(var o=a.length-1;o>=0;--o){var l=a[o];if(l.text==="#"){if(o===0)throw new Ht("Incomplete placeholder at end of macro body",l);if(l=a[--o],l.text==="#")a.splice(o+1,1);else if(/^[1-9]$/.test(l.text))a.splice(o,2,...s[+l.text-1]);else throw new Ht("Not a valid argument number",l)}}}return this.pushTokens(a),a.length}expandAfterFuture(){return this.expandOnce(),this.future()}expandNextToken(){for(;;)if(this.expandOnce()===!1){var t=this.stack.pop();return t.treatAsRelax&&(t.text="\\relax"),t}throw new Error}expandMacro(t){return this.macros.has(t)?this.expandTokens([new Vf(t)]):void 0}expandTokens(t){var n=[],r=this.stack.length;for(this.pushTokens(t);this.stack.length>r;)if(this.expandOnce(!0)===!1){var i=this.stack.pop();i.treatAsRelax&&(i.noexpand=!1,i.treatAsRelax=!1),n.push(i)}return n}expandMacroAsText(t){var n=this.expandMacro(t);return n&&n.map(r=>r.text).join("")}_getExpansion(t){var n=this.macros.get(t);if(n==null)return n;if(t.length===1){var r=this.lexer.catcodes[t];if(r!=null&&r!==13)return}var i=typeof n=="function"?n(this):n;if(typeof i=="string"){var a=0;if(i.indexOf("#")!==-1)for(var s=i.replace(/##/g,"");s.indexOf("#"+(a+1))!==-1;)++a;for(var o=new fre(i,this.settings),l=[],u=o.lex();u.text!=="EOF";)l.push(u),u=o.lex();l.reverse();var c={tokens:l,numArgs:a};return c}return i}isDefined(t){return this.macros.has(t)||$m.hasOwnProperty(t)||Ii.math.hasOwnProperty(t)||Ii.text.hasOwnProperty(t)||iye.hasOwnProperty(t)}isExpandable(t){var n=this.macros.get(t);return n!=null?typeof n=="string"||typeof n=="function"||!n.unexpandable:$m.hasOwnProperty(t)&&!$m[t].primitive}}var mre=/^[₊₋₌₍₎₀₁₂₃₄₅₆₇₈₉ₐₑₕᵢⱼₖₗₘₙₒₚᵣₛₜᵤᵥₓᵦᵧᵨᵩᵪ]/,t4=Object.freeze({"₊":"+","₋":"-","₌":"=","₍":"(","₎":")","₀":"0","₁":"1","₂":"2","₃":"3","₄":"4","₅":"5","₆":"6","₇":"7","₈":"8","₉":"9","ₐ":"a","ₑ":"e","ₕ":"h","ᵢ":"i","ⱼ":"j","ₖ":"k","ₗ":"l","ₘ":"m","ₙ":"n","ₒ":"o","ₚ":"p","ᵣ":"r","ₛ":"s","ₜ":"t","ᵤ":"u","ᵥ":"v","ₓ":"x","ᵦ":"β","ᵧ":"γ","ᵨ":"ρ","ᵩ":"ϕ","ᵪ":"χ","⁺":"+","⁻":"-","⁼":"=","⁽":"(","⁾":")","⁰":"0","¹":"1","²":"2","³":"3","⁴":"4","⁵":"5","⁶":"6","⁷":"7","⁸":"8","⁹":"9","ᴬ":"A","ᴮ":"B","ᴰ":"D","ᴱ":"E","ᴳ":"G","ᴴ":"H","ᴵ":"I","ᴶ":"J","ᴷ":"K","ᴸ":"L","ᴹ":"M","ᴺ":"N","ᴼ":"O","ᴾ":"P","ᴿ":"R","ᵀ":"T","ᵁ":"U","ⱽ":"V","ᵂ":"W","ᵃ":"a","ᵇ":"b","ᶜ":"c","ᵈ":"d","ᵉ":"e","ᶠ":"f","ᵍ":"g",ʰ:"h","ⁱ":"i",ʲ:"j","ᵏ":"k",ˡ:"l","ᵐ":"m",ⁿ:"n","ᵒ":"o","ᵖ":"p",ʳ:"r",ˢ:"s","ᵗ":"t","ᵘ":"u","ᵛ":"v",ʷ:"w",ˣ:"x",ʸ:"y","ᶻ":"z","ᵝ":"β","ᵞ":"γ","ᵟ":"δ","ᵠ":"ϕ","ᵡ":"χ","ᶿ":"θ"}),w7={"́":{text:"\\'",math:"\\acute"},"̀":{text:"\\`",math:"\\grave"},"̈":{text:'\\"',math:"\\ddot"},"̃":{text:"\\~",math:"\\tilde"},"̄":{text:"\\=",math:"\\bar"},"̆":{text:"\\u",math:"\\breve"},"̌":{text:"\\v",math:"\\check"},"̂":{text:"\\^",math:"\\hat"},"̇":{text:"\\.",math:"\\dot"},"̊":{text:"\\r",math:"\\mathring"},"̋":{text:"\\H"},"̧":{text:"\\c"}},gre={á:"á",à:"à",ä:"ä",ǟ:"ǟ",ã:"ã",ā:"ā",ă:"ă",ắ:"ắ",ằ:"ằ",ẵ:"ẵ",ǎ:"ǎ",â:"â",ấ:"ấ",ầ:"ầ",ẫ:"ẫ",ȧ:"ȧ",ǡ:"ǡ",å:"å",ǻ:"ǻ",ḃ:"ḃ",ć:"ć",ḉ:"ḉ",č:"č",ĉ:"ĉ",ċ:"ċ",ç:"ç",ď:"ď",ḋ:"ḋ",ḑ:"ḑ",é:"é",è:"è",ë:"ë",ẽ:"ẽ",ē:"ē",ḗ:"ḗ",ḕ:"ḕ",ĕ:"ĕ",ḝ:"ḝ",ě:"ě",ê:"ê",ế:"ế",ề:"ề",ễ:"ễ",ė:"ė",ȩ:"ȩ",ḟ:"ḟ",ǵ:"ǵ",ḡ:"ḡ",ğ:"ğ",ǧ:"ǧ",ĝ:"ĝ",ġ:"ġ",ģ:"ģ",ḧ:"ḧ",ȟ:"ȟ",ĥ:"ĥ",ḣ:"ḣ",ḩ:"ḩ",í:"í",ì:"ì",ï:"ï",ḯ:"ḯ",ĩ:"ĩ",ī:"ī",ĭ:"ĭ",ǐ:"ǐ",î:"î",ǰ:"ǰ",ĵ:"ĵ",ḱ:"ḱ",ǩ:"ǩ",ķ:"ķ",ĺ:"ĺ",ľ:"ľ",ļ:"ļ",ḿ:"ḿ",ṁ:"ṁ",ń:"ń",ǹ:"ǹ",ñ:"ñ",ň:"ň",ṅ:"ṅ",ņ:"ņ",ó:"ó",ò:"ò",ö:"ö",ȫ:"ȫ",õ:"õ",ṍ:"ṍ",ṏ:"ṏ",ȭ:"ȭ",ō:"ō",ṓ:"ṓ",ṑ:"ṑ",ŏ:"ŏ",ǒ:"ǒ",ô:"ô",ố:"ố",ồ:"ồ",ỗ:"ỗ",ȯ:"ȯ",ȱ:"ȱ",ő:"ő",ṕ:"ṕ",ṗ:"ṗ",ŕ:"ŕ",ř:"ř",ṙ:"ṙ",ŗ:"ŗ",ś:"ś",ṥ:"ṥ",š:"š",ṧ:"ṧ",ŝ:"ŝ",ṡ:"ṡ",ş:"ş",ẗ:"ẗ",ť:"ť",ṫ:"ṫ",ţ:"ţ",ú:"ú",ù:"ù",ü:"ü",ǘ:"ǘ",ǜ:"ǜ",ǖ:"ǖ",ǚ:"ǚ",ũ:"ũ",ṹ:"ṹ",ū:"ū",ṻ:"ṻ",ŭ:"ŭ",ǔ:"ǔ",û:"û",ů:"ů",ű:"ű",ṽ:"ṽ",ẃ:"ẃ",ẁ:"ẁ",ẅ:"ẅ",ŵ:"ŵ",ẇ:"ẇ",ẘ:"ẘ",ẍ:"ẍ",ẋ:"ẋ",ý:"ý",ỳ:"ỳ",ÿ:"ÿ",ỹ:"ỹ",ȳ:"ȳ",ŷ:"ŷ",ẏ:"ẏ",ẙ:"ẙ",ź:"ź",ž:"ž",ẑ:"ẑ",ż:"ż",Á:"Á",À:"À",Ä:"Ä",Ǟ:"Ǟ",Ã:"Ã",Ā:"Ā",Ă:"Ă",Ắ:"Ắ",Ằ:"Ằ",Ẵ:"Ẵ",Ǎ:"Ǎ",Â:"Â",Ấ:"Ấ",Ầ:"Ầ",Ẫ:"Ẫ",Ȧ:"Ȧ",Ǡ:"Ǡ",Å:"Å",Ǻ:"Ǻ",Ḃ:"Ḃ",Ć:"Ć",Ḉ:"Ḉ",Č:"Č",Ĉ:"Ĉ",Ċ:"Ċ",Ç:"Ç",Ď:"Ď",Ḋ:"Ḋ",Ḑ:"Ḑ",É:"É",È:"È",Ë:"Ë",Ẽ:"Ẽ",Ē:"Ē",Ḗ:"Ḗ",Ḕ:"Ḕ",Ĕ:"Ĕ",Ḝ:"Ḝ",Ě:"Ě",Ê:"Ê",Ế:"Ế",Ề:"Ề",Ễ:"Ễ",Ė:"Ė",Ȩ:"Ȩ",Ḟ:"Ḟ",Ǵ:"Ǵ",Ḡ:"Ḡ",Ğ:"Ğ",Ǧ:"Ǧ",Ĝ:"Ĝ",Ġ:"Ġ",Ģ:"Ģ",Ḧ:"Ḧ",Ȟ:"Ȟ",Ĥ:"Ĥ",Ḣ:"Ḣ",Ḩ:"Ḩ",Í:"Í",Ì:"Ì",Ï:"Ï",Ḯ:"Ḯ",Ĩ:"Ĩ",Ī:"Ī",Ĭ:"Ĭ",Ǐ:"Ǐ",Î:"Î",İ:"İ",Ĵ:"Ĵ",Ḱ:"Ḱ",Ǩ:"Ǩ",Ķ:"Ķ",Ĺ:"Ĺ",Ľ:"Ľ",Ļ:"Ļ",Ḿ:"Ḿ",Ṁ:"Ṁ",Ń:"Ń",Ǹ:"Ǹ",Ñ:"Ñ",Ň:"Ň",Ṅ:"Ṅ",Ņ:"Ņ",Ó:"Ó",Ò:"Ò",Ö:"Ö",Ȫ:"Ȫ",Õ:"Õ",Ṍ:"Ṍ",Ṏ:"Ṏ",Ȭ:"Ȭ",Ō:"Ō",Ṓ:"Ṓ",Ṑ:"Ṑ",Ŏ:"Ŏ",Ǒ:"Ǒ",Ô:"Ô",Ố:"Ố",Ồ:"Ồ",Ỗ:"Ỗ",Ȯ:"Ȯ",Ȱ:"Ȱ",Ő:"Ő",Ṕ:"Ṕ",Ṗ:"Ṗ",Ŕ:"Ŕ",Ř:"Ř",Ṙ:"Ṙ",Ŗ:"Ŗ",Ś:"Ś",Ṥ:"Ṥ",Š:"Š",Ṧ:"Ṧ",Ŝ:"Ŝ",Ṡ:"Ṡ",Ş:"Ş",Ť:"Ť",Ṫ:"Ṫ",Ţ:"Ţ",Ú:"Ú",Ù:"Ù",Ü:"Ü",Ǘ:"Ǘ",Ǜ:"Ǜ",Ǖ:"Ǖ",Ǚ:"Ǚ",Ũ:"Ũ",Ṹ:"Ṹ",Ū:"Ū",Ṻ:"Ṻ",Ŭ:"Ŭ",Ǔ:"Ǔ",Û:"Û",Ů:"Ů",Ű:"Ű",Ṽ:"Ṽ",Ẃ:"Ẃ",Ẁ:"Ẁ",Ẅ:"Ẅ",Ŵ:"Ŵ",Ẇ:"Ẇ",Ẍ:"Ẍ",Ẋ:"Ẋ",Ý:"Ý",Ỳ:"Ỳ",Ÿ:"Ÿ",Ỹ:"Ỹ",Ȳ:"Ȳ",Ŷ:"Ŷ",Ẏ:"Ẏ",Ź:"Ź",Ž:"Ž",Ẑ:"Ẑ",Ż:"Ż",ά:"ά",ὰ:"ὰ",ᾱ:"ᾱ",ᾰ:"ᾰ",έ:"έ",ὲ:"ὲ",ή:"ή",ὴ:"ὴ",ί:"ί",ὶ:"ὶ",ϊ:"ϊ",ΐ:"ΐ",ῒ:"ῒ",ῑ:"ῑ",ῐ:"ῐ",ό:"ό",ὸ:"ὸ",ύ:"ύ",ὺ:"ὺ",ϋ:"ϋ",ΰ:"ΰ",ῢ:"ῢ",ῡ:"ῡ",ῠ:"ῠ",ώ:"ώ",ὼ:"ὼ",Ύ:"Ύ",Ὺ:"Ὺ",Ϋ:"Ϋ",Ῡ:"Ῡ",Ῠ:"Ῠ",Ώ:"Ώ",Ὼ:"Ὼ"};class _x{constructor(t,n){this.mode=void 0,this.gullet=void 0,this.settings=void 0,this.leftrightDepth=void 0,this.nextToken=void 0,this.mode="math",this.gullet=new xSt(t,n,this.mode),this.settings=n,this.leftrightDepth=0}expect(t,n){if(n===void 0&&(n=!0),this.fetch().text!==t)throw new Ht("Expected '"+t+"', got '"+this.fetch().text+"'",this.fetch());n&&this.consume()}consume(){this.nextToken=null}fetch(){return this.nextToken==null&&(this.nextToken=this.gullet.expandNextToken()),this.nextToken}switchMode(t){this.mode=t,this.gullet.switchMode(t)}parse(){this.settings.globalGroup||this.gullet.beginGroup(),this.settings.colorIsTextColor&&this.gullet.macros.set("\\color","\\textcolor");try{var t=this.parseExpression(!1);return this.expect("EOF"),this.settings.globalGroup||this.gullet.endGroup(),t}finally{this.gullet.endGroups()}}subparse(t){var n=this.nextToken;this.consume(),this.gullet.pushToken(new Vf("}")),this.gullet.pushTokens(t);var r=this.parseExpression(!1);return this.expect("}"),this.nextToken=n,r}parseExpression(t,n){for(var r=[];;){this.mode==="math"&&this.consumeSpaces();var i=this.fetch();if(_x.endOfExpression.indexOf(i.text)!==-1||n&&i.text===n||t&&$m[i.text]&&$m[i.text].infix)break;var a=this.parseAtom(n);if(a){if(a.type==="internal")continue}else break;r.push(a)}return this.mode==="text"&&this.formLigatures(r),this.handleInfixNodes(r)}handleInfixNodes(t){for(var n=-1,r,i=0;i=0&&this.settings.reportNonstrict("unicodeTextInMathMode",'Latin-1/Unicode text character "'+n[0]+'" used in math mode',t);var o=Ii[this.mode][n].group,l=du.range(t),u;if(fOt.hasOwnProperty(o)){var c=o;u={type:"atom",mode:this.mode,family:c,loc:l,text:n}}else u={type:o,mode:this.mode,loc:l,text:n};s=u}else if(n.charCodeAt(0)>=128)this.settings.strict&&(hbe(n.charCodeAt(0))?this.mode==="math"&&this.settings.reportNonstrict("unicodeTextInMathMode",'Unicode text character "'+n[0]+'" used in math mode',t):this.settings.reportNonstrict("unknownSymbol",'Unrecognized Unicode character "'+n[0]+'"'+(" ("+n.charCodeAt(0)+")"),t)),s={type:"textord",mode:"text",loc:du.range(t),text:n};else return null;if(this.consume(),a)for(var f=0;f0&&(a.properties.rel=[...h]),g&&(a.properties.target=g),c){const S=YE(t.contentProperties,a)||{};a.children.push({type:"element",tagName:"span",properties:Hf(S),children:Hf(c)})}}}})}}function YE(e,t){return typeof e=="function"?e(t):e}const bre=/[#.]/g;function MSt(e,t){const n=e||"",r={};let i=0,a,s;for(;il&&(l=u):u&&(l!==void 0&&l>-1&&o.push(` -`.repeat(l)||" "),l=-1,o.push(u))}return o.join("")}function dye(e,t,n){return e.type==="element"?nEt(e,t,n):e.type==="text"?n.whitespace==="normal"?fye(e,n):rEt(e):[]}function nEt(e,t,n){const r=hye(e,n),i=e.children||[];let a=-1,s=[];if(eEt(e))return s;let o,l;for(b9(e)||xre(e)&&Ore(t,e,xre)?l=` -`:JSt(e)?(o=2,l=2):cye(e)&&(o=1,l=1);++at+" ").join(` -`)}function kre(){const e=DT(),t=Qr(A0),[n,r]=N.useState("");return N.useEffect(()=>{if(!t.doc)return;const i=()=>{var o,l;const s=((l=(o=t.doc)==null?void 0:o.getRoot().content)==null?void 0:l.toString())||"";r(y9(s))};i();const a=t.doc.subscribe("$.content",()=>{i()});return()=>{a(),r("")}},[t.doc]),t!=null&&t.doc?_.jsx(dbe,{source:y9(n),wrapperElement:{"data-color-mode":e,style:{whiteSpace:"wrap !important",WebkitUserModify:"read-only"}},remarkPlugins:[SEt],rehypePlugins:[cEt,[PSt,{target:"_blank"}]],components:{code:({children:i=[],className:a,...s})=>{if(typeof i=="string"&&/^\$\$(.*)\$\$/.test(i)){const l=O5.renderToString(i.replace(/^\$\$(.*)\$\$/,"$1"),{throwOnError:!1});return _.jsx("code",{dangerouslySetInnerHTML:{__html:l},style:{background:"transparent"}})}const o=s.node&&s.node.children?bQ(s.node.children):i;if(typeof o=="string"&&typeof a=="string"&&/^language-katex/.test(a.toLocaleLowerCase())){const l=O5.renderToString(o,{throwOnError:!1});return _.jsx("code",{style:{fontSize:"150%"},dangerouslySetInnerHTML:{__html:l}})}return _.jsx("code",{className:String(a),children:i})}}}):_.jsx(nr,{direction:"row",justifyContent:"center",children:_.jsx(wd,{sx:{mt:2}})})}function pye(){const e=Qr(A0),t=tJe();return!e.doc||!e.client?_.jsx(_1,{open:!0,children:_.jsx(wd,{color:"inherit"})}):_.jsxs(_.Fragment,{children:[_.jsx("div",{className:"wmde-markdown-var"}),e.mode==="both"&&_.jsx(GKe,{axis:"x",initial:t/2,min:400,children:({position:n,separatorProps:r})=>_.jsx(LL.ScrollSync,{children:_.jsxs("div",{id:"wrapper",style:{display:"flex",height:"100%",overflow:"hidden"},children:[_.jsx("div",{id:"left-block",style:{width:n},children:_.jsx(rte,{})}),_.jsx(hs,{id:"splitter",...r,sx:{height:"100%",width:8,borderRadius:0,cursor:"col-resize",zIndex:0}}),_.jsx(LL.ScrollSyncPane,{children:_.jsx("div",{className:"right-block",style:{width:`calc(100% - ${n}px)`,overflow:"auto"},children:_.jsx(Qa,{sx:{p:4},height:"100%",children:_.jsx(kre,{})})})})]})})}),e.mode==="read"&&_.jsx(Qa,{sx:{p:4,overflow:"auto"},height:"100%",children:_.jsx(kre,{})}),e.mode==="edit"&&_.jsx(rte,{})]})}var mye={exports:{}},EEt={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]},gye={exports:{}},wEt=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")},xEt=wEt,TEt=Array.prototype.concat,kEt=Array.prototype.slice,Cre=gye.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+")"};Su.to.keyword=function(e){return yye[e.slice(0,3)]};function Jm(e,t,n){return Math.min(Math.max(t,e),n)}function n4(e){var t=Math.round(e).toString(16).toUpperCase();return t.length<2?"0"+t:t}var AEt=mye.exports,_Et={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 Rx=_Et,vye={};for(const e of Object.keys(Rx))vye[Rx[e]]=e;const Cn={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 Oye=Cn;for(const e of Object.keys(Cn)){if(!("channels"in Cn[e]))throw new Error("missing channels property: "+e);if(!("labels"in Cn[e]))throw new Error("missing channel labels property: "+e);if(Cn[e].labels.length!==Cn[e].channels)throw new Error("channel and label counts mismatch: "+e);const{channels:t,labels:n}=Cn[e];delete Cn[e].channels,delete Cn[e].labels,Object.defineProperty(Cn[e],"channels",{value:t}),Object.defineProperty(Cn[e],"labels",{value:n})}Cn.rgb.hsl=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(t,n,r),a=Math.max(t,n,r),s=a-i;let o,l;a===i?o=0:t===a?o=(n-r)/s:n===a?o=2+(r-t)/s:r===a&&(o=4+(t-n)/s),o=Math.min(o*60,360),o<0&&(o+=360);const u=(i+a)/2;return a===i?l=0:u<=.5?l=s/(a+i):l=s/(2-a-i),[o,l*100,u*100]};Cn.rgb.hsv=function(e){let t,n,r,i,a;const s=e[0]/255,o=e[1]/255,l=e[2]/255,u=Math.max(s,o,l),c=u-Math.min(s,o,l),f=function(h){return(u-h)/6/c+1/2};return c===0?(i=0,a=0):(a=c/u,t=f(s),n=f(o),r=f(l),s===u?i=r-n:o===u?i=1/3+t-r:l===u&&(i=2/3+n-t),i<0?i+=1:i>1&&(i-=1)),[i*360,a*100,u*100]};Cn.rgb.hwb=function(e){const t=e[0],n=e[1];let r=e[2];const i=Cn.rgb.hsl(e)[0],a=1/255*Math.min(t,Math.min(n,r));return r=1-1/255*Math.max(t,Math.max(n,r)),[i,a*100,r*100]};Cn.rgb.cmyk=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.min(1-t,1-n,1-r),a=(1-t-i)/(1-i)||0,s=(1-n-i)/(1-i)||0,o=(1-r-i)/(1-i)||0;return[a*100,s*100,o*100,i*100]};function REt(e,t){return(e[0]-t[0])**2+(e[1]-t[1])**2+(e[2]-t[2])**2}Cn.rgb.keyword=function(e){const t=vye[e];if(t)return t;let n=1/0,r;for(const i of Object.keys(Rx)){const a=Rx[i],s=REt(e,a);s.04045?((t+.055)/1.055)**2.4:t/12.92,n=n>.04045?((n+.055)/1.055)**2.4:n/12.92,r=r>.04045?((r+.055)/1.055)**2.4:r/12.92;const i=t*.4124+n*.3576+r*.1805,a=t*.2126+n*.7152+r*.0722,s=t*.0193+n*.1192+r*.9505;return[i*100,a*100,s*100]};Cn.rgb.lab=function(e){const t=Cn.rgb.xyz(e);let n=t[0],r=t[1],i=t[2];n/=95.047,r/=100,i/=108.883,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116,i=i>.008856?i**(1/3):7.787*i+16/116;const a=116*r-16,s=500*(n-r),o=200*(r-i);return[a,s,o]};Cn.hsl.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;let i,a,s;if(n===0)return s=r*255,[s,s,s];r<.5?i=r*(1+n):i=r+n-r*n;const o=2*r-i,l=[0,0,0];for(let u=0;u<3;u++)a=t+1/3*-(u-1),a<0&&a++,a>1&&a--,6*a<1?s=o+(i-o)*6*a:2*a<1?s=i:3*a<2?s=o+(i-o)*(2/3-a)*6:s=o,l[u]=s*255;return l};Cn.hsl.hsv=function(e){const t=e[0];let n=e[1]/100,r=e[2]/100,i=n;const a=Math.max(r,.01);r*=2,n*=r<=1?r:2-r,i*=a<=1?a:2-a;const s=(r+n)/2,o=r===0?2*i/(a+i):2*n/(r+n);return[t,o*100,s*100]};Cn.hsv.rgb=function(e){const t=e[0]/60,n=e[1]/100;let r=e[2]/100;const i=Math.floor(t)%6,a=t-Math.floor(t),s=255*r*(1-n),o=255*r*(1-n*a),l=255*r*(1-n*(1-a));switch(r*=255,i){case 0:return[r,l,s];case 1:return[o,r,s];case 2:return[s,r,l];case 3:return[s,o,r];case 4:return[l,s,r];case 5:return[r,s,o]}};Cn.hsv.hsl=function(e){const t=e[0],n=e[1]/100,r=e[2]/100,i=Math.max(r,.01);let a,s;s=(2-n)*r;const o=(2-n)*i;return a=n*i,a/=o<=1?o:2-o,a=a||0,s/=2,[t,a*100,s*100]};Cn.hwb.rgb=function(e){const t=e[0]/360;let n=e[1]/100,r=e[2]/100;const i=n+r;let a;i>1&&(n/=i,r/=i);const s=Math.floor(6*t),o=1-r;a=6*t-s,s&1&&(a=1-a);const l=n+a*(o-n);let u,c,f;switch(s){default:case 6:case 0:u=o,c=l,f=n;break;case 1:u=l,c=o,f=n;break;case 2:u=n,c=o,f=l;break;case 3:u=n,c=l,f=o;break;case 4:u=l,c=n,f=o;break;case 5:u=o,c=n,f=l;break}return[u*255,c*255,f*255]};Cn.cmyk.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100,i=e[3]/100,a=1-Math.min(1,t*(1-i)+i),s=1-Math.min(1,n*(1-i)+i),o=1-Math.min(1,r*(1-i)+i);return[a*255,s*255,o*255]};Cn.xyz.rgb=function(e){const t=e[0]/100,n=e[1]/100,r=e[2]/100;let i,a,s;return i=t*3.2406+n*-1.5372+r*-.4986,a=t*-.9689+n*1.8758+r*.0415,s=t*.0557+n*-.204+r*1.057,i=i>.0031308?1.055*i**(1/2.4)-.055:i*12.92,a=a>.0031308?1.055*a**(1/2.4)-.055:a*12.92,s=s>.0031308?1.055*s**(1/2.4)-.055:s*12.92,i=Math.min(Math.max(0,i),1),a=Math.min(Math.max(0,a),1),s=Math.min(Math.max(0,s),1),[i*255,a*255,s*255]};Cn.xyz.lab=function(e){let t=e[0],n=e[1],r=e[2];t/=95.047,n/=100,r/=108.883,t=t>.008856?t**(1/3):7.787*t+16/116,n=n>.008856?n**(1/3):7.787*n+16/116,r=r>.008856?r**(1/3):7.787*r+16/116;const i=116*n-16,a=500*(t-n),s=200*(n-r);return[i,a,s]};Cn.lab.xyz=function(e){const t=e[0],n=e[1],r=e[2];let i,a,s;a=(t+16)/116,i=n/500+a,s=a-r/200;const o=a**3,l=i**3,u=s**3;return a=o>.008856?o:(a-16/116)/7.787,i=l>.008856?l:(i-16/116)/7.787,s=u>.008856?u:(s-16/116)/7.787,i*=95.047,a*=100,s*=108.883,[i,a,s]};Cn.lab.lch=function(e){const t=e[0],n=e[1],r=e[2];let i;i=Math.atan2(r,n)*360/2/Math.PI,i<0&&(i+=360);const s=Math.sqrt(n*n+r*r);return[t,s,i]};Cn.lch.lab=function(e){const t=e[0],n=e[1],i=e[2]/360*2*Math.PI,a=n*Math.cos(i),s=n*Math.sin(i);return[t,a,s]};Cn.rgb.ansi16=function(e,t=null){const[n,r,i]=e;let a=t===null?Cn.rgb.hsv(e)[2]:t;if(a=Math.round(a/50),a===0)return 30;let s=30+(Math.round(i/255)<<2|Math.round(r/255)<<1|Math.round(n/255));return a===2&&(s+=60),s};Cn.hsv.ansi16=function(e){return Cn.rgb.ansi16(Cn.hsv.rgb(e),e[2])};Cn.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)};Cn.ansi16.rgb=function(e){let t=e%10;if(t===0||t===7)return e>50&&(t+=3.5),t=t/10.5*255,[t,t,t];const n=(~~(e>50)+1)*.5,r=(t&1)*n*255,i=(t>>1&1)*n*255,a=(t>>2&1)*n*255;return[r,i,a]};Cn.ansi256.rgb=function(e){if(e>=232){const a=(e-232)*10+8;return[a,a,a]}e-=16;let t;const n=Math.floor(e/36)/5*255,r=Math.floor((t=e%36)/6)/5*255,i=t%6/5*255;return[n,r,i]};Cn.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};Cn.hex.rgb=function(e){const t=e.toString(16).match(/[a-f0-9]{6}|[a-f0-9]{3}/i);if(!t)return[0,0,0];let n=t[0];t[0].length===3&&(n=n.split("").map(o=>o+o).join(""));const r=parseInt(n,16),i=r>>16&255,a=r>>8&255,s=r&255;return[i,a,s]};Cn.rgb.hcg=function(e){const t=e[0]/255,n=e[1]/255,r=e[2]/255,i=Math.max(Math.max(t,n),r),a=Math.min(Math.min(t,n),r),s=i-a;let o,l;return s<1?o=a/(1-s):o=0,s<=0?l=0:i===t?l=(n-r)/s%6:i===n?l=2+(r-t)/s:l=4+(t-n)/s,l/=6,l%=1,[l*360,s*100,o*100]};Cn.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]};Cn.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]};Cn.hcg.rgb=function(e){const t=e[0]/360,n=e[1]/100,r=e[2]/100;if(n===0)return[r*255,r*255,r*255];const i=[0,0,0],a=t%1*6,s=a%1,o=1-s;let l=0;switch(Math.floor(a)){case 0:i[0]=1,i[1]=s,i[2]=0;break;case 1:i[0]=o,i[1]=1,i[2]=0;break;case 2:i[0]=0,i[1]=1,i[2]=s;break;case 3:i[0]=0,i[1]=o,i[2]=1;break;case 4:i[0]=s,i[1]=0,i[2]=1;break;default:i[0]=1,i[1]=0,i[2]=o}return l=(1-n)*r,[(n*i[0]+l)*255,(n*i[1]+l)*255,(n*i[2]+l)*255]};Cn.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]};Cn.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]};Cn.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]};Cn.hwb.hcg=function(e){const t=e[1]/100,r=1-e[2]/100,i=r-t;let a=0;return i<1&&(a=(r-i)/(1-i)),[e[0],i*100,a*100]};Cn.apple.rgb=function(e){return[e[0]/65535*255,e[1]/65535*255,e[2]/65535*255]};Cn.rgb.apple=function(e){return[e[0]/255*65535,e[1]/255*65535,e[2]/255*65535]};Cn.gray.rgb=function(e){return[e[0]/100*255,e[0]/100*255,e[0]/100*255]};Cn.gray.hsl=function(e){return[0,0,e[0]]};Cn.gray.hsv=Cn.gray.hsl;Cn.gray.hwb=function(e){return[0,100,e[0]]};Cn.gray.cmyk=function(e){return[0,0,0,e[0]]};Cn.gray.lab=function(e){return[e[0],0,0]};Cn.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};Cn.rgb.gray=function(e){return[(e[0]+e[1]+e[2])/3/255*100]};const S5=Oye;function IEt(){const e={},t=Object.keys(S5);for(let n=t.length,r=0;r1&&(n=r),e(n))};return"conversion"in e&&(t.conversion=e.conversion),t}function BEt(e){const t=function(...n){const r=n[0];if(r==null)return r;r.length>1&&(n=r);const i=e(n);if(typeof i=="object")for(let a=i.length,s=0;s{yy[e]={},Object.defineProperty(yy[e],"channels",{value:v9[e].channels}),Object.defineProperty(yy[e],"labels",{value:v9[e].labels});const t=LEt(e);Object.keys(t).forEach(r=>{const i=t[r];yy[e][r]=BEt(i),yy[e][r].raw=FEt(i)})});var UEt=yy;const vy=AEt,bu=UEt,Sye=["keyword","gray","hex"],O9={};for(const e of Object.keys(bu))O9[[...bu[e].labels].sort().join("")]=e;const E5={};function xs(e,t){if(!(this instanceof xs))return new xs(e,t);if(t&&t in Sye&&(t=null),t&&!(t in bu))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 xs)this.model=e.model,this.color=[...e.color],this.valpha=e.valpha;else if(typeof e=="string"){const i=vy.get(e);if(i===null)throw new Error("Unable to parse color from string: "+e);this.model=i.model,r=bu[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=bu[this.model].channels;const i=Array.prototype.slice.call(e,0,r);this.color=S9(i,r),this.valpha=typeof e[r]=="number"?e[r]:1}else if(typeof e=="number")this.model="rgb",this.color=[e>>16&255,e>>8&255,e&255],this.valpha=1;else{this.valpha=1;const i=Object.keys(e);"alpha"in e&&(i.splice(i.indexOf("alpha"),1),this.valpha=typeof e.alpha=="number"?e.alpha:0);const a=i.sort().join("");if(!(a in O9))throw new Error("Unable to parse color from object: "+JSON.stringify(e));this.model=O9[a];const{labels:s}=bu[this.model],o=[];for(n=0;n(e%360+360)%360),saturationl:ba("hsl",1,Xa(100)),lightness:ba("hsl",2,Xa(100)),saturationv:ba("hsv",1,Xa(100)),value:ba("hsv",2,Xa(100)),chroma:ba("hcg",1,Xa(100)),gray:ba("hcg",2,Xa(100)),white:ba("hwb",1,Xa(100)),wblack:ba("hwb",2,Xa(100)),cyan:ba("cmyk",0,Xa(100)),magenta:ba("cmyk",1,Xa(100)),yellow:ba("cmyk",2,Xa(100)),black:ba("cmyk",3,Xa(100)),x:ba("xyz",0,Xa(95.047)),y:ba("xyz",1,Xa(100)),z:ba("xyz",2,Xa(108.833)),l:ba("lab",0,Xa(100)),a:ba("lab",1),b:ba("lab",2),keyword(e){return e!==void 0?new xs(e):bu[this.model].keyword(this.color)},hex(e){return e!==void 0?new xs(e):vy.to.hex(this.rgb().round().color)},hexa(e){if(e!==void 0)return new xs(e);const t=this.rgb().round().color;let n=Math.round(this.valpha*255).toString(16).toUpperCase();return n.length===1&&(n="0"+n),vy.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 xs.rgb(t,t,t)},fade(e){return this.alpha(this.valpha-this.valpha*e)},opaquer(e){return this.alpha(this.valpha+this.valpha*e)},rotate(e){const t=this.hsl();let n=t.color[0];return n=(n+e)%360,n=n<0?360+n:n,t.color[0]=n,t},mix(e,t){if(!e||!e.rgb)throw new Error('Argument to "mix" was not a Color instance, but rather an instance of '+typeof e);const n=e.rgb(),r=this.rgb(),i=t===void 0?.5:t,a=2*i-1,s=n.alpha()-r.alpha(),o=((a*s===-1?a:(a+s)/(1+a*s))+1)/2,l=1-o;return xs.rgb(o*n.red()+l*r.red(),o*n.green()+l*r.green(),o*n.blue()+l*r.blue(),n.alpha()*i+r.alpha()*(1-i))}};for(const e of Object.keys(bu)){if(Sye.includes(e))continue;const{channels:t}=bu[e];xs.prototype[e]=function(...n){return this.model===e?new xs(this):n.length>0?new xs(n,e):new xs([...HEt(bu[this.model][e].raw(this.color)),this.valpha],e)},xs[e]=function(...n){let r=n[0];return typeof r=="number"&&(r=S9(n,t)),new xs(r,e)}}function zEt(e,t){return Number(e.toFixed(t))}function jEt(e){return function(t){return zEt(t,e)}}function ba(e,t,n){e=Array.isArray(e)?e:[e];for(const r of e)(E5[r]||(E5[r]=[]))[t]=n;return e=e[0],function(r){let i;return r!==void 0?(n&&(r=n(r)),i=this[e](),i.color[t]=r,i):(i=this[e]().color[t],n&&(i=n(i)),i)}}function Xa(e){return function(t){return Math.max(0,Math.min(e,t))}}function HEt(e){return Array.isArray(e)?e:[e]}function S9(e,t){for(let n=0;nV.length;){var Q=a(D);n!==null&&(D.seed=n),V.push(Q)}return D.count=W,V}return B=s(D),L=o(B,D),F=l(B,L,D),u([B,L,F],D)};function s(D){if(i.length>0){var B=A(D.hue),L=b(B),F=(B[1]-B[0])/i.length,W=parseInt((L-B[0])/F);i[W]===!0?W=(W+2)%i.length:i[W]=!0;var V=(B[0]+W*F)%359,Z=(B[0]+(W+1)*F)%359;return B=[V,Z],L=b(B),L<0&&(L=360+L),L}else{var B=f(D.hue);return L=b(B),L<0&&(L=360+L),L}}function o(D,B){if(B.hue==="monochrome")return 0;if(B.luminosity==="random")return b([0,100]);var L=h(D),F=L[0],W=L[1];switch(B.luminosity){case"bright":F=55;break;case"dark":F=W-10;break;case"light":W=55;break}return b([F,W])}function l(D,B,L){var F=c(D,B),W=100;switch(L.luminosity){case"dark":W=F+20;break;case"light":F=(W+F)/2;break;case"random":F=0,W=100;break}return b([F,W])}function u(D,B){switch(B.format){case"hsvArray":return D;case"hslArray":return C(D);case"hsl":var L=C(D);return"hsl("+L[0]+", "+L[1]+"%, "+L[2]+"%)";case"hsla":var F=C(D),Z=B.alpha||Math.random();return"hsla("+F[0]+", "+F[1]+"%, "+F[2]+"%, "+Z+")";case"rgbArray":return x(D);case"rgb":var W=x(D);return"rgb("+W.join(", ")+")";case"rgba":var V=x(D),Z=B.alpha||Math.random();return"rgba("+V.join(", ")+", "+Z+")";default:return S(D)}}function c(D,B){for(var L=g(D).lowerBounds,F=0;F=W&&B<=Z){var H=(Q-V)/(Z-W),J=V-H*W;return H*B+J}}return 0}function f(D){if(typeof parseInt(D)=="number"){var B=parseInt(D);if(B<360&&B>0)return[B,B]}if(typeof D=="string"){if(r[D]){var L=r[D];if(L.hueRange)return L.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(D)[0];return[F,F]}}return[0,360]}function h(D){return g(D).saturationRange}function g(D){D>=334&&D<=360&&(D-=360);for(var B in r){var L=r[B];if(L.hueRange&&D>=L.hueRange[0]&&D<=L.hueRange[1])return r[B]}return"Color not found"}function b(D){if(n===null){var B=.618033988749895,L=Math.random();return L+=B,L%=1,Math.floor(D[0]+L*(D[1]+1-D[0]))}else{var F=D[1]||1,W=D[0]||0;n=(n*9301+49297)%233280;var V=n/233280;return Math.floor(W+V*(F-W))}}function S(D){var B=x(D);function L(W){var V=W.toString(16);return V.length==1?"0"+V:V}var F="#"+L(B[0])+L(B[1])+L(B[2]);return F}function w(D,B,L){var F=L[0][0],W=L[L.length-1][0],V=L[L.length-1][1],Z=L[0][1];r[D]={hueRange:B,lowerBounds:L,saturationRange:[F,W],brightnessRange:[V,Z]}}function E(){w("monochrome",null,[[0,0],[100,0]]),w("red",[-26,18],[[20,100],[30,92],[40,89],[50,85],[60,78],[70,70],[80,60],[90,55],[100,50]]),w("orange",[18,46],[[20,100],[30,93],[40,88],[50,86],[60,85],[70,70],[100,70]]),w("yellow",[46,62],[[25,100],[40,94],[50,89],[60,86],[70,84],[80,82],[90,80],[100,75]]),w("green",[62,178],[[30,100],[40,90],[50,85],[60,81],[70,74],[80,64],[90,50],[100,40]]),w("blue",[178,257],[[20,100],[30,86],[40,80],[50,74],[60,60],[70,52],[80,44],[90,39],[100,35]]),w("purple",[257,282],[[20,100],[30,87],[40,79],[50,70],[60,65],[70,59],[80,52],[90,45],[100,42]]),w("pink",[282,334],[[20,100],[30,90],[40,86],[60,84],[80,80],[90,75],[100,73]])}function x(D){var B=D[0];B===0&&(B=1),B===360&&(B=359),B=B/360;var L=D[1]/100,F=D[2]/100,W=Math.floor(B*6),V=B*6-W,Z=F*(1-L),Q=F*(1-V*L),H=F*(1-(1-V)*L),J=256,K=256,X=256;switch(W){case 0:J=F,K=H,X=Z;break;case 1:J=Q,K=F,X=Z;break;case 2:J=Z,K=F,X=H;break;case 3:J=Z,K=Q,X=F;break;case 4:J=H,K=Z,X=F;break;case 5:J=F,K=Z,X=Q;break}var te=[Math.floor(J*255),Math.floor(K*255),Math.floor(X*255)];return te}function k(D){D=D.replace(/^#/,""),D=D.length===3?D.replace(/(.)/g,"$1$1"):D;var B=parseInt(D.substr(0,2),16)/255,L=parseInt(D.substr(2,2),16)/255,F=parseInt(D.substr(4,2),16)/255,W=Math.max(B,L,F),V=W-Math.min(B,L,F),Z=W?V/W:0;switch(W){case B:return[60*((L-F)/V%6)||0,Z,W];case L:return[60*((F-B)/V+2)||0,Z,W];case F:return[60*((B-L)/V+4)||0,Z,W]}}function C(D){var B=D[0],L=D[1]/100,F=D[2]/100,W=(2-L)*F;return[B,Math.round(L*F/(W<1?W:2-W)*1e4)/100,W/2*100]}function I(D){for(var B=0,L=0;L!==D.length&&!(B>=Number.MAX_SAFE_INTEGER);L++)B+=D.charCodeAt(L);return B}function A(D){if(isNaN(D)){if(typeof D=="string"){if(r[D]){var L=r[D];if(L.hueRange)return L.hueRange}else if(D.match(/^#?([0-9A-F]{3}|[0-9A-F]{6})$/i)){var F=k(D)[0];return g(F).hueRange}}}else{var B=parseInt(D);if(B<360&&B>0)return g(D).hueRange}return[0,360]}return a})})(E9,E9.exports);var QEt=E9.exports;const qEt=_d(QEt);i5.setLogLevel(4);const Eye=(e,t)=>{const[n]=MF(),r=Qr(NT),[i,a]=N.useState(null),[s,o]=N.useState(null),l=N.useCallback(async()=>{!i||!s||(await(i==null?void 0:i.detach(s)),await(i==null?void 0:i.deactivate()))},[i,s]);return N.useEffect(()=>{let u=!0;if(!e||!t||s||i)return;let c=`default:${r.accessToken}`;return n.get("token")&&(c=`share:${n.get("token")}`),(async()=>{const h=new i5.Client("https://api.yorkie.dev",{apiKey:"cbovg64qfu96agb5i0fg",token:c});await h.activate();const g=new i5.Document(e,{enableDevtools:!0});if(await h.attach(g,{initialPresence:{name:t,color:WEt(qEt()).fade(.15).toString(),selection:null}}),!u){await h.detach(g),await h.deactivate();return}a(h),o(g)})(),()=>{u=!1}},[t,e,s,i,r.accessToken,n]),N.useEffect(()=>()=>{l()},[l]),{client:i,doc:s}};var b6={exports:{}},wye={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ả:"A",Ạ:"A",Ẩ:"A",Ẫ:"A",Ậ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ẻ:"E",Ẽ:"E",Ẹ:"E",Ể:"E",Ễ:"E",Ệ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ỉ:"I",Ị:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ỏ:"O",Ọ:"O",Ổ:"O",Ỗ:"O",Ộ:"O",Ờ:"O",Ở:"O",Ỡ:"O",Ớ:"O",Ợ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ủ:"U",Ụ:"U",Ử:"U",Ữ:"U",Ự:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ả:"a",ạ:"a",ẩ:"a",ẫ:"a",ậ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ẻ:"e",ẽ:"e",ẹ:"e",ể:"e",ễ:"e",ệ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ỉ:"i",ị:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ỏ:"o",ọ:"o",ổ:"o",ỗ:"o",ộ:"o",ờ:"o",ở:"o",ỡ:"o",ớ:"o",ợ:"o",ù:"u",ú:"u",û:"u",ü:"u",ủ:"u",ụ:"u",ử:"u",ữ:"u",ự:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},xye=Object.keys(wye).join("|"),GEt=new RegExp(xye,"g"),YEt=new RegExp(xye,"");function ZEt(e){return wye[e]}var Tye=function(e){return e.replace(GEt,ZEt)},XEt=function(e){return!!e.match(YEt)};b6.exports=Tye;b6.exports.has=XEt;b6.exports.remove=Tye;var KEt=b6.exports;const JEt=_d(KEt);/** - * @name match-sorter - * @license MIT license. - * @copyright (c) 2020 Kent C. Dodds - * @author Kent C. Dodds (https://kentcdodds.com) - */const Ho={CASE_SENSITIVE_EQUAL:7,EQUAL:6,STARTS_WITH:5,WORD_STARTS_WITH:4,CONTAINS:3,ACRONYM:2,MATCHES:1,NO_MATCH:0},e2t=(e,t)=>String(e.rankedValue).localeCompare(String(t.rankedValue));function kye(e,t,n){n===void 0&&(n={});const{keys:r,threshold:i=Ho.MATCHES,baseSort:a=e2t,sorter:s=u=>u.sort((c,f)=>i2t(c,f,a))}=n,o=e.reduce(l,[]);return s(o).map(u=>{let{item:c}=u;return c});function l(u,c,f){const h=t2t(c,r,t,n),{rank:g,keyThreshold:b=i}=h;return g>=b&&u.push({...h,item:c,index:f}),u}}kye.rankings=Ho;function t2t(e,t,n,r){if(!t){const a=e;return{rankedValue:a,rank:Are(a,n,r),keyIndex:-1,keyThreshold:r.threshold}}return o2t(e,t).reduce((a,s,o)=>{let{rank:l,rankedValue:u,keyIndex:c,keyThreshold:f}=a,{itemValue:h,attributes:g}=s,b=Are(h,n,r),S=u;const{minRanking:w,maxRanking:E,threshold:x}=g;return b=Ho.MATCHES?b=w:b>E&&(b=E),b>l&&(l=b,c=o,f=x,S=h),{rankedValue:S,rank:l,keyIndex:c,keyThreshold:f}},{rankedValue:e,rank:Ho.NO_MATCH,keyIndex:-1,keyThreshold:r.threshold})}function Are(e,t,n){return e=_re(e,n),t=_re(t,n),t.length>e.length?Ho.NO_MATCH:e===t?Ho.CASE_SENSITIVE_EQUAL:(e=e.toLowerCase(),t=t.toLowerCase(),e===t?Ho.EQUAL:e.startsWith(t)?Ho.STARTS_WITH:e.includes(` ${t}`)?Ho.WORD_STARTS_WITH:e.includes(t)?Ho.CONTAINS:t.length===1?Ho.NO_MATCH:n2t(e).includes(t)?Ho.ACRONYM:r2t(e,t))}function n2t(e){let t="";return e.split(" ").forEach(r=>{r.split("-").forEach(a=>{t+=a.substr(0,1)})}),t}function r2t(e,t){let n=0,r=0;function i(l,u,c){for(let f=c,h=u.length;f-1))return Ho.NO_MATCH}const o=r-s;return a(o)}function i2t(e,t,n){const{rank:a,keyIndex:s}=e,{rank:o,keyIndex:l}=t;return a===o?s===l?n(e,t):so?-1:1}function _re(e,t){let{keepDiacritics:n}=t;return e=`${e}`,n||(e=JEt(e)),e}function a2t(e,t){typeof t=="object"&&(t=t.key);let n;if(typeof t=="function")n=t(e);else if(e==null)n=null;else if(Object.hasOwn(e,t))n=e[t];else{if(t.includes("."))return s2t(t,e);n=null}return n==null?[]:Array.isArray(n)?n:[String(n)]}function s2t(e,t){const n=e.split(".");let r=[t];for(let i=0,a=n.length;i{var l;return kye(((l=n.yorkieIntelligence)==null?void 0:l.config.features)??[],r,{keys:["title","feature"]})},[r,(o=n.yorkieIntelligence)==null?void 0:o.config.features]),s=l=>{i(l.target.value)};return _.jsxs(nr,{children:[_.jsx(T0,{placeholder:"Choose from below",size:"small",sx:{width:1},value:r,onChange:s}),_.jsx(IO,{children:a.map(l=>_.jsxs(xu,{onClick:()=>t(l.feature,l.title),children:[_.jsx(nv,{children:_.jsx(MNe,{children:_.jsx("img",{src:l.icon,alt:l.title})})}),_.jsx(Bf,{children:l.title})]},l.feature))})]})}var UQ={},c2t=Ji;Object.defineProperty(UQ,"__esModule",{value:!0});var Cye=UQ.default=void 0,d2t=c2t(ea()),f2t=_;Cye=UQ.default=(0,d2t.default)((0,f2t.jsx)("path",{d:"M17.65 6.35C16.2 4.9 14.21 4 12 4c-4.42 0-7.99 3.58-7.99 8s3.57 8 7.99 8c3.73 0 6.84-2.55 7.73-6h-2.08c-.82 2.33-3.04 4-5.65 4-3.31 0-6-2.69-6-6s2.69-6 6-6c1.66 0 3.14.69 4.22 1.78L13 11h7V4z"}),"Refresh");var zQ={},h2t=Ji;Object.defineProperty(zQ,"__esModule",{value:!0});var Aye=zQ.default=void 0,p2t=h2t(ea()),m2t=_;Aye=zQ.default=(0,p2t.default)((0,m2t.jsx)("path",{d:"M2.01 21 23 12 2.01 3 2 10l15 2-15 2z"}),"Send");const g2t=e=>{var h;const t=Qr(NT),n=Qr(JR),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(!1),[u,c]=N.useState(!1),f=N.useCallback(async g=>{var x,k;l(!0),c(!1),s(null),i(null);const S=(k=(await fetch(`https://codepair-api.yorkie.dev/intelligence/${e}`,{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(x=n.data)==null?void 0:x.id,content:g})})).body)==null?void 0:k.getReader();let w=!0,E="";for(;S;){const{done:C,value:I}=await S.read();if(l(!1),C)break;let A=new TextDecoder().decode(I);if(w){const D=A.split(` -`);s(D[0]),w=!1,A=D.slice(1).join(` -`)}E+=A,i(E)}c(!0)},[t.accessToken,(h=n.data)==null?void 0:h.id,e]);return{data:r,memoryKey:a,isLoading:o,isComplete:u,mutateAsync:f}},b2t=e=>{var c;const t=Qr(NT),n=Qr(JR),[r,i]=N.useState(null),[a,s]=N.useState(!1),[o,l]=N.useState(!1),u=N.useCallback(async f=>{var S,w;if(!e)return;s(!0),l(!1),i(null);const g=(w=(await fetch("https://codepair-api.yorkie.dev/intelligence",{method:"POST",headers:{Authorization:`Bearer ${t.accessToken}`,"Content-Type":"application/json"},body:JSON.stringify({documentId:(S=n.data)==null?void 0:S.id,memoryKey:e,content:f})})).body)==null?void 0:w.getReader();let b="";for(;g;){const{done:E,value:x}=await g.read();if(s(!1),E)break;const k=new TextDecoder().decode(x);b+=k,i(b)}l(!0)},[t.accessToken,(c=n.data)==null?void 0:c.id,e]);return{data:r,memoryKey:e,isLoading:a,isComplete:o,mutateAsync:u}};function y2t(e){const{title:t,feature:n,onClose:r}=e,i=Ni(),a=DT(),s=Qr(A0),{data:o,memoryKey:l,isLoading:u,isComplete:c,mutateAsync:f}=g2t(n),{data:h,isLoading:g,isComplete:b,mutateAsync:S}=b2t(l),[w,E]=N.useState(""),x=document.getElementById(oz),k=N.useMemo(()=>u||g,[u,g]),C=N.useMemo(()=>c||b,[c,b]),I=N.useMemo(()=>h||o,[o,h]),{enqueueSnackbar:A}=vT(),D=N.useRef(null),B=Tce(),{reset:L,formState:F}=B;N.useEffect(()=>{F.isSubmitSuccessful&&L({content:""})},[F.isSubmitSuccessful,L]),N.useEffect(()=>{E((x==null?void 0:x.getAttribute("content"))??"")},[x]),N.useEffect(()=>{w&&f(w)},[w,f]),N.useEffect(()=>{I&&D.current&&D.current.scrollTo({behavior:"smooth",top:D.current.scrollHeight})},[I]);const W=async()=>{I&&(await P1.write(I),A("URL Copied!",{variant:"success"}))},V=async()=>{S("Recreate the last statement with a paraphrase or adjust it slightly to better suit the user's input.")},Z=H=>{S(H.content)},Q=(H=!1)=>{var be,ee;if(!s.cmView)return;const J=s.cmView.state.selection.main;let K=Math.min(J.to,J.from);const X=Math.max(J.to,J.from);let te=I;H||(K=X,te=` -${te}`);const z=H?K:K+1,Te=K+te.length;(be=s.doc)==null||be.update((ye,Oe)=>{ye.content.edit(K,X,te),Oe.set({selection:ye.content.indexRangeToPosRange([z,Te])})}),(ee=s.cmView)==null||ee.dispatch({changes:{from:K,to:X,insert:te},selection:{anchor:z,head:Te}}),r()};return _.jsxs(nr,{gap:4,children:[_.jsx(Qa,{bgcolor:i.palette.background.paper,p:1,borderRadius:2,border:1,children:_.jsx(ur,{children:t})}),k&&_.jsx(wd,{sx:{marginX:"auto"}}),_.jsx(Qa,{ref:D,sx:{height:350,overflow:"auto"},children:!k&&_.jsx(dbe,{source:y9(I||""),wrapperElement:{"data-color-mode":a}})}),_.jsxs(nr,{gap:2,children:[_.jsx(ap,{in:C,children:_.jsxs(nr,{direction:"row",justifyContent:"flex-end",gap:1,children:[_.jsx(ss,{variant:"outlined",onClick:V,children:_.jsx(Cye,{fontSize:"small"})}),_.jsx(ss,{variant:"outlined",onClick:W,children:_.jsx(vI,{fontSize:"small"})}),_.jsx(ss,{variant:"outlined",onClick:()=>Q(),children:"Insert below"}),_.jsx(ss,{variant:"contained",onClick:()=>Q(!0),children:"Replace"})]})}),_.jsx(Lc,{children:_.jsx(FO,{defaultValues:{content:""},formContext:B,onSuccess:Z,children:_.jsx(nr,{gap:4,alignItems:"flex-end",children:_.jsx(CT,{variant:"outlined",name:"content",placeholder:"Tell Yorkie what to do next",required:!0,fullWidth:!0,disabled:!C,size:"small",InputProps:{startAdornment:_.jsx(Fw,{position:"start",children:_.jsx("img",{src:"/yorkie.png",height:20})}),endAdornment:_.jsx(ap,{in:C,children:_.jsx(Fw,{position:"end",children:_.jsx(Vi,{type:"submit",edge:"end",children:_.jsx(Aye,{})})})})}})})})})]})]})}function v2t(e){const{onCloseIntelligence:t,...n}=e,r=()=>{var a;(a=n==null?void 0:n.onClose)==null||a.call(n,new Event("Close Modal"),"escapeKeyDown")},i=()=>{t(),r()};return _.jsx(x0,{disableAutoFocus:!0,...n,children:_.jsx(hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4},children:_.jsxs(nr,{gap:4,children:[_.jsxs(nr,{alignItems:"center",gap:1,children:[_.jsx("img",{src:"/yorkie.png",alt:"yorkie",width:60}),_.jsxs(ur,{variant:"h6",align:"center",children:["Do you want to discard",_.jsx("br",{}),"the Yorkie response?"]})]}),_.jsxs(nr,{direction:"row",gap:1,justifyContent:"center",children:[_.jsx(ss,{variant:"outlined",onClick:i,children:"Discard"}),_.jsx(ss,{variant:"contained",onClick:r,children:"Cancel"})]})]})})})}function O2t(e){const{onClose:t}=e,n=Ni(),r=Qr(A0),i=N.useRef(null),[a,s]=N.useState(null),[o,l]=N.useState(null),[u,c]=N.useState(),[f,h]=N.useState(!1),g=N.useRef(null),b=N.useMemo(()=>r.cmView.contentDOM.getBoundingClientRect().width-12,[r.cmView]);N.useEffect(()=>{if(i.current)return c(i.current),()=>{c(void 0)}},[]);const S=(E,x)=>{l(E),s(x)},w=()=>{h(E=>!E)};return _.jsxs(Qa,{sx:{position:"absolute",mt:1},children:[_.jsx("span",{ref:i,style:{marginTop:4}}),_.jsx(DO,{open:!!u,anchorEl:u,anchorOrigin:{vertical:"bottom",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"left"},onClose:w,children:_.jsx(OF,{ref:g,sx:{boxShadow:n.shadows[11],borderRadius:2,width:b,padding:2},children:o&&a?_.jsx(y2t,{title:a,feature:o,onClose:t}):_.jsx(u2t,{onSelectFeature:S})})}),_.jsx(v2t,{open:f,onCloseIntelligence:t,onClose:w})]})}function S2t(){const e=Ni(),[t,n]=N.useState(!1),[r,i]=N.useState(null),[a,s]=N.useState(null),[o,l]=N.useState(null);KR(()=>{l(r)},500,[r]),N.useEffect(()=>{document.addEventListener("selectionchange",function(){const c=document.getElementById(Y0e),f=document.getElementById(oz);i(c),s(f),c||(n(!1),l(null))})},[]);const u=()=>{n(c=>!c)};if(!(!o||!a))return _.jsxs(_.Fragment,{children:[_.jsx(AO,{open:!!o,anchorEl:o,placement:"top-start",transition:!0,children:({TransitionProps:c})=>_.jsx(ap,{...c,children:_.jsx(OF,{sx:{boxShadow:e.shadows[11],borderRadius:2,mb:1},children:_.jsx(ele,{sx:{paddingX:1.3,paddingY:.3},onClick:u,children:_.jsxs(nr,{direction:"row",alignItems:"center",gap:1,children:[_.jsx("img",{src:"/yorkie.png",height:20}),_.jsx(ur,{variant:"subtitle1",children:"Yorkie Intelligence"})]})})})})}),t&&A1.createPortal(_.jsx(O2t,{onClose:u}),a)]})}function E2t(){var c,f;const e=Pu(),t=C0(),n=Qr(bT),r=Qr(MI),{data:i,isLoading:a}=dU(t.workspaceSlug),{data:s,isLoading:o}=AXe(i==null?void 0:i.id,t.documentId),{doc:l,client:u}=Eye(s==null?void 0:s.yorkieDocumentId,(c=n.data)==null?void 0:c.nickname);return N.useEffect(()=>{if(!(!l||!u))return e(c3(l)),e(d3(u)),()=>{e(c3(null)),e(d3(null))}},[e,u,l]),o||a?_.jsx(_1,{open:!0,children:_.jsx(wd,{color:"inherit"})}):_.jsxs(Qa,{height:"calc(100% - 64px)",children:[_.jsx(pye,{}),((f=r.yorkieIntelligence)==null?void 0:f.enable)&&_.jsx(S2t,{})]})}const w2t=e=>["documents","share",e],x2t=e=>{const t=Pu(),n=MO({queryKey:w2t(e||""),enabled:!!e,queryFn:async()=>(await yr.get("/documents/share",{params:{token:e}})).data,meta:{errorMessage:"This is a non-existent or expired document."}});return N.useEffect(()=>(n.data&&t(f3(n.data)),()=>{t(f3(null))}),[t,n.data]),n};function T2t(){const e=Pu(),t=k0(),[n]=MF(),r=N.useMemo(()=>n.get("token"),[n]),{data:i}=x2t(r),{doc:a,client:s}=Eye(i==null?void 0:i.yorkieDocumentId,"Anonymous");return N.useEffect(()=>{i!=null&&i.role&&(e(dUe(i.role)),i.role==="READ"&&e(eM("read")))},[e,i==null?void 0:i.role]),N.useEffect(()=>{if(!(!a||!s))return e(c3(a)),e(d3(s)),()=>{e(c3(null)),e(d3(null))}},[e,s,a]),r?_.jsx(Qa,{height:"calc(100% - 64px)",children:_.jsx(pye,{})}):_.jsx(PF,{to:"/",state:{from:t},replace:!0})}function k2t(){const e=C0(),t=Mu(),{mutateAsync:n}=SKe();return N.useEffect(()=>{e.invitationToken&&n({invitationToken:e.invitationToken}).then(r=>{t(`/${r.slug}`)})},[n,t,e.invitationToken]),_.jsx(_1,{open:!0,children:_.jsx(wd,{color:"inherit"})})}const C2t=e=>["workspaces",e,"users"],A2t=e=>nB({queryKey:C2t(e||""),queryFn:async({pageParam:t})=>(await yr.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 _2t(e){var c;const{open:t,onClose:n}=e,r=Qr(yT),{mutateAsync:i}=OKe(((c=r.data)==null?void 0:c.id)||""),{enqueueSnackbar:a}=vT(),[s,o]=N.useState(null),l=async f=>{let h;if(f.expiredString===sv[0])h=null;else{const[b,S]=f.expiredString.split(" ");h=un().add(Number(b),S).toDate()}const{invitationToken:g}=await i({expiredAt:h});o(`${window.location.origin}/join/${g}`)},u=async()=>{s&&(await P1.write(s),a("URL Copied!",{variant:"success"}))};return _.jsx(x0,{open:t,disableAutoFocus:!0,onClose:n,children:_.jsxs(hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:538},children:[_.jsx(Vi,{sx:{position:"absolute",top:28,right:28},onClick:n,children:_.jsx(OI,{})}),_.jsxs(nr,{gap:4,children:[_.jsxs(nr,{children:[_.jsx(ur,{variant:"h5",fontWeight:"bold",children:"Add Members"}),_.jsx(ur,{children:"Generate and share the link."})]}),_.jsx(nr,{gap:1,children:_.jsx(Lc,{children:_.jsx(FO,{defaultValues:{expiredString:sv[0]},onSuccess:l,children:_.jsxs(nr,{gap:2,children:[_.jsx(SM,{label:"Expired Date",name:"expiredString",options:sv.map(f=>({id:f,label:f})),size:"small",sx:{width:1}}),_.jsx(ss,{type:"submit",variant:"contained",children:"Generate"})]})})})}),_.jsxs(nr,{gap:1,children:[_.jsx(ur,{variant:"h6",fontWeight:"bold",children:"Invite Link"}),_.jsx(Qa,{height:40,children:s?_.jsxs(nr,{direction:"row",alignItems:"center",gap:2,children:[_.jsx(ur,{variant:"body1",children:s}),_.jsx(Rm,{title:"Copy URL",children:_.jsx(Vi,{onClick:u,children:_.jsx(vI,{})})})]}):_.jsx(ur,{mx:"auto",children:"No link has been generated."})})]})]})]})})}function R2t(){const e=C0(),{data:t}=dU(e.workspaceSlug),{data:n,fetchNextPage:r,hasNextPage:i}=A2t(t==null?void 0:t.id),[a,s]=N.useState(!1),o=N.useMemo(()=>(n==null?void 0:n.pages.reduce((u,c)=>u.concat(c.workspaceUsers),[]))??[],[n==null?void 0:n.pages]),l=()=>{s(u=>!u)};return _.jsxs(EF,{maxWidth:"lg",children:[_.jsxs(nr,{gap:4,children:[_.jsxs(nr,{direction:"row",justifyContent:"space-between",alignItems:"center",px:2,children:[_.jsxs(ur,{variant:"h5",fontWeight:"bold",children:[t==null?void 0:t.title," ",_.jsx(ur,{component:"span",variant:"inherit",color:"primary",children:n==null?void 0:n.pages[0].workspaceUsers.length})]}),_.jsx(ss,{variant:"contained",startIcon:_.jsx(SI,{}),onClick:l,children:"Add Members"})]}),_.jsxs(EMe,{component:Qa,children:[_.jsx(h1,{}),_.jsx(tx,{pageStart:0,loadMore:()=>r(),hasMore:i,loader:_.jsx(Qa,{className:"loader",children:_.jsx(wd,{size:"sm"})},0),useWindow:!1,style:{width:"100%"},children:_.jsxs(tMe,{children:[_.jsx(_Me,{children:_.jsxs(BZ,{children:[_.jsx(Xb,{children:"Name"}),_.jsx(Xb,{children:"Role"}),_.jsx(Xb,{})]})}),_.jsx(uMe,{style:{maxHeight:"100%",overflow:"auto"},children:o.map(u=>_.jsxs(BZ,{sx:{width:"100%"},children:[_.jsx(Xb,{component:"th",scope:"row",children:u.nickname}),_.jsx(Xb,{children:"-"}),_.jsx(Xb,{children:"-"})]},u.id))})]})})]})]}),_.jsx(_2t,{open:a,onClose:l})]})}const I2t=()=>{const e=Mu(),t=()=>{e("/")};return _.jsxs(Qa,{sx:{display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"center",height:"100vh",width:"100vw",textAlign:"center",bgcolor:"background.default",color:"text.primary",p:3},children:[_.jsx(ur,{variant:"h1",component:"h1",gutterBottom:!0,children:"404"}),_.jsx(ur,{variant:"h5",component:"p",gutterBottom:!0,children:"Page Not Found"}),_.jsx(ur,{variant:"body1",component:"p",gutterBottom:!0,children:"The page you are looking for does not exist."}),_.jsx(ss,{variant:"contained",color:"primary",onClick:t,sx:{mt:2},children:"Go to Home"})]})},_ye=e=>["users",e],D2t=()=>{const e=Pu(),t=Qr(NT);t.accessToken&&(yr.defaults.headers.common.Authorization=`Bearer ${t.accessToken}`);const n=MO({queryKey:_ye(t.accessToken||""),enabled:!!t.accessToken,queryFn:async()=>(await yr.get("/users")).data});return N.useEffect(()=>{n.isSuccess?e(J8(n.data)):n.isError&&(e(aU(null)),e(J8(null)),yr.defaults.headers.common.Authorization="")},[e,n.data,n.isError,n.isSuccess]),n},Rye=()=>{const e=Qr(NT),t=OT();return Ep({mutationFn:async n=>(await yr.put("/users",n)).data,onSuccess:()=>{t.invalidateQueries({queryKey:_ye(e.accessToken||"")})}})},T7=117;function N2t(){var f,h,g,b,S,w,E,x;const e=Qr(bT),[t,n]=N.useState(((f=e.data)==null?void 0:f.nickname)||""),[r,i]=N.useState(""),{data:a}=pU(r),{mutateAsync:s}=Rye(),o=N.useMemo(()=>{var k;return r!=((k=e.data)==null?void 0:k.nickname)&&(a!=null&&a.conflict)?"Already Exists":null},[a==null?void 0:a.conflict,r,(h=e.data)==null?void 0:h.nickname]),l=N.useMemo(()=>{var k;return!!o||t===((k=e.data)==null?void 0:k.nickname)||t.length===0},[o,t,(g=e.data)==null?void 0:g.nickname]);KR(()=>{i(t)},500,[t]),N.useEffect(()=>{var k,C;(k=e.data)!=null&&k.nickname&&n(((C=e.data)==null?void 0:C.nickname)||"")},[(b=e.data)==null?void 0:b.nickname]);const u=k=>{n(k.target.value)},c=async k=>{await s(k)};return _.jsx(EF,{sx:{height:"calc(100vh - 88px)",width:"100%"},children:_.jsxs(nr,{alignItems:"center",justifyContent:"center",gap:6,sx:{height:1},children:[_.jsx(n1,{sx:{width:T7,height:T7,fontSize:T7/2},children:(w=(S=e.data)==null?void 0:S.nickname)==null?void 0:w.charAt(0).toUpperCase()}),_.jsx(nr,{width:310,children:_.jsxs(Lc,{children:[_.jsx(ur,{variant:"body1",children:"User name"}),((E=e.data)==null?void 0:E.nickname)&&_.jsx(FO,{defaultValues:{nickname:(x=e.data)==null?void 0:x.nickname},onSuccess:c,children:_.jsxs(nr,{gap:3,children:[_.jsx(CT,{variant:"standard",name:"nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:u,error:!!o,helperText:o}),_.jsx(ss,{type:"submit",variant:"contained",size:"large",disabled:l,children:"Save"})]})})]})})]})})}function P2t(){var o,l;const e=Mu(),t=Qr(bT),[n,r]=N.useState(null),i=u=>{r(u.currentTarget)},a=()=>{r(null)},s=()=>{var u;e(`/${(u=t.data)==null?void 0:u.lastWorkspaceSlug}`)};return _.jsxs(kfe,{position:"fixed",children:[_.jsx(CF,{children:_.jsxs(nr,{width:"100%",direction:"row-reverse",justifyContent:"space-between",alignItems:"center",children:[_.jsx(Vi,{onClick:i,children:_.jsx(n1,{children:(l=(o=t.data)==null?void 0:o.nickname)==null?void 0:l.charAt(0)})}),_.jsx(Vi,{onClick:s,children:_.jsx(lU,{})})]})}),_.jsx(wfe,{open:!!n,anchorEl:n,onClose:a})]})}function M2t(){return _.jsxs(Qa,{sx:{display:"flex"},children:[_.jsx(P2t,{}),_.jsx(jR,{})]})}const L2t=[{path:"",accessType:2,element:_.jsx(YXe,{}),children:[{path:"",element:_.jsx(FKe,{})}]},{path:":workspaceSlug",accessType:1,element:_.jsx(MKe,{}),children:[{path:"",element:_.jsx(HKe,{})},{path:"member",element:_.jsx(R2t,{})}]},{path:":workspaceSlug",element:_.jsx(GXe,{}),children:[{path:":documentId",accessType:1,element:_.jsx(E2t,{})},{path:":documentId/share",accessType:0,element:_.jsx(T2t,{})}]},{path:"auth/callback",accessType:2,element:_.jsx(BKe,{})},{path:"join/:invitationToken",accessType:1,element:_.jsx(k2t,{})},{path:"/404",accessType:0,element:_.jsx(I2t,{})},{path:"settings/profile",accessType:1,element:_.jsx(M2t,{}),children:[{path:"",element:_.jsx(N2t,{})}]}],$2t=e=>{const t=n=>(n.accessType===1?n.element=_.jsx(QBe,{children:n.element}):n.accessType===2&&(n.element=_.jsx(WBe,{children:n.element})),n);return e.map(n=>(n=t(n),n!=null&&n.children&&(n.children=n.children.map(r=>t(r))),n.errorElement=_.jsx(jBe,{}),n))},F2t=$2t(L2t);function B2t(e){const[t,n]=N.useState(""),[r,i]=N.useState(""),{data:a}=pU(r),{mutateAsync:s}=Rye(),o=N.useMemo(()=>a!=null&&a.conflict?"Already Exists":null,[a==null?void 0:a.conflict]);KR(()=>{i(t)},500,[t]);const l=c=>{n(c.target.value)},u=async c=>{await s(c)};return _.jsx(x0,{disableAutoFocus:!0,...e,children:_.jsx(hs,{sx:{position:"absolute",top:"50%",left:"50%",transform:"translate(-50%, -50%)",p:4,width:400},children:_.jsxs(nr,{gap:4,children:[_.jsx(ur,{variant:"h5",children:"Create Your Nickname"}),_.jsx(Lc,{children:_.jsx(FO,{defaultValues:{nickname:""},onSuccess:u,children:_.jsxs(nr,{gap:4,alignItems:"flex-end",children:[_.jsx(CT,{variant:"standard",name:"nickname",label:"Enter your nickname",required:!0,fullWidth:!0,inputProps:{maxLength:255},onChange:l,error:!!o,helperText:o}),_.jsx(ss,{type:"submit",variant:"contained",size:"large",disabled:!!o,children:"OK"})]})})})]})})})}function U2t(e){const{children:t}=e,{data:n,isSuccess:r,isLoading:i}=D2t(),a=N.useMemo(()=>r&&!n.nickname,[r,n==null?void 0:n.nickname]);return _.jsx(GF.Provider,{value:{isLoggedIn:r,isLoading:i},children:a?_.jsx(B2t,{open:!0}):t})}function z2t(){const{enqueueSnackbar:e}=vT();return N.useCallback(n=>{var r;e(((r=n.response)==null?void 0:r.data.message)||n.message||"Something went wrong...",{variant:"error"})},[e])}const Iye=Object.prototype.toString;function Dye(e){switch(Iye.call(e)){case"[object Error]":case"[object Exception]":case"[object DOMException]":return!0;default:return gp(e,Error)}}function oS(e,t){return Iye.call(e)===`[object ${t}]`}function jQ(e){return oS(e,"ErrorEvent")}function Ire(e){return oS(e,"DOMError")}function j2t(e){return oS(e,"DOMException")}function Wf(e){return oS(e,"String")}function HQ(e){return typeof e=="object"&&e!==null&&"__sentry_template_string__"in e&&"__sentry_template_values__"in e}function VQ(e){return e===null||HQ(e)||typeof e!="object"&&typeof e!="function"}function bO(e){return oS(e,"Object")}function y6(e){return typeof Event<"u"&&gp(e,Event)}function H2t(e){return typeof Element<"u"&&gp(e,Element)}function V2t(e){return oS(e,"RegExp")}function v6(e){return!!(e&&e.then&&typeof e.then=="function")}function W2t(e){return bO(e)&&"nativeEvent"in e&&"preventDefault"in e&&"stopPropagation"in e}function Nye(e){return typeof e=="number"&&e!==e}function gp(e,t){try{return e instanceof t}catch{return!1}}function Pye(e){return!!(typeof e=="object"&&e!==null&&(e.__isVue||e._isVue))}function Sv(e,t=0){return typeof e!="string"||t===0||e.length<=t?e:`${e.slice(0,t)}...`}function Dre(e,t){if(!Array.isArray(e))return"";const n=[];for(let r=0;rQ2t(e,r,n))}function q2t(e,t,n=250,r,i,a,s){if(!a.exception||!a.exception.values||!s||!gp(s.originalException,Error))return;const o=a.exception.values.length>0?a.exception.values[a.exception.values.length-1]:void 0;o&&(a.exception.values=G2t(w9(e,t,i,s.originalException,r,a.exception.values,o,0),n))}function w9(e,t,n,r,i,a,s,o){if(a.length>=n+1)return a;let l=[...a];if(gp(r[i],Error)){Nre(s,o);const u=e(t,r[i]),c=l.length;Pre(u,i,c,o),l=w9(e,t,n,r[i],i,[u,...l],u,c)}return Array.isArray(r.errors)&&r.errors.forEach((u,c)=>{if(gp(u,Error)){Nre(s,o);const f=e(t,u),h=l.length;Pre(f,`errors[${c}]`,h,o),l=w9(e,t,n,u,i,[f,...l],f,h)}}),l}function Nre(e,t){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,is_exception_group:!0,exception_id:t}}function Pre(e,t,n,r){e.mechanism=e.mechanism||{type:"generic",handled:!0},e.mechanism={...e.mechanism,type:"chained",source:t,exception_id:n,parent_id:r}}function G2t(e,t){return e.map(n=>(n.value&&(n.value=Sv(n.value,t)),n))}function r4(e){return e&&e.Math==Math?e:void 0}const oi=typeof globalThis=="object"&&r4(globalThis)||typeof window=="object"&&r4(window)||typeof self=="object"&&r4(self)||typeof global=="object"&&r4(global)||function(){return this}()||{};function WQ(){return oi}function Mye(e,t,n){const r=n||oi,i=r.__SENTRY__=r.__SENTRY__||{};return i[e]||(i[e]=t())}const Ev=WQ(),Y2t=80;function Ix(e,t={}){if(!e)return"";try{let n=e;const r=5,i=[];let a=0,s=0;const o=" > ",l=o.length;let u;const c=Array.isArray(t)?t:t.keyAttrs,f=!Array.isArray(t)&&t.maxStringLength||Y2t;for(;n&&a++1&&s+i.length*l+u.length>=f));)i.push(u),s+=u.length,n=n.parentNode;return i.reverse().join(o)}catch{return""}}function Z2t(e,t){const n=e,r=[];let i,a,s,o,l;if(!n||!n.tagName)return"";if(Ev.HTMLElement&&n instanceof HTMLElement&&n.dataset&&n.dataset.sentryComponent)return n.dataset.sentryComponent;r.push(n.tagName.toLowerCase());const u=t&&t.length?t.filter(f=>n.getAttribute(f)).map(f=>[f,n.getAttribute(f)]):null;if(u&&u.length)u.forEach(f=>{r.push(`[${f[0]}="${f[1]}"]`)});else if(n.id&&r.push(`#${n.id}`),i=n.className,i&&Wf(i))for(a=i.split(/\s+/),l=0;l"u"||__SENTRY_DEBUG__,J2t="Sentry Logger ",x9=["debug","info","warn","error","log","assert","trace"],w5={};function O6(e){if(!("console"in oi))return e();const t=oi.console,n={},r=Object.keys(w5);r.forEach(i=>{const a=w5[i];n[i]=t[i],t[i]=a});try{return e()}finally{r.forEach(i=>{t[i]=n[i]})}}function ewt(){let e=!1;const t={enable:()=>{e=!0},disable:()=>{e=!1},isEnabled:()=>e};return lS?x9.forEach(n=>{t[n]=(...r)=>{e&&O6(()=>{oi.console[n](`${J2t}[${n}]:`,...r)})}}):x9.forEach(n=>{t[n]=()=>{}}),t}const Pt=ewt(),twt=/^(?:(\w+):)\/\/(?:(\w+)(?::(\w+)?)?@)([\w.-]+)(?::(\d+))?\/(.+)/;function nwt(e){return e==="http"||e==="https"}function dk(e,t=!1){const{host:n,path:r,pass:i,port:a,projectId:s,protocol:o,publicKey:l}=e;return`${o}://${l}${t&&i?`:${i}`:""}@${n}${a?`:${a}`:""}/${r&&`${r}/`}${s}`}function rwt(e){const t=twt.exec(e);if(!t){O6(()=>{console.error(`Invalid Sentry Dsn: ${e}`)});return}const[n,r,i="",a,s="",o]=t.slice(1);let l="",u=o;const c=u.split("/");if(c.length>1&&(l=c.slice(0,-1).join("/"),u=c.pop()),u){const f=u.match(/^\d+/);f&&(u=f[0])}return $ye({host:a,pass:i,path:l,projectId:u,port:s,protocol:n,publicKey:r})}function $ye(e){return{protocol:e.protocol,publicKey:e.publicKey||"",pass:e.pass||"",host:e.host,port:e.port||"",path:e.path||"",projectId:e.projectId}}function iwt(e){if(!lS)return!0;const{port:t,projectId:n,protocol:r}=e;return["protocol","publicKey","host","projectId"].find(s=>e[s]?!1:(Pt.error(`Invalid Sentry Dsn: ${s} missing`),!0))?!1:n.match(/^\d+$/)?nwt(r)?t&&isNaN(parseInt(t,10))?(Pt.error(`Invalid Sentry Dsn: Invalid port ${t}`),!1):!0:(Pt.error(`Invalid Sentry Dsn: Invalid protocol ${r}`),!1):(Pt.error(`Invalid Sentry Dsn: Invalid projectId ${n}`),!1)}function awt(e){const t=typeof e=="string"?rwt(e):$ye(e);if(!(!t||!iwt(t)))return t}class xf extends Error{constructor(t,n="warn"){super(t),this.message=t,this.name=new.target.prototype.constructor.name,Object.setPrototypeOf(this,new.target.prototype),this.logLevel=n}}function Gs(e,t,n){if(!(t in e))return;const r=e[t],i=n(r);typeof i=="function"&&Fye(i,r),e[t]=i}function Dx(e,t,n){try{Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0})}catch{lS&&Pt.log(`Failed to add non-enumerable property "${t}" to object`,e)}}function Fye(e,t){try{const n=t.prototype||{};e.prototype=t.prototype=n,Dx(e,"__sentry_original__",t)}catch{}}function QQ(e){return e.__sentry_original__}function swt(e){return Object.keys(e).map(t=>`${encodeURIComponent(t)}=${encodeURIComponent(e[t])}`).join("&")}function Bye(e){if(Dye(e))return{message:e.message,name:e.name,stack:e.stack,...Lre(e)};if(y6(e)){const t={type:e.type,target:Mre(e.target),currentTarget:Mre(e.currentTarget),...Lre(e)};return typeof CustomEvent<"u"&&gp(e,CustomEvent)&&(t.detail=e.detail),t}else return e}function Mre(e){try{return H2t(e)?Ix(e):Object.prototype.toString.call(e)}catch{return""}}function Lre(e){if(typeof e=="object"&&e!==null){const t={};for(const n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t}else return{}}function owt(e,t=40){const n=Object.keys(Bye(e));if(n.sort(),!n.length)return"[object has no keys]";if(n[0].length>=t)return Sv(n[0],t);for(let r=n.length;r>0;r--){const i=n.slice(0,r).join(", ");if(!(i.length>t))return r===n.length?i:Sv(i,t)}return""}function vc(e){return T9(e,new Map)}function T9(e,t){if(lwt(e)){const n=t.get(e);if(n!==void 0)return n;const r={};t.set(e,r);for(const i of Object.keys(e))typeof e[i]<"u"&&(r[i]=T9(e[i],t));return r}if(Array.isArray(e)){const n=t.get(e);if(n!==void 0)return n;const r=[];return t.set(e,r),e.forEach(i=>{r.push(T9(i,t))}),r}return e}function lwt(e){if(!bO(e))return!1;try{const t=Object.getPrototypeOf(e).constructor.name;return!t||t==="Object"}catch{return!0}}const Uye=50,$re=/\(error: (.*)\)/,Fre=/captureMessage|captureException/;function zye(...e){const t=e.sort((n,r)=>n[0]-r[0]).map(n=>n[1]);return(n,r=0)=>{const i=[],a=n.split(` -`);for(let s=r;s1024)continue;const l=$re.test(o)?o.replace($re,"$1"):o;if(!l.match(/\S*Error: /)){for(const u of t){const c=u(l);if(c){i.push(c);break}}if(i.length>=Uye)break}}return cwt(i)}}function uwt(e){return Array.isArray(e)?zye(...e):e}function cwt(e){if(!e.length)return[];const t=Array.from(e);return/sentryWrapped/.test(t[t.length-1].function||"")&&t.pop(),t.reverse(),Fre.test(t[t.length-1].function||"")&&(t.pop(),Fre.test(t[t.length-1].function||"")&&t.pop()),t.slice(0,Uye).map(n=>({...n,filename:n.filename||t[t.length-1].filename,function:n.function||"?"}))}const k7="";function bp(e){try{return!e||typeof e!="function"?k7:e.name||k7}catch{return k7}}const d_={},Bre={};function V1(e,t){d_[e]=d_[e]||[],d_[e].push(t)}function W1(e,t){Bre[e]||(t(),Bre[e]=!0)}function Sd(e,t){const n=e&&d_[e];if(n)for(const r of n)try{r(t)}catch(i){lS&&Pt.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${bp(r)} -Error:`,i)}}function dwt(e){const t="console";V1(t,e),W1(t,fwt)}function fwt(){"console"in oi&&x9.forEach(function(e){e in oi.console&&Gs(oi.console,e,function(t){return w5[e]=t,function(...n){Sd("console",{args:n,level:e});const i=w5[e];i&&i.apply(oi.console,n)}})})}function La(){const e=oi,t=e.crypto||e.msCrypto;let n=()=>Math.random()*16;try{if(t&&t.randomUUID)return t.randomUUID().replace(/-/g,"");t&&t.getRandomValues&&(n=()=>{const r=new Uint8Array(1);return t.getRandomValues(r),r[0]})}catch{}return("10000000100040008000"+1e11).replace(/[018]/g,r=>(r^(n()&15)>>r/4).toString(16))}function jye(e){return e.exception&&e.exception.values?e.exception.values[0]:void 0}function ym(e){const{message:t,event_id:n}=e;if(t)return t;const r=jye(e);return r?r.type&&r.value?`${r.type}: ${r.value}`:r.type||r.value||n||"":n||""}function k9(e,t,n){const r=e.exception=e.exception||{},i=r.values=r.values||[],a=i[0]=i[0]||{};a.value||(a.value=t||""),a.type||(a.type=n||"Error")}function Nx(e,t){const n=jye(e);if(!n)return;const r={type:"generic",handled:!0},i=n.mechanism;if(n.mechanism={...r,...i,...t},t&&"data"in t){const a={...i&&i.data,...t.data};n.mechanism.data=a}}function Ure(e){if(e&&e.__sentry_captured__)return!0;try{Dx(e,"__sentry_captured__",!0)}catch{}return!1}function Hye(e){return Array.isArray(e)?e:[e]}const Oy=oi,hwt=1e3;let zre,C9,A9;function pwt(e){const t="dom";V1(t,e),W1(t,mwt)}function mwt(){if(!Oy.document)return;const e=Sd.bind(null,"dom"),t=jre(e,!0);Oy.document.addEventListener("click",t,!1),Oy.document.addEventListener("keypress",t,!1),["EventTarget","Node"].forEach(n=>{const r=Oy[n]&&Oy[n].prototype;!r||!r.hasOwnProperty||!r.hasOwnProperty("addEventListener")||(Gs(r,"addEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__=l.__sentry_instrumentation_handlers__||{},c=u[a]=u[a]||{refCount:0};if(!c.handler){const f=jre(e);c.handler=f,i.call(this,a,f,o)}c.refCount++}catch{}return i.call(this,a,s,o)}}),Gs(r,"removeEventListener",function(i){return function(a,s,o){if(a==="click"||a=="keypress")try{const l=this,u=l.__sentry_instrumentation_handlers__||{},c=u[a];c&&(c.refCount--,c.refCount<=0&&(i.call(this,a,c.handler,o),c.handler=void 0,delete u[a]),Object.keys(u).length===0&&delete l.__sentry_instrumentation_handlers__)}catch{}return i.call(this,a,s,o)}}))})}function gwt(e){if(e.type!==C9)return!1;try{if(!e.target||e.target._sentryId!==A9)return!1}catch{}return!0}function bwt(e,t){return e!=="keypress"?!1:!t||!t.tagName?!0:!(t.tagName==="INPUT"||t.tagName==="TEXTAREA"||t.isContentEditable)}function jre(e,t=!1){return n=>{if(!n||n._sentryCaptured)return;const r=ywt(n);if(bwt(n.type,r))return;Dx(n,"_sentryCaptured",!0),r&&!r._sentryId&&Dx(r,"_sentryId",La());const i=n.type==="keypress"?"input":n.type;gwt(n)||(e({event:n,name:i,global:t}),C9=n.type,A9=r?r._sentryId:void 0),clearTimeout(zre),zre=Oy.setTimeout(()=>{A9=void 0,C9=void 0},hwt)}}function ywt(e){try{return e.target}catch{return null}}const _9=WQ();function Vye(){if(!("fetch"in _9))return!1;try{return new Headers,new Request("http://www.example.com"),new Response,!0}catch{return!1}}function R9(e){return e&&/^function fetch\(\)\s+\{\s+\[native code\]\s+\}$/.test(e.toString())}function vwt(){if(typeof EdgeRuntime=="string")return!0;if(!Vye())return!1;if(R9(_9.fetch))return!0;let e=!1;const t=_9.document;if(t&&typeof t.createElement=="function")try{const n=t.createElement("iframe");n.hidden=!0,t.head.appendChild(n),n.contentWindow&&n.contentWindow.fetch&&(e=R9(n.contentWindow.fetch)),t.head.removeChild(n)}catch(n){lS&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return e}function Wye(e){const t="fetch";V1(t,e),W1(t,Owt)}function Owt(){vwt()&&Gs(oi,"fetch",function(e){return function(...t){const{method:n,url:r}=Swt(t),i={args:t,fetchData:{method:n,url:r},startTimestamp:Date.now()};return Sd("fetch",{...i}),e.apply(oi,t).then(a=>{const s={...i,endTimestamp:Date.now(),response:a};return Sd("fetch",s),a},a=>{const s={...i,endTimestamp:Date.now(),error:a};throw Sd("fetch",s),a})}})}function I9(e,t){return!!e&&typeof e=="object"&&!!e[t]}function Hre(e){return typeof e=="string"?e:e?I9(e,"url")?e.url:e.toString?e.toString():"":""}function Swt(e){if(e.length===0)return{method:"GET",url:""};if(e.length===2){const[n,r]=e;return{url:Hre(n),method:I9(r,"method")?String(r.method).toUpperCase():"GET"}}const t=e[0];return{url:Hre(t),method:I9(t,"method")?String(t.method).toUpperCase():"GET"}}let i4=null;function Qye(e){const t="error";V1(t,e),W1(t,Ewt)}function Ewt(){i4=oi.onerror,oi.onerror=function(e,t,n,r,i){return Sd("error",{column:r,error:i,line:n,msg:e,url:t}),i4&&!i4.__SENTRY_LOADER__?i4.apply(this,arguments):!1},oi.onerror.__SENTRY_INSTRUMENTED__=!0}let a4=null;function qye(e){const t="unhandledrejection";V1(t,e),W1(t,wwt)}function wwt(){a4=oi.onunhandledrejection,oi.onunhandledrejection=function(e){return Sd("unhandledrejection",e),a4&&!a4.__SENTRY_LOADER__?a4.apply(this,arguments):!0},oi.onunhandledrejection.__SENTRY_INSTRUMENTED__=!0}const s4=WQ();function xwt(){const e=s4.chrome,t=e&&e.app&&e.app.runtime,n="history"in s4&&!!s4.history.pushState&&!!s4.history.replaceState;return!t&&n}const ZE=oi;let o4;function qQ(e){const t="history";V1(t,e),W1(t,Twt)}function Twt(){if(!xwt())return;const e=ZE.onpopstate;ZE.onpopstate=function(...n){const r=ZE.location.href,i=o4;if(o4=r,Sd("history",{from:i,to:r}),e)try{return e.apply(this,n)}catch{}};function t(n){return function(...r){const i=r.length>2?r[2]:void 0;if(i){const a=o4,s=String(i);o4=s,Sd("history",{from:a,to:s})}return n.apply(this,r)}}Gs(ZE.history,"pushState",t),Gs(ZE.history,"replaceState",t)}const kwt=oi,Vy="__sentry_xhr_v3__";function Gye(e){const t="xhr";V1(t,e),W1(t,Cwt)}function Cwt(){if(!kwt.XMLHttpRequest)return;const e=XMLHttpRequest.prototype;Gs(e,"open",function(t){return function(...n){const r=Date.now(),i=Wf(n[0])?n[0].toUpperCase():void 0,a=Awt(n[1]);if(!i||!a)return t.apply(this,n);this[Vy]={method:i,url:a,request_headers:{}},i==="POST"&&a.match(/sentry_key/)&&(this.__sentry_own_request__=!0);const s=()=>{const o=this[Vy];if(o&&this.readyState===4){try{o.status_code=this.status}catch{}const l={args:[i,a],endTimestamp:Date.now(),startTimestamp:r,xhr:this};Sd("xhr",l)}};return"onreadystatechange"in this&&typeof this.onreadystatechange=="function"?Gs(this,"onreadystatechange",function(o){return function(...l){return s(),o.apply(this,l)}}):this.addEventListener("readystatechange",s),Gs(this,"setRequestHeader",function(o){return function(...l){const[u,c]=l,f=this[Vy];return f&&Wf(u)&&Wf(c)&&(f.request_headers[u.toLowerCase()]=c),o.apply(this,l)}}),t.apply(this,n)}}),Gs(e,"send",function(t){return function(...n){const r=this[Vy];if(!r)return t.apply(this,n);n[0]!==void 0&&(r.body=n[0]);const i={args:[r.method,r.url],startTimestamp:Date.now(),xhr:this};return Sd("xhr",i),t.apply(this,n)}})}function Awt(e){if(Wf(e))return e;try{return e.toString()}catch{}}function _wt(){return"npm"}function Rwt(){const e=typeof WeakSet=="function",t=e?new WeakSet:[];function n(i){if(e)return t.has(i)?!0:(t.add(i),!1);for(let a=0;an?Yye(e,t-1,n):r}function D9(e,t,n=1/0,r=1/0,i=Rwt()){const[a,s]=i;if(t==null||["number","boolean","string"].includes(typeof t)&&!Nye(t))return t;const o=Iwt(e,t);if(!o.startsWith("[object "))return o;if(t.__sentry_skip_normalization__)return t;const l=typeof t.__sentry_override_normalization_depth__=="number"?t.__sentry_override_normalization_depth__:n;if(l===0)return o.replace("object ","");if(a(t))return"[Circular ~]";const u=t;if(u&&typeof u.toJSON=="function")try{const g=u.toJSON();return D9("",g,l-1,r,i)}catch{}const c=Array.isArray(t)?[]:{};let f=0;const h=Bye(t);for(const g in h){if(!Object.prototype.hasOwnProperty.call(h,g))continue;if(f>=r){c[g]="[MaxProperties ~]";break}const b=h[g];c[g]=D9(g,b,l-1,r,i),f++}return s(t),c}function Iwt(e,t){try{if(e==="domain"&&t&&typeof t=="object"&&t._events)return"[Domain]";if(e==="domainEmitter")return"[DomainEmitter]";if(typeof global<"u"&&t===global)return"[Global]";if(typeof window<"u"&&t===window)return"[Window]";if(typeof document<"u"&&t===document)return"[Document]";if(Pye(t))return"[VueViewModel]";if(W2t(t))return"[SyntheticEvent]";if(typeof t=="number"&&t!==t)return"[NaN]";if(typeof t=="function")return`[Function: ${bp(t)}]`;if(typeof t=="symbol")return`[${String(t)}]`;if(typeof t=="bigint")return`[BigInt: ${String(t)}]`;const n=Dwt(t);return/^HTML(\w*)Element$/.test(n)?`[HTMLElement: ${n}]`:`[object ${n}]`}catch(n){return`**non-serializable** (${n})`}}function Dwt(e){const t=Object.getPrototypeOf(e);return t?t.constructor.name:"null prototype"}function Nwt(e){return~-encodeURI(e).split(/%..|./).length}function Pwt(e){return Nwt(JSON.stringify(e))}var Mh;(function(e){e[e.PENDING=0]="PENDING";const n=1;e[e.RESOLVED=n]="RESOLVED";const r=2;e[e.REJECTED=r]="REJECTED"})(Mh||(Mh={}));function yO(e){return new pu(t=>{t(e)})}function GQ(e){return new pu((t,n)=>{n(e)})}class pu{constructor(t){pu.prototype.__init.call(this),pu.prototype.__init2.call(this),pu.prototype.__init3.call(this),pu.prototype.__init4.call(this),this._state=Mh.PENDING,this._handlers=[];try{t(this._resolve,this._reject)}catch(n){this._reject(n)}}then(t,n){return new pu((r,i)=>{this._handlers.push([!1,a=>{if(!t)r(a);else try{r(t(a))}catch(s){i(s)}},a=>{if(!n)i(a);else try{r(n(a))}catch(s){i(s)}}]),this._executeHandlers()})}catch(t){return this.then(n=>n,t)}finally(t){return new pu((n,r)=>{let i,a;return this.then(s=>{a=!1,i=s,t&&t()},s=>{a=!0,i=s,t&&t()}).then(()=>{if(a){r(i);return}n(i)})})}__init(){this._resolve=t=>{this._setResult(Mh.RESOLVED,t)}}__init2(){this._reject=t=>{this._setResult(Mh.REJECTED,t)}}__init3(){this._setResult=(t,n)=>{if(this._state===Mh.PENDING){if(v6(n)){n.then(this._resolve,this._reject);return}this._state=t,this._value=n,this._executeHandlers()}}}__init4(){this._executeHandlers=()=>{if(this._state===Mh.PENDING)return;const t=this._handlers.slice();this._handlers=[],t.forEach(n=>{n[0]||(this._state===Mh.RESOLVED&&n[1](this._value),this._state===Mh.REJECTED&&n[2](this._value),n[0]=!0)})}}}function Mwt(e){const t=[];function n(){return e===void 0||t.lengthr(o)).then(null,()=>r(o).then(null,()=>{})),o}function a(s){return new pu((o,l)=>{let u=t.length;if(!u)return o(!0);const c=setTimeout(()=>{s&&s>0&&o(!1)},s);t.forEach(f=>{yO(f).then(()=>{--u||(clearTimeout(c),o(!0))},l)})})}return{$:t,add:i,drain:a}}function f_(e){if(!e)return{};const t=e.match(/^(([^:/?#]+):)?(\/\/([^/?#]*))?([^?#]*)(\?([^#]*))?(#(.*))?$/);if(!t)return{};const n=t[6]||"",r=t[8]||"";return{host:t[4],path:t[5],protocol:t[2],search:n,hash:r,relative:t[5]+n+r}}const Lwt=["fatal","error","warning","log","info","debug"];function $wt(e){return e==="warn"?"warning":Lwt.includes(e)?e:"log"}const Zye=1e3;function fk(){return Date.now()/Zye}function Fwt(){const{performance:e}=oi;if(!e||!e.now)return fk;const t=Date.now()-e.now(),n=e.timeOrigin==null?t:e.timeOrigin;return()=>(n+e.now())/Zye}const hk=Fwt(),Gf=(()=>{const{performance:e}=oi;if(!e||!e.now)return;const t=3600*1e3,n=e.now(),r=Date.now(),i=e.timeOrigin?Math.abs(e.timeOrigin+n-r):t,a=i{const a=Vre(i);for(const s of Object.keys(a))r[s]=a[s];return r},{});else{if(!e)return;t=Vre(e)}const n=Object.entries(t).reduce((r,[i,a])=>{if(i.match(Bwt)){const s=i.slice(Xye.length);r[s]=a}return r},{});if(Object.keys(n).length>0)return n}function Kye(e){if(!e)return;const t=Object.entries(e).reduce((n,[r,i])=>(i&&(n[`${Xye}${r}`]=i),n),{});return jwt(t)}function Vre(e){return e.split(",").map(t=>t.split("=").map(n=>decodeURIComponent(n.trim()))).reduce((t,[n,r])=>(t[n]=r,t),{})}function jwt(e){if(Object.keys(e).length!==0)return Object.entries(e).reduce((t,[n,r],i)=>{const a=`${encodeURIComponent(n)}=${encodeURIComponent(r)}`,s=i===0?a:`${t},${a}`;return s.length>Uwt?(lS&&Pt.warn(`Not adding key: ${n} with val: ${r} to baggage header due to exceeding baggage size limits.`),t):s},"")}const Hwt=new RegExp("^[ \\t]*([0-9a-f]{32})?-?([0-9a-f]{16})?-?([01])?[ \\t]*$");function Vwt(e){if(!e)return;const t=e.match(Hwt);if(!t)return;let n;return t[3]==="1"?n=!0:t[3]==="0"&&(n=!1),{traceId:t[1],parentSampled:n,parentSpanId:t[2]}}function Wwt(e,t){const n=Vwt(e),r=zwt(t),{traceId:i,parentSpanId:a,parentSampled:s}=n||{};return n?{traceparentData:n,dynamicSamplingContext:r||{},propagationContext:{traceId:i||La(),parentSpanId:a||La().substring(16),spanId:La().substring(16),sampled:s,dsc:r||{}}}:{traceparentData:n,dynamicSamplingContext:void 0,propagationContext:{traceId:i||La(),spanId:La().substring(16)}}}function YQ(e=La(),t=La().substring(16),n){let r="";return n!==void 0&&(r=n?"-1":"-0"),`${e}-${t}${r}`}function uS(e,t=[]){return[e,t]}function Qwt(e,t){const[n,r]=e;return[n,[...r,t]]}function Wre(e,t){const n=e[1];for(const r of n){const i=r[0].type;if(t(r,i))return!0}return!1}function P9(e,t){return(t||new TextEncoder).encode(e)}function qwt(e,t){const[n,r]=e;let i=JSON.stringify(n);function a(s){typeof i=="string"?i=typeof s=="string"?i+s:[P9(i,t),s]:i.push(typeof s=="string"?P9(s,t):s)}for(const s of r){const[o,l]=s;if(a(` -${JSON.stringify(o)} -`),typeof l=="string"||l instanceof Uint8Array)a(l);else{let u;try{u=JSON.stringify(l)}catch{u=JSON.stringify(fm(l))}a(u)}}return typeof i=="string"?i:Gwt(i)}function Gwt(e){const t=e.reduce((i,a)=>i+a.length,0),n=new Uint8Array(t);let r=0;for(const i of e)n.set(i,r),r+=i.length;return n}function Ywt(e,t){const n=typeof e.data=="string"?P9(e.data,t):e.data;return[vc({type:"attachment",length:n.length,filename:e.filename,content_type:e.contentType,attachment_type:e.attachmentType}),n]}const Zwt={session:"session",sessions:"session",attachment:"attachment",transaction:"transaction",event:"error",client_report:"internal",user_report:"default",profile:"profile",replay_event:"replay",replay_recording:"replay",check_in:"monitor",feedback:"feedback",statsd:"unknown"};function Qre(e){return Zwt[e]}function Jye(e){if(!e||!e.sdk)return;const{name:t,version:n}=e.sdk;return{name:t,version:n}}function Xwt(e,t,n,r){const i=e.sdkProcessingMetadata&&e.sdkProcessingMetadata.dynamicSamplingContext;return{event_id:e.event_id,sent_at:new Date().toISOString(),...t&&{sdk:t},...!!n&&r&&{dsn:dk(r)},...i&&{trace:vc({...i})}}}function Kwt(e,t,n){const r=[{type:"client_report"},{timestamp:n||fk(),discarded_events:e}];return uS(t?{dsn:t}:{},[r])}const Jwt=60*1e3;function ext(e,t=Date.now()){const n=parseInt(`${e}`,10);if(!isNaN(n))return n*1e3;const r=Date.parse(`${e}`);return isNaN(r)?Jwt:r-t}function txt(e,t){return e[t]||e.all||0}function nxt(e,t,n=Date.now()){return txt(e,t)>n}function rxt(e,{statusCode:t,headers:n},r=Date.now()){const i={...e},a=n&&n["x-sentry-rate-limits"],s=n&&n["retry-after"];if(a)for(const o of a.trim().split(",")){const[l,u]=o.split(":",2),c=parseInt(l,10),f=(isNaN(c)?60:c)*1e3;if(!u)i.all=r+f;else for(const h of u.split(";"))i[h]=r+f}else s?i.all=r+ext(s,r):t===429&&(i.all=r+60*1e3);return i}const zn=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,S6="production";function ZQ(){return Mye("globalEventProcessors",()=>[])}function ixt(e){ZQ().push(e)}function x5(e,t,n,r=0){return new pu((i,a)=>{const s=e[r];if(t===null||typeof s!="function")i(t);else{const o=s({...t},n);zn&&s.id&&o===null&&Pt.log(`Event processor "${s.id}" dropped event`),v6(o)?o.then(l=>x5(e,l,n,r+1).then(i)).then(null,a):x5(e,o,n,r+1).then(i).then(null,a)}})}function eve(e){const t=hk(),n={sid:La(),init:!0,timestamp:t,started:t,duration:0,status:"ok",errors:0,ignoreDuration:!1,toJSON:()=>axt(n)};return e&&x1(n,e),n}function x1(e,t={}){if(t.user&&(!e.ipAddress&&t.user.ip_address&&(e.ipAddress=t.user.ip_address),!e.did&&!t.did&&(e.did=t.user.id||t.user.email||t.user.username)),e.timestamp=t.timestamp||hk(),t.abnormal_mechanism&&(e.abnormal_mechanism=t.abnormal_mechanism),t.ignoreDuration&&(e.ignoreDuration=t.ignoreDuration),t.sid&&(e.sid=t.sid.length===32?t.sid:La()),t.init!==void 0&&(e.init=t.init),!e.did&&t.did&&(e.did=`${t.did}`),typeof t.started=="number"&&(e.started=t.started),e.ignoreDuration)e.duration=void 0;else if(typeof t.duration=="number")e.duration=t.duration;else{const n=e.timestamp-e.started;e.duration=n>=0?n:0}t.release&&(e.release=t.release),t.environment&&(e.environment=t.environment),!e.ipAddress&&t.ipAddress&&(e.ipAddress=t.ipAddress),!e.userAgent&&t.userAgent&&(e.userAgent=t.userAgent),typeof t.errors=="number"&&(e.errors=t.errors),t.status&&(e.status=t.status)}function tve(e,t){let n={};t?n={status:t}:e.status==="ok"&&(n={status:"exited"}),x1(e,n)}function axt(e){return vc({sid:`${e.sid}`,init:e.init,started:new Date(e.started*1e3).toISOString(),timestamp:new Date(e.timestamp*1e3).toISOString(),status:e.status,errors:e.errors,did:typeof e.did=="number"||typeof e.did=="string"?`${e.did}`:void 0,duration:e.duration,abnormal_mechanism:e.abnormal_mechanism,attrs:{release:e.release,environment:e.environment,ip_address:e.ipAddress,user_agent:e.userAgent}})}const sxt=0,nve=1;function XQ(e){const{spanId:t,traceId:n}=e.spanContext(),{data:r,op:i,parent_span_id:a,status:s,tags:o,origin:l}=Zo(e);return vc({data:r,op:i,parent_span_id:a,span_id:t,status:s,tags:o,trace_id:n,origin:l})}function E6(e){const{traceId:t,spanId:n}=e.spanContext(),r=rve(e);return YQ(t,n,r)}function w6(e){return typeof e=="number"?qre(e):Array.isArray(e)?e[0]+e[1]/1e9:e instanceof Date?qre(e.getTime()):hk()}function qre(e){return e>9999999999?e/1e3:e}function Zo(e){return oxt(e)?e.getSpanJSON():typeof e.toJSON=="function"?e.toJSON():{}}function oxt(e){return typeof e.getSpanJSON=="function"}function rve(e){const{traceFlags:t}=e.spanContext();return!!(t&nve)}function lxt(e,t,n,r,i,a){const{normalizeDepth:s=3,normalizeMaxBreadth:o=1e3}=e,l={...t,event_id:t.event_id||n.event_id||La(),timestamp:t.timestamp||fk()},u=n.integrations||e.integrations.map(w=>w.name);uxt(l,e),fxt(l,u),t.type===void 0&&cxt(l,e.stackParser);const c=pxt(r,n.captureContext);n.mechanism&&Nx(l,n.mechanism);const f=i&&i.getEventProcessors?i.getEventProcessors():[],h=Cxt().getScopeData();if(a){const w=a.getScopeData();Xre(h,w)}if(c){const w=c.getScopeData();Xre(h,w)}const g=[...n.attachments||[],...h.attachments];g.length&&(n.attachments=g),ove(l,h);const b=[...f,...ZQ(),...h.eventProcessors];return x5(b,l,n).then(w=>(w&&dxt(w),typeof s=="number"&&s>0?hxt(w,s,o):w))}function uxt(e,t){const{environment:n,release:r,dist:i,maxValueLength:a=250}=t;"environment"in e||(e.environment="environment"in t?n:S6),e.release===void 0&&r!==void 0&&(e.release=r),e.dist===void 0&&i!==void 0&&(e.dist=i),e.message&&(e.message=Sv(e.message,a));const s=e.exception&&e.exception.values&&e.exception.values[0];s&&s.value&&(s.value=Sv(s.value,a));const o=e.request;o&&o.url&&(o.url=Sv(o.url,a))}const Gre=new WeakMap;function cxt(e,t){const n=oi._sentryDebugIds;if(!n)return;let r;const i=Gre.get(t);i?r=i:(r=new Map,Gre.set(t,r));const a=Object.keys(n).reduce((s,o)=>{let l;const u=r.get(o);u?l=u:(l=t(o),r.set(o,l));for(let c=l.length-1;c>=0;c--){const f=l[c];if(f.filename){s[f.filename]=n[o];break}}return s},{});try{e.exception.values.forEach(s=>{s.stacktrace.frames.forEach(o=>{o.filename&&(o.debug_id=a[o.filename])})})}catch{}}function dxt(e){const t={};try{e.exception.values.forEach(r=>{r.stacktrace.frames.forEach(i=>{i.debug_id&&(i.abs_path?t[i.abs_path]=i.debug_id:i.filename&&(t[i.filename]=i.debug_id),delete i.debug_id)})})}catch{}if(Object.keys(t).length===0)return;e.debug_meta=e.debug_meta||{},e.debug_meta.images=e.debug_meta.images||[];const n=e.debug_meta.images;Object.keys(t).forEach(r=>{n.push({type:"sourcemap",code_file:r,debug_id:t[r]})})}function fxt(e,t){t.length>0&&(e.sdk=e.sdk||{},e.sdk.integrations=[...e.sdk.integrations||[],...t])}function hxt(e,t,n){if(!e)return null;const r={...e,...e.breadcrumbs&&{breadcrumbs:e.breadcrumbs.map(i=>({...i,...i.data&&{data:fm(i.data,t,n)}}))},...e.user&&{user:fm(e.user,t,n)},...e.contexts&&{contexts:fm(e.contexts,t,n)},...e.extra&&{extra:fm(e.extra,t,n)}};return e.contexts&&e.contexts.trace&&r.contexts&&(r.contexts.trace=e.contexts.trace,e.contexts.trace.data&&(r.contexts.trace.data=fm(e.contexts.trace.data,t,n))),e.spans&&(r.spans=e.spans.map(i=>{const a=Zo(i).data;return a&&(i.data=fm(a,t,n)),i})),r}function pxt(e,t){if(!t)return e;const n=e?e.clone():new Nf;return n.update(t),n}function mxt(e){if(e)return gxt(e)?{captureContext:e}:yxt(e)?{captureContext:e}:e}function gxt(e){return e instanceof Nf||typeof e=="function"}const bxt=["user","level","extra","contexts","tags","fingerprint","requestSession","propagationContext"];function yxt(e){return Object.keys(e).some(t=>bxt.includes(t))}function vxt(e,t){return jc().captureException(e,mxt(t))}function ive(e,t){return jc().captureEvent(e,t)}function T1(e,t){jc().addBreadcrumb(e,t)}function Oxt(...e){const t=jc();if(e.length===2){const[n,r]=e;return n?t.withScope(()=>(t.getStackTop().scope=n,r(n))):t.withScope(r)}return t.withScope(e[0])}function eo(){return jc().getClient()}function Ap(){return jc().getScope()}function Yre(e){const t=eo(),n=Q1(),r=Ap(),{release:i,environment:a=S6}=t&&t.getOptions()||{},{userAgent:s}=oi.navigator||{},o=eve({release:i,environment:a,user:r.getUser()||n.getUser(),...s&&{userAgent:s},...e}),l=n.getSession();return l&&l.status==="ok"&&x1(l,{status:"exited"}),ave(),n.setSession(o),r.setSession(o),o}function ave(){const e=Q1(),t=Ap(),n=t.getSession()||e.getSession();n&&tve(n),sve(),e.setSession(),t.setSession()}function sve(){const e=Q1(),t=Ap(),n=eo(),r=t.getSession()||e.getSession();r&&n&&n.captureSession&&n.captureSession(r)}function Zre(e=!1){if(e){ave();return}sve()}function T5(e){return e.transaction}function x6(e,t,n){const r=t.getOptions(),{publicKey:i}=t.getDsn()||{},{segment:a}=n&&n.getUser()||{},s=vc({environment:r.environment||S6,release:r.release,user_segment:a,public_key:i,trace_id:e});return t.emit&&t.emit("createDsc",s),s}function Px(e){const t=eo();if(!t)return{};const n=x6(Zo(e).trace_id||"",t,Ap()),r=T5(e);if(!r)return n;const i=r&&r._frozenDynamicSamplingContext;if(i)return i;const{sampleRate:a,source:s}=r.metadata;a!=null&&(n.sample_rate=`${a}`);const o=Zo(r);return s&&s!=="url"&&(n.transaction=o.description),n.sampled=String(rve(r)),t.emit&&t.emit("createDsc",n),n}function ove(e,t){const{fingerprint:n,span:r,breadcrumbs:i,sdkProcessingMetadata:a}=t;Sxt(e,t),r&&xxt(e,r),Txt(e,n),Ext(e,i),wxt(e,a)}function Xre(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,sdkProcessingMetadata:o,breadcrumbs:l,fingerprint:u,eventProcessors:c,attachments:f,propagationContext:h,transactionName:g,span:b}=t;XE(e,"extra",n),XE(e,"tags",r),XE(e,"user",i),XE(e,"contexts",a),XE(e,"sdkProcessingMetadata",o),s&&(e.level=s),g&&(e.transactionName=g),b&&(e.span=b),l.length&&(e.breadcrumbs=[...e.breadcrumbs,...l]),u.length&&(e.fingerprint=[...e.fingerprint,...u]),c.length&&(e.eventProcessors=[...e.eventProcessors,...c]),f.length&&(e.attachments=[...e.attachments,...f]),e.propagationContext={...e.propagationContext,...h}}function XE(e,t,n){if(n&&Object.keys(n).length){e[t]={...e[t]};for(const r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[t][r]=n[r])}}function Sxt(e,t){const{extra:n,tags:r,user:i,contexts:a,level:s,transactionName:o}=t,l=vc(n);l&&Object.keys(l).length&&(e.extra={...l,...e.extra});const u=vc(r);u&&Object.keys(u).length&&(e.tags={...u,...e.tags});const c=vc(i);c&&Object.keys(c).length&&(e.user={...c,...e.user});const f=vc(a);f&&Object.keys(f).length&&(e.contexts={...f,...e.contexts}),s&&(e.level=s),o&&(e.transaction=o)}function Ext(e,t){const n=[...e.breadcrumbs||[],...t];e.breadcrumbs=n.length?n:void 0}function wxt(e,t){e.sdkProcessingMetadata={...e.sdkProcessingMetadata,...t}}function xxt(e,t){e.contexts={trace:XQ(t),...e.contexts};const n=T5(t);if(n){e.sdkProcessingMetadata={dynamicSamplingContext:Px(t),...e.sdkProcessingMetadata};const r=Zo(n).description;r&&(e.tags={transaction:r,...e.tags})}}function Txt(e,t){e.fingerprint=e.fingerprint?Hye(e.fingerprint):[],t&&(e.fingerprint=e.fingerprint.concat(t)),e.fingerprint&&!e.fingerprint.length&&delete e.fingerprint}const kxt=100;let C7;class Nf{constructor(){this._notifyingListeners=!1,this._scopeListeners=[],this._eventProcessors=[],this._breadcrumbs=[],this._attachments=[],this._user={},this._tags={},this._extra={},this._contexts={},this._sdkProcessingMetadata={},this._propagationContext=Kre()}static clone(t){return t?t.clone():new Nf}clone(){const t=new Nf;return t._breadcrumbs=[...this._breadcrumbs],t._tags={...this._tags},t._extra={...this._extra},t._contexts={...this._contexts},t._user=this._user,t._level=this._level,t._span=this._span,t._session=this._session,t._transactionName=this._transactionName,t._fingerprint=this._fingerprint,t._eventProcessors=[...this._eventProcessors],t._requestSession=this._requestSession,t._attachments=[...this._attachments],t._sdkProcessingMetadata={...this._sdkProcessingMetadata},t._propagationContext={...this._propagationContext},t._client=this._client,t}setClient(t){this._client=t}getClient(){return this._client}addScopeListener(t){this._scopeListeners.push(t)}addEventProcessor(t){return this._eventProcessors.push(t),this}setUser(t){return this._user=t||{email:void 0,id:void 0,ip_address:void 0,segment:void 0,username:void 0},this._session&&x1(this._session,{user:t}),this._notifyScopeListeners(),this}getUser(){return this._user}getRequestSession(){return this._requestSession}setRequestSession(t){return this._requestSession=t,this}setTags(t){return this._tags={...this._tags,...t},this._notifyScopeListeners(),this}setTag(t,n){return this._tags={...this._tags,[t]:n},this._notifyScopeListeners(),this}setExtras(t){return this._extra={...this._extra,...t},this._notifyScopeListeners(),this}setExtra(t,n){return this._extra={...this._extra,[t]:n},this._notifyScopeListeners(),this}setFingerprint(t){return this._fingerprint=t,this._notifyScopeListeners(),this}setLevel(t){return this._level=t,this._notifyScopeListeners(),this}setTransactionName(t){return this._transactionName=t,this._notifyScopeListeners(),this}setContext(t,n){return n===null?delete this._contexts[t]:this._contexts[t]=n,this._notifyScopeListeners(),this}setSpan(t){return this._span=t,this._notifyScopeListeners(),this}getSpan(){return this._span}getTransaction(){const t=this._span;return t&&t.transaction}setSession(t){return t?this._session=t:delete this._session,this._notifyScopeListeners(),this}getSession(){return this._session}update(t){if(!t)return this;if(typeof t=="function"){const n=t(this);return n instanceof Nf?n:this}return t instanceof Nf?(this._tags={...this._tags,...t._tags},this._extra={...this._extra,...t._extra},this._contexts={...this._contexts,...t._contexts},t._user&&Object.keys(t._user).length&&(this._user=t._user),t._level&&(this._level=t._level),t._fingerprint&&(this._fingerprint=t._fingerprint),t._requestSession&&(this._requestSession=t._requestSession),t._propagationContext&&(this._propagationContext=t._propagationContext)):bO(t)&&(t=t,this._tags={...this._tags,...t.tags},this._extra={...this._extra,...t.extra},this._contexts={...this._contexts,...t.contexts},t.user&&(this._user=t.user),t.level&&(this._level=t.level),t.fingerprint&&(this._fingerprint=t.fingerprint),t.requestSession&&(this._requestSession=t.requestSession),t.propagationContext&&(this._propagationContext=t.propagationContext)),this}clear(){return this._breadcrumbs=[],this._tags={},this._extra={},this._user={},this._contexts={},this._level=void 0,this._transactionName=void 0,this._fingerprint=void 0,this._requestSession=void 0,this._span=void 0,this._session=void 0,this._notifyScopeListeners(),this._attachments=[],this._propagationContext=Kre(),this}addBreadcrumb(t,n){const r=typeof n=="number"?n:kxt;if(r<=0)return this;const i={timestamp:fk(),...t},a=this._breadcrumbs;return a.push(i),this._breadcrumbs=a.length>r?a.slice(-r):a,this._notifyScopeListeners(),this}getLastBreadcrumb(){return this._breadcrumbs[this._breadcrumbs.length-1]}clearBreadcrumbs(){return this._breadcrumbs=[],this._notifyScopeListeners(),this}addAttachment(t){return this._attachments.push(t),this}getAttachments(){return this.getScopeData().attachments}clearAttachments(){return this._attachments=[],this}getScopeData(){const{_breadcrumbs:t,_attachments:n,_contexts:r,_tags:i,_extra:a,_user:s,_level:o,_fingerprint:l,_eventProcessors:u,_propagationContext:c,_sdkProcessingMetadata:f,_transactionName:h,_span:g}=this;return{breadcrumbs:t,attachments:n,contexts:r,tags:i,extra:a,user:s,level:o,fingerprint:l||[],eventProcessors:u,propagationContext:c,sdkProcessingMetadata:f,transactionName:h,span:g}}applyToEvent(t,n={},r=[]){ove(t,this.getScopeData());const i=[...r,...ZQ(),...this._eventProcessors];return x5(i,t,n)}setSDKProcessingMetadata(t){return this._sdkProcessingMetadata={...this._sdkProcessingMetadata,...t},this}setPropagationContext(t){return this._propagationContext=t,this}getPropagationContext(){return this._propagationContext}captureException(t,n){const r=n&&n.event_id?n.event_id:La();if(!this._client)return Pt.warn("No client configured on scope - will not capture exception!"),r;const i=new Error("Sentry syntheticException");return this._client.captureException(t,{originalException:t,syntheticException:i,...n,event_id:r},this),r}captureMessage(t,n,r){const i=r&&r.event_id?r.event_id:La();if(!this._client)return Pt.warn("No client configured on scope - will not capture message!"),i;const a=new Error(t);return this._client.captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i},this),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return this._client?(this._client.captureEvent(t,{...n,event_id:r},this),r):(Pt.warn("No client configured on scope - will not capture event!"),r)}_notifyScopeListeners(){this._notifyingListeners||(this._notifyingListeners=!0,this._scopeListeners.forEach(t=>{t(this)}),this._notifyingListeners=!1)}}function Cxt(){return C7||(C7=new Nf),C7}function Kre(){return{traceId:La(),spanId:La().substring(16)}}const M9="7.99.0",lve=parseFloat(M9),Axt=100;class uve{constructor(t,n,r,i=lve){this._version=i;let a;n?a=n:(a=new Nf,a.setClient(t));let s;r?s=r:(s=new Nf,s.setClient(t)),this._stack=[{scope:a}],t&&this.bindClient(t),this._isolationScope=s}isOlderThan(t){return this._version(this.popScope(),i),i=>{throw this.popScope(),i}):(this.popScope(),r)}getClient(){return this.getStackTop().client}getScope(){return this.getStackTop().scope}getIsolationScope(){return this._isolationScope}getStack(){return this._stack}getStackTop(){return this._stack[this._stack.length-1]}captureException(t,n){const r=this._lastEventId=n&&n.event_id?n.event_id:La(),i=new Error("Sentry syntheticException");return this.getScope().captureException(t,{originalException:t,syntheticException:i,...n,event_id:r}),r}captureMessage(t,n,r){const i=this._lastEventId=r&&r.event_id?r.event_id:La(),a=new Error(t);return this.getScope().captureMessage(t,n,{originalException:t,syntheticException:a,...r,event_id:i}),i}captureEvent(t,n){const r=n&&n.event_id?n.event_id:La();return t.type||(this._lastEventId=r),this.getScope().captureEvent(t,{...n,event_id:r}),r}lastEventId(){return this._lastEventId}addBreadcrumb(t,n){const{scope:r,client:i}=this.getStackTop();if(!i)return;const{beforeBreadcrumb:a=null,maxBreadcrumbs:s=Axt}=i.getOptions&&i.getOptions()||{};if(s<=0)return;const l={timestamp:fk(),...t},u=a?O6(()=>a(l,n)):l;u!==null&&(i.emit&&i.emit("beforeAddBreadcrumb",u,n),r.addBreadcrumb(u,s))}setUser(t){this.getScope().setUser(t),this.getIsolationScope().setUser(t)}setTags(t){this.getScope().setTags(t),this.getIsolationScope().setTags(t)}setExtras(t){this.getScope().setExtras(t),this.getIsolationScope().setExtras(t)}setTag(t,n){this.getScope().setTag(t,n),this.getIsolationScope().setTag(t,n)}setExtra(t,n){this.getScope().setExtra(t,n),this.getIsolationScope().setExtra(t,n)}setContext(t,n){this.getScope().setContext(t,n),this.getIsolationScope().setContext(t,n)}configureScope(t){const{scope:n,client:r}=this.getStackTop();r&&t(n)}run(t){const n=Jre(this);try{t(this)}finally{Jre(n)}}getIntegration(t){const n=this.getClient();if(!n)return null;try{return n.getIntegration(t)}catch{return zn&&Pt.warn(`Cannot retrieve integration ${t.id} from the current Hub`),null}}startTransaction(t,n){const r=this._callExtensionMethod("startTransaction",t,n);return zn&&!r&&(this.getClient()?Pt.warn(`Tracing extension 'startTransaction' has not been added. Call 'addTracingExtensions' before calling 'init': -Sentry.addTracingExtensions(); -Sentry.init({...}); -`):Pt.warn("Tracing extension 'startTransaction' is missing. You should 'init' the SDK before calling 'startTransaction'")),r}traceHeaders(){return this._callExtensionMethod("traceHeaders")}captureSession(t=!1){if(t)return this.endSession();this._sendSessionUpdate()}endSession(){const n=this.getStackTop().scope,r=n.getSession();r&&tve(r),this._sendSessionUpdate(),n.setSession()}startSession(t){const{scope:n,client:r}=this.getStackTop(),{release:i,environment:a=S6}=r&&r.getOptions()||{},{userAgent:s}=oi.navigator||{},o=eve({release:i,environment:a,user:n.getUser(),...s&&{userAgent:s},...t}),l=n.getSession&&n.getSession();return l&&l.status==="ok"&&x1(l,{status:"exited"}),this.endSession(),n.setSession(o),o}shouldSendDefaultPii(){const t=this.getClient(),n=t&&t.getOptions();return!!(n&&n.sendDefaultPii)}_sendSessionUpdate(){const{scope:t,client:n}=this.getStackTop(),r=t.getSession();r&&n&&n.captureSession&&n.captureSession(r)}_callExtensionMethod(t,...n){const i=pk().__SENTRY__;if(i&&i.extensions&&typeof i.extensions[t]=="function")return i.extensions[t].apply(this,n);zn&&Pt.warn(`Extension method ${t} couldn't be found, doing nothing.`)}}function pk(){return oi.__SENTRY__=oi.__SENTRY__||{extensions:{},hub:void 0},oi}function Jre(e){const t=pk(),n=L9(t);return cve(t,e),n}function jc(){const e=pk();if(e.__SENTRY__&&e.__SENTRY__.acs){const t=e.__SENTRY__.acs.getCurrentHub();if(t)return t}return _xt(e)}function Q1(){return jc().getIsolationScope()}function _xt(e=pk()){return(!Rxt(e)||L9(e).isOlderThan(lve))&&cve(e,new uve),L9(e)}function Rxt(e){return!!(e&&e.__SENTRY__&&e.__SENTRY__.hub)}function L9(e){return Mye("hub",()=>new uve,e)}function cve(e,t){if(!e)return!1;const n=e.__SENTRY__=e.__SENTRY__||{};return n.hub=t,!0}function cS(e){return(e||jc()).getScope().getTransaction()}let eie=!1;function Ixt(){eie||(eie=!0,Qye($9),qye($9))}function $9(){const e=cS();if(e){const t="internal_error";zn&&Pt.log(`[Tracing] Transaction: ${t} -> Global error occured`),e.setStatus(t)}}$9.tag="sentry_tracingErrorCallback";const wv="sentry.source",Wy="sentry.sample_rate",l4="sentry.op",Qy="sentry.origin";var tie;(function(e){const t="ok";e.Ok=t;const n="deadline_exceeded";e.DeadlineExceeded=n;const r="unauthenticated";e.Unauthenticated=r;const i="permission_denied";e.PermissionDenied=i;const a="not_found";e.NotFound=a;const s="resource_exhausted";e.ResourceExhausted=s;const o="invalid_argument";e.InvalidArgument=o;const l="unimplemented";e.Unimplemented=l;const u="unavailable";e.Unavailable=u;const c="internal_error";e.InternalError=c;const f="unknown_error";e.UnknownError=f;const h="cancelled";e.Cancelled=h;const g="already_exists";e.AlreadyExists=g;const b="failed_precondition";e.FailedPrecondition=b;const S="aborted";e.Aborted=S;const w="out_of_range";e.OutOfRange=w;const E="data_loss";e.DataLoss=E})(tie||(tie={}));function Dxt(e){if(e<400&&e>=100)return"ok";if(e>=400&&e<500)switch(e){case 401:return"unauthenticated";case 403:return"permission_denied";case 404:return"not_found";case 409:return"already_exists";case 413:return"failed_precondition";case 429:return"resource_exhausted";default:return"invalid_argument"}if(e>=500&&e<600)switch(e){case 501:return"unimplemented";case 503:return"unavailable";case 504:return"deadline_exceeded";default:return"internal_error"}return"unknown_error"}function KQ(e,t){e.setTag("http.status_code",String(t)),e.setData("http.response.status_code",t);const n=Dxt(t);n!=="unknown_error"&&e.setStatus(n)}class dve{constructor(t=1e3){this._maxlen=t,this.spans=[]}add(t){this.spans.length>this._maxlen?t.spanRecorder=void 0:this.spans.push(t)}}class JQ{constructor(t={}){this._traceId=t.traceId||La(),this._spanId=t.spanId||La().substring(16),this._startTime=t.startTimestamp||hk(),this.tags=t.tags?{...t.tags}:{},this.data=t.data?{...t.data}:{},this.instrumenter=t.instrumenter||"sentry",this._attributes={},this.setAttributes({[Qy]:t.origin||"manual",[l4]:t.op,...t.attributes}),this._name=t.name||t.description,t.parentSpanId&&(this._parentSpanId=t.parentSpanId),"sampled"in t&&(this._sampled=t.sampled),t.status&&(this._status=t.status),t.endTimestamp&&(this._endTime=t.endTimestamp)}get name(){return this._name||""}set name(t){this.updateName(t)}get description(){return this._name}set description(t){this._name=t}get traceId(){return this._traceId}set traceId(t){this._traceId=t}get spanId(){return this._spanId}set spanId(t){this._spanId=t}set parentSpanId(t){this._parentSpanId=t}get parentSpanId(){return this._parentSpanId}get sampled(){return this._sampled}set sampled(t){this._sampled=t}get attributes(){return this._attributes}set attributes(t){this._attributes=t}get startTimestamp(){return this._startTime}set startTimestamp(t){this._startTime=t}get endTimestamp(){return this._endTime}set endTimestamp(t){this._endTime=t}get status(){return this._status}set status(t){this._status=t}get op(){return this._attributes[l4]}set op(t){this.setAttribute(l4,t)}get origin(){return this._attributes[Qy]}set origin(t){this.setAttribute(Qy,t)}spanContext(){const{_spanId:t,_traceId:n,_sampled:r}=this;return{spanId:t,traceId:n,traceFlags:r?nve:sxt}}startChild(t){const n=new JQ({...t,parentSpanId:this._spanId,sampled:this._sampled,traceId:this._traceId});n.spanRecorder=this.spanRecorder,n.spanRecorder&&n.spanRecorder.add(n);const r=T5(this);if(n.transaction=r,zn&&r){const i=t&&t.op||"< unknown op >",a=Zo(n).description||"< unknown name >",s=r.spanContext().spanId,o=`[Tracing] Starting '${i}' span on transaction '${a}' (${s}).`;Pt.log(o),this._logMessage=o}return n}setTag(t,n){return this.tags={...this.tags,[t]:n},this}setData(t,n){return this.data={...this.data,[t]:n},this}setAttribute(t,n){n===void 0?delete this._attributes[t]:this._attributes[t]=n}setAttributes(t){Object.keys(t).forEach(n=>this.setAttribute(n,t[n]))}setStatus(t){return this._status=t,this}setHttpStatus(t){return KQ(this,t),this}setName(t){this.updateName(t)}updateName(t){return this._name=t,this}isSuccess(){return this._status==="ok"}finish(t){return this.end(t)}end(t){if(this._endTime)return;const n=T5(this);if(zn&&n&&n.spanContext().spanId!==this._spanId){const r=this._logMessage;r&&Pt.log(r.replace("Starting","Finishing"))}this._endTime=w6(t)}toTraceparent(){return E6(this)}toContext(){return vc({data:this._getData(),description:this._name,endTimestamp:this._endTime,op:this.op,parentSpanId:this._parentSpanId,sampled:this._sampled,spanId:this._spanId,startTimestamp:this._startTime,status:this._status,tags:this.tags,traceId:this._traceId})}updateWithContext(t){return this.data=t.data||{},this._name=t.name||t.description,this._endTime=t.endTimestamp,this.op=t.op,this._parentSpanId=t.parentSpanId,this._sampled=t.sampled,this._spanId=t.spanId||this._spanId,this._startTime=t.startTimestamp||this._startTime,this._status=t.status,this.tags=t.tags||{},this._traceId=t.traceId||this._traceId,this}getTraceContext(){return XQ(this)}getSpanJSON(){return vc({data:this._getData(),description:this._name,op:this._attributes[l4],parent_span_id:this._parentSpanId,span_id:this._spanId,start_timestamp:this._startTime,status:this._status,tags:Object.keys(this.tags).length>0?this.tags:void 0,timestamp:this._endTime,trace_id:this._traceId,origin:this._attributes[Qy]})}isRecording(){return!this._endTime&&!!this._sampled}toJSON(){return this.getSpanJSON()}_getData(){const{data:t,_attributes:n}=this,r=Object.keys(t).length>0,i=Object.keys(n).length>0;if(!(!r&&!i))return r&&i?{...t,...n}:r?t:n}}class fve extends JQ{constructor(t,n){super(t),this._measurements={},this._contexts={},this._hub=n||jc(),this._name=t.name||"",this._metadata={...t.metadata},this._trimEnd=t.trimEnd,this.transaction=this;const r=this._metadata.dynamicSamplingContext;r&&(this._frozenDynamicSamplingContext={...r})}get name(){return this._name}set name(t){this.setName(t)}get metadata(){return{source:"custom",spanMetadata:{},...this._metadata,...this._attributes[wv]&&{source:this._attributes[wv]},...this._attributes[Wy]&&{sampleRate:this._attributes[Wy]}}}set metadata(t){this._metadata=t}setName(t,n="custom"){this._name=t,this.setAttribute(wv,n)}updateName(t){return this._name=t,this}initSpanRecorder(t=1e3){this.spanRecorder||(this.spanRecorder=new dve(t)),this.spanRecorder.add(this)}setContext(t,n){n===null?delete this._contexts[t]:this._contexts[t]=n}setMeasurement(t,n,r=""){this._measurements[t]={value:n,unit:r}}setMetadata(t){this._metadata={...this._metadata,...t}}end(t){const n=w6(t),r=this._finishTransaction(n);if(r)return this._hub.captureEvent(r)}toContext(){const t=super.toContext();return vc({...t,name:this._name,trimEnd:this._trimEnd})}updateWithContext(t){return super.updateWithContext(t),this._name=t.name||"",this._trimEnd=t.trimEnd,this}getDynamicSamplingContext(){return Px(this)}setHub(t){this._hub=t}_finishTransaction(t){if(this._endTime!==void 0)return;this._name||(zn&&Pt.warn("Transaction has no name, falling back to ``."),this._name=""),super.end(t);const n=this._hub.getClient();if(n&&n.emit&&n.emit("finishTransaction",this),this._sampled!==!0){zn&&Pt.log("[Tracing] Discarding transaction because its trace was not chosen to be sampled."),n&&n.recordDroppedEvent("sample_rate","transaction");return}const r=this.spanRecorder?this.spanRecorder.spans.filter(l=>l!==this&&Zo(l).timestamp):[];if(this._trimEnd&&r.length>0){const l=r.map(u=>Zo(u).timestamp).filter(Boolean);this._endTime=l.reduce((u,c)=>u>c?u:c)}const{metadata:i}=this,{source:a}=i,s={contexts:{...this._contexts,trace:XQ(this)},spans:r,start_timestamp:this._startTime,tags:this.tags,timestamp:this._endTime,transaction:this._name,type:"transaction",sdkProcessingMetadata:{...i,dynamicSamplingContext:Px(this)},...a&&{transaction_info:{source:a}}};return Object.keys(this._measurements).length>0&&(zn&&Pt.log("[Measurements] Adding measurements to transaction",JSON.stringify(this._measurements,void 0,2)),s.measurements=this._measurements),zn&&Pt.log(`[Tracing] Finishing ${this.op} transaction: ${this._name}.`),s}}const h_={idleTimeout:1e3,finalTimeout:3e4,heartbeatInterval:5e3},Nxt="finishReason",sy=["heartbeatFailed","idleTimeout","documentHidden","finalTimeout","externalFinish","cancelled"];class Pxt extends dve{constructor(t,n,r,i){super(i),this._pushActivity=t,this._popActivity=n,this.transactionSpanId=r}add(t){if(t.spanContext().spanId!==this.transactionSpanId){const n=t.end;t.end=(...r)=>(this._popActivity(t.spanContext().spanId),n.apply(t,r)),Zo(t).timestamp===void 0&&this._pushActivity(t.spanContext().spanId)}super.add(t)}}class Mxt extends fve{constructor(t,n,r=h_.idleTimeout,i=h_.finalTimeout,a=h_.heartbeatInterval,s=!1,o=!1){super(t,n),this._idleHub=n,this._idleTimeout=r,this._finalTimeout=i,this._heartbeatInterval=a,this._onScope=s,this.activities={},this._heartbeatCounter=0,this._finished=!1,this._idleTimeoutCanceledPermanently=!1,this._beforeFinishCallbacks=[],this._finishReason=sy[4],this._autoFinishAllowed=!o,s&&(zn&&Pt.log(`Setting idle transaction on scope. Span ID: ${this.spanContext().spanId}`),n.getScope().setSpan(this)),o||this._restartIdleTimeout(),setTimeout(()=>{this._finished||(this.setStatus("deadline_exceeded"),this._finishReason=sy[3],this.end())},this._finalTimeout)}end(t){const n=w6(t);if(this._finished=!0,this.activities={},this.op==="ui.action.click"&&this.setAttribute(Nxt,this._finishReason),this.spanRecorder){zn&&Pt.log("[Tracing] finishing IdleTransaction",new Date(n*1e3).toISOString(),this.op);for(const r of this._beforeFinishCallbacks)r(this,n);this.spanRecorder.spans=this.spanRecorder.spans.filter(r=>{if(r.spanContext().spanId===this.spanContext().spanId)return!0;Zo(r).timestamp||(r.setStatus("cancelled"),r.end(n),zn&&Pt.log("[Tracing] cancelling span since transaction ended early",JSON.stringify(r,void 0,2)));const{start_timestamp:i,timestamp:a}=Zo(r),s=i&&i{this._finished||this._pushActivity(i)},r=i=>{this._finished||this._popActivity(i)};this.spanRecorder=new Pxt(n,r,this.spanContext().spanId,t),zn&&Pt.log("Starting heartbeat"),this._pingHeartbeat()}this.spanRecorder.add(this)}cancelIdleTimeout(t,{restartOnChildSpanChange:n}={restartOnChildSpanChange:!0}){this._idleTimeoutCanceledPermanently=n===!1,this._idleTimeoutID&&(clearTimeout(this._idleTimeoutID),this._idleTimeoutID=void 0,Object.keys(this.activities).length===0&&this._idleTimeoutCanceledPermanently&&(this._finishReason=sy[5],this.end(t)))}setFinishReason(t){this._finishReason=t}sendAutoFinishSignal(){this._autoFinishAllowed||(zn&&Pt.log("[Tracing] Received finish signal for idle transaction."),this._restartIdleTimeout(),this._autoFinishAllowed=!0)}_restartIdleTimeout(t){this.cancelIdleTimeout(),this._idleTimeoutID=setTimeout(()=>{!this._finished&&Object.keys(this.activities).length===0&&(this._finishReason=sy[1],this.end(t))},this._idleTimeout)}_pushActivity(t){this.cancelIdleTimeout(void 0,{restartOnChildSpanChange:!this._idleTimeoutCanceledPermanently}),zn&&Pt.log(`[Tracing] pushActivity: ${t}`),this.activities[t]=!0,zn&&Pt.log("[Tracing] new activities count",Object.keys(this.activities).length)}_popActivity(t){if(this.activities[t]&&(zn&&Pt.log(`[Tracing] popActivity ${t}`),delete this.activities[t],zn&&Pt.log("[Tracing] new activities count",Object.keys(this.activities).length)),Object.keys(this.activities).length===0){const n=hk();this._idleTimeoutCanceledPermanently?this._autoFinishAllowed&&(this._finishReason=sy[5],this.end(n)):this._restartIdleTimeout(n+this._idleTimeout/1e3)}}_beat(){if(this._finished)return;const t=Object.keys(this.activities).join("");t===this._prevHeartbeatString?this._heartbeatCounter++:this._heartbeatCounter=1,this._prevHeartbeatString=t,this._heartbeatCounter>=3?this._autoFinishAllowed&&(zn&&Pt.log("[Tracing] Transaction finished because of no change for 3 heart beats"),this.setStatus("deadline_exceeded"),this._finishReason=sy[0],this.end()):this._pingHeartbeat()}_pingHeartbeat(){zn&&Pt.log(`pinging Heartbeat -> current counter: ${this._heartbeatCounter}`),setTimeout(()=>{this._beat()},this._heartbeatInterval)}}function T6(e){if(typeof __SENTRY_TRACING__=="boolean"&&!__SENTRY_TRACING__)return!1;const t=eo(),n=e||t&&t.getOptions();return!!n&&(n.enableTracing||"tracesSampleRate"in n||"tracesSampler"in n)}function hve(e,t,n){if(!T6(t))return e.sampled=!1,e;if(e.sampled!==void 0)return e.setAttribute(Wy,Number(e.sampled)),e;let r;return typeof t.tracesSampler=="function"?(r=t.tracesSampler(n),e.setAttribute(Wy,Number(r))):n.parentSampled!==void 0?r=n.parentSampled:typeof t.tracesSampleRate<"u"?(r=t.tracesSampleRate,e.setAttribute(Wy,Number(r))):(r=1,e.setAttribute(Wy,r)),Lxt(r)?r?(e.sampled=Math.random()1?(zn&&Pt.warn(`[Tracing] Given sample rate is invalid. Sample rate must be between 0 and 1. Got ${e}.`),!1):!0}function $xt(){const t=this.getScope().getSpan();return t?{"sentry-trace":E6(t)}:{}}function Fxt(e,t){const n=this.getClient(),r=n&&n.getOptions()||{},i=r.instrumenter||"sentry",a=e.instrumenter||"sentry";i!==a&&(zn&&Pt.error(`A transaction was started with instrumenter=\`${a}\`, but the SDK is configured with the \`${i}\` instrumenter. -The transaction will not be sampled. Please use the ${i} instrumentation to start transactions.`),e.sampled=!1);let s=new fve(e,this);return s=hve(s,r,{parentSampled:e.parentSampled,transactionContext:e,...t}),s.isRecording()&&s.initSpanRecorder(r._experiments&&r._experiments.maxSpans),n&&n.emit&&n.emit("startTransaction",s),s}function nie(e,t,n,r,i,a,s,o=!1){const l=e.getClient(),u=l&&l.getOptions()||{};let c=new Mxt(t,e,n,r,s,i,o);return c=hve(c,u,{parentSampled:t.parentSampled,transactionContext:t,...a}),c.isRecording()&&c.initSpanRecorder(u._experiments&&u._experiments.maxSpans),l&&l.emit&&l.emit("startTransaction",c),c}function Bxt(){const e=pk();e.__SENTRY__&&(e.__SENTRY__.extensions=e.__SENTRY__.extensions||{},e.__SENTRY__.extensions.startTransaction||(e.__SENTRY__.extensions.startTransaction=Fxt),e.__SENTRY__.extensions.traceHeaders||(e.__SENTRY__.extensions.traceHeaders=$xt),Ixt())}function pve(e){if(!T6())return;const t=zxt(e),n=jc(),r=e.scope?e.scope.getSpan():Uxt();if(!(e.onlyIfParent&&!r)){if(r)return r.startChild(t);{const a=Q1(),s=Ap(),{traceId:o,dsc:l,parentSpanId:u,sampled:c}={...a.getPropagationContext(),...s.getPropagationContext()};return n.startTransaction({traceId:o,parentSpanId:u,parentSampled:c,...t,metadata:{dynamicSamplingContext:l,...t.metadata}})}}}function Uxt(){return Ap().getSpan()}function zxt(e){if(e.startTime){const t={...e};return t.startTimestamp=w6(e.startTime),delete t.startTime,t}return e}function jxt(e,t,n){const r=cS();r&&r.setMeasurement(e,t,n)}function Hxt(e,t){return t&&(e.sdk=e.sdk||{},e.sdk.name=e.sdk.name||t.name,e.sdk.version=e.sdk.version||t.version,e.sdk.integrations=[...e.sdk.integrations||[],...t.integrations||[]],e.sdk.packages=[...e.sdk.packages||[],...t.packages||[]]),e}function Vxt(e,t,n,r){const i=Jye(n),a={sent_at:new Date().toISOString(),...i&&{sdk:i},...!!r&&t&&{dsn:dk(t)}},s="aggregates"in e?[{type:"sessions"},e]:[{type:"session"},e.toJSON()];return uS(a,[s])}function Wxt(e,t,n,r){const i=Jye(n),a=e.type&&e.type!=="replay_event"?e.type:"event";Hxt(e,n&&n.sdk);const s=Xwt(e,i,r,t);return delete e.sdkProcessingMetadata,uS(s,[[{type:a},e]])}const Qxt="7";function qxt(e){const t=e.protocol?`${e.protocol}:`:"",n=e.port?`:${e.port}`:"";return`${t}//${e.host}${n}${e.path?`/${e.path}`:""}/api/`}function Gxt(e){return`${qxt(e)}${e.projectId}/envelope/`}function Yxt(e,t){return swt({sentry_key:e.publicKey,sentry_version:Qxt,...t&&{sentry_client:`${t.name}/${t.version}`}})}function Zxt(e,t={}){const n=typeof t=="string"?t:t.tunnel,r=typeof t=="string"||!t._metadata?void 0:t._metadata.sdk;return n||`${Gxt(e)}?${Yxt(e,r)}`}const rie=[];function Xxt(e){const t={};return e.forEach(n=>{const{name:r}=n,i=t[r];i&&!i.isDefaultInstance&&n.isDefaultInstance||(t[r]=n)}),Object.keys(t).map(n=>t[n])}function Kxt(e){const t=e.defaultIntegrations||[],n=e.integrations;t.forEach(s=>{s.isDefaultInstance=!0});let r;Array.isArray(n)?r=[...t,...n]:typeof n=="function"?r=Hye(n(t)):r=t;const i=Xxt(r),a=eTt(i,s=>s.name==="Debug");if(a!==-1){const[s]=i.splice(a,1);i.push(s)}return i}function Jxt(e,t){const n={};return t.forEach(r=>{r&&mve(e,r,n)}),n}function iie(e,t){for(const n of t)n&&n.afterAllSetup&&n.afterAllSetup(e)}function mve(e,t,n){if(n[t.name]){zn&&Pt.log(`Integration skipped because it was already installed: ${t.name}`);return}if(n[t.name]=t,rie.indexOf(t.name)===-1&&(t.setupOnce(ixt,jc),rie.push(t.name)),t.setup&&typeof t.setup=="function"&&t.setup(e),e.on&&typeof t.preprocessEvent=="function"){const r=t.preprocessEvent.bind(t);e.on("preprocessEvent",(i,a)=>r(i,a,e))}if(e.addEventProcessor&&typeof t.processEvent=="function"){const r=t.processEvent.bind(t),i=Object.assign((a,s)=>r(a,s,e),{id:t.name});e.addEventProcessor(i)}zn&&Pt.log(`Integration installed: ${t.name}`)}function eTt(e,t){for(let n=0;n0?`|#${r.map(([a,s])=>`${a}:${s}`).join(",")}`:"";t+=`${n.name}@${n.unit}:${n.metric}|${n.metricType}${i}|T${n.timestamp} -`}return t}function nTt(e,t,n,r){const i={sent_at:new Date().toISOString()};n&&n.sdk&&(i.sdk={name:n.sdk.name,version:n.sdk.version}),r&&t&&(i.dsn=dk(t));const a=rTt(e);return uS(i,[a])}function rTt(e){const t=tTt(e);return[{type:"statsd",length:t.length},t]}const aie="Not capturing exception because it's already been captured.";class iTt{constructor(t){if(this._options=t,this._integrations={},this._integrationsInitialized=!1,this._numProcessing=0,this._outcomes={},this._hooks={},this._eventProcessors=[],t.dsn?this._dsn=awt(t.dsn):zn&&Pt.warn("No DSN provided, client will not send events."),this._dsn){const n=Zxt(this._dsn,t);this._transport=t.transport({recordDroppedEvent:this.recordDroppedEvent.bind(this),...t.transportOptions,url:n})}}captureException(t,n,r){if(Ure(t)){zn&&Pt.log(aie);return}let i=n&&n.event_id;return this._process(this.eventFromException(t,n).then(a=>this._captureEvent(a,n,r)).then(a=>{i=a})),i}captureMessage(t,n,r,i){let a=r&&r.event_id;const s=HQ(t)?t:String(t),o=VQ(t)?this.eventFromMessage(s,n,r):this.eventFromException(t,r);return this._process(o.then(l=>this._captureEvent(l,r,i)).then(l=>{a=l})),a}captureEvent(t,n,r){if(n&&n.originalException&&Ure(n.originalException)){zn&&Pt.log(aie);return}let i=n&&n.event_id;return this._process(this._captureEvent(t,n,r).then(a=>{i=a})),i}captureSession(t){typeof t.release!="string"?zn&&Pt.warn("Discarded session because of missing or non-string release"):(this.sendSession(t),x1(t,{init:!1}))}getDsn(){return this._dsn}getOptions(){return this._options}getSdkMetadata(){return this._options._metadata}getTransport(){return this._transport}flush(t){const n=this._transport;return n?(this.metricsAggregator&&this.metricsAggregator.flush(),this._isClientDoneProcessing(t).then(r=>n.flush(t).then(i=>r&&i))):yO(!0)}close(t){return this.flush(t).then(n=>(this.getOptions().enabled=!1,this.metricsAggregator&&this.metricsAggregator.close(),n))}getEventProcessors(){return this._eventProcessors}addEventProcessor(t){this._eventProcessors.push(t)}setupIntegrations(t){(t&&!this._integrationsInitialized||this._isEnabled()&&!this._integrationsInitialized)&&this._setupIntegrations()}init(){this._isEnabled()&&this._setupIntegrations()}getIntegrationById(t){return this.getIntegrationByName(t)}getIntegrationByName(t){return this._integrations[t]}getIntegration(t){try{return this._integrations[t.id]||null}catch{return zn&&Pt.warn(`Cannot retrieve integration ${t.id} from the current Client`),null}}addIntegration(t){const n=this._integrations[t.name];mve(this,t,this._integrations),n||iie(this,[t])}sendEvent(t,n={}){this.emit("beforeSendEvent",t,n);let r=Wxt(t,this._dsn,this._options._metadata,this._options.tunnel);for(const a of n.attachments||[])r=Qwt(r,Ywt(a,this._options.transportOptions&&this._options.transportOptions.textEncoder));const i=this._sendEnvelope(r);i&&i.then(a=>this.emit("afterSendEvent",t,a),null)}sendSession(t){const n=Vxt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}recordDroppedEvent(t,n,r){if(this._options.sendClientReports){const i=`${t}:${n}`;zn&&Pt.log(`Adding outcome: "${i}"`),this._outcomes[i]=this._outcomes[i]+1||1}}captureAggregateMetrics(t){zn&&Pt.log(`Flushing aggregated metrics, number of metrics: ${t.length}`);const n=nTt(t,this._dsn,this._options._metadata,this._options.tunnel);this._sendEnvelope(n)}on(t,n){this._hooks[t]||(this._hooks[t]=[]),this._hooks[t].push(n)}emit(t,...n){this._hooks[t]&&this._hooks[t].forEach(r=>r(...n))}_setupIntegrations(){const{integrations:t}=this._options;this._integrations=Jxt(this,t),iie(this,t),this._integrationsInitialized=!0}_updateSessionFromEvent(t,n){let r=!1,i=!1;const a=n.exception&&n.exception.values;if(a){i=!0;for(const l of a){const u=l.mechanism;if(u&&u.handled===!1){r=!0;break}}}const s=t.status==="ok";(s&&t.errors===0||s&&r)&&(x1(t,{...r&&{status:"crashed"},errors:t.errors||Number(i||r)}),this.captureSession(t))}_isClientDoneProcessing(t){return new pu(n=>{let r=0;const i=1,a=setInterval(()=>{this._numProcessing==0?(clearInterval(a),n(!0)):(r+=i,t&&r>=t&&(clearInterval(a),n(!1)))},i)})}_isEnabled(){return this.getOptions().enabled!==!1&&this._transport!==void 0}_prepareEvent(t,n,r,i=Q1()){const a=this.getOptions(),s=Object.keys(this._integrations);return!n.integrations&&s.length>0&&(n.integrations=s),this.emit("preprocessEvent",t,n),lxt(a,t,n,r,this,i).then(o=>{if(o===null)return o;const l={...i.getPropagationContext(),...r?r.getPropagationContext():void 0};if(!(o.contexts&&o.contexts.trace)&&l){const{traceId:c,spanId:f,parentSpanId:h,dsc:g}=l;o.contexts={trace:{trace_id:c,span_id:f,parent_span_id:h},...o.contexts};const b=g||x6(c,this,r);o.sdkProcessingMetadata={dynamicSamplingContext:b,...o.sdkProcessingMetadata}}return o})}_captureEvent(t,n={},r){return this._processEvent(t,n,r).then(i=>i.event_id,i=>{if(zn){const a=i;a.logLevel==="log"?Pt.log(a.message):Pt.warn(a)}})}_processEvent(t,n,r){const i=this.getOptions(),{sampleRate:a}=i,s=bve(t),o=gve(t),l=t.type||"error",u=`before send for type \`${l}\``;if(o&&typeof a=="number"&&Math.random()>a)return this.recordDroppedEvent("sample_rate","error",t),GQ(new xf(`Discarding event because it's not included in the random sample (sampling rate = ${a})`,"log"));const c=l==="replay_event"?"replay":l;return this._prepareEvent(t,n,r).then(f=>{if(f===null)throw this.recordDroppedEvent("event_processor",c,t),new xf("An event processor returned `null`, will not send event.","log");if(n.data&&n.data.__sentry__===!0)return f;const g=sTt(i,f,n);return aTt(g,u)}).then(f=>{if(f===null)throw this.recordDroppedEvent("before_send",c,t),new xf(`${u} returned \`null\`, will not send event.`,"log");const h=r&&r.getSession();!s&&h&&this._updateSessionFromEvent(h,f);const g=f.transaction_info;if(s&&g&&f.transaction!==t.transaction){const b="custom";f.transaction_info={...g,source:b}}return this.sendEvent(f,n),f}).then(null,f=>{throw f instanceof xf?f:(this.captureException(f,{data:{__sentry__:!0},originalException:f}),new xf(`Event processing pipeline threw an error, original event will not be sent. Details have been sent as a new event. -Reason: ${f}`))})}_process(t){this._numProcessing++,t.then(n=>(this._numProcessing--,n),n=>(this._numProcessing--,n))}_sendEnvelope(t){if(this.emit("beforeEnvelope",t),this._isEnabled()&&this._transport)return this._transport.send(t).then(null,n=>{zn&&Pt.error("Error while sending event:",n)});zn&&Pt.error("Transport disabled")}_clearOutcomes(){const t=this._outcomes;return this._outcomes={},Object.keys(t).map(n=>{const[r,i]=n.split(":");return{reason:r,category:i,quantity:t[n]}})}}function aTt(e,t){const n=`${t} must return \`null\` or a valid event.`;if(v6(e))return e.then(r=>{if(!bO(r)&&r!==null)throw new xf(n);return r},r=>{throw new xf(`${t} rejected with ${r}`)});if(!bO(e)&&e!==null)throw new xf(n);return e}function sTt(e,t,n){const{beforeSend:r,beforeSendTransaction:i}=e;return gve(t)&&r?r(t,n):bve(t)&&i?i(t,n):t}function gve(e){return e.type===void 0}function bve(e){return e.type==="transaction"}function oTt(e,t){t.debug===!0&&(zn?Pt.enable():O6(()=>{console.warn("[Sentry] Cannot initialize SDK with `debug` option using a non-debug bundle.")})),Ap().update(t.initialScope);const r=new e(t);lTt(r),uTt(r)}function lTt(e){const n=jc().getStackTop();n.client=e,n.scope.setClient(e)}function uTt(e){e.init?e.init():e.setupIntegrations&&e.setupIntegrations()}const cTt=30;function yve(e,t,n=Mwt(e.bufferSize||cTt)){let r={};const i=s=>n.drain(s);function a(s){const o=[];if(Wre(s,(f,h)=>{const g=Qre(h);if(nxt(r,g)){const b=sie(f,h);e.recordDroppedEvent("ratelimit_backoff",g,b)}else o.push(f)}),o.length===0)return yO();const l=uS(s[0],o),u=f=>{Wre(l,(h,g)=>{const b=sie(h,g);e.recordDroppedEvent(f,Qre(g),b)})},c=()=>t({body:qwt(l,e.textEncoder)}).then(f=>(f.statusCode!==void 0&&(f.statusCode<200||f.statusCode>=300)&&zn&&Pt.warn(`Sentry responded with status code ${f.statusCode} to sent event.`),r=rxt(r,f),f),f=>{throw u("network_error"),f});return n.add(c).then(f=>f,f=>{if(f instanceof xf)return zn&&Pt.error("Skipped sending event because buffer is full."),u("queue_overflow"),yO();throw f})}return a.__sentry__baseTransport__=!0,{send:a,flush:i}}function sie(e,t){if(!(t!=="event"&&t!=="transaction"))return Array.isArray(e)?e[1]:void 0}function vve(e,t,n=[t],r="npm"){const i=e._metadata||{};i.sdk||(i.sdk={name:`sentry.javascript.${t}`,packages:n.map(a=>({name:`${r}:@sentry/${a}`,version:M9})),version:M9}),e._metadata=i}const dTt=[/^Script error\.?$/,/^Javascript error: Script error\.? on line 0$/],fTt=[/^.*\/healthcheck$/,/^.*\/healthy$/,/^.*\/live$/,/^.*\/ready$/,/^.*\/heartbeat$/,/^.*\/health$/,/^.*\/healthz$/],Ove="InboundFilters",hTt=(e={})=>({name:Ove,setupOnce(){},processEvent(t,n,r){const i=r.getOptions(),a=pTt(e,i);return mTt(t,a)?null:t}}),Sve=hTt;L0(Ove,Sve);function pTt(e={},t={}){return{allowUrls:[...e.allowUrls||[],...t.allowUrls||[]],denyUrls:[...e.denyUrls||[],...t.denyUrls||[]],ignoreErrors:[...e.ignoreErrors||[],...t.ignoreErrors||[],...e.disableErrorDefaults?[]:dTt],ignoreTransactions:[...e.ignoreTransactions||[],...t.ignoreTransactions||[],...e.disableTransactionDefaults?[]:fTt],ignoreInternal:e.ignoreInternal!==void 0?e.ignoreInternal:!0}}function mTt(e,t){return t.ignoreInternal&&STt(e)?(zn&&Pt.warn(`Event dropped due to being internal Sentry Error. -Event: ${ym(e)}`),!0):gTt(e,t.ignoreErrors)?(zn&&Pt.warn(`Event dropped due to being matched by \`ignoreErrors\` option. -Event: ${ym(e)}`),!0):bTt(e,t.ignoreTransactions)?(zn&&Pt.warn(`Event dropped due to being matched by \`ignoreTransactions\` option. -Event: ${ym(e)}`),!0):yTt(e,t.denyUrls)?(zn&&Pt.warn(`Event dropped due to being matched by \`denyUrls\` option. -Event: ${ym(e)}. -Url: ${k5(e)}`),!0):vTt(e,t.allowUrls)?!1:(zn&&Pt.warn(`Event dropped due to not being matched by \`allowUrls\` option. -Event: ${ym(e)}. -Url: ${k5(e)}`),!0)}function gTt(e,t){return e.type||!t||!t.length?!1:OTt(e).some(n=>ck(n,t))}function bTt(e,t){if(e.type!=="transaction"||!t||!t.length)return!1;const n=e.transaction;return n?ck(n,t):!1}function yTt(e,t){if(!t||!t.length)return!1;const n=k5(e);return n?ck(n,t):!1}function vTt(e,t){if(!t||!t.length)return!0;const n=k5(e);return n?ck(n,t):!0}function OTt(e){const t=[];e.message&&t.push(e.message);let n;try{n=e.exception.values[e.exception.values.length-1]}catch{}return n&&n.value&&(t.push(n.value),n.type&&t.push(`${n.type}: ${n.value}`)),zn&&t.length===0&&Pt.error(`Could not extract message for event ${ym(e)}`),t}function STt(e){try{return e.exception.values[0].type==="SentryError"}catch{}return!1}function ETt(e=[]){for(let t=e.length-1;t>=0;t--){const n=e[t];if(n&&n.filename!==""&&n.filename!=="[native code]")return n.filename||null}return null}function k5(e){try{let t;try{t=e.exception.values[0].stacktrace.frames}catch{}return t?ETt(t):null}catch{return zn&&Pt.error(`Cannot extract url for event ${ym(e)}`),null}}let oie;const Eve="FunctionToString",lie=new WeakMap,wTt=()=>({name:Eve,setupOnce(){oie=Function.prototype.toString;try{Function.prototype.toString=function(...e){const t=QQ(this),n=lie.has(eo())&&t!==void 0?t:this;return oie.apply(n,e)}}catch{}},setup(e){lie.set(e,!0)}}),wve=wTt;L0(Eve,wve);const oa=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__,si=oi;function xTt(){si&&si.document?si.document.addEventListener("visibilitychange",()=>{const e=cS();if(si.document.hidden&&e){const t="cancelled",{op:n,status:r}=Zo(e);oa&&Pt.log(`[Tracing] Transaction: ${t} -> since tab moved to the background, op: ${n}`),r||e.setStatus(t),e.setTag("visibilitychange","document.hidden"),e.end()}}):oa&&Pt.warn("[Tracing] Could not set up background tab detection due to lack of global document")}const eq=(e,t,n)=>{let r,i;return a=>{t.value>=0&&(a||n)&&(i=t.value-(r||0),(i||r===void 0)&&(r=t.value,t.delta=i,e(t)))}},TTt=()=>`v3-${Date.now()}-${Math.floor(Math.random()*(9e12-1))+1e12}`,kTt=()=>{const e=si.performance.timing,t=si.performance.navigation.type,n={entryType:"navigation",startTime:0,type:t==2?"back_forward":t===1?"reload":"navigate"};for(const r in e)r!=="navigationStart"&&r!=="toJSON"&&(n[r]=Math.max(e[r]-e.navigationStart,0));return n},xve=()=>si.__WEB_VITALS_POLYFILL__?si.performance&&(performance.getEntriesByType&&performance.getEntriesByType("navigation")[0]||kTt()):si.performance&&performance.getEntriesByType&&performance.getEntriesByType("navigation")[0],Tve=()=>{const e=xve();return e&&e.activationStart||0},tq=(e,t)=>{const n=xve();let r="navigate";return n&&(si.document.prerendering||Tve()>0?r="prerender":r=n.type.replace(/_/g,"-")),{name:e,value:typeof t>"u"?-1:t,rating:"good",delta:0,entries:[],id:TTt(),navigationType:r}},k6=(e,t,n)=>{try{if(PerformanceObserver.supportedEntryTypes.includes(e)){const r=new PerformanceObserver(i=>{t(i.getEntries())});return r.observe(Object.assign({type:e,buffered:!0},n||{})),r}}catch{}},C6=(e,t)=>{const n=r=>{(r.type==="pagehide"||si.document.visibilityState==="hidden")&&(e(r),t&&(removeEventListener("visibilitychange",n,!0),removeEventListener("pagehide",n,!0)))};addEventListener("visibilitychange",n,!0),addEventListener("pagehide",n,!0)},CTt=e=>{const t=tq("CLS",0);let n,r=0,i=[];const a=o=>{o.forEach(l=>{if(!l.hadRecentInput){const u=i[0],c=i[i.length-1];r&&i.length!==0&&l.startTime-c.startTime<1e3&&l.startTime-u.startTime<5e3?(r+=l.value,i.push(l)):(r=l.value,i=[l]),r>t.value&&(t.value=r,t.entries=i,n&&n())}})},s=k6("layout-shift",a);if(s){n=eq(e,t);const o=()=>{a(s.takeRecords()),n(!0)};return C6(o),o}};let p_=-1;const ATt=()=>si.document.visibilityState==="hidden"&&!si.document.prerendering?0:1/0,_Tt=()=>{C6(({timeStamp:e})=>{p_=e},!0)},nq=()=>(p_<0&&(p_=ATt(),_Tt()),{get firstHiddenTime(){return p_}}),RTt=e=>{const t=nq(),n=tq("FID");let r;const i=o=>{o.startTime{o.forEach(i)},s=k6("first-input",a);r=eq(e,n),s&&C6(()=>{a(s.takeRecords()),s.disconnect()},!0)},uie={},ITt=e=>{const t=nq(),n=tq("LCP");let r;const i=s=>{const o=s[s.length-1];if(o){const l=Math.max(o.startTime-Tve(),0);l{uie[n.id]||(i(a.takeRecords()),a.disconnect(),uie[n.id]=!0,r(!0))};return["keydown","click"].forEach(o=>{addEventListener(o,s,{once:!0,capture:!0})}),C6(s,!0),s}},cw={},C5={};let kve,Cve,Ave;function DTt(e,t=!1){return iq("cls",e,MTt,kve,t)}function NTt(e,t=!1){return iq("lcp",e,$Tt,Ave,t)}function PTt(e){return iq("fid",e,LTt,Cve)}function rq(e,t){return _ve(e,t),C5[e]||(FTt(e),C5[e]=!0),Rve(e,t)}function A6(e,t){const n=cw[e];if(!(!n||!n.length))for(const r of n)try{r(t)}catch(i){oa&&Pt.error(`Error while triggering instrumentation handler. -Type: ${e} -Name: ${bp(r)} -Error:`,i)}}function MTt(){return CTt(e=>{A6("cls",{metric:e}),kve=e})}function LTt(){return RTt(e=>{A6("fid",{metric:e}),Cve=e})}function $Tt(){return ITt(e=>{A6("lcp",{metric:e}),Ave=e})}function iq(e,t,n,r,i=!1){_ve(e,t);let a;return C5[e]||(a=n(),C5[e]=!0),r&&t({metric:r}),Rve(e,t,i?a:void 0)}function FTt(e){const t={};e==="event"&&(t.durationThreshold=0),k6(e,n=>{A6(e,{entries:n})},t)}function _ve(e,t){cw[e]=cw[e]||[],cw[e].push(t)}function Rve(e,t,n){return()=>{n&&n();const r=cw[e];if(!r)return;const i=r.indexOf(t);i!==-1&&r.splice(i,1)}}function A7(e){return typeof e=="number"&&isFinite(e)}function vO(e,{startTimestamp:t,...n}){return t&&e.startTimestamp>t&&(e.startTimestamp=t),e.startChild({startTimestamp:t,...n})}const BTt=2147483647;function rs(e){return e/1e3}function Ive(){return si&&si.addEventListener&&si.performance}let cie=0,Ra={},df,dw;function UTt(){const e=Ive();if(e&&Gf){e.mark&&si.performance.mark("sentry-tracing-init");const t=WTt(),n=HTt(),r=VTt();return()=>{t(),n(),r()}}return()=>{}}function zTt(){rq("longtask",({entries:e})=>{for(const t of e){const n=cS();if(!n)return;const r=rs(Gf+t.startTime),i=rs(t.duration);n.startChild({description:"Main UI thread blocked",op:"ui.long-task",origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i})}})}function jTt(){rq("event",({entries:e})=>{for(const t of e){const n=cS();if(!n)return;if(t.name==="click"){const r=rs(Gf+t.startTime),i=rs(t.duration),a={description:Ix(t.target),op:`ui.interaction.${t.name}`,origin:"auto.ui.browser.metrics",startTimestamp:r,endTimestamp:r+i},s=Lye(t.target);s&&(a.attributes={"ui.component_name":s}),n.startChild(a)}}})}function HTt(){return DTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oa&&Pt.log("[Measurements] Adding CLS"),Ra.cls={value:e.value,unit:""},dw=t)},!0)}function VTt(){return NTt(({metric:e})=>{const t=e.entries[e.entries.length-1];t&&(oa&&Pt.log("[Measurements] Adding LCP"),Ra.lcp={value:e.value,unit:"millisecond"},df=t)},!0)}function WTt(){return PTt(({metric:e})=>{const t=e.entries[e.entries.length-1];if(!t)return;const n=rs(Gf),r=rs(t.startTime);oa&&Pt.log("[Measurements] Adding FID"),Ra.fid={value:e.value,unit:"millisecond"},Ra["mark.fid"]={value:n+r,unit:"second"}})}function QTt(e){const t=Ive();if(!t||!si.performance.getEntries||!Gf)return;oa&&Pt.log("[Tracing] Adding & adjusting spans using Performance API");const n=rs(Gf),r=t.getEntries();let i,a;const{op:s,start_timestamp:o}=Zo(e);if(r.slice(cie).forEach(l=>{const u=rs(l.startTime),c=rs(l.duration);if(!(e.op==="navigation"&&o&&n+u{if(!Ra[u]||!o||n>=o)return;const c=Ra[u].value,f=n+rs(c),h=Math.abs((f-o)*1e3),g=h-c;oa&&Pt.log(`[Measurements] Normalized ${u} from ${c} to ${h} (${g})`),Ra[u].value=h});const l=Ra["mark.fid"];l&&Ra.fid&&(vO(e,{description:"first input delay",endTimestamp:l.value+rs(Ra.fid.value),op:"ui.action",origin:"auto.ui.browser.metrics",startTimestamp:l.value}),delete Ra["mark.fid"]),"fcp"in Ra||delete Ra.cls,Object.keys(Ra).forEach(u=>{jxt(u,Ra[u].value,Ra[u].unit)}),KTt(e)}df=void 0,dw=void 0,Ra={}}function qTt(e,t,n,r,i){const a=i+n,s=a+r;return vO(e,{description:t.name,endTimestamp:s,op:t.entryType,origin:"auto.resource.browser.metrics",startTimestamp:a}),a}function GTt(e,t,n){["unloadEvent","redirect","domContentLoadedEvent","loadEvent","connect"].forEach(r=>{u4(e,t,r,n)}),u4(e,t,"secureConnection",n,"TLS/SSL","connectEnd"),u4(e,t,"fetch",n,"cache","domainLookupStart"),u4(e,t,"domainLookup",n,"DNS"),YTt(e,t,n)}function u4(e,t,n,r,i,a){const s=a?t[a]:t[`${n}End`],o=t[`${n}Start`];!o||!s||vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:i||n,startTimestamp:r+rs(o),endTimestamp:r+rs(s)})}function YTt(e,t,n){t.responseEnd&&(vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"request",startTimestamp:n+rs(t.requestStart),endTimestamp:n+rs(t.responseEnd)}),vO(e,{op:"browser",origin:"auto.browser.browser.metrics",description:"response",startTimestamp:n+rs(t.responseStart),endTimestamp:n+rs(t.responseEnd)}))}function ZTt(e,t,n,r,i,a){if(t.initiatorType==="xmlhttprequest"||t.initiatorType==="fetch")return;const s=f_(n),o={};_7(o,t,"transferSize","http.response_transfer_size"),_7(o,t,"encodedBodySize","http.response_content_length"),_7(o,t,"decodedBodySize","http.decoded_response_content_length"),"renderBlockingStatus"in t&&(o["resource.render_blocking_status"]=t.renderBlockingStatus),s.protocol&&(o["url.scheme"]=s.protocol.split(":").pop()),s.host&&(o["server.address"]=s.host),o["url.same_origin"]=n.includes(si.location.origin);const l=a+r,u=l+i;vO(e,{description:n.replace(si.location.origin,""),endTimestamp:u,op:t.initiatorType?`resource.${t.initiatorType}`:"resource.other",origin:"auto.resource.browser.metrics",startTimestamp:l,data:o})}function XTt(e){const t=si.navigator;if(!t)return;const n=t.connection;n&&(n.effectiveType&&e.setTag("effectiveConnectionType",n.effectiveType),n.type&&e.setTag("connectionType",n.type),A7(n.rtt)&&(Ra["connection.rtt"]={value:n.rtt,unit:"millisecond"})),A7(t.deviceMemory)&&e.setTag("deviceMemory",`${t.deviceMemory} GB`),A7(t.hardwareConcurrency)&&e.setTag("hardwareConcurrency",String(t.hardwareConcurrency))}function KTt(e){df&&(oa&&Pt.log("[Measurements] Adding LCP Data"),df.element&&e.setTag("lcp.element",Ix(df.element)),df.id&&e.setTag("lcp.id",df.id),df.url&&e.setTag("lcp.url",df.url.trim().slice(0,200)),e.setTag("lcp.size",df.size)),dw&&dw.sources&&(oa&&Pt.log("[Measurements] Adding CLS Data"),dw.sources.forEach((t,n)=>e.setTag(`cls.source.${n+1}`,Ix(t.node))))}function _7(e,t,n,r){const i=t[n];i!=null&&i0&&h.setAttribute("http.response_content_length",b)}}else e.error&&h.setStatus("internal_error");h.end(),delete r[f]}return}const s=Ap(),o=eo(),{method:l,url:u}=e.fetchData,c=a?pve({name:`${l} ${u}`,onlyIfParent:!0,attributes:{url:u,type:"fetch","http.method":l,[Qy]:i},op:"http.client"}):void 0;if(c&&(e.fetchData.__span=c.spanContext().spanId,r[c.spanContext().spanId]=c),n(e.fetchData.url)&&o){const f=e.args[0];e.args[1]=e.args[1]||{};const h=e.args[1];h.headers=tkt(f,o,s,h,c)}return c}function tkt(e,t,n,r,i){const a=i||n.getSpan(),s=Q1(),{traceId:o,spanId:l,sampled:u,dsc:c}={...s.getPropagationContext(),...n.getPropagationContext()},f=a?E6(a):YQ(o,l,u),h=Kye(c||(a?Px(a):x6(o,t,n))),g=r.headers||(typeof Request<"u"&&gp(e,Request)?e.headers:void 0);if(g)if(typeof Headers<"u"&&gp(g,Headers)){const b=new Headers(g);return b.append("sentry-trace",f),h&&b.append(N9,h),b}else if(Array.isArray(g)){const b=[...g,["sentry-trace",f]];return h&&b.push([N9,h]),b}else{const b="baggage"in g?g.baggage:void 0,S=[];return Array.isArray(b)?S.push(...b):b&&S.push(b),h&&S.push(h),{...g,"sentry-trace":f,baggage:S.length>0?S.join(","):void 0}}else return{"sentry-trace":f,baggage:h}}const F9=["localhost",/^\/(?!\/)/],B9={traceFetch:!0,traceXHR:!0,enableHTTPTimings:!0,tracingOrigins:F9,tracePropagationTargets:F9};function nkt(e){const{traceFetch:t,traceXHR:n,tracePropagationTargets:r,tracingOrigins:i,shouldCreateSpanForRequest:a,enableHTTPTimings:s}={traceFetch:B9.traceFetch,traceXHR:B9.traceXHR,...e},o=typeof a=="function"?a:c=>!0,l=c=>skt(c,r||i),u={};t&&Wye(c=>{const f=ekt(c,o,l,u);s&&f&&die(f)}),n&&Gye(c=>{const f=okt(c,o,l,u);s&&f&&die(f)})}function rkt(e){return e.entryType==="resource"&&"initiatorType"in e&&typeof e.nextHopProtocol=="string"&&(e.initiatorType==="fetch"||e.initiatorType==="xmlhttprequest")}function die(e){const{url:t}=Zo(e).data||{};if(!t||typeof t!="string")return;const n=rq("resource",({entries:r})=>{r.forEach(i=>{rkt(i)&&i.name.endsWith(t)&&(akt(i).forEach(s=>e.setAttribute(...s)),setTimeout(n))})})}function ikt(e){let t="unknown",n="unknown",r="";for(const i of e){if(i==="/"){[t,n]=e.split("/");break}if(!isNaN(Number(i))){t=r==="h"?"http":r,n=e.split(r)[1];break}r+=i}return r===e&&(t=r),{name:t,version:n}}function sf(e=0){return((Gf||performance.timeOrigin)+e)/1e3}function akt(e){const{name:t,version:n}=ikt(e.nextHopProtocol),r=[];return r.push(["network.protocol.version",n],["network.protocol.name",t]),Gf?[...r,["http.request.redirect_start",sf(e.redirectStart)],["http.request.fetch_start",sf(e.fetchStart)],["http.request.domain_lookup_start",sf(e.domainLookupStart)],["http.request.domain_lookup_end",sf(e.domainLookupEnd)],["http.request.connect_start",sf(e.connectStart)],["http.request.secure_connection_start",sf(e.secureConnectionStart)],["http.request.connection_end",sf(e.connectEnd)],["http.request.request_start",sf(e.requestStart)],["http.request.response_start",sf(e.responseStart)],["http.request.response_end",sf(e.responseEnd)]]:r}function skt(e,t){return ck(e,t||F9)}function okt(e,t,n,r){const i=e.xhr,a=i&&i[Vy];if(!T6()||!i||i.__sentry_own_request__||!a)return;const s=t(a.url);if(e.endTimestamp&&s){const f=i.__sentry_xhr_span_id__;if(!f)return;const h=r[f];h&&a.status_code!==void 0&&(KQ(h,a.status_code),h.end(),delete r[f]);return}const o=Ap(),l=Q1(),u=s?pve({name:`${a.method} ${a.url}`,onlyIfParent:!0,attributes:{type:"xhr","http.method":a.method,url:a.url,[Qy]:"auto.http.browser"},op:"http.client"}):void 0;u&&(i.__sentry_xhr_span_id__=u.spanContext().spanId,r[i.__sentry_xhr_span_id__]=u);const c=eo();if(i.setRequestHeader&&n(a.url)&&c){const{traceId:f,spanId:h,sampled:g,dsc:b}={...l.getPropagationContext(),...o.getPropagationContext()},S=u?E6(u):YQ(f,h,g),w=Kye(b||(u?Px(u):x6(f,c,o)));lkt(i,S,w)}return u}function lkt(e,t,n){try{e.setRequestHeader("sentry-trace",t),n&&e.setRequestHeader(N9,n)}catch{}}function ukt(e,t=!0,n=!0){if(!si||!si.location){oa&&Pt.warn("Could not initialize routing instrumentation due to invalid location");return}let r=si.location.href,i;t&&(i=e({name:si.location.pathname,startTimestamp:Gf?Gf/1e3:void 0,op:"pageload",origin:"auto.pageload.browser",metadata:{source:"url"}})),n&&qQ(({to:a,from:s})=>{if(s===void 0&&r&&r.indexOf(a)!==-1){r=void 0;return}s!==a&&(r=void 0,i&&(oa&&Pt.log(`[Tracing] Finishing current transaction with op: ${i.op}`),i.end()),i=e({name:si.location.pathname,op:"navigation",origin:"auto.navigation.browser",metadata:{source:"url"}}))})}const ckt="BrowserTracing",dkt={...h_,markBackgroundTransactions:!0,routingInstrumentation:ukt,startTransactionOnLocationChange:!0,startTransactionOnPageLoad:!0,enableLongTask:!0,_experiments:{},...B9};class fkt{constructor(t){this.name=ckt,this._hasSetTracePropagationTargets=!1,Bxt(),oa&&(this._hasSetTracePropagationTargets=!!(t&&(t.tracePropagationTargets||t.tracingOrigins))),this.options={...dkt,...t},this.options._experiments.enableLongTask!==void 0&&(this.options.enableLongTask=this.options._experiments.enableLongTask),t&&!t.tracePropagationTargets&&t.tracingOrigins&&(this.options.tracePropagationTargets=t.tracingOrigins),this._collectWebVitals=UTt(),this.options.enableLongTask&&zTt(),this.options._experiments.enableInteractions&&jTt()}setupOnce(t,n){this._getCurrentHub=n;const i=n().getClient(),a=i&&i.getOptions(),{routingInstrumentation:s,startTransactionOnLocationChange:o,startTransactionOnPageLoad:l,markBackgroundTransactions:u,traceFetch:c,traceXHR:f,shouldCreateSpanForRequest:h,enableHTTPTimings:g,_experiments:b}=this.options,S=a&&a.tracePropagationTargets,w=S||this.options.tracePropagationTargets;oa&&this._hasSetTracePropagationTargets&&S&&Pt.warn("[Tracing] The `tracePropagationTargets` option was set in the BrowserTracing integration and top level `Sentry.init`. The top level `Sentry.init` value is being used."),s(E=>{const x=this._createRouteTransaction(E);return this.options._experiments.onStartRouteTransaction&&this.options._experiments.onStartRouteTransaction(x,E,n),x},l,o),u&&xTt(),b.enableInteractions&&this._registerInteractionListener(),nkt({traceFetch:c,traceXHR:f,tracePropagationTargets:w,shouldCreateSpanForRequest:h,enableHTTPTimings:g})}_createRouteTransaction(t){if(!this._getCurrentHub){oa&&Pt.warn(`[Tracing] Did not create ${t.op} transaction because _getCurrentHub is invalid.`);return}const n=this._getCurrentHub(),{beforeNavigate:r,idleTimeout:i,finalTimeout:a,heartbeatInterval:s}=this.options,o=t.op==="pageload";let l;if(o){const g=o?fie("sentry-trace"):"",b=o?fie("baggage"):void 0,{traceparentData:S,dynamicSamplingContext:w}=Wwt(g,b);l={...t,...S,metadata:{...t.metadata,dynamicSamplingContext:S&&!w?{}:w},trimEnd:!0}}else l={...t,trimEnd:!0};const u=typeof r=="function"?r(l):l,c=u===void 0?{...l,sampled:!1}:u;c.metadata=c.name!==l.name?{...c.metadata,source:"custom"}:c.metadata,this._latestRouteName=c.name,this._latestRouteSource=hkt(c),c.sampled===!1&&oa&&Pt.log(`[Tracing] Will not send ${c.op} transaction because of beforeNavigate.`),oa&&Pt.log(`[Tracing] Starting ${c.op} transaction on scope`);const{location:f}=si,h=nie(n,c,i,a,!0,{location:f},s,o);return o&&(si.document.addEventListener("readystatechange",()=>{["interactive","complete"].includes(si.document.readyState)&&h.sendAutoFinishSignal()}),["interactive","complete"].includes(si.document.readyState)&&h.sendAutoFinishSignal()),h.registerBeforeFinishCallback(g=>{this._collectWebVitals(),QTt(g)}),h}_registerInteractionListener(){let t;const n=()=>{const{idleTimeout:r,finalTimeout:i,heartbeatInterval:a}=this.options,s="ui.action.click",o=cS();if(o&&o.op&&["navigation","pageload"].includes(o.op)){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because a pageload or navigation transaction is in progress.`);return}if(t&&(t.setFinishReason("interactionInterrupted"),t.end(),t=void 0),!this._getCurrentHub){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because _getCurrentHub is invalid.`);return}if(!this._latestRouteName){oa&&Pt.warn(`[Tracing] Did not create ${s} transaction because _latestRouteName is missing.`);return}const l=this._getCurrentHub(),{location:u}=si,c={name:this._latestRouteName,op:s,trimEnd:!0,data:{[wv]:this._latestRouteSource||"url"}};t=nie(l,c,r,i,!0,{location:u},a)};["click"].forEach(r=>{addEventListener(r,n,{once:!1,capture:!0})})}}function fie(e){const t=K2t(`meta[name=${e}]`);return t?t.getAttribute("content"):void 0}function hkt(e){const t=e.attributes&&e.attributes[wv],n=e.data&&e.data[wv],r=e.metadata&&e.metadata.source;return t||n||r}const ci=oi;let U9=0;function Dve(){return U9>0}function pkt(){U9++,setTimeout(()=>{U9--})}function OO(e,t={},n){if(typeof e!="function")return e;try{const i=e.__sentry_wrapped__;if(i)return i;if(QQ(e))return e}catch{return e}const r=function(){const i=Array.prototype.slice.call(arguments);try{n&&typeof n=="function"&&n.apply(this,arguments);const a=i.map(s=>OO(s,t));return e.apply(this,a)}catch(a){throw pkt(),Oxt(s=>{s.addEventProcessor(o=>(t.mechanism&&(k9(o,void 0,void 0),Nx(o,t.mechanism)),o.extra={...o.extra,arguments:i},o)),vxt(a)}),a}};try{for(const i in e)Object.prototype.hasOwnProperty.call(e,i)&&(r[i]=e[i])}catch{}Fye(r,e),Dx(e,"__sentry_wrapped__",r);try{Object.getOwnPropertyDescriptor(r,"name").configurable&&Object.defineProperty(r,"name",{get(){return e.name}})}catch{}return r}const Qh=typeof __SENTRY_DEBUG__>"u"||__SENTRY_DEBUG__;function Nve(e,t){const n=aq(e,t),r={type:t&&t.name,value:ykt(t)};return n.length&&(r.stacktrace={frames:n}),r.type===void 0&&r.value===""&&(r.value="Unrecoverable error caught"),r}function mkt(e,t,n,r){const i=eo(),a=i&&i.getOptions().normalizeDepth,s={exception:{values:[{type:y6(t)?t.constructor.name:r?"UnhandledRejection":"Error",value:Skt(t,{isUnhandledRejection:r})}]},extra:{__serialized__:Yye(t,a)}};if(n){const o=aq(e,n);o.length&&(s.exception.values[0].stacktrace={frames:o})}return s}function R7(e,t){return{exception:{values:[Nve(e,t)]}}}function aq(e,t){const n=t.stacktrace||t.stack||"",r=bkt(t);try{return e(n,r)}catch{}return[]}const gkt=/Minified React error #\d+;/i;function bkt(e){if(e){if(typeof e.framesToPop=="number")return e.framesToPop;if(gkt.test(e.message))return 1}return 0}function ykt(e){const t=e&&e.message;return t?t.error&&typeof t.error.message=="string"?t.error.message:t:"No error message"}function vkt(e,t,n,r){const i=n&&n.syntheticException||void 0,a=sq(e,t,i,r);return Nx(a),a.level="error",n&&n.event_id&&(a.event_id=n.event_id),yO(a)}function Okt(e,t,n="info",r,i){const a=r&&r.syntheticException||void 0,s=z9(e,t,a,i);return s.level=n,r&&r.event_id&&(s.event_id=r.event_id),yO(s)}function sq(e,t,n,r,i){let a;if(jQ(t)&&t.error)return R7(e,t.error);if(Ire(t)||j2t(t)){const s=t;if("stack"in t)a=R7(e,t);else{const o=s.name||(Ire(s)?"DOMError":"DOMException"),l=s.message?`${o}: ${s.message}`:o;a=z9(e,l,n,r),k9(a,l)}return"code"in s&&(a.tags={...a.tags,"DOMException.code":`${s.code}`}),a}return Dye(t)?R7(e,t):bO(t)||y6(t)?(a=mkt(e,t,n,i),Nx(a,{synthetic:!0}),a):(a=z9(e,t,n,r),k9(a,`${t}`,void 0),Nx(a,{synthetic:!0}),a)}function z9(e,t,n,r){const i={};if(r&&n){const a=aq(e,n);a.length&&(i.exception={values:[{value:t,stacktrace:{frames:a}}]})}if(HQ(t)){const{__sentry_template_string__:a,__sentry_template_values__:s}=t;return i.logentry={message:a,params:s},i}return i.message=t,i}function Skt(e,{isUnhandledRejection:t}){const n=owt(e),r=t?"promise rejection":"exception";return jQ(e)?`Event \`ErrorEvent\` captured as ${r} with message \`${e.message}\``:y6(e)?`Event \`${Ekt(e)}\` (type=${e.type}) captured as ${r}`:`Object captured as ${r} with keys: ${n}`}function Ekt(e){try{const t=Object.getPrototypeOf(e);return t?t.constructor.name:void 0}catch{}}function wkt(e,{metadata:t,tunnel:n,dsn:r}){const i={event_id:e.event_id,sent_at:new Date().toISOString(),...t&&t.sdk&&{sdk:{name:t.sdk.name,version:t.sdk.version}},...!!n&&!!r&&{dsn:dk(r)}},a=xkt(e);return uS(i,[a])}function xkt(e){return[{type:"user_report"},e]}class Tkt extends iTt{constructor(t){const n=ci.SENTRY_SDK_SOURCE||_wt();vve(t,"browser",["browser"],n),super(t),t.sendClientReports&&ci.document&&ci.document.addEventListener("visibilitychange",()=>{ci.document.visibilityState==="hidden"&&this._flushOutcomes()})}eventFromException(t,n){return vkt(this._options.stackParser,t,n,this._options.attachStacktrace)}eventFromMessage(t,n="info",r){return Okt(this._options.stackParser,t,n,r,this._options.attachStacktrace)}captureUserFeedback(t){if(!this._isEnabled()){Qh&&Pt.warn("SDK not enabled, will not capture user feedback.");return}const n=wkt(t,{metadata:this.getSdkMetadata(),dsn:this.getDsn(),tunnel:this.getOptions().tunnel});this._sendEnvelope(n)}_prepareEvent(t,n,r){return t.platform=t.platform||"javascript",super._prepareEvent(t,n,r)}_flushOutcomes(){const t=this._clearOutcomes();if(t.length===0){Qh&&Pt.log("No outcomes to send");return}if(!this._dsn){Qh&&Pt.log("No dsn provided, will not send outcomes");return}Qh&&Pt.log("Sending outcomes:",t);const n=Kwt(t,this._options.tunnel&&dk(this._dsn));this._sendEnvelope(n)}}let y2;function kkt(){if(y2)return y2;if(R9(ci.fetch))return y2=ci.fetch.bind(ci);const e=ci.document;let t=ci.fetch;if(e&&typeof e.createElement=="function")try{const n=e.createElement("iframe");n.hidden=!0,e.head.appendChild(n);const r=n.contentWindow;r&&r.fetch&&(t=r.fetch),e.head.removeChild(n)}catch(n){Qh&&Pt.warn("Could not create sandbox iframe for pure fetch check, bailing to window.fetch: ",n)}return y2=t.bind(ci)}function Ckt(){y2=void 0}function Akt(e,t=kkt()){let n=0,r=0;function i(a){const s=a.body.length;n+=s,r++;const o={body:a.body,method:"POST",referrerPolicy:"origin",headers:e.headers,keepalive:n<=6e4&&r<15,...e.fetchOptions};try{return t(e.url,o).then(l=>(n-=s,r--,{statusCode:l.status,headers:{"x-sentry-rate-limits":l.headers.get("X-Sentry-Rate-Limits"),"retry-after":l.headers.get("Retry-After")}}))}catch(l){return Ckt(),n-=s,r--,GQ(l)}}return yve(e,i)}const _kt=4;function Rkt(e){function t(n){return new pu((r,i)=>{const a=new XMLHttpRequest;a.onerror=i,a.onreadystatechange=()=>{a.readyState===_kt&&r({statusCode:a.status,headers:{"x-sentry-rate-limits":a.getResponseHeader("X-Sentry-Rate-Limits"),"retry-after":a.getResponseHeader("Retry-After")}})},a.open("POST",e.url);for(const s in e.headers)Object.prototype.hasOwnProperty.call(e.headers,s)&&a.setRequestHeader(s,e.headers[s]);a.send(n.body)})}return yve(e,t)}const _6="?",Ikt=30,Dkt=40,Nkt=50;function oq(e,t,n,r){const i={filename:e,function:t,in_app:!0};return n!==void 0&&(i.lineno=n),r!==void 0&&(i.colno=r),i}const Pkt=/^\s*at (?:(.+?\)(?: \[.+\])?|.*?) ?\((?:address at )?)?(?:async )?((?:|[-a-z]+:|.*bundle|\/)?.*?)(?::(\d+))?(?::(\d+))?\)?\s*$/i,Mkt=/\((\S*)(?::(\d+))(?::(\d+))\)/,Lkt=e=>{const t=Pkt.exec(e);if(t){if(t[2]&&t[2].indexOf("eval")===0){const a=Mkt.exec(t[2]);a&&(t[2]=a[1],t[3]=a[2],t[4]=a[3])}const[r,i]=Pve(t[1]||_6,t[2]);return oq(i,r,t[3]?+t[3]:void 0,t[4]?+t[4]:void 0)}},$kt=[Ikt,Lkt],Fkt=/^\s*(.*?)(?:\((.*?)\))?(?:^|@)?((?:[-a-z]+)?:\/.*?|\[native code\]|[^@]*(?:bundle|\d+\.js)|\/[\w\-. /=]+)(?::(\d+))?(?::(\d+))?\s*$/i,Bkt=/(\S+) line (\d+)(?: > eval line \d+)* > eval/i,Ukt=e=>{const t=Fkt.exec(e);if(t){if(t[3]&&t[3].indexOf(" > eval")>-1){const a=Bkt.exec(t[3]);a&&(t[1]=t[1]||"eval",t[3]=a[1],t[4]=a[2],t[5]="")}let r=t[3],i=t[1]||_6;return[i,r]=Pve(i,r),oq(r,i,t[4]?+t[4]:void 0,t[5]?+t[5]:void 0)}},zkt=[Nkt,Ukt],jkt=/^\s*at (?:((?:\[object object\])?.+) )?\(?((?:[-a-z]+):.*?):(\d+)(?::(\d+))?\)?\s*$/i,Hkt=e=>{const t=jkt.exec(e);return t?oq(t[2],t[1]||_6,+t[3],t[4]?+t[4]:void 0):void 0},Vkt=[Dkt,Hkt],Wkt=[$kt,zkt,Vkt],Qkt=zye(...Wkt),Pve=(e,t)=>{const n=e.indexOf("safari-extension")!==-1,r=e.indexOf("safari-web-extension")!==-1;return n||r?[e.indexOf("@")!==-1?e.split("@")[0]:_6,n?`safari-extension:${t}`:`safari-web-extension:${t}`]:[e,t]},c4=1024,Mve="Breadcrumbs",qkt=(e={})=>{const t={console:!0,dom:!0,fetch:!0,history:!0,sentry:!0,xhr:!0,...e};return{name:Mve,setupOnce(){},setup(n){t.console&&dwt(Zkt(n)),t.dom&&pwt(Ykt(n,t.dom)),t.xhr&&Gye(Xkt(n)),t.fetch&&Wye(Kkt(n)),t.history&&qQ(Jkt(n)),t.sentry&&n.on&&n.on("beforeSendEvent",Gkt(n))}}},Lve=qkt;L0(Mve,Lve);function Gkt(e){return function(n){eo()===e&&T1({category:`sentry.${n.type==="transaction"?"transaction":"event"}`,event_id:n.event_id,level:n.level,message:ym(n)},{event:n})}}function Ykt(e,t){return function(r){if(eo()!==e)return;let i,a,s=typeof t=="object"?t.serializeAttribute:void 0,o=typeof t=="object"&&typeof t.maxStringLength=="number"?t.maxStringLength:void 0;o&&o>c4&&(Qh&&Pt.warn(`\`dom.maxStringLength\` cannot exceed ${c4}, but a value of ${o} was configured. Sentry will use ${c4} instead.`),o=c4),typeof s=="string"&&(s=[s]);try{const u=r.event,c=eCt(u)?u.target:u;i=Ix(c,{keyAttrs:s,maxStringLength:o}),a=Lye(c)}catch{i=""}if(i.length===0)return;const l={category:`ui.${r.name}`,message:i};a&&(l.data={"ui.component_name":a}),T1(l,{event:r.event,name:r.name,global:r.global})}}function Zkt(e){return function(n){if(eo()!==e)return;const r={category:"console",data:{arguments:n.args,logger:"console"},level:$wt(n.level),message:Dre(n.args," ")};if(n.level==="assert")if(n.args[0]===!1)r.message=`Assertion failed: ${Dre(n.args.slice(1)," ")||"console.assert"}`,r.data.arguments=n.args.slice(1);else return;T1(r,{input:n.args,level:n.level})}}function Xkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n,a=n.xhr[Vy];if(!r||!i||!a)return;const{method:s,url:o,status_code:l,body:u}=a,c={method:s,url:o,status_code:l},f={xhr:n.xhr,input:u,startTimestamp:r,endTimestamp:i};T1({category:"xhr",data:c,type:"http"},f)}}function Kkt(e){return function(n){if(eo()!==e)return;const{startTimestamp:r,endTimestamp:i}=n;if(i&&!(n.fetchData.url.match(/sentry_key/)&&n.fetchData.method==="POST"))if(n.error){const a=n.fetchData,s={data:n.error,input:n.args,startTimestamp:r,endTimestamp:i};T1({category:"fetch",data:a,level:"error",type:"http"},s)}else{const a=n.response,s={...n.fetchData,status_code:a&&a.status},o={input:n.args,response:a,startTimestamp:r,endTimestamp:i};T1({category:"fetch",data:s,type:"http"},o)}}}function Jkt(e){return function(n){if(eo()!==e)return;let r=n.from,i=n.to;const a=f_(ci.location.href);let s=r?f_(r):void 0;const o=f_(i);(!s||!s.path)&&(s=a),a.protocol===o.protocol&&a.host===o.host&&(i=o.relative),a.protocol===s.protocol&&a.host===s.host&&(r=s.relative),T1({category:"navigation",data:{from:r,to:i}})}}function eCt(e){return!!e&&!!e.target}const $ve="Dedupe",tCt=()=>{let e;return{name:$ve,setupOnce(){},processEvent(t){if(t.type)return t;try{if(nCt(t,e))return Qh&&Pt.warn("Event dropped due to being a duplicate of previously captured event."),null}catch{}return e=t}}},Fve=tCt;L0($ve,Fve);function nCt(e,t){return t?!!(rCt(e,t)||iCt(e,t)):!1}function rCt(e,t){const n=e.message,r=t.message;return!(!n&&!r||n&&!r||!n&&r||n!==r||!Uve(e,t)||!Bve(e,t))}function iCt(e,t){const n=hie(t),r=hie(e);return!(!n||!r||n.type!==r.type||n.value!==r.value||!Uve(e,t)||!Bve(e,t))}function Bve(e,t){let n=pie(e),r=pie(t);if(!n&&!r)return!0;if(n&&!r||!n&&r||(n=n,r=r,r.length!==n.length))return!1;for(let i=0;i{const t={onerror:!0,onunhandledrejection:!0,...e};return{name:zve,setupOnce(){Error.stackTraceLimit=50},setup(n){t.onerror&&(sCt(n),mie("onerror")),t.onunhandledrejection&&(oCt(n),mie("onunhandledrejection"))}}},jve=aCt;L0(zve,jve);function sCt(e){Qye(t=>{const{stackParser:n,attachStacktrace:r}=Vve();if(eo()!==e||Dve())return;const{msg:i,url:a,line:s,column:o,error:l}=t,u=l===void 0&&Wf(i)?cCt(i,a,s,o):Hve(sq(n,l||i,void 0,r,!1),a,s,o);u.level="error",ive(u,{originalException:l,mechanism:{handled:!1,type:"onerror"}})})}function oCt(e){qye(t=>{const{stackParser:n,attachStacktrace:r}=Vve();if(eo()!==e||Dve())return;const i=lCt(t),a=VQ(i)?uCt(i):sq(n,i,void 0,r,!0);a.level="error",ive(a,{originalException:i,mechanism:{handled:!1,type:"onunhandledrejection"}})})}function lCt(e){if(VQ(e))return e;const t=e;try{if("reason"in t)return t.reason;if("detail"in t&&"reason"in t.detail)return t.detail.reason}catch{}return e}function uCt(e){return{exception:{values:[{type:"UnhandledRejection",value:`Non-Error promise rejection captured with value: ${String(e)}`}]}}}function cCt(e,t,n,r){const i=/^(?:[Uu]ncaught (?:exception: )?)?(?:((?:Eval|Internal|Range|Reference|Syntax|Type|URI|)Error): )?(.*)$/i;let a=jQ(e)?e.message:e,s="Error";const o=a.match(i);return o&&(s=o[1],a=o[2]),Hve({exception:{values:[{type:s,value:a}]}},t,n,r)}function Hve(e,t,n,r){const i=e.exception=e.exception||{},a=i.values=i.values||[],s=a[0]=a[0]||{},o=s.stacktrace=s.stacktrace||{},l=o.frames=o.frames||[],u=isNaN(parseInt(r,10))?void 0:r,c=isNaN(parseInt(n,10))?void 0:n,f=Wf(t)&&t.length>0?t:X2t();return l.length===0&&l.push({colno:u,filename:f,function:"?",in_app:!0,lineno:c}),e}function mie(e){Qh&&Pt.log(`Global Handler attached: ${e}`)}function Vve(){const e=eo();return e&&e.getOptions()||{stackParser:()=>[],attachStacktrace:!1}}const Wve="HttpContext",dCt=()=>({name:Wve,setupOnce(){},preprocessEvent(e){if(!ci.navigator&&!ci.location&&!ci.document)return;const t=e.request&&e.request.url||ci.location&&ci.location.href,{referrer:n}=ci.document||{},{userAgent:r}=ci.navigator||{},i={...e.request&&e.request.headers,...n&&{Referer:n},...r&&{"User-Agent":r}},a={...e.request,...t&&{url:t},headers:i};e.request=a}}),Qve=dCt;L0(Wve,Qve);const fCt="cause",hCt=5,qve="LinkedErrors",pCt=(e={})=>{const t=e.limit||hCt,n=e.key||fCt;return{name:qve,setupOnce(){},preprocessEvent(r,i,a){const s=a.getOptions();q2t(Nve,s.stackParser,s.maxValueLength,n,t,r,i)}}},Gve=pCt;L0(qve,Gve);const mCt=["EventTarget","Window","Node","ApplicationCache","AudioTrackList","BroadcastChannel","ChannelMergerNode","CryptoOperation","EventSource","FileReader","HTMLUnknownElement","IDBDatabase","IDBRequest","IDBTransaction","KeyOperation","MediaController","MessagePort","ModalWindow","Notification","SVGElementInstance","Screen","SharedWorker","TextTrack","TextTrackCue","TextTrackList","WebSocket","WebSocketWorker","Worker","XMLHttpRequest","XMLHttpRequestEventTarget","XMLHttpRequestUpload"],Yve="TryCatch",gCt=(e={})=>{const t={XMLHttpRequest:!0,eventTarget:!0,requestAnimationFrame:!0,setInterval:!0,setTimeout:!0,...e};return{name:Yve,setupOnce(){t.setTimeout&&Gs(ci,"setTimeout",gie),t.setInterval&&Gs(ci,"setInterval",gie),t.requestAnimationFrame&&Gs(ci,"requestAnimationFrame",bCt),t.XMLHttpRequest&&"XMLHttpRequest"in ci&&Gs(XMLHttpRequest.prototype,"send",yCt);const n=t.eventTarget;n&&(Array.isArray(n)?n:mCt).forEach(vCt)}}},Zve=gCt;L0(Yve,Zve);function gie(e){return function(...t){const n=t[0];return t[0]=OO(n,{mechanism:{data:{function:bp(e)},handled:!1,type:"instrument"}}),e.apply(this,t)}}function bCt(e){return function(t){return e.apply(this,[OO(t,{mechanism:{data:{function:"requestAnimationFrame",handler:bp(e)},handled:!1,type:"instrument"}})])}}function yCt(e){return function(...t){const n=this;return["onload","onerror","onprogress","onreadystatechange"].forEach(i=>{i in n&&typeof n[i]=="function"&&Gs(n,i,function(a){const s={mechanism:{data:{function:i,handler:bp(a)},handled:!1,type:"instrument"}},o=QQ(a);return o&&(s.mechanism.data.handler=bp(o)),OO(a,s)})}),e.apply(this,t)}}function vCt(e){const t=ci,n=t[e]&&t[e].prototype;!n||!n.hasOwnProperty||!n.hasOwnProperty("addEventListener")||(Gs(n,"addEventListener",function(r){return function(i,a,s){try{typeof a.handleEvent=="function"&&(a.handleEvent=OO(a.handleEvent,{mechanism:{data:{function:"handleEvent",handler:bp(a),target:e},handled:!1,type:"instrument"}}))}catch{}return r.apply(this,[i,OO(a,{mechanism:{data:{function:"addEventListener",handler:bp(a),target:e},handled:!1,type:"instrument"}}),s])}}),Gs(n,"removeEventListener",function(r){return function(i,a,s){const o=a;try{const l=o&&o.__sentry_wrapped__;l&&r.call(this,i,l,s)}catch{}return r.call(this,i,o,s)}}))}const OCt=[Sve(),wve(),Zve(),Lve(),jve(),Gve(),Fve(),Qve()];function SCt(e){return[...OCt]}function ECt(e={}){e.defaultIntegrations===void 0&&(e.defaultIntegrations=SCt()),e.release===void 0&&(typeof __SENTRY_RELEASE__=="string"&&(e.release=__SENTRY_RELEASE__),ci.SENTRY_RELEASE&&ci.SENTRY_RELEASE.id&&(e.release=ci.SENTRY_RELEASE.id)),e.autoSessionTracking===void 0&&(e.autoSessionTracking=!0),e.sendClientReports===void 0&&(e.sendClientReports=!0);const t={...e,stackParser:uwt(e.stackParser||Qkt),integrations:Kxt(e),transport:e.transport||(Vye()?Akt:Rkt)};oTt(Tkt,t),e.autoSessionTracking&&wCt()}function wCt(){if(typeof ci.document>"u"){Qh&&Pt.warn("Session tracking in non-browser environment with @sentry/browser is not supported.");return}Yre({ignoreDuration:!0}),Zre(),qQ(({from:e,to:t})=>{e!==void 0&&e!==t&&(Yre({ignoreDuration:!0}),Zre())})}function xCt(e){const t={...e};vve(t,"react"),ECt(t)}const TCt={"routing.instrumentation":"react-router-v6"};function kCt(e,t,n,r,i,a){return(s,o=!0,l=!0)=>{const u=ci&&ci.location&&ci.location.pathname;o&&u&&s({name:u,op:"pageload",origin:"auto.pageload.react.reactrouterv6",tags:TCt,metadata:{source:"url"}})}}const CCt=()=>["settings"],ACt=()=>{const e=Pu(),t=Qr(MI),n=MO({queryKey:CCt(),enabled:t.yorkieIntelligence===null&&t.fileUpload===null,queryFn:async()=>(await yr.get("/settings")).data,staleTime:1e3*60*60*24});return N.useEffect(()=>{if(!n.isSuccess)return;const r=n.data;e(Out(r.yorkieIntelligence)),e(Sut(r.fileUpload))},[e,n.data,n.isSuccess]),n},_Ct=e=>{var t;return e instanceof Mue&&((t=e.response)==null?void 0:t.status)===404},RCt=e=>{var t;return e instanceof Mue&&((t=e.response)==null?void 0:t.status)===500};xCt({dsn:"https://d287d6df8c6f423189266360055e6ca7@o553194.ingest.sentry.io/5680102",release:"codepair@0.1.2",integrations:[new fkt({routingInstrumentation:kCt()})],tracesSampleRate:1});const ICt=d$e(F2t);yr.defaults.baseURL="https://codepair-api.yorkie.dev";function DCt(){return ACt(),null}function NCt(){const e=Qr(jF),t=RO("(prefers-color-scheme: dark)"),n=N.useMemo(()=>{const a=t?"dark":"light";return rF({typography:{button:{textTransform:"none"}},palette:{mode:e.theme=="default"?a:e.theme}})},[e.theme,t]),r=z2t(),i=N.useMemo(()=>new nze({queryCache:new Kue({onError:a=>{_Ct(a)||RCt(a)?window.location.href="/404":r(a)}}),defaultOptions:{mutations:{onError:r}}}),[r]);return _.jsx(oze,{client:i,children:_.jsx(U2t,{children:_.jsxs(V4e,{theme:n,children:[_.jsx(P6e,{}),_.jsx(DCt,{}),_.jsx(Qa,{minHeight:"100vh",children:_.jsx(O$e,{router:ICt})})]})})})}var lq={},uq={};uq.__esModule=!0;uq.default=LCt;function m_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?m_=function(n){return typeof n}:m_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},m_(e)}function I7(){}var PCt={getItem:I7,setItem:I7,removeItem:I7};function MCt(e){if((typeof self>"u"?"undefined":m_(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 LCt(e){var t="".concat(e,"Storage");return MCt(t)?self[t]:PCt}lq.__esModule=!0;lq.default=BCt;var $Ct=FCt(uq);function FCt(e){return e&&e.__esModule?e:{default:e}}function BCt(e){var t=(0,$Ct.default)(e);return{getItem:function(r){return new Promise(function(i,a){i(t.getItem(r))})},setItem:function(r,i){return new Promise(function(a,s){a(t.setItem(r,i))})},removeItem:function(r){return new Promise(function(i,a){i(t.removeItem(r))})}}}var Xve=void 0,UCt=zCt(lq);function zCt(e){return e&&e.__esModule?e:{default:e}}var jCt=(0,UCt.default)("local");Xve=jCt;var cq="persist:",Kve="persist/FLUSH",dq="persist/REHYDRATE",Jve="persist/PAUSE",eOe="persist/PERSIST",tOe="persist/PURGE",nOe="persist/REGISTER",HCt=-1;function g_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?g_=function(n){return typeof n}:g_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},g_(e)}function bie(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 VCt(e){for(var t=1;t=0)&&Object.prototype.propertyIsEnumerable.call(e,r)&&(n[r]=e[r])}return n}function tAt(e,t){if(e==null)return{};var n={},r=Object.keys(e),i,a;for(a=0;a=0)&&(n[i]=e[i]);return n}var nAt=5e3;function rAt(e,t){var n=e.version!==void 0?e.version:HCt;e.debug;var r=e.stateReconciler===void 0?QCt:e.stateReconciler,i=e.getStoredState||YCt,a=e.timeout!==void 0?e.timeout:nAt,s=null,o=!1,l=!0,u=function(f){return f._persist.rehydrated&&s&&!l&&s.update(f),f};return function(c,f){var h=c||{},g=h._persist,b=eAt(h,["_persist"]),S=b;if(f.type===eOe){var w=!1,E=function(B,L){w||(f.rehydrate(e.key,B,L),w=!0)};if(a&&setTimeout(function(){!w&&E(void 0,new Error('redux-persist: persist timed out for persist key "'.concat(e.key,'"')))},a),l=!1,s||(s=qCt(e)),g)return Ih({},t(S,f),{_persist:g});if(typeof f.rehydrate!="function"||typeof f.register!="function")throw new Error("redux-persist: either rehydrate or register is not a function on the PERSIST action. This can happen if the action is being replayed. This is an unexplored use case, please open an issue and we will figure out a resolution.");return f.register(e.key),i(e).then(function(D){var B=e.migrate||function(L,F){return Promise.resolve(L)};B(D,n).then(function(L){E(L)},function(L){E(void 0,L)})},function(D){E(void 0,D)}),Ih({},t(S,f),{_persist:{version:n,rehydrated:!1}})}else{if(f.type===tOe)return o=!0,f.result(XCt(e)),Ih({},t(S,f),{_persist:g});if(f.type===Kve)return f.result(s&&s.flush()),Ih({},t(S,f),{_persist:g});if(f.type===Jve)l=!0;else if(f.type===dq){if(o)return Ih({},S,{_persist:Ih({},g,{rehydrated:!0})});if(f.key===e.key){var x=t(S,f),k=f.payload,C=r!==!1&&k!==void 0?r(k,c,x,e):x,I=Ih({},C,{_persist:Ih({},g,{rehydrated:!0})});return u(I)}}}if(!g)return t(c,f);var A=t(S,f);return A===S?c:u(Ih({},A,{_persist:g}))}}function vie(e){return sAt(e)||aAt(e)||iAt()}function iAt(){throw new TypeError("Invalid attempt to spread non-iterable instance")}function aAt(e){if(Symbol.iterator in Object(e)||Object.prototype.toString.call(e)==="[object Arguments]")return Array.from(e)}function sAt(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t0&&arguments[0]!==void 0?arguments[0]:rOe,n=arguments.length>1?arguments[1]:void 0;switch(n.type){case nOe:return j9({},t,{registry:[].concat(vie(t.registry),[n.key])});case dq:var r=t.registry.indexOf(n.key),i=vie(t.registry);return i.splice(r,1),j9({},t,{registry:i,bootstrapped:i.length===0});default:return t}};function uAt(e,t,n){var r=n||!1,i=$F(lAt,rOe,t&&t.enhancer?t.enhancer:void 0),a=function(u){i.dispatch({type:nOe,key:u})},s=function(u,c,f){var h={type:dq,payload:c,err:f,key:u};e.dispatch(h),i.dispatch(h),r&&o.getState().bootstrapped&&(r(),r=!1)},o=j9({},i,{purge:function(){var u=[];return e.dispatch({type:tOe,result:function(f){u.push(f)}}),Promise.all(u)},flush:function(){var u=[];return e.dispatch({type:Kve,result:function(f){u.push(f)}}),Promise.all(u)},pause:function(){e.dispatch({type:Jve})},persist:function(){e.dispatch({type:eOe,register:a,rehydrate:s})}});return t&&t.manualPersist||o.persist(),o}const cAt=Xle({auth:aKe,config:xFe,user:VBe,editor:hUe,workspace:mUe,document:zUe,setting:Eut}),dAt={key:"root",storage:Xve,whitelist:["auth","config"]},fAt=rAt(dAt,cAt),iOe=rFe({reducer:fAt,middleware:e=>e({serializableCheck:{ignoredActions:["persist/PERSIST","editor/setDoc","editor/setClient","editor/setCmView"],ignoredPaths:["editor.doc","editor.client","editor.cmView"]},immutableCheck:{ignoredPaths:["editor.doc","editor.client","editor.cmView"]}})});function b_(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?b_=function(n){return typeof n}:b_=function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},b_(e)}function hAt(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Sie(e,t){for(var n=0;n"u"&&(window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)}),(o=window).gtag.apply(o,a)}},n=t;e.default=n})(lOe);var uOe={};(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=s;var t=/^(a|an|and|as|at|but|by|en|for|if|in|nor|of|on|or|per|the|to|vs?\.?|via)$/i;function n(o){return o.toString().trim().replace(/[A-Za-z0-9\u00C0-\u00FF]+[^\s-]*/g,function(l,u,c){return u>0&&u+l.length!==c.length&&l.search(t)>-1&&c.charAt(u-2)!==":"&&(c.charAt(u+l.length)!=="-"||c.charAt(u-1)==="-")&&c.charAt(u-1).search(/[^\s-]/)<0?l.toLowerCase():l.substr(1).search(/[A-Z]|\../)>-1?l:l.charAt(0).toUpperCase()+l.substr(1)})}function r(o){return typeof o=="string"&&o.indexOf("@")!==-1}var i="REDACTED (Potential Email Address)";function a(o){return r(o)?(console.warn("This arg looks like an email address, redacting."),i):o}function s(){var o=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"",l=arguments.length>1&&arguments[1]!==void 0?arguments[1]:!0,u=arguments.length>2&&arguments[2]!==void 0?arguments[2]:!0,c=o||"";return l&&(c=n(o)),u&&(c=a(c)),c}})(uOe);(function(e){Object.defineProperty(e,"__esModule",{value:!0}),e.default=e.GA4=void 0;var t=s(lOe),n=s(uOe),r=["eventCategory","eventAction","eventLabel","eventValue","hitType"],i=["title","location"],a=["page","hitType"];function s(Q){return Q&&Q.__esModule?Q:{default:Q}}function o(Q,H){if(Q==null)return{};var J=l(Q,H),K,X;if(Object.getOwnPropertySymbols){var te=Object.getOwnPropertySymbols(Q);for(X=0;X=0)&&Object.prototype.propertyIsEnumerable.call(Q,K)&&(J[K]=Q[K])}return J}function l(Q,H){if(Q==null)return{};var J={},K=Object.keys(Q),X,te;for(te=0;te=0)&&(J[X]=Q[X]);return J}function u(Q){"@babel/helpers - typeof";return u=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(H){return typeof H}:function(H){return H&&typeof Symbol=="function"&&H.constructor===Symbol&&H!==Symbol.prototype?"symbol":typeof H},u(Q)}function c(Q){return g(Q)||h(Q)||x(Q)||f()}function f(){throw new TypeError(`Invalid attempt to spread non-iterable instance. -In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function h(Q){if(typeof Symbol<"u"&&Q[Symbol.iterator]!=null||Q["@@iterator"]!=null)return Array.from(Q)}function g(Q){if(Array.isArray(Q))return k(Q)}function b(Q,H){var J=Object.keys(Q);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(Q);H&&(K=K.filter(function(X){return Object.getOwnPropertyDescriptor(Q,X).enumerable})),J.push.apply(J,K)}return J}function S(Q){for(var H=1;HQ.length)&&(H=Q.length);for(var J=0,K=new Array(H);J2&&arguments[2]!==void 0?arguments[2]:"https://www.googletagmanager.com/gtag/js";if(!(typeof window>"u"||typeof document>"u")&&!H._hasLoadedGA){var te=document.createElement("script");te.async=!0,te.src="".concat(X,"?id=").concat(J),K&&te.setAttribute("nonce",K),document.body.appendChild(te),window.dataLayer=window.dataLayer||[],window.gtag=function(){window.dataLayer.push(arguments)},H._hasLoadedGA=!0}}),L(this,"_toGtagOptions",function(J){if(J){var K={cookieUpdate:"cookie_update",cookieExpires:"cookie_expires",cookieDomain:"cookie_domain",cookieFlags:"cookie_flags",userId:"user_id",clientId:"client_id",anonymizeIp:"anonymize_ip",contentGroup1:"content_group1",contentGroup2:"content_group2",contentGroup3:"content_group3",contentGroup4:"content_group4",contentGroup5:"content_group5",allowAdFeatures:"allow_google_signals",allowAdPersonalizationSignals:"allow_ad_personalization_signals",nonInteraction:"non_interaction",page:"page_path",hitCallback:"event_callback"},X=Object.entries(J).reduce(function(te,z){var Te=w(z,2),be=Te[0],ee=Te[1];return K[be]?te[K[be]]=ee:te[be]=ee,te},{});return X}}),L(this,"initialize",function(J){var K=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{};if(!J)throw new Error("Require GA_MEASUREMENT_ID");var X=typeof J=="string"?[{trackingId:J}]:J;H._currentMeasurementId=X[0].trackingId;var te=K.gaOptions,z=K.gtagOptions,Te=K.nonce,be=K.testMode,ee=be===void 0?!1:be,ye=K.gtagUrl;if(H._testMode=ee,ee||H._loadGA(H._currentMeasurementId,Te,ye),H.isInitialized||(H._gtag("js",new Date),X.forEach(function(_e){var Ie=S(S(S({},H._toGtagOptions(S(S({},te),_e.gaOptions))),z),_e.gtagOptions);Object.keys(Ie).length?H._gtag("config",_e.trackingId,Ie):H._gtag("config",_e.trackingId)})),H.isInitialized=!0,!ee){var Oe=c(H._queueGtag);for(H._queueGtag=[],H._isQueuing=!1;Oe.length;){var ie=Oe.shift();H._gtag.apply(H,c(ie)),ie[0]==="get"&&(H._isQueuing=!0)}}}),L(this,"set",function(J){if(!J){console.warn("`fieldsObject` is required in .set()");return}if(u(J)!=="object"){console.warn("Expected `fieldsObject` arg to be an Object");return}Object.keys(J).length===0&&console.warn("empty `fieldsObject` given to .set()"),H._gaCommand("set",J)}),L(this,"_gaCommandSendEvent",function(J,K,X,te,z){H._gtag("event",K,S(S({event_category:J,event_label:X,value:te},z&&{non_interaction:z.nonInteraction}),H._toGtagOptions(z)))}),L(this,"_gaCommandSendEventParameters",function(){for(var J=arguments.length,K=new Array(J),X=0;X1?K-1:0),te=1;te - - + +