@malloy-publisher/sdk 0.0.182 → 0.0.183-dev

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs.js CHANGED
@@ -1,244 +1 @@
1
- "use strict";var q2=Object.create;var Sf=Object.defineProperty;var Y2=Object.getOwnPropertyDescriptor;var G2=Object.getOwnPropertyNames;var K2=Object.getPrototypeOf,Q2=Object.prototype.hasOwnProperty;var X2=(e,t,n,r)=>{if(t&&typeof t=="object"||typeof t=="function")for(let a of G2(t))!Q2.call(e,a)&&a!==n&&Sf(e,a,{get:()=>t[a],enumerable:!(r=Y2(t,a))||r.enumerable});return e};var Vu=(e,t,n)=>(n=e!=null?q2(K2(e)):{},X2(t||!e||!e.__esModule?Sf(n,"default",{value:e,enumerable:!0}):n,e));Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const p=require("react/jsx-runtime"),D=require("@mui/material"),q=require("react"),Hr=require("@tanstack/react-query"),et=require("./ServerProvider-BsNa7ffi.cjs.js"),Z2=require("axios"),Pn=require("@mui/icons-material"),dt=require("@mui/system"),J2=require("@emotion/styled"),eC=require("@emotion/react"),hs=require("react-dom"),gl=require("markdown-to-jsx"),h0=require("@react-spring/web"),tC=require("react-router-dom");function g0(e){const t=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const n in e)if(n!=="default"){const r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:()=>e[n]})}}return t.default=e,Object.freeze(t)}const w=g0(q),nC=g0(hs),wf=e=>e,rC=()=>{let e=wf;return{configure(t){e=t},generate(t){return e(t)},reset(){e=wf}}},b0=rC();function Lr(e,...t){const n=new URL(`https://mui.com/production-error/?code=${e}`);return t.forEach(r=>n.searchParams.append("args[]",r)),`Minified MUI error #${e}; visit ${n} for the full message.`}function Se(e){if(typeof e!="string")throw new Error(Lr(7));return e.charAt(0).toUpperCase()+e.slice(1)}function _f(...e){return e.reduce((t,n)=>n==null?t:function(...a){t.apply(this,a),n.apply(this,a)},()=>{})}function ar(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var Wu={exports:{}},qu,If;function aC(){if(If)return qu;If=1;var e="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED";return qu=e,qu}var Yu,Af;function oC(){if(Af)return Yu;Af=1;var e=aC();function t(){}function n(){}return n.resetWarningCache=t,Yu=function(){function r(s,i,l,u,c,d){if(d!==e){var m=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 m.name="Invariant Violation",m}}r.isRequired=r;function a(){return r}var o={array:r,bigint:r,bool:r,func:r,number:r,object:r,string:r,symbol:r,any:r,arrayOf:a,element:r,elementType:r,instanceOf:a,node:r,objectOf:a,oneOf:a,oneOfType:a,shape:a,exact:a,checkPropTypes:n,resetWarningCache:t};return o.PropTypes=o,o},Yu}var Df;function sC(){return Df||(Df=1,Wu.exports=oC()()),Wu.exports}var iC=sC();const ce=ar(iC);function y0(e){var t,n,r="";if(typeof e=="string"||typeof e=="number")r+=e;else if(typeof e=="object")if(Array.isArray(e)){var a=e.length;for(t=0;t<a;t++)e[t]&&(n=y0(e[t]))&&(r&&(r+=" "),r+=n)}else for(n in e)e[n]&&(r&&(r+=" "),r+=n);return r}function De(){for(var e,t,n=0,r="",a=arguments.length;n<a;n++)(e=arguments[n])&&(t=y0(e))&&(r&&(r+=" "),r+=t);return r}function Le(e,t,n=void 0){const r={};for(const a in e){const o=e[a];let s="",i=!0;for(let l=0;l<o.length;l+=1){const u=o[l];u&&(s+=(i===!0?"":" ")+t(u),i=!1,n&&n[u]&&(s+=" "+n[u]))}r[a]=s}return r}var Gu={exports:{}},bt={};/**
2
- * @license React
3
- * react-is.production.js
4
- *
5
- * Copyright (c) Meta Platforms, Inc. and affiliates.
6
- *
7
- * This source code is licensed under the MIT license found in the
8
- * LICENSE file in the root directory of this source tree.
9
- */var Pf;function lC(){if(Pf)return bt;Pf=1;var e=Symbol.for("react.transitional.element"),t=Symbol.for("react.portal"),n=Symbol.for("react.fragment"),r=Symbol.for("react.strict_mode"),a=Symbol.for("react.profiler"),o=Symbol.for("react.consumer"),s=Symbol.for("react.context"),i=Symbol.for("react.forward_ref"),l=Symbol.for("react.suspense"),u=Symbol.for("react.suspense_list"),c=Symbol.for("react.memo"),d=Symbol.for("react.lazy"),m=Symbol.for("react.view_transition"),f=Symbol.for("react.client.reference");function h(b){if(typeof b=="object"&&b!==null){var g=b.$$typeof;switch(g){case e:switch(b=b.type,b){case n:case a:case r:case l:case u:case m:return b;default:switch(b=b&&b.$$typeof,b){case s:case i:case d:case c:return b;case o:return b;default:return g}}case t:return g}}}return bt.ContextConsumer=o,bt.ContextProvider=s,bt.Element=e,bt.ForwardRef=i,bt.Fragment=n,bt.Lazy=d,bt.Memo=c,bt.Portal=t,bt.Profiler=a,bt.StrictMode=r,bt.Suspense=l,bt.SuspenseList=u,bt.isContextConsumer=function(b){return h(b)===o},bt.isContextProvider=function(b){return h(b)===s},bt.isElement=function(b){return typeof b=="object"&&b!==null&&b.$$typeof===e},bt.isForwardRef=function(b){return h(b)===i},bt.isFragment=function(b){return h(b)===n},bt.isLazy=function(b){return h(b)===d},bt.isMemo=function(b){return h(b)===c},bt.isPortal=function(b){return h(b)===t},bt.isProfiler=function(b){return h(b)===a},bt.isStrictMode=function(b){return h(b)===r},bt.isSuspense=function(b){return h(b)===l},bt.isSuspenseList=function(b){return h(b)===u},bt.isValidElementType=function(b){return typeof b=="string"||typeof b=="function"||b===n||b===a||b===r||b===l||b===u||typeof b=="object"&&b!==null&&(b.$$typeof===d||b.$$typeof===c||b.$$typeof===s||b.$$typeof===o||b.$$typeof===i||b.$$typeof===f||b.getModuleId!==void 0)},bt.typeOf=h,bt}var Rf;function uC(){return Rf||(Rf=1,Gu.exports=lC()),Gu.exports}var x0=uC();function gr(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 C0(e){if(w.isValidElement(e)||x0.isValidElementType(e)||!gr(e))return e;const t={};return Object.keys(e).forEach(n=>{t[n]=C0(e[n])}),t}function ln(e,t,n={clone:!0}){const r=n.clone?{...e}:e;return gr(e)&&gr(t)&&Object.keys(t).forEach(a=>{w.isValidElement(t[a])||x0.isValidElementType(t[a])?r[a]=t[a]:gr(t[a])&&Object.prototype.hasOwnProperty.call(e,a)&&gr(e[a])?r[a]=ln(e[a],t[a],n):n.clone?r[a]=gr(t[a])?C0(t[a]):t[a]:r[a]=t[a]}),r}function Es(e,t){return t?ln(e,t,{clone:!1}):e}function Mf(e,t){if(!e.containerQueries)return t;const n=Object.keys(t).filter(r=>r.startsWith("@container")).sort((r,a)=>{const o=/min-width:\s*([0-9.]+)/;return+(r.match(o)?.[1]||0)-+(a.match(o)?.[1]||0)});return n.length?n.reduce((r,a)=>{const o=t[a];return delete r[a],r[a]=o,r},{...t}):t}function cC(e,t){return t==="@"||t.startsWith("@")&&(e.some(n=>t.startsWith(`@${n}`))||!!t.match(/^@\d/))}function dC(e,t){const n=t.match(/^@([^/]+)?\/?(.+)?$/);if(!n)return null;const[,r,a]=n,o=Number.isNaN(+r)?r||0:+r;return e.containerQueries(a).up(o)}function pC(e){const t=(o,s)=>o.replace("@media",s?`@container ${s}`:"@container");function n(o,s){o.up=(...i)=>t(e.breakpoints.up(...i),s),o.down=(...i)=>t(e.breakpoints.down(...i),s),o.between=(...i)=>t(e.breakpoints.between(...i),s),o.only=(...i)=>t(e.breakpoints.only(...i),s),o.not=(...i)=>{const l=t(e.breakpoints.not(...i),s);return l.includes("not all and")?l.replace("not all and ","").replace("min-width:","width<").replace("max-width:","width>").replace("and","or"):l}}const r={},a=o=>(n(r,o),r);return n(a),{...e,containerQueries:a}}const Xl={xs:0,sm:600,md:900,lg:1200,xl:1536},Nf={keys:["xs","sm","md","lg","xl"],up:e=>`@media (min-width:${Xl[e]}px)`},fC={containerQueries:e=>({up:t=>{let n=typeof t=="number"?t:Xl[t]||t;return typeof n=="number"&&(n=`${n}px`),e?`@container ${e} (min-width:${n})`:`@container (min-width:${n})`}})};function Fr(e,t,n){const r=e.theme||{};if(Array.isArray(t)){const o=r.breakpoints||Nf;return t.reduce((s,i,l)=>(s[o.up(o.keys[l])]=n(t[l]),s),{})}if(typeof t=="object"){const o=r.breakpoints||Nf;return Object.keys(t).reduce((s,i)=>{if(cC(o.keys,i)){const l=dC(r.containerQueries?r:fC,i);l&&(s[l]=n(t[i],i))}else if(Object.keys(o.values||Xl).includes(i)){const l=o.up(i);s[l]=n(t[i],i)}else{const l=i;s[l]=t[l]}return s},{})}return n(t)}function mC(e={}){return e.keys?.reduce((n,r)=>{const a=e.up(r);return n[a]={},n},{})||{}}function Of(e,t){return e.reduce((n,r)=>{const a=n[r];return(!a||Object.keys(a).length===0)&&delete n[r],n},t)}function Zl(e,t,n=!0){if(!t||typeof t!="string")return null;if(e&&e.vars&&n){const r=`vars.${t}`.split(".").reduce((a,o)=>a&&a[o]?a[o]:null,e);if(r!=null)return r}return t.split(".").reduce((r,a)=>r&&r[a]!=null?r[a]:null,e)}function bl(e,t,n,r=n){let a;return typeof e=="function"?a=e(n):Array.isArray(e)?a=e[n]||r:a=Zl(e,n)||r,t&&(a=t(a,r,e)),a}function Bt(e){const{prop:t,cssProperty:n=e.prop,themeKey:r,transform:a}=e,o=s=>{if(s[t]==null)return null;const i=s[t],l=s.theme,u=Zl(l,r)||{};return Fr(s,i,d=>{let m=bl(u,a,d);return d===m&&typeof d=="string"&&(m=bl(u,a,`${t}${d==="default"?"":Se(d)}`,d)),n===!1?m:{[n]:m}})};return o.propTypes={},o.filterProps=[t],o}function hC(e){const t={};return n=>(t[n]===void 0&&(t[n]=e(n)),t[n])}const gC={m:"margin",p:"padding"},bC={t:"Top",r:"Right",b:"Bottom",l:"Left",x:["Left","Right"],y:["Top","Bottom"]},Lf={marginX:"mx",marginY:"my",paddingX:"px",paddingY:"py"},yC=hC(e=>{if(e.length>2)if(Lf[e])e=Lf[e];else return[e];const[t,n]=e.split(""),r=gC[t],a=bC[n]||"";return Array.isArray(a)?a.map(o=>r+o):[r+a]}),Ud=["m","mt","mr","mb","ml","mx","my","margin","marginTop","marginRight","marginBottom","marginLeft","marginX","marginY","marginInline","marginInlineStart","marginInlineEnd","marginBlock","marginBlockStart","marginBlockEnd"],zd=["p","pt","pr","pb","pl","px","py","padding","paddingTop","paddingRight","paddingBottom","paddingLeft","paddingX","paddingY","paddingInline","paddingInlineStart","paddingInlineEnd","paddingBlock","paddingBlockStart","paddingBlockEnd"];[...Ud,...zd];function ai(e,t,n,r){const a=Zl(e,t,!0)??n;return typeof a=="number"||typeof a=="string"?o=>typeof o=="string"?o:typeof a=="string"?a.startsWith("var(")&&o===0?0:a.startsWith("var(")&&o===1?a:`calc(${o} * ${a})`:a*o:Array.isArray(a)?o=>{if(typeof o=="string")return o;const s=Math.abs(o),i=a[s];return o>=0?i:typeof i=="number"?-i:typeof i=="string"&&i.startsWith("var(")?`calc(-1 * ${i})`:`-${i}`}:typeof a=="function"?a:()=>{}}function Vd(e){return ai(e,"spacing",8)}function oi(e,t){return typeof t=="string"||t==null?t:e(t)}function xC(e,t){return n=>e.reduce((r,a)=>(r[a]=oi(t,n),r),{})}function CC(e,t,n,r){if(!t.includes(n))return null;const a=yC(n),o=xC(a,r),s=e[n];return Fr(e,s,o)}function E0(e,t){const n=Vd(e.theme);return Object.keys(e).map(r=>CC(e,t,r,n)).reduce(Es,{})}function Ot(e){return E0(e,Ud)}Ot.propTypes={};Ot.filterProps=Ud;function Lt(e){return E0(e,zd)}Lt.propTypes={};Lt.filterProps=zd;function Jl(...e){const t=e.reduce((r,a)=>(a.filterProps.forEach(o=>{r[o]=a}),r),{}),n=r=>Object.keys(r).reduce((a,o)=>t[o]?Es(a,t[o](r)):a,{});return n.propTypes={},n.filterProps=e.reduce((r,a)=>r.concat(a.filterProps),[]),n}function jn(e){return typeof e!="number"?e:`${e}px solid`}function Kn(e,t){return Bt({prop:e,themeKey:"borders",transform:t})}const EC=Kn("border",jn),vC=Kn("borderTop",jn),TC=Kn("borderRight",jn),kC=Kn("borderBottom",jn),SC=Kn("borderLeft",jn),wC=Kn("borderColor"),_C=Kn("borderTopColor"),IC=Kn("borderRightColor"),AC=Kn("borderBottomColor"),DC=Kn("borderLeftColor"),PC=Kn("outline",jn),RC=Kn("outlineColor"),eu=e=>{if(e.borderRadius!==void 0&&e.borderRadius!==null){const t=ai(e.theme,"shape.borderRadius",4),n=r=>({borderRadius:oi(t,r)});return Fr(e,e.borderRadius,n)}return null};eu.propTypes={};eu.filterProps=["borderRadius"];Jl(EC,vC,TC,kC,SC,wC,_C,IC,AC,DC,eu,PC,RC);const tu=e=>{if(e.gap!==void 0&&e.gap!==null){const t=ai(e.theme,"spacing",8),n=r=>({gap:oi(t,r)});return Fr(e,e.gap,n)}return null};tu.propTypes={};tu.filterProps=["gap"];const nu=e=>{if(e.columnGap!==void 0&&e.columnGap!==null){const t=ai(e.theme,"spacing",8),n=r=>({columnGap:oi(t,r)});return Fr(e,e.columnGap,n)}return null};nu.propTypes={};nu.filterProps=["columnGap"];const ru=e=>{if(e.rowGap!==void 0&&e.rowGap!==null){const t=ai(e.theme,"spacing",8),n=r=>({rowGap:oi(t,r)});return Fr(e,e.rowGap,n)}return null};ru.propTypes={};ru.filterProps=["rowGap"];const MC=Bt({prop:"gridColumn"}),NC=Bt({prop:"gridRow"}),OC=Bt({prop:"gridAutoFlow"}),LC=Bt({prop:"gridAutoColumns"}),FC=Bt({prop:"gridAutoRows"}),$C=Bt({prop:"gridTemplateColumns"}),BC=Bt({prop:"gridTemplateRows"}),jC=Bt({prop:"gridTemplateAreas"}),HC=Bt({prop:"gridArea"});Jl(tu,nu,ru,MC,NC,OC,LC,FC,$C,BC,jC,HC);function uo(e,t){return t==="grey"?t:e}const UC=Bt({prop:"color",themeKey:"palette",transform:uo}),zC=Bt({prop:"bgcolor",cssProperty:"backgroundColor",themeKey:"palette",transform:uo}),VC=Bt({prop:"backgroundColor",themeKey:"palette",transform:uo});Jl(UC,zC,VC);function In(e){return e<=1&&e!==0?`${e*100}%`:e}const WC=Bt({prop:"width",transform:In}),Wd=e=>{if(e.maxWidth!==void 0&&e.maxWidth!==null){const t=n=>{const r=e.theme?.breakpoints?.values?.[n]||Xl[n];return r?e.theme?.breakpoints?.unit!=="px"?{maxWidth:`${r}${e.theme.breakpoints.unit}`}:{maxWidth:r}:{maxWidth:In(n)}};return Fr(e,e.maxWidth,t)}return null};Wd.filterProps=["maxWidth"];const qC=Bt({prop:"minWidth",transform:In}),YC=Bt({prop:"height",transform:In}),GC=Bt({prop:"maxHeight",transform:In}),KC=Bt({prop:"minHeight",transform:In});Bt({prop:"size",cssProperty:"width",transform:In});Bt({prop:"size",cssProperty:"height",transform:In});const QC=Bt({prop:"boxSizing"});Jl(WC,Wd,qC,YC,GC,KC,QC);const si={border:{themeKey:"borders",transform:jn},borderTop:{themeKey:"borders",transform:jn},borderRight:{themeKey:"borders",transform:jn},borderBottom:{themeKey:"borders",transform:jn},borderLeft:{themeKey:"borders",transform:jn},borderColor:{themeKey:"palette"},borderTopColor:{themeKey:"palette"},borderRightColor:{themeKey:"palette"},borderBottomColor:{themeKey:"palette"},borderLeftColor:{themeKey:"palette"},outline:{themeKey:"borders",transform:jn},outlineColor:{themeKey:"palette"},borderRadius:{themeKey:"shape.borderRadius",style:eu},color:{themeKey:"palette",transform:uo},bgcolor:{themeKey:"palette",cssProperty:"backgroundColor",transform:uo},backgroundColor:{themeKey:"palette",transform:uo},p:{style:Lt},pt:{style:Lt},pr:{style:Lt},pb:{style:Lt},pl:{style:Lt},px:{style:Lt},py:{style:Lt},padding:{style:Lt},paddingTop:{style:Lt},paddingRight:{style:Lt},paddingBottom:{style:Lt},paddingLeft:{style:Lt},paddingX:{style:Lt},paddingY:{style:Lt},paddingInline:{style:Lt},paddingInlineStart:{style:Lt},paddingInlineEnd:{style:Lt},paddingBlock:{style:Lt},paddingBlockStart:{style:Lt},paddingBlockEnd:{style:Lt},m:{style:Ot},mt:{style:Ot},mr:{style:Ot},mb:{style:Ot},ml:{style:Ot},mx:{style:Ot},my:{style:Ot},margin:{style:Ot},marginTop:{style:Ot},marginRight:{style:Ot},marginBottom:{style:Ot},marginLeft:{style:Ot},marginX:{style:Ot},marginY:{style:Ot},marginInline:{style:Ot},marginInlineStart:{style:Ot},marginInlineEnd:{style:Ot},marginBlock:{style:Ot},marginBlockStart:{style:Ot},marginBlockEnd:{style:Ot},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:tu},rowGap:{style:ru},columnGap:{style:nu},gridColumn:{},gridRow:{},gridAutoFlow:{},gridAutoColumns:{},gridAutoRows:{},gridTemplateColumns:{},gridTemplateRows:{},gridTemplateAreas:{},gridArea:{},position:{},zIndex:{themeKey:"zIndex"},top:{},right:{},bottom:{},left:{},boxShadow:{themeKey:"shadows"},width:{transform:In},maxWidth:{style:Wd},minWidth:{transform:In},height:{transform:In},maxHeight:{transform:In},minHeight:{transform:In},boxSizing:{},font:{themeKey:"font"},fontFamily:{themeKey:"typography"},fontSize:{themeKey:"typography"},fontStyle:{themeKey:"typography"},fontWeight:{themeKey:"typography"},letterSpacing:{},textTransform:{},lineHeight:{},textAlign:{},typography:{cssProperty:!1,themeKey:"typography"}};function XC(...e){const t=e.reduce((r,a)=>r.concat(Object.keys(a)),[]),n=new Set(t);return e.every(r=>n.size===Object.keys(r).length)}function ZC(e,t){return typeof e=="function"?e(t):e}function JC(){function e(n,r,a,o){const s={[n]:r,theme:a},i=o[n];if(!i)return{[n]:r};const{cssProperty:l=n,themeKey:u,transform:c,style:d}=i;if(r==null)return null;if(u==="typography"&&r==="inherit")return{[n]:r};const m=Zl(a,u)||{};return d?d(s):Fr(s,r,h=>{let b=bl(m,c,h);return h===b&&typeof h=="string"&&(b=bl(m,c,`${n}${h==="default"?"":Se(h)}`,h)),l===!1?b:{[l]:b}})}function t(n){const{sx:r,theme:a={},nested:o}=n||{};if(!r)return null;const s=a.unstable_sxConfig??si;function i(l){let u=l;if(typeof l=="function")u=l(a);else if(typeof l!="object")return l;if(!u)return null;const c=mC(a.breakpoints),d=Object.keys(c);let m=c;return Object.keys(u).forEach(f=>{const h=ZC(u[f],a);if(h!=null)if(typeof h=="object")if(s[f])m=Es(m,e(f,h,a,s));else{const b=Fr({theme:a},h,g=>({[f]:g}));XC(b,h)?m[f]=t({sx:h,theme:a,nested:!0}):m=Es(m,b)}else m=Es(m,e(f,h,a,s))}),!o&&a.modularCssLayers?{"@layer sx":Mf(a,Of(d,m))}:Mf(a,Of(d,m))}return Array.isArray(r)?r.map(i):i(r)}return t}const xo=JC();xo.filterProps=["sx"];const eE=e=>{const t={systemProps:{},otherProps:{}},n=e?.theme?.unstable_sxConfig??si;return Object.keys(e).forEach(r=>{n[r]?t.systemProps[r]=e[r]:t.otherProps[r]=e[r]}),t};function tE(e){const{sx:t,...n}=e,{systemProps:r,otherProps:a}=eE(n);let o;return Array.isArray(t)?o=[r,...t]:typeof t=="function"?o=(...s)=>{const i=t(...s);return gr(i)?{...r,...i}:r}:o={...r,...t},{...a,sx:o}}function nE(e,t=Number.MIN_SAFE_INTEGER,n=Number.MAX_SAFE_INTEGER){return Math.max(t,Math.min(e,n))}function qd(e,t=0,n=1){return nE(e,t,n)}function rE(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,a)=>a<3?parseInt(r,16):Math.round(parseInt(r,16)/255*1e3)/1e3).join(", ")})`:""}function ra(e){if(e.type)return e;if(e.charAt(0)==="#")return ra(rE(e));const t=e.indexOf("("),n=e.substring(0,t);if(!["rgb","rgba","hsl","hsla","color"].includes(n))throw new Error(Lr(9,e));let r=e.substring(t+1,e.length-1),a;if(n==="color"){if(r=r.split(" "),a=r.shift(),r.length===4&&r[3].charAt(0)==="/"&&(r[3]=r[3].slice(1)),!["srgb","display-p3","a98-rgb","prophoto-rgb","rec-2020"].includes(a))throw new Error(Lr(10,a))}else r=r.split(",");return r=r.map(o=>parseFloat(o)),{type:n,values:r,colorSpace:a}}const aE=e=>{const t=ra(e);return t.values.slice(0,3).map((n,r)=>t.type.includes("hsl")&&r!==0?`${n}%`:n).join(" ")},gs=(e,t)=>{try{return aE(e)}catch{return e}};function au(e){const{type:t,colorSpace:n}=e;let{values:r}=e;return t.includes("rgb")?r=r.map((a,o)=>o<3?parseInt(a,10):a):t.includes("hsl")&&(r[1]=`${r[1]}%`,r[2]=`${r[2]}%`),t.includes("color")?r=`${n} ${r.join(" ")}`:r=`${r.join(", ")}`,`${t}(${r})`}function v0(e){e=ra(e);const{values:t}=e,n=t[0],r=t[1]/100,a=t[2]/100,o=r*Math.min(a,1-a),s=(u,c=(u+n/30)%12)=>a-o*Math.max(Math.min(c-3,9-c,1),-1);let i="rgb";const l=[Math.round(s(0)*255),Math.round(s(8)*255),Math.round(s(4)*255)];return e.type==="hsla"&&(i+="a",l.push(t[3])),au({type:i,values:l})}function zc(e){e=ra(e);let t=e.type==="hsl"||e.type==="hsla"?ra(v0(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 oE(e,t){const n=zc(e),r=zc(t);return(Math.max(n,r)+.05)/(Math.min(n,r)+.05)}function yl(e,t){return e=ra(e),t=qd(t),(e.type==="rgb"||e.type==="hsl")&&(e.type+="a"),e.type==="color"?e.values[3]=`/${t}`:e.values[3]=t,au(e)}function da(e,t,n){try{return yl(e,t)}catch{return e}}function ou(e,t){if(e=ra(e),t=qd(t),e.type.includes("hsl"))e.values[2]*=1-t;else if(e.type.includes("rgb")||e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]*=1-t;return au(e)}function mt(e,t,n){try{return ou(e,t)}catch{return e}}function su(e,t){if(e=ra(e),t=qd(t),e.type.includes("hsl"))e.values[2]+=(100-e.values[2])*t;else if(e.type.includes("rgb"))for(let n=0;n<3;n+=1)e.values[n]+=(255-e.values[n])*t;else if(e.type.includes("color"))for(let n=0;n<3;n+=1)e.values[n]+=(1-e.values[n])*t;return au(e)}function ht(e,t,n){try{return su(e,t)}catch{return e}}function Vc(e,t=.15){return zc(e)>.5?ou(e,t):su(e,t)}function wi(e,t,n){try{return Vc(e,t)}catch{return e}}const Bs={black:"#000",white:"#fff"},sE={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"},Ya={50:"#f3e5f5",200:"#ce93d8",300:"#ba68c8",400:"#ab47bc",500:"#9c27b0",700:"#7b1fa2"},Ga={300:"#e57373",400:"#ef5350",500:"#f44336",700:"#d32f2f",800:"#c62828"},Qo={300:"#ffb74d",400:"#ffa726",500:"#ff9800",700:"#f57c00",900:"#e65100"},Ka={50:"#e3f2fd",200:"#90caf9",400:"#42a5f5",700:"#1976d2",800:"#1565c0"},Qa={300:"#4fc3f7",400:"#29b6f6",500:"#03a9f4",700:"#0288d1",900:"#01579b"},Xa={300:"#81c784",400:"#66bb6a",500:"#4caf50",700:"#388e3c",800:"#2e7d32",900:"#1b5e20"};function T0(){return{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:Bs.white,default:Bs.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}}}const k0=T0();function S0(){return{text:{primary:Bs.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:Bs.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}}}const Wc=S0();function Ff(e,t,n,r){const a=r.light||r,o=r.dark||r*1.5;e[t]||(e.hasOwnProperty(n)?e[t]=e[n]:t==="light"?e.light=su(e.main,a):t==="dark"&&(e.dark=ou(e.main,o)))}function $f(e,t,n,r,a){const o=a.light||a,s=a.dark||a*1.5;t[n]||(t.hasOwnProperty(r)?t[n]=t[r]:n==="light"?t.light=`color-mix(in ${e}, ${t.main}, #fff ${(o*100).toFixed(0)}%)`:n==="dark"&&(t.dark=`color-mix(in ${e}, ${t.main}, #000 ${(s*100).toFixed(0)}%)`))}function iE(e="light"){return e==="dark"?{main:Ka[200],light:Ka[50],dark:Ka[400]}:{main:Ka[700],light:Ka[400],dark:Ka[800]}}function lE(e="light"){return e==="dark"?{main:Ya[200],light:Ya[50],dark:Ya[400]}:{main:Ya[500],light:Ya[300],dark:Ya[700]}}function uE(e="light"){return e==="dark"?{main:Ga[500],light:Ga[300],dark:Ga[700]}:{main:Ga[700],light:Ga[400],dark:Ga[800]}}function cE(e="light"){return e==="dark"?{main:Qa[400],light:Qa[300],dark:Qa[700]}:{main:Qa[700],light:Qa[500],dark:Qa[900]}}function dE(e="light"){return e==="dark"?{main:Xa[400],light:Xa[300],dark:Xa[700]}:{main:Xa[800],light:Xa[500],dark:Xa[900]}}function pE(e="light"){return e==="dark"?{main:Qo[400],light:Qo[300],dark:Qo[700]}:{main:"#ed6c02",light:Qo[500],dark:Qo[900]}}function fE(e){return`oklch(from ${e} var(--__l) 0 h / var(--__a))`}function Yd(e){const{mode:t="light",contrastThreshold:n=3,tonalOffset:r=.2,colorSpace:a,...o}=e,s=e.primary||iE(t),i=e.secondary||lE(t),l=e.error||uE(t),u=e.info||cE(t),c=e.success||dE(t),d=e.warning||pE(t);function m(g){return a?fE(g):oE(g,Wc.text.primary)>=n?Wc.text.primary:k0.text.primary}const f=({color:g,name:x,mainShade:C=500,lightShade:E=300,darkShade:k=700})=>{if(g={...g},!g.main&&g[C]&&(g.main=g[C]),!g.hasOwnProperty("main"))throw new Error(Lr(11,x?` (${x})`:"",C));if(typeof g.main!="string")throw new Error(Lr(12,x?` (${x})`:"",JSON.stringify(g.main)));return a?($f(a,g,"light",E,r),$f(a,g,"dark",k,r)):(Ff(g,"light",E,r),Ff(g,"dark",k,r)),g.contrastText||(g.contrastText=m(g.main)),g};let h;return t==="light"?h=T0():t==="dark"&&(h=S0()),ln({common:{...Bs},mode:t,primary:f({color:s,name:"primary"}),secondary:f({color:i,name:"secondary",mainShade:"A400",lightShade:"A200",darkShade:"A700"}),error:f({color:l,name:"error"}),warning:f({color:d,name:"warning"}),info:f({color:u,name:"info"}),success:f({color:c,name:"success"}),grey:sE,contrastThreshold:n,getContrastText:m,augmentColor:f,tonalOffset:r,...h},o)}function mE(e){for(var t=0,n,r=0,a=e.length;a>=4;++r,a-=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(a){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 hE={animationIterationCount:1,aspectRatio:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,msGridRow:1,msGridRowSpan:1,msGridColumn:1,msGridColumnSpan:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,scale:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1};function gE(e){var t=Object.create(null);return function(n){return t[n]===void 0&&(t[n]=e(n)),t[n]}}var bE=/[A-Z]|^ms/g,yE=/_EMO_([^_]+?)_([^]*?)_EMO_/g,w0=function(t){return t.charCodeAt(1)===45},Bf=function(t){return t!=null&&typeof t!="boolean"},Ku=gE(function(e){return w0(e)?e:e.replace(bE,"-$&").toLowerCase()}),jf=function(t,n){switch(t){case"animation":case"animationName":if(typeof n=="string")return n.replace(yE,function(r,a,o){return ea={name:a,styles:o,next:ea},a})}return hE[t]!==1&&!w0(t)&&typeof n=="number"&&n!==0?n+"px":n};function xl(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 a=n;if(a.anim===1)return ea={name:a.name,styles:a.styles,next:ea},a.name;var o=n;if(o.styles!==void 0){var s=o.next;if(s!==void 0)for(;s!==void 0;)ea={name:s.name,styles:s.styles,next:ea},s=s.next;var i=o.styles+";";return i}return xE(e,t,n)}}var l=n;return l}function xE(e,t,n){var r="";if(Array.isArray(n))for(var a=0;a<n.length;a++)r+=xl(e,t,n[a])+";";else for(var o in n){var s=n[o];if(typeof s!="object"){var i=s;Bf(i)&&(r+=Ku(o)+":"+jf(o,i)+";")}else if(Array.isArray(s)&&typeof s[0]=="string"&&t==null)for(var l=0;l<s.length;l++)Bf(s[l])&&(r+=Ku(o)+":"+jf(o,s[l])+";");else{var u=xl(e,t,s);switch(o){case"animation":case"animationName":{r+=Ku(o)+":"+u+";";break}default:r+=o+"{"+u+"}"}}}return r}var Hf=/label:\s*([^\s;{]+)\s*(;|$)/g,ea;function CE(e,t,n){if(e.length===1&&typeof e[0]=="object"&&e[0]!==null&&e[0].styles!==void 0)return e[0];var r=!0,a="";ea=void 0;var o=e[0];if(o==null||o.raw===void 0)r=!1,a+=xl(n,t,o);else{var s=o;a+=s[0]}for(var i=1;i<e.length;i++)if(a+=xl(n,t,e[i]),r){var l=o;a+=l[i]}Hf.lastIndex=0;for(var u="",c;(c=Hf.exec(a))!==null;)u+="-"+c[1];var d=mE(a)+u;return{name:d,styles:a,next:ea}}function EE(e,t){return J2(e,t)}function vE(e,t){Array.isArray(e.__emotion_styles)&&(e.__emotion_styles=t(e.__emotion_styles))}const Uf=[];function Sa(e){return Uf[0]=e,CE(Uf)}const qt=typeof window<"u"?w.useLayoutEffect:w.useEffect;function TE(e){return Object.keys(e).length===0}function _0(e=null){const t=w.useContext(eC.ThemeContext);return!t||TE(t)?e:t}const kE=w.createContext(),Qn=()=>w.useContext(kE)??!1;function js(e,t,n=!1){const r={...t};for(const a in e)if(Object.prototype.hasOwnProperty.call(e,a)){const o=a;if(o==="components"||o==="slots")r[o]={...e[o],...r[o]};else if(o==="componentsProps"||o==="slotProps"){const s=e[o],i=t[o];if(!i)r[o]=s||{};else if(!s)r[o]=i;else{r[o]={...i};for(const l in s)if(Object.prototype.hasOwnProperty.call(s,l)){const u=l;r[o][u]=js(s[u],i[u],n)}}}else o==="className"&&n&&t.className?r.className=De(e?.className,t?.className):o==="style"&&n&&t.style?r.style={...e?.style,...t?.style}:r[o]===void 0&&(r[o]=e[o])}return r}const SE=w.createContext(void 0);function wE(e){const{theme:t,name:n,props:r}=e;if(!t||!t.components||!t.components[n])return r;const a=t.components[n];return a.defaultProps?js(a.defaultProps,r,t.components.mergeClassNameAndStyle):!a.styleOverrides&&!a.variants?js(a,r,t.components.mergeClassNameAndStyle):r}function _E({props:e,name:t}){const n=w.useContext(SE);return wE({props:e,name:t,theme:{components:n}})}let zf=0;function IE(e){const[t,n]=w.useState(e),r=e||t;return w.useEffect(()=>{t==null&&(zf+=1,n(`mui-${zf}`))},[t]),r}const AE={...w},Vf=AE.useId;function or(e){if(Vf!==void 0){const t=Vf();return e??t}return IE(e)}const DE=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)=>({...n,[r.key]:r.val}),{})};function PE(e){const{values:t={xs:0,sm:600,md:900,lg:1200,xl:1536},unit:n="px",step:r=5,...a}=e,o=DE(t),s=Object.keys(o);function i(m){return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n})`}function l(m){return`@media (max-width:${(typeof t[m]=="number"?t[m]:m)-r/100}${n})`}function u(m,f){const h=s.indexOf(f);return`@media (min-width:${typeof t[m]=="number"?t[m]:m}${n}) and (max-width:${(h!==-1&&typeof t[s[h]]=="number"?t[s[h]]:f)-r/100}${n})`}function c(m){return s.indexOf(m)+1<s.length?u(m,s[s.indexOf(m)+1]):i(m)}function d(m){const f=s.indexOf(m);return f===0?i(s[1]):f===s.length-1?l(s[f]):u(m,s[s.indexOf(m)+1]).replace("@media","@media not all and")}return{keys:s,values:o,up:i,down:l,between:u,only:c,not:d,unit:n,...a}}const RE={borderRadius:4};function ME(e=8,t=Vd({spacing:e})){if(e.mui)return e;const n=(...r)=>(r.length===0?[1]:r).map(o=>{const s=t(o);return typeof s=="number"?`${s}px`:s}).join(" ");return n.mui=!0,n}function NE(e,t){const n=this;if(n.vars){if(!n.colorSchemes?.[e]||typeof n.getColorSchemeSelector!="function")return{};let r=n.getColorSchemeSelector(e);return r==="&"?t:((r.includes("data-")||r.includes("."))&&(r=`*:where(${r.replace(/\s*&$/,"")}) &`),{[r]:t})}return n.palette.mode===e?t:{}}function Gd(e={},...t){const{breakpoints:n={},palette:r={},spacing:a,shape:o={},...s}=e,i=PE(n),l=ME(a);let u=ln({breakpoints:i,direction:"ltr",components:{},palette:{mode:"light",...r},spacing:l,shape:{...RE,...o}},s);return u=pC(u),u.applyStyles=NE,u=t.reduce((c,d)=>ln(c,d),u),u.unstable_sxConfig={...si,...s?.unstable_sxConfig},u.unstable_sx=function(d){return xo({sx:d,theme:this})},u}const OE=Gd();function LE(e=OE){return _0(e)}const Wf=(e,t,n,r=[])=>{let a=e;t.forEach((o,s)=>{s===t.length-1?Array.isArray(a)?a[Number(o)]=n:a&&typeof a=="object"&&(a[o]=n):a&&typeof a=="object"&&(a[o]||(a[o]=r.includes(o)?[]:{}),a=a[o])})},FE=(e,t,n)=>{function r(a,o=[],s=[]){Object.entries(a).forEach(([i,l])=>{(!n||n&&!n([...o,i]))&&l!=null&&(typeof l=="object"&&Object.keys(l).length>0?r(l,[...o,i],Array.isArray(l)?[...s,i]:s):t([...o,i],l,s))})}r(e)},$E=(e,t)=>typeof t=="number"?["lineHeight","fontWeight","opacity","zIndex"].some(r=>e.includes(r))||e[e.length-1].toLowerCase().includes("opacity")?t:`${t}px`:t;function Qu(e,t){const{prefix:n,shouldSkipGeneratingVar:r}=t||{},a={},o={},s={};return FE(e,(i,l,u)=>{if((typeof l=="string"||typeof l=="number")&&(!r||!r(i,l))){const c=`--${n?`${n}-`:""}${i.join("-")}`,d=$E(i,l);Object.assign(a,{[c]:d}),Wf(o,i,`var(${c})`,u),Wf(s,i,`var(${c}, ${d})`,u)}},i=>i[0]==="vars"),{css:a,vars:o,varsWithDefaults:s}}function BE(e,t={}){const{getSelector:n=x,disableCssColorScheme:r,colorSchemeSelector:a,enableContrastVars:o}=t,{colorSchemes:s={},components:i,defaultColorScheme:l="light",...u}=e,{vars:c,css:d,varsWithDefaults:m}=Qu(u,t);let f=m;const h={},{[l]:b,...g}=s;if(Object.entries(g||{}).forEach(([k,T])=>{const{vars:S,css:O,varsWithDefaults:M}=Qu(T,t);f=ln(f,M),h[k]={css:O,vars:S}}),b){const{css:k,vars:T,varsWithDefaults:S}=Qu(b,t);f=ln(f,S),h[l]={css:k,vars:T}}function x(k,T){let S=a;if(a==="class"&&(S=".%s"),a==="data"&&(S="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(S=`[${a}="%s"]`),k){if(S==="media")return e.defaultColorScheme===k?":root":{[`@media (prefers-color-scheme: ${s[k]?.palette?.mode||k})`]:{":root":T}};if(S)return e.defaultColorScheme===k?`:root, ${S.replace("%s",String(k))}`:S.replace("%s",String(k))}return":root"}return{vars:f,generateThemeVars:()=>{let k={...c};return Object.entries(h).forEach(([,{vars:T}])=>{k=ln(k,T)}),k},generateStyleSheets:()=>{const k=[],T=e.defaultColorScheme||"light";function S($,P){Object.keys(P).length&&k.push(typeof $=="string"?{[$]:{...P}}:$)}S(n(void 0,{...d}),d);const{[T]:O,...M}=h;if(O){const{css:$}=O,P=s[T]?.palette?.mode,L=!r&&P?{colorScheme:P,...$}:{...$};S(n(T,{...L}),L)}return Object.entries(M).forEach(([$,{css:P}])=>{const L=s[$]?.palette?.mode,v=!r&&L?{colorScheme:L,...P}:{...P};S(n($,{...v}),v)}),o&&k.push({":root":{"--__l-threshold":"0.7","--__l":"clamp(0, (l / var(--__l-threshold) - 1) * -infinity, 1)","--__a":"clamp(0.87, (l / var(--__l-threshold) - 1) * -infinity, 1)"}}),k}}}function jE(e){const t={};return Object.entries(e).forEach(r=>{const[a,o]=r;typeof o=="object"&&(t[a]=`${o.fontStyle?`${o.fontStyle} `:""}${o.fontVariant?`${o.fontVariant} `:""}${o.fontWeight?`${o.fontWeight} `:""}${o.fontStretch?`${o.fontStretch} `:""}${o.fontSize||""}${o.lineHeight?`/${o.lineHeight} `:""}${o.fontFamily||""}`)}),t}function HE(e){return function(n){return e==="media"?`@media (prefers-color-scheme: ${n})`:e?e.startsWith("data-")&&!e.includes("%s")?`[${e}="${n}"] &`:e==="class"?`.${n} &`:e==="data"?`[data-${n}] &`:`${e.replace("%s",n)} &`:"&"}}const UE={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 Fe(e,t,n="Mui"){const r=UE[t];return r?`${n}-${r}`:`${b0.generate(e)}-${t}`}function zE(e,t){return{toolbar:{minHeight:56,[e.up("xs")]:{"@media (orientation: landscape)":{minHeight:48}},[e.up("sm")]:{minHeight:64}},...t}}function VE(e){return Math.round(e*1e5)/1e5}const qf={textTransform:"uppercase"},Yf='"Roboto", "Helvetica", "Arial", sans-serif';function WE(e,t){const{fontFamily:n=Yf,fontSize:r=14,fontWeightLight:a=300,fontWeightRegular:o=400,fontWeightMedium:s=500,fontWeightBold:i=700,htmlFontSize:l=16,allVariants:u,pxToRem:c,...d}=typeof t=="function"?t(e):t,m=r/14,f=c||(g=>`${g/l*m}rem`),h=(g,x,C,E,k)=>({fontFamily:n,fontWeight:g,fontSize:f(x),lineHeight:C,...n===Yf?{letterSpacing:`${VE(E/x)}em`}:{},...k,...u}),b={h1:h(a,96,1.167,-1.5),h2:h(a,60,1.2,-.5),h3:h(o,48,1.167,0),h4:h(o,34,1.235,.25),h5:h(o,24,1.334,0),h6:h(s,20,1.6,.15),subtitle1:h(o,16,1.75,.15),subtitle2:h(s,14,1.57,.1),body1:h(o,16,1.5,.15),body2:h(o,14,1.43,.15),button:h(s,14,1.75,.4,qf),caption:h(o,12,1.66,.4),overline:h(o,12,2.66,1,qf),inherit:{fontFamily:"inherit",fontWeight:"inherit",fontSize:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}};return ln({htmlFontSize:l,pxToRem:f,fontFamily:n,fontSize:r,fontWeightLight:a,fontWeightRegular:o,fontWeightMedium:s,fontWeightBold:i,...b},d,{clone:!1})}const qE=.2,YE=.14,GE=.12;function Rt(...e){return[`${e[0]}px ${e[1]}px ${e[2]}px ${e[3]}px rgba(0,0,0,${qE})`,`${e[4]}px ${e[5]}px ${e[6]}px ${e[7]}px rgba(0,0,0,${YE})`,`${e[8]}px ${e[9]}px ${e[10]}px ${e[11]}px rgba(0,0,0,${GE})`].join(",")}const KE=["none",Rt(0,2,1,-1,0,1,1,0,0,1,3,0),Rt(0,3,1,-2,0,2,2,0,0,1,5,0),Rt(0,3,3,-2,0,3,4,0,0,1,8,0),Rt(0,2,4,-1,0,4,5,0,0,1,10,0),Rt(0,3,5,-1,0,5,8,0,0,1,14,0),Rt(0,3,5,-1,0,6,10,0,0,1,18,0),Rt(0,4,5,-2,0,7,10,1,0,2,16,1),Rt(0,5,5,-3,0,8,10,1,0,3,14,2),Rt(0,5,6,-3,0,9,12,1,0,3,16,2),Rt(0,6,6,-3,0,10,14,1,0,4,18,3),Rt(0,6,7,-4,0,11,15,1,0,4,20,3),Rt(0,7,8,-4,0,12,17,2,0,5,22,4),Rt(0,7,8,-4,0,13,19,2,0,5,24,4),Rt(0,7,9,-4,0,14,21,2,0,5,26,4),Rt(0,8,9,-5,0,15,22,2,0,6,28,5),Rt(0,8,10,-5,0,16,24,2,0,6,30,5),Rt(0,8,11,-5,0,17,26,2,0,6,32,5),Rt(0,9,11,-5,0,18,28,2,0,7,34,6),Rt(0,9,12,-6,0,19,29,2,0,7,36,6),Rt(0,10,13,-6,0,20,31,3,0,8,38,7),Rt(0,10,13,-6,0,21,33,3,0,8,40,7),Rt(0,10,14,-6,0,22,35,3,0,8,42,7),Rt(0,11,14,-7,0,23,36,3,0,9,44,8),Rt(0,11,15,-7,0,24,38,3,0,9,46,8)],QE={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)"},I0={shortest:150,shorter:200,short:250,standard:300,complex:375,enteringScreen:225,leavingScreen:195};function Gf(e){return`${Math.round(e)}ms`}function XE(e){if(!e)return 0;const t=e/36;return Math.min(Math.round((4+15*t**.25+t/5)*10),3e3)}function ZE(e){const t={...QE,...e.easing},n={...I0,...e.duration};return{getAutoHeightDuration:XE,create:(a=["all"],o={})=>{const{duration:s=n.standard,easing:i=t.easeInOut,delay:l=0,...u}=o;return(Array.isArray(a)?a:[a]).map(c=>`${c} ${typeof s=="string"?s:Gf(s)} ${i} ${typeof l=="string"?l:Gf(l)}`).join(",")},...e,easing:t,duration:n}}const JE={mobileStepper:1e3,fab:1050,speedDial:1050,appBar:1100,drawer:1200,modal:1300,snackbar:1400,tooltip:1500};function ev(e){return gr(e)||typeof e>"u"||typeof e=="string"||typeof e=="boolean"||typeof e=="number"||Array.isArray(e)}function A0(e={}){const t={...e};function n(r){const a=Object.entries(r);for(let o=0;o<a.length;o++){const[s,i]=a[o];!ev(i)||s.startsWith("unstable_")?delete r[s]:gr(i)&&(r[s]={...i},n(r[s]))}}return n(t),`import { unstable_createBreakpoints as createBreakpoints, createTransitions } from '@mui/material/styles';
10
-
11
- const theme = ${JSON.stringify(t,null,2)};
12
-
13
- theme.breakpoints = createBreakpoints(theme.breakpoints || {});
14
- theme.transitions = createTransitions(theme.transitions || {});
15
-
16
- export default theme;`}function Kf(e){return typeof e=="number"?`${(e*100).toFixed(0)}%`:`calc((${e}) * 100%)`}const tv=e=>{if(!Number.isNaN(+e))return+e;const t=e.match(/\d*\.?\d+/g);if(!t)return 0;let n=0;for(let r=0;r<t.length;r+=1)n+=+t[r];return n};function nv(e){Object.assign(e,{alpha(t,n){const r=this||e;return r.colorSpace?`oklch(from ${t} l c h / ${typeof n=="string"?`calc(${n})`:n})`:r.vars?`rgba(${t.replace(/var\(--([^,\s)]+)(?:,[^)]+)?\)+/g,"var(--$1Channel)")} / ${typeof n=="string"?`calc(${n})`:n})`:yl(t,tv(n))},lighten(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #fff ${Kf(n)})`:su(t,n)},darken(t,n){const r=this||e;return r.colorSpace?`color-mix(in ${r.colorSpace}, ${t}, #000 ${Kf(n)})`:ou(t,n)}})}function qc(e={},...t){const{breakpoints:n,mixins:r={},spacing:a,palette:o={},transitions:s={},typography:i={},shape:l,colorSpace:u,...c}=e;if(e.vars&&e.generateThemeVars===void 0)throw new Error(Lr(20));const d=Yd({...o,colorSpace:u}),m=Gd(e);let f=ln(m,{mixins:zE(m.breakpoints,r),palette:d,shadows:KE.slice(),typography:WE(d,i),transitions:ZE(s),zIndex:{...JE}});return f=ln(f,c),f=t.reduce((h,b)=>ln(h,b),f),f.unstable_sxConfig={...si,...c?.unstable_sxConfig},f.unstable_sx=function(b){return xo({sx:b,theme:this})},f.toRuntimeSource=A0,nv(f),f}function Yc(e){let t;return e<1?t=5.11916*e**2:t=4.5*Math.log(e+1)+2,Math.round(t*10)/1e3}const rv=[...Array(25)].map((e,t)=>{if(t===0)return"none";const n=Yc(t);return`linear-gradient(rgba(255 255 255 / ${n}), rgba(255 255 255 / ${n}))`});function D0(e){return{inputPlaceholder:e==="dark"?.5:.42,inputUnderline:e==="dark"?.7:.42,switchTrackDisabled:e==="dark"?.2:.12,switchTrack:e==="dark"?.3:.38}}function P0(e){return e==="dark"?rv:[]}function av(e){const{palette:t={mode:"light"},opacity:n,overlays:r,colorSpace:a,...o}=e,s=Yd({...t,colorSpace:a});return{palette:s,opacity:{...D0(s.mode),...n},overlays:r||P0(s.mode),...o}}function ov(e){return!!e[0].match(/(cssVarPrefix|colorSchemeSelector|modularCssLayers|rootSelector|typography|mixins|breakpoints|direction|transitions)/)||!!e[0].match(/sxConfig$/)||e[0]==="palette"&&!!e[1]?.match(/(mode|contrastThreshold|tonalOffset)/)}const sv=e=>[...[...Array(25)].map((t,n)=>`--${e?`${e}-`:""}overlays-${n}`),`--${e?`${e}-`:""}palette-AppBar-darkBg`,`--${e?`${e}-`:""}palette-AppBar-darkColor`],iv=e=>(t,n)=>{const r=e.rootSelector||":root",a=e.colorSchemeSelector;let o=a;if(a==="class"&&(o=".%s"),a==="data"&&(o="[data-%s]"),a?.startsWith("data-")&&!a.includes("%s")&&(o=`[${a}="%s"]`),e.defaultColorScheme===t){if(t==="dark"){const s={};return sv(e.cssVarPrefix).forEach(i=>{s[i]=n[i],delete n[i]}),o==="media"?{[r]:n,"@media (prefers-color-scheme: dark)":{[r]:s}}:o?{[o.replace("%s",t)]:s,[`${r}, ${o.replace("%s",t)}`]:n}:{[r]:{...n,...s}}}if(o&&o!=="media")return`${r}, ${o.replace("%s",String(t))}`}else if(t){if(o==="media")return{[`@media (prefers-color-scheme: ${String(t)})`]:{[r]:n}};if(o)return o.replace("%s",String(t))}return r};function lv(e,t){t.forEach(n=>{e[n]||(e[n]={})})}function me(e,t,n){!e[t]&&n&&(e[t]=n)}function bs(e){return typeof e!="string"||!e.startsWith("hsl")?e:v0(e)}function Ar(e,t){`${t}Channel`in e||(e[`${t}Channel`]=gs(bs(e[t])))}function uv(e){return typeof e=="number"?`${e}px`:typeof e=="string"||typeof e=="function"||Array.isArray(e)?e:"8px"}const ir=e=>{try{return e()}catch{}},cv=(e="mui")=>dt.unstable_createGetCssVar(e);function Xu(e,t,n,r,a){if(!n)return;n=n===!0?{}:n;const o=a==="dark"?"dark":"light";if(!r){t[a]=av({...n,palette:{mode:o,...n?.palette},colorSpace:e});return}const{palette:s,...i}=qc({...r,palette:{mode:o,...n?.palette},colorSpace:e});return t[a]={...n,palette:s,opacity:{...D0(o),...n?.opacity},overlays:n?.overlays||P0(o)},i}function dv(e={},...t){const{colorSchemes:n={light:!0},defaultColorScheme:r,disableCssColorScheme:a=!1,cssVarPrefix:o="mui",nativeColor:s=!1,shouldSkipGeneratingVar:i=ov,colorSchemeSelector:l=n.light&&n.dark?"media":void 0,rootSelector:u=":root",...c}=e,d=Object.keys(n)[0],m=r||(n.light&&d!=="light"?"light":d),f=cv(o),{[m]:h,light:b,dark:g,...x}=n,C={...x};let E=h;if((m==="dark"&&!("dark"in n)||m==="light"&&!("light"in n))&&(E=!0),!E)throw new Error(Lr(21,m));let k;s&&(k="oklch");const T=Xu(k,C,E,c,m);b&&!C.light&&Xu(k,C,b,void 0,"light"),g&&!C.dark&&Xu(k,C,g,void 0,"dark");let S={defaultColorScheme:m,...T,cssVarPrefix:o,colorSchemeSelector:l,rootSelector:u,getCssVar:f,colorSchemes:C,font:{...jE(T.typography),...T.font},spacing:uv(c.spacing)};Object.keys(S.colorSchemes).forEach(L=>{const v=S.colorSchemes[L].palette,N=A=>{const R=A.split("-"),W=R[1],H=R[2];return f(A,v[W][H])};v.mode==="light"&&(me(v.common,"background","#fff"),me(v.common,"onBackground","#000")),v.mode==="dark"&&(me(v.common,"background","#000"),me(v.common,"onBackground","#fff"));function I(A,R,W){if(k){let H;return A===da&&(H=`transparent ${((1-W)*100).toFixed(0)}%`),A===mt&&(H=`#000 ${(W*100).toFixed(0)}%`),A===ht&&(H=`#fff ${(W*100).toFixed(0)}%`),`color-mix(in ${k}, ${R}, ${H})`}return A(R,W)}if(lv(v,["Alert","AppBar","Avatar","Button","Chip","FilledInput","LinearProgress","Skeleton","Slider","SnackbarContent","SpeedDialAction","StepConnector","StepContent","Switch","TableCell","Tooltip"]),v.mode==="light"){me(v.Alert,"errorColor",I(mt,v.error.light,.6)),me(v.Alert,"infoColor",I(mt,v.info.light,.6)),me(v.Alert,"successColor",I(mt,v.success.light,.6)),me(v.Alert,"warningColor",I(mt,v.warning.light,.6)),me(v.Alert,"errorFilledBg",N("palette-error-main")),me(v.Alert,"infoFilledBg",N("palette-info-main")),me(v.Alert,"successFilledBg",N("palette-success-main")),me(v.Alert,"warningFilledBg",N("palette-warning-main")),me(v.Alert,"errorFilledColor",ir(()=>v.getContrastText(v.error.main))),me(v.Alert,"infoFilledColor",ir(()=>v.getContrastText(v.info.main))),me(v.Alert,"successFilledColor",ir(()=>v.getContrastText(v.success.main))),me(v.Alert,"warningFilledColor",ir(()=>v.getContrastText(v.warning.main))),me(v.Alert,"errorStandardBg",I(ht,v.error.light,.9)),me(v.Alert,"infoStandardBg",I(ht,v.info.light,.9)),me(v.Alert,"successStandardBg",I(ht,v.success.light,.9)),me(v.Alert,"warningStandardBg",I(ht,v.warning.light,.9)),me(v.Alert,"errorIconColor",N("palette-error-main")),me(v.Alert,"infoIconColor",N("palette-info-main")),me(v.Alert,"successIconColor",N("palette-success-main")),me(v.Alert,"warningIconColor",N("palette-warning-main")),me(v.AppBar,"defaultBg",N("palette-grey-100")),me(v.Avatar,"defaultBg",N("palette-grey-400")),me(v.Button,"inheritContainedBg",N("palette-grey-300")),me(v.Button,"inheritContainedHoverBg",N("palette-grey-A100")),me(v.Chip,"defaultBorder",N("palette-grey-400")),me(v.Chip,"defaultAvatarColor",N("palette-grey-700")),me(v.Chip,"defaultIconColor",N("palette-grey-700")),me(v.FilledInput,"bg","rgba(0, 0, 0, 0.06)"),me(v.FilledInput,"hoverBg","rgba(0, 0, 0, 0.09)"),me(v.FilledInput,"disabledBg","rgba(0, 0, 0, 0.12)"),me(v.LinearProgress,"primaryBg",I(ht,v.primary.main,.62)),me(v.LinearProgress,"secondaryBg",I(ht,v.secondary.main,.62)),me(v.LinearProgress,"errorBg",I(ht,v.error.main,.62)),me(v.LinearProgress,"infoBg",I(ht,v.info.main,.62)),me(v.LinearProgress,"successBg",I(ht,v.success.main,.62)),me(v.LinearProgress,"warningBg",I(ht,v.warning.main,.62)),me(v.Skeleton,"bg",k?I(da,v.text.primary,.11):`rgba(${N("palette-text-primaryChannel")} / 0.11)`),me(v.Slider,"primaryTrack",I(ht,v.primary.main,.62)),me(v.Slider,"secondaryTrack",I(ht,v.secondary.main,.62)),me(v.Slider,"errorTrack",I(ht,v.error.main,.62)),me(v.Slider,"infoTrack",I(ht,v.info.main,.62)),me(v.Slider,"successTrack",I(ht,v.success.main,.62)),me(v.Slider,"warningTrack",I(ht,v.warning.main,.62));const A=k?I(mt,v.background.default,.6825):wi(v.background.default,.8);me(v.SnackbarContent,"bg",A),me(v.SnackbarContent,"color",ir(()=>k?Wc.text.primary:v.getContrastText(A))),me(v.SpeedDialAction,"fabHoverBg",wi(v.background.paper,.15)),me(v.StepConnector,"border",N("palette-grey-400")),me(v.StepContent,"border",N("palette-grey-400")),me(v.Switch,"defaultColor",N("palette-common-white")),me(v.Switch,"defaultDisabledColor",N("palette-grey-100")),me(v.Switch,"primaryDisabledColor",I(ht,v.primary.main,.62)),me(v.Switch,"secondaryDisabledColor",I(ht,v.secondary.main,.62)),me(v.Switch,"errorDisabledColor",I(ht,v.error.main,.62)),me(v.Switch,"infoDisabledColor",I(ht,v.info.main,.62)),me(v.Switch,"successDisabledColor",I(ht,v.success.main,.62)),me(v.Switch,"warningDisabledColor",I(ht,v.warning.main,.62)),me(v.TableCell,"border",I(ht,I(da,v.divider,1),.88)),me(v.Tooltip,"bg",I(da,v.grey[700],.92))}if(v.mode==="dark"){me(v.Alert,"errorColor",I(ht,v.error.light,.6)),me(v.Alert,"infoColor",I(ht,v.info.light,.6)),me(v.Alert,"successColor",I(ht,v.success.light,.6)),me(v.Alert,"warningColor",I(ht,v.warning.light,.6)),me(v.Alert,"errorFilledBg",N("palette-error-dark")),me(v.Alert,"infoFilledBg",N("palette-info-dark")),me(v.Alert,"successFilledBg",N("palette-success-dark")),me(v.Alert,"warningFilledBg",N("palette-warning-dark")),me(v.Alert,"errorFilledColor",ir(()=>v.getContrastText(v.error.dark))),me(v.Alert,"infoFilledColor",ir(()=>v.getContrastText(v.info.dark))),me(v.Alert,"successFilledColor",ir(()=>v.getContrastText(v.success.dark))),me(v.Alert,"warningFilledColor",ir(()=>v.getContrastText(v.warning.dark))),me(v.Alert,"errorStandardBg",I(mt,v.error.light,.9)),me(v.Alert,"infoStandardBg",I(mt,v.info.light,.9)),me(v.Alert,"successStandardBg",I(mt,v.success.light,.9)),me(v.Alert,"warningStandardBg",I(mt,v.warning.light,.9)),me(v.Alert,"errorIconColor",N("palette-error-main")),me(v.Alert,"infoIconColor",N("palette-info-main")),me(v.Alert,"successIconColor",N("palette-success-main")),me(v.Alert,"warningIconColor",N("palette-warning-main")),me(v.AppBar,"defaultBg",N("palette-grey-900")),me(v.AppBar,"darkBg",N("palette-background-paper")),me(v.AppBar,"darkColor",N("palette-text-primary")),me(v.Avatar,"defaultBg",N("palette-grey-600")),me(v.Button,"inheritContainedBg",N("palette-grey-800")),me(v.Button,"inheritContainedHoverBg",N("palette-grey-700")),me(v.Chip,"defaultBorder",N("palette-grey-700")),me(v.Chip,"defaultAvatarColor",N("palette-grey-300")),me(v.Chip,"defaultIconColor",N("palette-grey-300")),me(v.FilledInput,"bg","rgba(255, 255, 255, 0.09)"),me(v.FilledInput,"hoverBg","rgba(255, 255, 255, 0.13)"),me(v.FilledInput,"disabledBg","rgba(255, 255, 255, 0.12)"),me(v.LinearProgress,"primaryBg",I(mt,v.primary.main,.5)),me(v.LinearProgress,"secondaryBg",I(mt,v.secondary.main,.5)),me(v.LinearProgress,"errorBg",I(mt,v.error.main,.5)),me(v.LinearProgress,"infoBg",I(mt,v.info.main,.5)),me(v.LinearProgress,"successBg",I(mt,v.success.main,.5)),me(v.LinearProgress,"warningBg",I(mt,v.warning.main,.5)),me(v.Skeleton,"bg",k?I(da,v.text.primary,.13):`rgba(${N("palette-text-primaryChannel")} / 0.13)`),me(v.Slider,"primaryTrack",I(mt,v.primary.main,.5)),me(v.Slider,"secondaryTrack",I(mt,v.secondary.main,.5)),me(v.Slider,"errorTrack",I(mt,v.error.main,.5)),me(v.Slider,"infoTrack",I(mt,v.info.main,.5)),me(v.Slider,"successTrack",I(mt,v.success.main,.5)),me(v.Slider,"warningTrack",I(mt,v.warning.main,.5));const A=k?I(ht,v.background.default,.985):wi(v.background.default,.98);me(v.SnackbarContent,"bg",A),me(v.SnackbarContent,"color",ir(()=>k?k0.text.primary:v.getContrastText(A))),me(v.SpeedDialAction,"fabHoverBg",wi(v.background.paper,.15)),me(v.StepConnector,"border",N("palette-grey-600")),me(v.StepContent,"border",N("palette-grey-600")),me(v.Switch,"defaultColor",N("palette-grey-300")),me(v.Switch,"defaultDisabledColor",N("palette-grey-600")),me(v.Switch,"primaryDisabledColor",I(mt,v.primary.main,.55)),me(v.Switch,"secondaryDisabledColor",I(mt,v.secondary.main,.55)),me(v.Switch,"errorDisabledColor",I(mt,v.error.main,.55)),me(v.Switch,"infoDisabledColor",I(mt,v.info.main,.55)),me(v.Switch,"successDisabledColor",I(mt,v.success.main,.55)),me(v.Switch,"warningDisabledColor",I(mt,v.warning.main,.55)),me(v.TableCell,"border",I(mt,I(da,v.divider,1),.68)),me(v.Tooltip,"bg",I(da,v.grey[700],.92))}Ar(v.background,"default"),Ar(v.background,"paper"),Ar(v.common,"background"),Ar(v.common,"onBackground"),Ar(v,"divider"),Object.keys(v).forEach(A=>{const R=v[A];A!=="tonalOffset"&&R&&typeof R=="object"&&(R.main&&me(v[A],"mainChannel",gs(bs(R.main))),R.light&&me(v[A],"lightChannel",gs(bs(R.light))),R.dark&&me(v[A],"darkChannel",gs(bs(R.dark))),R.contrastText&&me(v[A],"contrastTextChannel",gs(bs(R.contrastText))),A==="text"&&(Ar(v[A],"primary"),Ar(v[A],"secondary")),A==="action"&&(R.active&&Ar(v[A],"active"),R.selected&&Ar(v[A],"selected")))})}),S=t.reduce((L,v)=>ln(L,v),S);const O={prefix:o,disableCssColorScheme:a,shouldSkipGeneratingVar:i,getSelector:iv(S),enableContrastVars:s},{vars:M,generateThemeVars:$,generateStyleSheets:P}=BE(S,O);return S.vars=M,Object.entries(S.colorSchemes[S.defaultColorScheme]).forEach(([L,v])=>{S[L]=v}),S.generateThemeVars=$,S.generateStyleSheets=P,S.generateSpacing=function(){return dt.createSpacing(c.spacing,Vd(this))},S.getColorSchemeSelector=HE(l),S.spacing=S.generateSpacing(),S.shouldSkipGeneratingVar=i,S.unstable_sxConfig={...si,...c?.unstable_sxConfig},S.unstable_sx=function(v){return xo({sx:v,theme:this})},S.toRuntimeSource=A0,S}function Qf(e,t,n){e.colorSchemes&&n&&(e.colorSchemes[t]={...n!==!0&&n,palette:Yd({...n===!0?{}:n.palette,mode:t})})}function R0(e={},...t){const{palette:n,cssVariables:r=!1,colorSchemes:a=n?void 0:{light:!0},defaultColorScheme:o=n?.mode,...s}=e,i=o||"light",l=a?.[i],u={...a,...n?{[i]:{...typeof l!="boolean"&&l,palette:n}}:void 0};if(r===!1){if(!("colorSchemes"in e))return qc(e,...t);let c=n;"palette"in e||u[i]&&(u[i]!==!0?c=u[i].palette:i==="dark"&&(c={mode:"dark"}));const d=qc({...e,palette:c},...t);return d.defaultColorScheme=i,d.colorSchemes=u,d.palette.mode==="light"&&(d.colorSchemes.light={...u.light!==!0&&u.light,palette:d.palette},Qf(d,"dark",u.dark)),d.palette.mode==="dark"&&(d.colorSchemes.dark={...u.dark!==!0&&u.dark,palette:d.palette},Qf(d,"light",u.light)),d}return!n&&!("light"in u)&&i==="light"&&(u.light=!0),dv({...s,colorSchemes:u,defaultColorScheme:i,...typeof r!="boolean"&&r},...t)}const iu=R0(),Po="$$material";function oa(){const e=dt.useTheme(iu);return e[Po]||e}function pv(e){return p.jsx(dt.GlobalStyles,{...e,defaultTheme:iu,themeId:Po})}function fv(e){const{variants:t,...n}=e,r={variants:t,style:Sa(n),isProcessed:!0};return r.style===n||t&&t.forEach(a=>{typeof a.style!="function"&&(a.style=Sa(a.style))}),r}const mv=Gd();function na(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}function Ca(e,t){return t&&e&&typeof e=="object"&&e.styles&&!e.styles.startsWith("@layer")&&(e.styles=`@layer ${t}{${String(e.styles)}}`),e}function hv(e){return e?(t,n)=>n[e]:null}function gv(e,t,n){e.theme=xv(e.theme)?n:e.theme[t]||e.theme}function qi(e,t,n){const r=typeof t=="function"?t(e):t;if(Array.isArray(r))return r.flatMap(a=>qi(e,a,n));if(Array.isArray(r?.variants)){let a;if(r.isProcessed)a=n?Ca(r.style,n):r.style;else{const{variants:o,...s}=r;a=n?Ca(Sa(s),n):s}return M0(e,r.variants,[a],n)}return r?.isProcessed?n?Ca(Sa(r.style),n):r.style:n?Ca(Sa(r),n):r}function M0(e,t,n=[],r=void 0){let a;e:for(let o=0;o<t.length;o+=1){const s=t[o];if(typeof s.props=="function"){if(a??={...e,...e.ownerState,ownerState:e.ownerState},!s.props(a))continue}else for(const i in s.props)if(e[i]!==s.props[i]&&e.ownerState?.[i]!==s.props[i])continue e;typeof s.style=="function"?(a??={...e,...e.ownerState,ownerState:e.ownerState},n.push(r?Ca(Sa(s.style(a)),r):s.style(a))):n.push(r?Ca(Sa(s.style),r):s.style)}return n}function bv(e={}){const{themeId:t,defaultTheme:n=mv,rootShouldForwardProp:r=na,slotShouldForwardProp:a=na}=e;function o(i){gv(i,t,n)}return(i,l={})=>{vE(i,S=>S.filter(O=>O!==xo));const{name:u,slot:c,skipVariantsResolver:d,skipSx:m,overridesResolver:f=hv(Ev(c)),...h}=l,b=u&&u.startsWith("Mui")||c?"components":"custom",g=d!==void 0?d:c&&c!=="Root"&&c!=="root"||!1,x=m||!1;let C=na;c==="Root"||c==="root"?C=r:c?C=a:Cv(i)&&(C=void 0);const E=EE(i,{shouldForwardProp:C,label:yv(),...h}),k=S=>{if(S.__emotion_real===S)return S;if(typeof S=="function")return function(M){return qi(M,S,M.theme.modularCssLayers?b:void 0)};if(gr(S)){const O=fv(S);return function($){return O.variants?qi($,O,$.theme.modularCssLayers?b:void 0):$.theme.modularCssLayers?Ca(O.style,b):O.style}}return S},T=(...S)=>{const O=[],M=S.map(k),$=[];if(O.push(o),u&&f&&$.push(function(N){const A=N.theme.components?.[u]?.styleOverrides;if(!A)return null;const R={};for(const W in A)R[W]=qi(N,A[W],N.theme.modularCssLayers?"theme":void 0);return f(N,R)}),u&&!g&&$.push(function(N){const A=N.theme?.components?.[u]?.variants;return A?M0(N,A,[],N.theme.modularCssLayers?"theme":void 0):null}),x||$.push(xo),Array.isArray(M[0])){const v=M.shift(),N=new Array(O.length).fill(""),I=new Array($.length).fill("");let A;A=[...N,...v,...I],A.raw=[...N,...v.raw,...I],O.unshift(A)}const P=[...O,...M,...$],L=E(...P);return i.muiName&&(L.muiName=i.muiName),L};return E.withConfig&&(T.withConfig=E.withConfig),T}}function yv(e,t){return void 0}function xv(e){for(const t in e)return!1;return!0}function Cv(e){return typeof e=="string"&&e.charCodeAt(0)>96}function Ev(e){return e&&e.charAt(0).toLowerCase()+e.slice(1)}function N0(e){return e!=="ownerState"&&e!=="theme"&&e!=="sx"&&e!=="as"}const gn=e=>N0(e)&&e!=="classes",oe=bv({themeId:Po,defaultTheme:iu,rootShouldForwardProp:gn});function vv(e){return function(n){return p.jsx(pv,{styles:typeof e=="function"?r=>e({theme:r,...n}):e})}}function Tv(){return tE}const tt=dt.unstable_memoTheme;function Xe(e){return _E(e)}function Re(e,t,n="Mui"){const r={};return t.forEach(a=>{r[a]=Fe(e,a,n)}),r}function kv(e){return Fe("MuiSvgIcon",e)}Re("MuiSvgIcon",["root","colorPrimary","colorSecondary","colorAction","colorError","colorDisabled","fontSizeInherit","fontSizeSmall","fontSizeMedium","fontSizeLarge"]);const Sv=e=>{const{color:t,fontSize:n,classes:r}=e,a={root:["root",t!=="inherit"&&`color${Se(t)}`,`fontSize${Se(n)}`]};return Le(a,kv,r)},wv=oe("svg",{name:"MuiSvgIcon",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="inherit"&&t[`color${Se(n.color)}`],t[`fontSize${Se(n.fontSize)}`]]}})(tt(({theme:e})=>({userSelect:"none",width:"1em",height:"1em",display:"inline-block",flexShrink:0,transition:e.transitions?.create?.("fill",{duration:(e.vars??e).transitions?.duration?.shorter}),variants:[{props:t=>!t.hasSvgAsChild,style:{fill:"currentColor"}},{props:{fontSize:"inherit"},style:{fontSize:"inherit"}},{props:{fontSize:"small"},style:{fontSize:e.typography?.pxToRem?.(20)||"1.25rem"}},{props:{fontSize:"medium"},style:{fontSize:e.typography?.pxToRem?.(24)||"1.5rem"}},{props:{fontSize:"large"},style:{fontSize:e.typography?.pxToRem?.(35)||"2.1875rem"}},...Object.entries((e.vars??e).palette).filter(([,t])=>t&&t.main).map(([t])=>({props:{color:t},style:{color:(e.vars??e).palette?.[t]?.main}})),{props:{color:"action"},style:{color:(e.vars??e).palette?.action?.active}},{props:{color:"disabled"},style:{color:(e.vars??e).palette?.action?.disabled}},{props:{color:"inherit"},style:{color:void 0}}]}))),Gc=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSvgIcon"}),{children:a,className:o,color:s="inherit",component:i="svg",fontSize:l="medium",htmlColor:u,inheritViewBox:c=!1,titleAccess:d,viewBox:m="0 0 24 24",...f}=r,h=w.isValidElement(a)&&a.type==="svg",b={...r,color:s,component:i,fontSize:l,instanceFontSize:t.fontSize,inheritViewBox:c,viewBox:m,hasSvgAsChild:h},g={};c||(g.viewBox=m);const x=Sv(b);return p.jsxs(wv,{as:i,className:De(x.root,o),focusable:"false",color:u,"aria-hidden":d?void 0:!0,role:d?"img":void 0,ref:n,...g,...f,...h&&a.props,ownerState:b,children:[h?a.props.children:a,d?p.jsx("title",{children:d}):null]})});Gc.muiName="SvgIcon";function nt(e,t){function n(r,a){return p.jsx(Gc,{"data-testid":void 0,ref:a,...r,children:e})}return n.muiName=Gc.muiName,w.memo(w.forwardRef(n))}function O0(e,t=166){let n;function r(...a){const o=()=>{e.apply(this,a)};clearTimeout(n),n=setTimeout(o,t)}return r.clear=()=>{clearTimeout(n)},r}function Yi(e,t){return w.isValidElement(e)&&t.indexOf(e.type.muiName??e.type?._payload?.value?.muiName)!==-1}function Ut(e){return e&&e.ownerDocument||document}function $r(e){return Ut(e).defaultView||window}function Kc(e,t){typeof e=="function"?e(t):e&&(e.current=t)}function An(e){const{controlled:t,default:n,name:r,state:a="value"}=e,{current:o}=w.useRef(t!==void 0),[s,i]=w.useState(n),l=o?t:s,u=w.useCallback(c=>{o||i(c)},[]);return[l,u]}function Ae(e){const t=w.useRef(e);return qt(()=>{t.current=e}),w.useRef((...n)=>(0,t.current)(...n)).current}function ot(...e){const t=w.useRef(void 0),n=w.useCallback(r=>{const a=e.map(o=>{if(o==null)return null;if(typeof o=="function"){const s=o,i=s(r);return typeof i=="function"?i:()=>{s(null)}}return o.current=r,()=>{o.current=null}});return()=>{a.forEach(o=>o?.())}},e);return w.useMemo(()=>e.every(r=>r==null)?null:r=>{t.current&&(t.current(),t.current=void 0),r!=null&&(t.current=n(r))},e)}function _v(e,t){const n=e.charCodeAt(2);return e[0]==="o"&&e[1]==="n"&&n>=65&&n<=90&&typeof t=="function"}function L0(e,t){if(!e)return t;function n(s,i){const l={};return Object.keys(i).forEach(u=>{_v(u,i[u])&&typeof s[u]=="function"&&(l[u]=(...c)=>{s[u](...c),i[u](...c)})}),l}if(typeof e=="function"||typeof t=="function")return s=>{const i=typeof t=="function"?t(s):t,l=typeof e=="function"?e({...s,...i}):e,u=De(s?.className,i?.className,l?.className),c=n(l,i);return{...i,...l,...c,...!!u&&{className:u},...i?.style&&l?.style&&{style:{...i.style,...l.style}},...i?.sx&&l?.sx&&{sx:[...Array.isArray(i.sx)?i.sx:[i.sx],...Array.isArray(l.sx)?l.sx:[l.sx]]}}};const r=t,a=n(e,r),o=De(r?.className,e?.className);return{...t,...e,...a,...!!o&&{className:o},...r?.style&&e?.style&&{style:{...r.style,...e.style}},...r?.sx&&e?.sx&&{sx:[...Array.isArray(r.sx)?r.sx:[r.sx],...Array.isArray(e.sx)?e.sx:[e.sx]]}}}const Kd=nt(p.jsx("path",{d:"M19 13h-6v6h-2v-6H5v-2h6V5h2v6h6z"})),Za=dt.createStack({createStyledComponent:oe("div",{name:"MuiStack",slot:"Root"}),useThemeProps:e=>Xe({props:e,name:"MuiStack"})});class co{constructor(t,n){this.workbookData=n,this.workbookStorage=t,this.workbookData?this.isSaved=!0:(this.workbookData={models:[],cells:[],workbookPath:void 0},this.isSaved=!1)}isSaved;workbookStorage;getWorkbookData(){return this.workbookData}getWorkbookPath(){return this.workbookData.workbookPath}async renameWorkbook(t){if(this.workbookData.workbookPath.path!==t)try{await this.workbookStorage.moveWorkbook(this.workbookData.workbookPath,{path:t,workspace:this.workbookData.workbookPath.workspace})}catch{}return this.workbookData.workbookPath.path=t,this.isSaved=!1,await this.saveWorkbook()}getCells(){return this.workbookData.cells}deleteCell(t){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),...this.workbookData.cells.slice(t+1)],this.isSaved=!1,this}insertCell(t,n){return this.workbookData.cells=[...this.workbookData.cells.slice(0,t),n,...this.workbookData.cells.slice(t)],this.isSaved=!1,this}setCell(t,n){return this.workbookData.cells[t]=n,this.isSaved=!1,this}setModels(t){return this.workbookData.models=t,this.isSaved=!1,this}getModels(){return this.workbookData.models}updateWorkbookData(t){return this.workbookData=t,this.isSaved=!1,this}async saveWorkbook(){if(!this.isSaved){if(!this.workbookData.workbookPath)throw new Error("Workbook path is not set");await this.workbookStorage.saveWorkbook(this.workbookData.workbookPath,JSON.stringify(this.workbookData)),this.isSaved=!0}return new co(this.workbookStorage,this.workbookData)}toMalloyWorkbook(){return this.workbookData.cells.map(t=>t.isMarkdown?`>>>markdown
17
- `+t.value:`>>>malloy
18
- import {${t.sourceName}}" from '${t.modelPath}'"
19
- `+t.value+`
20
- `).join(`
21
- `)}static newWorkbook(t){return new co(t,void 0)}static async loadWorkbook(t,n){let r;try{const a=await t.getWorkbook(n);a&&(r=JSON.parse(a))}catch{r={models:[],cells:[],workbookPath:n}}return new co(t,r)}}const Cl=D.styled(D.Card)({display:"flex",flexDirection:"column",height:"100%",boxShadow:"none",border:"none",backgroundColor:"transparent"}),F0=D.styled(D.CardContent)({display:"flex",flexDirection:"column",padding:"0",flexGrow:1}),Qd=D.styled(D.CardMedia)({padding:"0"}),Iv=D.styled("div")({backgroundColor:"#ffffff",padding:"0 8px 0px 8px",borderRadius:"12px",boxShadow:"none",border:"none",maxWidth:"1200px",margin:"0 auto"});D.styled("div")({marginBottom:"40px",paddingBottom:"24px",borderBottom:"1px solid #f0f0f0"});const Av=D.styled("div")({marginBottom:"48px",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Qc=D.styled("div")({marginBottom:"0",padding:"0",backgroundColor:"transparent",border:"none",boxShadow:"none"}),Gi=D.styled("div")({backgroundColor:"#ffffff",paddingTop:"12px",paddingBottom:"2px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",marginBottom:"0",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}});D.styled("div")({backgroundColor:"#f8f9fa",padding:"16px",borderRadius:"8px",border:"1px solid #e9ecef",fontFamily:"'Monaco', 'Menlo', 'Ubuntu Mono', monospace",fontSize:"13px",lineHeight:"1.5",overflowX:"auto"});D.styled("div")({backgroundColor:"#f8f9fa",padding:"12px 16px",borderRadius:"8px",border:"1px solid #e9ecef",marginBottom:"16px",display:"flex",justifyContent:"space-between",alignItems:"center"});const Dv=D.styled("div")({height:"100%"});D.styled("div")({height:"30px",backgroundColor:"rgba(225, 240, 255, 1)",display:"flex",padding:"4px",alignItems:"center"});const $0=D.styled("div")({height:"75vh",width:"100%",overflowY:"auto"});D.styled("div")({position:"relative",height:"100%",flex:"0 0 auto"});const sa=D.styled(D.Card)({backgroundColor:"#ffffff",padding:"24px",borderRadius:"8px",border:"1px solid #f0f0f0",boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",height:"100%",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}}),ia=D.styled(D.CardContent)({padding:"0","&:last-child":{paddingBottom:"0"}}),Ba=D.styled("div")({fontSize:"12px",fontWeight:"600",color:"#666666",textTransform:"uppercase",letterSpacing:"0.5px",marginBottom:"16px",paddingBottom:"8px",borderBottom:"1px solid #f0f0f0"}),Pv=D.styled("div")({padding:"32px",maxWidth:"1400px",margin:"0 auto",minHeight:"100vh"}),_i=nt(p.jsx("path",{d:"M9 16.17 4.83 12l-1.42 1.41L9 19 21 7l-1.41-1.41z"})),B0=nt(p.jsx("path",{d:"M9.4 16.6 4.8 12l4.6-4.6L8 6l-6 6 6 6zm5.2 0 4.6-4.6-4.6-4.6L16 6l6 6-6 6z"})),Xf=nt(p.jsx("path",{d:"m14.06 9.02.92.92L5.92 19H5v-.92zM17.66 3c-.25 0-.51.1-.7.29l-1.83 1.83 3.75 3.75 1.83-1.83c.39-.39.39-1.02 0-1.41l-2.34-2.34c-.2-.2-.45-.29-.71-.29m-3.6 3.19L3 17.25V21h3.75L17.81 9.94z"})),Xd=nt(p.jsx("path",{d:"M17 7h-4v2h4c1.65 0 3 1.35 3 3s-1.35 3-3 3h-4v2h4c2.76 0 5-2.24 5-5s-2.24-5-5-5m-6 8H7c-1.65 0-3-1.35-3-3s1.35-3 3-3h4V7H7c-2.76 0-5 2.24-5 5s2.24 5 5 5h4zm-3-4h8v2H8z"}));function U(){return U=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)({}).hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},U.apply(null,arguments)}function je(e,t){if(e==null)return{};var n={};for(var r in e)if({}.hasOwnProperty.call(e,r)){if(t.indexOf(r)!==-1)continue;n[r]=e[r]}return n}function Xc(e){const t=[],n=String(e||"");let r=n.indexOf(","),a=0,o=!1;for(;!o;){r===-1&&(r=n.length,o=!0);const s=n.slice(a,r).trim();(s||!o)&&t.push(s),a=r+1,r=n.indexOf(",",a)}return t}function lu(e,t){const n=t||{};return(e[e.length-1]===""?[...e,""]:e).join((n.padRight?" ":"")+","+(n.padLeft===!1?"":" ")).trim()}const Rv=/^[$_\p{ID_Start}][$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Mv=/^[$_\p{ID_Start}][-$_\u{200C}\u{200D}\p{ID_Continue}]*$/u,Nv={};function Zf(e,t){return(Nv.jsx?Mv:Rv).test(e)}const Ov=/[ \t\n\f\r]/g;function ii(e){return typeof e=="object"?e.type==="text"?Jf(e.value):!1:Jf(e)}function Jf(e){return e.replace(Ov,"")===""}let li=class{constructor(t,n,r){this.normal=n,this.property=t,r&&(this.space=r)}};li.prototype.normal={};li.prototype.property={};li.prototype.space=void 0;function j0(e,t){const n={},r={};for(const a of e)Object.assign(n,a.property),Object.assign(r,a.normal);return new li(n,r,t)}function Hs(e){return e.toLowerCase()}let Tn=class{constructor(t,n){this.attribute=n,this.property=t}};Tn.prototype.attribute="";Tn.prototype.booleanish=!1;Tn.prototype.boolean=!1;Tn.prototype.commaOrSpaceSeparated=!1;Tn.prototype.commaSeparated=!1;Tn.prototype.defined=!1;Tn.prototype.mustUseProperty=!1;Tn.prototype.number=!1;Tn.prototype.overloadedBoolean=!1;Tn.prototype.property="";Tn.prototype.spaceSeparated=!1;Tn.prototype.space=void 0;let Lv=0;const Ke=ja(),jt=ja(),Zc=ja(),_e=ja(),kt=ja(),po=ja(),kn=ja();function ja(){return 2**++Lv}const Jc=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ke,booleanish:jt,commaOrSpaceSeparated:kn,commaSeparated:po,number:_e,overloadedBoolean:Zc,spaceSeparated:kt},Symbol.toStringTag,{value:"Module"})),Zu=Object.keys(Jc);let Zd=class extends Tn{constructor(t,n,r,a){let o=-1;if(super(t,n),em(this,"space",a),typeof r=="number")for(;++o<Zu.length;){const s=Zu[o];em(this,Zu[o],(r&Jc[s])===Jc[s])}}};Zd.prototype.defined=!0;function em(e,t,n){n&&(e[t]=n)}function Ro(e){const t={},n={};for(const[r,a]of Object.entries(e.properties)){const o=new Zd(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[Hs(r)]=r,n[Hs(o.attribute)]=r}return new li(t,n,e.space)}const H0=Ro({properties:{ariaActiveDescendant:null,ariaAtomic:jt,ariaAutoComplete:null,ariaBusy:jt,ariaChecked:jt,ariaColCount:_e,ariaColIndex:_e,ariaColSpan:_e,ariaControls:kt,ariaCurrent:null,ariaDescribedBy:kt,ariaDetails:null,ariaDisabled:jt,ariaDropEffect:kt,ariaErrorMessage:null,ariaExpanded:jt,ariaFlowTo:kt,ariaGrabbed:jt,ariaHasPopup:null,ariaHidden:jt,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:kt,ariaLevel:_e,ariaLive:null,ariaModal:jt,ariaMultiLine:jt,ariaMultiSelectable:jt,ariaOrientation:null,ariaOwns:kt,ariaPlaceholder:null,ariaPosInSet:_e,ariaPressed:jt,ariaReadOnly:jt,ariaRelevant:null,ariaRequired:jt,ariaRoleDescription:kt,ariaRowCount:_e,ariaRowIndex:_e,ariaRowSpan:_e,ariaSelected:jt,ariaSetSize:_e,ariaSort:null,ariaValueMax:_e,ariaValueMin:_e,ariaValueNow:_e,ariaValueText:null,role:null},transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()}});function U0(e,t){return t in e?e[t]:t}function z0(e,t){return U0(e,t.toLowerCase())}const Fv=Ro({attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:po,acceptCharset:kt,accessKey:kt,action:null,allow:null,allowFullScreen:Ke,allowPaymentRequest:Ke,allowUserMedia:Ke,alt:null,as:null,async:Ke,autoCapitalize:null,autoComplete:kt,autoFocus:Ke,autoPlay:Ke,blocking:kt,capture:null,charSet:null,checked:Ke,cite:null,className:kt,cols:_e,colSpan:null,content:null,contentEditable:jt,controls:Ke,controlsList:kt,coords:_e|po,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ke,defer:Ke,dir:null,dirName:null,disabled:Ke,download:Zc,draggable:jt,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ke,formTarget:null,headers:kt,height:_e,hidden:Zc,high:_e,href:null,hrefLang:null,htmlFor:kt,httpEquiv:kt,id:null,imageSizes:null,imageSrcSet:null,inert:Ke,inputMode:null,integrity:null,is:null,isMap:Ke,itemId:null,itemProp:kt,itemRef:kt,itemScope:Ke,itemType:kt,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ke,low:_e,manifest:null,max:null,maxLength:_e,media:null,method:null,min:null,minLength:_e,multiple:Ke,muted:Ke,name:null,nonce:null,noModule:Ke,noValidate:Ke,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ke,optimum:_e,pattern:null,ping:kt,placeholder:null,playsInline:Ke,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ke,referrerPolicy:null,rel:kt,required:Ke,reversed:Ke,rows:_e,rowSpan:_e,sandbox:kt,scope:null,scoped:Ke,seamless:Ke,selected:Ke,shadowRootClonable:Ke,shadowRootDelegatesFocus:Ke,shadowRootMode:null,shape:null,size:_e,sizes:null,slot:null,span:_e,spellCheck:jt,src:null,srcDoc:null,srcLang:null,srcSet:null,start:_e,step:null,style:null,tabIndex:_e,target:null,title:null,translate:null,type:null,typeMustMatch:Ke,useMap:null,value:jt,width:_e,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:kt,axis:null,background:null,bgColor:null,border:_e,borderColor:null,bottomMargin:_e,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ke,declare:Ke,event:null,face:null,frame:null,frameBorder:null,hSpace:_e,leftMargin:_e,link:null,longDesc:null,lowSrc:null,marginHeight:_e,marginWidth:_e,noResize:Ke,noHref:Ke,noShade:Ke,noWrap:Ke,object:null,profile:null,prompt:null,rev:null,rightMargin:_e,rules:null,scheme:null,scrolling:jt,standby:null,summary:null,text:null,topMargin:_e,valueType:null,version:null,vAlign:null,vLink:null,vSpace:_e,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ke,disableRemotePlayback:Ke,prefix:null,property:null,results:_e,security:null,unselectable:null},space:"html",transform:z0}),$v=Ro({attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},properties:{about:kn,accentHeight:_e,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:_e,amplitude:_e,arabicForm:null,ascent:_e,attributeName:null,attributeType:null,azimuth:_e,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:_e,by:null,calcMode:null,capHeight:_e,className:kt,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:_e,diffuseConstant:_e,direction:null,display:null,dur:null,divisor:_e,dominantBaseline:null,download:Ke,dx:null,dy:null,edgeMode:null,editable:null,elevation:_e,enableBackground:null,end:null,event:null,exponent:_e,externalResourcesRequired:null,fill:null,fillOpacity:_e,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:po,g2:po,glyphName:po,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:_e,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:_e,horizOriginX:_e,horizOriginY:_e,id:null,ideographic:_e,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:_e,k:_e,k1:_e,k2:_e,k3:_e,k4:_e,kernelMatrix:kn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:_e,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:_e,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:_e,overlineThickness:_e,paintOrder:null,panose1:null,path:null,pathLength:_e,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:kt,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:_e,pointsAtY:_e,pointsAtZ:_e,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:kn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:kn,rev:kn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:kn,requiredFeatures:kn,requiredFonts:kn,requiredFormats:kn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:_e,specularExponent:_e,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:_e,strikethroughThickness:_e,string:null,stroke:null,strokeDashArray:kn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:_e,strokeOpacity:_e,strokeWidth:null,style:null,surfaceScale:_e,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:kn,tabIndex:_e,tableValues:null,target:null,targetX:_e,targetY:_e,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:kn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:_e,underlineThickness:_e,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:_e,values:null,vAlphabetic:_e,vMathematical:_e,vectorEffect:null,vHanging:_e,vIdeographic:_e,version:null,vertAdvY:_e,vertOriginX:_e,vertOriginY:_e,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:_e,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null},space:"svg",transform:U0}),V0=Ro({properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null},space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()}}),W0=Ro({attributes:{xmlnsxlink:"xmlns:xlink"},properties:{xmlnsXLink:null,xmlns:null},space:"xmlns",transform:z0}),q0=Ro({properties:{xmlBase:null,xmlLang:null,xmlSpace:null},space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()}}),Bv={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"},jv=/[A-Z]/g,tm=/-[a-z]/g,Hv=/^data[-\w.:]+$/i;function ui(e,t){const n=Hs(t);let r=t,a=Tn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&Hv.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(tm,zv);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!tm.test(o)){let s=o.replace(jv,Uv);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=Zd}return new a(r,t)}function Uv(e){return"-"+e.toLowerCase()}function zv(e){return e.charAt(1).toUpperCase()}const Mo=j0([H0,Fv,V0,W0,q0],"html"),Ur=j0([H0,$v,V0,W0,q0],"svg");function ed(e){const t=String(e||"").trim();return t?t.split(/[ \t\n\r\f]+/g):[]}function uu(e){return e.join(" ").trim()}var Ja={},Ju,nm;function Vv(){if(nm)return Ju;nm=1;var e=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,t=/\n/g,n=/^\s*/,r=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,a=/^:\s*/,o=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,i=/^\s+|\s+$/g,l=`
22
- `,u="/",c="*",d="",m="comment",f="declaration";Ju=function(b,g){if(typeof b!="string")throw new TypeError("First argument must be a string");if(!b)return[];g=g||{};var x=1,C=1;function E(N){var I=N.match(t);I&&(x+=I.length);var A=N.lastIndexOf(l);C=~A?N.length-A:C+N.length}function k(){var N={line:x,column:C};return function(I){return I.position=new T(N),M(),I}}function T(N){this.start=N,this.end={line:x,column:C},this.source=g.source}T.prototype.content=b;function S(N){var I=new Error(g.source+":"+x+":"+C+": "+N);if(I.reason=N,I.filename=g.source,I.line=x,I.column=C,I.source=b,!g.silent)throw I}function O(N){var I=N.exec(b);if(I){var A=I[0];return E(A),b=b.slice(A.length),I}}function M(){O(n)}function $(N){var I;for(N=N||[];I=P();)I!==!1&&N.push(I);return N}function P(){var N=k();if(!(u!=b.charAt(0)||c!=b.charAt(1))){for(var I=2;d!=b.charAt(I)&&(c!=b.charAt(I)||u!=b.charAt(I+1));)++I;if(I+=2,d===b.charAt(I-1))return S("End of comment missing");var A=b.slice(2,I-2);return C+=2,E(A),b=b.slice(I),C+=2,N({type:m,comment:A})}}function L(){var N=k(),I=O(r);if(I){if(P(),!O(a))return S("property missing ':'");var A=O(o),R=N({type:f,property:h(I[0].replace(e,d)),value:A?h(A[0].replace(e,d)):d});return O(s),R}}function v(){var N=[];$(N);for(var I;I=L();)I!==!1&&(N.push(I),$(N));return N}return M(),v()};function h(b){return b?b.replace(i,d):d}return Ju}var rm;function Wv(){if(rm)return Ja;rm=1;var e=Ja&&Ja.__importDefault||function(r){return r&&r.__esModule?r:{default:r}};Object.defineProperty(Ja,"__esModule",{value:!0}),Ja.default=n;var t=e(Vv());function n(r,a){var o=null;if(!r||typeof r!="string")return o;var s=(0,t.default)(r),i=typeof a=="function";return s.forEach(function(l){if(l.type==="declaration"){var u=l.property,c=l.value;i?a(u,c,l):c&&(o=o||{},o[u]=c)}}),o}return Ja}var Xo={},am;function qv(){if(am)return Xo;am=1,Object.defineProperty(Xo,"__esModule",{value:!0}),Xo.camelCase=void 0;var e=/^--[a-zA-Z0-9_-]+$/,t=/-([a-z])/g,n=/^[^-]+$/,r=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,o=function(u){return!u||n.test(u)||e.test(u)},s=function(u,c){return c.toUpperCase()},i=function(u,c){return"".concat(c,"-")},l=function(u,c){return c===void 0&&(c={}),o(u)?u:(u=u.toLowerCase(),c.reactCompat?u=u.replace(a,i):u=u.replace(r,i),u.replace(t,s))};return Xo.camelCase=l,Xo}var Zo,om;function Yv(){if(om)return Zo;om=1;var e=Zo&&Zo.__importDefault||function(a){return a&&a.__esModule?a:{default:a}},t=e(Wv()),n=qv();function r(a,o){var s={};return!a||typeof a!="string"||(0,t.default)(a,function(i,l){i&&l&&(s[(0,n.camelCase)(i,o)]=l)}),s}return r.default=r,Zo=r,Zo}var Gv=Yv();const Kv=ar(Gv),cu=Y0("end"),Er=Y0("start");function Y0(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 Qv(e){const t=Er(e),n=cu(e);if(t&&n)return{start:t,end:n}}function vs(e){return!e||typeof e!="object"?"":"position"in e||"type"in e?sm(e.position):"start"in e||"end"in e?sm(e):"line"in e||"column"in e?td(e):""}function td(e){return im(e&&e.line)+":"+im(e&&e.column)}function sm(e){return td(e&&e.start)+"-"+td(e&&e.end)}function im(e){return e&&typeof e=="number"?e:1}class un extends Error{constructor(t,n,r){super(),typeof n=="string"&&(r=n,n=void 0);let a="",o={},s=!1;if(n&&("line"in n&&"column"in n?o={place:n}:"start"in n&&"end"in n?o={place:n}:"type"in n?o={ancestors:[n],place:n.position}:o={...n}),typeof t=="string"?a=t:!o.cause&&t&&(s=!0,a=t.message,o.cause=t),!o.ruleId&&!o.source&&typeof r=="string"){const l=r.indexOf(":");l===-1?o.ruleId=r:(o.source=r.slice(0,l),o.ruleId=r.slice(l+1))}if(!o.place&&o.ancestors&&o.ancestors){const l=o.ancestors[o.ancestors.length-1];l&&(o.place=l.position)}const i=o.place&&"start"in o.place?o.place.start:o.place;this.ancestors=o.ancestors||void 0,this.cause=o.cause||void 0,this.column=i?i.column:void 0,this.fatal=void 0,this.file="",this.message=a,this.line=i?i.line:void 0,this.name=vs(o.place)||"1:1",this.place=o.place||void 0,this.reason=this.message,this.ruleId=o.ruleId||void 0,this.source=o.source||void 0,this.stack=s&&o.cause&&typeof o.cause.stack=="string"?o.cause.stack:"",this.actual=void 0,this.expected=void 0,this.note=void 0,this.url=void 0}}un.prototype.file="";un.prototype.name="";un.prototype.reason="";un.prototype.message="";un.prototype.stack="";un.prototype.column=void 0;un.prototype.line=void 0;un.prototype.ancestors=void 0;un.prototype.cause=void 0;un.prototype.fatal=void 0;un.prototype.place=void 0;un.prototype.ruleId=void 0;un.prototype.source=void 0;const Jd={}.hasOwnProperty,Xv=new Map,Zv=/[A-Z]/g,Jv=new Set(["table","tbody","thead","tfoot","tr"]),eT=new Set(["td","th"]),G0="https://github.com/syntax-tree/hast-util-to-jsx-runtime";function tT(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=uT(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=lT(n,t.jsx,t.jsxs)}const a={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"?Ur:Mo,stylePropertyNameCase:t.stylePropertyNameCase||"dom",tableCellAlignToStyle:t.tableCellAlignToStyle!==!1},o=K0(a,e,void 0);return o&&typeof o!="string"?o:a.create(e,a.Fragment,{children:o||void 0},void 0)}function K0(e,t,n){if(t.type==="element")return nT(e,t,n);if(t.type==="mdxFlowExpression"||t.type==="mdxTextExpression")return rT(e,t);if(t.type==="mdxJsxFlowElement"||t.type==="mdxJsxTextElement")return oT(e,t,n);if(t.type==="mdxjsEsm")return aT(e,t);if(t.type==="root")return sT(e,t,n);if(t.type==="text")return iT(e,t)}function nT(e,t,n){const r=e.schema;let a=r;t.tagName.toLowerCase()==="svg"&&r.space==="html"&&(a=Ur,e.schema=a),e.ancestors.push(t);const o=X0(e,t.tagName,!1),s=cT(e,t);let i=tp(e,t);return Jv.has(t.tagName)&&(i=i.filter(function(l){return typeof l=="string"?!ii(l):!0})),Q0(e,s,o,t),ep(s,i),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function rT(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)}Us(e,t.position)}function aT(e,t){if(t.data&&t.data.estree&&e.evaluater)return e.evaluater.evaluateProgram(t.data.estree);Us(e,t.position)}function oT(e,t,n){const r=e.schema;let a=r;t.name==="svg"&&r.space==="html"&&(a=Ur,e.schema=a),e.ancestors.push(t);const o=t.name===null?e.Fragment:X0(e,t.name,!0),s=dT(e,t),i=tp(e,t);return Q0(e,s,o,t),ep(s,i),e.ancestors.pop(),e.schema=r,e.create(t,o,s,n)}function sT(e,t,n){const r={};return ep(r,tp(e,t)),e.create(t,e.Fragment,r,n)}function iT(e,t){return t.value}function Q0(e,t,n,r){typeof n!="string"&&n!==e.Fragment&&e.passNode&&(t.node=r)}function ep(e,t){if(t.length>0){const n=t.length>1?t:t[0];n&&(e.children=n)}}function lT(e,t,n){return r;function r(a,o,s,i){const u=Array.isArray(s.children)?n:t;return i?u(o,s,i):u(o,s)}}function uT(e,t){return n;function n(r,a,o,s){const i=Array.isArray(o.children),l=Er(r);return t(a,o,s,i,{columnNumber:l?l.column-1:void 0,fileName:e,lineNumber:l?l.line:void 0},void 0)}}function cT(e,t){const n={};let r,a;for(a in t.properties)if(a!=="children"&&Jd.call(t.properties,a)){const o=pT(e,a,t.properties[a]);if(o){const[s,i]=o;e.tableCellAlignToStyle&&s==="align"&&typeof i=="string"&&eT.has(t.tagName)?r=i:n[s]=i}}if(r){const o=n.style||(n.style={});o[e.stylePropertyNameCase==="css"?"text-align":"textAlign"]=r}return n}function dT(e,t){const n={};for(const r of t.attributes)if(r.type==="mdxJsxExpressionAttribute")if(r.data&&r.data.estree&&e.evaluater){const o=r.data.estree.body[0];o.type;const s=o.expression;s.type;const i=s.properties[0];i.type,Object.assign(n,e.evaluater.evaluateExpression(i.argument))}else Us(e,t.position);else{const a=r.name;let o;if(r.value&&typeof r.value=="object")if(r.value.data&&r.value.data.estree&&e.evaluater){const i=r.value.data.estree.body[0];i.type,o=e.evaluater.evaluateExpression(i.expression)}else Us(e,t.position);else o=r.value===null?!0:r.value;n[a]=o}return n}function tp(e,t){const n=[];let r=-1;const a=e.passKeys?new Map:Xv;for(;++r<t.children.length;){const o=t.children[r];let s;if(e.passKeys){const l=o.type==="element"?o.tagName:o.type==="mdxJsxFlowElement"||o.type==="mdxJsxTextElement"?o.name:void 0;if(l){const u=a.get(l)||0;s=l+"-"+u,a.set(l,u+1)}}const i=K0(e,o,s);i!==void 0&&n.push(i)}return n}function pT(e,t,n){const r=ui(e.schema,t);if(!(n==null||typeof n=="number"&&Number.isNaN(n))){if(Array.isArray(n)&&(n=r.commaSeparated?lu(n):uu(n)),r.property==="style"){let a=typeof n=="object"?n:fT(e,String(n));return e.stylePropertyNameCase==="css"&&(a=mT(a)),["style",a]}return[e.elementAttributeNameCase==="react"&&r.space?Bv[r.property]||r.property:r.attribute,n]}}function fT(e,t){try{return Kv(t,{reactCompat:!0})}catch(n){if(e.ignoreInvalidStyle)return{};const r=n,a=new un("Cannot parse `style` attribute",{ancestors:e.ancestors,cause:r,ruleId:"style",source:"hast-util-to-jsx-runtime"});throw a.file=e.filePath||void 0,a.url=G0+"#cannot-parse-style-attribute",a}}function X0(e,t,n){let r;if(!n)r={type:"Literal",value:t};else if(t.includes(".")){const a=t.split(".");let o=-1,s;for(;++o<a.length;){const i=Zf(a[o])?{type:"Identifier",name:a[o]}:{type:"Literal",value:a[o]};s=s?{type:"MemberExpression",object:s,property:i,computed:!!(o&&i.type==="Literal"),optional:!1}:i}r=s}else r=Zf(t)&&!/^[a-z]/.test(t)?{type:"Identifier",name:t}:{type:"Literal",value:t};if(r.type==="Literal"){const a=r.value;return Jd.call(e.components,a)?e.components[a]:a}if(e.evaluater)return e.evaluater.evaluateExpression(r);Us(e)}function Us(e,t){const n=new un("Cannot handle MDX estrees without `createEvaluater`",{ancestors:e.ancestors,place:t,ruleId:"mdx-estree",source:"hast-util-to-jsx-runtime"});throw n.file=e.filePath||void 0,n.url=G0+"#cannot-handle-mdx-estrees-without-createevaluater",n}function mT(e){const t={};let n;for(n in e)Jd.call(e,n)&&(t[hT(n)]=e[n]);return t}function hT(e){let t=e.replace(Zv,gT);return t.slice(0,3)==="ms-"&&(t="-"+t),t}function gT(e){return"-"+e.toLowerCase()}const ec={action:["form"],cite:["blockquote","del","ins","q"],data:["object"],formAction:["button","input"],href:["a","area","base","link"],icon:["menuitem"],itemId:null,manifest:["html"],ping:["a","area"],poster:["video"],src:["audio","embed","iframe","img","input","script","source","track","video"]},bT={};function np(e,t){const n=bT,r=typeof n.includeImageAlt=="boolean"?n.includeImageAlt:!0,a=typeof n.includeHtml=="boolean"?n.includeHtml:!0;return Z0(e,r,a)}function Z0(e,t,n){if(yT(e)){if("value"in e)return e.type==="html"&&!n?"":e.value;if(t&&"alt"in e&&e.alt)return e.alt;if("children"in e)return lm(e.children,t,n)}return Array.isArray(e)?lm(e,t,n):""}function lm(e,t,n){const r=[];let a=-1;for(;++a<e.length;)r[a]=Z0(e[a],t,n);return r.join("")}function yT(e){return!!(e&&typeof e=="object")}const um=document.createElement("i");function rp(e){const t="&"+e+";";um.innerHTML=t;const n=um.textContent;return n.charCodeAt(n.length-1)===59&&e!=="semi"||n===t?!1:n}function Dn(e,t,n,r){const a=e.length;let o=0,s;if(t<0?t=-t>a?0:a+t:t=t>a?a: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);o<r.length;)s=r.slice(o,o+1e4),s.unshift(t,0),e.splice(...s),o+=1e4,t+=1e4}function Hn(e,t){return e.length>0?(Dn(e,e.length,0,t),e):t}const cm={}.hasOwnProperty;function J0(e){const t={};let n=-1;for(;++n<e.length;)xT(t,e[n]);return t}function xT(e,t){let n;for(n in t){const a=(cm.call(e,n)?e[n]:void 0)||(e[n]={}),o=t[n];let s;if(o)for(s in o){cm.call(a,s)||(a[s]=[]);const i=o[s];CT(a[s],Array.isArray(i)?i:i?[i]:[])}}}function CT(e,t){let n=-1;const r=[];for(;++n<t.length;)(t[n].add==="after"?e:r).push(t[n]);Dn(e,0,0,r)}function eb(e,t){const n=Number.parseInt(e,t);return n<9||n===11||n>13&&n<32||n>126&&n<160||n>55295&&n<57344||n>64975&&n<65008||(n&65535)===65535||(n&65535)===65534||n>1114111?"�":String.fromCodePoint(n)}function rr(e){return e.replace(/[\t\n\r ]+/g," ").replace(/^ | $/g,"").toLowerCase().toUpperCase()}const fn=la(/[A-Za-z]/),sn=la(/[\dA-Za-z]/),ET=la(/[#-'*+\--9=?A-Z^-~]/);function El(e){return e!==null&&(e<32||e===127)}const nd=la(/\d/),vT=la(/[\dA-Fa-f]/),TT=la(/[!-/:-@[-`{-~]/);function Ue(e){return e!==null&&e<-2}function Et(e){return e!==null&&(e<0||e===32)}function it(e){return e===-2||e===-1||e===32}const du=la(/\p{P}|\p{S}/u),Ra=la(/\s/);function la(e){return t;function t(n){return n!==null&&n>-1&&e.test(String.fromCharCode(n))}}function No(e){const t=[];let n=-1,r=0,a=0;for(;++n<e.length;){const o=e.charCodeAt(n);let s="";if(o===37&&sn(e.charCodeAt(n+1))&&sn(e.charCodeAt(n+2)))a=2;else if(o<128)/[!#$&-;=?-Z_a-z~]/.test(String.fromCharCode(o))||(s=String.fromCharCode(o));else if(o>55295&&o<57344){const i=e.charCodeAt(n+1);o<56320&&i>56319&&i<57344?(s=String.fromCharCode(o,i),a=1):s="�"}else s=String.fromCharCode(o);s&&(t.push(e.slice(r,n),encodeURIComponent(s)),r=n+a+1,s=""),a&&(n+=a,a=0)}return t.join("")+e.slice(r)}function ut(e,t,n,r){const a=r?r-1:Number.POSITIVE_INFINITY;let o=0;return s;function s(l){return it(l)?(e.enter(n),i(l)):t(l)}function i(l){return it(l)&&o++<a?(e.consume(l),i):(e.exit(n),t(l))}}const kT={tokenize:ST};function ST(e){const t=e.attempt(this.parser.constructs.contentInitial,r,a);let n;return t;function r(i){if(i===null){e.consume(i);return}return e.enter("lineEnding"),e.consume(i),e.exit("lineEnding"),ut(e,t,"linePrefix")}function a(i){return e.enter("paragraph"),o(i)}function o(i){const l=e.enter("chunkText",{contentType:"text",previous:n});return n&&(n.next=l),n=l,s(i)}function s(i){if(i===null){e.exit("chunkText"),e.exit("paragraph"),e.consume(i);return}return Ue(i)?(e.consume(i),e.exit("chunkText"),o):(e.consume(i),s)}}const wT={tokenize:_T},dm={tokenize:IT};function _T(e){const t=this,n=[];let r=0,a,o,s;return i;function i(E){if(r<n.length){const k=n[r];return t.containerState=k[1],e.attempt(k[0].continuation,l,u)(E)}return u(E)}function l(E){if(r++,t.containerState._closeFlow){t.containerState._closeFlow=void 0,a&&C();const k=t.events.length;let T=k,S;for(;T--;)if(t.events[T][0]==="exit"&&t.events[T][1].type==="chunkFlow"){S=t.events[T][1].end;break}x(r);let O=k;for(;O<t.events.length;)t.events[O][1].end={...S},O++;return Dn(t.events,T+1,0,t.events.slice(k)),t.events.length=O,u(E)}return i(E)}function u(E){if(r===n.length){if(!a)return m(E);if(a.currentConstruct&&a.currentConstruct.concrete)return h(E);t.interrupt=!!(a.currentConstruct&&!a._gfmTableDynamicInterruptHack)}return t.containerState={},e.check(dm,c,d)(E)}function c(E){return a&&C(),x(r),m(E)}function d(E){return t.parser.lazy[t.now().line]=r!==n.length,s=t.now().offset,h(E)}function m(E){return t.containerState={},e.attempt(dm,f,h)(E)}function f(E){return r++,n.push([t.currentConstruct,t.containerState]),m(E)}function h(E){if(E===null){a&&C(),x(0),e.consume(E);return}return a=a||t.parser.flow(t.now()),e.enter("chunkFlow",{_tokenizer:a,contentType:"flow",previous:o}),b(E)}function b(E){if(E===null){g(e.exit("chunkFlow"),!0),x(0),e.consume(E);return}return Ue(E)?(e.consume(E),g(e.exit("chunkFlow")),r=0,t.interrupt=void 0,i):(e.consume(E),b)}function g(E,k){const T=t.sliceStream(E);if(k&&T.push(null),E.previous=o,o&&(o.next=E),o=E,a.defineSkip(E.start),a.write(T),t.parser.lazy[E.start.line]){let S=a.events.length;for(;S--;)if(a.events[S][1].start.offset<s&&(!a.events[S][1].end||a.events[S][1].end.offset>s))return;const O=t.events.length;let M=O,$,P;for(;M--;)if(t.events[M][0]==="exit"&&t.events[M][1].type==="chunkFlow"){if($){P=t.events[M][1].end;break}$=!0}for(x(r),S=O;S<t.events.length;)t.events[S][1].end={...P},S++;Dn(t.events,M+1,0,t.events.slice(O)),t.events.length=S}}function x(E){let k=n.length;for(;k-- >E;){const T=n[k];t.containerState=T[1],T[0].exit.call(t,e)}n.length=E}function C(){a.write([null]),o=void 0,a=void 0,t.containerState._closeFlow=void 0}}function IT(e,t,n){return ut(e,e.attempt(this.parser.constructs.document,t,n),"linePrefix",this.parser.constructs.disable.null.includes("codeIndented")?void 0:4)}function Co(e){if(e===null||Et(e)||Ra(e))return 1;if(du(e))return 2}function pu(e,t,n){const r=[];let a=-1;for(;++a<e.length;){const o=e[a].resolveAll;o&&!r.includes(o)&&(t=o(t,n),r.push(o))}return t}const rd={name:"attention",resolveAll:AT,tokenize:DT};function AT(e,t){let n=-1,r,a,o,s,i,l,u,c;for(;++n<e.length;)if(e[n][0]==="enter"&&e[n][1].type==="attentionSequence"&&e[n][1]._close){for(r=n;r--;)if(e[r][0]==="exit"&&e[r][1].type==="attentionSequence"&&e[r][1]._open&&t.sliceSerialize(e[r][1]).charCodeAt(0)===t.sliceSerialize(e[n][1]).charCodeAt(0)){if((e[r][1]._close||e[n][1]._open)&&(e[n][1].end.offset-e[n][1].start.offset)%3&&!((e[r][1].end.offset-e[r][1].start.offset+e[n][1].end.offset-e[n][1].start.offset)%3))continue;l=e[r][1].end.offset-e[r][1].start.offset>1&&e[n][1].end.offset-e[n][1].start.offset>1?2:1;const d={...e[r][1].end},m={...e[n][1].start};pm(d,-l),pm(m,l),s={type:l>1?"strongSequence":"emphasisSequence",start:d,end:{...e[r][1].end}},i={type:l>1?"strongSequence":"emphasisSequence",start:{...e[n][1].start},end:m},o={type:l>1?"strongText":"emphasisText",start:{...e[r][1].end},end:{...e[n][1].start}},a={type:l>1?"strong":"emphasis",start:{...s.start},end:{...i.end}},e[r][1].end={...s.start},e[n][1].start={...i.end},u=[],e[r][1].end.offset-e[r][1].start.offset&&(u=Hn(u,[["enter",e[r][1],t],["exit",e[r][1],t]])),u=Hn(u,[["enter",a,t],["enter",s,t],["exit",s,t],["enter",o,t]]),u=Hn(u,pu(t.parser.constructs.insideSpan.null,e.slice(r+1,n),t)),u=Hn(u,[["exit",o,t],["enter",i,t],["exit",i,t],["exit",a,t]]),e[n][1].end.offset-e[n][1].start.offset?(c=2,u=Hn(u,[["enter",e[n][1],t],["exit",e[n][1],t]])):c=0,Dn(e,r-1,n-r+3,u),n=r+u.length-c-2;break}}for(n=-1;++n<e.length;)e[n][1].type==="attentionSequence"&&(e[n][1].type="data");return e}function DT(e,t){const n=this.parser.constructs.attentionMarkers.null,r=this.previous,a=Co(r);let o;return s;function s(l){return o=l,e.enter("attentionSequence"),i(l)}function i(l){if(l===o)return e.consume(l),i;const u=e.exit("attentionSequence"),c=Co(l),d=!c||c===2&&a||n.includes(l),m=!a||a===2&&c||n.includes(r);return u._open=!!(o===42?d:d&&(a||!m)),u._close=!!(o===42?m:m&&(c||!d)),t(l)}}function pm(e,t){e.column+=t,e.offset+=t,e._bufferIndex+=t}const PT={name:"autolink",tokenize:RT};function RT(e,t,n){let r=0;return a;function a(f){return e.enter("autolink"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.enter("autolinkProtocol"),o}function o(f){return fn(f)?(e.consume(f),s):f===64?n(f):u(f)}function s(f){return f===43||f===45||f===46||sn(f)?(r=1,i(f)):u(f)}function i(f){return f===58?(e.consume(f),r=0,l):(f===43||f===45||f===46||sn(f))&&r++<32?(e.consume(f),i):(r=0,u(f))}function l(f){return f===62?(e.exit("autolinkProtocol"),e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):f===null||f===32||f===60||El(f)?n(f):(e.consume(f),l)}function u(f){return f===64?(e.consume(f),c):ET(f)?(e.consume(f),u):n(f)}function c(f){return sn(f)?d(f):n(f)}function d(f){return f===46?(e.consume(f),r=0,c):f===62?(e.exit("autolinkProtocol").type="autolinkEmail",e.enter("autolinkMarker"),e.consume(f),e.exit("autolinkMarker"),e.exit("autolink"),t):m(f)}function m(f){if((f===45||sn(f))&&r++<63){const h=f===45?m:d;return e.consume(f),h}return n(f)}}const ci={partial:!0,tokenize:MT};function MT(e,t,n){return r;function r(o){return it(o)?ut(e,a,"linePrefix")(o):a(o)}function a(o){return o===null||Ue(o)?t(o):n(o)}}const tb={continuation:{tokenize:OT},exit:LT,name:"blockQuote",tokenize:NT};function NT(e,t,n){const r=this;return a;function a(s){if(s===62){const i=r.containerState;return i.open||(e.enter("blockQuote",{_container:!0}),i.open=!0),e.enter("blockQuotePrefix"),e.enter("blockQuoteMarker"),e.consume(s),e.exit("blockQuoteMarker"),o}return n(s)}function o(s){return it(s)?(e.enter("blockQuotePrefixWhitespace"),e.consume(s),e.exit("blockQuotePrefixWhitespace"),e.exit("blockQuotePrefix"),t):(e.exit("blockQuotePrefix"),t(s))}}function OT(e,t,n){const r=this;return a;function a(s){return it(s)?ut(e,o,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(s):o(s)}function o(s){return e.attempt(tb,t,n)(s)}}function LT(e){e.exit("blockQuote")}const nb={name:"characterEscape",tokenize:FT};function FT(e,t,n){return r;function r(o){return e.enter("characterEscape"),e.enter("escapeMarker"),e.consume(o),e.exit("escapeMarker"),a}function a(o){return TT(o)?(e.enter("characterEscapeValue"),e.consume(o),e.exit("characterEscapeValue"),e.exit("characterEscape"),t):n(o)}}const rb={name:"characterReference",tokenize:$T};function $T(e,t,n){const r=this;let a=0,o,s;return i;function i(d){return e.enter("characterReference"),e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),l}function l(d){return d===35?(e.enter("characterReferenceMarkerNumeric"),e.consume(d),e.exit("characterReferenceMarkerNumeric"),u):(e.enter("characterReferenceValue"),o=31,s=sn,c(d))}function u(d){return d===88||d===120?(e.enter("characterReferenceMarkerHexadecimal"),e.consume(d),e.exit("characterReferenceMarkerHexadecimal"),e.enter("characterReferenceValue"),o=6,s=vT,c):(e.enter("characterReferenceValue"),o=7,s=nd,c(d))}function c(d){if(d===59&&a){const m=e.exit("characterReferenceValue");return s===sn&&!rp(r.sliceSerialize(m))?n(d):(e.enter("characterReferenceMarker"),e.consume(d),e.exit("characterReferenceMarker"),e.exit("characterReference"),t)}return s(d)&&a++<o?(e.consume(d),c):n(d)}}const fm={partial:!0,tokenize:jT},mm={concrete:!0,name:"codeFenced",tokenize:BT};function BT(e,t,n){const r=this,a={partial:!0,tokenize:T};let o=0,s=0,i;return l;function l(S){return u(S)}function u(S){const O=r.events[r.events.length-1];return o=O&&O[1].type==="linePrefix"?O[2].sliceSerialize(O[1],!0).length:0,i=S,e.enter("codeFenced"),e.enter("codeFencedFence"),e.enter("codeFencedFenceSequence"),c(S)}function c(S){return S===i?(s++,e.consume(S),c):s<3?n(S):(e.exit("codeFencedFenceSequence"),it(S)?ut(e,d,"whitespace")(S):d(S))}function d(S){return S===null||Ue(S)?(e.exit("codeFencedFence"),r.interrupt?t(S):e.check(fm,b,k)(S)):(e.enter("codeFencedFenceInfo"),e.enter("chunkString",{contentType:"string"}),m(S))}function m(S){return S===null||Ue(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),d(S)):it(S)?(e.exit("chunkString"),e.exit("codeFencedFenceInfo"),ut(e,f,"whitespace")(S)):S===96&&S===i?n(S):(e.consume(S),m)}function f(S){return S===null||Ue(S)?d(S):(e.enter("codeFencedFenceMeta"),e.enter("chunkString",{contentType:"string"}),h(S))}function h(S){return S===null||Ue(S)?(e.exit("chunkString"),e.exit("codeFencedFenceMeta"),d(S)):S===96&&S===i?n(S):(e.consume(S),h)}function b(S){return e.attempt(a,k,g)(S)}function g(S){return e.enter("lineEnding"),e.consume(S),e.exit("lineEnding"),x}function x(S){return o>0&&it(S)?ut(e,C,"linePrefix",o+1)(S):C(S)}function C(S){return S===null||Ue(S)?e.check(fm,b,k)(S):(e.enter("codeFlowValue"),E(S))}function E(S){return S===null||Ue(S)?(e.exit("codeFlowValue"),C(S)):(e.consume(S),E)}function k(S){return e.exit("codeFenced"),t(S)}function T(S,O,M){let $=0;return P;function P(A){return S.enter("lineEnding"),S.consume(A),S.exit("lineEnding"),L}function L(A){return S.enter("codeFencedFence"),it(A)?ut(S,v,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(A):v(A)}function v(A){return A===i?(S.enter("codeFencedFenceSequence"),N(A)):M(A)}function N(A){return A===i?($++,S.consume(A),N):$>=s?(S.exit("codeFencedFenceSequence"),it(A)?ut(S,I,"whitespace")(A):I(A)):M(A)}function I(A){return A===null||Ue(A)?(S.exit("codeFencedFence"),O(A)):M(A)}}}function jT(e,t,n){const r=this;return a;function a(s){return s===null?n(s):(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}const tc={name:"codeIndented",tokenize:UT},HT={partial:!0,tokenize:zT};function UT(e,t,n){const r=this;return a;function a(u){return e.enter("codeIndented"),ut(e,o,"linePrefix",5)(u)}function o(u){const c=r.events[r.events.length-1];return c&&c[1].type==="linePrefix"&&c[2].sliceSerialize(c[1],!0).length>=4?s(u):n(u)}function s(u){return u===null?l(u):Ue(u)?e.attempt(HT,s,l)(u):(e.enter("codeFlowValue"),i(u))}function i(u){return u===null||Ue(u)?(e.exit("codeFlowValue"),s(u)):(e.consume(u),i)}function l(u){return e.exit("codeIndented"),t(u)}}function zT(e,t,n){const r=this;return a;function a(s){return r.parser.lazy[r.now().line]?n(s):Ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),a):ut(e,o,"linePrefix",5)(s)}function o(s){const i=r.events[r.events.length-1];return i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],!0).length>=4?t(s):Ue(s)?a(s):n(s)}}const VT={name:"codeText",previous:qT,resolve:WT,tokenize:YT};function WT(e){let t=e.length-4,n=3,r,a;if((e[n][1].type==="lineEnding"||e[n][1].type==="space")&&(e[t][1].type==="lineEnding"||e[t][1].type==="space")){for(r=n;++r<t;)if(e[r][1].type==="codeTextData"){e[n][1].type="codeTextPadding",e[t][1].type="codeTextPadding",n+=2,t-=2;break}}for(r=n-1,t++;++r<=t;)a===void 0?r!==t&&e[r][1].type!=="lineEnding"&&(a=r):(r===t||e[r][1].type==="lineEnding")&&(e[a][1].type="codeTextData",r!==a+2&&(e[a][1].end=e[r-1][1].end,e.splice(a+2,r-a-2),t-=r-a-2,r=a+2),a=void 0);return e}function qT(e){return e!==96||this.events[this.events.length-1][1].type==="characterEscape"}function YT(e,t,n){let r=0,a,o;return s;function s(d){return e.enter("codeText"),e.enter("codeTextSequence"),i(d)}function i(d){return d===96?(e.consume(d),r++,i):(e.exit("codeTextSequence"),l(d))}function l(d){return d===null?n(d):d===32?(e.enter("space"),e.consume(d),e.exit("space"),l):d===96?(o=e.enter("codeTextSequence"),a=0,c(d)):Ue(d)?(e.enter("lineEnding"),e.consume(d),e.exit("lineEnding"),l):(e.enter("codeTextData"),u(d))}function u(d){return d===null||d===32||d===96||Ue(d)?(e.exit("codeTextData"),l(d)):(e.consume(d),u)}function c(d){return d===96?(e.consume(d),a++,c):a===r?(e.exit("codeTextSequence"),e.exit("codeText"),t(d)):(o.type="codeTextData",u(d))}}class GT{constructor(t){this.left=t?[...t]:[],this.right=[]}get(t){if(t<0||t>=this.left.length+this.right.length)throw new RangeError("Cannot access index `"+t+"` in a splice buffer of size `"+(this.left.length+this.right.length)+"`");return t<this.left.length?this.left[t]:this.right[this.right.length-t+this.left.length-1]}get length(){return this.left.length+this.right.length}shift(){return this.setCursor(0),this.right.pop()}slice(t,n){const r=n??Number.POSITIVE_INFINITY;return r<this.left.length?this.left.slice(t,r):t>this.left.length?this.right.slice(this.right.length-r+this.left.length,this.right.length-t+this.left.length).reverse():this.left.slice(t).concat(this.right.slice(this.right.length-r+this.left.length).reverse())}splice(t,n,r){const a=n||0;this.setCursor(Math.trunc(t));const o=this.right.splice(this.right.length-a,Number.POSITIVE_INFINITY);return r&&Jo(this.left,r),o.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),Jo(this.left,t)}unshift(t){this.setCursor(0),this.right.push(t)}unshiftMany(t){this.setCursor(0),Jo(this.right,t.reverse())}setCursor(t){if(!(t===this.left.length||t>this.left.length&&this.right.length===0||t<0&&this.left.length===0))if(t<this.left.length){const n=this.left.splice(t,Number.POSITIVE_INFINITY);Jo(this.right,n.reverse())}else{const n=this.right.splice(this.left.length+this.right.length-t,Number.POSITIVE_INFINITY);Jo(this.left,n.reverse())}}}function Jo(e,t){let n=0;if(t.length<1e4)e.push(...t);else for(;n<t.length;)e.push(...t.slice(n,n+1e4)),n+=1e4}function ab(e){const t={};let n=-1,r,a,o,s,i,l,u;const c=new GT(e);for(;++n<c.length;){for(;n in t;)n=t[n];if(r=c.get(n),n&&r[1].type==="chunkFlow"&&c.get(n-1)[1].type==="listItemPrefix"&&(l=r[1]._tokenizer.events,o=0,o<l.length&&l[o][1].type==="lineEndingBlank"&&(o+=2),o<l.length&&l[o][1].type==="content"))for(;++o<l.length&&l[o][1].type!=="content";)l[o][1].type==="chunkText"&&(l[o][1]._isInFirstContentOfListItem=!0,o++);if(r[0]==="enter")r[1].contentType&&(Object.assign(t,KT(c,n)),n=t[n],u=!0);else if(r[1]._container){for(o=n,a=void 0;o--;)if(s=c.get(o),s[1].type==="lineEnding"||s[1].type==="lineEndingBlank")s[0]==="enter"&&(a&&(c.get(a)[1].type="lineEndingBlank"),s[1].type="lineEnding",a=o);else if(!(s[1].type==="linePrefix"||s[1].type==="listItemIndent"))break;a&&(r[1].end={...c.get(a)[1].start},i=c.slice(a,n),i.unshift(r),c.splice(a,n-a+1,i))}}return Dn(e,0,Number.POSITIVE_INFINITY,c.slice(0)),!u}function KT(e,t){const n=e.get(t)[1],r=e.get(t)[2];let a=t-1;const o=[];let s=n._tokenizer;s||(s=r.parser[n.contentType](n.start),n._contentTypeTextTrailing&&(s._contentTypeTextTrailing=!0));const i=s.events,l=[],u={};let c,d,m=-1,f=n,h=0,b=0;const g=[b];for(;f;){for(;e.get(++a)[1]!==f;);o.push(a),f._tokenizer||(c=r.sliceStream(f),f.next||c.push(null),d&&s.defineSkip(f.start),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=!0),s.write(c),f._isInFirstContentOfListItem&&(s._gfmTasklistFirstContentOfListItem=void 0)),d=f,f=f.next}for(f=n;++m<i.length;)i[m][0]==="exit"&&i[m-1][0]==="enter"&&i[m][1].type===i[m-1][1].type&&i[m][1].start.line!==i[m][1].end.line&&(b=m+1,g.push(b),f._tokenizer=void 0,f.previous=void 0,f=f.next);for(s.events=[],f?(f._tokenizer=void 0,f.previous=void 0):g.pop(),m=g.length;m--;){const x=i.slice(g[m],g[m+1]),C=o.pop();l.push([C,C+x.length-1]),e.splice(C,2,x)}for(l.reverse(),m=-1;++m<l.length;)u[h+l[m][0]]=h+l[m][1],h+=l[m][1]-l[m][0]-1;return u}const QT={resolve:ZT,tokenize:JT},XT={partial:!0,tokenize:ek};function ZT(e){return ab(e),e}function JT(e,t){let n;return r;function r(i){return e.enter("content"),n=e.enter("chunkContent",{contentType:"content"}),a(i)}function a(i){return i===null?o(i):Ue(i)?e.check(XT,s,o)(i):(e.consume(i),a)}function o(i){return e.exit("chunkContent"),e.exit("content"),t(i)}function s(i){return e.consume(i),e.exit("chunkContent"),n.next=e.enter("chunkContent",{contentType:"content",previous:n}),n=n.next,a}}function ek(e,t,n){const r=this;return a;function a(s){return e.exit("chunkContent"),e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),ut(e,o,"linePrefix")}function o(s){if(s===null||Ue(s))return n(s);const i=r.events[r.events.length-1];return!r.parser.constructs.disable.null.includes("codeIndented")&&i&&i[1].type==="linePrefix"&&i[2].sliceSerialize(i[1],!0).length>=4?t(s):e.interrupt(r.parser.constructs.flow,n,t)(s)}}function ob(e,t,n,r,a,o,s,i,l){const u=l||Number.POSITIVE_INFINITY;let c=0;return d;function d(x){return x===60?(e.enter(r),e.enter(a),e.enter(o),e.consume(x),e.exit(o),m):x===null||x===32||x===41||El(x)?n(x):(e.enter(r),e.enter(s),e.enter(i),e.enter("chunkString",{contentType:"string"}),b(x))}function m(x){return x===62?(e.enter(o),e.consume(x),e.exit(o),e.exit(a),e.exit(r),t):(e.enter(i),e.enter("chunkString",{contentType:"string"}),f(x))}function f(x){return x===62?(e.exit("chunkString"),e.exit(i),m(x)):x===null||x===60||Ue(x)?n(x):(e.consume(x),x===92?h:f)}function h(x){return x===60||x===62||x===92?(e.consume(x),f):f(x)}function b(x){return!c&&(x===null||x===41||Et(x))?(e.exit("chunkString"),e.exit(i),e.exit(s),e.exit(r),t(x)):c<u&&x===40?(e.consume(x),c++,b):x===41?(e.consume(x),c--,b):x===null||x===32||x===40||El(x)?n(x):(e.consume(x),x===92?g:b)}function g(x){return x===40||x===41||x===92?(e.consume(x),b):b(x)}}function sb(e,t,n,r,a,o){const s=this;let i=0,l;return u;function u(f){return e.enter(r),e.enter(a),e.consume(f),e.exit(a),e.enter(o),c}function c(f){return i>999||f===null||f===91||f===93&&!l||f===94&&!i&&"_hiddenFootnoteSupport"in s.parser.constructs?n(f):f===93?(e.exit(o),e.enter(a),e.consume(f),e.exit(a),e.exit(r),t):Ue(f)?(e.enter("lineEnding"),e.consume(f),e.exit("lineEnding"),c):(e.enter("chunkString",{contentType:"string"}),d(f))}function d(f){return f===null||f===91||f===93||Ue(f)||i++>999?(e.exit("chunkString"),c(f)):(e.consume(f),l||(l=!it(f)),f===92?m:d)}function m(f){return f===91||f===92||f===93?(e.consume(f),i++,d):d(f)}}function ib(e,t,n,r,a,o){let s;return i;function i(m){return m===34||m===39||m===40?(e.enter(r),e.enter(a),e.consume(m),e.exit(a),s=m===40?41:m,l):n(m)}function l(m){return m===s?(e.enter(a),e.consume(m),e.exit(a),e.exit(r),t):(e.enter(o),u(m))}function u(m){return m===s?(e.exit(o),l(s)):m===null?n(m):Ue(m)?(e.enter("lineEnding"),e.consume(m),e.exit("lineEnding"),ut(e,u,"linePrefix")):(e.enter("chunkString",{contentType:"string"}),c(m))}function c(m){return m===s||m===null||Ue(m)?(e.exit("chunkString"),u(m)):(e.consume(m),m===92?d:c)}function d(m){return m===s||m===92?(e.consume(m),c):c(m)}}function Ts(e,t){let n;return r;function r(a){return Ue(a)?(e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),n=!0,r):it(a)?ut(e,r,n?"linePrefix":"lineSuffix")(a):t(a)}}const tk={name:"definition",tokenize:rk},nk={partial:!0,tokenize:ak};function rk(e,t,n){const r=this;let a;return o;function o(f){return e.enter("definition"),s(f)}function s(f){return sb.call(r,e,i,n,"definitionLabel","definitionLabelMarker","definitionLabelString")(f)}function i(f){return a=rr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)),f===58?(e.enter("definitionMarker"),e.consume(f),e.exit("definitionMarker"),l):n(f)}function l(f){return Et(f)?Ts(e,u)(f):u(f)}function u(f){return ob(e,c,n,"definitionDestination","definitionDestinationLiteral","definitionDestinationLiteralMarker","definitionDestinationRaw","definitionDestinationString")(f)}function c(f){return e.attempt(nk,d,d)(f)}function d(f){return it(f)?ut(e,m,"whitespace")(f):m(f)}function m(f){return f===null||Ue(f)?(e.exit("definition"),r.parser.defined.push(a),t(f)):n(f)}}function ak(e,t,n){return r;function r(i){return Et(i)?Ts(e,a)(i):n(i)}function a(i){return ib(e,o,n,"definitionTitle","definitionTitleMarker","definitionTitleString")(i)}function o(i){return it(i)?ut(e,s,"whitespace")(i):s(i)}function s(i){return i===null||Ue(i)?t(i):n(i)}}const ok={name:"hardBreakEscape",tokenize:sk};function sk(e,t,n){return r;function r(o){return e.enter("hardBreakEscape"),e.consume(o),a}function a(o){return Ue(o)?(e.exit("hardBreakEscape"),t(o)):n(o)}}const ik={name:"headingAtx",resolve:lk,tokenize:uk};function lk(e,t){let n=e.length-2,r=3,a,o;return e[r][1].type==="whitespace"&&(r+=2),n-2>r&&e[n][1].type==="whitespace"&&(n-=2),e[n][1].type==="atxHeadingSequence"&&(r===n-1||n-4>r&&e[n-2][1].type==="whitespace")&&(n-=r+1===n?2:4),n>r&&(a={type:"atxHeadingText",start:e[r][1].start,end:e[n][1].end},o={type:"chunkText",start:e[r][1].start,end:e[n][1].end,contentType:"text"},Dn(e,r,n-r+1,[["enter",a,t],["enter",o,t],["exit",o,t],["exit",a,t]])),e}function uk(e,t,n){let r=0;return a;function a(c){return e.enter("atxHeading"),o(c)}function o(c){return e.enter("atxHeadingSequence"),s(c)}function s(c){return c===35&&r++<6?(e.consume(c),s):c===null||Et(c)?(e.exit("atxHeadingSequence"),i(c)):n(c)}function i(c){return c===35?(e.enter("atxHeadingSequence"),l(c)):c===null||Ue(c)?(e.exit("atxHeading"),t(c)):it(c)?ut(e,i,"whitespace")(c):(e.enter("atxHeadingText"),u(c))}function l(c){return c===35?(e.consume(c),l):(e.exit("atxHeadingSequence"),i(c))}function u(c){return c===null||c===35||Et(c)?(e.exit("atxHeadingText"),i(c)):(e.consume(c),u)}}const ck=["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"],hm=["pre","script","style","textarea"],dk={concrete:!0,name:"htmlFlow",resolveTo:mk,tokenize:hk},pk={partial:!0,tokenize:bk},fk={partial:!0,tokenize:gk};function mk(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 hk(e,t,n){const r=this;let a,o,s,i,l;return u;function u(F){return c(F)}function c(F){return e.enter("htmlFlow"),e.enter("htmlFlowData"),e.consume(F),d}function d(F){return F===33?(e.consume(F),m):F===47?(e.consume(F),o=!0,b):F===63?(e.consume(F),a=3,r.interrupt?t:_):fn(F)?(e.consume(F),s=String.fromCharCode(F),g):n(F)}function m(F){return F===45?(e.consume(F),a=2,f):F===91?(e.consume(F),a=5,i=0,h):fn(F)?(e.consume(F),a=4,r.interrupt?t:_):n(F)}function f(F){return F===45?(e.consume(F),r.interrupt?t:_):n(F)}function h(F){const de="CDATA[";return F===de.charCodeAt(i++)?(e.consume(F),i===de.length?r.interrupt?t:v:h):n(F)}function b(F){return fn(F)?(e.consume(F),s=String.fromCharCode(F),g):n(F)}function g(F){if(F===null||F===47||F===62||Et(F)){const de=F===47,Z=s.toLowerCase();return!de&&!o&&hm.includes(Z)?(a=1,r.interrupt?t(F):v(F)):ck.includes(s.toLowerCase())?(a=6,de?(e.consume(F),x):r.interrupt?t(F):v(F)):(a=7,r.interrupt&&!r.parser.lazy[r.now().line]?n(F):o?C(F):E(F))}return F===45||sn(F)?(e.consume(F),s+=String.fromCharCode(F),g):n(F)}function x(F){return F===62?(e.consume(F),r.interrupt?t:v):n(F)}function C(F){return it(F)?(e.consume(F),C):P(F)}function E(F){return F===47?(e.consume(F),P):F===58||F===95||fn(F)?(e.consume(F),k):it(F)?(e.consume(F),E):P(F)}function k(F){return F===45||F===46||F===58||F===95||sn(F)?(e.consume(F),k):T(F)}function T(F){return F===61?(e.consume(F),S):it(F)?(e.consume(F),T):E(F)}function S(F){return F===null||F===60||F===61||F===62||F===96?n(F):F===34||F===39?(e.consume(F),l=F,O):it(F)?(e.consume(F),S):M(F)}function O(F){return F===l?(e.consume(F),l=null,$):F===null||Ue(F)?n(F):(e.consume(F),O)}function M(F){return F===null||F===34||F===39||F===47||F===60||F===61||F===62||F===96||Et(F)?T(F):(e.consume(F),M)}function $(F){return F===47||F===62||it(F)?E(F):n(F)}function P(F){return F===62?(e.consume(F),L):n(F)}function L(F){return F===null||Ue(F)?v(F):it(F)?(e.consume(F),L):n(F)}function v(F){return F===45&&a===2?(e.consume(F),R):F===60&&a===1?(e.consume(F),W):F===62&&a===4?(e.consume(F),V):F===63&&a===3?(e.consume(F),_):F===93&&a===5?(e.consume(F),B):Ue(F)&&(a===6||a===7)?(e.exit("htmlFlowData"),e.check(pk,J,N)(F)):F===null||Ue(F)?(e.exit("htmlFlowData"),N(F)):(e.consume(F),v)}function N(F){return e.check(fk,I,J)(F)}function I(F){return e.enter("lineEnding"),e.consume(F),e.exit("lineEnding"),A}function A(F){return F===null||Ue(F)?N(F):(e.enter("htmlFlowData"),v(F))}function R(F){return F===45?(e.consume(F),_):v(F)}function W(F){return F===47?(e.consume(F),s="",H):v(F)}function H(F){if(F===62){const de=s.toLowerCase();return hm.includes(de)?(e.consume(F),V):v(F)}return fn(F)&&s.length<8?(e.consume(F),s+=String.fromCharCode(F),H):v(F)}function B(F){return F===93?(e.consume(F),_):v(F)}function _(F){return F===62?(e.consume(F),V):F===45&&a===2?(e.consume(F),_):v(F)}function V(F){return F===null||Ue(F)?(e.exit("htmlFlowData"),J(F)):(e.consume(F),V)}function J(F){return e.exit("htmlFlow"),t(F)}}function gk(e,t,n){const r=this;return a;function a(s){return Ue(s)?(e.enter("lineEnding"),e.consume(s),e.exit("lineEnding"),o):n(s)}function o(s){return r.parser.lazy[r.now().line]?n(s):t(s)}}function bk(e,t,n){return r;function r(a){return e.enter("lineEnding"),e.consume(a),e.exit("lineEnding"),e.attempt(ci,t,n)}}const yk={name:"htmlText",tokenize:xk};function xk(e,t,n){const r=this;let a,o,s;return i;function i(_){return e.enter("htmlText"),e.enter("htmlTextData"),e.consume(_),l}function l(_){return _===33?(e.consume(_),u):_===47?(e.consume(_),T):_===63?(e.consume(_),E):fn(_)?(e.consume(_),M):n(_)}function u(_){return _===45?(e.consume(_),c):_===91?(e.consume(_),o=0,h):fn(_)?(e.consume(_),C):n(_)}function c(_){return _===45?(e.consume(_),f):n(_)}function d(_){return _===null?n(_):_===45?(e.consume(_),m):Ue(_)?(s=d,W(_)):(e.consume(_),d)}function m(_){return _===45?(e.consume(_),f):d(_)}function f(_){return _===62?R(_):_===45?m(_):d(_)}function h(_){const V="CDATA[";return _===V.charCodeAt(o++)?(e.consume(_),o===V.length?b:h):n(_)}function b(_){return _===null?n(_):_===93?(e.consume(_),g):Ue(_)?(s=b,W(_)):(e.consume(_),b)}function g(_){return _===93?(e.consume(_),x):b(_)}function x(_){return _===62?R(_):_===93?(e.consume(_),x):b(_)}function C(_){return _===null||_===62?R(_):Ue(_)?(s=C,W(_)):(e.consume(_),C)}function E(_){return _===null?n(_):_===63?(e.consume(_),k):Ue(_)?(s=E,W(_)):(e.consume(_),E)}function k(_){return _===62?R(_):E(_)}function T(_){return fn(_)?(e.consume(_),S):n(_)}function S(_){return _===45||sn(_)?(e.consume(_),S):O(_)}function O(_){return Ue(_)?(s=O,W(_)):it(_)?(e.consume(_),O):R(_)}function M(_){return _===45||sn(_)?(e.consume(_),M):_===47||_===62||Et(_)?$(_):n(_)}function $(_){return _===47?(e.consume(_),R):_===58||_===95||fn(_)?(e.consume(_),P):Ue(_)?(s=$,W(_)):it(_)?(e.consume(_),$):R(_)}function P(_){return _===45||_===46||_===58||_===95||sn(_)?(e.consume(_),P):L(_)}function L(_){return _===61?(e.consume(_),v):Ue(_)?(s=L,W(_)):it(_)?(e.consume(_),L):$(_)}function v(_){return _===null||_===60||_===61||_===62||_===96?n(_):_===34||_===39?(e.consume(_),a=_,N):Ue(_)?(s=v,W(_)):it(_)?(e.consume(_),v):(e.consume(_),I)}function N(_){return _===a?(e.consume(_),a=void 0,A):_===null?n(_):Ue(_)?(s=N,W(_)):(e.consume(_),N)}function I(_){return _===null||_===34||_===39||_===60||_===61||_===96?n(_):_===47||_===62||Et(_)?$(_):(e.consume(_),I)}function A(_){return _===47||_===62||Et(_)?$(_):n(_)}function R(_){return _===62?(e.consume(_),e.exit("htmlTextData"),e.exit("htmlText"),t):n(_)}function W(_){return e.exit("htmlTextData"),e.enter("lineEnding"),e.consume(_),e.exit("lineEnding"),H}function H(_){return it(_)?ut(e,B,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(_):B(_)}function B(_){return e.enter("htmlTextData"),s(_)}}const ap={name:"labelEnd",resolveAll:Tk,resolveTo:kk,tokenize:Sk},Ck={tokenize:wk},Ek={tokenize:_k},vk={tokenize:Ik};function Tk(e){let t=-1;const n=[];for(;++t<e.length;){const r=e[t][1];if(n.push(e[t]),r.type==="labelImage"||r.type==="labelLink"||r.type==="labelEnd"){const a=r.type==="labelImage"?4:2;r.type="data",t+=a}}return e.length!==n.length&&Dn(e,0,e.length,n),e}function kk(e,t){let n=e.length,r=0,a,o,s,i;for(;n--;)if(a=e[n][1],o){if(a.type==="link"||a.type==="labelLink"&&a._inactive)break;e[n][0]==="enter"&&a.type==="labelLink"&&(a._inactive=!0)}else if(s){if(e[n][0]==="enter"&&(a.type==="labelImage"||a.type==="labelLink")&&!a._balanced&&(o=n,a.type!=="labelLink")){r=2;break}}else a.type==="labelEnd"&&(s=n);const l={type:e[o][1].type==="labelLink"?"link":"image",start:{...e[o][1].start},end:{...e[e.length-1][1].end}},u={type:"label",start:{...e[o][1].start},end:{...e[s][1].end}},c={type:"labelText",start:{...e[o+r+2][1].end},end:{...e[s-2][1].start}};return i=[["enter",l,t],["enter",u,t]],i=Hn(i,e.slice(o+1,o+r+3)),i=Hn(i,[["enter",c,t]]),i=Hn(i,pu(t.parser.constructs.insideSpan.null,e.slice(o+r+4,s-3),t)),i=Hn(i,[["exit",c,t],e[s-2],e[s-1],["exit",u,t]]),i=Hn(i,e.slice(s+1)),i=Hn(i,[["exit",l,t]]),Dn(e,o,e.length,i),e}function Sk(e,t,n){const r=this;let a=r.events.length,o,s;for(;a--;)if((r.events[a][1].type==="labelImage"||r.events[a][1].type==="labelLink")&&!r.events[a][1]._balanced){o=r.events[a][1];break}return i;function i(m){return o?o._inactive?d(m):(s=r.parser.defined.includes(rr(r.sliceSerialize({start:o.end,end:r.now()}))),e.enter("labelEnd"),e.enter("labelMarker"),e.consume(m),e.exit("labelMarker"),e.exit("labelEnd"),l):n(m)}function l(m){return m===40?e.attempt(Ck,c,s?c:d)(m):m===91?e.attempt(Ek,c,s?u:d)(m):s?c(m):d(m)}function u(m){return e.attempt(vk,c,d)(m)}function c(m){return t(m)}function d(m){return o._balanced=!0,n(m)}}function wk(e,t,n){return r;function r(d){return e.enter("resource"),e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),a}function a(d){return Et(d)?Ts(e,o)(d):o(d)}function o(d){return d===41?c(d):ob(e,s,i,"resourceDestination","resourceDestinationLiteral","resourceDestinationLiteralMarker","resourceDestinationRaw","resourceDestinationString",32)(d)}function s(d){return Et(d)?Ts(e,l)(d):c(d)}function i(d){return n(d)}function l(d){return d===34||d===39||d===40?ib(e,u,n,"resourceTitle","resourceTitleMarker","resourceTitleString")(d):c(d)}function u(d){return Et(d)?Ts(e,c)(d):c(d)}function c(d){return d===41?(e.enter("resourceMarker"),e.consume(d),e.exit("resourceMarker"),e.exit("resource"),t):n(d)}}function _k(e,t,n){const r=this;return a;function a(i){return sb.call(r,e,o,s,"reference","referenceMarker","referenceString")(i)}function o(i){return r.parser.defined.includes(rr(r.sliceSerialize(r.events[r.events.length-1][1]).slice(1,-1)))?t(i):n(i)}function s(i){return n(i)}}function Ik(e,t,n){return r;function r(o){return e.enter("reference"),e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),a}function a(o){return o===93?(e.enter("referenceMarker"),e.consume(o),e.exit("referenceMarker"),e.exit("reference"),t):n(o)}}const Ak={name:"labelStartImage",resolveAll:ap.resolveAll,tokenize:Dk};function Dk(e,t,n){const r=this;return a;function a(i){return e.enter("labelImage"),e.enter("labelImageMarker"),e.consume(i),e.exit("labelImageMarker"),o}function o(i){return i===91?(e.enter("labelMarker"),e.consume(i),e.exit("labelMarker"),e.exit("labelImage"),s):n(i)}function s(i){return i===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(i):t(i)}}const Pk={name:"labelStartLink",resolveAll:ap.resolveAll,tokenize:Rk};function Rk(e,t,n){const r=this;return a;function a(s){return e.enter("labelLink"),e.enter("labelMarker"),e.consume(s),e.exit("labelMarker"),e.exit("labelLink"),o}function o(s){return s===94&&"_hiddenFootnoteSupport"in r.parser.constructs?n(s):t(s)}}const nc={name:"lineEnding",tokenize:Mk};function Mk(e,t){return n;function n(r){return e.enter("lineEnding"),e.consume(r),e.exit("lineEnding"),ut(e,t,"linePrefix")}}const Ki={name:"thematicBreak",tokenize:Nk};function Nk(e,t,n){let r=0,a;return o;function o(u){return e.enter("thematicBreak"),s(u)}function s(u){return a=u,i(u)}function i(u){return u===a?(e.enter("thematicBreakSequence"),l(u)):r>=3&&(u===null||Ue(u))?(e.exit("thematicBreak"),t(u)):n(u)}function l(u){return u===a?(e.consume(u),r++,l):(e.exit("thematicBreakSequence"),it(u)?ut(e,i,"whitespace")(u):i(u))}}const yn={continuation:{tokenize:$k},exit:jk,name:"list",tokenize:Fk},Ok={partial:!0,tokenize:Hk},Lk={partial:!0,tokenize:Bk};function Fk(e,t,n){const r=this,a=r.events[r.events.length-1];let o=a&&a[1].type==="linePrefix"?a[2].sliceSerialize(a[1],!0).length:0,s=0;return i;function i(f){const h=r.containerState.type||(f===42||f===43||f===45?"listUnordered":"listOrdered");if(h==="listUnordered"?!r.containerState.marker||f===r.containerState.marker:nd(f)){if(r.containerState.type||(r.containerState.type=h,e.enter(h,{_container:!0})),h==="listUnordered")return e.enter("listItemPrefix"),f===42||f===45?e.check(Ki,n,u)(f):u(f);if(!r.interrupt||f===49)return e.enter("listItemPrefix"),e.enter("listItemValue"),l(f)}return n(f)}function l(f){return nd(f)&&++s<10?(e.consume(f),l):(!r.interrupt||s<2)&&(r.containerState.marker?f===r.containerState.marker:f===41||f===46)?(e.exit("listItemValue"),u(f)):n(f)}function u(f){return e.enter("listItemMarker"),e.consume(f),e.exit("listItemMarker"),r.containerState.marker=r.containerState.marker||f,e.check(ci,r.interrupt?n:c,e.attempt(Ok,m,d))}function c(f){return r.containerState.initialBlankLine=!0,o++,m(f)}function d(f){return it(f)?(e.enter("listItemPrefixWhitespace"),e.consume(f),e.exit("listItemPrefixWhitespace"),m):n(f)}function m(f){return r.containerState.size=o+r.sliceSerialize(e.exit("listItemPrefix"),!0).length,t(f)}}function $k(e,t,n){const r=this;return r.containerState._closeFlow=void 0,e.check(ci,a,o);function a(i){return r.containerState.furtherBlankLines=r.containerState.furtherBlankLines||r.containerState.initialBlankLine,ut(e,t,"listItemIndent",r.containerState.size+1)(i)}function o(i){return r.containerState.furtherBlankLines||!it(i)?(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,s(i)):(r.containerState.furtherBlankLines=void 0,r.containerState.initialBlankLine=void 0,e.attempt(Lk,t,s)(i))}function s(i){return r.containerState._closeFlow=!0,r.interrupt=void 0,ut(e,e.attempt(yn,t,n),"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(i)}}function Bk(e,t,n){const r=this;return ut(e,a,"listItemIndent",r.containerState.size+1);function a(o){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(o):n(o)}}function jk(e){e.exit(this.containerState.type)}function Hk(e,t,n){const r=this;return ut(e,a,"listItemPrefixWhitespace",r.parser.constructs.disable.null.includes("codeIndented")?void 0:5);function a(o){const s=r.events[r.events.length-1];return!it(o)&&s&&s[1].type==="listItemPrefixWhitespace"?t(o):n(o)}}const gm={name:"setextUnderline",resolveTo:Uk,tokenize:zk};function Uk(e,t){let n=e.length,r,a,o;for(;n--;)if(e[n][0]==="enter"){if(e[n][1].type==="content"){r=n;break}e[n][1].type==="paragraph"&&(a=n)}else e[n][1].type==="content"&&e.splice(n,1),!o&&e[n][1].type==="definition"&&(o=n);const s={type:"setextHeading",start:{...e[r][1].start},end:{...e[e.length-1][1].end}};return e[a][1].type="setextHeadingText",o?(e.splice(a,0,["enter",s,t]),e.splice(o+1,0,["exit",e[r][1],t]),e[r][1].end={...e[o][1].end}):e[r][1]=s,e.push(["exit",s,t]),e}function zk(e,t,n){const r=this;let a;return o;function o(u){let c=r.events.length,d;for(;c--;)if(r.events[c][1].type!=="lineEnding"&&r.events[c][1].type!=="linePrefix"&&r.events[c][1].type!=="content"){d=r.events[c][1].type==="paragraph";break}return!r.parser.lazy[r.now().line]&&(r.interrupt||d)?(e.enter("setextHeadingLine"),a=u,s(u)):n(u)}function s(u){return e.enter("setextHeadingLineSequence"),i(u)}function i(u){return u===a?(e.consume(u),i):(e.exit("setextHeadingLineSequence"),it(u)?ut(e,l,"lineSuffix")(u):l(u))}function l(u){return u===null||Ue(u)?(e.exit("setextHeadingLine"),t(u)):n(u)}}const Vk={tokenize:Wk};function Wk(e){const t=this,n=e.attempt(ci,r,e.attempt(this.parser.constructs.flowInitial,a,ut(e,e.attempt(this.parser.constructs.flow,a,e.attempt(QT,a)),"linePrefix")));return n;function r(o){if(o===null){e.consume(o);return}return e.enter("lineEndingBlank"),e.consume(o),e.exit("lineEndingBlank"),t.currentConstruct=void 0,n}function a(o){if(o===null){e.consume(o);return}return e.enter("lineEnding"),e.consume(o),e.exit("lineEnding"),t.currentConstruct=void 0,n}}const qk={resolveAll:ub()},Yk=lb("string"),Gk=lb("text");function lb(e){return{resolveAll:ub(e==="text"?Kk:void 0),tokenize:t};function t(n){const r=this,a=this.parser.constructs[e],o=n.attempt(a,s,i);return s;function s(c){return u(c)?o(c):i(c)}function i(c){if(c===null){n.consume(c);return}return n.enter("data"),n.consume(c),l}function l(c){return u(c)?(n.exit("data"),o(c)):(n.consume(c),l)}function u(c){if(c===null)return!0;const d=a[c];let m=-1;if(d)for(;++m<d.length;){const f=d[m];if(!f.previous||f.previous.call(r,r.previous))return!0}return!1}}}function ub(e){return t;function t(n,r){let a=-1,o;for(;++a<=n.length;)o===void 0?n[a]&&n[a][1].type==="data"&&(o=a,a++):(!n[a]||n[a][1].type!=="data")&&(a!==o+2&&(n[o][1].end=n[a-1][1].end,n.splice(o+2,a-o-2),a=o+2),o=void 0);return e?e(n,r):n}}function Kk(e,t){let n=0;for(;++n<=e.length;)if((n===e.length||e[n][1].type==="lineEnding")&&e[n-1][1].type==="data"){const r=e[n-1][1],a=t.sliceStream(r);let o=a.length,s=-1,i=0,l;for(;o--;){const u=a[o];if(typeof u=="string"){for(s=u.length;u.charCodeAt(s-1)===32;)i++,s--;if(s)break;s=-1}else if(u===-2)l=!0,i++;else if(u!==-1){o++;break}}if(t._contentTypeTextTrailing&&n===e.length&&(i=0),i){const u={type:n===e.length||l||i<2?"lineSuffix":"hardBreakTrailing",start:{_bufferIndex:o?s:r.start._bufferIndex+s,_index:r.start._index+o,line:r.end.line,column:r.end.column-i,offset:r.end.offset-i},end:{...r.end}};r.end={...u.start},r.start.offset===r.end.offset?Object.assign(r,u):(e.splice(n,0,["enter",u,t],["exit",u,t]),n+=2)}n++}return e}const Qk={42:yn,43:yn,45:yn,48:yn,49:yn,50:yn,51:yn,52:yn,53:yn,54:yn,55:yn,56:yn,57:yn,62:tb},Xk={91:tk},Zk={[-2]:tc,[-1]:tc,32:tc},Jk={35:ik,42:Ki,45:[gm,Ki],60:dk,61:gm,95:Ki,96:mm,126:mm},eS={38:rb,92:nb},tS={[-5]:nc,[-4]:nc,[-3]:nc,33:Ak,38:rb,42:rd,60:[PT,yk],91:Pk,92:[ok,nb],93:ap,95:rd,96:VT},nS={null:[rd,qk]},rS={null:[42,95]},aS={null:[]},oS=Object.freeze(Object.defineProperty({__proto__:null,attentionMarkers:rS,contentInitial:Xk,disable:aS,document:Qk,flow:Jk,flowInitial:Zk,insideSpan:nS,string:eS,text:tS},Symbol.toStringTag,{value:"Module"}));function sS(e,t,n){let r={_bufferIndex:-1,_index:0,line:n&&n.line||1,column:n&&n.column||1,offset:n&&n.offset||0};const a={},o=[];let s=[],i=[];const l={attempt:O(T),check:O(S),consume:C,enter:E,exit:k,interrupt:O(S,{interrupt:!0})},u={code:null,containerState:{},defineSkip:b,events:[],now:h,parser:e,previous:null,sliceSerialize:m,sliceStream:f,write:d};let c=t.tokenize.call(u,l);return t.resolveAll&&o.push(t),u;function d(L){return s=Hn(s,L),g(),s[s.length-1]!==null?[]:(M(t,0),u.events=pu(o,u.events,u),u.events)}function m(L,v){return lS(f(L),v)}function f(L){return iS(s,L)}function h(){const{_bufferIndex:L,_index:v,line:N,column:I,offset:A}=r;return{_bufferIndex:L,_index:v,line:N,column:I,offset:A}}function b(L){a[L.line]=L.column,P()}function g(){let L;for(;r._index<s.length;){const v=s[r._index];if(typeof v=="string")for(L=r._index,r._bufferIndex<0&&(r._bufferIndex=0);r._index===L&&r._bufferIndex<v.length;)x(v.charCodeAt(r._bufferIndex));else x(v)}}function x(L){c=c(L)}function C(L){Ue(L)?(r.line++,r.column=1,r.offset+=L===-3?2:1,P()):L!==-1&&(r.column++,r.offset++),r._bufferIndex<0?r._index++:(r._bufferIndex++,r._bufferIndex===s[r._index].length&&(r._bufferIndex=-1,r._index++)),u.previous=L}function E(L,v){const N=v||{};return N.type=L,N.start=h(),u.events.push(["enter",N,u]),i.push(N),N}function k(L){const v=i.pop();return v.end=h(),u.events.push(["exit",v,u]),v}function T(L,v){M(L,v.from)}function S(L,v){v.restore()}function O(L,v){return N;function N(I,A,R){let W,H,B,_;return Array.isArray(I)?J(I):"tokenize"in I?J([I]):V(I);function V(Y){return te;function te(X){const re=X!==null&&Y[X],Q=X!==null&&Y.null,G=[...Array.isArray(re)?re:re?[re]:[],...Array.isArray(Q)?Q:Q?[Q]:[]];return J(G)(X)}}function J(Y){return W=Y,H=0,Y.length===0?R:F(Y[H])}function F(Y){return te;function te(X){return _=$(),B=Y,Y.partial||(u.currentConstruct=Y),Y.name&&u.parser.constructs.disable.null.includes(Y.name)?Z():Y.tokenize.call(v?Object.assign(Object.create(u),v):u,l,de,Z)(X)}}function de(Y){return L(B,_),A}function Z(Y){return _.restore(),++H<W.length?F(W[H]):R}}}function M(L,v){L.resolveAll&&!o.includes(L)&&o.push(L),L.resolve&&Dn(u.events,v,u.events.length-v,L.resolve(u.events.slice(v),u)),L.resolveTo&&(u.events=L.resolveTo(u.events,u))}function $(){const L=h(),v=u.previous,N=u.currentConstruct,I=u.events.length,A=Array.from(i);return{from:I,restore:R};function R(){r=L,u.previous=v,u.currentConstruct=N,u.events.length=I,i=A,P()}}function P(){r.line in a&&r.column<2&&(r.column=a[r.line],r.offset+=a[r.line]-1)}}function iS(e,t){const n=t.start._index,r=t.start._bufferIndex,a=t.end._index,o=t.end._bufferIndex;let s;if(n===a)s=[e[n].slice(r,o)];else{if(s=e.slice(n,a),r>-1){const i=s[0];typeof i=="string"?s[0]=i.slice(r):s.shift()}o>0&&s.push(e[a].slice(0,o))}return s}function lS(e,t){let n=-1;const r=[];let a;for(;++n<e.length;){const o=e[n];let s;if(typeof o=="string")s=o;else switch(o){case-5:{s="\r";break}case-4:{s=`
23
- `;break}case-3:{s=`\r
24
- `;break}case-2:{s=t?" ":" ";break}case-1:{if(!t&&a)continue;s=" ";break}default:s=String.fromCharCode(o)}a=o===-2,r.push(s)}return r.join("")}function uS(e){const r={constructs:J0([oS,...(e||{}).extensions||[]]),content:a(kT),defined:[],document:a(wT),flow:a(Vk),lazy:{},string:a(Yk),text:a(Gk)};return r;function a(o){return s;function s(i){return sS(r,o,i)}}}function cS(e){for(;!ab(e););return e}const bm=/[\0\t\n\r]/g;function dS(){let e=1,t="",n=!0,r;return a;function a(o,s,i){const l=[];let u,c,d,m,f;for(o=t+(typeof o=="string"?o.toString():new TextDecoder(s||void 0).decode(o)),d=0,t="",n&&(o.charCodeAt(0)===65279&&d++,n=void 0);d<o.length;){if(bm.lastIndex=d,u=bm.exec(o),m=u&&u.index!==void 0?u.index:o.length,f=o.charCodeAt(m),!u){t=o.slice(d);break}if(f===10&&d===m&&r)l.push(-3),r=void 0;else switch(r&&(l.push(-5),r=void 0),d<m&&(l.push(o.slice(d,m)),e+=m-d),f){case 0:{l.push(65533),e++;break}case 9:{for(c=Math.ceil(e/4)*4,l.push(-2);e++<c;)l.push(-1);break}case 10:{l.push(-4),e=1;break}default:r=!0,e=1}d=m+1}return i&&(r&&l.push(-5),t&&l.push(t),l.push(null)),l}}const pS=/\\([!-/:-@[-`{-~])|&(#(?:\d{1,7}|x[\da-f]{1,6})|[\da-z]{1,31});/gi;function fS(e){return e.replace(pS,mS)}function mS(e,t,n){if(t)return t;if(n.charCodeAt(0)===35){const a=n.charCodeAt(1),o=a===120||a===88;return eb(n.slice(o?2:1),o?16:10)}return rp(n)||e}const cb={}.hasOwnProperty;function hS(e,t,n){return typeof t!="string"&&(n=t,t=void 0),gS(n)(cS(uS(n).document().write(dS()(e,t,!0))))}function gS(e){const t={transforms:[],canContainEols:["emphasis","fragment","heading","paragraph","strong"],enter:{autolink:o(Pe),autolinkProtocol:$,autolinkEmail:$,atxHeading:o(xe),blockQuote:o(Q),characterEscape:$,characterReference:$,codeFenced:o(G),codeFencedFenceInfo:s,codeFencedFenceMeta:s,codeIndented:o(G,s),codeText:o(se,s),codeTextData:$,data:$,codeFlowValue:$,definition:o(ee),definitionDestinationString:s,definitionLabelString:s,definitionTitleString:s,emphasis:o(ne),hardBreakEscape:o(pe),hardBreakTrailing:o(pe),htmlFlow:o(be,s),htmlFlowData:$,htmlText:o(be,s),htmlTextData:$,image:o(le),label:s,link:o(Pe),listItem:o(ze),listItemValue:m,listOrdered:o(Te,d),listUnordered:o(Te),paragraph:o(we),reference:F,referenceString:s,resourceDestinationString:s,resourceTitleString:s,setextHeading:o(xe),strong:o(Tt),thematicBreak:o(qe)},exit:{atxHeading:l(),atxHeadingSequence:T,autolink:l(),autolinkEmail:re,autolinkProtocol:X,blockQuote:l(),characterEscapeValue:P,characterReferenceMarkerHexadecimal:Z,characterReferenceMarkerNumeric:Z,characterReferenceValue:Y,characterReference:te,codeFenced:l(g),codeFencedFence:b,codeFencedFenceInfo:f,codeFencedFenceMeta:h,codeFlowValue:P,codeIndented:l(x),codeText:l(A),codeTextData:P,data:P,definition:l(),definitionDestinationString:k,definitionLabelString:C,definitionTitleString:E,emphasis:l(),hardBreakEscape:l(v),hardBreakTrailing:l(v),htmlFlow:l(N),htmlFlowData:P,htmlText:l(I),htmlTextData:P,image:l(W),label:B,labelText:H,lineEnding:L,link:l(R),listItem:l(),listOrdered:l(),listUnordered:l(),paragraph:l(),referenceString:de,resourceDestinationString:_,resourceTitleString:V,resource:J,setextHeading:l(M),setextHeadingLineSequence:O,setextHeadingText:S,strong:l(),thematicBreak:l()}};db(t,(e||{}).mdastExtensions||[]);const n={};return r;function r(ue){let Ee={type:"root",children:[]};const Me={stack:[Ee],tokenStack:[],config:t,enter:i,exit:u,buffer:s,resume:c,data:n},He=[];let Be=-1;for(;++Be<ue.length;)if(ue[Be][1].type==="listOrdered"||ue[Be][1].type==="listUnordered")if(ue[Be][0]==="enter")He.push(Be);else{const Ne=He.pop();Be=a(ue,Ne,Be)}for(Be=-1;++Be<ue.length;){const Ne=t[ue[Be][0]];cb.call(Ne,ue[Be][1].type)&&Ne[ue[Be][1].type].call(Object.assign({sliceSerialize:ue[Be][2].sliceSerialize},Me),ue[Be][1])}if(Me.tokenStack.length>0){const Ne=Me.tokenStack[Me.tokenStack.length-1];(Ne[1]||ym).call(Me,void 0,Ne[0])}for(Ee.position={start:Kr(ue.length>0?ue[0][1].start:{line:1,column:1,offset:0}),end:Kr(ue.length>0?ue[ue.length-2][1].end:{line:1,column:1,offset:0})},Be=-1;++Be<t.transforms.length;)Ee=t.transforms[Be](Ee)||Ee;return Ee}function a(ue,Ee,Me){let He=Ee-1,Be=-1,Ne=!1,Je,gt,ft,ie;for(;++He<=Me;){const ye=ue[He];switch(ye[1].type){case"listUnordered":case"listOrdered":case"blockQuote":{ye[0]==="enter"?Be++:Be--,ie=void 0;break}case"lineEndingBlank":{ye[0]==="enter"&&(Je&&!ie&&!Be&&!ft&&(ft=He),ie=void 0);break}case"linePrefix":case"listItemValue":case"listItemMarker":case"listItemPrefix":case"listItemPrefixWhitespace":break;default:ie=void 0}if(!Be&&ye[0]==="enter"&&ye[1].type==="listItemPrefix"||Be===-1&&ye[0]==="exit"&&(ye[1].type==="listUnordered"||ye[1].type==="listOrdered")){if(Je){let ve=He;for(gt=void 0;ve--;){const $e=ue[ve];if($e[1].type==="lineEnding"||$e[1].type==="lineEndingBlank"){if($e[0]==="exit")continue;gt&&(ue[gt][1].type="lineEndingBlank",Ne=!0),$e[1].type="lineEnding",gt=ve}else if(!($e[1].type==="linePrefix"||$e[1].type==="blockQuotePrefix"||$e[1].type==="blockQuotePrefixWhitespace"||$e[1].type==="blockQuoteMarker"||$e[1].type==="listItemIndent"))break}ft&&(!gt||ft<gt)&&(Je._spread=!0),Je.end=Object.assign({},gt?ue[gt][1].start:ye[1].end),ue.splice(gt||He,0,["exit",Je,ye[2]]),He++,Me++}if(ye[1].type==="listItemPrefix"){const ve={type:"listItem",_spread:!1,start:Object.assign({},ye[1].start),end:void 0};Je=ve,ue.splice(He,0,["enter",ve,ye[2]]),He++,Me++,ft=void 0,ie=!0}}}return ue[Ee][1]._spread=Ne,Me}function o(ue,Ee){return Me;function Me(He){i.call(this,ue(He),He),Ee&&Ee.call(this,He)}}function s(){this.stack.push({type:"fragment",children:[]})}function i(ue,Ee,Me){this.stack[this.stack.length-1].children.push(ue),this.stack.push(ue),this.tokenStack.push([Ee,Me||void 0]),ue.position={start:Kr(Ee.start),end:void 0}}function l(ue){return Ee;function Ee(Me){ue&&ue.call(this,Me),u.call(this,Me)}}function u(ue,Ee){const Me=this.stack.pop(),He=this.tokenStack.pop();if(He)He[0].type!==ue.type&&(Ee?Ee.call(this,ue,He[0]):(He[1]||ym).call(this,ue,He[0]));else throw new Error("Cannot close `"+ue.type+"` ("+vs({start:ue.start,end:ue.end})+"): it’s not open");Me.position.end=Kr(ue.end)}function c(){return np(this.stack.pop())}function d(){this.data.expectingFirstListItemValue=!0}function m(ue){if(this.data.expectingFirstListItemValue){const Ee=this.stack[this.stack.length-2];Ee.start=Number.parseInt(this.sliceSerialize(ue),10),this.data.expectingFirstListItemValue=void 0}}function f(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.lang=ue}function h(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.meta=ue}function b(){this.data.flowCodeInside||(this.buffer(),this.data.flowCodeInside=!0)}function g(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=ue.replace(/^(\r?\n|\r)|(\r?\n|\r)$/g,""),this.data.flowCodeInside=void 0}function x(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=ue.replace(/(\r?\n|\r)$/g,"")}function C(ue){const Ee=this.resume(),Me=this.stack[this.stack.length-1];Me.label=Ee,Me.identifier=rr(this.sliceSerialize(ue)).toLowerCase()}function E(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=ue}function k(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=ue}function T(ue){const Ee=this.stack[this.stack.length-1];if(!Ee.depth){const Me=this.sliceSerialize(ue).length;Ee.depth=Me}}function S(){this.data.setextHeadingSlurpLineEnding=!0}function O(ue){const Ee=this.stack[this.stack.length-1];Ee.depth=this.sliceSerialize(ue).codePointAt(0)===61?1:2}function M(){this.data.setextHeadingSlurpLineEnding=void 0}function $(ue){const Me=this.stack[this.stack.length-1].children;let He=Me[Me.length-1];(!He||He.type!=="text")&&(He=lt(),He.position={start:Kr(ue.start),end:void 0},Me.push(He)),this.stack.push(He)}function P(ue){const Ee=this.stack.pop();Ee.value+=this.sliceSerialize(ue),Ee.position.end=Kr(ue.end)}function L(ue){const Ee=this.stack[this.stack.length-1];if(this.data.atHardBreak){const Me=Ee.children[Ee.children.length-1];Me.position.end=Kr(ue.end),this.data.atHardBreak=void 0;return}!this.data.setextHeadingSlurpLineEnding&&t.canContainEols.includes(Ee.type)&&($.call(this,ue),P.call(this,ue))}function v(){this.data.atHardBreak=!0}function N(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=ue}function I(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=ue}function A(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.value=ue}function R(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=Ee,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function W(){const ue=this.stack[this.stack.length-1];if(this.data.inReference){const Ee=this.data.referenceType||"shortcut";ue.type+="Reference",ue.referenceType=Ee,delete ue.url,delete ue.title}else delete ue.identifier,delete ue.label;this.data.referenceType=void 0}function H(ue){const Ee=this.sliceSerialize(ue),Me=this.stack[this.stack.length-2];Me.label=fS(Ee),Me.identifier=rr(Ee).toLowerCase()}function B(){const ue=this.stack[this.stack.length-1],Ee=this.resume(),Me=this.stack[this.stack.length-1];if(this.data.inReference=!0,Me.type==="link"){const He=ue.children;Me.children=He}else Me.alt=Ee}function _(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.url=ue}function V(){const ue=this.resume(),Ee=this.stack[this.stack.length-1];Ee.title=ue}function J(){this.data.inReference=void 0}function F(){this.data.referenceType="collapsed"}function de(ue){const Ee=this.resume(),Me=this.stack[this.stack.length-1];Me.label=Ee,Me.identifier=rr(this.sliceSerialize(ue)).toLowerCase(),this.data.referenceType="full"}function Z(ue){this.data.characterReferenceType=ue.type}function Y(ue){const Ee=this.sliceSerialize(ue),Me=this.data.characterReferenceType;let He;Me?(He=eb(Ee,Me==="characterReferenceMarkerNumeric"?10:16),this.data.characterReferenceType=void 0):He=rp(Ee);const Be=this.stack[this.stack.length-1];Be.value+=He}function te(ue){const Ee=this.stack.pop();Ee.position.end=Kr(ue.end)}function X(ue){P.call(this,ue);const Ee=this.stack[this.stack.length-1];Ee.url=this.sliceSerialize(ue)}function re(ue){P.call(this,ue);const Ee=this.stack[this.stack.length-1];Ee.url="mailto:"+this.sliceSerialize(ue)}function Q(){return{type:"blockquote",children:[]}}function G(){return{type:"code",lang:null,meta:null,value:""}}function se(){return{type:"inlineCode",value:""}}function ee(){return{type:"definition",identifier:"",label:null,title:null,url:""}}function ne(){return{type:"emphasis",children:[]}}function xe(){return{type:"heading",depth:0,children:[]}}function pe(){return{type:"break"}}function be(){return{type:"html",value:""}}function le(){return{type:"image",title:null,url:"",alt:null}}function Pe(){return{type:"link",title:null,url:"",children:[]}}function Te(ue){return{type:"list",ordered:ue.type==="listOrdered",start:null,spread:ue._spread,children:[]}}function ze(ue){return{type:"listItem",spread:ue._spread,checked:null,children:[]}}function we(){return{type:"paragraph",children:[]}}function Tt(){return{type:"strong",children:[]}}function lt(){return{type:"text",value:""}}function qe(){return{type:"thematicBreak"}}}function Kr(e){return{line:e.line,column:e.column,offset:e.offset}}function db(e,t){let n=-1;for(;++n<t.length;){const r=t[n];Array.isArray(r)?db(e,r):bS(e,r)}}function bS(e,t){let n;for(n in t)if(cb.call(t,n))switch(n){case"canContainEols":{const r=t[n];r&&e[n].push(...r);break}case"transforms":{const r=t[n];r&&e[n].push(...r);break}case"enter":case"exit":{const r=t[n];r&&Object.assign(e[n],r);break}}}function ym(e,t){throw e?new Error("Cannot close `"+e.type+"` ("+vs({start:e.start,end:e.end})+"): a different token (`"+t.type+"`, "+vs({start:t.start,end:t.end})+") is open"):new Error("Cannot close document, a token (`"+t.type+"`, "+vs({start:t.start,end:t.end})+") is still open")}function yS(e){const t=this;t.parser=n;function n(r){return hS(r,{...t.data("settings"),...e,extensions:t.data("micromarkExtensions")||[],mdastExtensions:t.data("fromMarkdownExtensions")||[]})}}function xS(e,t){const n={type:"element",tagName:"blockquote",properties:{},children:e.wrap(e.all(t),!0)};return e.patch(t,n),e.applyData(t,n)}function CS(e,t){const n={type:"element",tagName:"br",properties:{},children:[]};return e.patch(t,n),[e.applyData(t,n),{type:"text",value:`
25
- `}]}function ES(e,t){const n=t.value?t.value+`
26
- `:"",r={};t.lang&&(r.className=["language-"+t.lang]);let a={type:"element",tagName:"code",properties:r,children:[{type:"text",value:n}]};return t.meta&&(a.data={meta:t.meta}),e.patch(t,a),a=e.applyData(t,a),a={type:"element",tagName:"pre",properties:{},children:[a]},e.patch(t,a),a}function vS(e,t){const n={type:"element",tagName:"del",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function TS(e,t){const n={type:"element",tagName:"em",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function kS(e,t){const n=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",r=String(t.identifier).toUpperCase(),a=No(r.toLowerCase()),o=e.footnoteOrder.indexOf(r);let s,i=e.footnoteCounts.get(r);i===void 0?(i=0,e.footnoteOrder.push(r),s=e.footnoteOrder.length):s=o+1,i+=1,e.footnoteCounts.set(r,i);const l={type:"element",tagName:"a",properties:{href:"#"+n+"fn-"+a,id:n+"fnref-"+a+(i>1?"-"+i:""),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 SS(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 wS(e,t){if(e.options.allowDangerousHtml){const n={type:"raw",value:t.value};return e.patch(t,n),e.applyData(t,n)}}function pb(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 a=e.all(t),o=a[0];o&&o.type==="text"?o.value="["+o.value:a.unshift({type:"text",value:"["});const s=a[a.length-1];return s&&s.type==="text"?s.value+=r:a.push({type:"text",value:r}),a}function _S(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pb(e,t);const a={src:No(r.url||""),alt:t.alt};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"img",properties:a,children:[]};return e.patch(t,o),e.applyData(t,o)}function IS(e,t){const n={src:No(t.url)};t.alt!==null&&t.alt!==void 0&&(n.alt=t.alt),t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"img",properties:n,children:[]};return e.patch(t,r),e.applyData(t,r)}function AS(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 DS(e,t){const n=String(t.identifier).toUpperCase(),r=e.definitionById.get(n);if(!r)return pb(e,t);const a={href:No(r.url||"")};r.title!==null&&r.title!==void 0&&(a.title=r.title);const o={type:"element",tagName:"a",properties:a,children:e.all(t)};return e.patch(t,o),e.applyData(t,o)}function PS(e,t){const n={href:No(t.url)};t.title!==null&&t.title!==void 0&&(n.title=t.title);const r={type:"element",tagName:"a",properties:n,children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function RS(e,t,n){const r=e.all(t),a=n?MS(n):fb(t),o={},s=[];if(typeof t.checked=="boolean"){const c=r[0];let d;c&&c.type==="element"&&c.tagName==="p"?d=c:(d={type:"element",tagName:"p",properties:{},children:[]},r.unshift(d)),d.children.length>0&&d.children.unshift({type:"text",value:" "}),d.children.unshift({type:"element",tagName:"input",properties:{type:"checkbox",checked:t.checked,disabled:!0},children:[]}),o.className=["task-list-item"]}let i=-1;for(;++i<r.length;){const c=r[i];(a||i!==0||c.type!=="element"||c.tagName!=="p")&&s.push({type:"text",value:`
27
- `}),c.type==="element"&&c.tagName==="p"&&!a?s.push(...c.children):s.push(c)}const l=r[r.length-1];l&&(a||l.type!=="element"||l.tagName!=="p")&&s.push({type:"text",value:`
28
- `});const u={type:"element",tagName:"li",properties:o,children:s};return e.patch(t,u),e.applyData(t,u)}function MS(e){let t=!1;if(e.type==="list"){t=e.spread||!1;const n=e.children;let r=-1;for(;!t&&++r<n.length;)t=fb(n[r])}return t}function fb(e){const t=e.spread;return t??e.children.length>1}function NS(e,t){const n={},r=e.all(t);let a=-1;for(typeof t.start=="number"&&t.start!==1&&(n.start=t.start);++a<r.length;){const s=r[a];if(s.type==="element"&&s.tagName==="li"&&s.properties&&Array.isArray(s.properties.className)&&s.properties.className.includes("task-list-item")){n.className=["contains-task-list"];break}}const o={type:"element",tagName:t.ordered?"ol":"ul",properties:n,children:e.wrap(r,!0)};return e.patch(t,o),e.applyData(t,o)}function OS(e,t){const n={type:"element",tagName:"p",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function LS(e,t){const n={type:"root",children:e.wrap(e.all(t))};return e.patch(t,n),e.applyData(t,n)}function FS(e,t){const n={type:"element",tagName:"strong",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}function $S(e,t){const n=e.all(t),r=n.shift(),a=[];if(r){const s={type:"element",tagName:"thead",properties:{},children:e.wrap([r],!0)};e.patch(t.children[0],s),a.push(s)}if(n.length>0){const s={type:"element",tagName:"tbody",properties:{},children:e.wrap(n,!0)},i=Er(t.children[1]),l=cu(t.children[t.children.length-1]);i&&l&&(s.position={start:i,end:l}),a.push(s)}const o={type:"element",tagName:"table",properties:{},children:e.wrap(a,!0)};return e.patch(t,o),e.applyData(t,o)}function BS(e,t,n){const r=n?n.children:void 0,o=(r?r.indexOf(t):1)===0?"th":"td",s=n&&n.type==="table"?n.align:void 0,i=s?s.length:t.children.length;let l=-1;const u=[];for(;++l<i;){const d=t.children[l],m={},f=s?s[l]:void 0;f&&(m.align=f);let h={type:"element",tagName:o,properties:m,children:[]};d&&(h.children=e.all(d),e.patch(d,h),h=e.applyData(d,h)),u.push(h)}const c={type:"element",tagName:"tr",properties:{},children:e.wrap(u,!0)};return e.patch(t,c),e.applyData(t,c)}function jS(e,t){const n={type:"element",tagName:"td",properties:{},children:e.all(t)};return e.patch(t,n),e.applyData(t,n)}const xm=9,Cm=32;function HS(e){const t=String(e),n=/\r?\n|\r/g;let r=n.exec(t),a=0;const o=[];for(;r;)o.push(Em(t.slice(a,r.index),a>0,!0),r[0]),a=r.index+r[0].length,r=n.exec(t);return o.push(Em(t.slice(a),a>0,!1)),o.join("")}function Em(e,t,n){let r=0,a=e.length;if(t){let o=e.codePointAt(r);for(;o===xm||o===Cm;)r++,o=e.codePointAt(r)}if(n){let o=e.codePointAt(a-1);for(;o===xm||o===Cm;)a--,o=e.codePointAt(a-1)}return a>r?e.slice(r,a):""}function US(e,t){const n={type:"text",value:HS(String(t.value))};return e.patch(t,n),e.applyData(t,n)}function zS(e,t){const n={type:"element",tagName:"hr",properties:{},children:[]};return e.patch(t,n),e.applyData(t,n)}const VS={blockquote:xS,break:CS,code:ES,delete:vS,emphasis:TS,footnoteReference:kS,heading:SS,html:wS,imageReference:_S,image:IS,inlineCode:AS,linkReference:DS,link:PS,listItem:RS,list:NS,paragraph:OS,root:LS,strong:FS,table:$S,tableCell:jS,tableRow:BS,text:US,thematicBreak:zS,toml:Ii,yaml:Ii,definition:Ii,footnoteDefinition:Ii};function Ii(){}const mb=-1,fu=0,ks=1,vl=2,op=3,sp=4,ip=5,lp=6,hb=7,gb=8,vm=typeof self=="object"?self:globalThis,WS=(e,t)=>{const n=(a,o)=>(e.set(o,a),a),r=a=>{if(e.has(a))return e.get(a);const[o,s]=t[a];switch(o){case fu:case mb:return n(s,a);case ks:{const i=n([],a);for(const l of s)i.push(r(l));return i}case vl:{const i=n({},a);for(const[l,u]of s)i[r(l)]=r(u);return i}case op:return n(new Date(s),a);case sp:{const{source:i,flags:l}=s;return n(new RegExp(i,l),a)}case ip:{const i=n(new Map,a);for(const[l,u]of s)i.set(r(l),r(u));return i}case lp:{const i=n(new Set,a);for(const l of s)i.add(r(l));return i}case hb:{const{name:i,message:l}=s;return n(new vm[i](l),a)}case gb:return n(BigInt(s),a);case"BigInt":return n(Object(BigInt(s)),a);case"ArrayBuffer":return n(new Uint8Array(s).buffer,s);case"DataView":{const{buffer:i}=new Uint8Array(s);return n(new DataView(i),s)}}return n(new vm[o](s),a)};return r},Tm=e=>WS(new Map,e)(0),eo="",{toString:qS}={},{keys:YS}=Object,es=e=>{const t=typeof e;if(t!=="object"||!e)return[fu,t];const n=qS.call(e).slice(8,-1);switch(n){case"Array":return[ks,eo];case"Object":return[vl,eo];case"Date":return[op,eo];case"RegExp":return[sp,eo];case"Map":return[ip,eo];case"Set":return[lp,eo];case"DataView":return[ks,n]}return n.includes("Array")?[ks,n]:n.includes("Error")?[hb,n]:[vl,n]},Ai=([e,t])=>e===fu&&(t==="function"||t==="symbol"),GS=(e,t,n,r)=>{const a=(s,i)=>{const l=r.push(s)-1;return n.set(i,l),l},o=s=>{if(n.has(s))return n.get(s);let[i,l]=es(s);switch(i){case fu:{let c=s;switch(l){case"bigint":i=gb,c=s.toString();break;case"function":case"symbol":if(e)throw new TypeError("unable to serialize "+l);c=null;break;case"undefined":return a([mb],s)}return a([i,c],s)}case ks:{if(l){let m=s;return l==="DataView"?m=new Uint8Array(s.buffer):l==="ArrayBuffer"&&(m=new Uint8Array(s)),a([l,[...m]],s)}const c=[],d=a([i,c],s);for(const m of s)c.push(o(m));return d}case vl:{if(l)switch(l){case"BigInt":return a([l,s.toString()],s);case"Boolean":case"Number":case"String":return a([l,s.valueOf()],s)}if(t&&"toJSON"in s)return o(s.toJSON());const c=[],d=a([i,c],s);for(const m of YS(s))(e||!Ai(es(s[m])))&&c.push([o(m),o(s[m])]);return d}case op:return a([i,s.toISOString()],s);case sp:{const{source:c,flags:d}=s;return a([i,{source:c,flags:d}],s)}case ip:{const c=[],d=a([i,c],s);for(const[m,f]of s)(e||!(Ai(es(m))||Ai(es(f))))&&c.push([o(m),o(f)]);return d}case lp:{const c=[],d=a([i,c],s);for(const m of s)(e||!Ai(es(m)))&&c.push(o(m));return d}}const{message:u}=s;return a([i,{name:l,message:u}],s)};return o},km=(e,{json:t,lossy:n}={})=>{const r=[];return GS(!(t||n),!!t,new Map,r)(e),r},Ma=typeof structuredClone=="function"?(e,t)=>t&&("json"in t||"lossy"in t)?Tm(km(e,t)):structuredClone(e):(e,t)=>Tm(km(e,t));function KS(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 QS(e,t){return"Back to reference "+(e+1)+(t>1?"-"+t:"")}function XS(e){const t=typeof e.options.clobberPrefix=="string"?e.options.clobberPrefix:"user-content-",n=e.options.footnoteBackContent||KS,r=e.options.footnoteBackLabel||QS,a=e.options.footnoteLabel||"Footnotes",o=e.options.footnoteLabelTagName||"h2",s=e.options.footnoteLabelProperties||{className:["sr-only"]},i=[];let l=-1;for(;++l<e.footnoteOrder.length;){const u=e.footnoteById.get(e.footnoteOrder[l]);if(!u)continue;const c=e.all(u),d=String(u.identifier).toUpperCase(),m=No(d.toLowerCase());let f=0;const h=[],b=e.footnoteCounts.get(d);for(;b!==void 0&&++f<=b;){h.length>0&&h.push({type:"text",value:" "});let C=typeof n=="string"?n:n(l,f);typeof C=="string"&&(C={type:"text",value:C}),h.push({type:"element",tagName:"a",properties:{href:"#"+t+"fnref-"+m+(f>1?"-"+f:""),dataFootnoteBackref:"",ariaLabel:typeof r=="string"?r:r(l,f),className:["data-footnote-backref"]},children:Array.isArray(C)?C:[C]})}const g=c[c.length-1];if(g&&g.type==="element"&&g.tagName==="p"){const C=g.children[g.children.length-1];C&&C.type==="text"?C.value+=" ":g.children.push({type:"text",value:" "}),g.children.push(...h)}else c.push(...h);const x={type:"element",tagName:"li",properties:{id:t+"fn-"+m},children:e.wrap(c,!0)};e.patch(u,x),i.push(x)}if(i.length!==0)return{type:"element",tagName:"section",properties:{dataFootnotes:!0,className:["footnotes"]},children:[{type:"element",tagName:o,properties:{...Ma(s),id:"footnote-label"},children:[{type:"text",value:a}]},{type:"text",value:`
29
- `},{type:"element",tagName:"ol",properties:{},children:e.wrap(i,!0)},{type:"text",value:`
30
- `}]}}const mu=(function(e){if(e==null)return tw;if(typeof e=="function")return hu(e);if(typeof e=="object")return Array.isArray(e)?ZS(e):JS(e);if(typeof e=="string")return ew(e);throw new Error("Expected function, string, or object as test")});function ZS(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=mu(e[n]);return hu(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function JS(e){const t=e;return hu(n);function n(r){const a=r;let o;for(o in e)if(a[o]!==t[o])return!1;return!0}}function ew(e){return hu(t);function t(n){return n&&n.type===e}}function hu(e){return t;function t(n,r,a){return!!(nw(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function tw(){return!0}function nw(e){return e!==null&&typeof e=="object"&&"type"in e}const bb=[],rw=!0,Tl=!1,Ss="skip";function yb(e,t,n,r){let a;typeof t=="function"&&typeof n!="function"?(r=n,n=t):a=t;const o=mu(a),s=r?-1:1;i(e,void 0,[])();function i(l,u,c){const d=l&&typeof l=="object"?l:{};if(typeof d.type=="string"){const f=typeof d.tagName=="string"?d.tagName:typeof d.name=="string"?d.name:void 0;Object.defineProperty(m,"name",{value:"node ("+(l.type+(f?"<"+f+">":""))+")"})}return m;function m(){let f=bb,h,b,g;if((!t||o(l,u,c[c.length-1]||void 0))&&(f=aw(n(l,c)),f[0]===Tl))return f;if("children"in l&&l.children){const x=l;if(x.children&&f[0]!==Ss)for(b=(r?x.children.length:-1)+s,g=c.concat(x);b>-1&&b<x.children.length;){const C=x.children[b];if(h=i(C,b,g)(),h[0]===Tl)return h;b=typeof h[1]=="number"?h[1]:b+s}}return f}}}function aw(e){return Array.isArray(e)?e:typeof e=="number"?[rw,e]:e==null?bb:[e]}function vn(e,t,n,r){let a,o,s;typeof t=="function"&&typeof n!="function"?(o=void 0,s=t,a=n):(o=t,s=n,a=r),yb(e,o,i,a);function i(l,u){const c=u[u.length-1],d=c?c.children.indexOf(l):void 0;return s(l,d,c)}}const ad={}.hasOwnProperty,ow={};function sw(e,t){const n=t||ow,r=new Map,a=new Map,o=new Map,s={...VS,...n.handlers},i={all:u,applyData:lw,definitionById:r,footnoteById:a,footnoteCounts:o,footnoteOrder:[],handlers:s,one:l,options:n,patch:iw,wrap:cw};return vn(e,function(c){if(c.type==="definition"||c.type==="footnoteDefinition"){const d=c.type==="definition"?r:a,m=String(c.identifier).toUpperCase();d.has(m)||d.set(m,c)}}),i;function l(c,d){const m=c.type,f=i.handlers[m];if(ad.call(i.handlers,m)&&f)return f(i,c,d);if(i.options.passThrough&&i.options.passThrough.includes(m)){if("children"in c){const{children:b,...g}=c,x=Ma(g);return x.children=i.all(c),x}return Ma(c)}return(i.options.unknownHandler||uw)(i,c,d)}function u(c){const d=[];if("children"in c){const m=c.children;let f=-1;for(;++f<m.length;){const h=i.one(m[f],c);if(h){if(f&&m[f-1].type==="break"&&(!Array.isArray(h)&&h.type==="text"&&(h.value=Sm(h.value)),!Array.isArray(h)&&h.type==="element")){const b=h.children[0];b&&b.type==="text"&&(b.value=Sm(b.value))}Array.isArray(h)?d.push(...h):d.push(h)}}}return d}}function iw(e,t){e.position&&(t.position=Qv(e))}function lw(e,t){let n=t;if(e&&e.data){const r=e.data.hName,a=e.data.hChildren,o=e.data.hProperties;if(typeof r=="string")if(n.type==="element")n.tagName=r;else{const s="children"in n?n.children:[n];n={type:"element",tagName:r,properties:{},children:s}}n.type==="element"&&o&&Object.assign(n.properties,Ma(o)),"children"in n&&n.children&&a!==null&&a!==void 0&&(n.children=a)}return n}function uw(e,t){const n=t.data||{},r="value"in t&&!(ad.call(n,"hProperties")||ad.call(n,"hChildren"))?{type:"text",value:t.value}:{type:"element",tagName:"div",properties:{},children:e.all(t)};return e.patch(t,r),e.applyData(t,r)}function cw(e,t){const n=[];let r=-1;for(t&&n.push({type:"text",value:`
31
- `});++r<e.length;)r&&n.push({type:"text",value:`
32
- `}),n.push(e[r]);return t&&e.length>0&&n.push({type:"text",value:`
33
- `}),n}function Sm(e){let t=0,n=e.charCodeAt(t);for(;n===9||n===32;)t++,n=e.charCodeAt(t);return e.slice(t)}function wm(e,t){const n=sw(e,t),r=n.one(e,void 0),a=XS(n),o=Array.isArray(r)?{type:"root",children:r}:r||{type:"root",children:[]};return a&&o.children.push({type:"text",value:`
34
- `},a),o}function dw(e,t){return e&&"run"in e?async function(n,r){const a=wm(n,{file:r,...t});await e.run(a,r)}:function(n,r){return wm(n,{file:r,...e||t})}}function _m(e){if(e)throw e}var rc,Im;function pw(){if(Im)return rc;Im=1;var e=Object.prototype.hasOwnProperty,t=Object.prototype.toString,n=Object.defineProperty,r=Object.getOwnPropertyDescriptor,a=function(u){return typeof Array.isArray=="function"?Array.isArray(u):t.call(u)==="[object Array]"},o=function(u){if(!u||t.call(u)!=="[object Object]")return!1;var c=e.call(u,"constructor"),d=u.constructor&&u.constructor.prototype&&e.call(u.constructor.prototype,"isPrototypeOf");if(u.constructor&&!c&&!d)return!1;var m;for(m in u);return typeof m>"u"||e.call(u,m)},s=function(u,c){n&&c.name==="__proto__"?n(u,c.name,{enumerable:!0,configurable:!0,value:c.newValue,writable:!0}):u[c.name]=c.newValue},i=function(u,c){if(c==="__proto__")if(e.call(u,c)){if(r)return r(u,c).value}else return;return u[c]};return rc=function l(){var u,c,d,m,f,h,b=arguments[0],g=1,x=arguments.length,C=!1;for(typeof b=="boolean"&&(C=b,b=arguments[1]||{},g=2),(b==null||typeof b!="object"&&typeof b!="function")&&(b={});g<x;++g)if(u=arguments[g],u!=null)for(c in u)d=i(b,c),m=i(u,c),b!==m&&(C&&m&&(o(m)||(f=a(m)))?(f?(f=!1,h=d&&a(d)?d:[]):h=d&&o(d)?d:{},s(b,{name:c,newValue:l(C,h,m)})):typeof m<"u"&&s(b,{name:c,newValue:m}));return b},rc}var fw=pw();const ac=ar(fw);function od(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 mw(){const e=[],t={run:n,use:r};return t;function n(...a){let o=-1;const s=a.pop();if(typeof s!="function")throw new TypeError("Expected function as last argument, not "+s);i(null,...a);function i(l,...u){const c=e[++o];let d=-1;if(l){s(l);return}for(;++d<a.length;)(u[d]===null||u[d]===void 0)&&(u[d]=a[d]);a=u,c?hw(c,i)(...u):s(null,...u)}}function r(a){if(typeof a!="function")throw new TypeError("Expected `middelware` to be a function, not "+a);return e.push(a),t}}function hw(e,t){let n;return r;function r(...s){const i=e.length>s.length;let l;i&&s.push(a);try{l=e.apply(this,s)}catch(u){const c=u;if(i&&n)throw c;return a(c)}i||(l&&l.then&&typeof l.then=="function"?l.then(o,a):l instanceof Error?a(l):o(l))}function a(s,...i){n||(n=!0,t(s,...i))}function o(s){a(null,s)}}const fr={basename:gw,dirname:bw,extname:yw,join:xw,sep:"/"};function gw(e,t){if(t!==void 0&&typeof t!="string")throw new TypeError('"ext" argument must be a string');di(e);let n=0,r=-1,a=e.length,o;if(t===void 0||t.length===0||t.length>e.length){for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else r<0&&(o=!0,r=a+1);return r<0?"":e.slice(n,r)}if(t===e)return"";let s=-1,i=t.length-1;for(;a--;)if(e.codePointAt(a)===47){if(o){n=a+1;break}}else s<0&&(o=!0,s=a+1),i>-1&&(e.codePointAt(a)===t.codePointAt(i--)?i<0&&(r=a):(i=-1,r=s));return n===r?r=s:r<0&&(r=e.length),e.slice(n,r)}function bw(e){if(di(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 yw(e){di(e);let t=e.length,n=-1,r=0,a=-1,o=0,s;for(;t--;){const i=e.codePointAt(t);if(i===47){if(s){r=t+1;break}continue}n<0&&(s=!0,n=t+1),i===46?a<0?a=t:o!==1&&(o=1):a>-1&&(o=-1)}return a<0||n<0||o===0||o===1&&a===n-1&&a===r+1?"":e.slice(a,n)}function xw(...e){let t=-1,n;for(;++t<e.length;)di(e[t]),e[t]&&(n=n===void 0?e[t]:n+"/"+e[t]);return n===void 0?".":Cw(n)}function Cw(e){di(e);const t=e.codePointAt(0)===47;let n=Ew(e,!t);return n.length===0&&!t&&(n="."),n.length>0&&e.codePointAt(e.length-1)===47&&(n+="/"),t?"/"+n:n}function Ew(e,t){let n="",r=0,a=-1,o=0,s=-1,i,l;for(;++s<=e.length;){if(s<e.length)i=e.codePointAt(s);else{if(i===47)break;i=47}if(i===47){if(!(a===s-1||o===1))if(a!==s-1&&o===2){if(n.length<2||r!==2||n.codePointAt(n.length-1)!==46||n.codePointAt(n.length-2)!==46){if(n.length>2){if(l=n.lastIndexOf("/"),l!==n.length-1){l<0?(n="",r=0):(n=n.slice(0,l),r=n.length-1-n.lastIndexOf("/")),a=s,o=0;continue}}else if(n.length>0){n="",r=0,a=s,o=0;continue}}t&&(n=n.length>0?n+"/..":"..",r=2)}else n.length>0?n+="/"+e.slice(a+1,s):n=e.slice(a+1,s),r=s-a-1;a=s,o=0}else i===46&&o>-1?o++:o=-1}return n}function di(e){if(typeof e!="string")throw new TypeError("Path must be a string. Received "+JSON.stringify(e))}const vw={cwd:Tw};function Tw(){return"/"}function sd(e){return!!(e!==null&&typeof e=="object"&&"href"in e&&e.href&&"protocol"in e&&e.protocol&&e.auth===void 0)}function kw(e){if(typeof e=="string")e=new URL(e);else if(!sd(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 Sw(e)}function Sw(e){if(e.hostname!==""){const r=new TypeError('File URL host must be "localhost" or empty on darwin');throw r.code="ERR_INVALID_FILE_URL_HOST",r}const t=e.pathname;let n=-1;for(;++n<t.length;)if(t.codePointAt(n)===37&&t.codePointAt(n+1)===50){const r=t.codePointAt(n+2);if(r===70||r===102){const a=new TypeError("File URL path must not include encoded / characters");throw a.code="ERR_INVALID_FILE_URL_PATH",a}}return decodeURIComponent(t)}const oc=["history","path","basename","stem","extname","dirname"];class xb{constructor(t){let n;t?sd(t)?n={path:t}:typeof t=="string"||ww(t)?n={value:t}:n=t:n={},this.cwd="cwd"in n?"":vw.cwd(),this.data={},this.history=[],this.messages=[],this.value,this.map,this.result,this.stored;let r=-1;for(;++r<oc.length;){const o=oc[r];o in n&&n[o]!==void 0&&n[o]!==null&&(this[o]=o==="history"?[...n[o]]:n[o])}let a;for(a in n)oc.includes(a)||(this[a]=n[a])}get basename(){return typeof this.path=="string"?fr.basename(this.path):void 0}set basename(t){ic(t,"basename"),sc(t,"basename"),this.path=fr.join(this.dirname||"",t)}get dirname(){return typeof this.path=="string"?fr.dirname(this.path):void 0}set dirname(t){Am(this.basename,"dirname"),this.path=fr.join(t||"",this.basename)}get extname(){return typeof this.path=="string"?fr.extname(this.path):void 0}set extname(t){if(sc(t,"extname"),Am(this.dirname,"extname"),t){if(t.codePointAt(0)!==46)throw new Error("`extname` must start with `.`");if(t.includes(".",1))throw new Error("`extname` cannot contain multiple dots")}this.path=fr.join(this.dirname,this.stem+(t||""))}get path(){return this.history[this.history.length-1]}set path(t){sd(t)&&(t=kw(t)),ic(t,"path"),this.path!==t&&this.history.push(t)}get stem(){return typeof this.path=="string"?fr.basename(this.path,this.extname):void 0}set stem(t){ic(t,"stem"),sc(t,"stem"),this.path=fr.join(this.dirname||"",t+(this.extname||""))}fail(t,n,r){const a=this.message(t,n,r);throw a.fatal=!0,a}info(t,n,r){const a=this.message(t,n,r);return a.fatal=void 0,a}message(t,n,r){const a=new un(t,n,r);return this.path&&(a.name=this.path+":"+a.name,a.file=this.path),a.fatal=!1,this.messages.push(a),a}toString(t){return this.value===void 0?"":typeof this.value=="string"?this.value:new TextDecoder(t||void 0).decode(this.value)}}function sc(e,t){if(e&&e.includes(fr.sep))throw new Error("`"+t+"` cannot be a path: did not expect `"+fr.sep+"`")}function ic(e,t){if(!e)throw new Error("`"+t+"` cannot be empty")}function Am(e,t){if(!e)throw new Error("Setting `"+t+"` requires `path` to be set too")}function ww(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const _w=(function(e){const r=this.constructor.prototype,a=r[e],o=function(){return a.apply(o,arguments)};return Object.setPrototypeOf(o,r),o}),Iw={}.hasOwnProperty;class up extends _w{constructor(){super("copy"),this.Compiler=void 0,this.Parser=void 0,this.attachers=[],this.compiler=void 0,this.freezeIndex=-1,this.frozen=void 0,this.namespace={},this.parser=void 0,this.transformers=mw()}copy(){const t=new up;let n=-1;for(;++n<this.attachers.length;){const r=this.attachers[n];t.use(...r)}return t.data(ac(!0,{},this.namespace)),t}data(t,n){return typeof t=="string"?arguments.length===2?(cc("data",this.frozen),this.namespace[t]=n,this):Iw.call(this.namespace,t)&&this.namespace[t]||void 0:t?(cc("data",this.frozen),this.namespace=t,this):this.namespace}freeze(){if(this.frozen)return this;const t=this;for(;++this.freezeIndex<this.attachers.length;){const[n,...r]=this.attachers[this.freezeIndex];if(r[0]===!1)continue;r[0]===!0&&(r[0]=void 0);const a=n.call(t,...r);typeof a=="function"&&this.transformers.use(a)}return this.frozen=!0,this.freezeIndex=Number.POSITIVE_INFINITY,this}parse(t){this.freeze();const n=Di(t),r=this.parser||this.Parser;return lc("parse",r),r(String(n),n)}process(t,n){const r=this;return this.freeze(),lc("process",this.parser||this.Parser),uc("process",this.compiler||this.Compiler),n?a(void 0,n):new Promise(a);function a(o,s){const i=Di(t),l=r.parse(i);r.run(l,i,function(c,d,m){if(c||!d||!m)return u(c);const f=d,h=r.stringify(f,m);Pw(h)?m.value=h:m.result=h,u(c,m)});function u(c,d){c||!d?s(c):o?o(d):n(void 0,d)}}}processSync(t){let n=!1,r;return this.freeze(),lc("processSync",this.parser||this.Parser),uc("processSync",this.compiler||this.Compiler),this.process(t,a),Pm("processSync","process",n),r;function a(o,s){n=!0,_m(o),r=s}}run(t,n,r){Dm(t),this.freeze();const a=this.transformers;return!r&&typeof n=="function"&&(r=n,n=void 0),r?o(void 0,r):new Promise(o);function o(s,i){const l=Di(n);a.run(t,l,u);function u(c,d,m){const f=d||t;c?i(c):s?s(f):r(void 0,f,m)}}}runSync(t,n){let r=!1,a;return this.run(t,n,o),Pm("runSync","run",r),a;function o(s,i){_m(s),a=i,r=!0}}stringify(t,n){this.freeze();const r=Di(n),a=this.compiler||this.Compiler;return uc("stringify",a),Dm(t),a(t,r)}use(t,...n){const r=this.attachers,a=this.namespace;if(cc("use",this.frozen),t!=null)if(typeof t=="function")l(t,n);else if(typeof t=="object")Array.isArray(t)?i(t):s(t);else throw new TypeError("Expected usable value, not `"+t+"`");return this;function o(u){if(typeof u=="function")l(u,[]);else if(typeof u=="object")if(Array.isArray(u)){const[c,...d]=u;l(c,d)}else s(u);else throw new TypeError("Expected usable value, not `"+u+"`")}function s(u){if(!("plugins"in u)&&!("settings"in u))throw new Error("Expected usable value but received an empty preset, which is probably a mistake: presets typically come with `plugins` and sometimes with `settings`, but this has neither");i(u.plugins),u.settings&&(a.settings=ac(!0,a.settings,u.settings))}function i(u){let c=-1;if(u!=null)if(Array.isArray(u))for(;++c<u.length;){const d=u[c];o(d)}else throw new TypeError("Expected a list of plugins, not `"+u+"`")}function l(u,c){let d=-1,m=-1;for(;++d<r.length;)if(r[d][0]===u){m=d;break}if(m===-1)r.push([u,...c]);else if(c.length>0){let[f,...h]=c;const b=r[m][1];od(b)&&od(f)&&(f=ac(!0,b,f)),r[m]=[u,f,...h]}}}}const Aw=new up().freeze();function lc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `parser`")}function uc(e,t){if(typeof t!="function")throw new TypeError("Cannot `"+e+"` without `compiler`")}function cc(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 Dm(e){if(!od(e)||typeof e.type!="string")throw new TypeError("Expected node, got `"+e+"`")}function Pm(e,t,n){if(!n)throw new Error("`"+e+"` finished async. Use `"+t+"` instead")}function Di(e){return Dw(e)?e:new xb(e)}function Dw(e){return!!(e&&typeof e=="object"&&"message"in e&&"messages"in e)}function Pw(e){return typeof e=="string"||Rw(e)}function Rw(e){return!!(e&&typeof e=="object"&&"byteLength"in e&&"byteOffset"in e)}const Mw="https://github.com/remarkjs/react-markdown/blob/main/changelog.md",Rm=[],Mm={allowDangerousHtml:!0},Nw=/^(https?|ircs?|mailto|xmpp)$/i,Ow=[{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 Lw(e){const t=e.allowedElements,n=e.allowElement,r=e.children||"",a=e.className,o=e.components,s=e.disallowedElements,i=e.rehypePlugins||Rm,l=e.remarkPlugins||Rm,u=e.remarkRehypeOptions?{...e.remarkRehypeOptions,...Mm}:Mm,c=e.skipHtml,d=e.unwrapDisallowed,m=e.urlTransform||Fw,f=Aw().use(yS).use(l).use(dw,u).use(i),h=new xb;typeof r=="string"&&(h.value=r);for(const C of Ow)Object.hasOwn(e,C.from)&&(""+C.from+(C.to?"use `"+C.to+"` instead":"remove it")+Mw+C.id,void 0);const b=f.parse(h);let g=f.runSync(b,h);return a&&(g={type:"element",tagName:"div",properties:{className:a},children:g.type==="root"?g.children:[g]}),vn(g,x),tT(g,{Fragment:p.Fragment,components:o,ignoreInvalidStyle:!0,jsx:p.jsx,jsxs:p.jsxs,passKeys:!0,passNode:!0});function x(C,E,k){if(C.type==="raw"&&k&&typeof E=="number")return c?k.children.splice(E,1):k.children[E]={type:"text",value:C.value},E;if(C.type==="element"){let T;for(T in ec)if(Object.hasOwn(ec,T)&&Object.hasOwn(C.properties,T)){const S=C.properties[T],O=ec[T];(O===null||O.includes(C.tagName))&&(C.properties[T]=m(String(S||""),T,C))}}if(C.type==="element"){let T=t?!t.includes(C.tagName):s?s.includes(C.tagName):!1;if(!T&&n&&typeof E=="number"&&(T=!n(C,E,k)),T&&k&&typeof E=="number")return d&&C.children?k.children.splice(E,1,...C.children):k.children.splice(E,1),E}}}function Fw(e){const t=e.indexOf(":"),n=e.indexOf("?"),r=e.indexOf("#"),a=e.indexOf("/");return t===-1||a!==-1&&t>a||n!==-1&&t>n||r!==-1&&t>r||Nw.test(e.slice(0,t))?e:""}function kl(e,t){const n=String(e);if(typeof t!="string")throw new TypeError("Expected character");let r=0,a=n.indexOf(t);for(;a!==-1;)r++,a=n.indexOf(t,a+t.length);return r}function $w(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function Bw(e,t,n){const a=mu((n||{}).ignore||[]),o=jw(t);let s=-1;for(;++s<o.length;)yb(e,"text",i);function i(u,c){let d=-1,m;for(;++d<c.length;){const f=c[d],h=m?m.children:void 0;if(a(f,h?h.indexOf(f):void 0,m))return;m=f}if(m)return l(u,c)}function l(u,c){const d=c[c.length-1],m=o[s][0],f=o[s][1];let h=0;const g=d.children.indexOf(u);let x=!1,C=[];m.lastIndex=0;let E=m.exec(u.value);for(;E;){const k=E.index,T={index:E.index,input:E.input,stack:[...c,u]};let S=f(...E,T);if(typeof S=="string"&&(S=S.length>0?{type:"text",value:S}:void 0),S===!1?m.lastIndex=k+1:(h!==k&&C.push({type:"text",value:u.value.slice(h,k)}),Array.isArray(S)?C.push(...S):S&&C.push(S),h=k+E[0].length,x=!0),!m.global)break;E=m.exec(u.value)}return x?(h<u.value.length&&C.push({type:"text",value:u.value.slice(h)}),d.children.splice(g,1,...C)):C=[u],g+C.length}}function jw(e){const t=[];if(!Array.isArray(e))throw new TypeError("Expected find and replace tuple or list of tuples");const n=!e[0]||Array.isArray(e[0])?e:[e];let r=-1;for(;++r<n.length;){const a=n[r];t.push([Hw(a[0]),Uw(a[1])])}return t}function Hw(e){return typeof e=="string"?new RegExp($w(e),"g"):e}function Uw(e){return typeof e=="function"?e:function(){return e}}const dc="phrasing",pc=["autolink","link","image","label"];function zw(){return{transforms:[Qw],enter:{literalAutolink:Ww,literalAutolinkEmail:fc,literalAutolinkHttp:fc,literalAutolinkWww:fc},exit:{literalAutolink:Kw,literalAutolinkEmail:Gw,literalAutolinkHttp:qw,literalAutolinkWww:Yw}}}function Vw(){return{unsafe:[{character:"@",before:"[+\\-.\\w]",after:"[\\-.\\w]",inConstruct:dc,notInConstruct:pc},{character:".",before:"[Ww]",after:"[\\-.\\w]",inConstruct:dc,notInConstruct:pc},{character:":",before:"[ps]",after:"\\/",inConstruct:dc,notInConstruct:pc}]}}function Ww(e){this.enter({type:"link",title:null,url:"",children:[]},e)}function fc(e){this.config.enter.autolinkProtocol.call(this,e)}function qw(e){this.config.exit.autolinkProtocol.call(this,e)}function Yw(e){this.config.exit.data.call(this,e);const t=this.stack[this.stack.length-1];t.type,t.url="http://"+this.sliceSerialize(e)}function Gw(e){this.config.exit.autolinkEmail.call(this,e)}function Kw(e){this.exit(e)}function Qw(e){Bw(e,[[/(https?:\/\/|www(?=\.))([-.\w]+)([^ \t\r\n]*)/gi,Xw],[/(?<=^|\s|\p{P}|\p{S})([-.\w+]+)@([-\w]+(?:\.[-\w]+)+)/gu,Zw]],{ignore:["link","linkReference"]})}function Xw(e,t,n,r,a){let o="";if(!Cb(a)||(/^w/i.test(t)&&(n=t+n,t="",o="http://"),!Jw(n)))return!1;const s=e_(n+r);if(!s[0])return!1;const i={type:"link",title:null,url:o+t+s[0],children:[{type:"text",value:t+s[0]}]};return s[1]?[i,{type:"text",value:s[1]}]:i}function Zw(e,t,n,r){return!Cb(r,!0)||/[-\d_]$/.test(n)?!1:{type:"link",title:null,url:"mailto:"+t+"@"+n,children:[{type:"text",value:t+"@"+n}]}}function Jw(e){const t=e.split(".");return!(t.length<2||t[t.length-1]&&(/_/.test(t[t.length-1])||!/[a-zA-Z\d]/.test(t[t.length-1]))||t[t.length-2]&&(/_/.test(t[t.length-2])||!/[a-zA-Z\d]/.test(t[t.length-2])))}function e_(e){const t=/[!"&'),.:;<>?\]}]+$/.exec(e);if(!t)return[e,void 0];e=e.slice(0,t.index);let n=t[0],r=n.indexOf(")");const a=kl(e,"(");let o=kl(e,")");for(;r!==-1&&a>o;)e+=n.slice(0,r+1),n=n.slice(r+1),r=n.indexOf(")"),o++;return[e,n]}function Cb(e,t){const n=e.input.charCodeAt(e.index-1);return(e.index===0||Ra(n)||du(n))&&(!t||n!==47)}Eb.peek=u_;function t_(){this.buffer()}function n_(e){this.enter({type:"footnoteReference",identifier:"",label:""},e)}function r_(){this.buffer()}function a_(e){this.enter({type:"footnoteDefinition",identifier:"",label:"",children:[]},e)}function o_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function s_(e){this.exit(e)}function i_(e){const t=this.resume(),n=this.stack[this.stack.length-1];n.type,n.identifier=rr(this.sliceSerialize(e)).toLowerCase(),n.label=t}function l_(e){this.exit(e)}function u_(){return"["}function Eb(e,t,n,r){const a=n.createTracker(r);let o=a.move("[^");const s=n.enter("footnoteReference"),i=n.enter("reference");return o+=a.move(n.safe(n.associationId(e),{after:"]",before:o})),i(),s(),o+=a.move("]"),o}function c_(){return{enter:{gfmFootnoteCallString:t_,gfmFootnoteCall:n_,gfmFootnoteDefinitionLabelString:r_,gfmFootnoteDefinition:a_},exit:{gfmFootnoteCallString:o_,gfmFootnoteCall:s_,gfmFootnoteDefinitionLabelString:i_,gfmFootnoteDefinition:l_}}}function d_(e){let t=!1;return e&&e.firstLineBlank&&(t=!0),{handlers:{footnoteDefinition:n,footnoteReference:Eb},unsafe:[{character:"[",inConstruct:["label","phrasing","reference"]}]};function n(r,a,o,s){const i=o.createTracker(s);let l=i.move("[^");const u=o.enter("footnoteDefinition"),c=o.enter("label");return l+=i.move(o.safe(o.associationId(r),{before:l,after:"]"})),c(),l+=i.move("]:"),r.children&&r.children.length>0&&(i.shift(4),l+=i.move((t?`
35
- `:" ")+o.indentLines(o.containerFlow(r,i.current()),t?vb:p_))),u(),l}}function p_(e,t,n){return t===0?e:vb(e,t,n)}function vb(e,t,n){return(n?"":" ")+e}const f_=["autolink","destinationLiteral","destinationRaw","reference","titleQuote","titleApostrophe"];Tb.peek=y_;function m_(){return{canContainEols:["delete"],enter:{strikethrough:g_},exit:{strikethrough:b_}}}function h_(){return{unsafe:[{character:"~",inConstruct:"phrasing",notInConstruct:f_}],handlers:{delete:Tb}}}function g_(e){this.enter({type:"delete",children:[]},e)}function b_(e){this.exit(e)}function Tb(e,t,n,r){const a=n.createTracker(r),o=n.enter("strikethrough");let s=a.move("~~");return s+=n.containerPhrasing(e,{...a.current(),before:s,after:"~"}),s+=a.move("~~"),o(),s}function y_(){return"~"}function x_(e){return e.length}function C_(e,t){const n=t||{},r=(n.align||[]).concat(),a=n.stringLength||x_,o=[],s=[],i=[],l=[];let u=0,c=-1;for(;++c<e.length;){const b=[],g=[];let x=-1;for(e[c].length>u&&(u=e[c].length);++x<e[c].length;){const C=E_(e[c][x]);if(n.alignDelimiters!==!1){const E=a(C);g[x]=E,(l[x]===void 0||E>l[x])&&(l[x]=E)}b.push(C)}s[c]=b,i[c]=g}let d=-1;if(typeof r=="object"&&"length"in r)for(;++d<u;)o[d]=Nm(r[d]);else{const b=Nm(r);for(;++d<u;)o[d]=b}d=-1;const m=[],f=[];for(;++d<u;){const b=o[d];let g="",x="";b===99?(g=":",x=":"):b===108?g=":":b===114&&(x=":");let C=n.alignDelimiters===!1?1:Math.max(1,l[d]-g.length-x.length);const E=g+"-".repeat(C)+x;n.alignDelimiters!==!1&&(C=g.length+C+x.length,C>l[d]&&(l[d]=C),f[d]=C),m[d]=E}s.splice(1,0,m),i.splice(1,0,f),c=-1;const h=[];for(;++c<s.length;){const b=s[c],g=i[c];d=-1;const x=[];for(;++d<u;){const C=b[d]||"";let E="",k="";if(n.alignDelimiters!==!1){const T=l[d]-(g[d]||0),S=o[d];S===114?E=" ".repeat(T):S===99?T%2?(E=" ".repeat(T/2+.5),k=" ".repeat(T/2-.5)):(E=" ".repeat(T/2),k=E):k=" ".repeat(T)}n.delimiterStart!==!1&&!d&&x.push("|"),n.padding!==!1&&!(n.alignDelimiters===!1&&C==="")&&(n.delimiterStart!==!1||d)&&x.push(" "),n.alignDelimiters!==!1&&x.push(E),x.push(C),n.alignDelimiters!==!1&&x.push(k),n.padding!==!1&&x.push(" "),(n.delimiterEnd!==!1||d!==u-1)&&x.push("|")}h.push(n.delimiterEnd===!1?x.join("").replace(/ +$/,""):x.join(""))}return h.join(`
36
- `)}function E_(e){return e==null?"":String(e)}function Nm(e){const t=typeof e=="string"?e.codePointAt(0):0;return t===67||t===99?99:t===76||t===108?108:t===82||t===114?114:0}const Om={}.hasOwnProperty;function gu(e,t){const n=t||{};function r(a,...o){let s=r.invalid;const i=r.handlers;if(a&&Om.call(a,e)){const l=String(a[e]);s=Om.call(i,l)?i[l]:r.unknown}if(s)return s.call(this,a,...o)}return r.handlers=n.handlers||{},r.invalid=n.invalid,r.unknown=n.unknown,r}function v_(e,t,n,r){const a=n.enter("blockquote"),o=n.createTracker(r);o.move("> "),o.shift(2);const s=n.indentLines(n.containerFlow(e,o.current()),T_);return a(),s}function T_(e,t,n){return">"+(n?"":" ")+e}function k_(e,t){return Lm(e,t.inConstruct,!0)&&!Lm(e,t.notInConstruct,!1)}function Lm(e,t,n){if(typeof t=="string"&&(t=[t]),!t||t.length===0)return n;let r=-1;for(;++r<t.length;)if(e.includes(t[r]))return!0;return!1}function Fm(e,t,n,r){let a=-1;for(;++a<n.unsafe.length;)if(n.unsafe[a].character===`
37
- `&&k_(n.stack,n.unsafe[a]))return/[ \t]/.test(r.before)?"":" ";return`\\
38
- `}function S_(e,t){const n=String(e);let r=n.indexOf(t),a=r,o=0,s=0;if(typeof t!="string")throw new TypeError("Expected substring");for(;r!==-1;)r===a?++o>s&&(s=o):o=1,a=r+t.length,r=n.indexOf(t,a);return s}function w_(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 __(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 I_(e,t,n,r){const a=__(n),o=e.value||"",s=a==="`"?"GraveAccent":"Tilde";if(w_(e,n)){const d=n.enter("codeIndented"),m=n.indentLines(o,A_);return d(),m}const i=n.createTracker(r),l=a.repeat(Math.max(S_(o,a)+1,3)),u=n.enter("codeFenced");let c=i.move(l);if(e.lang){const d=n.enter(`codeFencedLang${s}`);c+=i.move(n.safe(e.lang,{before:c,after:" ",encode:["`"],...i.current()})),d()}if(e.lang&&e.meta){const d=n.enter(`codeFencedMeta${s}`);c+=i.move(" "),c+=i.move(n.safe(e.meta,{before:c,after:`
39
- `,encode:["`"],...i.current()})),d()}return c+=i.move(`
40
- `),o&&(c+=i.move(o+`
41
- `)),c+=i.move(l),u(),c}function A_(e,t,n){return(n?"":" ")+e}function cp(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 D_(e,t,n,r){const a=cp(n),o=a==='"'?"Quote":"Apostrophe",s=n.enter("definition");let i=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("]: "),i(),!e.url||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(i=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":`
42
- `,...l.current()}))),i(),e.title&&(i=n.enter(`title${o}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),i()),s(),u}function P_(e){const t=e.options.emphasis||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize emphasis with `"+t+"` for `options.emphasis`, expected `*`, or `_`");return t}function zs(e){return"&#x"+e.toString(16).toUpperCase()+";"}function Sl(e,t,n){const r=Co(e),a=Co(t);return r===void 0?a===void 0?n==="_"?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!0}:r===1?a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!0}:{inside:!1,outside:!1}:a===void 0?{inside:!1,outside:!1}:a===1?{inside:!0,outside:!1}:{inside:!1,outside:!1}}kb.peek=R_;function kb(e,t,n,r){const a=P_(n),o=n.enter("emphasis"),s=n.createTracker(r),i=s.move(a);let l=s.move(n.containerPhrasing(e,{after:a,before:i,...s.current()}));const u=l.charCodeAt(0),c=Sl(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=zs(u)+l.slice(1));const d=l.charCodeAt(l.length-1),m=Sl(r.after.charCodeAt(0),d,a);m.inside&&(l=l.slice(0,-1)+zs(d));const f=s.move(a);return o(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},i+l+f}function R_(e,t,n){return n.options.emphasis||"*"}function M_(e,t){let n=!1;return vn(e,function(r){if("value"in r&&/\r?\n|\r/.test(r.value)||r.type==="break")return n=!0,Tl}),!!((!e.depth||e.depth<3)&&np(e)&&(t.options.setext||n))}function N_(e,t,n,r){const a=Math.max(Math.min(6,e.depth||1),1),o=n.createTracker(r);if(M_(e,n)){const c=n.enter("headingSetext"),d=n.enter("phrasing"),m=n.containerPhrasing(e,{...o.current(),before:`
43
- `,after:`
44
- `});return d(),c(),m+`
45
- `+(a===1?"=":"-").repeat(m.length-(Math.max(m.lastIndexOf("\r"),m.lastIndexOf(`
46
- `))+1))}const s="#".repeat(a),i=n.enter("headingAtx"),l=n.enter("phrasing");o.move(s+" ");let u=n.containerPhrasing(e,{before:"# ",after:`
47
- `,...o.current()});return/^[\t ]/.test(u)&&(u=zs(u.charCodeAt(0))+u.slice(1)),u=u?s+" "+u:s,n.options.closeAtx&&(u+=" "+s),l(),i(),u}Sb.peek=O_;function Sb(e){return e.value||""}function O_(){return"<"}wb.peek=L_;function wb(e,t,n,r){const a=cp(n),o=a==='"'?"Quote":"Apostrophe",s=n.enter("image");let i=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("]("),i(),!e.url&&e.title||/[\0- \u007F]/.test(e.url)?(i=n.enter("destinationLiteral"),u+=l.move("<"),u+=l.move(n.safe(e.url,{before:u,after:">",...l.current()})),u+=l.move(">")):(i=n.enter("destinationRaw"),u+=l.move(n.safe(e.url,{before:u,after:e.title?" ":")",...l.current()}))),i(),e.title&&(i=n.enter(`title${o}`),u+=l.move(" "+a),u+=l.move(n.safe(e.title,{before:u,after:a,...l.current()})),u+=l.move(a),i()),u+=l.move(")"),s(),u}function L_(){return"!"}_b.peek=F_;function _b(e,t,n,r){const a=e.referenceType,o=n.enter("imageReference");let s=n.enter("label");const i=n.createTracker(r);let l=i.move("![");const u=n.safe(e.alt,{before:l,after:"]",...i.current()});l+=i.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...i.current()});return s(),n.stack=c,o(),a==="full"||!u||u!==d?l+=i.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=i.move("]"),l}function F_(){return"!"}Ib.peek=$_;function Ib(e,t,n){let r=e.value||"",a="`",o=-1;for(;new RegExp("(^|[^`])"+a+"([^`]|$)").test(r);)a+="`";for(/[^ \r\n]/.test(r)&&(/^[ \r\n]/.test(r)&&/[ \r\n]$/.test(r)||/^`|`$/.test(r))&&(r=" "+r+" ");++o<n.unsafe.length;){const s=n.unsafe[o],i=n.compilePattern(s);let l;if(s.atBreak)for(;l=i.exec(r);){let u=l.index;r.charCodeAt(u)===10&&r.charCodeAt(u-1)===13&&u--,r=r.slice(0,u)+" "+r.slice(l.index+1)}}return a+r+a}function $_(){return"`"}function Ab(e,t){const n=np(e);return!!(!t.options.resourceLink&&e.url&&!e.title&&e.children&&e.children.length===1&&e.children[0].type==="text"&&(n===e.url||"mailto:"+n===e.url)&&/^[a-z][a-z+.-]+:/i.test(e.url)&&!/[\0- <>\u007F]/.test(e.url))}Db.peek=B_;function Db(e,t,n,r){const a=cp(n),o=a==='"'?"Quote":"Apostrophe",s=n.createTracker(r);let i,l;if(Ab(e,n)){const c=n.stack;n.stack=[],i=n.enter("autolink");let d=s.move("<");return d+=s.move(n.containerPhrasing(e,{before:d,after:">",...s.current()})),d+=s.move(">"),i(),n.stack=c,d}i=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${o}`),u+=s.move(" "+a),u+=s.move(n.safe(e.title,{before:u,after:a,...s.current()})),u+=s.move(a),l()),u+=s.move(")"),i(),u}function B_(e,t,n){return Ab(e,n)?"<":"["}Pb.peek=j_;function Pb(e,t,n,r){const a=e.referenceType,o=n.enter("linkReference");let s=n.enter("label");const i=n.createTracker(r);let l=i.move("[");const u=n.containerPhrasing(e,{before:l,after:"]",...i.current()});l+=i.move(u+"]["),s();const c=n.stack;n.stack=[],s=n.enter("reference");const d=n.safe(n.associationId(e),{before:l,after:"]",...i.current()});return s(),n.stack=c,o(),a==="full"||!u||u!==d?l+=i.move(d+"]"):a==="shortcut"?l=l.slice(0,-1):l+=i.move("]"),l}function j_(){return"["}function dp(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 H_(e){const t=dp(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 U_(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 Rb(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 z_(e,t,n,r){const a=n.enter("list"),o=n.bulletCurrent;let s=e.ordered?U_(n):dp(n);const i=e.ordered?s==="."?")":".":H_(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),Rb(n)===s&&c){let d=-1;for(;++d<e.children.length;){const m=e.children[d];if(m&&m.type==="listItem"&&m.children&&m.children[0]&&m.children[0].type==="thematicBreak"){l=!0;break}}}}l&&(s=i),n.bulletCurrent=s;const u=n.containerFlow(e,r);return n.bulletLastUsed=s,n.bulletCurrent=o,a(),u}function V_(e){const t=e.options.listItemIndent||"one";if(t!=="tab"&&t!=="one"&&t!=="mixed")throw new Error("Cannot serialize items with `"+t+"` for `options.listItemIndent`, expected `tab`, `one`, or `mixed`");return t}function W_(e,t,n,r){const a=V_(n);let o=n.bulletCurrent||dp(n);t&&t.type==="list"&&t.ordered&&(o=(typeof t.start=="number"&&t.start>-1?t.start:1)+(n.options.incrementListMarker===!1?0:t.children.indexOf(e))+o);let s=o.length+1;(a==="tab"||a==="mixed"&&(t&&t.type==="list"&&t.spread||e.spread))&&(s=Math.ceil(s/4)*4);const i=n.createTracker(r);i.move(o+" ".repeat(s-o.length)),i.shift(s);const l=n.enter("listItem"),u=n.indentLines(n.containerFlow(e,i.current()),c);return l(),u;function c(d,m,f){return m?(f?"":" ".repeat(s))+d:(f?o:o+" ".repeat(s-o.length))+d}}function q_(e,t,n,r){const a=n.enter("paragraph"),o=n.enter("phrasing"),s=n.containerPhrasing(e,r);return o(),a(),s}const Y_=mu(["break","delete","emphasis","footnote","footnoteReference","image","imageReference","inlineCode","inlineMath","link","linkReference","mdxJsxTextElement","mdxTextExpression","strong","text","textDirective"]);function G_(e,t,n,r){return(e.children.some(function(s){return Y_(s)})?n.containerPhrasing:n.containerFlow).call(n,e,r)}function K_(e){const t=e.options.strong||"*";if(t!=="*"&&t!=="_")throw new Error("Cannot serialize strong with `"+t+"` for `options.strong`, expected `*`, or `_`");return t}Mb.peek=Q_;function Mb(e,t,n,r){const a=K_(n),o=n.enter("strong"),s=n.createTracker(r),i=s.move(a+a);let l=s.move(n.containerPhrasing(e,{after:a,before:i,...s.current()}));const u=l.charCodeAt(0),c=Sl(r.before.charCodeAt(r.before.length-1),u,a);c.inside&&(l=zs(u)+l.slice(1));const d=l.charCodeAt(l.length-1),m=Sl(r.after.charCodeAt(0),d,a);m.inside&&(l=l.slice(0,-1)+zs(d));const f=s.move(a+a);return o(),n.attentionEncodeSurroundingInfo={after:m.outside,before:c.outside},i+l+f}function Q_(e,t,n){return n.options.strong||"*"}function X_(e,t,n,r){return n.safe(e.value,r)}function Z_(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 J_(e,t,n){const r=(Rb(n)+(n.options.ruleSpaces?" ":"")).repeat(Z_(n));return n.options.ruleSpaces?r.slice(0,-1):r}const Nb={blockquote:v_,break:Fm,code:I_,definition:D_,emphasis:kb,hardBreak:Fm,heading:N_,html:Sb,image:wb,imageReference:_b,inlineCode:Ib,link:Db,linkReference:Pb,list:z_,listItem:W_,paragraph:q_,root:G_,strong:Mb,text:X_,thematicBreak:J_};function e3(){return{enter:{table:t3,tableData:$m,tableHeader:$m,tableRow:r3},exit:{codeText:a3,table:n3,tableData:mc,tableHeader:mc,tableRow:mc}}}function t3(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 n3(e){this.exit(e),this.data.inTable=void 0}function r3(e){this.enter({type:"tableRow",children:[]},e)}function mc(e){this.exit(e)}function $m(e){this.enter({type:"tableCell",children:[]},e)}function a3(e){let t=this.resume();this.data.inTable&&(t=t.replace(/\\([\\|])/g,o3));const n=this.stack[this.stack.length-1];n.type,n.value=t,this.exit(e)}function o3(e,t){return t==="|"?t:e}function s3(e){const t=e||{},n=t.tableCellPadding,r=t.tablePipeAlign,a=t.stringLength,o=n?" ":"|";return{unsafe:[{character:"\r",inConstruct:"tableCell"},{character:`
48
- `,inConstruct:"tableCell"},{atBreak:!0,character:"|",after:"[ :-]"},{character:"|",inConstruct:"tableCell"},{atBreak:!0,character:":",after:"-"},{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{inlineCode:m,table:s,tableCell:l,tableRow:i}};function s(f,h,b,g){return u(c(f,b,g),f.align)}function i(f,h,b,g){const x=d(f,b,g),C=u([x]);return C.slice(0,C.indexOf(`
49
- `))}function l(f,h,b,g){const x=b.enter("tableCell"),C=b.enter("phrasing"),E=b.containerPhrasing(f,{...g,before:o,after:o});return C(),x(),E}function u(f,h){return C_(f,{align:h,alignDelimiters:r,padding:n,stringLength:a})}function c(f,h,b){const g=f.children;let x=-1;const C=[],E=h.enter("table");for(;++x<g.length;)C[x]=d(g[x],h,b);return E(),C}function d(f,h,b){const g=f.children;let x=-1;const C=[],E=h.enter("tableRow");for(;++x<g.length;)C[x]=l(g[x],f,h,b);return E(),C}function m(f,h,b){let g=Nb.inlineCode(f,h,b);return b.stack.includes("tableCell")&&(g=g.replace(/\|/g,"\\$&")),g}}function i3(){return{exit:{taskListCheckValueChecked:Bm,taskListCheckValueUnchecked:Bm,paragraph:u3}}}function l3(){return{unsafe:[{atBreak:!0,character:"-",after:"[:|-]"}],handlers:{listItem:c3}}}function Bm(e){const t=this.stack[this.stack.length-2];t.type,t.checked=e.type==="taskListCheckValueChecked"}function u3(e){const t=this.stack[this.stack.length-2];if(t&&t.type==="listItem"&&typeof t.checked=="boolean"){const n=this.stack[this.stack.length-1];n.type;const r=n.children[0];if(r&&r.type==="text"){const a=t.children;let o=-1,s;for(;++o<a.length;){const i=a[o];if(i.type==="paragraph"){s=i;break}}s===n&&(r.value=r.value.slice(1),r.value.length===0?n.children.shift():n.position&&r.position&&typeof r.position.start.offset=="number"&&(r.position.start.column++,r.position.start.offset++,n.position.start=Object.assign({},r.position.start)))}}this.exit(e)}function c3(e,t,n,r){const a=e.children[0],o=typeof e.checked=="boolean"&&a&&a.type==="paragraph",s="["+(e.checked?"x":" ")+"] ",i=n.createTracker(r);o&&i.move(s);let l=Nb.listItem(e,t,n,{...r,...i.current()});return o&&(l=l.replace(/^(?:[*+-]|\d+\.)([\r\n]| {1,3})/,u)),l;function u(c){return c+s}}function d3(){return[zw(),c_(),m_(),e3(),i3()]}function p3(e){return{extensions:[Vw(),d_(e),h_(),s3(e),l3()]}}const f3={tokenize:x3,partial:!0},Ob={tokenize:C3,partial:!0},Lb={tokenize:E3,partial:!0},Fb={tokenize:v3,partial:!0},m3={tokenize:T3,partial:!0},$b={name:"wwwAutolink",tokenize:b3,previous:jb},Bb={name:"protocolAutolink",tokenize:y3,previous:Hb},zr={name:"emailAutolink",tokenize:g3,previous:Ub},vr={};function h3(){return{text:vr}}let pa=48;for(;pa<123;)vr[pa]=zr,pa++,pa===58?pa=65:pa===91&&(pa=97);vr[43]=zr;vr[45]=zr;vr[46]=zr;vr[95]=zr;vr[72]=[zr,Bb];vr[104]=[zr,Bb];vr[87]=[zr,$b];vr[119]=[zr,$b];function g3(e,t,n){const r=this;let a,o;return s;function s(d){return!id(d)||!Ub.call(r,r.previous)||pp(r.events)?n(d):(e.enter("literalAutolink"),e.enter("literalAutolinkEmail"),i(d))}function i(d){return id(d)?(e.consume(d),i):d===64?(e.consume(d),l):n(d)}function l(d){return d===46?e.check(m3,c,u)(d):d===45||d===95||sn(d)?(o=!0,e.consume(d),l):c(d)}function u(d){return e.consume(d),a=!0,l}function c(d){return o&&a&&fn(r.previous)?(e.exit("literalAutolinkEmail"),e.exit("literalAutolink"),t(d)):n(d)}}function b3(e,t,n){const r=this;return a;function a(s){return s!==87&&s!==119||!jb.call(r,r.previous)||pp(r.events)?n(s):(e.enter("literalAutolink"),e.enter("literalAutolinkWww"),e.check(f3,e.attempt(Ob,e.attempt(Lb,o),n),n)(s))}function o(s){return e.exit("literalAutolinkWww"),e.exit("literalAutolink"),t(s)}}function y3(e,t,n){const r=this;let a="",o=!1;return s;function s(d){return(d===72||d===104)&&Hb.call(r,r.previous)&&!pp(r.events)?(e.enter("literalAutolink"),e.enter("literalAutolinkHttp"),a+=String.fromCodePoint(d),e.consume(d),i):n(d)}function i(d){if(fn(d)&&a.length<5)return a+=String.fromCodePoint(d),e.consume(d),i;if(d===58){const m=a.toLowerCase();if(m==="http"||m==="https")return e.consume(d),l}return n(d)}function l(d){return d===47?(e.consume(d),o?u:(o=!0,l)):n(d)}function u(d){return d===null||El(d)||Et(d)||Ra(d)||du(d)?n(d):e.attempt(Ob,e.attempt(Lb,c),n)(d)}function c(d){return e.exit("literalAutolinkHttp"),e.exit("literalAutolink"),t(d)}}function x3(e,t,n){let r=0;return a;function a(s){return(s===87||s===119)&&r<3?(r++,e.consume(s),a):s===46&&r===3?(e.consume(s),o):n(s)}function o(s){return s===null?n(s):t(s)}}function C3(e,t,n){let r,a,o;return s;function s(u){return u===46||u===95?e.check(Fb,l,i)(u):u===null||Et(u)||Ra(u)||u!==45&&du(u)?l(u):(o=!0,e.consume(u),s)}function i(u){return u===95?r=!0:(a=r,r=void 0),e.consume(u),s}function l(u){return a||r||!o?n(u):t(u)}}function E3(e,t){let n=0,r=0;return a;function a(s){return s===40?(n++,e.consume(s),a):s===41&&r<n?o(s):s===33||s===34||s===38||s===39||s===41||s===42||s===44||s===46||s===58||s===59||s===60||s===63||s===93||s===95||s===126?e.check(Fb,t,o)(s):s===null||Et(s)||Ra(s)?t(s):(e.consume(s),a)}function o(s){return s===41&&r++,e.consume(s),a}}function v3(e,t,n){return r;function r(i){return i===33||i===34||i===39||i===41||i===42||i===44||i===46||i===58||i===59||i===63||i===95||i===126?(e.consume(i),r):i===38?(e.consume(i),o):i===93?(e.consume(i),a):i===60||i===null||Et(i)||Ra(i)?t(i):n(i)}function a(i){return i===null||i===40||i===91||Et(i)||Ra(i)?t(i):r(i)}function o(i){return fn(i)?s(i):n(i)}function s(i){return i===59?(e.consume(i),r):fn(i)?(e.consume(i),s):n(i)}}function T3(e,t,n){return r;function r(o){return e.consume(o),a}function a(o){return sn(o)?n(o):t(o)}}function jb(e){return e===null||e===40||e===42||e===95||e===91||e===93||e===126||Et(e)}function Hb(e){return!fn(e)}function Ub(e){return!(e===47||id(e))}function id(e){return e===43||e===45||e===46||e===95||sn(e)}function pp(e){let t=e.length,n=!1;for(;t--;){const r=e[t][1];if((r.type==="labelLink"||r.type==="labelImage")&&!r._balanced){n=!0;break}if(r._gfmAutolinkLiteralWalkedInto){n=!1;break}}return e.length>0&&!n&&(e[e.length-1][1]._gfmAutolinkLiteralWalkedInto=!0),n}const k3={tokenize:R3,partial:!0};function S3(){return{document:{91:{name:"gfmFootnoteDefinition",tokenize:A3,continuation:{tokenize:D3},exit:P3}},text:{91:{name:"gfmFootnoteCall",tokenize:I3},93:{name:"gfmPotentialFootnoteCall",add:"after",tokenize:w3,resolveTo:_3}}}}function w3(e,t,n){const r=this;let a=r.events.length;const o=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let s;for(;a--;){const l=r.events[a][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 i;function i(l){if(!s||!s._balanced)return n(l);const u=rr(r.sliceSerialize({start:s.end,end:r.now()}));return u.codePointAt(0)!==94||!o.includes(u.slice(1))?n(l):(e.enter("gfmFootnoteCallLabelMarker"),e.consume(l),e.exit("gfmFootnoteCallLabelMarker"),t(l))}}function _3(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)},a={type:"gfmFootnoteCallMarker",start:Object.assign({},e[n+3][1].end),end:Object.assign({},e[n+3][1].end)};a.end.column++,a.end.offset++,a.end._bufferIndex++;const o={type:"gfmFootnoteCallString",start:Object.assign({},a.end),end:Object.assign({},e[e.length-1][1].start)},s={type:"chunkString",contentType:"string",start:Object.assign({},o.start),end:Object.assign({},o.end)},i=[e[n+1],e[n+2],["enter",r,t],e[n+3],e[n+4],["enter",a,t],["exit",a,t],["enter",o,t],["enter",s,t],["exit",s,t],["exit",o,t],e[e.length-2],e[e.length-1],["exit",r,t]];return e.splice(n,e.length-n+1,...i),e}function I3(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o=0,s;return i;function i(d){return e.enter("gfmFootnoteCall"),e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),l}function l(d){return d!==94?n(d):(e.enter("gfmFootnoteCallMarker"),e.consume(d),e.exit("gfmFootnoteCallMarker"),e.enter("gfmFootnoteCallString"),e.enter("chunkString").contentType="string",u)}function u(d){if(o>999||d===93&&!s||d===null||d===91||Et(d))return n(d);if(d===93){e.exit("chunkString");const m=e.exit("gfmFootnoteCallString");return a.includes(rr(r.sliceSerialize(m)))?(e.enter("gfmFootnoteCallLabelMarker"),e.consume(d),e.exit("gfmFootnoteCallLabelMarker"),e.exit("gfmFootnoteCall"),t):n(d)}return Et(d)||(s=!0),o++,e.consume(d),d===92?c:u}function c(d){return d===91||d===92||d===93?(e.consume(d),o++,u):u(d)}}function A3(e,t,n){const r=this,a=r.parser.gfmFootnotes||(r.parser.gfmFootnotes=[]);let o,s=0,i;return l;function l(h){return e.enter("gfmFootnoteDefinition")._container=!0,e.enter("gfmFootnoteDefinitionLabel"),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),u}function u(h){return h===94?(e.enter("gfmFootnoteDefinitionMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionMarker"),e.enter("gfmFootnoteDefinitionLabelString"),e.enter("chunkString").contentType="string",c):n(h)}function c(h){if(s>999||h===93&&!i||h===null||h===91||Et(h))return n(h);if(h===93){e.exit("chunkString");const b=e.exit("gfmFootnoteDefinitionLabelString");return o=rr(r.sliceSerialize(b)),e.enter("gfmFootnoteDefinitionLabelMarker"),e.consume(h),e.exit("gfmFootnoteDefinitionLabelMarker"),e.exit("gfmFootnoteDefinitionLabel"),m}return Et(h)||(i=!0),s++,e.consume(h),h===92?d:c}function d(h){return h===91||h===92||h===93?(e.consume(h),s++,c):c(h)}function m(h){return h===58?(e.enter("definitionMarker"),e.consume(h),e.exit("definitionMarker"),a.includes(o)||a.push(o),ut(e,f,"gfmFootnoteDefinitionWhitespace")):n(h)}function f(h){return t(h)}}function D3(e,t,n){return e.check(ci,t,e.attempt(k3,t,n))}function P3(e){e.exit("gfmFootnoteDefinition")}function R3(e,t,n){const r=this;return ut(e,a,"gfmFootnoteDefinitionIndent",5);function a(o){const s=r.events[r.events.length-1];return s&&s[1].type==="gfmFootnoteDefinitionIndent"&&s[2].sliceSerialize(s[1],!0).length===4?t(o):n(o)}}function M3(e){let n=(e||{}).singleTilde;const r={name:"strikethrough",tokenize:o,resolveAll:a};return n==null&&(n=!0),{text:{126:r},insideSpan:{null:[r]},attentionMarkers:{null:[126]}};function a(s,i){let l=-1;for(;++l<s.length;)if(s[l][0]==="enter"&&s[l][1].type==="strikethroughSequenceTemporary"&&s[l][1]._close){let u=l;for(;u--;)if(s[u][0]==="exit"&&s[u][1].type==="strikethroughSequenceTemporary"&&s[u][1]._open&&s[l][1].end.offset-s[l][1].start.offset===s[u][1].end.offset-s[u][1].start.offset){s[l][1].type="strikethroughSequence",s[u][1].type="strikethroughSequence";const c={type:"strikethrough",start:Object.assign({},s[u][1].start),end:Object.assign({},s[l][1].end)},d={type:"strikethroughText",start:Object.assign({},s[u][1].end),end:Object.assign({},s[l][1].start)},m=[["enter",c,i],["enter",s[u][1],i],["exit",s[u][1],i],["enter",d,i]],f=i.parser.constructs.insideSpan.null;f&&Dn(m,m.length,0,pu(f,s.slice(u+1,l),i)),Dn(m,m.length,0,[["exit",d,i],["enter",s[l][1],i],["exit",s[l][1],i],["exit",c,i]]),Dn(s,u-1,l-u+3,m),l=u+m.length-2;break}}for(l=-1;++l<s.length;)s[l][1].type==="strikethroughSequenceTemporary"&&(s[l][1].type="data");return s}function o(s,i,l){const u=this.previous,c=this.events;let d=0;return m;function m(h){return u===126&&c[c.length-1][1].type!=="characterEscape"?l(h):(s.enter("strikethroughSequenceTemporary"),f(h))}function f(h){const b=Co(u);if(h===126)return d>1?l(h):(s.consume(h),d++,f);if(d<2&&!n)return l(h);const g=s.exit("strikethroughSequenceTemporary"),x=Co(h);return g._open=!x||x===2&&!!b,g._close=!b||b===2&&!!x,i(h)}}}class N3{constructor(){this.map=[]}add(t,n,r){O3(this,t,n,r)}consume(t){if(this.map.sort(function(o,s){return o[0]-s[0]}),this.map.length===0)return;let n=this.map.length;const r=[];for(;n>0;)n-=1,r.push(t.slice(this.map[n][0]+this.map[n][1]),this.map[n][2]),t.length=this.map[n][0];r.push(t.slice()),t.length=0;let a=r.pop();for(;a;){for(const o of a)t.push(o);a=r.pop()}this.map.length=0}}function O3(e,t,n,r){let a=0;if(!(n===0&&r.length===0)){for(;a<e.map.length;){if(e.map[a][0]===t){e.map[a][1]+=n,e.map[a][2].push(...r);return}a+=1}e.map.push([t,n,r])}}function L3(e,t){let n=!1;const r=[];for(;t<e.length;){const a=e[t];if(n){if(a[0]==="enter")a[1].type==="tableContent"&&r.push(e[t+1][1].type==="tableDelimiterMarker"?"left":"none");else if(a[1].type==="tableContent"){if(e[t-1][1].type==="tableDelimiterMarker"){const o=r.length-1;r[o]=r[o]==="left"?"center":"right"}}else if(a[1].type==="tableDelimiterRow")break}else a[0]==="enter"&&a[1].type==="tableDelimiterRow"&&(n=!0);t+=1}return r}function F3(){return{flow:{null:{name:"table",tokenize:$3,resolveAll:B3}}}}function $3(e,t,n){const r=this;let a=0,o=0,s;return i;function i(P){let L=r.events.length-1;for(;L>-1;){const I=r.events[L][1].type;if(I==="lineEnding"||I==="linePrefix")L--;else break}const v=L>-1?r.events[L][1].type:null,N=v==="tableHead"||v==="tableRow"?S:l;return N===S&&r.parser.lazy[r.now().line]?n(P):N(P)}function l(P){return e.enter("tableHead"),e.enter("tableRow"),u(P)}function u(P){return P===124||(s=!0,o+=1),c(P)}function c(P){return P===null?n(P):Ue(P)?o>1?(o=0,r.interrupt=!0,e.exit("tableRow"),e.enter("lineEnding"),e.consume(P),e.exit("lineEnding"),f):n(P):it(P)?ut(e,c,"whitespace")(P):(o+=1,s&&(s=!1,a+=1),P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),s=!0,c):(e.enter("data"),d(P)))}function d(P){return P===null||P===124||Et(P)?(e.exit("data"),c(P)):(e.consume(P),P===92?m:d)}function m(P){return P===92||P===124?(e.consume(P),d):d(P)}function f(P){return r.interrupt=!1,r.parser.lazy[r.now().line]?n(P):(e.enter("tableDelimiterRow"),s=!1,it(P)?ut(e,h,"linePrefix",r.parser.constructs.disable.null.includes("codeIndented")?void 0:4)(P):h(P))}function h(P){return P===45||P===58?g(P):P===124?(s=!0,e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),b):T(P)}function b(P){return it(P)?ut(e,g,"whitespace")(P):g(P)}function g(P){return P===58?(o+=1,s=!0,e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),x):P===45?(o+=1,x(P)):P===null||Ue(P)?k(P):T(P)}function x(P){return P===45?(e.enter("tableDelimiterFiller"),C(P)):T(P)}function C(P){return P===45?(e.consume(P),C):P===58?(s=!0,e.exit("tableDelimiterFiller"),e.enter("tableDelimiterMarker"),e.consume(P),e.exit("tableDelimiterMarker"),E):(e.exit("tableDelimiterFiller"),E(P))}function E(P){return it(P)?ut(e,k,"whitespace")(P):k(P)}function k(P){return P===124?h(P):P===null||Ue(P)?!s||a!==o?T(P):(e.exit("tableDelimiterRow"),e.exit("tableHead"),t(P)):T(P)}function T(P){return n(P)}function S(P){return e.enter("tableRow"),O(P)}function O(P){return P===124?(e.enter("tableCellDivider"),e.consume(P),e.exit("tableCellDivider"),O):P===null||Ue(P)?(e.exit("tableRow"),t(P)):it(P)?ut(e,O,"whitespace")(P):(e.enter("data"),M(P))}function M(P){return P===null||P===124||Et(P)?(e.exit("data"),O(P)):(e.consume(P),P===92?$:M)}function $(P){return P===92||P===124?(e.consume(P),M):M(P)}}function B3(e,t){let n=-1,r=!0,a=0,o=[0,0,0,0],s=[0,0,0,0],i=!1,l=0,u,c,d;const m=new N3;for(;++n<e.length;){const f=e[n],h=f[1];f[0]==="enter"?h.type==="tableHead"?(i=!1,l!==0&&(jm(m,t,l,u,c),c=void 0,l=0),u={type:"table",start:Object.assign({},h.start),end:Object.assign({},h.end)},m.add(n,0,[["enter",u,t]])):h.type==="tableRow"||h.type==="tableDelimiterRow"?(r=!0,d=void 0,o=[0,0,0,0],s=[0,n+1,0,0],i&&(i=!1,c={type:"tableBody",start:Object.assign({},h.start),end:Object.assign({},h.end)},m.add(n,0,[["enter",c,t]])),a=h.type==="tableDelimiterRow"?2:c?3:1):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")?(r=!1,s[2]===0&&(o[1]!==0&&(s[0]=s[1],d=Pi(m,t,o,a,void 0,d),o=[0,0,0,0]),s[2]=n)):h.type==="tableCellDivider"&&(r?r=!1:(o[1]!==0&&(s[0]=s[1],d=Pi(m,t,o,a,void 0,d)),o=s,s=[o[1],n,0,0])):h.type==="tableHead"?(i=!0,l=n):h.type==="tableRow"||h.type==="tableDelimiterRow"?(l=n,o[1]!==0?(s[0]=s[1],d=Pi(m,t,o,a,n,d)):s[1]!==0&&(d=Pi(m,t,s,a,n,d)),a=0):a&&(h.type==="data"||h.type==="tableDelimiterMarker"||h.type==="tableDelimiterFiller")&&(s[3]=n)}for(l!==0&&jm(m,t,l,u,c),m.consume(t.events),n=-1;++n<t.events.length;){const f=t.events[n];f[0]==="enter"&&f[1].type==="table"&&(f[1]._align=L3(t.events,n))}return e}function Pi(e,t,n,r,a,o){const s=r===1?"tableHeader":r===2?"tableDelimiter":"tableData",i="tableContent";n[0]!==0&&(o.end=Object.assign({},ao(t.events,n[0])),e.add(n[0],0,[["exit",o,t]]));const l=ao(t.events,n[1]);if(o={type:s,start:Object.assign({},l),end:Object.assign({},l)},e.add(n[1],0,[["enter",o,t]]),n[2]!==0){const u=ao(t.events,n[2]),c=ao(t.events,n[3]),d={type:i,start:Object.assign({},u),end:Object.assign({},c)};if(e.add(n[2],0,[["enter",d,t]]),r!==2){const m=t.events[n[2]],f=t.events[n[3]];if(m[1].end=Object.assign({},f[1].end),m[1].type="chunkText",m[1].contentType="text",n[3]>n[2]+1){const h=n[2]+1,b=n[3]-n[2]-1;e.add(h,b,[])}}e.add(n[3]+1,0,[["exit",d,t]])}return a!==void 0&&(o.end=Object.assign({},ao(t.events,a)),e.add(a,0,[["exit",o,t]]),o=void 0),o}function jm(e,t,n,r,a){const o=[],s=ao(t.events,n);a&&(a.end=Object.assign({},s),o.push(["exit",a,t])),r.end=Object.assign({},s),o.push(["exit",r,t]),e.add(n+1,0,o)}function ao(e,t){const n=e[t],r=n[0]==="enter"?"start":"end";return n[1][r]}const j3={name:"tasklistCheck",tokenize:U3};function H3(){return{text:{91:j3}}}function U3(e,t,n){const r=this;return a;function a(l){return r.previous!==null||!r._gfmTasklistFirstContentOfListItem?n(l):(e.enter("taskListCheck"),e.enter("taskListCheckMarker"),e.consume(l),e.exit("taskListCheckMarker"),o)}function o(l){return Et(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"),i):n(l)}function i(l){return Ue(l)?t(l):it(l)?e.check({tokenize:z3},t,n)(l):n(l)}}function z3(e,t,n){return ut(e,r,"whitespace");function r(a){return a===null?n(a):t(a)}}function V3(e){return J0([h3(),S3(),M3(e),F3(),H3()])}const W3={};function q3(e){const t=this,n=e||W3,r=t.data(),a=r.micromarkExtensions||(r.micromarkExtensions=[]),o=r.fromMarkdownExtensions||(r.fromMarkdownExtensions=[]),s=r.toMarkdownExtensions||(r.toMarkdownExtensions=[]);a.push(V3(n)),o.push(d3()),s.push(p3(n))}const Hm=/[#.]/g;function Y3(e,t){const n=e||"",r={};let a=0,o,s;for(;a<n.length;){Hm.lastIndex=a;const i=Hm.exec(n),l=n.slice(a,i?i.index:n.length);l&&(o?o==="#"?r.id=l:Array.isArray(r.className)?r.className.push(l):r.className=[l]:s=l,a+=l.length),i&&(o=i[0],a++)}return{type:"element",tagName:s||t||"div",properties:r,children:[]}}function zb(e,t,n){const r=n?X3(n):void 0;function a(o,s,...i){let l;if(o==null){l={type:"root",children:[]};const u=s;i.unshift(u)}else{l=Y3(o,t);const u=l.tagName.toLowerCase(),c=r?r.get(u):void 0;if(l.tagName=c||u,G3(s))i.unshift(s);else for(const[d,m]of Object.entries(s))K3(e,l.properties,d,m)}for(const u of i)ld(l.children,u);return l.type==="element"&&l.tagName==="template"&&(l.content={type:"root",children:l.children},l.children=[]),l}return a}function G3(e){if(e===null||typeof e!="object"||Array.isArray(e))return!0;if(typeof e.type!="string")return!1;const t=e,n=Object.keys(e);for(const r of n){const a=t[r];if(a&&typeof a=="object"){if(!Array.isArray(a))return!0;const o=a;for(const s of o)if(typeof s!="number"&&typeof s!="string")return!0}}return!!("children"in e&&Array.isArray(e.children))}function K3(e,t,n,r){const a=ui(e,n);let o;if(r!=null){if(typeof r=="number"){if(Number.isNaN(r))return;o=r}else typeof r=="boolean"?o=r:typeof r=="string"?a.spaceSeparated?o=ed(r):a.commaSeparated?o=Xc(r):a.commaOrSpaceSeparated?o=ed(Xc(r).join(" ")):o=Um(a,a.property,r):Array.isArray(r)?o=[...r]:o=a.property==="style"?Q3(r):String(r);if(Array.isArray(o)){const s=[];for(const i of o)s.push(Um(a,a.property,i));o=s}a.property==="className"&&Array.isArray(t.className)&&(o=t.className.concat(o)),t[a.property]=o}}function ld(e,t){if(t!=null)if(typeof t=="number"||typeof t=="string")e.push({type:"text",value:String(t)});else if(Array.isArray(t))for(const n of t)ld(e,n);else if(typeof t=="object"&&"type"in t)t.type==="root"?ld(e,t.children):e.push(t);else throw new Error("Expected node, nodes, or string, got `"+t+"`")}function Um(e,t,n){if(typeof n=="string"){if(e.number&&n&&!Number.isNaN(Number(n)))return Number(n);if((e.boolean||e.overloadedBoolean)&&(n===""||Hs(n)===Hs(t)))return!0}return n}function Q3(e){const t=[];for(const[n,r]of Object.entries(e))t.push([n,r].join(": "));return t.join("; ")}function X3(e){const t=new Map;for(const n of e)t.set(n.toLowerCase(),n);return t}const Z3=["altGlyph","altGlyphDef","altGlyphItem","animateColor","animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","glyphRef","linearGradient","radialGradient","solidColor","textArea","textPath"],J3=zb(Mo,"div"),e6=zb(Ur,"g",Z3);function t6(e){const t=String(e),n=[];return{toOffset:a,toPoint:r};function r(o){if(typeof o=="number"&&o>-1&&o<=t.length){let s=0;for(;;){let i=n[s];if(i===void 0){const l=zm(t,n[s-1]);i=l===-1?t.length+1:l+1,n[s]=i}if(i>o)return{line:s+1,column:o-(s>0?n[s-1]:0)+1,offset:o};s++}}}function a(o){if(o&&typeof o.line=="number"&&typeof o.column=="number"&&!Number.isNaN(o.line)&&!Number.isNaN(o.column)){for(;n.length<o.line;){const i=n[n.length-1],l=zm(t,i),u=l===-1?t.length+1:l+1;if(i===u)break;n.push(u)}const s=(o.line>1?n[o.line-2]:0)+o.column-1;if(s<n[o.line-1])return s}}}function zm(e,t){const n=e.indexOf("\r",t),r=e.indexOf(`
50
- `,t);return r===-1?n:n===-1||n+1===r?r:n<r?n:r}const Ea={html:"http://www.w3.org/1999/xhtml",mathml:"http://www.w3.org/1998/Math/MathML",svg:"http://www.w3.org/2000/svg",xlink:"http://www.w3.org/1999/xlink",xml:"http://www.w3.org/XML/1998/namespace",xmlns:"http://www.w3.org/2000/xmlns/"},Vb={}.hasOwnProperty,n6=Object.prototype;function r6(e,t){const n=t||{};return fp({file:n.file||void 0,location:!1,schema:n.space==="svg"?Ur:Mo,verbose:n.verbose||!1},e)}function fp(e,t){let n;switch(t.nodeName){case"#comment":{const r=t;return n={type:"comment",value:r.data},Qi(e,r,n),n}case"#document":case"#document-fragment":{const r=t,a="mode"in r?r.mode==="quirks"||r.mode==="limited-quirks":!1;if(n={type:"root",children:Wb(e,t.childNodes),data:{quirksMode:a}},e.file&&e.location){const o=String(e.file),s=t6(o),i=s.toPoint(0),l=s.toPoint(o.length);n.position={start:i,end:l}}return n}case"#documentType":{const r=t;return n={type:"doctype"},Qi(e,r,n),n}case"#text":{const r=t;return n={type:"text",value:r.value},Qi(e,r,n),n}default:return n=a6(e,t),n}}function Wb(e,t){let n=-1;const r=[];for(;++n<t.length;){const a=fp(e,t[n]);r.push(a)}return r}function a6(e,t){const n=e.schema;e.schema=t.namespaceURI===Ea.svg?Ur:Mo;let r=-1;const a={};for(;++r<t.attrs.length;){const i=t.attrs[r],l=(i.prefix?i.prefix+":":"")+i.name;Vb.call(n6,l)||(a[l]=i.value)}const s=(e.schema.space==="svg"?e6:J3)(t.tagName,a,Wb(e,t.childNodes));if(Qi(e,t,s),s.tagName==="template"){const i=t,l=i.sourceCodeLocation,u=l&&l.startTag&&so(l.startTag),c=l&&l.endTag&&so(l.endTag),d=fp(e,i.content);u&&c&&e.file&&(d.position={start:u.end,end:c.start}),s.content=d}return e.schema=n,s}function Qi(e,t,n){if("sourceCodeLocation"in t&&t.sourceCodeLocation&&e.file){const r=o6(e,n,t.sourceCodeLocation);r&&(e.location=!0,n.position=r)}}function o6(e,t,n){const r=so(n);if(t.type==="element"){const a=t.children[t.children.length-1];if(r&&!n.endTag&&a&&a.position&&a.position.end&&(r.end=Object.assign({},a.position.end)),e.verbose){const o={};let s;if(n.attrs)for(s in n.attrs)Vb.call(n.attrs,s)&&(o[ui(e.schema,s).property]=so(n.attrs[s]));n.startTag;const i=so(n.startTag),l=n.endTag?so(n.endTag):void 0,u={opening:i};l&&(u.closing=l),u.properties=o,t.data={position:u}}}return r}function so(e){const t=Vm({line:e.startLine,column:e.startCol,offset:e.startOffset}),n=Vm({line:e.endLine,column:e.endCol,offset:e.endOffset});return t||n?{start:t,end:n}:void 0}function Vm(e){return e.line&&e.column?e:void 0}class pi{constructor(t,n,r){this.property=t,this.normal=n,r&&(this.space=r)}}pi.prototype.property={};pi.prototype.normal={};pi.prototype.space=null;function qb(e,t){const n={},r={};let a=-1;for(;++a<e.length;)Object.assign(n,e[a].property),Object.assign(r,e[a].normal);return new pi(n,r,t)}function ud(e){return e.toLowerCase()}class Xn{constructor(t,n){this.property=t,this.attribute=n}}Xn.prototype.space=null;Xn.prototype.boolean=!1;Xn.prototype.booleanish=!1;Xn.prototype.overloadedBoolean=!1;Xn.prototype.number=!1;Xn.prototype.commaSeparated=!1;Xn.prototype.spaceSeparated=!1;Xn.prototype.commaOrSpaceSeparated=!1;Xn.prototype.mustUseProperty=!1;Xn.prototype.defined=!1;let s6=0;const Ge=Ha(),Ht=Ha(),Yb=Ha(),Ie=Ha(),St=Ha(),fo=Ha(),Sn=Ha();function Ha(){return 2**++s6}const cd=Object.freeze(Object.defineProperty({__proto__:null,boolean:Ge,booleanish:Ht,commaOrSpaceSeparated:Sn,commaSeparated:fo,number:Ie,overloadedBoolean:Yb,spaceSeparated:St},Symbol.toStringTag,{value:"Module"})),hc=Object.keys(cd);class mp extends Xn{constructor(t,n,r,a){let o=-1;if(super(t,n),Wm(this,"space",a),typeof r=="number")for(;++o<hc.length;){const s=hc[o];Wm(this,hc[o],(r&cd[s])===cd[s])}}}mp.prototype.defined=!0;function Wm(e,t,n){n&&(e[t]=n)}const i6={}.hasOwnProperty;function Oo(e){const t={},n={};let r;for(r in e.properties)if(i6.call(e.properties,r)){const a=e.properties[r],o=new mp(r,e.transform(e.attributes||{},r),a,e.space);e.mustUseProperty&&e.mustUseProperty.includes(r)&&(o.mustUseProperty=!0),t[r]=o,n[ud(r)]=r,n[ud(o.attribute)]=r}return new pi(t,n,e.space)}const Gb=Oo({space:"xlink",transform(e,t){return"xlink:"+t.slice(5).toLowerCase()},properties:{xLinkActuate:null,xLinkArcRole:null,xLinkHref:null,xLinkRole:null,xLinkShow:null,xLinkTitle:null,xLinkType:null}}),Kb=Oo({space:"xml",transform(e,t){return"xml:"+t.slice(3).toLowerCase()},properties:{xmlLang:null,xmlBase:null,xmlSpace:null}});function Qb(e,t){return t in e?e[t]:t}function Xb(e,t){return Qb(e,t.toLowerCase())}const Zb=Oo({space:"xmlns",attributes:{xmlnsxlink:"xmlns:xlink"},transform:Xb,properties:{xmlns:null,xmlnsXLink:null}}),Jb=Oo({transform(e,t){return t==="role"?t:"aria-"+t.slice(4).toLowerCase()},properties:{ariaActiveDescendant:null,ariaAtomic:Ht,ariaAutoComplete:null,ariaBusy:Ht,ariaChecked:Ht,ariaColCount:Ie,ariaColIndex:Ie,ariaColSpan:Ie,ariaControls:St,ariaCurrent:null,ariaDescribedBy:St,ariaDetails:null,ariaDisabled:Ht,ariaDropEffect:St,ariaErrorMessage:null,ariaExpanded:Ht,ariaFlowTo:St,ariaGrabbed:Ht,ariaHasPopup:null,ariaHidden:Ht,ariaInvalid:null,ariaKeyShortcuts:null,ariaLabel:null,ariaLabelledBy:St,ariaLevel:Ie,ariaLive:null,ariaModal:Ht,ariaMultiLine:Ht,ariaMultiSelectable:Ht,ariaOrientation:null,ariaOwns:St,ariaPlaceholder:null,ariaPosInSet:Ie,ariaPressed:Ht,ariaReadOnly:Ht,ariaRelevant:null,ariaRequired:Ht,ariaRoleDescription:St,ariaRowCount:Ie,ariaRowIndex:Ie,ariaRowSpan:Ie,ariaSelected:Ht,ariaSetSize:Ie,ariaSort:null,ariaValueMax:Ie,ariaValueMin:Ie,ariaValueNow:Ie,ariaValueText:null,role:null}}),l6=Oo({space:"html",attributes:{acceptcharset:"accept-charset",classname:"class",htmlfor:"for",httpequiv:"http-equiv"},transform:Xb,mustUseProperty:["checked","multiple","muted","selected"],properties:{abbr:null,accept:fo,acceptCharset:St,accessKey:St,action:null,allow:null,allowFullScreen:Ge,allowPaymentRequest:Ge,allowUserMedia:Ge,alt:null,as:null,async:Ge,autoCapitalize:null,autoComplete:St,autoFocus:Ge,autoPlay:Ge,blocking:St,capture:null,charSet:null,checked:Ge,cite:null,className:St,cols:Ie,colSpan:null,content:null,contentEditable:Ht,controls:Ge,controlsList:St,coords:Ie|fo,crossOrigin:null,data:null,dateTime:null,decoding:null,default:Ge,defer:Ge,dir:null,dirName:null,disabled:Ge,download:Yb,draggable:Ht,encType:null,enterKeyHint:null,fetchPriority:null,form:null,formAction:null,formEncType:null,formMethod:null,formNoValidate:Ge,formTarget:null,headers:St,height:Ie,hidden:Ge,high:Ie,href:null,hrefLang:null,htmlFor:St,httpEquiv:St,id:null,imageSizes:null,imageSrcSet:null,inert:Ge,inputMode:null,integrity:null,is:null,isMap:Ge,itemId:null,itemProp:St,itemRef:St,itemScope:Ge,itemType:St,kind:null,label:null,lang:null,language:null,list:null,loading:null,loop:Ge,low:Ie,manifest:null,max:null,maxLength:Ie,media:null,method:null,min:null,minLength:Ie,multiple:Ge,muted:Ge,name:null,nonce:null,noModule:Ge,noValidate:Ge,onAbort:null,onAfterPrint:null,onAuxClick:null,onBeforeMatch:null,onBeforePrint:null,onBeforeToggle:null,onBeforeUnload:null,onBlur:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onContextLost:null,onContextMenu:null,onContextRestored:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnded:null,onError:null,onFocus:null,onFormData:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLanguageChange:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadEnd:null,onLoadStart:null,onMessage:null,onMessageError:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRejectionHandled:null,onReset:null,onResize:null,onScroll:null,onScrollEnd:null,onSecurityPolicyViolation:null,onSeeked:null,onSeeking:null,onSelect:null,onSlotChange:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnhandledRejection:null,onUnload:null,onVolumeChange:null,onWaiting:null,onWheel:null,open:Ge,optimum:Ie,pattern:null,ping:St,placeholder:null,playsInline:Ge,popover:null,popoverTarget:null,popoverTargetAction:null,poster:null,preload:null,readOnly:Ge,referrerPolicy:null,rel:St,required:Ge,reversed:Ge,rows:Ie,rowSpan:Ie,sandbox:St,scope:null,scoped:Ge,seamless:Ge,selected:Ge,shadowRootClonable:Ge,shadowRootDelegatesFocus:Ge,shadowRootMode:null,shape:null,size:Ie,sizes:null,slot:null,span:Ie,spellCheck:Ht,src:null,srcDoc:null,srcLang:null,srcSet:null,start:Ie,step:null,style:null,tabIndex:Ie,target:null,title:null,translate:null,type:null,typeMustMatch:Ge,useMap:null,value:Ht,width:Ie,wrap:null,writingSuggestions:null,align:null,aLink:null,archive:St,axis:null,background:null,bgColor:null,border:Ie,borderColor:null,bottomMargin:Ie,cellPadding:null,cellSpacing:null,char:null,charOff:null,classId:null,clear:null,code:null,codeBase:null,codeType:null,color:null,compact:Ge,declare:Ge,event:null,face:null,frame:null,frameBorder:null,hSpace:Ie,leftMargin:Ie,link:null,longDesc:null,lowSrc:null,marginHeight:Ie,marginWidth:Ie,noResize:Ge,noHref:Ge,noShade:Ge,noWrap:Ge,object:null,profile:null,prompt:null,rev:null,rightMargin:Ie,rules:null,scheme:null,scrolling:Ht,standby:null,summary:null,text:null,topMargin:Ie,valueType:null,version:null,vAlign:null,vLink:null,vSpace:Ie,allowTransparency:null,autoCorrect:null,autoSave:null,disablePictureInPicture:Ge,disableRemotePlayback:Ge,prefix:null,property:null,results:Ie,security:null,unselectable:null}}),u6=Oo({space:"svg",attributes:{accentHeight:"accent-height",alignmentBaseline:"alignment-baseline",arabicForm:"arabic-form",baselineShift:"baseline-shift",capHeight:"cap-height",className:"class",clipPath:"clip-path",clipRule:"clip-rule",colorInterpolation:"color-interpolation",colorInterpolationFilters:"color-interpolation-filters",colorProfile:"color-profile",colorRendering:"color-rendering",crossOrigin:"crossorigin",dataType:"datatype",dominantBaseline:"dominant-baseline",enableBackground:"enable-background",fillOpacity:"fill-opacity",fillRule:"fill-rule",floodColor:"flood-color",floodOpacity:"flood-opacity",fontFamily:"font-family",fontSize:"font-size",fontSizeAdjust:"font-size-adjust",fontStretch:"font-stretch",fontStyle:"font-style",fontVariant:"font-variant",fontWeight:"font-weight",glyphName:"glyph-name",glyphOrientationHorizontal:"glyph-orientation-horizontal",glyphOrientationVertical:"glyph-orientation-vertical",hrefLang:"hreflang",horizAdvX:"horiz-adv-x",horizOriginX:"horiz-origin-x",horizOriginY:"horiz-origin-y",imageRendering:"image-rendering",letterSpacing:"letter-spacing",lightingColor:"lighting-color",markerEnd:"marker-end",markerMid:"marker-mid",markerStart:"marker-start",navDown:"nav-down",navDownLeft:"nav-down-left",navDownRight:"nav-down-right",navLeft:"nav-left",navNext:"nav-next",navPrev:"nav-prev",navRight:"nav-right",navUp:"nav-up",navUpLeft:"nav-up-left",navUpRight:"nav-up-right",onAbort:"onabort",onActivate:"onactivate",onAfterPrint:"onafterprint",onBeforePrint:"onbeforeprint",onBegin:"onbegin",onCancel:"oncancel",onCanPlay:"oncanplay",onCanPlayThrough:"oncanplaythrough",onChange:"onchange",onClick:"onclick",onClose:"onclose",onCopy:"oncopy",onCueChange:"oncuechange",onCut:"oncut",onDblClick:"ondblclick",onDrag:"ondrag",onDragEnd:"ondragend",onDragEnter:"ondragenter",onDragExit:"ondragexit",onDragLeave:"ondragleave",onDragOver:"ondragover",onDragStart:"ondragstart",onDrop:"ondrop",onDurationChange:"ondurationchange",onEmptied:"onemptied",onEnd:"onend",onEnded:"onended",onError:"onerror",onFocus:"onfocus",onFocusIn:"onfocusin",onFocusOut:"onfocusout",onHashChange:"onhashchange",onInput:"oninput",onInvalid:"oninvalid",onKeyDown:"onkeydown",onKeyPress:"onkeypress",onKeyUp:"onkeyup",onLoad:"onload",onLoadedData:"onloadeddata",onLoadedMetadata:"onloadedmetadata",onLoadStart:"onloadstart",onMessage:"onmessage",onMouseDown:"onmousedown",onMouseEnter:"onmouseenter",onMouseLeave:"onmouseleave",onMouseMove:"onmousemove",onMouseOut:"onmouseout",onMouseOver:"onmouseover",onMouseUp:"onmouseup",onMouseWheel:"onmousewheel",onOffline:"onoffline",onOnline:"ononline",onPageHide:"onpagehide",onPageShow:"onpageshow",onPaste:"onpaste",onPause:"onpause",onPlay:"onplay",onPlaying:"onplaying",onPopState:"onpopstate",onProgress:"onprogress",onRateChange:"onratechange",onRepeat:"onrepeat",onReset:"onreset",onResize:"onresize",onScroll:"onscroll",onSeeked:"onseeked",onSeeking:"onseeking",onSelect:"onselect",onShow:"onshow",onStalled:"onstalled",onStorage:"onstorage",onSubmit:"onsubmit",onSuspend:"onsuspend",onTimeUpdate:"ontimeupdate",onToggle:"ontoggle",onUnload:"onunload",onVolumeChange:"onvolumechange",onWaiting:"onwaiting",onZoom:"onzoom",overlinePosition:"overline-position",overlineThickness:"overline-thickness",paintOrder:"paint-order",panose1:"panose-1",pointerEvents:"pointer-events",referrerPolicy:"referrerpolicy",renderingIntent:"rendering-intent",shapeRendering:"shape-rendering",stopColor:"stop-color",stopOpacity:"stop-opacity",strikethroughPosition:"strikethrough-position",strikethroughThickness:"strikethrough-thickness",strokeDashArray:"stroke-dasharray",strokeDashOffset:"stroke-dashoffset",strokeLineCap:"stroke-linecap",strokeLineJoin:"stroke-linejoin",strokeMiterLimit:"stroke-miterlimit",strokeOpacity:"stroke-opacity",strokeWidth:"stroke-width",tabIndex:"tabindex",textAnchor:"text-anchor",textDecoration:"text-decoration",textRendering:"text-rendering",transformOrigin:"transform-origin",typeOf:"typeof",underlinePosition:"underline-position",underlineThickness:"underline-thickness",unicodeBidi:"unicode-bidi",unicodeRange:"unicode-range",unitsPerEm:"units-per-em",vAlphabetic:"v-alphabetic",vHanging:"v-hanging",vIdeographic:"v-ideographic",vMathematical:"v-mathematical",vectorEffect:"vector-effect",vertAdvY:"vert-adv-y",vertOriginX:"vert-origin-x",vertOriginY:"vert-origin-y",wordSpacing:"word-spacing",writingMode:"writing-mode",xHeight:"x-height",playbackOrder:"playbackorder",timelineBegin:"timelinebegin"},transform:Qb,properties:{about:Sn,accentHeight:Ie,accumulate:null,additive:null,alignmentBaseline:null,alphabetic:Ie,amplitude:Ie,arabicForm:null,ascent:Ie,attributeName:null,attributeType:null,azimuth:Ie,bandwidth:null,baselineShift:null,baseFrequency:null,baseProfile:null,bbox:null,begin:null,bias:Ie,by:null,calcMode:null,capHeight:Ie,className:St,clip:null,clipPath:null,clipPathUnits:null,clipRule:null,color:null,colorInterpolation:null,colorInterpolationFilters:null,colorProfile:null,colorRendering:null,content:null,contentScriptType:null,contentStyleType:null,crossOrigin:null,cursor:null,cx:null,cy:null,d:null,dataType:null,defaultAction:null,descent:Ie,diffuseConstant:Ie,direction:null,display:null,dur:null,divisor:Ie,dominantBaseline:null,download:Ge,dx:null,dy:null,edgeMode:null,editable:null,elevation:Ie,enableBackground:null,end:null,event:null,exponent:Ie,externalResourcesRequired:null,fill:null,fillOpacity:Ie,fillRule:null,filter:null,filterRes:null,filterUnits:null,floodColor:null,floodOpacity:null,focusable:null,focusHighlight:null,fontFamily:null,fontSize:null,fontSizeAdjust:null,fontStretch:null,fontStyle:null,fontVariant:null,fontWeight:null,format:null,fr:null,from:null,fx:null,fy:null,g1:fo,g2:fo,glyphName:fo,glyphOrientationHorizontal:null,glyphOrientationVertical:null,glyphRef:null,gradientTransform:null,gradientUnits:null,handler:null,hanging:Ie,hatchContentUnits:null,hatchUnits:null,height:null,href:null,hrefLang:null,horizAdvX:Ie,horizOriginX:Ie,horizOriginY:Ie,id:null,ideographic:Ie,imageRendering:null,initialVisibility:null,in:null,in2:null,intercept:Ie,k:Ie,k1:Ie,k2:Ie,k3:Ie,k4:Ie,kernelMatrix:Sn,kernelUnitLength:null,keyPoints:null,keySplines:null,keyTimes:null,kerning:null,lang:null,lengthAdjust:null,letterSpacing:null,lightingColor:null,limitingConeAngle:Ie,local:null,markerEnd:null,markerMid:null,markerStart:null,markerHeight:null,markerUnits:null,markerWidth:null,mask:null,maskContentUnits:null,maskUnits:null,mathematical:null,max:null,media:null,mediaCharacterEncoding:null,mediaContentEncodings:null,mediaSize:Ie,mediaTime:null,method:null,min:null,mode:null,name:null,navDown:null,navDownLeft:null,navDownRight:null,navLeft:null,navNext:null,navPrev:null,navRight:null,navUp:null,navUpLeft:null,navUpRight:null,numOctaves:null,observer:null,offset:null,onAbort:null,onActivate:null,onAfterPrint:null,onBeforePrint:null,onBegin:null,onCancel:null,onCanPlay:null,onCanPlayThrough:null,onChange:null,onClick:null,onClose:null,onCopy:null,onCueChange:null,onCut:null,onDblClick:null,onDrag:null,onDragEnd:null,onDragEnter:null,onDragExit:null,onDragLeave:null,onDragOver:null,onDragStart:null,onDrop:null,onDurationChange:null,onEmptied:null,onEnd:null,onEnded:null,onError:null,onFocus:null,onFocusIn:null,onFocusOut:null,onHashChange:null,onInput:null,onInvalid:null,onKeyDown:null,onKeyPress:null,onKeyUp:null,onLoad:null,onLoadedData:null,onLoadedMetadata:null,onLoadStart:null,onMessage:null,onMouseDown:null,onMouseEnter:null,onMouseLeave:null,onMouseMove:null,onMouseOut:null,onMouseOver:null,onMouseUp:null,onMouseWheel:null,onOffline:null,onOnline:null,onPageHide:null,onPageShow:null,onPaste:null,onPause:null,onPlay:null,onPlaying:null,onPopState:null,onProgress:null,onRateChange:null,onRepeat:null,onReset:null,onResize:null,onScroll:null,onSeeked:null,onSeeking:null,onSelect:null,onShow:null,onStalled:null,onStorage:null,onSubmit:null,onSuspend:null,onTimeUpdate:null,onToggle:null,onUnload:null,onVolumeChange:null,onWaiting:null,onZoom:null,opacity:null,operator:null,order:null,orient:null,orientation:null,origin:null,overflow:null,overlay:null,overlinePosition:Ie,overlineThickness:Ie,paintOrder:null,panose1:null,path:null,pathLength:Ie,patternContentUnits:null,patternTransform:null,patternUnits:null,phase:null,ping:St,pitch:null,playbackOrder:null,pointerEvents:null,points:null,pointsAtX:Ie,pointsAtY:Ie,pointsAtZ:Ie,preserveAlpha:null,preserveAspectRatio:null,primitiveUnits:null,propagate:null,property:Sn,r:null,radius:null,referrerPolicy:null,refX:null,refY:null,rel:Sn,rev:Sn,renderingIntent:null,repeatCount:null,repeatDur:null,requiredExtensions:Sn,requiredFeatures:Sn,requiredFonts:Sn,requiredFormats:Sn,resource:null,restart:null,result:null,rotate:null,rx:null,ry:null,scale:null,seed:null,shapeRendering:null,side:null,slope:null,snapshotTime:null,specularConstant:Ie,specularExponent:Ie,spreadMethod:null,spacing:null,startOffset:null,stdDeviation:null,stemh:null,stemv:null,stitchTiles:null,stopColor:null,stopOpacity:null,strikethroughPosition:Ie,strikethroughThickness:Ie,string:null,stroke:null,strokeDashArray:Sn,strokeDashOffset:null,strokeLineCap:null,strokeLineJoin:null,strokeMiterLimit:Ie,strokeOpacity:Ie,strokeWidth:null,style:null,surfaceScale:Ie,syncBehavior:null,syncBehaviorDefault:null,syncMaster:null,syncTolerance:null,syncToleranceDefault:null,systemLanguage:Sn,tabIndex:Ie,tableValues:null,target:null,targetX:Ie,targetY:Ie,textAnchor:null,textDecoration:null,textRendering:null,textLength:null,timelineBegin:null,title:null,transformBehavior:null,type:null,typeOf:Sn,to:null,transform:null,transformOrigin:null,u1:null,u2:null,underlinePosition:Ie,underlineThickness:Ie,unicode:null,unicodeBidi:null,unicodeRange:null,unitsPerEm:Ie,values:null,vAlphabetic:Ie,vMathematical:Ie,vectorEffect:null,vHanging:Ie,vIdeographic:Ie,version:null,vertAdvY:Ie,vertOriginX:Ie,vertOriginY:Ie,viewBox:null,viewTarget:null,visibility:null,width:null,widths:null,wordSpacing:null,writingMode:null,x:null,x1:null,x2:null,xChannelSelector:null,xHeight:Ie,y:null,y1:null,y2:null,yChannelSelector:null,z:null,zoomAndPan:null}}),c6=/^data[-\w.:]+$/i,qm=/-[a-z]/g,d6=/[A-Z]/g;function p6(e,t){const n=ud(t);let r=t,a=Xn;if(n in e.normal)return e.property[e.normal[n]];if(n.length>4&&n.slice(0,4)==="data"&&c6.test(t)){if(t.charAt(4)==="-"){const o=t.slice(5).replace(qm,m6);r="data"+o.charAt(0).toUpperCase()+o.slice(1)}else{const o=t.slice(4);if(!qm.test(o)){let s=o.replace(d6,f6);s.charAt(0)!=="-"&&(s="-"+s),t="data"+s}}a=mp}return new a(r,t)}function f6(e){return"-"+e.toLowerCase()}function m6(e){return e.charAt(1).toUpperCase()}const h6=qb([Kb,Gb,Zb,Jb,l6],"html"),e1=qb([Kb,Gb,Zb,Jb,u6],"svg"),g6={},b6={}.hasOwnProperty,t1=gu("type",{handlers:{root:x6,element:k6,text:v6,comment:T6,doctype:E6}});function y6(e,t){const r=(t||g6).space;return t1(e,r==="svg"?e1:h6)}function x6(e,t){const n={nodeName:"#document",mode:(e.data||{}).quirksMode?"quirks":"no-quirks",childNodes:[]};return n.childNodes=hp(e.children,n,t),Lo(e,n),n}function C6(e,t){const n={nodeName:"#document-fragment",childNodes:[]};return n.childNodes=hp(e.children,n,t),Lo(e,n),n}function E6(e){const t={nodeName:"#documentType",name:"html",publicId:"",systemId:"",parentNode:null};return Lo(e,t),t}function v6(e){const t={nodeName:"#text",value:e.value,parentNode:null};return Lo(e,t),t}function T6(e){const t={nodeName:"#comment",data:e.value,parentNode:null};return Lo(e,t),t}function k6(e,t){const n=t;let r=n;e.type==="element"&&e.tagName.toLowerCase()==="svg"&&n.space==="html"&&(r=e1);const a=[];let o;if(e.properties){for(o in e.properties)if(o!=="children"&&b6.call(e.properties,o)){const l=S6(r,o,e.properties[o]);l&&a.push(l)}}const s=r.space,i={nodeName:e.tagName,tagName:e.tagName,attrs:a,namespaceURI:Ea[s],childNodes:[],parentNode:null};return i.childNodes=hp(e.children,i,r),Lo(e,i),e.tagName==="template"&&e.content&&(i.content=C6(e.content,r)),i}function S6(e,t,n){const r=p6(e,t);if(n===!1||n===null||n===void 0||typeof n=="number"&&Number.isNaN(n)||!n&&r.boolean)return;Array.isArray(n)&&(n=r.commaSeparated?lu(n):uu(n));const a={name:r.attribute,value:n===!0?"":String(n)};if(r.space&&r.space!=="html"&&r.space!=="svg"){const o=a.name.indexOf(":");o<0?a.prefix="":(a.name=a.name.slice(o+1),a.prefix=r.attribute.slice(0,o)),a.namespace=Ea[r.space]}return a}function hp(e,t,n){let r=-1;const a=[];if(e)for(;++r<e.length;){const o=t1(e[r],n);o.parentNode=t,a.push(o)}return a}function Lo(e,t){const n=e.position;n&&n.start&&n.end&&(n.start.offset,n.end.offset,t.sourceCodeLocation={startLine:n.start.line,startCol:n.start.column,startOffset:n.start.offset,endLine:n.end.line,endCol:n.end.column,endOffset:n.end.offset})}const n1=["area","base","basefont","bgsound","br","col","command","embed","frame","hr","image","img","input","keygen","link","meta","param","source","track","wbr"],w6=new Set([65534,65535,131070,131071,196606,196607,262142,262143,327678,327679,393214,393215,458750,458751,524286,524287,589822,589823,655358,655359,720894,720895,786430,786431,851966,851967,917502,917503,983038,983039,1048574,1048575,1114110,1114111]),Mt="�";var j;(function(e){e[e.EOF=-1]="EOF",e[e.NULL=0]="NULL",e[e.TABULATION=9]="TABULATION",e[e.CARRIAGE_RETURN=13]="CARRIAGE_RETURN",e[e.LINE_FEED=10]="LINE_FEED",e[e.FORM_FEED=12]="FORM_FEED",e[e.SPACE=32]="SPACE",e[e.EXCLAMATION_MARK=33]="EXCLAMATION_MARK",e[e.QUOTATION_MARK=34]="QUOTATION_MARK",e[e.AMPERSAND=38]="AMPERSAND",e[e.APOSTROPHE=39]="APOSTROPHE",e[e.HYPHEN_MINUS=45]="HYPHEN_MINUS",e[e.SOLIDUS=47]="SOLIDUS",e[e.DIGIT_0=48]="DIGIT_0",e[e.DIGIT_9=57]="DIGIT_9",e[e.SEMICOLON=59]="SEMICOLON",e[e.LESS_THAN_SIGN=60]="LESS_THAN_SIGN",e[e.EQUALS_SIGN=61]="EQUALS_SIGN",e[e.GREATER_THAN_SIGN=62]="GREATER_THAN_SIGN",e[e.QUESTION_MARK=63]="QUESTION_MARK",e[e.LATIN_CAPITAL_A=65]="LATIN_CAPITAL_A",e[e.LATIN_CAPITAL_Z=90]="LATIN_CAPITAL_Z",e[e.RIGHT_SQUARE_BRACKET=93]="RIGHT_SQUARE_BRACKET",e[e.GRAVE_ACCENT=96]="GRAVE_ACCENT",e[e.LATIN_SMALL_A=97]="LATIN_SMALL_A",e[e.LATIN_SMALL_Z=122]="LATIN_SMALL_Z"})(j||(j={}));const bn={DASH_DASH:"--",CDATA_START:"[CDATA[",DOCTYPE:"doctype",SCRIPT:"script",PUBLIC:"public",SYSTEM:"system"};function r1(e){return e>=55296&&e<=57343}function _6(e){return e>=56320&&e<=57343}function I6(e,t){return(e-55296)*1024+9216+t}function a1(e){return e!==32&&e!==10&&e!==13&&e!==9&&e!==12&&e>=1&&e<=31||e>=127&&e<=159}function o1(e){return e>=64976&&e<=65007||w6.has(e)}var fe;(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"})(fe||(fe={}));const A6=65536;class D6{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=A6,this.isEol=!1,this.lineStartPos=0,this.droppedBufferSize=0,this.line=1,this.lastErrOffset=-1}get col(){return this.pos-this.lineStartPos+ +(this.lastGapPos!==this.pos)}get offset(){return this.droppedBufferSize+this.pos}getError(t,n){const{line:r,col:a,offset:o}=this,s=a+n,i=o+n;return{code:t,startLine:r,endLine:r,startCol:s,endCol:s,startOffset:i,endOffset:i}}_err(t){this.handler.onParseError&&this.lastErrOffset!==this.offset&&(this.lastErrOffset=this.offset,this.handler.onParseError(this.getError(t,0)))}_addGap(){this.gapStack.push(this.lastGapPos),this.lastGapPos=this.pos}_processSurrogate(t){if(this.pos!==this.html.length-1){const n=this.html.charCodeAt(this.pos+1);if(_6(n))return this.pos++,this._addGap(),I6(t,n)}else if(!this.lastChunkWritten)return this.endOfChunkHit=!0,j.EOF;return this._err(fe.surrogateInInputStream),t}willDropParsedChunk(){return this.pos>this.bufferWaterline}dropParsedChunk(){this.willDropParsedChunk()&&(this.html=this.html.substring(this.pos),this.lineStartPos-=this.pos,this.droppedBufferSize+=this.pos,this.pos=0,this.lastGapPos=-2,this.gapStack.length=0)}write(t,n){this.html.length>0?this.html+=t:this.html=t,this.endOfChunkHit=!1,this.lastChunkWritten=n}insertHtmlAtCurrentPos(t){this.html=this.html.substring(0,this.pos+1)+t+this.html.substring(this.pos+1),this.endOfChunkHit=!1}startsWith(t,n){if(this.pos+t.length>this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,!1;if(n)return this.html.startsWith(t,this.pos);for(let r=0;r<t.length;r++)if((this.html.charCodeAt(this.pos+r)|32)!==t.charCodeAt(r))return!1;return!0}peek(t){const n=this.pos+t;if(n>=this.html.length)return this.endOfChunkHit=!this.lastChunkWritten,j.EOF;const r=this.html.charCodeAt(n);return r===j.CARRIAGE_RETURN?j.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,j.EOF;let t=this.html.charCodeAt(this.pos);return t===j.CARRIAGE_RETURN?(this.isEol=!0,this.skipNextNewLine=!0,j.LINE_FEED):t===j.LINE_FEED&&(this.isEol=!0,this.skipNextNewLine)?(this.line--,this.skipNextNewLine=!1,this._addGap(),this.advance()):(this.skipNextNewLine=!1,r1(t)&&(t=this._processSurrogate(t)),this.handler.onParseError===null||t>31&&t<127||t===j.LINE_FEED||t===j.CARRIAGE_RETURN||t>159&&t<64976||this._checkForProblematicCharacters(t),t)}_checkForProblematicCharacters(t){a1(t)?this._err(fe.controlCharacterInInputStream):o1(t)&&this._err(fe.noncharacterInInputStream)}retreat(t){for(this.pos-=t;this.pos<this.lastGapPos;)this.lastGapPos=this.gapStack.pop(),this.pos--;this.isEol=!1}}var rt;(function(e){e[e.CHARACTER=0]="CHARACTER",e[e.NULL_CHARACTER=1]="NULL_CHARACTER",e[e.WHITESPACE_CHARACTER=2]="WHITESPACE_CHARACTER",e[e.START_TAG=3]="START_TAG",e[e.END_TAG=4]="END_TAG",e[e.COMMENT=5]="COMMENT",e[e.DOCTYPE=6]="DOCTYPE",e[e.EOF=7]="EOF",e[e.HIBERNATION=8]="HIBERNATION"})(rt||(rt={}));function s1(e,t){for(let n=e.attrs.length-1;n>=0;n--)if(e.attrs[n].name===t)return e.attrs[n].value;return null}const P6=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))),R6=new Map([[0,65533],[128,8364],[130,8218],[131,402],[132,8222],[133,8230],[134,8224],[135,8225],[136,710],[137,8240],[138,352],[139,8249],[140,338],[142,381],[145,8216],[146,8217],[147,8220],[148,8221],[149,8226],[150,8211],[151,8212],[152,732],[153,8482],[154,353],[155,8250],[156,339],[158,382],[159,376]]);function M6(e){var t;return e>=55296&&e<=57343||e>1114111?65533:(t=R6.get(e))!==null&&t!==void 0?t:e}var Zt;(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"})(Zt||(Zt={}));const N6=32;var ta;(function(e){e[e.VALUE_LENGTH=49152]="VALUE_LENGTH",e[e.BRANCH_LENGTH=16256]="BRANCH_LENGTH",e[e.JUMP_TABLE=127]="JUMP_TABLE"})(ta||(ta={}));function dd(e){return e>=Zt.ZERO&&e<=Zt.NINE}function O6(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_F||e>=Zt.LOWER_A&&e<=Zt.LOWER_F}function L6(e){return e>=Zt.UPPER_A&&e<=Zt.UPPER_Z||e>=Zt.LOWER_A&&e<=Zt.LOWER_Z||dd(e)}function F6(e){return e===Zt.EQUALS||L6(e)}var Qt;(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"})(Qt||(Qt={}));var Mr;(function(e){e[e.Legacy=0]="Legacy",e[e.Strict=1]="Strict",e[e.Attribute=2]="Attribute"})(Mr||(Mr={}));class $6{constructor(t,n,r){this.decodeTree=t,this.emitCodePoint=n,this.errors=r,this.state=Qt.EntityStart,this.consumed=1,this.result=0,this.treeIndex=0,this.excess=1,this.decodeMode=Mr.Strict}startEntity(t){this.decodeMode=t,this.state=Qt.EntityStart,this.result=0,this.treeIndex=0,this.excess=1,this.consumed=1}write(t,n){switch(this.state){case Qt.EntityStart:return t.charCodeAt(n)===Zt.NUM?(this.state=Qt.NumericStart,this.consumed+=1,this.stateNumericStart(t,n+1)):(this.state=Qt.NamedEntity,this.stateNamedEntity(t,n));case Qt.NumericStart:return this.stateNumericStart(t,n);case Qt.NumericDecimal:return this.stateNumericDecimal(t,n);case Qt.NumericHex:return this.stateNumericHex(t,n);case Qt.NamedEntity:return this.stateNamedEntity(t,n)}}stateNumericStart(t,n){return n>=t.length?-1:(t.charCodeAt(n)|N6)===Zt.LOWER_X?(this.state=Qt.NumericHex,this.consumed+=1,this.stateNumericHex(t,n+1)):(this.state=Qt.NumericDecimal,this.stateNumericDecimal(t,n))}addToNumericResult(t,n,r,a){if(n!==r){const o=r-n;this.result=this.result*Math.pow(a,o)+Number.parseInt(t.substr(n,o),a),this.consumed+=o}}stateNumericHex(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(dd(a)||O6(a))n+=1;else return this.addToNumericResult(t,r,n,16),this.emitNumericEntity(a,3)}return this.addToNumericResult(t,r,n,16),-1}stateNumericDecimal(t,n){const r=n;for(;n<t.length;){const a=t.charCodeAt(n);if(dd(a))n+=1;else return this.addToNumericResult(t,r,n,10),this.emitNumericEntity(a,2)}return this.addToNumericResult(t,r,n,10),-1}emitNumericEntity(t,n){var r;if(this.consumed<=n)return(r=this.errors)===null||r===void 0||r.absenceOfDigitsInNumericCharacterReference(this.consumed),0;if(t===Zt.SEMI)this.consumed+=1;else if(this.decodeMode===Mr.Strict)return 0;return this.emitCodePoint(M6(this.result),this.consumed),this.errors&&(t!==Zt.SEMI&&this.errors.missingSemicolonAfterCharacterReference(),this.errors.validateNumericCharacterReference(this.result)),this.consumed}stateNamedEntity(t,n){const{decodeTree:r}=this;let a=r[this.treeIndex],o=(a&ta.VALUE_LENGTH)>>14;for(;n<t.length;n++,this.excess++){const s=t.charCodeAt(n);if(this.treeIndex=B6(r,a,this.treeIndex+Math.max(1,o),s),this.treeIndex<0)return this.result===0||this.decodeMode===Mr.Attribute&&(o===0||F6(s))?0:this.emitNotTerminatedNamedEntity();if(a=r[this.treeIndex],o=(a&ta.VALUE_LENGTH)>>14,o!==0){if(s===Zt.SEMI)return this.emitNamedEntityData(this.treeIndex,o,this.consumed+this.excess);this.decodeMode!==Mr.Strict&&(this.result=this.treeIndex,this.consumed+=this.excess,this.excess=0)}}return-1}emitNotTerminatedNamedEntity(){var t;const{result:n,decodeTree:r}=this,a=(r[n]&ta.VALUE_LENGTH)>>14;return this.emitNamedEntityData(n,a,this.consumed),(t=this.errors)===null||t===void 0||t.missingSemicolonAfterCharacterReference(),this.consumed}emitNamedEntityData(t,n,r){const{decodeTree:a}=this;return this.emitCodePoint(n===1?a[t]&~ta.VALUE_LENGTH:a[t+1],r),n===3&&this.emitCodePoint(a[t+2],r),r}end(){var t;switch(this.state){case Qt.NamedEntity:return this.result!==0&&(this.decodeMode!==Mr.Attribute||this.result===this.treeIndex)?this.emitNotTerminatedNamedEntity():0;case Qt.NumericDecimal:return this.emitNumericEntity(0,2);case Qt.NumericHex:return this.emitNumericEntity(0,3);case Qt.NumericStart:return(t=this.errors)===null||t===void 0||t.absenceOfDigitsInNumericCharacterReference(this.consumed),0;case Qt.EntityStart:return 0}}}function B6(e,t,n,r){const a=(t&ta.BRANCH_LENGTH)>>7,o=t&ta.JUMP_TABLE;if(a===0)return o!==0&&r===o?n:-1;if(o){const l=r-o;return l<0||l>=a?-1:e[n+l]-1}let s=n,i=s+a-1;for(;s<=i;){const l=s+i>>>1,u=e[l];if(u<r)s=l+1;else if(u>r)i=l-1;else return e[l+a]}return-1}var Ce;(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/"})(Ce||(Ce={}));var wa;(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"})(wa||(wa={}));var Un;(function(e){e.NO_QUIRKS="no-quirks",e.QUIRKS="quirks",e.LIMITED_QUIRKS="limited-quirks"})(Un||(Un={}));var ae;(function(e){e.A="a",e.ADDRESS="address",e.ANNOTATION_XML="annotation-xml",e.APPLET="applet",e.AREA="area",e.ARTICLE="article",e.ASIDE="aside",e.B="b",e.BASE="base",e.BASEFONT="basefont",e.BGSOUND="bgsound",e.BIG="big",e.BLOCKQUOTE="blockquote",e.BODY="body",e.BR="br",e.BUTTON="button",e.CAPTION="caption",e.CENTER="center",e.CODE="code",e.COL="col",e.COLGROUP="colgroup",e.DD="dd",e.DESC="desc",e.DETAILS="details",e.DIALOG="dialog",e.DIR="dir",e.DIV="div",e.DL="dl",e.DT="dt",e.EM="em",e.EMBED="embed",e.FIELDSET="fieldset",e.FIGCAPTION="figcaption",e.FIGURE="figure",e.FONT="font",e.FOOTER="footer",e.FOREIGN_OBJECT="foreignObject",e.FORM="form",e.FRAME="frame",e.FRAMESET="frameset",e.H1="h1",e.H2="h2",e.H3="h3",e.H4="h4",e.H5="h5",e.H6="h6",e.HEAD="head",e.HEADER="header",e.HGROUP="hgroup",e.HR="hr",e.HTML="html",e.I="i",e.IMG="img",e.IMAGE="image",e.INPUT="input",e.IFRAME="iframe",e.KEYGEN="keygen",e.LABEL="label",e.LI="li",e.LINK="link",e.LISTING="listing",e.MAIN="main",e.MALIGNMARK="malignmark",e.MARQUEE="marquee",e.MATH="math",e.MENU="menu",e.META="meta",e.MGLYPH="mglyph",e.MI="mi",e.MO="mo",e.MN="mn",e.MS="ms",e.MTEXT="mtext",e.NAV="nav",e.NOBR="nobr",e.NOFRAMES="noframes",e.NOEMBED="noembed",e.NOSCRIPT="noscript",e.OBJECT="object",e.OL="ol",e.OPTGROUP="optgroup",e.OPTION="option",e.P="p",e.PARAM="param",e.PLAINTEXT="plaintext",e.PRE="pre",e.RB="rb",e.RP="rp",e.RT="rt",e.RTC="rtc",e.RUBY="ruby",e.S="s",e.SCRIPT="script",e.SEARCH="search",e.SECTION="section",e.SELECT="select",e.SOURCE="source",e.SMALL="small",e.SPAN="span",e.STRIKE="strike",e.STRONG="strong",e.STYLE="style",e.SUB="sub",e.SUMMARY="summary",e.SUP="sup",e.TABLE="table",e.TBODY="tbody",e.TEMPLATE="template",e.TEXTAREA="textarea",e.TFOOT="tfoot",e.TD="td",e.TH="th",e.THEAD="thead",e.TITLE="title",e.TR="tr",e.TRACK="track",e.TT="tt",e.U="u",e.UL="ul",e.SVG="svg",e.VAR="var",e.WBR="wbr",e.XMP="xmp"})(ae||(ae={}));var y;(function(e){e[e.UNKNOWN=0]="UNKNOWN",e[e.A=1]="A",e[e.ADDRESS=2]="ADDRESS",e[e.ANNOTATION_XML=3]="ANNOTATION_XML",e[e.APPLET=4]="APPLET",e[e.AREA=5]="AREA",e[e.ARTICLE=6]="ARTICLE",e[e.ASIDE=7]="ASIDE",e[e.B=8]="B",e[e.BASE=9]="BASE",e[e.BASEFONT=10]="BASEFONT",e[e.BGSOUND=11]="BGSOUND",e[e.BIG=12]="BIG",e[e.BLOCKQUOTE=13]="BLOCKQUOTE",e[e.BODY=14]="BODY",e[e.BR=15]="BR",e[e.BUTTON=16]="BUTTON",e[e.CAPTION=17]="CAPTION",e[e.CENTER=18]="CENTER",e[e.CODE=19]="CODE",e[e.COL=20]="COL",e[e.COLGROUP=21]="COLGROUP",e[e.DD=22]="DD",e[e.DESC=23]="DESC",e[e.DETAILS=24]="DETAILS",e[e.DIALOG=25]="DIALOG",e[e.DIR=26]="DIR",e[e.DIV=27]="DIV",e[e.DL=28]="DL",e[e.DT=29]="DT",e[e.EM=30]="EM",e[e.EMBED=31]="EMBED",e[e.FIELDSET=32]="FIELDSET",e[e.FIGCAPTION=33]="FIGCAPTION",e[e.FIGURE=34]="FIGURE",e[e.FONT=35]="FONT",e[e.FOOTER=36]="FOOTER",e[e.FOREIGN_OBJECT=37]="FOREIGN_OBJECT",e[e.FORM=38]="FORM",e[e.FRAME=39]="FRAME",e[e.FRAMESET=40]="FRAMESET",e[e.H1=41]="H1",e[e.H2=42]="H2",e[e.H3=43]="H3",e[e.H4=44]="H4",e[e.H5=45]="H5",e[e.H6=46]="H6",e[e.HEAD=47]="HEAD",e[e.HEADER=48]="HEADER",e[e.HGROUP=49]="HGROUP",e[e.HR=50]="HR",e[e.HTML=51]="HTML",e[e.I=52]="I",e[e.IMG=53]="IMG",e[e.IMAGE=54]="IMAGE",e[e.INPUT=55]="INPUT",e[e.IFRAME=56]="IFRAME",e[e.KEYGEN=57]="KEYGEN",e[e.LABEL=58]="LABEL",e[e.LI=59]="LI",e[e.LINK=60]="LINK",e[e.LISTING=61]="LISTING",e[e.MAIN=62]="MAIN",e[e.MALIGNMARK=63]="MALIGNMARK",e[e.MARQUEE=64]="MARQUEE",e[e.MATH=65]="MATH",e[e.MENU=66]="MENU",e[e.META=67]="META",e[e.MGLYPH=68]="MGLYPH",e[e.MI=69]="MI",e[e.MO=70]="MO",e[e.MN=71]="MN",e[e.MS=72]="MS",e[e.MTEXT=73]="MTEXT",e[e.NAV=74]="NAV",e[e.NOBR=75]="NOBR",e[e.NOFRAMES=76]="NOFRAMES",e[e.NOEMBED=77]="NOEMBED",e[e.NOSCRIPT=78]="NOSCRIPT",e[e.OBJECT=79]="OBJECT",e[e.OL=80]="OL",e[e.OPTGROUP=81]="OPTGROUP",e[e.OPTION=82]="OPTION",e[e.P=83]="P",e[e.PARAM=84]="PARAM",e[e.PLAINTEXT=85]="PLAINTEXT",e[e.PRE=86]="PRE",e[e.RB=87]="RB",e[e.RP=88]="RP",e[e.RT=89]="RT",e[e.RTC=90]="RTC",e[e.RUBY=91]="RUBY",e[e.S=92]="S",e[e.SCRIPT=93]="SCRIPT",e[e.SEARCH=94]="SEARCH",e[e.SECTION=95]="SECTION",e[e.SELECT=96]="SELECT",e[e.SOURCE=97]="SOURCE",e[e.SMALL=98]="SMALL",e[e.SPAN=99]="SPAN",e[e.STRIKE=100]="STRIKE",e[e.STRONG=101]="STRONG",e[e.STYLE=102]="STYLE",e[e.SUB=103]="SUB",e[e.SUMMARY=104]="SUMMARY",e[e.SUP=105]="SUP",e[e.TABLE=106]="TABLE",e[e.TBODY=107]="TBODY",e[e.TEMPLATE=108]="TEMPLATE",e[e.TEXTAREA=109]="TEXTAREA",e[e.TFOOT=110]="TFOOT",e[e.TD=111]="TD",e[e.TH=112]="TH",e[e.THEAD=113]="THEAD",e[e.TITLE=114]="TITLE",e[e.TR=115]="TR",e[e.TRACK=116]="TRACK",e[e.TT=117]="TT",e[e.U=118]="U",e[e.UL=119]="UL",e[e.SVG=120]="SVG",e[e.VAR=121]="VAR",e[e.WBR=122]="WBR",e[e.XMP=123]="XMP"})(y||(y={}));const j6=new Map([[ae.A,y.A],[ae.ADDRESS,y.ADDRESS],[ae.ANNOTATION_XML,y.ANNOTATION_XML],[ae.APPLET,y.APPLET],[ae.AREA,y.AREA],[ae.ARTICLE,y.ARTICLE],[ae.ASIDE,y.ASIDE],[ae.B,y.B],[ae.BASE,y.BASE],[ae.BASEFONT,y.BASEFONT],[ae.BGSOUND,y.BGSOUND],[ae.BIG,y.BIG],[ae.BLOCKQUOTE,y.BLOCKQUOTE],[ae.BODY,y.BODY],[ae.BR,y.BR],[ae.BUTTON,y.BUTTON],[ae.CAPTION,y.CAPTION],[ae.CENTER,y.CENTER],[ae.CODE,y.CODE],[ae.COL,y.COL],[ae.COLGROUP,y.COLGROUP],[ae.DD,y.DD],[ae.DESC,y.DESC],[ae.DETAILS,y.DETAILS],[ae.DIALOG,y.DIALOG],[ae.DIR,y.DIR],[ae.DIV,y.DIV],[ae.DL,y.DL],[ae.DT,y.DT],[ae.EM,y.EM],[ae.EMBED,y.EMBED],[ae.FIELDSET,y.FIELDSET],[ae.FIGCAPTION,y.FIGCAPTION],[ae.FIGURE,y.FIGURE],[ae.FONT,y.FONT],[ae.FOOTER,y.FOOTER],[ae.FOREIGN_OBJECT,y.FOREIGN_OBJECT],[ae.FORM,y.FORM],[ae.FRAME,y.FRAME],[ae.FRAMESET,y.FRAMESET],[ae.H1,y.H1],[ae.H2,y.H2],[ae.H3,y.H3],[ae.H4,y.H4],[ae.H5,y.H5],[ae.H6,y.H6],[ae.HEAD,y.HEAD],[ae.HEADER,y.HEADER],[ae.HGROUP,y.HGROUP],[ae.HR,y.HR],[ae.HTML,y.HTML],[ae.I,y.I],[ae.IMG,y.IMG],[ae.IMAGE,y.IMAGE],[ae.INPUT,y.INPUT],[ae.IFRAME,y.IFRAME],[ae.KEYGEN,y.KEYGEN],[ae.LABEL,y.LABEL],[ae.LI,y.LI],[ae.LINK,y.LINK],[ae.LISTING,y.LISTING],[ae.MAIN,y.MAIN],[ae.MALIGNMARK,y.MALIGNMARK],[ae.MARQUEE,y.MARQUEE],[ae.MATH,y.MATH],[ae.MENU,y.MENU],[ae.META,y.META],[ae.MGLYPH,y.MGLYPH],[ae.MI,y.MI],[ae.MO,y.MO],[ae.MN,y.MN],[ae.MS,y.MS],[ae.MTEXT,y.MTEXT],[ae.NAV,y.NAV],[ae.NOBR,y.NOBR],[ae.NOFRAMES,y.NOFRAMES],[ae.NOEMBED,y.NOEMBED],[ae.NOSCRIPT,y.NOSCRIPT],[ae.OBJECT,y.OBJECT],[ae.OL,y.OL],[ae.OPTGROUP,y.OPTGROUP],[ae.OPTION,y.OPTION],[ae.P,y.P],[ae.PARAM,y.PARAM],[ae.PLAINTEXT,y.PLAINTEXT],[ae.PRE,y.PRE],[ae.RB,y.RB],[ae.RP,y.RP],[ae.RT,y.RT],[ae.RTC,y.RTC],[ae.RUBY,y.RUBY],[ae.S,y.S],[ae.SCRIPT,y.SCRIPT],[ae.SEARCH,y.SEARCH],[ae.SECTION,y.SECTION],[ae.SELECT,y.SELECT],[ae.SOURCE,y.SOURCE],[ae.SMALL,y.SMALL],[ae.SPAN,y.SPAN],[ae.STRIKE,y.STRIKE],[ae.STRONG,y.STRONG],[ae.STYLE,y.STYLE],[ae.SUB,y.SUB],[ae.SUMMARY,y.SUMMARY],[ae.SUP,y.SUP],[ae.TABLE,y.TABLE],[ae.TBODY,y.TBODY],[ae.TEMPLATE,y.TEMPLATE],[ae.TEXTAREA,y.TEXTAREA],[ae.TFOOT,y.TFOOT],[ae.TD,y.TD],[ae.TH,y.TH],[ae.THEAD,y.THEAD],[ae.TITLE,y.TITLE],[ae.TR,y.TR],[ae.TRACK,y.TRACK],[ae.TT,y.TT],[ae.U,y.U],[ae.UL,y.UL],[ae.SVG,y.SVG],[ae.VAR,y.VAR],[ae.WBR,y.WBR],[ae.XMP,y.XMP]]);function Fo(e){var t;return(t=j6.get(e))!==null&&t!==void 0?t:y.UNKNOWN}const ke=y,H6={[Ce.HTML]:new Set([ke.ADDRESS,ke.APPLET,ke.AREA,ke.ARTICLE,ke.ASIDE,ke.BASE,ke.BASEFONT,ke.BGSOUND,ke.BLOCKQUOTE,ke.BODY,ke.BR,ke.BUTTON,ke.CAPTION,ke.CENTER,ke.COL,ke.COLGROUP,ke.DD,ke.DETAILS,ke.DIR,ke.DIV,ke.DL,ke.DT,ke.EMBED,ke.FIELDSET,ke.FIGCAPTION,ke.FIGURE,ke.FOOTER,ke.FORM,ke.FRAME,ke.FRAMESET,ke.H1,ke.H2,ke.H3,ke.H4,ke.H5,ke.H6,ke.HEAD,ke.HEADER,ke.HGROUP,ke.HR,ke.HTML,ke.IFRAME,ke.IMG,ke.INPUT,ke.LI,ke.LINK,ke.LISTING,ke.MAIN,ke.MARQUEE,ke.MENU,ke.META,ke.NAV,ke.NOEMBED,ke.NOFRAMES,ke.NOSCRIPT,ke.OBJECT,ke.OL,ke.P,ke.PARAM,ke.PLAINTEXT,ke.PRE,ke.SCRIPT,ke.SECTION,ke.SELECT,ke.SOURCE,ke.STYLE,ke.SUMMARY,ke.TABLE,ke.TBODY,ke.TD,ke.TEMPLATE,ke.TEXTAREA,ke.TFOOT,ke.TH,ke.THEAD,ke.TITLE,ke.TR,ke.TRACK,ke.UL,ke.WBR,ke.XMP]),[Ce.MATHML]:new Set([ke.MI,ke.MO,ke.MN,ke.MS,ke.MTEXT,ke.ANNOTATION_XML]),[Ce.SVG]:new Set([ke.TITLE,ke.FOREIGN_OBJECT,ke.DESC]),[Ce.XLINK]:new Set,[Ce.XML]:new Set,[Ce.XMLNS]:new Set},pd=new Set([ke.H1,ke.H2,ke.H3,ke.H4,ke.H5,ke.H6]);ae.STYLE,ae.SCRIPT,ae.XMP,ae.IFRAME,ae.NOEMBED,ae.NOFRAMES,ae.PLAINTEXT;var z;(function(e){e[e.DATA=0]="DATA",e[e.RCDATA=1]="RCDATA",e[e.RAWTEXT=2]="RAWTEXT",e[e.SCRIPT_DATA=3]="SCRIPT_DATA",e[e.PLAINTEXT=4]="PLAINTEXT",e[e.TAG_OPEN=5]="TAG_OPEN",e[e.END_TAG_OPEN=6]="END_TAG_OPEN",e[e.TAG_NAME=7]="TAG_NAME",e[e.RCDATA_LESS_THAN_SIGN=8]="RCDATA_LESS_THAN_SIGN",e[e.RCDATA_END_TAG_OPEN=9]="RCDATA_END_TAG_OPEN",e[e.RCDATA_END_TAG_NAME=10]="RCDATA_END_TAG_NAME",e[e.RAWTEXT_LESS_THAN_SIGN=11]="RAWTEXT_LESS_THAN_SIGN",e[e.RAWTEXT_END_TAG_OPEN=12]="RAWTEXT_END_TAG_OPEN",e[e.RAWTEXT_END_TAG_NAME=13]="RAWTEXT_END_TAG_NAME",e[e.SCRIPT_DATA_LESS_THAN_SIGN=14]="SCRIPT_DATA_LESS_THAN_SIGN",e[e.SCRIPT_DATA_END_TAG_OPEN=15]="SCRIPT_DATA_END_TAG_OPEN",e[e.SCRIPT_DATA_END_TAG_NAME=16]="SCRIPT_DATA_END_TAG_NAME",e[e.SCRIPT_DATA_ESCAPE_START=17]="SCRIPT_DATA_ESCAPE_START",e[e.SCRIPT_DATA_ESCAPE_START_DASH=18]="SCRIPT_DATA_ESCAPE_START_DASH",e[e.SCRIPT_DATA_ESCAPED=19]="SCRIPT_DATA_ESCAPED",e[e.SCRIPT_DATA_ESCAPED_DASH=20]="SCRIPT_DATA_ESCAPED_DASH",e[e.SCRIPT_DATA_ESCAPED_DASH_DASH=21]="SCRIPT_DATA_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN=22]="SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_OPEN=23]="SCRIPT_DATA_ESCAPED_END_TAG_OPEN",e[e.SCRIPT_DATA_ESCAPED_END_TAG_NAME=24]="SCRIPT_DATA_ESCAPED_END_TAG_NAME",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_START=25]="SCRIPT_DATA_DOUBLE_ESCAPE_START",e[e.SCRIPT_DATA_DOUBLE_ESCAPED=26]="SCRIPT_DATA_DOUBLE_ESCAPED",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH=27]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH=28]="SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH",e[e.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN=29]="SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN",e[e.SCRIPT_DATA_DOUBLE_ESCAPE_END=30]="SCRIPT_DATA_DOUBLE_ESCAPE_END",e[e.BEFORE_ATTRIBUTE_NAME=31]="BEFORE_ATTRIBUTE_NAME",e[e.ATTRIBUTE_NAME=32]="ATTRIBUTE_NAME",e[e.AFTER_ATTRIBUTE_NAME=33]="AFTER_ATTRIBUTE_NAME",e[e.BEFORE_ATTRIBUTE_VALUE=34]="BEFORE_ATTRIBUTE_VALUE",e[e.ATTRIBUTE_VALUE_DOUBLE_QUOTED=35]="ATTRIBUTE_VALUE_DOUBLE_QUOTED",e[e.ATTRIBUTE_VALUE_SINGLE_QUOTED=36]="ATTRIBUTE_VALUE_SINGLE_QUOTED",e[e.ATTRIBUTE_VALUE_UNQUOTED=37]="ATTRIBUTE_VALUE_UNQUOTED",e[e.AFTER_ATTRIBUTE_VALUE_QUOTED=38]="AFTER_ATTRIBUTE_VALUE_QUOTED",e[e.SELF_CLOSING_START_TAG=39]="SELF_CLOSING_START_TAG",e[e.BOGUS_COMMENT=40]="BOGUS_COMMENT",e[e.MARKUP_DECLARATION_OPEN=41]="MARKUP_DECLARATION_OPEN",e[e.COMMENT_START=42]="COMMENT_START",e[e.COMMENT_START_DASH=43]="COMMENT_START_DASH",e[e.COMMENT=44]="COMMENT",e[e.COMMENT_LESS_THAN_SIGN=45]="COMMENT_LESS_THAN_SIGN",e[e.COMMENT_LESS_THAN_SIGN_BANG=46]="COMMENT_LESS_THAN_SIGN_BANG",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH=47]="COMMENT_LESS_THAN_SIGN_BANG_DASH",e[e.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH=48]="COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH",e[e.COMMENT_END_DASH=49]="COMMENT_END_DASH",e[e.COMMENT_END=50]="COMMENT_END",e[e.COMMENT_END_BANG=51]="COMMENT_END_BANG",e[e.DOCTYPE=52]="DOCTYPE",e[e.BEFORE_DOCTYPE_NAME=53]="BEFORE_DOCTYPE_NAME",e[e.DOCTYPE_NAME=54]="DOCTYPE_NAME",e[e.AFTER_DOCTYPE_NAME=55]="AFTER_DOCTYPE_NAME",e[e.AFTER_DOCTYPE_PUBLIC_KEYWORD=56]="AFTER_DOCTYPE_PUBLIC_KEYWORD",e[e.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER=57]="BEFORE_DOCTYPE_PUBLIC_IDENTIFIER",e[e.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED=58]="DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED=59]="DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_PUBLIC_IDENTIFIER=60]="AFTER_DOCTYPE_PUBLIC_IDENTIFIER",e[e.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS=61]="BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS",e[e.AFTER_DOCTYPE_SYSTEM_KEYWORD=62]="AFTER_DOCTYPE_SYSTEM_KEYWORD",e[e.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER=63]="BEFORE_DOCTYPE_SYSTEM_IDENTIFIER",e[e.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED=64]="DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED",e[e.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED=65]="DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED",e[e.AFTER_DOCTYPE_SYSTEM_IDENTIFIER=66]="AFTER_DOCTYPE_SYSTEM_IDENTIFIER",e[e.BOGUS_DOCTYPE=67]="BOGUS_DOCTYPE",e[e.CDATA_SECTION=68]="CDATA_SECTION",e[e.CDATA_SECTION_BRACKET=69]="CDATA_SECTION_BRACKET",e[e.CDATA_SECTION_END=70]="CDATA_SECTION_END",e[e.CHARACTER_REFERENCE=71]="CHARACTER_REFERENCE",e[e.AMBIGUOUS_AMPERSAND=72]="AMBIGUOUS_AMPERSAND"})(z||(z={}));const $t={DATA:z.DATA,RCDATA:z.RCDATA,RAWTEXT:z.RAWTEXT,SCRIPT_DATA:z.SCRIPT_DATA,PLAINTEXT:z.PLAINTEXT,CDATA_SECTION:z.CDATA_SECTION};function U6(e){return e>=j.DIGIT_0&&e<=j.DIGIT_9}function ys(e){return e>=j.LATIN_CAPITAL_A&&e<=j.LATIN_CAPITAL_Z}function z6(e){return e>=j.LATIN_SMALL_A&&e<=j.LATIN_SMALL_Z}function Xr(e){return z6(e)||ys(e)}function Ym(e){return Xr(e)||U6(e)}function Ri(e){return e+32}function i1(e){return e===j.SPACE||e===j.LINE_FEED||e===j.TABULATION||e===j.FORM_FEED}function Gm(e){return i1(e)||e===j.SOLIDUS||e===j.GREATER_THAN_SIGN}function V6(e){return e===j.NULL?fe.nullCharacterReference:e>1114111?fe.characterReferenceOutsideUnicodeRange:r1(e)?fe.surrogateCharacterReference:o1(e)?fe.noncharacterCharacterReference:a1(e)||e===j.CARRIAGE_RETURN?fe.controlCharacterReference:null}class W6{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=z.DATA,this.returnState=z.DATA,this.entityStartPos=0,this.consumedAfterSnapshot=-1,this.currentCharacterToken=null,this.currentToken=null,this.currentAttr={name:"",value:""},this.preprocessor=new D6(n),this.currentLocation=this.getCurrentLocation(-1),this.entityDecoder=new $6(P6,(r,a)=>{this.preprocessor.pos=this.entityStartPos+a-1,this._flushCodePointConsumedAsCharacterReference(r)},n.onParseError?{missingSemicolonAfterCharacterReference:()=>{this._err(fe.missingSemicolonAfterCharacterReference,1)},absenceOfDigitsInNumericCharacterReference:r=>{this._err(fe.absenceOfDigitsInNumericCharacterReference,this.entityStartPos-this.preprocessor.pos+r)},validateNumericCharacterReference:r=>{const a=V6(r);a&&this._err(a,1)}}:void 0)}_err(t,n=0){var r,a;(a=(r=this.handler).onParseError)===null||a===void 0||a.call(r,this.preprocessor.getError(t,n))}getCurrentLocation(t){return this.options.sourceCodeLocationInfo?{startLine:this.preprocessor.line,startCol:this.preprocessor.col-t,startOffset:this.preprocessor.offset-t,endLine:-1,endCol:-1,endOffset:-1}:null}_runParsingLoop(){if(!this.inLoop){for(this.inLoop=!0;this.active&&!this.paused;){this.consumedAfterSnapshot=0;const t=this._consume();this._ensureHibernation()||this._callState(t)}this.inLoop=!1}}pause(){this.paused=!0}resume(t){if(!this.paused)throw new Error("Parser was already resumed");this.paused=!1,!this.inLoop&&(this._runParsingLoop(),this.paused||t?.())}write(t,n,r){this.active=!0,this.preprocessor.write(t,n),this._runParsingLoop(),this.paused||r?.()}insertHtmlAtCurrentPos(t){this.active=!0,this.preprocessor.insertHtmlAtCurrentPos(t),this._runParsingLoop()}_ensureHibernation(){return this.preprocessor.endOfChunkHit?(this.preprocessor.retreat(this.consumedAfterSnapshot),this.consumedAfterSnapshot=0,this.active=!1,!0):!1}_consume(){return this.consumedAfterSnapshot++,this.preprocessor.advance()}_advanceBy(t){this.consumedAfterSnapshot+=t;for(let n=0;n<t;n++)this.preprocessor.advance()}_consumeSequenceIfMatch(t,n){return this.preprocessor.startsWith(t,n)?(this._advanceBy(t.length-1),!0):!1}_createStartTagToken(){this.currentToken={type:rt.START_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(1)}}_createEndTagToken(){this.currentToken={type:rt.END_TAG,tagName:"",tagID:y.UNKNOWN,selfClosing:!1,ackSelfClosing:!1,attrs:[],location:this.getCurrentLocation(2)}}_createCommentToken(t){this.currentToken={type:rt.COMMENT,data:"",location:this.getCurrentLocation(t)}}_createDoctypeToken(t){this.currentToken={type:rt.DOCTYPE,name:t,forceQuirks:!1,publicId:null,systemId:null,location:this.currentLocation}}_createCharacterToken(t,n){this.currentCharacterToken={type:t,chars:n,location:this.currentLocation}}_createAttr(t){this.currentAttr={name:t,value:""},this.currentLocation=this.getCurrentLocation(0)}_leaveAttrName(){var t,n;const r=this.currentToken;if(s1(r,this.currentAttr.name)===null){if(r.attrs.push(this.currentAttr),r.location&&this.currentLocation){const a=(t=(n=r.location).attrs)!==null&&t!==void 0?t:n.attrs=Object.create(null);a[this.currentAttr.name]=this.currentLocation,this._leaveAttrValue()}}else this._err(fe.duplicateAttribute)}_leaveAttrValue(){this.currentLocation&&(this.currentLocation.endLine=this.preprocessor.line,this.currentLocation.endCol=this.preprocessor.col,this.currentLocation.endOffset=this.preprocessor.offset)}prepareToken(t){this._emitCurrentCharacterToken(t.location),this.currentToken=null,t.location&&(t.location.endLine=this.preprocessor.line,t.location.endCol=this.preprocessor.col+1,t.location.endOffset=this.preprocessor.offset+1),this.currentLocation=this.getCurrentLocation(-1)}emitCurrentTagToken(){const t=this.currentToken;this.prepareToken(t),t.tagID=Fo(t.tagName),t.type===rt.START_TAG?(this.lastStartTagName=t.tagName,this.handler.onStartTag(t)):(t.attrs.length>0&&this._err(fe.endTagWithAttributes),t.selfClosing&&this._err(fe.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 rt.CHARACTER:{this.handler.onCharacter(this.currentCharacterToken);break}case rt.NULL_CHARACTER:{this.handler.onNullCharacter(this.currentCharacterToken);break}case rt.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:rt.EOF,location:t}),this.active=!1}_appendCharToCurrentCharacterToken(t,n){if(this.currentCharacterToken)if(this.currentCharacterToken.type===t){this.currentCharacterToken.chars+=n;return}else this.currentLocation=this.getCurrentLocation(0),this._emitCurrentCharacterToken(this.currentLocation),this.preprocessor.dropParsedChunk();this._createCharacterToken(t,n)}_emitCodePoint(t){const n=i1(t)?rt.WHITESPACE_CHARACTER:t===j.NULL?rt.NULL_CHARACTER:rt.CHARACTER;this._appendCharToCurrentCharacterToken(n,String.fromCodePoint(t))}_emitChars(t){this._appendCharToCurrentCharacterToken(rt.CHARACTER,t)}_startCharacterReference(){this.returnState=this.state,this.state=z.CHARACTER_REFERENCE,this.entityStartPos=this.preprocessor.pos,this.entityDecoder.startEntity(this._isCharacterReferenceInAttribute()?Mr.Attribute:Mr.Legacy)}_isCharacterReferenceInAttribute(){return this.returnState===z.ATTRIBUTE_VALUE_DOUBLE_QUOTED||this.returnState===z.ATTRIBUTE_VALUE_SINGLE_QUOTED||this.returnState===z.ATTRIBUTE_VALUE_UNQUOTED}_flushCodePointConsumedAsCharacterReference(t){this._isCharacterReferenceInAttribute()?this.currentAttr.value+=String.fromCodePoint(t):this._emitCodePoint(t)}_callState(t){switch(this.state){case z.DATA:{this._stateData(t);break}case z.RCDATA:{this._stateRcdata(t);break}case z.RAWTEXT:{this._stateRawtext(t);break}case z.SCRIPT_DATA:{this._stateScriptData(t);break}case z.PLAINTEXT:{this._statePlaintext(t);break}case z.TAG_OPEN:{this._stateTagOpen(t);break}case z.END_TAG_OPEN:{this._stateEndTagOpen(t);break}case z.TAG_NAME:{this._stateTagName(t);break}case z.RCDATA_LESS_THAN_SIGN:{this._stateRcdataLessThanSign(t);break}case z.RCDATA_END_TAG_OPEN:{this._stateRcdataEndTagOpen(t);break}case z.RCDATA_END_TAG_NAME:{this._stateRcdataEndTagName(t);break}case z.RAWTEXT_LESS_THAN_SIGN:{this._stateRawtextLessThanSign(t);break}case z.RAWTEXT_END_TAG_OPEN:{this._stateRawtextEndTagOpen(t);break}case z.RAWTEXT_END_TAG_NAME:{this._stateRawtextEndTagName(t);break}case z.SCRIPT_DATA_LESS_THAN_SIGN:{this._stateScriptDataLessThanSign(t);break}case z.SCRIPT_DATA_END_TAG_OPEN:{this._stateScriptDataEndTagOpen(t);break}case z.SCRIPT_DATA_END_TAG_NAME:{this._stateScriptDataEndTagName(t);break}case z.SCRIPT_DATA_ESCAPE_START:{this._stateScriptDataEscapeStart(t);break}case z.SCRIPT_DATA_ESCAPE_START_DASH:{this._stateScriptDataEscapeStartDash(t);break}case z.SCRIPT_DATA_ESCAPED:{this._stateScriptDataEscaped(t);break}case z.SCRIPT_DATA_ESCAPED_DASH:{this._stateScriptDataEscapedDash(t);break}case z.SCRIPT_DATA_ESCAPED_DASH_DASH:{this._stateScriptDataEscapedDashDash(t);break}case z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataEscapedLessThanSign(t);break}case z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:{this._stateScriptDataEscapedEndTagOpen(t);break}case z.SCRIPT_DATA_ESCAPED_END_TAG_NAME:{this._stateScriptDataEscapedEndTagName(t);break}case z.SCRIPT_DATA_DOUBLE_ESCAPE_START:{this._stateScriptDataDoubleEscapeStart(t);break}case z.SCRIPT_DATA_DOUBLE_ESCAPED:{this._stateScriptDataDoubleEscaped(t);break}case z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH:{this._stateScriptDataDoubleEscapedDash(t);break}case z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH:{this._stateScriptDataDoubleEscapedDashDash(t);break}case z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN:{this._stateScriptDataDoubleEscapedLessThanSign(t);break}case z.SCRIPT_DATA_DOUBLE_ESCAPE_END:{this._stateScriptDataDoubleEscapeEnd(t);break}case z.BEFORE_ATTRIBUTE_NAME:{this._stateBeforeAttributeName(t);break}case z.ATTRIBUTE_NAME:{this._stateAttributeName(t);break}case z.AFTER_ATTRIBUTE_NAME:{this._stateAfterAttributeName(t);break}case z.BEFORE_ATTRIBUTE_VALUE:{this._stateBeforeAttributeValue(t);break}case z.ATTRIBUTE_VALUE_DOUBLE_QUOTED:{this._stateAttributeValueDoubleQuoted(t);break}case z.ATTRIBUTE_VALUE_SINGLE_QUOTED:{this._stateAttributeValueSingleQuoted(t);break}case z.ATTRIBUTE_VALUE_UNQUOTED:{this._stateAttributeValueUnquoted(t);break}case z.AFTER_ATTRIBUTE_VALUE_QUOTED:{this._stateAfterAttributeValueQuoted(t);break}case z.SELF_CLOSING_START_TAG:{this._stateSelfClosingStartTag(t);break}case z.BOGUS_COMMENT:{this._stateBogusComment(t);break}case z.MARKUP_DECLARATION_OPEN:{this._stateMarkupDeclarationOpen(t);break}case z.COMMENT_START:{this._stateCommentStart(t);break}case z.COMMENT_START_DASH:{this._stateCommentStartDash(t);break}case z.COMMENT:{this._stateComment(t);break}case z.COMMENT_LESS_THAN_SIGN:{this._stateCommentLessThanSign(t);break}case z.COMMENT_LESS_THAN_SIGN_BANG:{this._stateCommentLessThanSignBang(t);break}case z.COMMENT_LESS_THAN_SIGN_BANG_DASH:{this._stateCommentLessThanSignBangDash(t);break}case z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:{this._stateCommentLessThanSignBangDashDash(t);break}case z.COMMENT_END_DASH:{this._stateCommentEndDash(t);break}case z.COMMENT_END:{this._stateCommentEnd(t);break}case z.COMMENT_END_BANG:{this._stateCommentEndBang(t);break}case z.DOCTYPE:{this._stateDoctype(t);break}case z.BEFORE_DOCTYPE_NAME:{this._stateBeforeDoctypeName(t);break}case z.DOCTYPE_NAME:{this._stateDoctypeName(t);break}case z.AFTER_DOCTYPE_NAME:{this._stateAfterDoctypeName(t);break}case z.AFTER_DOCTYPE_PUBLIC_KEYWORD:{this._stateAfterDoctypePublicKeyword(t);break}case z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateBeforeDoctypePublicIdentifier(t);break}case z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypePublicIdentifierDoubleQuoted(t);break}case z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypePublicIdentifierSingleQuoted(t);break}case z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER:{this._stateAfterDoctypePublicIdentifier(t);break}case z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS:{this._stateBetweenDoctypePublicAndSystemIdentifiers(t);break}case z.AFTER_DOCTYPE_SYSTEM_KEYWORD:{this._stateAfterDoctypeSystemKeyword(t);break}case z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateBeforeDoctypeSystemIdentifier(t);break}case z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED:{this._stateDoctypeSystemIdentifierDoubleQuoted(t);break}case z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED:{this._stateDoctypeSystemIdentifierSingleQuoted(t);break}case z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER:{this._stateAfterDoctypeSystemIdentifier(t);break}case z.BOGUS_DOCTYPE:{this._stateBogusDoctype(t);break}case z.CDATA_SECTION:{this._stateCdataSection(t);break}case z.CDATA_SECTION_BRACKET:{this._stateCdataSectionBracket(t);break}case z.CDATA_SECTION_END:{this._stateCdataSectionEnd(t);break}case z.CHARACTER_REFERENCE:{this._stateCharacterReference();break}case z.AMBIGUOUS_AMPERSAND:{this._stateAmbiguousAmpersand(t);break}default:throw new Error("Unknown state")}}_stateData(t){switch(t){case j.LESS_THAN_SIGN:{this.state=z.TAG_OPEN;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this._emitCodePoint(t);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRcdata(t){switch(t){case j.AMPERSAND:{this._startCharacterReference();break}case j.LESS_THAN_SIGN:{this.state=z.RCDATA_LESS_THAN_SIGN;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(Mt);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateRawtext(t){switch(t){case j.LESS_THAN_SIGN:{this.state=z.RAWTEXT_LESS_THAN_SIGN;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(Mt);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptData(t){switch(t){case j.LESS_THAN_SIGN:{this.state=z.SCRIPT_DATA_LESS_THAN_SIGN;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(Mt);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_statePlaintext(t){switch(t){case j.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(Mt);break}case j.EOF:{this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateTagOpen(t){if(Xr(t))this._createStartTagToken(),this.state=z.TAG_NAME,this._stateTagName(t);else switch(t){case j.EXCLAMATION_MARK:{this.state=z.MARKUP_DECLARATION_OPEN;break}case j.SOLIDUS:{this.state=z.END_TAG_OPEN;break}case j.QUESTION_MARK:{this._err(fe.unexpectedQuestionMarkInsteadOfTagName),this._createCommentToken(1),this.state=z.BOGUS_COMMENT,this._stateBogusComment(t);break}case j.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("<"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._emitChars("<"),this.state=z.DATA,this._stateData(t)}}_stateEndTagOpen(t){if(Xr(t))this._createEndTagToken(),this.state=z.TAG_NAME,this._stateTagName(t);else switch(t){case j.GREATER_THAN_SIGN:{this._err(fe.missingEndTagName),this.state=z.DATA;break}case j.EOF:{this._err(fe.eofBeforeTagName),this._emitChars("</"),this._emitEOFToken();break}default:this._err(fe.invalidFirstCharacterOfTagName),this._createCommentToken(2),this.state=z.BOGUS_COMMENT,this._stateBogusComment(t)}}_stateTagName(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=z.BEFORE_ATTRIBUTE_NAME;break}case j.SOLIDUS:{this.state=z.SELF_CLOSING_START_TAG;break}case j.GREATER_THAN_SIGN:{this.state=z.DATA,this.emitCurrentTagToken();break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.tagName+=Mt;break}case j.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:n.tagName+=String.fromCodePoint(ys(t)?Ri(t):t)}}_stateRcdataLessThanSign(t){t===j.SOLIDUS?this.state=z.RCDATA_END_TAG_OPEN:(this._emitChars("<"),this.state=z.RCDATA,this._stateRcdata(t))}_stateRcdataEndTagOpen(t){Xr(t)?(this.state=z.RCDATA_END_TAG_NAME,this._stateRcdataEndTagName(t)):(this._emitChars("</"),this.state=z.RCDATA,this._stateRcdata(t))}handleSpecialEndTag(t){if(!this.preprocessor.startsWith(this.lastStartTagName,!1))return!this._ensureHibernation();this._createEndTagToken();const n=this.currentToken;switch(n.tagName=this.lastStartTagName,this.preprocessor.peek(this.lastStartTagName.length)){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:return this._advanceBy(this.lastStartTagName.length),this.state=z.BEFORE_ATTRIBUTE_NAME,!1;case j.SOLIDUS:return this._advanceBy(this.lastStartTagName.length),this.state=z.SELF_CLOSING_START_TAG,!1;case j.GREATER_THAN_SIGN:return this._advanceBy(this.lastStartTagName.length),this.emitCurrentTagToken(),this.state=z.DATA,!1;default:return!this._ensureHibernation()}}_stateRcdataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=z.RCDATA,this._stateRcdata(t))}_stateRawtextLessThanSign(t){t===j.SOLIDUS?this.state=z.RAWTEXT_END_TAG_OPEN:(this._emitChars("<"),this.state=z.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagOpen(t){Xr(t)?(this.state=z.RAWTEXT_END_TAG_NAME,this._stateRawtextEndTagName(t)):(this._emitChars("</"),this.state=z.RAWTEXT,this._stateRawtext(t))}_stateRawtextEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=z.RAWTEXT,this._stateRawtext(t))}_stateScriptDataLessThanSign(t){switch(t){case j.SOLIDUS:{this.state=z.SCRIPT_DATA_END_TAG_OPEN;break}case j.EXCLAMATION_MARK:{this.state=z.SCRIPT_DATA_ESCAPE_START,this._emitChars("<!");break}default:this._emitChars("<"),this.state=z.SCRIPT_DATA,this._stateScriptData(t)}}_stateScriptDataEndTagOpen(t){Xr(t)?(this.state=z.SCRIPT_DATA_END_TAG_NAME,this._stateScriptDataEndTagName(t)):(this._emitChars("</"),this.state=z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStart(t){t===j.HYPHEN_MINUS?(this.state=z.SCRIPT_DATA_ESCAPE_START_DASH,this._emitChars("-")):(this.state=z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscapeStartDash(t){t===j.HYPHEN_MINUS?(this.state=z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-")):(this.state=z.SCRIPT_DATA,this._stateScriptData(t))}_stateScriptDataEscaped(t){switch(t){case j.HYPHEN_MINUS:{this.state=z.SCRIPT_DATA_ESCAPED_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(Mt);break}case j.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataEscapedDash(t){switch(t){case j.HYPHEN_MINUS:{this.state=z.SCRIPT_DATA_ESCAPED_DASH_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.state=z.SCRIPT_DATA_ESCAPED,this._emitChars(Mt);break}case j.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedDashDash(t){switch(t){case j.HYPHEN_MINUS:{this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=z.SCRIPT_DATA_ESCAPED_LESS_THAN_SIGN;break}case j.GREATER_THAN_SIGN:{this.state=z.SCRIPT_DATA,this._emitChars(">");break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.state=z.SCRIPT_DATA_ESCAPED,this._emitChars(Mt);break}case j.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=z.SCRIPT_DATA_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataEscapedLessThanSign(t){t===j.SOLIDUS?this.state=z.SCRIPT_DATA_ESCAPED_END_TAG_OPEN:Xr(t)?(this._emitChars("<"),this.state=z.SCRIPT_DATA_DOUBLE_ESCAPE_START,this._stateScriptDataDoubleEscapeStart(t)):(this._emitChars("<"),this.state=z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagOpen(t){Xr(t)?(this.state=z.SCRIPT_DATA_ESCAPED_END_TAG_NAME,this._stateScriptDataEscapedEndTagName(t)):(this._emitChars("</"),this.state=z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataEscapedEndTagName(t){this.handleSpecialEndTag(t)&&(this._emitChars("</"),this.state=z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscapeStart(t){if(this.preprocessor.startsWith(bn.SCRIPT,!1)&&Gm(this.preprocessor.peek(bn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<bn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED}else this._ensureHibernation()||(this.state=z.SCRIPT_DATA_ESCAPED,this._stateScriptDataEscaped(t))}_stateScriptDataDoubleEscaped(t){switch(t){case j.HYPHEN_MINUS:{this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this._emitChars(Mt);break}case j.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDash(t){switch(t){case j.HYPHEN_MINUS:{this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED_DASH_DASH,this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Mt);break}case j.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedDashDash(t){switch(t){case j.HYPHEN_MINUS:{this._emitChars("-");break}case j.LESS_THAN_SIGN:{this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED_LESS_THAN_SIGN,this._emitChars("<");break}case j.GREATER_THAN_SIGN:{this.state=z.SCRIPT_DATA,this._emitChars(">");break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitChars(Mt);break}case j.EOF:{this._err(fe.eofInScriptHtmlCommentLikeText),this._emitEOFToken();break}default:this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED,this._emitCodePoint(t)}}_stateScriptDataDoubleEscapedLessThanSign(t){t===j.SOLIDUS?(this.state=z.SCRIPT_DATA_DOUBLE_ESCAPE_END,this._emitChars("/")):(this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateScriptDataDoubleEscapeEnd(t){if(this.preprocessor.startsWith(bn.SCRIPT,!1)&&Gm(this.preprocessor.peek(bn.SCRIPT.length))){this._emitCodePoint(t);for(let n=0;n<bn.SCRIPT.length;n++)this._emitCodePoint(this._consume());this.state=z.SCRIPT_DATA_ESCAPED}else this._ensureHibernation()||(this.state=z.SCRIPT_DATA_DOUBLE_ESCAPED,this._stateScriptDataDoubleEscaped(t))}_stateBeforeAttributeName(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.SOLIDUS:case j.GREATER_THAN_SIGN:case j.EOF:{this.state=z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case j.EQUALS_SIGN:{this._err(fe.unexpectedEqualsSignBeforeAttributeName),this._createAttr("="),this.state=z.ATTRIBUTE_NAME;break}default:this._createAttr(""),this.state=z.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateAttributeName(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:case j.SOLIDUS:case j.GREATER_THAN_SIGN:case j.EOF:{this._leaveAttrName(),this.state=z.AFTER_ATTRIBUTE_NAME,this._stateAfterAttributeName(t);break}case j.EQUALS_SIGN:{this._leaveAttrName(),this.state=z.BEFORE_ATTRIBUTE_VALUE;break}case j.QUOTATION_MARK:case j.APOSTROPHE:case j.LESS_THAN_SIGN:{this._err(fe.unexpectedCharacterInAttributeName),this.currentAttr.name+=String.fromCodePoint(t);break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.name+=Mt;break}default:this.currentAttr.name+=String.fromCodePoint(ys(t)?Ri(t):t)}}_stateAfterAttributeName(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.SOLIDUS:{this.state=z.SELF_CLOSING_START_TAG;break}case j.EQUALS_SIGN:{this.state=z.BEFORE_ATTRIBUTE_VALUE;break}case j.GREATER_THAN_SIGN:{this.state=z.DATA,this.emitCurrentTagToken();break}case j.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._createAttr(""),this.state=z.ATTRIBUTE_NAME,this._stateAttributeName(t)}}_stateBeforeAttributeValue(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.QUOTATION_MARK:{this.state=z.ATTRIBUTE_VALUE_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this.state=z.ATTRIBUTE_VALUE_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(fe.missingAttributeValue),this.state=z.DATA,this.emitCurrentTagToken();break}default:this.state=z.ATTRIBUTE_VALUE_UNQUOTED,this._stateAttributeValueUnquoted(t)}}_stateAttributeValueDoubleQuoted(t){switch(t){case j.QUOTATION_MARK:{this.state=z.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=Mt;break}case j.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueSingleQuoted(t){switch(t){case j.APOSTROPHE:{this.state=z.AFTER_ATTRIBUTE_VALUE_QUOTED;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=Mt;break}case j.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAttributeValueUnquoted(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this._leaveAttrValue(),this.state=z.BEFORE_ATTRIBUTE_NAME;break}case j.AMPERSAND:{this._startCharacterReference();break}case j.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=z.DATA,this.emitCurrentTagToken();break}case j.NULL:{this._err(fe.unexpectedNullCharacter),this.currentAttr.value+=Mt;break}case j.QUOTATION_MARK:case j.APOSTROPHE:case j.LESS_THAN_SIGN:case j.EQUALS_SIGN:case j.GRAVE_ACCENT:{this._err(fe.unexpectedCharacterInUnquotedAttributeValue),this.currentAttr.value+=String.fromCodePoint(t);break}case j.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this.currentAttr.value+=String.fromCodePoint(t)}}_stateAfterAttributeValueQuoted(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this._leaveAttrValue(),this.state=z.BEFORE_ATTRIBUTE_NAME;break}case j.SOLIDUS:{this._leaveAttrValue(),this.state=z.SELF_CLOSING_START_TAG;break}case j.GREATER_THAN_SIGN:{this._leaveAttrValue(),this.state=z.DATA,this.emitCurrentTagToken();break}case j.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBetweenAttributes),this.state=z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateSelfClosingStartTag(t){switch(t){case j.GREATER_THAN_SIGN:{const n=this.currentToken;n.selfClosing=!0,this.state=z.DATA,this.emitCurrentTagToken();break}case j.EOF:{this._err(fe.eofInTag),this._emitEOFToken();break}default:this._err(fe.unexpectedSolidusInTag),this.state=z.BEFORE_ATTRIBUTE_NAME,this._stateBeforeAttributeName(t)}}_stateBogusComment(t){const n=this.currentToken;switch(t){case j.GREATER_THAN_SIGN:{this.state=z.DATA,this.emitCurrentComment(n);break}case j.EOF:{this.emitCurrentComment(n),this._emitEOFToken();break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=Mt;break}default:n.data+=String.fromCodePoint(t)}}_stateMarkupDeclarationOpen(t){this._consumeSequenceIfMatch(bn.DASH_DASH,!0)?(this._createCommentToken(bn.DASH_DASH.length+1),this.state=z.COMMENT_START):this._consumeSequenceIfMatch(bn.DOCTYPE,!1)?(this.currentLocation=this.getCurrentLocation(bn.DOCTYPE.length+1),this.state=z.DOCTYPE):this._consumeSequenceIfMatch(bn.CDATA_START,!0)?this.inForeignNode?this.state=z.CDATA_SECTION:(this._err(fe.cdataInHtmlContent),this._createCommentToken(bn.CDATA_START.length+1),this.currentToken.data="[CDATA[",this.state=z.BOGUS_COMMENT):this._ensureHibernation()||(this._err(fe.incorrectlyOpenedComment),this._createCommentToken(2),this.state=z.BOGUS_COMMENT,this._stateBogusComment(t))}_stateCommentStart(t){switch(t){case j.HYPHEN_MINUS:{this.state=z.COMMENT_START_DASH;break}case j.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=z.DATA;const n=this.currentToken;this.emitCurrentComment(n);break}default:this.state=z.COMMENT,this._stateComment(t)}}_stateCommentStartDash(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{this.state=z.COMMENT_END;break}case j.GREATER_THAN_SIGN:{this._err(fe.abruptClosingOfEmptyComment),this.state=z.DATA,this.emitCurrentComment(n);break}case j.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=z.COMMENT,this._stateComment(t)}}_stateComment(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{this.state=z.COMMENT_END_DASH;break}case j.LESS_THAN_SIGN:{n.data+="<",this.state=z.COMMENT_LESS_THAN_SIGN;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.data+=Mt;break}case j.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+=String.fromCodePoint(t)}}_stateCommentLessThanSign(t){const n=this.currentToken;switch(t){case j.EXCLAMATION_MARK:{n.data+="!",this.state=z.COMMENT_LESS_THAN_SIGN_BANG;break}case j.LESS_THAN_SIGN:{n.data+="<";break}default:this.state=z.COMMENT,this._stateComment(t)}}_stateCommentLessThanSignBang(t){t===j.HYPHEN_MINUS?this.state=z.COMMENT_LESS_THAN_SIGN_BANG_DASH:(this.state=z.COMMENT,this._stateComment(t))}_stateCommentLessThanSignBangDash(t){t===j.HYPHEN_MINUS?this.state=z.COMMENT_LESS_THAN_SIGN_BANG_DASH_DASH:(this.state=z.COMMENT_END_DASH,this._stateCommentEndDash(t))}_stateCommentLessThanSignBangDashDash(t){t!==j.GREATER_THAN_SIGN&&t!==j.EOF&&this._err(fe.nestedComment),this.state=z.COMMENT_END,this._stateCommentEnd(t)}_stateCommentEndDash(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{this.state=z.COMMENT_END;break}case j.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="-",this.state=z.COMMENT,this._stateComment(t)}}_stateCommentEnd(t){const n=this.currentToken;switch(t){case j.GREATER_THAN_SIGN:{this.state=z.DATA,this.emitCurrentComment(n);break}case j.EXCLAMATION_MARK:{this.state=z.COMMENT_END_BANG;break}case j.HYPHEN_MINUS:{n.data+="-";break}case j.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--",this.state=z.COMMENT,this._stateComment(t)}}_stateCommentEndBang(t){const n=this.currentToken;switch(t){case j.HYPHEN_MINUS:{n.data+="--!",this.state=z.COMMENT_END_DASH;break}case j.GREATER_THAN_SIGN:{this._err(fe.incorrectlyClosedComment),this.state=z.DATA,this.emitCurrentComment(n);break}case j.EOF:{this._err(fe.eofInComment),this.emitCurrentComment(n),this._emitEOFToken();break}default:n.data+="--!",this.state=z.COMMENT,this._stateComment(t)}}_stateDoctype(t){switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=z.BEFORE_DOCTYPE_NAME;break}case j.GREATER_THAN_SIGN:{this.state=z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t);break}case j.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingWhitespaceBeforeDoctypeName),this.state=z.BEFORE_DOCTYPE_NAME,this._stateBeforeDoctypeName(t)}}_stateBeforeDoctypeName(t){if(ys(t))this._createDoctypeToken(String.fromCharCode(Ri(t))),this.state=z.DOCTYPE_NAME;else switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.NULL:{this._err(fe.unexpectedNullCharacter),this._createDoctypeToken(Mt),this.state=z.DOCTYPE_NAME;break}case j.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeName),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.EOF:{this._err(fe.eofInDoctype),this._createDoctypeToken(null);const n=this.currentToken;n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._createDoctypeToken(String.fromCodePoint(t)),this.state=z.DOCTYPE_NAME}}_stateDoctypeName(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=z.AFTER_DOCTYPE_NAME;break}case j.GREATER_THAN_SIGN:{this.state=z.DATA,this.emitCurrentDoctype(n);break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.name+=Mt;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.name+=String.fromCodePoint(ys(t)?Ri(t):t)}}_stateAfterDoctypeName(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.GREATER_THAN_SIGN:{this.state=z.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._consumeSequenceIfMatch(bn.PUBLIC,!1)?this.state=z.AFTER_DOCTYPE_PUBLIC_KEYWORD:this._consumeSequenceIfMatch(bn.SYSTEM,!1)?this.state=z.AFTER_DOCTYPE_SYSTEM_KEYWORD:this._ensureHibernation()||(this._err(fe.invalidCharacterSequenceAfterDoctypeName),n.forceQuirks=!0,this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t))}}_stateAfterDoctypePublicKeyword(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=z.BEFORE_DOCTYPE_PUBLIC_IDENTIFIER;break}case j.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypePublicKeyword),n.publicId="",this.state=z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=z.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.QUOTATION_MARK:{n.publicId="",this.state=z.DOCTYPE_PUBLIC_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{n.publicId="",this.state=z.DOCTYPE_PUBLIC_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(fe.missingDoctypePublicIdentifier),n.forceQuirks=!0,this.state=z.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypePublicIdentifier),n.forceQuirks=!0,this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypePublicIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case j.QUOTATION_MARK:{this.state=z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=Mt;break}case j.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateDoctypePublicIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case j.APOSTROPHE:{this.state=z.AFTER_DOCTYPE_PUBLIC_IDENTIFIER;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.publicId+=Mt;break}case j.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypePublicIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.publicId+=String.fromCodePoint(t)}}_stateAfterDoctypePublicIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=z.BETWEEN_DOCTYPE_PUBLIC_AND_SYSTEM_IDENTIFIERS;break}case j.GREATER_THAN_SIGN:{this.state=z.DATA,this.emitCurrentDoctype(n);break}case j.QUOTATION_MARK:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this._err(fe.missingWhitespaceBetweenDoctypePublicAndSystemIdentifiers),n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBetweenDoctypePublicAndSystemIdentifiers(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.QUOTATION_MARK:{n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateAfterDoctypeSystemKeyword(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:{this.state=z.BEFORE_DOCTYPE_SYSTEM_IDENTIFIER;break}case j.QUOTATION_MARK:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{this._err(fe.missingWhitespaceAfterDoctypeSystemKeyword),n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=z.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBeforeDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.QUOTATION_MARK:{n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_DOUBLE_QUOTED;break}case j.APOSTROPHE:{n.systemId="",this.state=z.DOCTYPE_SYSTEM_IDENTIFIER_SINGLE_QUOTED;break}case j.GREATER_THAN_SIGN:{this._err(fe.missingDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=z.DATA,this.emitCurrentDoctype(n);break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.missingQuoteBeforeDoctypeSystemIdentifier),n.forceQuirks=!0,this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateDoctypeSystemIdentifierDoubleQuoted(t){const n=this.currentToken;switch(t){case j.QUOTATION_MARK:{this.state=z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=Mt;break}case j.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateDoctypeSystemIdentifierSingleQuoted(t){const n=this.currentToken;switch(t){case j.APOSTROPHE:{this.state=z.AFTER_DOCTYPE_SYSTEM_IDENTIFIER;break}case j.NULL:{this._err(fe.unexpectedNullCharacter),n.systemId+=Mt;break}case j.GREATER_THAN_SIGN:{this._err(fe.abruptDoctypeSystemIdentifier),n.forceQuirks=!0,this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:n.systemId+=String.fromCodePoint(t)}}_stateAfterDoctypeSystemIdentifier(t){const n=this.currentToken;switch(t){case j.SPACE:case j.LINE_FEED:case j.TABULATION:case j.FORM_FEED:break;case j.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.EOF:{this._err(fe.eofInDoctype),n.forceQuirks=!0,this.emitCurrentDoctype(n),this._emitEOFToken();break}default:this._err(fe.unexpectedCharacterAfterDoctypeSystemIdentifier),this.state=z.BOGUS_DOCTYPE,this._stateBogusDoctype(t)}}_stateBogusDoctype(t){const n=this.currentToken;switch(t){case j.GREATER_THAN_SIGN:{this.emitCurrentDoctype(n),this.state=z.DATA;break}case j.NULL:{this._err(fe.unexpectedNullCharacter);break}case j.EOF:{this.emitCurrentDoctype(n),this._emitEOFToken();break}}}_stateCdataSection(t){switch(t){case j.RIGHT_SQUARE_BRACKET:{this.state=z.CDATA_SECTION_BRACKET;break}case j.EOF:{this._err(fe.eofInCdata),this._emitEOFToken();break}default:this._emitCodePoint(t)}}_stateCdataSectionBracket(t){t===j.RIGHT_SQUARE_BRACKET?this.state=z.CDATA_SECTION_END:(this._emitChars("]"),this.state=z.CDATA_SECTION,this._stateCdataSection(t))}_stateCdataSectionEnd(t){switch(t){case j.GREATER_THAN_SIGN:{this.state=z.DATA;break}case j.RIGHT_SQUARE_BRACKET:{this._emitChars("]");break}default:this._emitChars("]]"),this.state=z.CDATA_SECTION,this._stateCdataSection(t)}}_stateCharacterReference(){let t=this.entityDecoder.write(this.preprocessor.html,this.preprocessor.pos);if(t<0)if(this.preprocessor.lastChunkWritten)t=this.entityDecoder.end();else{this.active=!1,this.preprocessor.pos=this.preprocessor.html.length-1,this.consumedAfterSnapshot=0,this.preprocessor.endOfChunkHit=!0;return}t===0?(this.preprocessor.pos=this.entityStartPos,this._flushCodePointConsumedAsCharacterReference(j.AMPERSAND),this.state=!this._isCharacterReferenceInAttribute()&&Ym(this.preprocessor.peek(1))?z.AMBIGUOUS_AMPERSAND:this.returnState):this.state=this.returnState}_stateAmbiguousAmpersand(t){Ym(t)?this._flushCodePointConsumedAsCharacterReference(t):(t===j.SEMICOLON&&this._err(fe.unknownNamedCharacterReference),this.state=this.returnState,this._callState(t))}}const l1=new Set([y.DD,y.DT,y.LI,y.OPTGROUP,y.OPTION,y.P,y.RB,y.RP,y.RT,y.RTC]),Km=new Set([...l1,y.CAPTION,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]),wl=new Set([y.APPLET,y.CAPTION,y.HTML,y.MARQUEE,y.OBJECT,y.TABLE,y.TD,y.TEMPLATE,y.TH]),q6=new Set([...wl,y.OL,y.UL]),Y6=new Set([...wl,y.BUTTON]),Qm=new Set([y.ANNOTATION_XML,y.MI,y.MN,y.MO,y.MS,y.MTEXT]),Xm=new Set([y.DESC,y.FOREIGN_OBJECT,y.TITLE]),G6=new Set([y.TR,y.TEMPLATE,y.HTML]),K6=new Set([y.TBODY,y.TFOOT,y.THEAD,y.TEMPLATE,y.HTML]),Q6=new Set([y.TABLE,y.TEMPLATE,y.HTML]),X6=new Set([y.TD,y.TH]);class Z6{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=y.UNKNOWN,this.current=t}_indexOf(t){return this.items.lastIndexOf(t,this.stackTop)}_isInTemplate(){return this.currentTagId===y.TEMPLATE&&this.treeAdapter.getNamespaceURI(this.current)===Ce.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 a=this._indexOf(t)+1;this.items.splice(a,0,n),this.tagIDs.splice(a,0,r),this.stackTop++,a===this.stackTop&&this._updateCurrentElement(),this.current&&this.currentTagId!==void 0&&this.handler.onItemPush(this.current,this.currentTagId,a===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])!==Ce.HTML);this.shortenToLength(Math.max(n,0))}shortenToLength(t){for(;this.stackTop>=t;){const n=this.current;this.tmplCount>0&&this._isInTemplate()&&(this.tmplCount-=1),this.stackTop--,this._updateCurrentElement(),this.handler.onItemPop(n,this.stackTop<t)}}popUntilElementPopped(t){const n=this._indexOf(t);this.shortenToLength(Math.max(n,0))}popUntilPopped(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(Math.max(r,0))}popUntilNumberedHeaderPopped(){this.popUntilPopped(pd,Ce.HTML)}popUntilTableCellPopped(){this.popUntilPopped(X6,Ce.HTML)}popAllUpToHtmlElement(){this.tmplCount=0,this.shortenToLength(1)}_indexOfTagNames(t,n){for(let r=this.stackTop;r>=0;r--)if(t.has(this.tagIDs[r])&&this.treeAdapter.getNamespaceURI(this.items[r])===n)return r;return-1}clearBackTo(t,n){const r=this._indexOfTagNames(t,n);this.shortenToLength(r+1)}clearBackToTableContext(){this.clearBackTo(Q6,Ce.HTML)}clearBackToTableBodyContext(){this.clearBackTo(K6,Ce.HTML)}clearBackToTableRowContext(){this.clearBackTo(G6,Ce.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]===y.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]===y.HTML}hasInDynamicScope(t,n){for(let r=this.stackTop;r>=0;r--){const a=this.tagIDs[r];switch(this.treeAdapter.getNamespaceURI(this.items[r])){case Ce.HTML:{if(a===t)return!0;if(n.has(a))return!1;break}case Ce.SVG:{if(Xm.has(a))return!1;break}case Ce.MATHML:{if(Qm.has(a))return!1;break}}}return!0}hasInScope(t){return this.hasInDynamicScope(t,wl)}hasInListItemScope(t){return this.hasInDynamicScope(t,q6)}hasInButtonScope(t){return this.hasInDynamicScope(t,Y6)}hasNumberedHeaderInScope(){for(let t=this.stackTop;t>=0;t--){const n=this.tagIDs[t];switch(this.treeAdapter.getNamespaceURI(this.items[t])){case Ce.HTML:{if(pd.has(n))return!0;if(wl.has(n))return!1;break}case Ce.SVG:{if(Xm.has(n))return!1;break}case Ce.MATHML:{if(Qm.has(n))return!1;break}}}return!0}hasInTableScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ce.HTML)switch(this.tagIDs[n]){case t:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasTableBodyContextInTableScope(){for(let t=this.stackTop;t>=0;t--)if(this.treeAdapter.getNamespaceURI(this.items[t])===Ce.HTML)switch(this.tagIDs[t]){case y.TBODY:case y.THEAD:case y.TFOOT:return!0;case y.TABLE:case y.HTML:return!1}return!0}hasInSelectScope(t){for(let n=this.stackTop;n>=0;n--)if(this.treeAdapter.getNamespaceURI(this.items[n])===Ce.HTML)switch(this.tagIDs[n]){case t:return!0;case y.OPTION:case y.OPTGROUP:break;default:return!1}return!0}generateImpliedEndTags(){for(;this.currentTagId!==void 0&&l1.has(this.currentTagId);)this.pop()}generateImpliedEndTagsThoroughly(){for(;this.currentTagId!==void 0&&Km.has(this.currentTagId);)this.pop()}generateImpliedEndTagsWithExclusion(t){for(;this.currentTagId!==void 0&&this.currentTagId!==t&&Km.has(this.currentTagId);)this.pop()}}const gc=3;var mr;(function(e){e[e.Marker=0]="Marker",e[e.Element=1]="Element"})(mr||(mr={}));const Zm={type:mr.Marker};class J6{constructor(t){this.treeAdapter=t,this.entries=[],this.bookmark=null}_getNoahArkConditionCandidates(t,n){const r=[],a=n.length,o=this.treeAdapter.getTagName(t),s=this.treeAdapter.getNamespaceURI(t);for(let i=0;i<this.entries.length;i++){const l=this.entries[i];if(l.type===mr.Marker)break;const{element:u}=l;if(this.treeAdapter.getTagName(u)===o&&this.treeAdapter.getNamespaceURI(u)===s){const c=this.treeAdapter.getAttrList(u);c.length===a&&r.push({idx:i,attrs:c})}}return r}_ensureNoahArkCondition(t){if(this.entries.length<gc)return;const n=this.treeAdapter.getAttrList(t),r=this._getNoahArkConditionCandidates(t,n);if(r.length<gc)return;const a=new Map(n.map(s=>[s.name,s.value]));let o=0;for(let s=0;s<r.length;s++){const i=r[s];i.attrs.every(l=>a.get(l.name)===l.value)&&(o+=1,o>=gc&&this.entries.splice(i.idx,1))}}insertMarker(){this.entries.unshift(Zm)}pushElement(t,n){this._ensureNoahArkCondition(t),this.entries.unshift({type:mr.Element,element:t,token:n})}insertElementAfterBookmark(t,n){const r=this.entries.indexOf(this.bookmark);this.entries.splice(r,0,{type:mr.Element,element:t,token:n})}removeEntry(t){const n=this.entries.indexOf(t);n!==-1&&this.entries.splice(n,1)}clearToLastMarker(){const t=this.entries.indexOf(Zm);t===-1?this.entries.length=0:this.entries.splice(0,t+1)}getElementEntryInScopeWithTagName(t){const n=this.entries.find(r=>r.type===mr.Marker||this.treeAdapter.getTagName(r.element)===t);return n&&n.type===mr.Element?n:null}getElementEntry(t){return this.entries.find(n=>n.type===mr.Element&&n.element===t)}}const Zr={createDocument(){return{nodeName:"#document",mode:Un.NO_QUIRKS,childNodes:[]}},createDocumentFragment(){return{nodeName:"#document-fragment",childNodes:[]}},createElement(e,t,n){return{nodeName:e,tagName:e,attrs:n,namespaceURI:t,childNodes:[],parentNode:null}},createCommentNode(e){return{nodeName:"#comment",data:e,parentNode:null}},createTextNode(e){return{nodeName:"#text",value:e,parentNode:null}},appendChild(e,t){e.childNodes.push(t),t.parentNode=e},insertBefore(e,t,n){const r=e.childNodes.indexOf(n);e.childNodes.splice(r,0,t),t.parentNode=e},setTemplateContent(e,t){e.content=t},getTemplateContent(e){return e.content},setDocumentType(e,t,n,r){const a=e.childNodes.find(o=>o.nodeName==="#documentType");if(a)a.name=t,a.publicId=n,a.systemId=r;else{const o={nodeName:"#documentType",name:t,publicId:n,systemId:r,parentNode:null};Zr.appendChild(e,o)}},setDocumentMode(e,t){e.mode=t},getDocumentMode(e){return e.mode},detachNode(e){if(e.parentNode){const t=e.parentNode.childNodes.indexOf(e);e.parentNode.childNodes.splice(t,1),e.parentNode=null}},insertText(e,t){if(e.childNodes.length>0){const n=e.childNodes[e.childNodes.length-1];if(Zr.isTextNode(n)){n.value+=t;return}}Zr.appendChild(e,Zr.createTextNode(t))},insertTextBefore(e,t,n){const r=e.childNodes[e.childNodes.indexOf(n)-1];r&&Zr.isTextNode(r)?r.value+=t:Zr.insertBefore(e,Zr.createTextNode(t),n)},adoptAttributes(e,t){const n=new Set(e.attrs.map(r=>r.name));for(let r=0;r<t.length;r++)n.has(t[r].name)||e.attrs.push(t[r])},getFirstChild(e){return e.childNodes[0]},getChildNodes(e){return e.childNodes},getParentNode(e){return e.parentNode},getAttrList(e){return e.attrs},getTagName(e){return e.tagName},getNamespaceURI(e){return e.namespaceURI},getTextNodeContent(e){return e.value},getCommentNodeContent(e){return e.data},getDocumentTypeNodeName(e){return e.name},getDocumentTypeNodePublicId(e){return e.publicId},getDocumentTypeNodeSystemId(e){return e.systemId},isTextNode(e){return e.nodeName==="#text"},isCommentNode(e){return e.nodeName==="#comment"},isDocumentTypeNode(e){return e.nodeName==="#documentType"},isElementNode(e){return Object.prototype.hasOwnProperty.call(e,"tagName")},setNodeSourceCodeLocation(e,t){e.sourceCodeLocation=t},getNodeSourceCodeLocation(e){return e.sourceCodeLocation},updateNodeSourceCodeLocation(e,t){e.sourceCodeLocation={...e.sourceCodeLocation,...t}}},u1="html",eI="about:legacy-compat",tI="http://www.ibm.com/data/dtd/v11/ibmxhtml1-transitional.dtd",c1=["+//silmaril//dtd html pro v0r11 19970101//","-//as//dtd html 3.0 aswedit + extensions//","-//advasoft ltd//dtd html 3.0 aswedit + extensions//","-//ietf//dtd html 2.0 level 1//","-//ietf//dtd html 2.0 level 2//","-//ietf//dtd html 2.0 strict level 1//","-//ietf//dtd html 2.0 strict level 2//","-//ietf//dtd html 2.0 strict//","-//ietf//dtd html 2.0//","-//ietf//dtd html 2.1e//","-//ietf//dtd html 3.0//","-//ietf//dtd html 3.2 final//","-//ietf//dtd html 3.2//","-//ietf//dtd html 3//","-//ietf//dtd html level 0//","-//ietf//dtd html level 1//","-//ietf//dtd html level 2//","-//ietf//dtd html level 3//","-//ietf//dtd html strict level 0//","-//ietf//dtd html strict level 1//","-//ietf//dtd html strict level 2//","-//ietf//dtd html strict level 3//","-//ietf//dtd html strict//","-//ietf//dtd html//","-//metrius//dtd metrius presentational//","-//microsoft//dtd internet explorer 2.0 html strict//","-//microsoft//dtd internet explorer 2.0 html//","-//microsoft//dtd internet explorer 2.0 tables//","-//microsoft//dtd internet explorer 3.0 html strict//","-//microsoft//dtd internet explorer 3.0 html//","-//microsoft//dtd internet explorer 3.0 tables//","-//netscape comm. corp.//dtd html//","-//netscape comm. corp.//dtd strict html//","-//o'reilly and associates//dtd html 2.0//","-//o'reilly and associates//dtd html extended 1.0//","-//o'reilly and associates//dtd html extended relaxed 1.0//","-//sq//dtd html 2.0 hotmetal + extensions//","-//softquad software//dtd hotmetal pro 6.0::19990601::extensions to html 4.0//","-//softquad//dtd hotmetal pro 4.0::19971010::extensions to html 4.0//","-//spyglass//dtd html 2.0 extended//","-//sun microsystems corp.//dtd hotjava html//","-//sun microsystems corp.//dtd hotjava strict html//","-//w3c//dtd html 3 1995-03-24//","-//w3c//dtd html 3.2 draft//","-//w3c//dtd html 3.2 final//","-//w3c//dtd html 3.2//","-//w3c//dtd html 3.2s draft//","-//w3c//dtd html 4.0 frameset//","-//w3c//dtd html 4.0 transitional//","-//w3c//dtd html experimental 19960712//","-//w3c//dtd html experimental 970421//","-//w3c//dtd w3 html//","-//w3o//dtd w3 html 3.0//","-//webtechs//dtd mozilla html 2.0//","-//webtechs//dtd mozilla html//"],nI=[...c1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"],rI=new Set(["-//w3o//dtd w3 html strict 3.0//en//","-/w3c/dtd html 4.0 transitional/en","html"]),d1=["-//w3c//dtd xhtml 1.0 frameset//","-//w3c//dtd xhtml 1.0 transitional//"],aI=[...d1,"-//w3c//dtd html 4.01 frameset//","-//w3c//dtd html 4.01 transitional//"];function Jm(e,t){return t.some(n=>e.startsWith(n))}function oI(e){return e.name===u1&&e.publicId===null&&(e.systemId===null||e.systemId===eI)}function sI(e){if(e.name!==u1)return Un.QUIRKS;const{systemId:t}=e;if(t&&t.toLowerCase()===tI)return Un.QUIRKS;let{publicId:n}=e;if(n!==null){if(n=n.toLowerCase(),rI.has(n))return Un.QUIRKS;let r=t===null?nI:c1;if(Jm(n,r))return Un.QUIRKS;if(r=t===null?d1:aI,Jm(n,r))return Un.LIMITED_QUIRKS}return Un.NO_QUIRKS}const eh={TEXT_HTML:"text/html",APPLICATION_XML:"application/xhtml+xml"},iI="definitionurl",lI="definitionURL",uI=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])),cI=new Map([["xlink:actuate",{prefix:"xlink",name:"actuate",namespace:Ce.XLINK}],["xlink:arcrole",{prefix:"xlink",name:"arcrole",namespace:Ce.XLINK}],["xlink:href",{prefix:"xlink",name:"href",namespace:Ce.XLINK}],["xlink:role",{prefix:"xlink",name:"role",namespace:Ce.XLINK}],["xlink:show",{prefix:"xlink",name:"show",namespace:Ce.XLINK}],["xlink:title",{prefix:"xlink",name:"title",namespace:Ce.XLINK}],["xlink:type",{prefix:"xlink",name:"type",namespace:Ce.XLINK}],["xml:lang",{prefix:"xml",name:"lang",namespace:Ce.XML}],["xml:space",{prefix:"xml",name:"space",namespace:Ce.XML}],["xmlns",{prefix:"",name:"xmlns",namespace:Ce.XMLNS}],["xmlns:xlink",{prefix:"xmlns",name:"xlink",namespace:Ce.XMLNS}]]),dI=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])),pI=new Set([y.B,y.BIG,y.BLOCKQUOTE,y.BODY,y.BR,y.CENTER,y.CODE,y.DD,y.DIV,y.DL,y.DT,y.EM,y.EMBED,y.H1,y.H2,y.H3,y.H4,y.H5,y.H6,y.HEAD,y.HR,y.I,y.IMG,y.LI,y.LISTING,y.MENU,y.META,y.NOBR,y.OL,y.P,y.PRE,y.RUBY,y.S,y.SMALL,y.SPAN,y.STRONG,y.STRIKE,y.SUB,y.SUP,y.TABLE,y.TT,y.U,y.UL,y.VAR]);function fI(e){const t=e.tagID;return t===y.FONT&&e.attrs.some(({name:r})=>r===wa.COLOR||r===wa.SIZE||r===wa.FACE)||pI.has(t)}function p1(e){for(let t=0;t<e.attrs.length;t++)if(e.attrs[t].name===iI){e.attrs[t].name=lI;break}}function f1(e){for(let t=0;t<e.attrs.length;t++){const n=uI.get(e.attrs[t].name);n!=null&&(e.attrs[t].name=n)}}function gp(e){for(let t=0;t<e.attrs.length;t++){const n=cI.get(e.attrs[t].name);n&&(e.attrs[t].prefix=n.prefix,e.attrs[t].name=n.name,e.attrs[t].namespace=n.namespace)}}function mI(e){const t=dI.get(e.tagName);t!=null&&(e.tagName=t,e.tagID=Fo(e.tagName))}function hI(e,t){return t===Ce.MATHML&&(e===y.MI||e===y.MO||e===y.MN||e===y.MS||e===y.MTEXT)}function gI(e,t,n){if(t===Ce.MATHML&&e===y.ANNOTATION_XML){for(let r=0;r<n.length;r++)if(n[r].name===wa.ENCODING){const a=n[r].value.toLowerCase();return a===eh.TEXT_HTML||a===eh.APPLICATION_XML}}return t===Ce.SVG&&(e===y.FOREIGN_OBJECT||e===y.DESC||e===y.TITLE)}function bI(e,t,n,r){return(!r||r===Ce.HTML)&&gI(e,t,n)||(!r||r===Ce.MATHML)&&hI(e,t)}const yI="hidden",xI=8,CI=3;var K;(function(e){e[e.INITIAL=0]="INITIAL",e[e.BEFORE_HTML=1]="BEFORE_HTML",e[e.BEFORE_HEAD=2]="BEFORE_HEAD",e[e.IN_HEAD=3]="IN_HEAD",e[e.IN_HEAD_NO_SCRIPT=4]="IN_HEAD_NO_SCRIPT",e[e.AFTER_HEAD=5]="AFTER_HEAD",e[e.IN_BODY=6]="IN_BODY",e[e.TEXT=7]="TEXT",e[e.IN_TABLE=8]="IN_TABLE",e[e.IN_TABLE_TEXT=9]="IN_TABLE_TEXT",e[e.IN_CAPTION=10]="IN_CAPTION",e[e.IN_COLUMN_GROUP=11]="IN_COLUMN_GROUP",e[e.IN_TABLE_BODY=12]="IN_TABLE_BODY",e[e.IN_ROW=13]="IN_ROW",e[e.IN_CELL=14]="IN_CELL",e[e.IN_SELECT=15]="IN_SELECT",e[e.IN_SELECT_IN_TABLE=16]="IN_SELECT_IN_TABLE",e[e.IN_TEMPLATE=17]="IN_TEMPLATE",e[e.AFTER_BODY=18]="AFTER_BODY",e[e.IN_FRAMESET=19]="IN_FRAMESET",e[e.AFTER_FRAMESET=20]="AFTER_FRAMESET",e[e.AFTER_AFTER_BODY=21]="AFTER_AFTER_BODY",e[e.AFTER_AFTER_FRAMESET=22]="AFTER_AFTER_FRAMESET"})(K||(K={}));const EI={startLine:-1,startCol:-1,startOffset:-1,endLine:-1,endCol:-1,endOffset:-1},m1=new Set([y.TABLE,y.TBODY,y.TFOOT,y.THEAD,y.TR]),th={scriptingEnabled:!0,sourceCodeLocationInfo:!1,treeAdapter:Zr,onParseError:null};class nh{constructor(t,n,r=null,a=null){this.fragmentContext=r,this.scriptHandler=a,this.currentToken=null,this.stopped=!1,this.insertionMode=K.INITIAL,this.originalInsertionMode=K.INITIAL,this.headElement=null,this.formElement=null,this.currentNotInHTML=!1,this.tmplInsertionModeStack=[],this.pendingCharacterTokens=[],this.hasNonWhitespacePendingCharacterToken=!1,this.framesetOk=!0,this.skipNextNewLine=!1,this.fosterParentingEnabled=!1,this.options={...th,...t},this.treeAdapter=this.options.treeAdapter,this.onParseError=this.options.onParseError,this.onParseError&&(this.options.sourceCodeLocationInfo=!0),this.document=n??this.treeAdapter.createDocument(),this.tokenizer=new W6(this.options,this),this.activeFormattingElements=new J6(this.treeAdapter),this.fragmentContextID=r?Fo(this.treeAdapter.getTagName(r)):y.UNKNOWN,this._setContextModes(r??this.document,this.fragmentContextID),this.openElements=new Z6(this.document,this.treeAdapter,this)}static parse(t,n){const r=new this(n);return r.tokenizer.write(t,!0),r.document}static getFragmentParser(t,n){const r={...th,...n};t??(t=r.treeAdapter.createElement(ae.TEMPLATE,Ce.HTML,[]));const a=r.treeAdapter.createElement("documentmock",Ce.HTML,[]),o=new this(r,a,t);return o.fragmentContextID===y.TEMPLATE&&o.tmplInsertionModeStack.unshift(K.IN_TEMPLATE),o._initTokenizerForFragmentParsing(),o._insertFakeRootElement(),o._resetInsertionMode(),o._findFormInFragmentContext(),o}getFragment(){const t=this.treeAdapter.getFirstChild(this.document),n=this.treeAdapter.createDocumentFragment();return this._adoptNodes(t,n),n}_err(t,n,r){var a;if(!this.onParseError)return;const o=(a=t.location)!==null&&a!==void 0?a:EI,s={code:n,startLine:o.startLine,startCol:o.startCol,startOffset:o.startOffset,endLine:r?o.startLine:o.endLine,endCol:r?o.startCol:o.endCol,endOffset:r?o.startOffset:o.endOffset};this.onParseError(s)}onItemPush(t,n,r){var a,o;(o=(a=this.treeAdapter).onItemPush)===null||o===void 0||o.call(a,t),r&&this.openElements.stackTop>0&&this._setContextModes(t,n)}onItemPop(t,n){var r,a;if(this.options.sourceCodeLocationInfo&&this._setEndLocation(t,this.currentToken),(a=(r=this.treeAdapter).onItemPop)===null||a===void 0||a.call(r,t,this.openElements.current),n){let o,s;this.openElements.stackTop===0&&this.fragmentContext?(o=this.fragmentContext,s=this.fragmentContextID):{current:o,currentTagId:s}=this.openElements,this._setContextModes(o,s)}}_setContextModes(t,n){const r=t===this.document||t&&this.treeAdapter.getNamespaceURI(t)===Ce.HTML;this.currentNotInHTML=!r,this.tokenizer.inForeignNode=!r&&t!==void 0&&n!==void 0&&!this._isIntegrationPoint(n,t)}_switchToTextParsing(t,n){this._insertElement(t,Ce.HTML),this.tokenizer.state=n,this.originalInsertionMode=this.insertionMode,this.insertionMode=K.TEXT}switchToPlaintextParsing(){this.insertionMode=K.TEXT,this.originalInsertionMode=K.IN_BODY,this.tokenizer.state=$t.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)===ae.FORM){this.formElement=t;break}t=this.treeAdapter.getParentNode(t)}}_initTokenizerForFragmentParsing(){if(!(!this.fragmentContext||this.treeAdapter.getNamespaceURI(this.fragmentContext)!==Ce.HTML))switch(this.fragmentContextID){case y.TITLE:case y.TEXTAREA:{this.tokenizer.state=$t.RCDATA;break}case y.STYLE:case y.XMP:case y.IFRAME:case y.NOEMBED:case y.NOFRAMES:case y.NOSCRIPT:{this.tokenizer.state=$t.RAWTEXT;break}case y.SCRIPT:{this.tokenizer.state=$t.SCRIPT_DATA;break}case y.PLAINTEXT:{this.tokenizer.state=$t.PLAINTEXT;break}}}_setDocumentType(t){const n=t.name||"",r=t.publicId||"",a=t.systemId||"";if(this.treeAdapter.setDocumentType(this.document,n,r,a),t.location){const s=this.treeAdapter.getChildNodes(this.document).find(i=>this.treeAdapter.isDocumentTypeNode(i));s&&this.treeAdapter.setNodeSourceCodeLocation(s,t.location)}}_attachElementToTree(t,n){if(this.options.sourceCodeLocationInfo){const r=n&&{...n,startTag:n};this.treeAdapter.setNodeSourceCodeLocation(t,r)}if(this._shouldFosterParentOnInsertion())this._fosterParentElement(t);else{const r=this.openElements.currentTmplContentOrNode;this.treeAdapter.appendChild(r??this.document,t)}}_appendElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location)}_insertElement(t,n){const r=this.treeAdapter.createElement(t.tagName,n,t.attrs);this._attachElementToTree(r,t.location),this.openElements.push(r,t.tagID)}_insertFakeElement(t,n){const r=this.treeAdapter.createElement(t,Ce.HTML,[]);this._attachElementToTree(r,null),this.openElements.push(r,n)}_insertTemplate(t){const n=this.treeAdapter.createElement(t.tagName,Ce.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(ae.HTML,Ce.HTML,[]);this.options.sourceCodeLocationInfo&&this.treeAdapter.setNodeSourceCodeLocation(t,null),this.treeAdapter.appendChild(this.openElements.current,t),this.openElements.push(t,y.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 a=this.treeAdapter.getChildNodes(n),o=r?a.lastIndexOf(r):a.length,s=a[o-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,a=this.treeAdapter.getTagName(t),o=n.type===rt.END_TAG&&a===n.tagName?{endTag:{...r},endLine:r.endLine,endCol:r.endCol,endOffset:r.endOffset}:{endLine:r.startLine,endCol:r.startCol,endOffset:r.startOffset};this.treeAdapter.updateNodeSourceCodeLocation(t,o)}}shouldProcessStartTagTokenInForeignContent(t){if(!this.currentNotInHTML)return!1;let n,r;return this.openElements.stackTop===0&&this.fragmentContext?(n=this.fragmentContext,r=this.fragmentContextID):{current:n,currentTagId:r}=this.openElements,t.tagID===y.SVG&&this.treeAdapter.getTagName(n)===ae.ANNOTATION_XML&&this.treeAdapter.getNamespaceURI(n)===Ce.MATHML?!1:this.tokenizer.inForeignNode||(t.tagID===y.MGLYPH||t.tagID===y.MALIGNMARK)&&r!==void 0&&!this._isIntegrationPoint(r,n,Ce.HTML)}_processToken(t){switch(t.type){case rt.CHARACTER:{this.onCharacter(t);break}case rt.NULL_CHARACTER:{this.onNullCharacter(t);break}case rt.COMMENT:{this.onComment(t);break}case rt.DOCTYPE:{this.onDoctype(t);break}case rt.START_TAG:{this._processStartTag(t);break}case rt.END_TAG:{this.onEndTag(t);break}case rt.EOF:{this.onEof(t);break}case rt.WHITESPACE_CHARACTER:{this.onWhitespaceCharacter(t);break}}}_isIntegrationPoint(t,n,r){const a=this.treeAdapter.getNamespaceURI(n),o=this.treeAdapter.getAttrList(n);return bI(t,a,o,r)}_reconstructActiveFormattingElements(){const t=this.activeFormattingElements.entries.length;if(t){const n=this.activeFormattingElements.entries.findIndex(a=>a.type===mr.Marker||this.openElements.contains(a.element)),r=n===-1?t-1:n-1;for(let a=r;a>=0;a--){const o=this.activeFormattingElements.entries[a];this._insertElement(o.token,this.treeAdapter.getNamespaceURI(o.element)),o.element=this.openElements.current}}}_closeTableCell(){this.openElements.generateImpliedEndTags(),this.openElements.popUntilTableCellPopped(),this.activeFormattingElements.clearToLastMarker(),this.insertionMode=K.IN_ROW}_closePElement(){this.openElements.generateImpliedEndTagsWithExclusion(y.P),this.openElements.popUntilTagNamePopped(y.P)}_resetInsertionMode(){for(let t=this.openElements.stackTop;t>=0;t--)switch(t===0&&this.fragmentContext?this.fragmentContextID:this.openElements.tagIDs[t]){case y.TR:{this.insertionMode=K.IN_ROW;return}case y.TBODY:case y.THEAD:case y.TFOOT:{this.insertionMode=K.IN_TABLE_BODY;return}case y.CAPTION:{this.insertionMode=K.IN_CAPTION;return}case y.COLGROUP:{this.insertionMode=K.IN_COLUMN_GROUP;return}case y.TABLE:{this.insertionMode=K.IN_TABLE;return}case y.BODY:{this.insertionMode=K.IN_BODY;return}case y.FRAMESET:{this.insertionMode=K.IN_FRAMESET;return}case y.SELECT:{this._resetInsertionModeForSelect(t);return}case y.TEMPLATE:{this.insertionMode=this.tmplInsertionModeStack[0];return}case y.HTML:{this.insertionMode=this.headElement?K.AFTER_HEAD:K.BEFORE_HEAD;return}case y.TD:case y.TH:{if(t>0){this.insertionMode=K.IN_CELL;return}break}case y.HEAD:{if(t>0){this.insertionMode=K.IN_HEAD;return}break}}this.insertionMode=K.IN_BODY}_resetInsertionModeForSelect(t){if(t>0)for(let n=t-1;n>0;n--){const r=this.openElements.tagIDs[n];if(r===y.TEMPLATE)break;if(r===y.TABLE){this.insertionMode=K.IN_SELECT_IN_TABLE;return}}this.insertionMode=K.IN_SELECT}_isElementCausesFosterParenting(t){return m1.has(t)}_shouldFosterParentOnInsertion(){return this.fosterParentingEnabled&&this.openElements.currentTagId!==void 0&&this._isElementCausesFosterParenting(this.openElements.currentTagId)}_findFosterParentingLocation(){for(let t=this.openElements.stackTop;t>=0;t--){const n=this.openElements.items[t];switch(this.openElements.tagIDs[t]){case y.TEMPLATE:{if(this.treeAdapter.getNamespaceURI(n)===Ce.HTML)return{parent:this.treeAdapter.getTemplateContent(n),beforeElement:null};break}case y.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 H6[r].has(n)}onCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){XA(this,t);return}switch(this.insertionMode){case K.INITIAL:{ts(this,t);break}case K.BEFORE_HTML:{ws(this,t);break}case K.BEFORE_HEAD:{_s(this,t);break}case K.IN_HEAD:{Is(this,t);break}case K.IN_HEAD_NO_SCRIPT:{As(this,t);break}case K.AFTER_HEAD:{Ds(this,t);break}case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:{g1(this,t);break}case K.TEXT:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:{this._insertCharacters(t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{bc(this,t);break}case K.IN_TABLE_TEXT:{v1(this,t);break}case K.IN_COLUMN_GROUP:{_l(this,t);break}case K.AFTER_BODY:{Il(this,t);break}case K.AFTER_AFTER_BODY:{Xi(this,t);break}}}onNullCharacter(t){if(this.skipNextNewLine=!1,this.tokenizer.inForeignNode){QA(this,t);return}switch(this.insertionMode){case K.INITIAL:{ts(this,t);break}case K.BEFORE_HTML:{ws(this,t);break}case K.BEFORE_HEAD:{_s(this,t);break}case K.IN_HEAD:{Is(this,t);break}case K.IN_HEAD_NO_SCRIPT:{As(this,t);break}case K.AFTER_HEAD:{Ds(this,t);break}case K.TEXT:{this._insertCharacters(t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{bc(this,t);break}case K.IN_COLUMN_GROUP:{_l(this,t);break}case K.AFTER_BODY:{Il(this,t);break}case K.AFTER_AFTER_BODY:{Xi(this,t);break}}}onComment(t){if(this.skipNextNewLine=!1,this.currentNotInHTML){fd(this,t);return}switch(this.insertionMode){case K.INITIAL:case K.BEFORE_HTML:case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_TEMPLATE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:{fd(this,t);break}case K.IN_TABLE_TEXT:{ns(this,t);break}case K.AFTER_BODY:{II(this,t);break}case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{AI(this,t);break}}}onDoctype(t){switch(this.skipNextNewLine=!1,this.insertionMode){case K.INITIAL:{DI(this,t);break}case K.BEFORE_HEAD:case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:{this._err(t,fe.misplacedDoctype);break}case K.IN_TABLE_TEXT:{ns(this,t);break}}}onStartTag(t){this.skipNextNewLine=!1,this.currentToken=t,this._processStartTag(t),t.selfClosing&&!t.ackSelfClosing&&this._err(t,fe.nonVoidHtmlElementStartTagWithTrailingSolidus)}_processStartTag(t){this.shouldProcessStartTagTokenInForeignContent(t)?ZA(this,t):this._startTagOutsideForeignContent(t)}_startTagOutsideForeignContent(t){switch(this.insertionMode){case K.INITIAL:{ts(this,t);break}case K.BEFORE_HTML:{PI(this,t);break}case K.BEFORE_HEAD:{MI(this,t);break}case K.IN_HEAD:{sr(this,t);break}case K.IN_HEAD_NO_SCRIPT:{LI(this,t);break}case K.AFTER_HEAD:{$I(this,t);break}case K.IN_BODY:{cn(this,t);break}case K.IN_TABLE:{Eo(this,t);break}case K.IN_TABLE_TEXT:{ns(this,t);break}case K.IN_CAPTION:{NA(this,t);break}case K.IN_COLUMN_GROUP:{xp(this,t);break}case K.IN_TABLE_BODY:{xu(this,t);break}case K.IN_ROW:{Cu(this,t);break}case K.IN_CELL:{FA(this,t);break}case K.IN_SELECT:{S1(this,t);break}case K.IN_SELECT_IN_TABLE:{BA(this,t);break}case K.IN_TEMPLATE:{HA(this,t);break}case K.AFTER_BODY:{zA(this,t);break}case K.IN_FRAMESET:{VA(this,t);break}case K.AFTER_FRAMESET:{qA(this,t);break}case K.AFTER_AFTER_BODY:{GA(this,t);break}case K.AFTER_AFTER_FRAMESET:{KA(this,t);break}}}onEndTag(t){this.skipNextNewLine=!1,this.currentToken=t,this.currentNotInHTML?JA(this,t):this._endTagOutsideForeignContent(t)}_endTagOutsideForeignContent(t){switch(this.insertionMode){case K.INITIAL:{ts(this,t);break}case K.BEFORE_HTML:{RI(this,t);break}case K.BEFORE_HEAD:{NI(this,t);break}case K.IN_HEAD:{OI(this,t);break}case K.IN_HEAD_NO_SCRIPT:{FI(this,t);break}case K.AFTER_HEAD:{BI(this,t);break}case K.IN_BODY:{yu(this,t);break}case K.TEXT:{kA(this,t);break}case K.IN_TABLE:{Vs(this,t);break}case K.IN_TABLE_TEXT:{ns(this,t);break}case K.IN_CAPTION:{OA(this,t);break}case K.IN_COLUMN_GROUP:{LA(this,t);break}case K.IN_TABLE_BODY:{md(this,t);break}case K.IN_ROW:{k1(this,t);break}case K.IN_CELL:{$A(this,t);break}case K.IN_SELECT:{w1(this,t);break}case K.IN_SELECT_IN_TABLE:{jA(this,t);break}case K.IN_TEMPLATE:{UA(this,t);break}case K.AFTER_BODY:{I1(this,t);break}case K.IN_FRAMESET:{WA(this,t);break}case K.AFTER_FRAMESET:{YA(this,t);break}case K.AFTER_AFTER_BODY:{Xi(this,t);break}}}onEof(t){switch(this.insertionMode){case K.INITIAL:{ts(this,t);break}case K.BEFORE_HTML:{ws(this,t);break}case K.BEFORE_HEAD:{_s(this,t);break}case K.IN_HEAD:{Is(this,t);break}case K.IN_HEAD_NO_SCRIPT:{As(this,t);break}case K.AFTER_HEAD:{Ds(this,t);break}case K.IN_BODY:case K.IN_TABLE:case K.IN_CAPTION:case K.IN_COLUMN_GROUP:case K.IN_TABLE_BODY:case K.IN_ROW:case K.IN_CELL:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:{C1(this,t);break}case K.TEXT:{SA(this,t);break}case K.IN_TABLE_TEXT:{ns(this,t);break}case K.IN_TEMPLATE:{_1(this,t);break}case K.AFTER_BODY:case K.IN_FRAMESET:case K.AFTER_FRAMESET:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{yp(this,t);break}}}onWhitespaceCharacter(t){if(this.skipNextNewLine&&(this.skipNextNewLine=!1,t.chars.charCodeAt(0)===j.LINE_FEED)){if(t.chars.length===1)return;t.chars=t.chars.substr(1)}if(this.tokenizer.inForeignNode){this._insertCharacters(t);return}switch(this.insertionMode){case K.IN_HEAD:case K.IN_HEAD_NO_SCRIPT:case K.AFTER_HEAD:case K.TEXT:case K.IN_COLUMN_GROUP:case K.IN_SELECT:case K.IN_SELECT_IN_TABLE:case K.IN_FRAMESET:case K.AFTER_FRAMESET:{this._insertCharacters(t);break}case K.IN_BODY:case K.IN_CAPTION:case K.IN_CELL:case K.IN_TEMPLATE:case K.AFTER_BODY:case K.AFTER_AFTER_BODY:case K.AFTER_AFTER_FRAMESET:{h1(this,t);break}case K.IN_TABLE:case K.IN_TABLE_BODY:case K.IN_ROW:{bc(this,t);break}case K.IN_TABLE_TEXT:{E1(this,t);break}}}}function vI(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):x1(e,t),n}function TI(e,t){let n=null,r=e.openElements.stackTop;for(;r>=0;r--){const a=e.openElements.items[r];if(a===t.element)break;e._isSpecialElement(a,e.openElements.tagIDs[r])&&(n=a)}return n||(e.openElements.shortenToLength(Math.max(r,0)),e.activeFormattingElements.removeEntry(t)),n}function kI(e,t,n){let r=t,a=e.openElements.getCommonAncestor(t);for(let o=0,s=a;s!==n;o++,s=a){a=e.openElements.getCommonAncestor(s);const i=e.activeFormattingElements.getElementEntry(s),l=i&&o>=CI;!i||l?(l&&e.activeFormattingElements.removeEntry(i),e.openElements.remove(s)):(s=SI(e,i),r===t&&(e.activeFormattingElements.bookmark=i),e.treeAdapter.detachNode(r),e.treeAdapter.appendChild(s,r),r=s)}return r}function SI(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 wI(e,t,n){const r=e.treeAdapter.getTagName(t),a=Fo(r);if(e._isElementCausesFosterParenting(a))e._fosterParentElement(n);else{const o=e.treeAdapter.getNamespaceURI(t);a===y.TEMPLATE&&o===Ce.HTML&&(t=e.treeAdapter.getTemplateContent(t)),e.treeAdapter.appendChild(t,n)}}function _I(e,t,n){const r=e.treeAdapter.getNamespaceURI(n.element),{token:a}=n,o=e.treeAdapter.createElement(a.tagName,r,a.attrs);e._adoptNodes(t,o),e.treeAdapter.appendChild(t,o),e.activeFormattingElements.insertElementAfterBookmark(o,a),e.activeFormattingElements.removeEntry(n),e.openElements.remove(n.element),e.openElements.insertAfter(t,o,a.tagID)}function bp(e,t){for(let n=0;n<xI;n++){const r=vI(e,t);if(!r)break;const a=TI(e,r);if(!a)break;e.activeFormattingElements.bookmark=r;const o=kI(e,a,r.element),s=e.openElements.getCommonAncestor(r.element);e.treeAdapter.detachNode(o),s&&wI(e,s,o),_I(e,a,r)}}function fd(e,t){e._appendCommentNode(t,e.openElements.currentTmplContentOrNode)}function II(e,t){e._appendCommentNode(t,e.openElements.items[0])}function AI(e,t){e._appendCommentNode(t,e.document)}function yp(e,t){if(e.stopped=!0,t.location){const n=e.fragmentContext?0:2;for(let r=e.openElements.stackTop;r>=n;r--)e._setEndLocation(e.openElements.items[r],t);if(!e.fragmentContext&&e.openElements.stackTop>=0){const r=e.openElements.items[0],a=e.treeAdapter.getNodeSourceCodeLocation(r);if(a&&!a.endTag&&(e._setEndLocation(r,t),e.openElements.stackTop>=1)){const o=e.openElements.items[1],s=e.treeAdapter.getNodeSourceCodeLocation(o);s&&!s.endTag&&e._setEndLocation(o,t)}}}}function DI(e,t){e._setDocumentType(t);const n=t.forceQuirks?Un.QUIRKS:sI(t);oI(t)||e._err(t,fe.nonConformingDoctype),e.treeAdapter.setDocumentMode(e.document,n),e.insertionMode=K.BEFORE_HTML}function ts(e,t){e._err(t,fe.missingDoctype,!0),e.treeAdapter.setDocumentMode(e.document,Un.QUIRKS),e.insertionMode=K.BEFORE_HTML,e._processToken(t)}function PI(e,t){t.tagID===y.HTML?(e._insertElement(t,Ce.HTML),e.insertionMode=K.BEFORE_HEAD):ws(e,t)}function RI(e,t){const n=t.tagID;(n===y.HTML||n===y.HEAD||n===y.BODY||n===y.BR)&&ws(e,t)}function ws(e,t){e._insertFakeRootElement(),e.insertionMode=K.BEFORE_HEAD,e._processToken(t)}function MI(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.HEAD:{e._insertElement(t,Ce.HTML),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD;break}default:_s(e,t)}}function NI(e,t){const n=t.tagID;n===y.HEAD||n===y.BODY||n===y.HTML||n===y.BR?_s(e,t):e._err(t,fe.endTagWithoutMatchingOpenElement)}function _s(e,t){e._insertFakeElement(ae.HEAD,y.HEAD),e.headElement=e.openElements.current,e.insertionMode=K.IN_HEAD,e._processToken(t)}function sr(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:{e._appendElement(t,Ce.HTML),t.ackSelfClosing=!0;break}case y.TITLE:{e._switchToTextParsing(t,$t.RCDATA);break}case y.NOSCRIPT:{e.options.scriptingEnabled?e._switchToTextParsing(t,$t.RAWTEXT):(e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_HEAD_NO_SCRIPT);break}case y.NOFRAMES:case y.STYLE:{e._switchToTextParsing(t,$t.RAWTEXT);break}case y.SCRIPT:{e._switchToTextParsing(t,$t.SCRIPT_DATA);break}case y.TEMPLATE:{e._insertTemplate(t),e.activeFormattingElements.insertMarker(),e.framesetOk=!1,e.insertionMode=K.IN_TEMPLATE,e.tmplInsertionModeStack.unshift(K.IN_TEMPLATE);break}case y.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:Is(e,t)}}function OI(e,t){switch(t.tagID){case y.HEAD:{e.openElements.pop(),e.insertionMode=K.AFTER_HEAD;break}case y.BODY:case y.BR:case y.HTML:{Is(e,t);break}case y.TEMPLATE:{Ua(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Ua(e,t){e.openElements.tmplCount>0?(e.openElements.generateImpliedEndTagsThoroughly(),e.openElements.currentTagId!==y.TEMPLATE&&e._err(t,fe.closingOfElementWithOpenChildElements),e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode()):e._err(t,fe.endTagWithoutMatchingOpenElement)}function Is(e,t){e.openElements.pop(),e.insertionMode=K.AFTER_HEAD,e._processToken(t)}function LI(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.BASEFONT:case y.BGSOUND:case y.HEAD:case y.LINK:case y.META:case y.NOFRAMES:case y.STYLE:{sr(e,t);break}case y.NOSCRIPT:{e._err(t,fe.nestedNoscriptInHead);break}default:As(e,t)}}function FI(e,t){switch(t.tagID){case y.NOSCRIPT:{e.openElements.pop(),e.insertionMode=K.IN_HEAD;break}case y.BR:{As(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function As(e,t){const n=t.type===rt.EOF?fe.openElementsLeftAfterEof:fe.disallowedContentInNoscriptInHead;e._err(t,n),e.openElements.pop(),e.insertionMode=K.IN_HEAD,e._processToken(t)}function $I(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.BODY:{e._insertElement(t,Ce.HTML),e.framesetOk=!1,e.insertionMode=K.IN_BODY;break}case y.FRAMESET:{e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_FRAMESET;break}case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{e._err(t,fe.abandonedHeadElementChild),e.openElements.push(e.headElement,y.HEAD),sr(e,t),e.openElements.remove(e.headElement);break}case y.HEAD:{e._err(t,fe.misplacedStartTagForHeadElement);break}default:Ds(e,t)}}function BI(e,t){switch(t.tagID){case y.BODY:case y.HTML:case y.BR:{Ds(e,t);break}case y.TEMPLATE:{Ua(e,t);break}default:e._err(t,fe.endTagWithoutMatchingOpenElement)}}function Ds(e,t){e._insertFakeElement(ae.BODY,y.BODY),e.insertionMode=K.IN_BODY,bu(e,t)}function bu(e,t){switch(t.type){case rt.CHARACTER:{g1(e,t);break}case rt.WHITESPACE_CHARACTER:{h1(e,t);break}case rt.COMMENT:{fd(e,t);break}case rt.START_TAG:{cn(e,t);break}case rt.END_TAG:{yu(e,t);break}case rt.EOF:{C1(e,t);break}}}function h1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t)}function g1(e,t){e._reconstructActiveFormattingElements(),e._insertCharacters(t),e.framesetOk=!1}function jI(e,t){e.openElements.tmplCount===0&&e.treeAdapter.adoptAttributes(e.openElements.items[0],t.attrs)}function HI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e.openElements.tmplCount===0&&(e.framesetOk=!1,e.treeAdapter.adoptAttributes(n,t.attrs))}function UI(e,t){const n=e.openElements.tryPeekProperlyNestedBodyElement();e.framesetOk&&n&&(e.treeAdapter.detachNode(n),e.openElements.popAllUpToHtmlElement(),e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_FRAMESET)}function zI(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,Ce.HTML)}function VI(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e.openElements.currentTagId!==void 0&&pd.has(e.openElements.currentTagId)&&e.openElements.pop(),e._insertElement(t,Ce.HTML)}function WI(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,Ce.HTML),e.skipNextNewLine=!0,e.framesetOk=!1}function qI(e,t){const n=e.openElements.tmplCount>0;(!e.formElement||n)&&(e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,Ce.HTML),n||(e.formElement=e.openElements.current))}function YI(e,t){e.framesetOk=!1;const n=t.tagID;for(let r=e.openElements.stackTop;r>=0;r--){const a=e.openElements.tagIDs[r];if(n===y.LI&&a===y.LI||(n===y.DD||n===y.DT)&&(a===y.DD||a===y.DT)){e.openElements.generateImpliedEndTagsWithExclusion(a),e.openElements.popUntilTagNamePopped(a);break}if(a!==y.ADDRESS&&a!==y.DIV&&a!==y.P&&e._isSpecialElement(e.openElements.items[r],a))break}e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,Ce.HTML)}function GI(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,Ce.HTML),e.tokenizer.state=$t.PLAINTEXT}function KI(e,t){e.openElements.hasInScope(y.BUTTON)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.BUTTON)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ce.HTML),e.framesetOk=!1}function QI(e,t){const n=e.activeFormattingElements.getElementEntryInScopeWithTagName(ae.A);n&&(bp(e,t),e.openElements.remove(n.element),e.activeFormattingElements.removeEntry(n)),e._reconstructActiveFormattingElements(),e._insertElement(t,Ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function XI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function ZI(e,t){e._reconstructActiveFormattingElements(),e.openElements.hasInScope(y.NOBR)&&(bp(e,t),e._reconstructActiveFormattingElements()),e._insertElement(t,Ce.HTML),e.activeFormattingElements.pushElement(e.openElements.current,t)}function JI(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ce.HTML),e.activeFormattingElements.insertMarker(),e.framesetOk=!1}function eA(e,t){e.treeAdapter.getDocumentMode(e.document)!==Un.QUIRKS&&e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._insertElement(t,Ce.HTML),e.framesetOk=!1,e.insertionMode=K.IN_TABLE}function b1(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ce.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function y1(e){const t=s1(e,wa.TYPE);return t!=null&&t.toLowerCase()===yI}function tA(e,t){e._reconstructActiveFormattingElements(),e._appendElement(t,Ce.HTML),y1(t)||(e.framesetOk=!1),t.ackSelfClosing=!0}function nA(e,t){e._appendElement(t,Ce.HTML),t.ackSelfClosing=!0}function rA(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._appendElement(t,Ce.HTML),e.framesetOk=!1,t.ackSelfClosing=!0}function aA(e,t){t.tagName=ae.IMG,t.tagID=y.IMG,b1(e,t)}function oA(e,t){e._insertElement(t,Ce.HTML),e.skipNextNewLine=!0,e.tokenizer.state=$t.RCDATA,e.originalInsertionMode=e.insertionMode,e.framesetOk=!1,e.insertionMode=K.TEXT}function sA(e,t){e.openElements.hasInButtonScope(y.P)&&e._closePElement(),e._reconstructActiveFormattingElements(),e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function iA(e,t){e.framesetOk=!1,e._switchToTextParsing(t,$t.RAWTEXT)}function rh(e,t){e._switchToTextParsing(t,$t.RAWTEXT)}function lA(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ce.HTML),e.framesetOk=!1,e.insertionMode=e.insertionMode===K.IN_TABLE||e.insertionMode===K.IN_CAPTION||e.insertionMode===K.IN_TABLE_BODY||e.insertionMode===K.IN_ROW||e.insertionMode===K.IN_CELL?K.IN_SELECT_IN_TABLE:K.IN_SELECT}function uA(e,t){e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._reconstructActiveFormattingElements(),e._insertElement(t,Ce.HTML)}function cA(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTags(),e._insertElement(t,Ce.HTML)}function dA(e,t){e.openElements.hasInScope(y.RUBY)&&e.openElements.generateImpliedEndTagsWithExclusion(y.RTC),e._insertElement(t,Ce.HTML)}function pA(e,t){e._reconstructActiveFormattingElements(),p1(t),gp(t),t.selfClosing?e._appendElement(t,Ce.MATHML):e._insertElement(t,Ce.MATHML),t.ackSelfClosing=!0}function fA(e,t){e._reconstructActiveFormattingElements(),f1(t),gp(t),t.selfClosing?e._appendElement(t,Ce.SVG):e._insertElement(t,Ce.SVG),t.ackSelfClosing=!0}function ah(e,t){e._reconstructActiveFormattingElements(),e._insertElement(t,Ce.HTML)}function cn(e,t){switch(t.tagID){case y.I:case y.S:case y.B:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.SMALL:case y.STRIKE:case y.STRONG:{XI(e,t);break}case y.A:{QI(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{VI(e,t);break}case y.P:case y.DL:case y.OL:case y.UL:case y.DIV:case y.DIR:case y.NAV:case y.MAIN:case y.MENU:case y.ASIDE:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.DETAILS:case y.ADDRESS:case y.ARTICLE:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{zI(e,t);break}case y.LI:case y.DD:case y.DT:{YI(e,t);break}case y.BR:case y.IMG:case y.WBR:case y.AREA:case y.EMBED:case y.KEYGEN:{b1(e,t);break}case y.HR:{rA(e,t);break}case y.RB:case y.RTC:{cA(e,t);break}case y.RT:case y.RP:{dA(e,t);break}case y.PRE:case y.LISTING:{WI(e,t);break}case y.XMP:{sA(e,t);break}case y.SVG:{fA(e,t);break}case y.HTML:{jI(e,t);break}case y.BASE:case y.LINK:case y.META:case y.STYLE:case y.TITLE:case y.SCRIPT:case y.BGSOUND:case y.BASEFONT:case y.TEMPLATE:{sr(e,t);break}case y.BODY:{HI(e,t);break}case y.FORM:{qI(e,t);break}case y.NOBR:{ZI(e,t);break}case y.MATH:{pA(e,t);break}case y.TABLE:{eA(e,t);break}case y.INPUT:{tA(e,t);break}case y.PARAM:case y.TRACK:case y.SOURCE:{nA(e,t);break}case y.IMAGE:{aA(e,t);break}case y.BUTTON:{KI(e,t);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{JI(e,t);break}case y.IFRAME:{iA(e,t);break}case y.SELECT:{lA(e,t);break}case y.OPTION:case y.OPTGROUP:{uA(e,t);break}case y.NOEMBED:case y.NOFRAMES:{rh(e,t);break}case y.FRAMESET:{UI(e,t);break}case y.TEXTAREA:{oA(e,t);break}case y.NOSCRIPT:{e.options.scriptingEnabled?rh(e,t):ah(e,t);break}case y.PLAINTEXT:{GI(e,t);break}case y.COL:case y.TH:case y.TD:case y.TR:case y.HEAD:case y.FRAME:case y.TBODY:case y.TFOOT:case y.THEAD:case y.CAPTION:case y.COLGROUP:break;default:ah(e,t)}}function mA(e,t){if(e.openElements.hasInScope(y.BODY)&&(e.insertionMode=K.AFTER_BODY,e.options.sourceCodeLocationInfo)){const n=e.openElements.tryPeekProperlyNestedBodyElement();n&&e._setEndLocation(n,t)}}function hA(e,t){e.openElements.hasInScope(y.BODY)&&(e.insertionMode=K.AFTER_BODY,I1(e,t))}function gA(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n))}function bA(e){const t=e.openElements.tmplCount>0,{formElement:n}=e;t||(e.formElement=null),(n||t)&&e.openElements.hasInScope(y.FORM)&&(e.openElements.generateImpliedEndTags(),t?e.openElements.popUntilTagNamePopped(y.FORM):n&&e.openElements.remove(n))}function yA(e){e.openElements.hasInButtonScope(y.P)||e._insertFakeElement(ae.P,y.P),e._closePElement()}function xA(e){e.openElements.hasInListItemScope(y.LI)&&(e.openElements.generateImpliedEndTagsWithExclusion(y.LI),e.openElements.popUntilTagNamePopped(y.LI))}function CA(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTagsWithExclusion(n),e.openElements.popUntilTagNamePopped(n))}function EA(e){e.openElements.hasNumberedHeaderInScope()&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilNumberedHeaderPopped())}function vA(e,t){const n=t.tagID;e.openElements.hasInScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker())}function TA(e){e._reconstructActiveFormattingElements(),e._insertFakeElement(ae.BR,y.BR),e.openElements.pop(),e.framesetOk=!1}function x1(e,t){const n=t.tagName,r=t.tagID;for(let a=e.openElements.stackTop;a>0;a--){const o=e.openElements.items[a],s=e.openElements.tagIDs[a];if(r===s&&(r!==y.UNKNOWN||e.treeAdapter.getTagName(o)===n)){e.openElements.generateImpliedEndTagsWithExclusion(r),e.openElements.stackTop>=a&&e.openElements.shortenToLength(a);break}if(e._isSpecialElement(o,s))break}}function yu(e,t){switch(t.tagID){case y.A:case y.B:case y.I:case y.S:case y.U:case y.EM:case y.TT:case y.BIG:case y.CODE:case y.FONT:case y.NOBR:case y.SMALL:case y.STRIKE:case y.STRONG:{bp(e,t);break}case y.P:{yA(e);break}case y.DL:case y.UL:case y.OL:case y.DIR:case y.DIV:case y.NAV:case y.PRE:case y.MAIN:case y.MENU:case y.ASIDE:case y.BUTTON:case y.CENTER:case y.FIGURE:case y.FOOTER:case y.HEADER:case y.HGROUP:case y.DIALOG:case y.ADDRESS:case y.ARTICLE:case y.DETAILS:case y.SEARCH:case y.SECTION:case y.SUMMARY:case y.LISTING:case y.FIELDSET:case y.BLOCKQUOTE:case y.FIGCAPTION:{gA(e,t);break}case y.LI:{xA(e);break}case y.DD:case y.DT:{CA(e,t);break}case y.H1:case y.H2:case y.H3:case y.H4:case y.H5:case y.H6:{EA(e);break}case y.BR:{TA(e);break}case y.BODY:{mA(e,t);break}case y.HTML:{hA(e,t);break}case y.FORM:{bA(e);break}case y.APPLET:case y.OBJECT:case y.MARQUEE:{vA(e,t);break}case y.TEMPLATE:{Ua(e,t);break}default:x1(e,t)}}function C1(e,t){e.tmplInsertionModeStack.length>0?_1(e,t):yp(e,t)}function kA(e,t){var n;t.tagID===y.SCRIPT&&((n=e.scriptHandler)===null||n===void 0||n.call(e,e.openElements.current)),e.openElements.pop(),e.insertionMode=e.originalInsertionMode}function SA(e,t){e._err(t,fe.eofInElementThatCanContainOnlyText),e.openElements.pop(),e.insertionMode=e.originalInsertionMode,e.onEof(t)}function bc(e,t){if(e.openElements.currentTagId!==void 0&&m1.has(e.openElements.currentTagId))switch(e.pendingCharacterTokens.length=0,e.hasNonWhitespacePendingCharacterToken=!1,e.originalInsertionMode=e.insertionMode,e.insertionMode=K.IN_TABLE_TEXT,t.type){case rt.CHARACTER:{v1(e,t);break}case rt.WHITESPACE_CHARACTER:{E1(e,t);break}}else fi(e,t)}function wA(e,t){e.openElements.clearBackToTableContext(),e.activeFormattingElements.insertMarker(),e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_CAPTION}function _A(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_COLUMN_GROUP}function IA(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ae.COLGROUP,y.COLGROUP),e.insertionMode=K.IN_COLUMN_GROUP,xp(e,t)}function AA(e,t){e.openElements.clearBackToTableContext(),e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_TABLE_BODY}function DA(e,t){e.openElements.clearBackToTableContext(),e._insertFakeElement(ae.TBODY,y.TBODY),e.insertionMode=K.IN_TABLE_BODY,xu(e,t)}function PA(e,t){e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode(),e._processStartTag(t))}function RA(e,t){y1(t)?e._appendElement(t,Ce.HTML):fi(e,t),t.ackSelfClosing=!0}function MA(e,t){!e.formElement&&e.openElements.tmplCount===0&&(e._insertElement(t,Ce.HTML),e.formElement=e.openElements.current,e.openElements.pop())}function Eo(e,t){switch(t.tagID){case y.TD:case y.TH:case y.TR:{DA(e,t);break}case y.STYLE:case y.SCRIPT:case y.TEMPLATE:{sr(e,t);break}case y.COL:{IA(e,t);break}case y.FORM:{MA(e,t);break}case y.TABLE:{PA(e,t);break}case y.TBODY:case y.TFOOT:case y.THEAD:{AA(e,t);break}case y.INPUT:{RA(e,t);break}case y.CAPTION:{wA(e,t);break}case y.COLGROUP:{_A(e,t);break}default:fi(e,t)}}function Vs(e,t){switch(t.tagID){case y.TABLE:{e.openElements.hasInTableScope(y.TABLE)&&(e.openElements.popUntilTagNamePopped(y.TABLE),e._resetInsertionMode());break}case y.TEMPLATE:{Ua(e,t);break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:fi(e,t)}}function fi(e,t){const n=e.fosterParentingEnabled;e.fosterParentingEnabled=!0,bu(e,t),e.fosterParentingEnabled=n}function E1(e,t){e.pendingCharacterTokens.push(t)}function v1(e,t){e.pendingCharacterTokens.push(t),e.hasNonWhitespacePendingCharacterToken=!0}function ns(e,t){let n=0;if(e.hasNonWhitespacePendingCharacterToken)for(;n<e.pendingCharacterTokens.length;n++)fi(e,e.pendingCharacterTokens[n]);else for(;n<e.pendingCharacterTokens.length;n++)e._insertCharacters(e.pendingCharacterTokens[n]);e.insertionMode=e.originalInsertionMode,e._processToken(t)}const T1=new Set([y.CAPTION,y.COL,y.COLGROUP,y.TBODY,y.TD,y.TFOOT,y.TH,y.THEAD,y.TR]);function NA(e,t){const n=t.tagID;T1.has(n)?e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,Eo(e,t)):cn(e,t)}function OA(e,t){const n=t.tagID;switch(n){case y.CAPTION:case y.TABLE:{e.openElements.hasInTableScope(y.CAPTION)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(y.CAPTION),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_TABLE,n===y.TABLE&&Vs(e,t));break}case y.BODY:case y.COL:case y.COLGROUP:case y.HTML:case y.TBODY:case y.TD:case y.TFOOT:case y.TH:case y.THEAD:case y.TR:break;default:yu(e,t)}}function xp(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.COL:{e._appendElement(t,Ce.HTML),t.ackSelfClosing=!0;break}case y.TEMPLATE:{sr(e,t);break}default:_l(e,t)}}function LA(e,t){switch(t.tagID){case y.COLGROUP:{e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE);break}case y.TEMPLATE:{Ua(e,t);break}case y.COL:break;default:_l(e,t)}}function _l(e,t){e.openElements.currentTagId===y.COLGROUP&&(e.openElements.pop(),e.insertionMode=K.IN_TABLE,e._processToken(t))}function xu(e,t){switch(t.tagID){case y.TR:{e.openElements.clearBackToTableBodyContext(),e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_ROW;break}case y.TH:case y.TD:{e.openElements.clearBackToTableBodyContext(),e._insertFakeElement(ae.TR,y.TR),e.insertionMode=K.IN_ROW,Cu(e,t);break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,Eo(e,t));break}default:Eo(e,t)}}function md(e,t){const n=t.tagID;switch(t.tagID){case y.TBODY:case y.TFOOT:case y.THEAD:{e.openElements.hasInTableScope(n)&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE);break}case y.TABLE:{e.openElements.hasTableBodyContextInTableScope()&&(e.openElements.clearBackToTableBodyContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE,Vs(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:case y.TR:break;default:Vs(e,t)}}function Cu(e,t){switch(t.tagID){case y.TH:case y.TD:{e.openElements.clearBackToTableRowContext(),e._insertElement(t,Ce.HTML),e.insertionMode=K.IN_CELL,e.activeFormattingElements.insertMarker();break}case y.CAPTION:case y.COL:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,xu(e,t));break}default:Eo(e,t)}}function k1(e,t){switch(t.tagID){case y.TR:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY);break}case y.TABLE:{e.openElements.hasInTableScope(y.TR)&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,md(e,t));break}case y.TBODY:case y.TFOOT:case y.THEAD:{(e.openElements.hasInTableScope(t.tagID)||e.openElements.hasInTableScope(y.TR))&&(e.openElements.clearBackToTableRowContext(),e.openElements.pop(),e.insertionMode=K.IN_TABLE_BODY,md(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:case y.TD:case y.TH:break;default:Vs(e,t)}}function FA(e,t){const n=t.tagID;T1.has(n)?(e.openElements.hasInTableScope(y.TD)||e.openElements.hasInTableScope(y.TH))&&(e._closeTableCell(),Cu(e,t)):cn(e,t)}function $A(e,t){const n=t.tagID;switch(n){case y.TD:case y.TH:{e.openElements.hasInTableScope(n)&&(e.openElements.generateImpliedEndTags(),e.openElements.popUntilTagNamePopped(n),e.activeFormattingElements.clearToLastMarker(),e.insertionMode=K.IN_ROW);break}case y.TABLE:case y.TBODY:case y.TFOOT:case y.THEAD:case y.TR:{e.openElements.hasInTableScope(n)&&(e._closeTableCell(),k1(e,t));break}case y.BODY:case y.CAPTION:case y.COL:case y.COLGROUP:case y.HTML:break;default:yu(e,t)}}function S1(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e._insertElement(t,Ce.HTML);break}case y.OPTGROUP:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._insertElement(t,Ce.HTML);break}case y.HR:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop(),e._appendElement(t,Ce.HTML),t.ackSelfClosing=!0;break}case y.INPUT:case y.KEYGEN:case y.TEXTAREA:case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),t.tagID!==y.SELECT&&e._processStartTag(t));break}case y.SCRIPT:case y.TEMPLATE:{sr(e,t);break}}}function w1(e,t){switch(t.tagID){case y.OPTGROUP:{e.openElements.stackTop>0&&e.openElements.currentTagId===y.OPTION&&e.openElements.tagIDs[e.openElements.stackTop-1]===y.OPTGROUP&&e.openElements.pop(),e.openElements.currentTagId===y.OPTGROUP&&e.openElements.pop();break}case y.OPTION:{e.openElements.currentTagId===y.OPTION&&e.openElements.pop();break}case y.SELECT:{e.openElements.hasInSelectScope(y.SELECT)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode());break}case y.TEMPLATE:{Ua(e,t);break}}}function BA(e,t){const n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e._processStartTag(t)):S1(e,t)}function jA(e,t){const n=t.tagID;n===y.CAPTION||n===y.TABLE||n===y.TBODY||n===y.TFOOT||n===y.THEAD||n===y.TR||n===y.TD||n===y.TH?e.openElements.hasInTableScope(n)&&(e.openElements.popUntilTagNamePopped(y.SELECT),e._resetInsertionMode(),e.onEndTag(t)):w1(e,t)}function HA(e,t){switch(t.tagID){case y.BASE:case y.BASEFONT:case y.BGSOUND:case y.LINK:case y.META:case y.NOFRAMES:case y.SCRIPT:case y.STYLE:case y.TEMPLATE:case y.TITLE:{sr(e,t);break}case y.CAPTION:case y.COLGROUP:case y.TBODY:case y.TFOOT:case y.THEAD:{e.tmplInsertionModeStack[0]=K.IN_TABLE,e.insertionMode=K.IN_TABLE,Eo(e,t);break}case y.COL:{e.tmplInsertionModeStack[0]=K.IN_COLUMN_GROUP,e.insertionMode=K.IN_COLUMN_GROUP,xp(e,t);break}case y.TR:{e.tmplInsertionModeStack[0]=K.IN_TABLE_BODY,e.insertionMode=K.IN_TABLE_BODY,xu(e,t);break}case y.TD:case y.TH:{e.tmplInsertionModeStack[0]=K.IN_ROW,e.insertionMode=K.IN_ROW,Cu(e,t);break}default:e.tmplInsertionModeStack[0]=K.IN_BODY,e.insertionMode=K.IN_BODY,cn(e,t)}}function UA(e,t){t.tagID===y.TEMPLATE&&Ua(e,t)}function _1(e,t){e.openElements.tmplCount>0?(e.openElements.popUntilTagNamePopped(y.TEMPLATE),e.activeFormattingElements.clearToLastMarker(),e.tmplInsertionModeStack.shift(),e._resetInsertionMode(),e.onEof(t)):yp(e,t)}function zA(e,t){t.tagID===y.HTML?cn(e,t):Il(e,t)}function I1(e,t){var n;if(t.tagID===y.HTML){if(e.fragmentContext||(e.insertionMode=K.AFTER_AFTER_BODY),e.options.sourceCodeLocationInfo&&e.openElements.tagIDs[0]===y.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 Il(e,t)}function Il(e,t){e.insertionMode=K.IN_BODY,bu(e,t)}function VA(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.FRAMESET:{e._insertElement(t,Ce.HTML);break}case y.FRAME:{e._appendElement(t,Ce.HTML),t.ackSelfClosing=!0;break}case y.NOFRAMES:{sr(e,t);break}}}function WA(e,t){t.tagID===y.FRAMESET&&!e.openElements.isRootHtmlElementCurrent()&&(e.openElements.pop(),!e.fragmentContext&&e.openElements.currentTagId!==y.FRAMESET&&(e.insertionMode=K.AFTER_FRAMESET))}function qA(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.NOFRAMES:{sr(e,t);break}}}function YA(e,t){t.tagID===y.HTML&&(e.insertionMode=K.AFTER_AFTER_FRAMESET)}function GA(e,t){t.tagID===y.HTML?cn(e,t):Xi(e,t)}function Xi(e,t){e.insertionMode=K.IN_BODY,bu(e,t)}function KA(e,t){switch(t.tagID){case y.HTML:{cn(e,t);break}case y.NOFRAMES:{sr(e,t);break}}}function QA(e,t){t.chars=Mt,e._insertCharacters(t)}function XA(e,t){e._insertCharacters(t),e.framesetOk=!1}function A1(e){for(;e.treeAdapter.getNamespaceURI(e.openElements.current)!==Ce.HTML&&e.openElements.currentTagId!==void 0&&!e._isIntegrationPoint(e.openElements.currentTagId,e.openElements.current);)e.openElements.pop()}function ZA(e,t){if(fI(t))A1(e),e._startTagOutsideForeignContent(t);else{const n=e._getAdjustedCurrentElement(),r=e.treeAdapter.getNamespaceURI(n);r===Ce.MATHML?p1(t):r===Ce.SVG&&(mI(t),f1(t)),gp(t),t.selfClosing?e._appendElement(t,r):e._insertElement(t,r),t.ackSelfClosing=!0}}function JA(e,t){if(t.tagID===y.P||t.tagID===y.BR){A1(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)===Ce.HTML){e._endTagOutsideForeignContent(t);break}const a=e.treeAdapter.getTagName(r);if(a.toLowerCase()===t.tagName){t.tagName=a,e.openElements.shortenToLength(n);break}}}ae.AREA,ae.BASE,ae.BASEFONT,ae.BGSOUND,ae.BR,ae.COL,ae.EMBED,ae.FRAME,ae.HR,ae.IMG,ae.INPUT,ae.KEYGEN,ae.LINK,ae.META,ae.PARAM,ae.SOURCE,ae.TRACK,ae.WBR;const eD=/<(\/?)(iframe|noembed|noframes|plaintext|script|style|textarea|title|xmp)(?=[\t\n\f\r />])/gi,tD=new Set(["mdxFlowExpression","mdxJsxFlowElement","mdxJsxTextElement","mdxTextExpression","mdxjsEsm"]),oh={sourceCodeLocationInfo:!0,scriptingEnabled:!1};function D1(e,t){const n=dD(e),r=gu("type",{handlers:{root:nD,element:rD,text:aD,comment:R1,doctype:oD,raw:iD},unknown:lD}),a={parser:n?new nh(oh):nh.getFragmentParser(void 0,oh),handle(i){r(i,a)},stitches:!1,options:t||{}};r(e,a),$o(a,Er());const o=n?a.parser.document:a.parser.getFragment(),s=r6(o,{file:a.options.file});return a.stitches&&vn(s,"comment",function(i,l,u){const c=i;if(c.value.stitch&&u&&l!==void 0){const d=u.children;return d[l]=c.value.stitch,l}}),s.type==="root"&&s.children.length===1&&s.children[0].type===e.type?s.children[0]:s}function P1(e,t){let n=-1;if(e)for(;++n<e.length;)t.handle(e[n])}function nD(e,t){P1(e.children,t)}function rD(e,t){uD(e,t),P1(e.children,t),cD(e,t)}function aD(e,t){t.parser.tokenizer.state>4&&(t.parser.tokenizer.state=0);const n={type:rt.CHARACTER,chars:e.value,location:mi(e)};$o(t,Er(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function oD(e,t){const n={type:rt.DOCTYPE,name:"html",forceQuirks:!1,publicId:"",systemId:"",location:mi(e)};$o(t,Er(e)),t.parser.currentToken=n,t.parser._processToken(t.parser.currentToken)}function sD(e,t){t.stitches=!0;const n=pD(e);if("children"in e&&"children"in n){const r=D1({type:"root",children:e.children},t.options);n.children=r.children}R1({type:"comment",value:{stitch:n}},t)}function R1(e,t){const n=e.value,r={type:rt.COMMENT,data:n,location:mi(e)};$o(t,Er(e)),t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken)}function iD(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,M1(t,Er(e)),t.parser.tokenizer.write(t.options.tagfilter?e.value.replace(eD,"&lt;$1$2"):e.value,!1),t.parser.tokenizer._runParsingLoop(),t.parser.tokenizer.state===72||t.parser.tokenizer.state===78){t.parser.tokenizer.preprocessor.lastChunkWritten=!0;const n=t.parser.tokenizer._consume();t.parser.tokenizer._callState(n)}}function lD(e,t){const n=e;if(t.options.passThrough&&t.options.passThrough.includes(n.type))sD(n,t);else{let r="";throw tD.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 $o(e,t){M1(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=$t.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 M1(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 uD(e,t){const n=e.tagName.toLowerCase();if(t.parser.tokenizer.state===$t.PLAINTEXT)return;$o(t,Er(e));const r=t.parser.openElements.current;let a="namespaceURI"in r?r.namespaceURI:Ea.html;a===Ea.html&&n==="svg"&&(a=Ea.svg);const o=y6({...e,children:[]},{space:a===Ea.svg?"svg":"html"}),s={type:rt.START_TAG,tagName:n,tagID:Fo(n),selfClosing:!1,ackSelfClosing:!1,attrs:"attrs"in o?o.attrs:[],location:mi(e)};t.parser.currentToken=s,t.parser._processToken(t.parser.currentToken),t.parser.tokenizer.lastStartTagName=n}function cD(e,t){const n=e.tagName.toLowerCase();if(!t.parser.tokenizer.inForeignNode&&n1.includes(n)||t.parser.tokenizer.state===$t.PLAINTEXT)return;$o(t,cu(e));const r={type:rt.END_TAG,tagName:n,tagID:Fo(n),selfClosing:!1,ackSelfClosing:!1,attrs:[],location:mi(e)};t.parser.currentToken=r,t.parser._processToken(t.parser.currentToken),n===t.parser.tokenizer.lastStartTagName&&(t.parser.tokenizer.state===$t.RCDATA||t.parser.tokenizer.state===$t.RAWTEXT||t.parser.tokenizer.state===$t.SCRIPT_DATA)&&(t.parser.tokenizer.state=$t.DATA)}function dD(e){const t=e.type==="root"?e.children[0]:e;return!!(t&&(t.type==="doctype"||t.type==="element"&&t.tagName.toLowerCase()==="html"))}function mi(e){const t=Er(e)||{line:void 0,column:void 0,offset:void 0},n=cu(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 pD(e){return"children"in e?Ma({...e,children:[]}):Ma(e)}function fD(e){return function(t,n){return D1(t,{...e,file:n})}}const mD=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)\]/i,hD=/^\[!(NOTE|TIP|IMPORTANT|WARNING|CAUTION)(\/.*)?\]/i,gD=({legacyTitle:e=!1,tagName:t="div"}={})=>n=>{vn(n,"blockquote",(r,a,o)=>{let s="",i="",l=!0,u=r.children.map(c=>{if(l&&c.type==="paragraph"){const d=c.children[0],m=d.type==="text"?d.value:"",f=e?hD:mD,h=m.match(f);if(h&&(l=!1,s=h[1].toLocaleLowerCase(),i=e&&h[2]||s.toLocaleUpperCase(),m.includes(`
51
- `)&&(c.children[0]={type:"text",value:m.replace(f,"").replace(/^\n+/,"")}),!m.includes(`
52
- `))){const b=[];c.children.forEach((g,x)=>{x!=0&&(x==1&&g.type==="break"||b.push(g))}),c.children=[...b]}}return c});s&&(r.data={hName:t,hProperties:{class:`markdown-alert markdown-alert-${s}`,dir:"auto"}},u.unshift({type:"paragraph",children:[bD(s),{type:"text",value:i.replace(/^\//,"")}],data:{hProperties:{class:"markdown-alert-title",dir:"auto"}}})),r.children=[...u]})};function bD(e){let t=yD[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 yD={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 xD(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 a=!1;try{a=!!document.execCommand("copy")}catch{a=!1}document.body.removeChild(n),r&&document.getSelection&&(document.getSelection().removeAllRanges(),document.getSelection().addRange(r)),t&&t(a)}function N1(e){if(!e)return null;var t=e;return t.dataset.code&&t.classList.contains("copied")?t:t.parentElement?N1(t.parentElement):null}function CD(e){var t=n=>{var r=N1(n.target);r&&(r.classList.add("active"),xD(r.dataset.code,function(){setTimeout(()=>{r.classList.remove("active")},2e3)}))};q.useEffect(()=>{var n,r;return(n=e.current)==null||n.removeEventListener("click",t,!1),(r=e.current)==null||r.addEventListener("click",t,!1),()=>{var a;(a=e.current)==null||a.removeEventListener("click",t,!1)}},[e])}var ED=["prefixCls","className","source","style","disableCopy","skipHtml","onScroll","onMouseOver","pluginsFilter","rehypeRewrite","wrapperElement","warpperElement","urlTransform"],vD=e=>e;const TD=q.forwardRef((e,t)=>{var{prefixCls:n="wmde-markdown wmde-markdown-color",className:r,source:a,style:o,disableCopy:s=!1,skipHtml:i=!0,onScroll:l,onMouseOver:u,pluginsFilter:c,wrapperElement:d={},warpperElement:m={},urlTransform:f}=e,h=je(e,ED),b=q.useRef(null);q.useImperativeHandle(t,()=>U({},e,{mdp:b}),[b,e]);var g=(n||"")+" "+(r||"");CD(b);var x=[...h.rehypePlugins||[]],C={allowElement:(T,S,O)=>h.allowElement?h.allowElement(T,S,O):/^[A-Za-z0-9]+$/.test(T.tagName)};i||x.push(fD);var E=[gD,...h.remarkPlugins||[],q3],k=U({},m,d);return p.jsx("div",U({ref:b,onScroll:l,onMouseOver:u},k,{className:g,style:o,children:p.jsx(Lw,U({},C,h,{skipHtml:!i,urlTransform:f||vD,rehypePlugins:c?c("rehype",x):x,remarkPlugins:c?c("remark",E):E,children:a||""}))}))});var Zi={},hd={};function kD(e,t){for(var n=t,r=0;r<e.length;r++){var a=r===e.length-1,o=e.charAt(r),s=n[o]||(n[o]={chars:{}});a&&(s.self=e),n=s.chars}}function sh(e){if(e.length===0)return Zi;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];kD(a,t)}return t}function SD(e){if(e.length===0)return hd;for(var t={},n=0,r=e;n<r.length;n++){var a=r[n];t[a]=!0}return t}var Mi={},ih={type:"String",optional:!0};function wD(e){var t={type:"NoArgument",optional:!1};function n(s){if(t.type&&t.type!==s&&t.type!=="NoArgument")throw new Error('Conflicting pseudo-class argument type: "'.concat(t.type,'" vs "').concat(s,'".'));t.type=s}for(var r=0,a=e;r<a.length;r++){var o=a[r];o==="NoArgument"&&(t.optional=!0),o==="Formula"&&n("Formula"),o==="FormulaOfSelector"&&(n("Formula"),t.ofSelector=!0),o==="String"&&n("String"),o==="Selector"&&n("Selector")}return t}function _D(e){for(var t={},n=0,r=Object.keys(e);n<r.length;n++){var a=r[n],o=e[a];if(o)for(var s=0,i=o;s<i.length;s++){var l=i[s];(t[l]||(t[l]=[])).push(a)}}return t}function lh(e){for(var t=_D(e),n={},r=0,a=Object.keys(t);r<a.length;r++){var o=a[r],s=t[o];s&&(n[o]=wD(s))}return n}var vo=function(){return vo=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++){t=arguments[n];for(var a in t)Object.prototype.hasOwnProperty.call(t,a)&&(e[a]=t[a])}return e},vo.apply(this,arguments)},ID={},gd={wildcard:!0};function AD(e){return e?typeof e=="boolean"?gd:e:ID}function DD(e,t){return function(n,r){return t(e(n),e(r))}}function PD(e){return function(t,n){var r=e(t,n);if(!r)throw new Error("Syntax definition cannot be null or undefined.");return r}}function uh(e,t){return function(n,r){return r===!0?e:t(n===!0?e:n,r)}}function to(e){return function(t,n){if(!n||!t)return n;if(typeof n!="object"||n===null)throw new Error("Unexpected syntax definition extension type: ".concat(n,"."));for(var r=vo({},t),a=0,o=Object.entries(n);a<o.length;a++){var s=o[a],i=s[0],l=s[1];if(i!=="latest"){var u=e[i];r[i]=u(t[i],l)}}return r}}function Dr(e,t){return t!==void 0?t:e}function Ni(e,t){return t?e?e.concat(t):t:e}function ch(e,t){if(!t)return e;if(!e)return t;for(var n=vo({},e),r=0,a=Object.entries(t);r<a.length;r++){var o=a[r],s=o[0],i=o[1];if(!i){delete n[s];continue}var l=e[s];if(!l){n[s]=i;continue}n[s]=l.concat(i)}return n}var _a=PD(to({baseSyntax:Dr,modules:Ni,tag:uh(gd,to({wildcard:Dr})),ids:Dr,classNames:Dr,namespace:uh(gd,to({wildcard:Dr})),combinators:Ni,attributes:to({operators:Ni,caseSensitivityModifiers:Ni,unknownCaseSensitivityModifiers:Dr}),pseudoClasses:to({unknown:Dr,definitions:ch}),pseudoElements:to({unknown:Dr,notation:Dr,definitions:DD(function(e){return Array.isArray(e)?{NoArgument:e}:e},ch)})})),O1={tag:{},ids:!0,classNames:!0,combinators:[],pseudoElements:{unknown:"reject",notation:"singleColon",definitions:["first-letter","first-line"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["link","visited","active"]}}},L1=_a(O1,{tag:{wildcard:!0},combinators:[">","+"],attributes:{unknownCaseSensitivityModifiers:"reject",operators:["=","~=","|="]},pseudoElements:{definitions:["before","after"]},pseudoClasses:{unknown:"reject",definitions:{NoArgument:["hover","focus","first-child"],String:["lang"]}}}),bd=_a(L1,{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"]}}}),F1=_a(bd,{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","playing","paused","autofill","modal","fullscreen","picture-in-picture","defined","loading","popover-open"],Formula:["nth-col","nth-last-col"],String:["dir"],FormulaOfSelector:["nth-child","nth-last-child"],Selector:["current","is","where","has","state"]}},pseudoElements:{definitions:{NoArgument:["marker"]}}}),Al={"css-position-1":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute"]}}},"css-position-2":{latest:!1,pseudoClasses:{definitions:{NoArgument:["static","relative","absolute","fixed"]}}},"css-position-3":{latest:!1,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static"]}}},"css-position-4":{latest:!0,pseudoClasses:{definitions:{NoArgument:["sticky","fixed","absolute","relative","static","initial"]}}},"css-scoping-1":{latest:!0,pseudoClasses:{definitions:{NoArgument:["host","host-context"],Selector:["host","host-context"]}},pseudoElements:{definitions:{Selector:["slotted"]}}},"css-pseudo-4":{latest:!0,pseudoElements:{definitions:{NoArgument:["marker","selection","target-text","search-text","spelling-error","grammar-error","backdrop","file-selector-button","prefix","postfix","placeholder","details-content"],String:["highlight"]}}},"css-shadow-parts-1":{latest:!0,pseudoElements:{definitions:{String:["part"]}}}},$1=vo(vo({},F1),{modules:Object.entries(Al).filter(function(e){var t=e[1].latest;return t}).map(function(e){var t=e[0];return t})}),RD=_a($1,{pseudoElements:{unknown:"accept"},pseudoClasses:{unknown:"accept"},attributes:{unknownCaseSensitivityModifiers:"accept"}}),yd={css1:O1,css2:L1,css3:bd,"selectors-3":bd,"selectors-4":F1,latest:$1,progressive:RD};function MD(){for(var e={pseudoClasses:{},pseudoElements:{}},t=["css1","css2","css3","selectors-3","selectors-4"],n=0,r=t;n<r.length;n++){var a=r[n],o=yd[a];if(o.pseudoClasses&&typeof o.pseudoClasses=="object"){var s=o.pseudoClasses.definitions;if(s)for(var i=0,l=Object.entries(s);i<l.length;i++)for(var u=l[i],c=u[1],d=0,m=c;d<m.length;d++){var f=m[d];e.pseudoClasses[f]||(e.pseudoClasses[f]=[]),e.pseudoClasses[f].includes(a)||e.pseudoClasses[f].push(a)}}if(o.pseudoElements&&typeof o.pseudoElements=="object"){var s=o.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var h=0,b=s;h<b.length;h++){var g=b[h];e.pseudoElements[g]||(e.pseudoElements[g]=[]),e.pseudoElements[g].includes(a)||e.pseudoElements[g].push(a)}else for(var x=0,C=Object.values(s);x<C.length;x++)for(var c=C[x],E=0,k=c;E<k.length;E++){var T=k[E];e.pseudoElements[T]||(e.pseudoElements[T]=[]),e.pseudoElements[T].includes(a)||e.pseudoElements[T].push(a)}}}for(var S=0,O=Object.entries(Al);S<O.length;S++){var M=O[S],$=M[0],P=M[1];if(P.pseudoClasses&&typeof P.pseudoClasses=="object"){var s=P.pseudoClasses.definitions;if(s)for(var L=0,v=Object.values(s);L<v.length;L++)for(var c=v[L],N=0,I=c;N<I.length;N++){var A=I[N];e.pseudoClasses[A]||(e.pseudoClasses[A]=[]),e.pseudoClasses[A].includes($)||e.pseudoClasses[A].push($)}}if(P.pseudoElements&&typeof P.pseudoElements=="object"){var s=P.pseudoElements.definitions;if(s)if(Array.isArray(s))for(var R=0,W=s;R<W.length;R++){var H=W[R];e.pseudoElements[H]||(e.pseudoElements[H]=[]),e.pseudoElements[H].includes($)||e.pseudoElements[H].push($)}else for(var B=0,_=Object.values(s);B<_.length;B++)for(var c=_[B],V=0,J=c;V<J.length;V++){var F=J[V];e.pseudoElements[F]||(e.pseudoElements[F]=[]),e.pseudoElements[F].includes($)||e.pseudoElements[F].push($)}}}return e}var dh=MD();function rs(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e==="-"||e==="_"||e==="\\"||e>=" "}function ph(e){return e>="a"&&e<="z"||e>="A"&&e<="Z"||e>="0"&&e<="9"||e==="-"||e==="_"||e>=" "}function as(e){return e>="a"&&e<="f"||e>="A"&&e<="F"||e>="0"&&e<="9"}var ND={" ":!0," ":!0,"\n":!0,"\r":!0,"\f":!0},OD={'"':!0,"'":!0},yc={0:!0,1:!0,2:!0,3:!0,4:!0,5:!0,6:!0,7:!0,8:!0,9:!0},LD=6,xc="css-selector-parser parse error: ";function FD(e){e===void 0&&(e={});var t=e.syntax,n=t===void 0?"latest":t,r=e.substitutes,a=e.strict,o=a===void 0?!0:a,s=e.modules,i=typeof n=="object"?n:yd[n];if(i.baseSyntax&&(i=_a(yd[i.baseSyntax],i)),i.modules&&i.modules.length>0)for(var l=0,u=i.modules;l<u.length;l++){var c=u[l],d=Al[c];d&&(i=_a(d,i))}if(s&&s.length>0)for(var m=0,f=s;m<f.length;m++){var h=f[m],d=Al[h];d&&(i=_a(d,i))}var b=i.tag?[!0,!!AD(i.tag).wildcard]:[!1,!1],g=b[0],x=b[1],C=!!i.ids,E=!!i.classNames,k=!!i.namespace,T=i.namespace&&(i.namespace===!0||i.namespace.wildcard===!0);if(k&&!g)throw new Error("".concat(xc,"Namespaces cannot be enabled while tags are disabled."));var S=!!r,O=i.combinators?sh(i.combinators):Zi,M=i.attributes?[!0,i.attributes.operators?sh(i.attributes.operators):Zi,i.attributes.caseSensitivityModifiers?SD(i.attributes.caseSensitivityModifiers):hd,i.attributes.unknownCaseSensitivityModifiers==="accept"]:[!1,Zi,hd,!1],$=M[0],P=M[1],L=M[2],v=M[3],N=v||Object.keys(L).length>0,I=i.pseudoClasses?[!0,i.pseudoClasses.definitions?lh(i.pseudoClasses.definitions):Mi,i.pseudoClasses.unknown==="accept"]:[!1,Mi,!1],A=I[0],R=I[1],W=I[2],H=i.pseudoElements?[!0,i.pseudoElements.notation==="singleColon"||i.pseudoElements.notation==="both",!i.pseudoElements.notation||i.pseudoElements.notation==="doubleColon"||i.pseudoElements.notation==="both",i.pseudoElements.definitions?lh(Array.isArray(i.pseudoElements.definitions)?{NoArgument:i.pseudoElements.definitions}:i.pseudoElements.definitions):Mi,i.pseudoElements.unknown==="accept"]:[!1,!1,!1,Mi,!1],B=H[0],_=H[1],V=H[2],J=H[3],F=H[4],de="",Z=de.length,Y=0,te="",X=function(ie){return te===ie},re=function(){return X("*")||rs(te)},Q=function(ie){Y=ie,te=de.charAt(Y)},G=function(){Y++,te=de.charAt(Y)},se=function(){var ie=te;return Y++,te=de.charAt(Y),ie};function ee(ie){var ye=Math.min(Z-1,Y),ve=new Error("".concat(xc).concat(ie," Pos: ").concat(ye,"."));throw ve.position=ye,ve.name="ParserError",ve}function ne(ie,ye){if(!ie)return ee(ye)}var xe=function(){ne(Y<Z,"Unexpected end of input.")},pe=function(){return Y>=Z},be=function(ie){ne(Y<Z,'Expected "'.concat(ie,'" but end of input reached.')),ne(te===ie,'Expected "'.concat(ie,'" but "').concat(te,'" found.')),Y++,te=de.charAt(Y)};function le(ie){var ye=Pe(ie,Y);if(ye)return Y+=ye.length,te=de.charAt(Y),ye}function Pe(ie,ye){var ve=de.charAt(ye),$e=ie[ve];if($e){var We=Pe($e.chars,ye+1);if(We)return We;if($e.self)return $e.self}}function Te(){for(var ie=se(),ye=1;as(te)&&ye<LD;)ie+=se(),ye++;return lt(),String.fromCharCode(parseInt(ie,16))}function ze(ie){var ye="";for(be(ie);Y<Z;){if(X(ie))return G(),ye;X("\\")?(G(),X(ie)?(ye+=ie,G()):te===`
53
- `||te==="\f"?G():te==="\r"?(G(),X(`
54
- `)&&G()):as(te)?ye+=Te():(ye+=te,G())):(ye+=te,G())}return ye}function we(){if(!rs(te))return null;for(var ie="";X("-");)ie+=te,G();for(ie==="-"&&!ph(te)&&!X("\\")&&ee("Identifiers cannot consist of a single hyphen."),o&&ie.length>=2&&ee("Identifiers cannot start with two hyphens with strict mode on."),yc[te]&&ee("Identifiers cannot start with hyphens followed by digits.");Y<Z;)if(ph(te))ie+=se();else if(X("\\"))G(),xe(),as(te)?ie+=Te():ie+=se();else break;return ie}function Tt(){for(var ie="";Y<Z&&!X(")");)if(X("\\")){if(G(),pe()&&!o)return(ie+"\\").trim();xe(),as(te)?ie+=Te():ie+=se()}else ie+=se();return ie.trim()}function lt(){if(te===" "||te===" "||te==="\f"||te===`
55
- `){G();return}te==="\r"&&G(),te===`
56
- `&&G()}function qe(){for(;ND[te];)G()}function ue(ie){ie===void 0&&(ie=!1),qe();for(var ye=[ft(ie)];X(",");)G(),qe(),ye.push(ft(ie));return{type:"Selector",rules:ye}}function Ee(){be("["),qe();var ie;if(X("|")){ne(k,"Namespaces are not enabled."),G();var ye=we();ne(ye,"Expected attribute name."),ie={type:"Attribute",name:ye,namespace:{type:"NoNamespace"}}}else if(X("*")){ne(k,"Namespaces are not enabled."),ne(T,"Wildcard namespace is not enabled."),G(),be("|");var ve=we();ne(ve,"Expected attribute name."),ie={type:"Attribute",name:ve,namespace:{type:"WildcardNamespace"}}}else{var $e=we();if(ne($e,"Expected attribute name."),ie={type:"Attribute",name:$e},X("|")){var We=Y;if(G(),rs(te)){ne(k,"Namespaces are not enabled.");var It=we();ne(It,"Expected attribute name."),ie={type:"Attribute",name:It,namespace:{type:"NamespaceName",name:$e}}}else Q(We)}}if(ne(ie.name,"Expected attribute name."),qe(),pe()&&!o)return ie;if(X("]"))G();else{if(ie.operator=le(P),ne(ie.operator,"Expected a valid attribute selector operator."),qe(),xe(),OD[te])ie.value={type:"String",value:ze(te)};else if(S&&X("$")){G();var Nt=we();ne(Nt,"Expected substitute name."),ie.value={type:"Substitution",name:Nt}}else{var xt=we();ne(xt,"Expected attribute value."),ie.value={type:"String",value:xt}}if(qe(),pe()&&!o)return ie;if(!X("]")){var zt=we();if(ne(zt,"Expected end of attribute selector."),ie.caseSensitivityModifier=zt,ne(N,"Attribute case sensitivity modifiers are not enabled."),ne(v||L[ie.caseSensitivityModifier],"Unknown attribute case sensitivity modifier."),qe(),pe()&&!o)return ie}be("]")}return ie}function Me(){for(var ie="";yc[te];)ie+=se();return ne(ie!=="","Formula parse error."),parseInt(ie)}var He=function(){return X("-")||X("+")||yc[te]};function Be(){if(X("e")||X("o")){var ie=we();if(ie==="even")return qe(),[2,0];if(ie==="odd")return qe(),[2,1]}var ye=null,ve=1;if(X("-")&&(G(),ve=-1),He()&&(X("+")&&G(),ye=Me(),!X("\\")&&!X("n")))return[0,ye*ve];ye===null&&(ye=1),ye*=ve;var $e;if(X("\\")?(G(),as(te)?$e=Te():$e=se()):$e=se(),ne($e==="n",'Formula parse error: expected "n".'),qe(),X("+")||X("-")){var We=X("+")?1:-1;return G(),qe(),[ye,We*Me()]}else return[ye,0]}function Ne(ie,ye,ve){var $e;if(X("(")){if(G(),qe(),S&&X("$")){G();var We=we();ne(We,"Expected substitute name."),$e={type:"Substitution",name:We}}else if(ve.type==="String")$e={type:"String",value:Tt()},ne($e.value,"Expected ".concat(ye," argument value."));else if(ve.type==="Selector")$e=ue(!0);else if(ve.type==="Formula"){var It=Be(),Nt=It[0],xt=It[1];if($e={type:"Formula",a:Nt,b:xt},ve.ofSelector&&(qe(),X("o")||X("\\"))){var zt=we();ne(zt==="of","Formula of selector parse error."),qe(),$e={type:"FormulaOfSelector",a:Nt,b:xt,selector:ft()}}}else return ee("Invalid ".concat(ye," signature."));if(qe(),pe()&&!o)return $e;be(")")}else ne(ve.optional,"Argument is required for ".concat(ye,' "').concat(ie,'".'));return $e}function Je(){if(X("*"))return ne(x,"Wildcard tag name is not enabled."),G(),{type:"WildcardTag"};if(rs(te)){ne(g,"Tag names are not enabled.");var ie=we();return ne(ie,"Expected tag name."),{type:"TagName",name:ie}}else return ee("Expected tag name.")}function gt(){if(X("*")){var ie=Y;if(G(),!X("|")||(G(),!re()))return Q(ie),Je();ne(k,"Namespaces are not enabled."),ne(T,"Wildcard namespace is not enabled.");var ye=Je();return ye.namespace={type:"WildcardNamespace"},ye}else if(X("|")){ne(k,"Namespaces are not enabled."),G();var ye=Je();return ye.namespace={type:"NoNamespace"},ye}else if(rs(te)){var ve=we();if(ne(ve,"Expected tag name."),!X("|"))return ne(g,"Tag names are not enabled."),{type:"TagName",name:ve};var ie=Y;if(G(),!re())return Q(ie),{type:"TagName",name:ve};ne(k,"Namespaces are not enabled.");var ye=Je();return ye.namespace={type:"NamespaceName",name:ve},ye}else return ee("Expected tag name.")}function ft(ie){var ye,ve;ie===void 0&&(ie=!1);var $e={type:"Rule",items:[]};if(ie){var We=le(O);We&&($e.combinator=We,qe())}for(;Y<Z;)if(re())ne($e.items.length===0,"Unexpected tag/namespace start."),$e.items.push(gt());else if(X("|")){var It=Y;if(G(),re())ne($e.items.length===0,"Unexpected tag/namespace start."),Q(It),$e.items.push(gt());else{Q(It);break}}else if(X(".")){ne(E,"Class names are not enabled."),G();var Nt=we();ne(Nt,"Expected class name."),$e.items.push({type:"ClassName",name:Nt})}else if(X("#")){ne(C,"IDs are not enabled."),G();var xt=we();ne(xt,"Expected ID name."),$e.items.push({type:"Id",name:xt})}else if(X("["))ne($,"Attributes are not enabled."),$e.items.push(Ee());else if(X(":")){var zt=!1,Nn=!1;G(),X(":")&&(ne(B,"Pseudo elements are not enabled."),ne(V,"Pseudo elements double colon notation is not enabled."),zt=!0,G());var At=we();if(ne(zt||At,"Expected pseudo-class name."),ne(!zt||At,"Expected pseudo-element name."),ne(At,"Expected pseudo-class name."),!(!zt||F||Object.prototype.hasOwnProperty.call(J,At))){var rn=dh.pseudoElements[At],_r='Unknown pseudo-element "'.concat(At,'"');rn&&rn.length>0&&(_r+=". It is defined in: ".concat(rn.join(", "))),ee(_r+".")}if(Nn=B&&(zt||!zt&&_&&Object.prototype.hasOwnProperty.call(J,At)),Nn){var On=(ye=J[At])!==null&&ye!==void 0?ye:F&&ih,ca={type:"PseudoElement",name:At},er=Ne(At,"pseudo-element",On);er&&(ne(er.type!=="Formula"&&er.type!=="FormulaOfSelector","Pseudo-elements cannot have formula argument."),ca.argument=er),$e.items.push(ca)}else{ne(A,"Pseudo-classes are not enabled.");var On=(ve=R[At])!==null&&ve!==void 0?ve:W&&ih;if(!On){var rn=dh.pseudoClasses[At],_r='Unknown pseudo-class: "'.concat(At,'"');rn&&rn.length>0&&(_r+=". It is defined in: ".concat(rn.join(", "))),ee(_r+".")}var er=Ne(At,"pseudo-class",On),Ir={type:"PseudoClass",name:At};er&&(Ir.argument=er),$e.items.push(Ir)}}else break;if($e.items.length===0)return pe()?ee("Expected rule but end of input reached."):ee('Expected rule but "'.concat(te,'" found.'));if(qe(),!pe()&&!X(",")&&!X(")")){var We=le(O);qe(),$e.nestedRule=ft(),$e.nestedRule.combinator=We}return $e}return function(ie){if(typeof ie!="string")throw new Error("".concat(xc,"Expected string input."));return de=ie,Z=de.length,Y=0,te=de.charAt(0),ue()}}const $D=FD({syntax:"selectors-4"});function BD(e){if(typeof e!="string")throw new TypeError("Expected `string` as selector, not `"+e+"`");return $D(e)}const B1="֑-߿יִ-﷽ﹰ-ﻼ",j1="A-Za-zÀ-ÖØ-öø-ʸ̀-֐ࠀ-῿‎Ⰰ-﬜︀-﹯﻽-￿",jD=new RegExp("^[^"+j1+"]*["+B1+"]"),HD=new RegExp("^[^"+B1+"]*["+j1+"]");function UD(e){const t=String(e||"");return jD.test(t)?"rtl":HD.test(t)?"ltr":"neutral"}function H1(e){return"children"in e?U1(e):"value"in e?e.value:""}function zD(e){return e.type==="text"?e.value:"children"in e?U1(e):""}function U1(e){let t=-1;const n=[];for(;++t<e.children.length;)n[t]=zD(e.children[t]);return n.join("")}function VD(e,t){const n=e.schema,r=e.language,a=e.direction,o=e.editableOrEditingHost;let s;if(t.type==="element"){const u=t.properties.xmlLang||t.properties.lang,c=t.properties.type||"text",d=fh(t);u!=null&&(e.language=String(u)),n&&n.space==="html"?(t.properties.contentEditable==="true"&&(e.editableOrEditingHost=!0),t.tagName==="svg"&&(e.schema=Ur),d==="rtl"?s=d:d==="ltr"||d!=="auto"&&t.tagName==="html"||d!=="auto"&&t.tagName==="input"&&c==="tel"?s="ltr":(d==="auto"||t.tagName==="bdi")&&(t.tagName==="textarea"?s=Cc(H1(t)):t.tagName==="input"&&(c==="email"||c==="search"||c==="tel"||c==="text")?s=t.properties.value?Cc(String(t.properties.value)):"ltr":vn(t,l)),s&&(e.direction=s)):e.editableOrEditingHost&&(e.editableOrEditingHost=!1)}return i;function i(){e.schema=n,e.language=r,e.direction=a,e.editableOrEditingHost=o}function l(u){if(u.type==="text")return s=Cc(u.value),s?Tl:void 0;if(u!==t&&u.type==="element"&&(u.tagName==="bdi"||u.tagName==="script"||u.tagName==="style"||u.tagName==="textare"||fh(u)))return Ss}}function Cc(e){const t=UD(e);return t==="neutral"?void 0:t}function fh(e){const t=e.type==="element"&&typeof e.properties.dir=="string"?e.properties.dir.toLowerCase():void 0;return t==="auto"||t==="ltr"||t==="rtl"?t:void 0}function WD(e,t,n){const r=ui(n,e.name),a=t.properties[r.property];let o=qD(a,r);if(!e.value)return o!==void 0;e.value.type;let s=e.value.value;if(e.caseSensitivityModifier==="i"&&(s=s.toLowerCase(),o&&(o=o.toLowerCase())),o!==void 0)switch(e.operator){case"=":return s===o;case"$=":return s===o.slice(-s.length);case"*=":return o.includes(s);case"^=":return s===o.slice(0,s.length);case"|=":return s===o||s===o.slice(0,s.length)&&o.charAt(s.length)==="-";case"~=":return s===o||ed(o).includes(s)}return!1}function qD(e,t){if(e!=null)if(typeof e=="boolean"){if(e)return t.attribute}else if(Array.isArray(e)){if(e.length>0)return(t.commaSeparated?lu:uu)(e)}else return String(e)}const YD=[];function GD(e,t){return(t.properties.className||YD).includes(e.name)}function KD(e,t){return t.properties.id===e.name}function QD(e,t){return e.name===t.tagName}function XD(e,t){return function(n,r){let a=mh(n,"tag");const o=mh(r??"*","range"),s=[];let i=-1;for(;++i<o.length;){const l=o[i].toLowerCase();if(!t&&l==="*")continue;let u=-1;const c=[];for(;++u<a.length;)if(e(a[u].toLowerCase(),l)){if(!t)return a[u];s.push(a[u])}else c.push(a[u]);a=c}return t?s:void 0}}const ZD=XD(function(e,t){const n=e.split("-"),r=t.split("-");let a=0,o=0;if(r[o]!=="*"&&n[a]!==r[o])return!1;for(a++,o++;o<r.length;){if(r[o]==="*"){o++;continue}if(!n[a])return!1;if(n[a]===r[o]){a++,o++;continue}if(n[a].length===1)return!1;a++}return!0},!0);function mh(e,t){const n=e&&typeof e=="string"?[e]:e;if(!n||typeof n!="object"||!("length"in n))throw new Error("Invalid "+t+" `"+n+"`, expected non-empty string");return n}const JD={}.hasOwnProperty;function Na(e,t){const n=e.type==="element"&&JD.call(e.properties,t)&&e.properties[t];return n!=null&&n!==!1}const e5=new Set([9,10,12,13,32]),hh=48,t5=57;function n5(e){if(e=e.trim().toLowerCase(),e==="even")return[2,0];if(e==="odd")return[2,1];let t=0,n=0,r=o(),a=s();if(t<e.length&&e.charAt(t)==="n"&&(t++,n=r*(a??1),i(),t<e.length?(r=o(),i(),a=s()):r=a=0),a===null||t<e.length)throw new Error(`n-th rule couldn't be parsed ('${e}')`);return[n,r*a];function o(){return e.charAt(t)==="-"?(t++,-1):(e.charAt(t)==="+"&&t++,1)}function s(){const l=t;let u=0;for(;t<e.length&&e.charCodeAt(t)>=hh&&e.charCodeAt(t)<=t5;)u=u*10+(e.charCodeAt(t)-hh),t++;return t===l?null:u}function i(){for(;t<e.length&&e5.has(e.charCodeAt(t));)t++}}var Ec,gh;function r5(){return gh||(gh=1,Ec={trueFunc:function(){return!0},falseFunc:function(){return!1}}),Ec}var a5=r5();const bh=ar(a5);function o5(e){const t=e[0],n=e[1]-1;if(n<0&&t<=0)return bh.falseFunc;if(t===-1)return o=>o<=n;if(t===0)return o=>o===n;if(t===1)return n<0?bh.trueFunc:o=>o>=n;const r=Math.abs(t),a=(n%r+r)%r;return t>1?o=>o>=n&&o%r===a:o=>o<=n&&o%r===a}function yh(e){return o5(n5(e))}const s5=yh.default||yh,i5=gu("name",{handlers:{"any-link":l5,blank:u5,checked:c5,dir:d5,disabled:z1,empty:p5,enabled:f5,"first-child":m5,"first-of-type":h5,has:g5,is:V1,lang:y5,"last-child":x5,"last-of-type":C5,not:E5,"nth-child":v5,"nth-last-child":T5,"nth-last-of-type":k5,"nth-of-type":S5,"only-child":w5,"only-of-type":_5,optional:I5,"read-only":A5,"read-write":W1,required:q1,root:D5,scope:P5},invalid:b5,unknown:R5});function l5(e,t){return(t.tagName==="a"||t.tagName==="area"||t.tagName==="link")&&Na(t,"href")}function Tr(e,t){if(e.shallow)throw new Error("Cannot use `:"+t.name+"` without parent")}function u5(e,t){return!Y1(t,n);function n(r){return r.type==="element"||r.type==="text"&&!ii(r)}}function c5(e,t){return t.tagName==="input"||t.tagName==="menuitem"?!!((t.properties.type==="checkbox"||t.properties.type==="radio")&&Na(t,"checked")):t.tagName==="option"?Na(t,"selected"):!1}function d5(e,t,n,r,a){return e.argument,e.argument.type,a.direction===e.argument.value}function z1(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")&&Na(t,"disabled")}function p5(e,t){return!Y1(t,n);function n(r){return r.type==="element"||r.type==="text"}}function f5(e,t){return!z1(e,t)}function m5(e,t,n,r,a){return Tr(a,e),a.elementIndex===0}function h5(e,t,n,r,a){return Tr(a,e),a.typeIndex===0}function Eu(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=s5(n.a+"n+"+n.b),e._cachedFn=t}return t}function g5(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Cp(o,{type:"root",children:t.children}),o.results.length>0}function b5(){}function V1(e,t,n,r,a){e.argument,e.argument.type;const o={...a,found:!1,one:!0,results:[],rootQuery:e.argument,scopeElements:[t],shallow:!1};return Cp(o,t),o.results[0]===t}function y5(e,t,n,r,a){return e.argument,e.argument.type,a.language!==""&&a.language!==void 0&&ZD(a.language,Xc(e.argument.value)).length>0}function x5(e,t,n,r,a){return Tr(a,e),!!(a.elementCount&&a.elementIndex===a.elementCount-1)}function C5(e,t,n,r,a){return Tr(a,e),typeof a.typeIndex=="number"&&typeof a.typeCount=="number"&&a.typeIndex===a.typeCount-1}function E5(e,t,n,r,a){return!V1(e,t,n,r,a)}function v5(e,t,n,r,a){const o=Eu(e);return Tr(a,e),typeof a.elementIndex=="number"&&o(a.elementIndex)}function T5(e,t,n,r,a){const o=Eu(e);return Tr(a,e),!!(typeof a.elementCount=="number"&&typeof a.elementIndex=="number"&&o(a.elementCount-a.elementIndex-1))}function k5(e,t,n,r,a){const o=Eu(e);return Tr(a,e),typeof a.typeCount=="number"&&typeof a.typeIndex=="number"&&o(a.typeCount-1-a.typeIndex)}function S5(e,t,n,r,a){const o=Eu(e);return Tr(a,e),typeof a.typeIndex=="number"&&o(a.typeIndex)}function w5(e,t,n,r,a){return Tr(a,e),a.elementCount===1}function _5(e,t,n,r,a){return Tr(a,e),a.typeCount===1}function I5(e,t){return!q1(e,t)}function A5(e,t,n,r,a){return!W1(e,t,n,r,a)}function W1(e,t,n,r,a){return t.tagName==="input"||t.tagName==="textarea"?!Na(t,"readOnly")&&!Na(t,"disabled"):!!a.editableOrEditingHost}function q1(e,t){return(t.tagName==="input"||t.tagName==="textarea"||t.tagName==="select")&&Na(t,"required")}function D5(e,t,n,r,a){return!!((!r||r.type==="root")&&a.schema&&(a.schema.space==="html"||a.schema.space==="svg")&&(t.tagName==="html"||t.tagName==="svg"))}function P5(e,t,n,r,a){return a.scopeElements.includes(t)}function Y1(e,t){const n=e.children;let r=-1;for(;++r<n.length;)if(t(n[r]))return!0;return!1}function R5(e){const t=e;throw new Error("Unknown pseudo-selector `"+t.name+"`")}function M5(e,t,n,r,a){for(const o of e.items)if(o.type==="Attribute"){if(!WD(o,t,a.schema))return!1}else if(o.type==="Id"){if(!KD(o,t))return!1}else if(o.type==="ClassName"){if(!GD(o,t))return!1}else if(o.type==="PseudoClass"){if(!i5(o,t,n,r,a))return!1}else{if(o.type==="PseudoElement")throw new Error("Invalid selector: `::"+o.name+"`");if(o.type==="TagName"&&!QD(o,t))return!1}return!0}const N5=[];function Cp(e,t){t&&G1(e,[],t,void 0,void 0,t)}function vc(e,t,n){const r=e[t];r?r.push(n):e[t]=[n]}function O5(e,t,n,r){const a=Ji(t.descendant,t.directChild);let o,s=-1;const i={count:0,types:new Map},l={count:0,types:new Map};for(;++s<n.children.length;)xh(i,n.children[s]);for(s=-1;++s<n.children.length;){const u=n.children[s],c=u.type==="element"?u.tagName.toUpperCase():void 0;if(e.elementIndex=l.count,e.typeIndex=c&&l.types.get(c)||0,e.elementCount=i.count,e.typeCount=c?i.types.get(c):0,"children"in u){const d=Ji(a,o),m=G1(e,d,n.children[s],s,n,r);o=Ji(m.generalSibling,m.adjacentSibling)}if(e.one&&e.found)break;xh(l,n.children[s])}}function L5(e,t,n,r,a){const o={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};let s=-1;for(;++s<t.length;){const i=t[s];if(e.one&&e.found)break;if(e.shallow&&i.nestedRule)throw new Error("Expected selector without nesting");if(M5(i,n,r,a,e)){const l=i.nestedRule;if(l){const u=l.combinator==="+"?"adjacentSibling":l.combinator==="~"?"generalSibling":l.combinator===">"?"directChild":"descendant";vc(o,u,l)}else e.found=!0,e.results.includes(n)||e.results.push(n)}i.combinator===void 0?vc(o,"descendant",i):i.combinator==="~"&&vc(o,"generalSibling",i)}return o}function Ji(e,t){return e&&t&&e.length>0&&t.length>0?[...e,...t]:e&&e.length>0?e:t&&t.length>0?t:N5}function xh(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 G1(e,t,n,r,a,o){let s={adjacentSibling:void 0,descendant:void 0,directChild:void 0,generalSibling:void 0};const i=VD(e,n);if(n.type==="element"){let l=e.rootQuery.rules;a&&a!==o&&(l=e.rootQuery.rules.filter(u=>u.combinator===void 0||u.combinator===">"&&a===o)),s=L5(e,Ji(t,l),n,r,a)}return"children"in n&&!e.shallow&&!(e.one&&e.found)&&O5(e,s,n,o),i(),s}function F5(e,t,n){const r=$5(e,t);return Cp(r,t||void 0),r.results}function $5(e,t,n){return{direction:"ltr",editableOrEditingHost:!1,elementCount:void 0,elementIndex:void 0,found:!1,language:void 0,one:!1,results:[],rootQuery:BD(e),schema:Mo,scopeElements:t?t.type==="root"?t.children:[t]:[],shallow:!1,typeIndex:void 0,typeCount:void 0}}const K1=(e=[],t="")=>(e.forEach(n=>{n.type==="text"?t+=n.value:n.type==="element"&&n.children&&Array.isArray(n.children)&&(t+=K1(n.children))}),t),B5=e=>{const{selector:t,rewrite:n}=e||{};return r=>{if(!(!n||typeof n!="function")){if(t&&typeof t=="string"){const a=F5(t,r);a&&a.length>0&&vn(r,a,(o,s,i)=>{n(o,s,i)});return}vn(r,(a,o,s)=>{n(a,o,s)})}}},j5=(e="")=>(e.match(/([^?=&]+)(=([^&]*))/g)||[]).reduce((t,n)=>(t[n.slice(0,n.indexOf("="))]=n.slice(n.indexOf("=")+1),t),{}),H5=(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]}},Q1=(e=[],t,n,r)=>{let a=t;for(;a<e.length;)if(a++,n){const o=e[a];if(o&&o.value&&o.value.replace(/(\n|\s)/g,"")!==""||e[a]&&e[a].type==="element")return o.tagName===n?o:void 0}else{const o=e[a];if(!o||o.type==="element"||o.type==="text"&&o.value.replace(/(\n|\s)/g,"")!=="")return;if(o.type&&/^(comment|raw)$/ig.test(o.type))return o.value&&!/^rehype:/.test(o.value.replace(/^(\s+)?<!--(.*?)-->/,"$2")||"")?void 0:r?Q1(e,a,"pre",r)?void 0:(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o):(o.value=(o.value||"").replace(/^(\n|\s)+/,""),o)}},Ch=({value:e=""})=>{const t=j5(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},Eh=(e,t,n)=>n==="string"?{...e,"data-config":JSON.stringify({...t,rehyp:!0})}:n==="attr"?{...e,...t}:{...e,"data-config":{...t,rehyp:!0}},U5=(e={})=>{const{properties:t="data",codeBlockParames:n=!0}=e;return r=>{vn(r,"element",(a,o,s)=>{if(n&&a.tagName==="pre"&&a&&Array.isArray(a.children)&&s&&Array.isArray(s.children)&&s.children.length>1){const i=a.children[0];if(i&&i.tagName==="code"&&typeof o=="number"){const l=H5(s.children,o);if(l){const u=Ch(l);Object.keys(u).length>0&&(a.properties={...a.properties,"data-type":"rehyp"},i.properties=Eh(i.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(a.tagName)&&s&&Array.isArray(s.children)&&typeof o=="number"){const i=Q1(s.children,o,"",n);if(i){const l=Ch(i);Object.keys(l).length>0&&(a.properties=Eh(a.properties,l,t))}}})}};var z5=function(t){return n=>{vn(n,r=>{r.type==="element"&&r.tagName==="code"&&r.data&&r.data.meta&&(r.properties=U({},r.properties,{"data-meta":String(r.data.meta)}))})}},V5=function(t){return n=>{vn(n,r=>{if(r.type==="element"&&r.tagName==="code"&&r.properties&&r.properties.dataMeta){r.data||(r.data={});var a=r.properties.dataMeta;typeof a=="string"&&(r.data.meta=a),delete r.properties.dataMeta}})}};const W5=/[\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,q5=Object.hasOwnProperty;class Y5{constructor(){this.occurrences,this.reset()}slug(t,n){const r=this;let a=G5(t,n===!0);const o=a;for(;q5.call(r.occurrences,a);)r.occurrences[o]++,a=o+"-"+r.occurrences[o];return r.occurrences[a]=0,a}reset(){this.occurrences=Object.create(null)}}function G5(e,t){return typeof e!="string"?"":(t||(e=e.toLowerCase()),e.replace(W5,"").replace(/ /g,"-"))}function X1(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 K5={},vh=new Y5;function Q5(e){const n=(e||K5).prefix||"";return function(r){vh.reset(),vn(r,"element",function(a){X1(a)&&!a.properties.id&&(a.properties.id=n+vh.slug(H1(a)))})}}const Z1=(function(e){if(e==null)return J5;if(typeof e=="string")return Z5(e);if(typeof e=="object")return X5(e);if(typeof e=="function")return Ep(e);throw new Error("Expected function, string, or array as `test`")});function X5(e){const t=[];let n=-1;for(;++n<e.length;)t[n]=Z1(e[n]);return Ep(r);function r(...a){let o=-1;for(;++o<t.length;)if(t[o].apply(this,a))return!0;return!1}}function Z5(e){return Ep(t);function t(n){return n.tagName===e}}function Ep(e){return t;function t(n,r,a){return!!(e4(n)&&e.call(this,n,typeof r=="number"?r:void 0,a||void 0))}}function J5(e){return!!(e&&typeof e=="object"&&"type"in e&&e.type==="element"&&"tagName"in e&&typeof e.tagName=="string")}function e4(e){return e!==null&&typeof e=="object"&&"type"in e&&"tagName"in e}const Th={type:"element",tagName:"span",properties:{className:["icon","icon-link"]},children:[]},t4={};function n4(e){const t=e||t4;let n=t.properties;const r=t.headingProperties,a=t.behavior||"prepend",o=t.content,s=t.group,i=Z1(t.test);let l;return a==="after"||a==="before"?l=c:a==="wrap"?l=d:(l=u,n||(n={ariaHidden:"true",tabIndex:-1})),function(m){vn(m,"element",function(f,h,b){if(X1(f)&&f.properties.id&&i(f,h,b))return Object.assign(f.properties,Oi(r,f)),l(f,h,b)})};function u(m){const f=kh(o||Th,m);return m.children[a==="prepend"?"unshift":"push"](Tc(m,Oi(n,m),f)),[Ss]}function c(m,f,h){if(typeof f!="number"||!h)return;const b=kh(o||Th,m),g=Tc(m,Oi(n,m),b);let x=a==="before"?[g,m]:[m,g];if(s){const C=J1(s,m);C&&!Array.isArray(C)&&C.type==="element"&&(C.children=x,x=[C])}return h.children.splice(f,1,...x),[Ss,f+x.length]}function d(m){let f=m.children,h=[];return typeof o=="function"?(f=[],h=o(m)):o&&(h=vp(o)),m.children=[Tc(m,Oi(n,m),Array.isArray(h)?[...f,...h]:[...f,h])],[Ss]}}function vp(e){return Ma(e)}function Tc(e,t,n){return{type:"element",tagName:"a",properties:{...t,href:"#"+e.properties.id},children:n}}function kh(e,t){const n=J1(e,t);return Array.isArray(n)?n:[n]}function J1(e,t){return typeof e=="function"?e(t):vp(e)}function Oi(e,t){return typeof e=="function"?e(t):e?vp(e):{}}const r4=(e={})=>{const{openDelimiter:t="rehype:ignore:start",closeDelimiter:n="rehype:ignore:end"}=e;return r=>{vn(r,(a,o,s)=>{if(a.type==="element"||a.type==="root"){let i=!1;a.children=a.children.filter(l=>{if(l.type==="raw"||l.type==="comment"){let u=(l.value||"").trim();if(u=u.replace(/^<!--(.*?)-->/,"$1"),u===t)return i=!0,!1;if(u===n)return i=!1,!1}return!i})}})}};var a4={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 o4(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 s4=(e,t)=>(n,r,a)=>{if(n.type==="element"&&a&&a.type==="root"&&/h(1|2|3|4|5|6)/.test(n.tagName)){var o=n.children&&n.children[0];o&&o.properties&&o.properties.ariaHidden==="true"&&(o.properties=U({class:"anchor"},o.properties),o.children=[a4])}if(n.type==="element"&&n.tagName==="pre"&&!e){var s=K1(n.children);n.children.push(o4(s))}t&&t(n,r===null?void 0:r,a===null?void 0:a)},i4=[Q5,n4,r4];const ey=q.forwardRef((e,t)=>{var n,r=[z5,V5,...i4,[B5,{rewrite:s4((n=e.disableCopy)!=null?n:!1,e.rehypeRewrite)}],[U5,{properties:"attr"}],...e.rehypePlugins||[]];return p.jsx(TD,U({},e,{rehypePlugins:r,ref:t}))});function l4(e,t){return U({},e,t)}var Bo=q.createContext({markdown:""});function ty(e,t){return e===void 0&&(e=[]),t===void 0&&(t={}),e.forEach(n=>{n.children&&Array.isArray(n.children)?t=U({},t,ty(n.children||[])):n.keyCommand&&n.shortcuts&&n.execute&&(t[n.shortcuts.toLocaleLowerCase()]=n)}),t}function ny(e,t,n,r,a){t===void 0&&(t=[]);var o=ty(t||[]),s=[];if(e.altKey&&s.push("alt"),e.shiftKey&&s.push("shift"),e.metaKey&&s.push("cmd"),e.ctrlKey&&s.push("ctrl"),s.length>0&&!/(control|alt|meta|shift)/.test(e.key.toLocaleLowerCase())&&s.push(e.key.toLocaleLowerCase()),/escape/.test(e.key.toLocaleLowerCase())&&s.push("escape"),!(s.length<1)){var i=!!o[s.join("+")],l=i?o[s.join("+")]:void 0;if(Object.keys(o).forEach(u=>{var c=u.split("+").every(d=>/ctrlcmd/.test(d)?s.includes("ctrl")||s.includes("cmd"):s.includes(d));c&&(l=o[u])}),l&&n){e.stopPropagation(),e.preventDefault(),n.executeCommand(l,r,a,s);return}}}var kc;function Sh(e){if(e.nodeName!=="TEXTAREA")return!1;if(typeof kc>"u"){var t=document.createElement("textarea");t.value="1",kc=!!t.firstChild}return kc}function mo(e,t){if(e.focus(),document.selection){var n=document.selection.createRange();n.text=t,n.collapse(!1),n.select();return}var r=!1;if(t!==""?r=document.execCommand&&document.execCommand("insertText",!1,t):r=document.execCommand&&document.execCommand("delete",!1),!r){var a=e.selectionStart,o=e.selectionEnd;if(typeof e.setRangeText=="function")e.setRangeText(t);else{var s=document.createRange(),i=document.createTextNode(t);if(Sh(e)){var l=e.firstChild;if(!l)e.appendChild(i);else{for(var u=0,c=null,d=null;l&&(c===null||d===null);){var m=l.nodeValue.length;a>=u&&a<=u+m&&s.setStart(c=l,a-u),o>=u&&o<=u+m&&s.setEnd(d=l,o-u),u+=m,l=l.nextSibling}a!==o&&s.deleteContents()}}if(Sh(e)&&s.commonAncestorContainer.nodeName==="#text")s.insertNode(i);else{var f=e.value;e.value=f.slice(0,a)+t+f.slice(o)}}e.setSelectionRange(a+t.length,a+t.length);var h=document.createEvent("UIEvent");h.initEvent("input",!0,!1),e.dispatchEvent(h)}}function hn(e){var{text:t,selection:n,prefix:r,suffix:a=r}=e,o=n;if(t&&t.length&&n.start===n.end&&(o=u4(t,n.start)),o.start>=r.length&&o.end<=t.length-a.length){var s=t.slice(o.start-r.length,o.end+a.length);if(s.startsWith(r)&&s.endsWith(a))return{start:o.start-r.length,end:o.end+a.length}}return o}function Ps(e){var{text:t,selection:n}=e,r=t.slice(0,n.start).lastIndexOf(`
57
- `)+1,a=t.slice(n.end).indexOf(`
58
- `)+n.end;return a===n.end-1&&(a=t.length),{start:r,end:a}}function ry(e,t){if(e===void 0&&(e=""),t===0)return 0;for(var n=2,r=!0,a=t-1;a>=0&&n>=0;a--)switch(e.charCodeAt(a)){case 32:continue;case 10:n--,r=!1;break;default:return n}return r?0:n}function ay(e,t){if(e===void 0&&(e=""),t===e.length-1)return 0;for(var n=2,r=!0,a=t;a<e.length&&n>=0;a++)switch(e.charCodeAt(a)){case 32:continue;case 10:{n--,r=!1;break}default:return n}return r?0:n}function u4(e,t){if(!e)throw Error("Argument 'text' should be truthy");for(var n=i=>i===" "||i.charCodeAt(0)===10,r=0,a=e.length,o=t;o-1>-1;o--)if(n(e[o-1])){r=o;break}for(var s=t;s<e.length;s++)if(n(e[s])){a=s;break}return{start:r,end:a}}function en(e){var{api:t,selectedText:n,selection:r,prefix:a,suffix:o=a}=e;n.length>=a.length+o.length&&n.startsWith(a)&&n.endsWith(o)?(t.replaceSelection(n.slice(a.length,o.length?-o.length:void 0)),t.setSelectionRange({start:r.start-a.length,end:r.end-a.length})):(t.replaceSelection(""+a+n+o),t.setSelectionRange({start:r.start+a.length,end:r.end+a.length}))}function Tp(e,t){var n=e.split(/\n/),r=0,a=n.map((o,s)=>{if(typeof t=="string")return o.startsWith(t)?(r-=t.length,o.slice(t.length)):(r+=t.length,t+o);if(typeof t=="function"){if(o.startsWith(t(o,s)))return r-=t(o,s).length,o.slice(t(o,s).length);var i=t(o,s);return r+=i.length,t(o,s)+o}throw Error("insertion is expected to be either a string or a function")}).join(`
59
- `);return{modifiedText:a,insertionLength:r}}var c4={name:"bold",keyCommand:"bold",shortcuts:"ctrlcmd+b",prefix:"**",buttonProps:{"aria-label":"Add bold text (ctrl + b)",title:"Add bold text (ctrl + b)"},icon:p.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 384 512",children:p.jsx("path",{fill:"currentColor",d:"M304.793 243.891c33.639-18.537 53.657-54.16 53.657-95.693 0-48.236-26.25-87.626-68.626-104.179C265.138 34.01 240.849 32 209.661 32H24c-8.837 0-16 7.163-16 16v33.049c0 8.837 7.163 16 16 16h33.113v318.53H24c-8.837 0-16 7.163-16 16V464c0 8.837 7.163 16 16 16h195.69c24.203 0 44.834-1.289 66.866-7.584C337.52 457.193 376 410.647 376 350.014c0-52.168-26.573-91.684-71.207-106.123zM142.217 100.809h67.444c16.294 0 27.536 2.019 37.525 6.717 15.828 8.479 24.906 26.502 24.906 49.446 0 35.029-20.32 56.79-53.029 56.79h-76.846V100.809zm112.642 305.475c-10.14 4.056-22.677 4.907-31.409 4.907h-81.233V281.943h84.367c39.645 0 63.057 25.38 63.057 63.057.001 28.425-13.66 52.483-34.782 61.284z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},oy={name:"codeBlock",keyCommand:"codeBlock",shortcuts:"ctrlcmd+shift+j",prefix:"```",buttonProps:{"aria-label":"Insert Code Block (ctrl + shift + j)",title:"Insert Code Block (ctrl + shift +j)"},icon:p.jsx("svg",{width:"13",height:"13",role:"img",viewBox:"0 0 156 156",children:p.jsx("path",{fill:"currentColor",d:"M110.85 120.575 43.7 120.483333 43.7083334 110.091667 110.85 110.191667 110.841667 120.583333 110.85 120.575ZM85.1333334 87.1916666 43.625 86.7083332 43.7083334 76.3166666 85.2083334 76.7916666 85.1333334 87.1916666 85.1333334 87.1916666ZM110.841667 53.4166666 43.7 53.3166666 43.7083334 42.925 110.85 43.025 110.841667 53.4166666ZM36 138C27.2916666 138 20.75 136.216667 16.4 132.666667 12.1333334 129.2 10 124.308333 10 118L10 95.3333332C10 91.0666666 9.25 88.1333332 7.7333334 86.5333332 6.3166668 84.8416666 3.7333334 84 0 84L0 72C3.7333334 72 6.3083334 71.2 7.7333334 69.6 9.2416668 67.9083334 10 64.9333334 10 60.6666666L10 38C10 31.775 12.1333334 26.8833334 16.4 23.3333332 20.7583334 19.7749998 27.2916666 18 36 18L40.6666668 18 40.6666668 30 36 30C34.0212222 29.9719277 32.1263151 30.7979128 30.8 32.2666666 29.3605875 33.8216362 28.5938182 35.8823287 28.6666668 38L28.6666668 60.6666666C28.6666668 67.5083332 26.6666668 72.4 22.6666668 75.3333332 20.9317416 76.7274684 18.8640675 77.6464347 16.6666668 78 18.8916668 78.35 20.8916668 79.2416666 22.6666668 80.6666666 26.6666668 83.95 28.6666668 88.8416666 28.6666668 95.3333332L28.6666668 118C28.6666668 120.308333 29.3750002 122.216667 30.8 123.733333 32.2166666 125.241667 33.9583334 126 36 126L40.6666668 126 40.6666668 138 36 138 36 138ZM114.116667 126 118.783333 126C120.833333 126 122.566667 125.241667 123.983333 123.733333 125.422746 122.178364 126.189515 120.117671 126.116667 118L126.116667 95.3333332C126.116667 88.8333332 128.116667 83.9499998 132.116667 80.6666666 133.9 79.2416666 135.9 78.35 138.116667 78 135.919156 77.6468047 133.851391 76.7277979 132.116667 75.3333332 128.116667 72.3999998 126.116667 67.5 126.116667 60.6666666L126.116667 38C126.189515 35.8823287 125.422746 33.8216361 123.983333 32.2666666 122.657018 30.7979128 120.762111 29.9719277 118.783333 30L114.116667 30 114.116667 18 118.783333 18C127.5 18 133.983333 19.775 138.25 23.3333332 142.608333 26.8833332 144.783333 31.7749998 144.783333 38L144.783333 60.6666666C144.783333 64.9333332 145.5 67.9083332 146.916667 69.6 148.433333 71.2 151.05 72 154.783333 72L154.783333 84C151.05 84 148.433333 84.8333334 146.916667 86.5333332 145.5 88.1333332 144.783333 91.0666666 144.783333 95.3333332L144.783333 118C144.783333 124.308333 142.616667 129.2 138.25 132.666667 133.983333 136.216667 127.5 138 118.783333 138L114.116667 138 114.116667 126 114.116667 126Z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:"```\n",suffix:"\n```"}),r=t.setSelectionRange(n),a="\n```\n",o="\n```\n";r.selectedText.length>=a.length+o.length-2&&r.selectedText.startsWith(a)&&r.selectedText.endsWith(o)?(a="```\n",o="\n```"):((r.selection.start>=1&&e.text.slice(r.selection.start-1,r.selection.start)===`
60
- `||r.selection.start===0)&&(a="```\n"),(r.selection.end<=e.text.length-1&&e.text.slice(r.selection.end,r.selection.end+1)===`
61
- `||r.selection.end===e.text.length)&&(o="\n```"));var s=hn({text:e.text,selection:e.selection,prefix:a,suffix:o}),i=t.setSelectionRange(s);en({api:t,selectedText:i.selectedText,selection:e.selection,prefix:a,suffix:o})}},d4={name:"code",keyCommand:"code",shortcuts:"ctrlcmd+j",prefix:"`",buttonProps:{"aria-label":"Insert code (ctrl + j)",title:"Insert code (ctrl + j)"},icon:p.jsx("svg",{width:"14",height:"14",role:"img",viewBox:"0 0 640 512",children:p.jsx("path",{fill:"currentColor",d:"M278.9 511.5l-61-17.7c-6.4-1.8-10-8.5-8.2-14.9L346.2 8.7c1.8-6.4 8.5-10 14.9-8.2l61 17.7c6.4 1.8 10 8.5 8.2 14.9L293.8 503.3c-1.9 6.4-8.5 10.1-14.9 8.2zm-114-112.2l43.5-46.4c4.6-4.9 4.3-12.7-.8-17.2L117 256l90.6-79.7c5.1-4.5 5.5-12.3.8-17.2l-43.5-46.4c-4.5-4.8-12.1-5.1-17-.5L3.8 247.2c-5.1 4.7-5.1 12.8 0 17.5l144.1 135.1c4.9 4.6 12.5 4.4 17-.5zm327.2.6l144.1-135.1c5.1-4.7 5.1-12.8 0-17.5L492.1 112.1c-4.8-4.5-12.4-4.3-17 .5L431.6 159c-4.6 4.9-4.3 12.7.8 17.2L523 256l-90.6 79.7c-5.1 4.5-5.5 12.3-.8 17.2l43.5 46.4c4.5 4.9 12.1 5.1 17 .6z"})}),execute:(e,t)=>{if(e.selectedText.indexOf(`
62
- `)===-1){var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}else oy.execute(e,t)}},p4={name:"comment",keyCommand:"comment",shortcuts:"ctrlcmd+/",prefix:"<!-- ",suffix:" -->",buttonProps:{"aria-label":"Insert comment (ctrl + /)",title:"Insert comment (ctrl + /)"},icon:p.jsx("svg",{height:"1em",width:"1em",viewBox:"0 0 25 25",children:p.jsxs("g",{fill:"none",fillRule:"evenodd",children:[p.jsx("polygon",{points:".769 .727 24.981 .727 24.981 24.727 .769 24.727"}),p.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M12.625,23.8787879 L8.125,19.6969697 L5.125,19.6969697 C2.63971863,19.6969697 0.625,17.8247059 0.625,15.5151515 L0.625,7.15151515 C0.625,4.84196074 2.63971863,2.96969697 5.125,2.96969697 L20.125,2.96969697 C22.6102814,2.96969697 24.625,4.84196074 24.625,7.15151515 L24.625,15.5151515 C24.625,17.8247059 22.6102814,19.6969697 20.125,19.6969697 L17.125,19.6969697 L12.625,23.8787879"}),p.jsx("path",{stroke:"currentColor",strokeLinecap:"round",strokeLinejoin:"round",strokeWidth:"3",d:"M10.625,8.54545455 L7.25,11.3333333 L10.625,14.1212121 M15.6875,8.54545455 L19.0625,11.3333333 L15.6875,14.1212121"})]})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},el={keyCommand:"divider"},f4={name:"fullscreen",keyCommand:"fullscreen",shortcuts:"ctrlcmd+0",value:"fullscreen",buttonProps:{"aria-label":"Toggle fullscreen (ctrl + 0)",title:"Toggle fullscreen (ctrl+ 0)"},icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.jsx("path",{fill:"currentColor",d:"M118 171.133334L118 342.200271C118 353.766938 126.675 365.333605 141.133333 365.333605L382.634614 365.333605C394.201281 365.333605 405.767948 356.658605 405.767948 342.200271L405.767948 171.133334C405.767948 159.566667 397.092948 148 382.634614 148L141.133333 148C126.674999 148 117.999999 156.675 118 171.133334zM465.353591 413.444444L370 413.444444 370 471.222222 474.0221 471.222222C500.027624 471.222222 520.254143 451 520.254143 425L520.254143 321 462.464089 321 462.464089 413.444444 465.353591 413.444444zM471.0221 43L367 43 367 100.777778 462.353591 100.777778 462.353591 196.111111 520.143647 196.111111 520.143647 89.2222219C517.254144 63.2222219 497.027624 43 471.0221 43zM57.7900547 100.777778L153.143646 100.777778 153.143646 43 46.2320439 43C20.2265191 43 0 63.2222219 0 89.2222219L0 193.222222 57.7900547 193.222222 57.7900547 100.777778zM57.7900547 321L0 321 0 425C0 451 20.2265191 471.222222 46.2320439 471.222223L150.254143 471.222223 150.254143 413.444445 57.7900547 413.444445 57.7900547 321z"})}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({fullscreen:!r.fullscreen})}};function m4(e){if(e==null)throw new TypeError("Cannot destructure "+e)}var h4=(e,t)=>{var n=U({children:e,icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})}),execute:()=>{}},t,{keyCommand:"group"});return Array.isArray(n.children)&&(n.children=n.children.map(r=>{var a=U({},(m4(r),r));return a.parent=n,U({},a)})),n},g4={name:"hr",keyCommand:"hr",shortcuts:"ctrlcmd+h",prefix:`
63
-
64
- ---
65
- `,suffix:"",buttonProps:{"aria-label":"Insert HR (ctrl + h)",title:"Insert HR (ctrl + h)"},icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 175 175",children:p.jsx("path",{fill:"currentColor",d:"M0,129 L175,129 L175,154 L0,154 L0,129 Z M3,9 L28.2158203,9 L28.2158203,47.9824219 L55.7695313,47.9824219 L55.7695313,9 L81.0966797,9 L81.0966797,107.185547 L55.7695313,107.185547 L55.7695313,68.0214844 L28.2158203,68.0214844 L28.2158203,107.185547 L3,107.185547 L3,9 Z M93.1855469,100.603516 L93.1855469,19 L135.211914,19 C143.004922,19 148.960917,19.6679621 153.080078,21.0039063 C157.199239,22.3398504 160.520495,24.8168764 163.043945,28.4350586 C165.567395,32.0532407 166.829102,36.459935 166.829102,41.6552734 C166.829102,46.1826398 165.864267,50.0883625 163.93457,53.3725586 C162.004873,56.6567547 159.351579,59.3193257 155.974609,61.3603516 C153.822255,62.6591862 150.872089,63.7353473 147.124023,64.5888672 C150.129898,65.5908253 152.319329,66.5927684 153.692383,67.5947266 C154.620122,68.2626987 155.965323,69.6913953 157.728027,71.8808594 C159.490731,74.0703234 160.668942,75.7587831 161.262695,76.9462891 L173,100.603516 L144.953125,100.603516 L131.482422,75.6660156 C129.775382,72.4374839 128.253913,70.3408251 126.917969,69.3759766 C125.0996,68.1142515 123.040051,67.4833984 120.739258,67.4833984 L118.512695,67.4833984 L118.512695,100.603516 L93.1855469,100.603516 Z M118.512695,52.0644531 L129.144531,52.0644531 C130.294928,52.0644531 132.521468,51.6933631 135.824219,50.9511719 C137.494149,50.6171858 138.857905,49.7636787 139.915527,48.390625 C140.97315,47.0175713 141.501953,45.4404386 141.501953,43.6591797 C141.501953,41.0244009 140.667001,39.0019602 138.99707,37.5917969 C137.32714,36.1816336 134.191429,35.4765625 129.589844,35.4765625 L117.512695,35.4765625 L118.512695,52.0644531 Z",transform:"translate(0 9)"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length&&r.selectedText.startsWith(e.command.prefix)?en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},b4={name:"image",keyCommand:"image",shortcuts:"ctrlcmd+k",prefix:"![image](",suffix:")",buttonProps:{"aria-label":"Add image (ctrl + k)",title:"Add image (ctrl + k)"},icon:p.jsx("svg",{width:"13",height:"13",viewBox:"0 0 20 20",children:p.jsx("path",{fill:"currentColor",d:"M15 9c1.1 0 2-.9 2-2s-.9-2-2-2-2 .9-2 2 .9 2 2 2zm4-7H1c-.55 0-1 .45-1 1v14c0 .55.45 1 1 1h18c.55 0 1-.45 1-1V3c0-.55-.45-1-1-1zm-1 13l-6-5-2 2-4-5-4 8V4h16v11z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(n=hn({text:e.text,selection:e.selection,prefix:"![",suffix:"]()"}),r=t.setSelectionRange(n),r.selectedText.length===0?en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![image",suffix:"](url)"}):en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"![",suffix:"]()"}))}},y4={name:"italic",keyCommand:"italic",shortcuts:"ctrlcmd+i",prefix:"*",buttonProps:{"aria-label":"Add italic text (ctrl + i)",title:"Add italic text (ctrl + i)"},icon:p.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 320 512",children:p.jsx("path",{fill:"currentColor",d:"M204.758 416h-33.849l62.092-320h40.725a16 16 0 0 0 15.704-12.937l6.242-32C297.599 41.184 290.034 32 279.968 32H120.235a16 16 0 0 0-15.704 12.937l-6.242 32C96.362 86.816 103.927 96 113.993 96h33.846l-62.09 320H46.278a16 16 0 0 0-15.704 12.935l-6.245 32C22.402 470.815 29.967 480 40.034 480h158.479a16 16 0 0 0 15.704-12.935l6.245-32c1.927-9.88-5.638-19.065-15.704-19.065z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},x4={name:"link",keyCommand:"link",shortcuts:"ctrlcmd+l",prefix:"[",suffix:"](url)",buttonProps:{"aria-label":"Add a link (ctrl + l)",title:"Add a link (ctrl + l)"},icon:p.jsx("svg",{"data-name":"italic",width:"12",height:"12",role:"img",viewBox:"0 0 520 520",children:p.jsx("path",{fill:"currentColor",d:"M331.751196,182.121107 C392.438214,241.974735 391.605313,337.935283 332.11686,396.871226 C332.005129,396.991316 331.873084,397.121413 331.751196,397.241503 L263.493918,464.491645 C203.291404,523.80587 105.345257,523.797864 45.151885,464.491645 C-15.0506283,405.187427 -15.0506283,308.675467 45.151885,249.371249 L82.8416853,212.237562 C92.836501,202.39022 110.049118,208.9351 110.56511,222.851476 C111.223305,240.5867 114.451306,258.404985 120.407566,275.611815 C122.424812,281.438159 120.983487,287.882964 116.565047,292.23621 L103.272145,305.332975 C74.8052033,333.379887 73.9123737,379.047937 102.098973,407.369054 C130.563883,435.969378 177.350591,436.139505 206.033884,407.879434 L274.291163,340.6393 C302.9257,312.427264 302.805844,266.827265 274.291163,238.733318 C270.531934,235.036561 266.74528,232.16442 263.787465,230.157924 C259.544542,227.2873 256.928256,222.609848 256.731165,217.542518 C256.328935,206.967633 260.13184,196.070508 268.613213,187.714278 L289.998463,166.643567 C295.606326,161.118448 304.403592,160.439942 310.906317,164.911276 C318.353355,170.034591 325.328531,175.793397 331.751196,182.121107 Z M240.704978,55.4828366 L172.447607,122.733236 C172.325719,122.853326 172.193674,122.983423 172.081943,123.103513 C117.703294,179.334654 129.953294,261.569283 185.365841,328.828764 C191.044403,335.721376 198.762988,340.914712 206.209732,346.037661 C212.712465,350.509012 221.510759,349.829503 227.117615,344.305363 L248.502893,323.234572 C256.984277,314.87831 260.787188,303.981143 260.384957,293.406218 C260.187865,288.338869 257.571576,283.661398 253.328648,280.790763 C250.370829,278.78426 246.58417,275.912107 242.824936,272.215337 C214.310216,244.121282 206.209732,204.825874 229.906702,179.334654 L298.164073,112.094263 C326.847404,83.8340838 373.633159,84.0042113 402.099123,112.604645 C430.285761,140.92587 429.393946,186.594095 400.92595,214.641114 L387.63303,227.737929 C383.214584,232.091191 381.773257,238.536021 383.790506,244.362388 C389.746774,261.569283 392.974779,279.387637 393.632975,297.122928 C394.149984,311.039357 411.361608,317.584262 421.356437,307.736882 L459.046288,270.603053 C519.249898,211.29961 519.249898,114.787281 459.047304,55.4828366 C398.853851,-3.82360914 300.907572,-3.83161514 240.704978,55.4828366 Z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.includes("http")||r.selectedText.includes("www")?(n=hn({text:e.text,selection:e.selection,prefix:"[](",suffix:")"}),r=t.setSelectionRange(n),en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[](",suffix:")"})):r.selectedText.length===0?en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:"[title",suffix:"](url)"}):en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix})}},kp=(e,t,n)=>{var r=hn({text:e.text,selection:e.selection,prefix:e.command.prefix}),a=t.setSelectionRange(r),o=ry(a.text,a.selection.start),s=Array(o+1).join(`
66
- `),i=ay(a.text,a.selection.end),l=Array(i+1).join(`
67
- `),{modifiedText:u,insertionLength:c}=Tp(a.selectedText,n);if(c<0){var d=a.selection.start,m=a.selection.end;a.selection.start>0&&e.text.slice(a.selection.start-1,a.selection.start)===`
68
- `&&(d-=1),a.selection.end<e.text.length-1&&e.text.slice(a.selection.end,a.selection.end+1)===`
69
- `&&(m+=1),t.setSelectionRange({start:d,end:m}),t.replaceSelection(""+u),t.setSelectionRange({start:d,end:d+u.length})}else{t.replaceSelection(""+s+u+l);var f=a.selection.start+o,h=f+u.length;t.setSelectionRange({start:f,end:h})}},C4={name:"unordered-list",keyCommand:"list",shortcuts:"ctrl+shift+u",prefix:"- ",buttonProps:{"aria-label":"Add unordered list (ctrl + shift + u)",title:"Add unordered list (ctrl + shift + u)"},icon:p.jsx("svg",{"data-name":"unordered-list",width:"12",height:"12",viewBox:"0 0 512 512",children:p.jsx("path",{fill:"currentColor",d:"M96 96c0 26.51-21.49 48-48 48S0 122.51 0 96s21.49-48 48-48 48 21.49 48 48zM48 208c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm0 160c-26.51 0-48 21.49-48 48s21.49 48 48 48 48-21.49 48-48-21.49-48-48-48zm96-236h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{kp(e,t,"- ")}},E4={name:"ordered-list",keyCommand:"list",shortcuts:"ctrl+shift+o",prefix:"1. ",buttonProps:{"aria-label":"Add ordered list (ctrl + shift + o)",title:"Add ordered list (ctrl + shift + o)"},icon:p.jsx("svg",{"data-name":"ordered-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:p.jsx("path",{fill:"currentColor",d:"M3.263 139.527c0-7.477 3.917-11.572 11.573-11.572h15.131V88.078c0-5.163.534-10.503.534-10.503h-.356s-1.779 2.67-2.848 3.738c-4.451 4.273-10.504 4.451-15.666-1.068l-5.518-6.231c-5.342-5.341-4.984-11.216.534-16.379l21.72-19.938C32.815 33.602 36.732 32 42.785 32H54.89c7.656 0 11.749 3.916 11.749 11.572v84.384h15.488c7.655 0 11.572 4.094 11.572 11.572v8.901c0 7.477-3.917 11.572-11.572 11.572H14.836c-7.656 0-11.573-4.095-11.573-11.572v-8.902zM2.211 304.591c0-47.278 50.955-56.383 50.955-69.165 0-7.18-5.954-8.755-9.28-8.755-3.153 0-6.479 1.051-9.455 3.852-5.079 4.903-10.507 7.004-16.111 2.451l-8.579-6.829c-5.779-4.553-7.18-9.805-2.803-15.409C13.592 201.981 26.025 192 47.387 192c19.437 0 44.476 10.506 44.476 39.573 0 38.347-46.753 46.402-48.679 56.909h39.049c7.529 0 11.557 4.027 11.557 11.382v8.755c0 7.354-4.028 11.382-11.557 11.382h-67.94c-7.005 0-12.083-4.028-12.083-11.382v-4.028zM5.654 454.61l5.603-9.28c3.853-6.654 9.105-7.004 15.584-3.152 4.903 2.101 9.63 3.152 14.359 3.152 10.155 0 14.358-3.502 14.358-8.23 0-6.654-5.604-9.106-15.934-9.106h-4.728c-5.954 0-9.28-2.101-12.258-7.88l-1.05-1.926c-2.451-4.728-1.226-9.806 2.801-14.884l5.604-7.004c6.829-8.405 12.257-13.483 12.257-13.483v-.35s-4.203 1.051-12.608 1.051H16.685c-7.53 0-11.383-4.028-11.383-11.382v-8.755c0-7.53 3.853-11.382 11.383-11.382h58.484c7.529 0 11.382 4.027 11.382 11.382v3.327c0 5.778-1.401 9.806-5.079 14.183l-17.509 20.137c19.611 5.078 28.716 20.487 28.716 34.845 0 21.363-14.358 44.126-48.503 44.126-16.636 0-28.192-4.728-35.896-9.455-5.779-4.202-6.304-9.805-2.626-15.934zM144 132h352c8.837 0 16-7.163 16-16V76c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16zm0 160h352c8.837 0 16-7.163 16-16v-40c0-8.837-7.163-16-16-16H144c-8.837 0-16 7.163-16 16v40c0 8.837 7.163 16 16 16z"})}),execute:(e,t)=>{kp(e,t,(n,r)=>r+1+". ")}},v4={name:"checked-list",keyCommand:"list",shortcuts:"ctrl+shift+c",prefix:"- [ ] ",buttonProps:{"aria-label":"Add checked list (ctrl + shift + c)",title:"Add checked list (ctrl + shift + c)"},icon:p.jsx("svg",{"data-name":"checked-list",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:p.jsx("path",{fill:"currentColor",d:"M208 132h288c8.8 0 16-7.2 16-16V76c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zm0 160h288c8.8 0 16-7.2 16-16v-40c0-8.8-7.2-16-16-16H208c-8.8 0-16 7.2-16 16v40c0 8.8 7.2 16 16 16zM64 368c-26.5 0-48.6 21.5-48.6 48s22.1 48 48.6 48 48-21.5 48-48-21.5-48-48-48zm92.5-299l-72.2 72.2-15.6 15.6c-4.7 4.7-12.9 4.7-17.6 0L3.5 109.4c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.3c4.7-4.7 12.3-4.7 17 0l17 16.5c4.6 4.7 4.6 12.3-.1 17zm0 159.6l-72.2 72.2-15.7 15.7c-4.7 4.7-12.9 4.7-17.6 0L3.5 269c-4.7-4.7-4.7-12.3 0-17l15.7-15.7c4.7-4.7 12.3-4.7 17 0l22.7 22.1 63.7-63.7c4.7-4.7 12.3-4.7 17 0l17 17c4.6 4.6 4.6 12.2-.1 16.9z"})}),execute:(e,t)=>{kp(e,t,(n,r)=>"- [ ] ")}},T4={name:"preview",keyCommand:"preview",value:"preview",shortcuts:"ctrlcmd+9",buttonProps:{"aria-label":"Preview code (ctrl + 9)",title:"Preview code (ctrl + 9)"},icon:p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[p.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 38.023 123 38.023 398 0 397 0 449.707 91.023 450.413 91.023 72.293"}),p.jsx("polygon",{fill:"currentColor",points:"148.023 72.293 520 71.293 520 122 200.023 124 200.023 397 520 396 520 449.707 148.023 450.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"preview"})}},k4={name:"edit",keyCommand:"preview",value:"edit",shortcuts:"ctrlcmd+7",buttonProps:{"aria-label":"Edit code (ctrl + 7)",title:"Edit code (ctrl + 7)"},icon:p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[p.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 319 122 319 397 0 397 0 449.707 372 449.413 372 71.293"}),p.jsx("polygon",{fill:"currentColor",points:"429 71.293 520 71.293 520 122 481 123 481 396 520 396 520 449.707 429 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"edit"})}},S4={name:"live",keyCommand:"preview",value:"live",shortcuts:"ctrlcmd+8",buttonProps:{"aria-label":"Live code (ctrl + 8)",title:"Live code (ctrl + 8)"},icon:p.jsxs("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:[p.jsx("polygon",{fill:"currentColor",points:"0 71.293 0 122 179 122 179 397 0 397 0 449.707 232 449.413 232 71.293"}),p.jsx("polygon",{fill:"currentColor",points:"289 71.293 520 71.293 520 122 341 123 341 396 520 396 520 449.707 289 449.413"})]}),execute:(e,t,n,r,a)=>{t.textArea.focus(),a&&n&&r&&n({preview:"live"})}},w4={name:"quote",keyCommand:"quote",shortcuts:"ctrlcmd+q",prefix:"> ",buttonProps:{"aria-label":"Insert a quote (ctrl + q)",title:"Insert a quote (ctrl + q)"},icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.jsx("path",{fill:"currentColor",d:"M520,95.75 L520,225.75 C520,364.908906 457.127578,437.050625 325.040469,472.443125 C309.577578,476.586875 294.396016,464.889922 294.396016,448.881641 L294.396016,414.457031 C294.396016,404.242891 300.721328,395.025078 310.328125,391.554687 C377.356328,367.342187 414.375,349.711094 414.375,274.5 L341.25,274.5 C314.325781,274.5 292.5,252.674219 292.5,225.75 L292.5,95.75 C292.5,68.8257812 314.325781,47 341.25,47 L471.25,47 C498.174219,47 520,68.8257812 520,95.75 Z M178.75,47 L48.75,47 C21.8257813,47 0,68.8257812 0,95.75 L0,225.75 C0,252.674219 21.8257813,274.5 48.75,274.5 L121.875,274.5 C121.875,349.711094 84.8563281,367.342187 17.828125,391.554687 C8.22132813,395.025078 1.89601563,404.242891 1.89601563,414.457031 L1.89601563,448.881641 C1.89601563,464.889922 17.0775781,476.586875 32.5404687,472.443125 C164.627578,437.050625 227.5,364.908906 227.5,225.75 L227.5,95.75 C227.5,68.8257812 205.674219,47 178.75,47 Z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n),a=ry(r.text,r.selection.start),o=Array(a+1).join(`
70
- `),s=ay(r.text,r.selection.end),i=Array(s+1).join(`
71
- `),l=Tp(r.selectedText,e.command.prefix);t.replaceSelection(""+o+l.modifiedText+i);var u=r.selection.start+a,c=u+l.modifiedText.length;t.setSelectionRange({start:u,end:c})}},_4={name:"strikethrough",keyCommand:"strikethrough",shortcuts:"ctrl+shift+x",buttonProps:{"aria-label":"Add strikethrough text (ctrl + shift + x)",title:"Add strikethrough text (ctrl + shift + x)"},prefix:"~~",icon:p.jsx("svg",{"data-name":"strikethrough",width:"12",height:"12",role:"img",viewBox:"0 0 512 512",children:p.jsx("path",{fill:"currentColor",d:"M496 288H16c-8.837 0-16-7.163-16-16v-32c0-8.837 7.163-16 16-16h480c8.837 0 16 7.163 16 16v32c0 8.837-7.163 16-16 16zm-214.666 16c27.258 12.937 46.524 28.683 46.524 56.243 0 33.108-28.977 53.676-75.621 53.676-32.325 0-76.874-12.08-76.874-44.271V368c0-8.837-7.164-16-16-16H113.75c-8.836 0-16 7.163-16 16v19.204c0 66.845 77.717 101.82 154.487 101.82 88.578 0 162.013-45.438 162.013-134.424 0-19.815-3.618-36.417-10.143-50.6H281.334zm-30.952-96c-32.422-13.505-56.836-28.946-56.836-59.683 0-33.92 30.901-47.406 64.962-47.406 42.647 0 64.962 16.593 64.962 32.985V136c0 8.837 7.164 16 16 16h45.613c8.836 0 16-7.163 16-16v-30.318c0-52.438-71.725-79.875-142.575-79.875-85.203 0-150.726 40.972-150.726 125.646 0 22.71 4.665 41.176 12.777 56.547h129.823z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix}),r=t.setSelectionRange(n);en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix})}},sy={name:"heading1",keyCommand:"heading1",shortcuts:"ctrlcmd+1",prefix:"# ",suffix:"",buttonProps:{"aria-label":"Insert Heading 1 (ctrl + 1)",title:"Insert Heading 1 (ctrl + 1)"},icon:p.jsx("div",{style:{fontSize:18,textAlign:"left"},children:"Heading 1"}),execute:(e,t)=>{jo({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},I4=sy;function jo(e){var{state:t,api:n,prefix:r,suffix:a=r}=e,o=Ps({text:t.text,selection:t.selection}),s=n.setSelectionRange(o);en({api:n,selectedText:s.selectedText,selection:t.selection,prefix:r,suffix:a})}U({},sy,{icon:p.jsx("svg",{width:"12",height:"12",viewBox:"0 0 520 520",children:p.jsx("path",{fill:"currentColor",d:"M15.7083333,468 C7.03242448,468 0,462.030833 0,454.666667 L0,421.333333 C0,413.969167 7.03242448,408 15.7083333,408 L361.291667,408 C369.967576,408 377,413.969167 377,421.333333 L377,454.666667 C377,462.030833 369.967576,468 361.291667,468 L15.7083333,468 Z M21.6666667,366 C9.69989583,366 0,359.831861 0,352.222222 L0,317.777778 C0,310.168139 9.69989583,304 21.6666667,304 L498.333333,304 C510.300104,304 520,310.168139 520,317.777778 L520,352.222222 C520,359.831861 510.300104,366 498.333333,366 L21.6666667,366 Z M136.835938,64 L136.835937,126 L107.25,126 L107.25,251 L40.75,251 L40.75,126 L-5.68434189e-14,126 L-5.68434189e-14,64 L136.835938,64 Z M212,64 L212,251 L161.648438,251 L161.648438,64 L212,64 Z M378,64 L378,126 L343.25,126 L343.25,251 L281.75,251 L281.75,126 L238,126 L238,64 L378,64 Z M449.047619,189.550781 L520,189.550781 L520,251 L405,251 L405,64 L449.047619,64 L449.047619,189.550781 Z"})})});var A4={name:"heading2",keyCommand:"heading2",shortcuts:"ctrlcmd+2",prefix:"## ",suffix:"",buttonProps:{"aria-label":"Insert Heading 2 (ctrl + 2)",title:"Insert Heading 2 (ctrl + 2)"},icon:p.jsx("div",{style:{fontSize:16,textAlign:"left"},children:"Heading 2"}),execute:(e,t)=>{jo({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},D4=A4,P4={name:"heading3",keyCommand:"heading3",shortcuts:"ctrlcmd+3",prefix:"### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 3 (ctrl + 3)",title:"Insert Heading 3 (ctrl + 3)"},icon:p.jsx("div",{style:{fontSize:15,textAlign:"left"},children:"Heading 3"}),execute:(e,t)=>{jo({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},R4=P4,M4={name:"heading4",keyCommand:"heading4",shortcuts:"ctrlcmd+4",prefix:"#### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 4 (ctrl + 4)",title:"Insert Heading 4 (ctrl + 4)"},icon:p.jsx("div",{style:{fontSize:14,textAlign:"left"},children:"Heading 4"}),execute:(e,t)=>{jo({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},N4=M4,O4={name:"heading5",keyCommand:"heading5",shortcuts:"ctrlcmd+5",prefix:"##### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 5 (ctrl + 5)",title:"Insert Heading 5 (ctrl + 5)"},icon:p.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 5"}),execute:(e,t)=>{jo({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},L4=O4,F4={name:"heading6",keyCommand:"heading6",shortcuts:"ctrlcmd+6",prefix:"###### ",suffix:"",buttonProps:{"aria-label":"Insert Heading 6 (ctrl + 6)",title:"Insert Heading 6 (ctrl + 6)"},icon:p.jsx("div",{style:{fontSize:12,textAlign:"left"},children:"Heading 6"}),execute:(e,t)=>{jo({state:e,api:t,prefix:e.command.prefix,suffix:e.command.suffix})}},$4=F4,B4={name:"table",keyCommand:"table",prefix:`
72
- | Header | Header |
73
- |--------|--------|
74
- | Cell | Cell |
75
- | Cell | Cell |
76
- | Cell | Cell |
77
-
78
- `,suffix:"",buttonProps:{"aria-label":"Add table",title:"Add table"},icon:p.jsx("svg",{role:"img",width:"12",height:"12",viewBox:"0 0 512 512",children:p.jsx("path",{fill:"currentColor",d:"M64 256V160H224v96H64zm0 64H224v96H64V320zm224 96V320H448v96H288zM448 256H288V160H448v96zM64 32C28.7 32 0 60.7 0 96V416c0 35.3 28.7 64 64 64H448c35.3 0 64-28.7 64-64V96c0-35.3-28.7-64-64-64H64z"})}),execute:(e,t)=>{var n=hn({text:e.text,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}),r=t.setSelectionRange(n);r.selectedText.length>=e.command.prefix.length+e.command.suffix.length&&r.selectedText.startsWith(e.command.prefix)?en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}):(r=t.setSelectionRange({start:e.selection.start,end:e.selection.start}),en({api:t,selectedText:r.selectedText,selection:e.selection,prefix:e.command.prefix,suffix:e.command.suffix}))}},j4={name:"help",keyCommand:"help",buttonProps:{"aria-label":"Open help",title:"Open help"},icon:p.jsx("svg",{viewBox:"0 0 16 16",width:"12px",height:"12px",children:p.jsx("path",{d:"M8 0C3.6 0 0 3.6 0 8s3.6 8 8 8 8-3.6 8-8-3.6-8-8-8Zm.9 13H7v-1.8h1.9V13Zm-.1-3.6v.5H7.1v-.6c.2-2.1 2-1.9 1.9-3.2.1-.7-.3-1.1-1-1.1-.8 0-1.2.7-1.2 1.6H5c0-1.7 1.2-3 2.9-3 2.3 0 3 1.4 3 2.3.1 2.3-1.9 2-2.1 3.5Z",fill:"currentColor"})}),execute:()=>{window.open("https://www.markdownguide.org/basic-syntax/","_blank","noreferrer")}},H4=()=>[c4,y4,_4,g4,h4([I4,D4,R4,N4,L4,$4],{name:"title",groupName:"title",buttonProps:{"aria-label":"Insert title",title:"Insert title"}}),el,x4,w4,d4,oy,p4,b4,B4,el,C4,E4,v4,el,j4],U4=()=>[k4,S4,T4,el,f4];function Dl(e){var t;return{selection:{start:e.selectionStart,end:e.selectionEnd},text:e.value,selectedText:(t=e.value)==null?void 0:t.slice(e.selectionStart,e.selectionEnd)}}class Sp{constructor(t){this.textArea=void 0,this.textArea=t}replaceSelection(t){return mo(this.textArea,t),Dl(this.textArea)}setSelectionRange(t){return this.textArea.focus(),this.textArea.selectionStart=t.start,this.textArea.selectionEnd=t.end,Dl(this.textArea)}}class wp{constructor(t){this.textArea=void 0,this.textApi=void 0,this.textArea=t,this.textApi=new Sp(t)}getState(){return this.textArea?Dl(this.textArea):!1}executeCommand(t,n,r,a){t.execute&&t.execute(U({command:t},Dl(this.textArea)),this.textApi,n,r,a)}}function tl(e){e.stopPropagation(),e.preventDefault()}function wh(e,t){tl(e);var n=e.target,r=new Sp(n),a={start:n.selectionStart,end:n.selectionEnd};if(a=Ps({text:n.value,selection:a}),!(t<0&&a.start<=0||t>0&&a.end>=n.value.length)){var o=n.value.slice(a.start,a.end);if(t<0){var s=Ps({text:n.value,selection:{start:a.start-1,end:a.start-1}}),i=n.value.slice(s.start,s.end);r.setSelectionRange({start:s.start,end:a.end}),mo(n,o+`
79
- `+i),r.setSelectionRange({start:s.start,end:s.start+o.length})}else{var l=Ps({text:n.value,selection:{start:a.end+1,end:a.end+1}}),u=n.value.slice(l.start,l.end);r.setSelectionRange({start:a.start,end:l.end}),mo(n,u+`
80
- `+o),r.setSelectionRange({start:l.end-o.length,end:l.end})}}}function z4(e,t,n){t===void 0&&(t=2),n===void 0&&(n=!1);var r=e.target,a=r.value.substr(0,r.selectionStart),o=a.split(`
81
- `),s=o[o.length-1],i=new Sp(r);if(!n&&e.code&&e.code.toLowerCase()==="tab"){tl(e);var l=new Array(t+1).join(" ");if(r.selectionStart!==r.selectionEnd){var u=r.value.substring(0,r.selectionStart).split(`
82
- `),c=r.value.substring(0,r.selectionEnd).split(`
83
- `),d=[];c.forEach((O,M)=>{O!==u[M]&&d.push(O)});var m=d.join(`
84
- `),f=r.value.substring(r.selectionStart,r.selectionEnd),h=r.value.substring(0,r.selectionStart).length;i.setSelectionRange({start:r.value.indexOf(m),end:r.selectionEnd});var b=Tp(m,e.shiftKey?"":l),g=b.modifiedText;e.shiftKey&&(g=g.split(`
85
- `).map(O=>O.replace(new RegExp("^"+l),"")).join(`
86
- `)),i.replaceSelection(g);var x=e.shiftKey?-t:t,C=e.shiftKey?-d.length*t:d.length*t;i.setSelectionRange({start:h+x,end:h+f.length+C})}else return mo(r,l)}else if(e.keyCode===13&&e.code.toLowerCase()==="enter"&&(/^(-|\*)\s/.test(s)||/^\d+.\s/.test(s))&&!e.shiftKey){tl(e);var E=`
87
- - `;return s.startsWith("*")&&(E=`
88
- * `),(s.startsWith("- [ ]")||s.startsWith("- [X]")||s.startsWith("- [x]"))&&(E=`
89
- - [ ] `),/^\d+.\s/.test(s)&&(E=`
90
- `+(parseInt(s)+1)+". "),mo(r,E)}else if(e.code&&e.code.toLowerCase()==="keyd"&&e.ctrlKey){tl(e);var k={start:r.selectionStart,end:r.selectionEnd},T=k;k=Ps({text:r.value,selection:k});var S=r.value.slice(k.start,k.end);i.setSelectionRange({start:k.end,end:k.end}),mo(r,`
91
- `+S),i.setSelectionRange({start:T.start,end:T.end})}else e.code&&e.code.toLowerCase()==="arrowup"&&e.altKey?wh(e,-1):e.code&&e.code.toLowerCase()==="arrowdown"&&e.altKey&&wh(e,1)}var V4=["prefixCls","onChange"],W4=["markdown","commands","fullscreen","preview","highlightEnable","extraCommands","tabSize","defaultTabEnable","autoFocusEnd","textareaWarp","dispatch"];function q4(e){var{prefixCls:t,onChange:n}=e,r=je(e,V4),a=q.useContext(Bo),{markdown:o,commands:s,fullscreen:i,preview:l,highlightEnable:u,extraCommands:c,tabSize:d,defaultTabEnable:m,autoFocusEnd:f,textareaWarp:h,dispatch:b}=a;je(a,W4);var g=q.useRef(null),x=q.useRef(),C=q.useRef({fullscreen:i,preview:l});q.useEffect(()=>{C.current={fullscreen:i,preview:l,highlightEnable:u}},[i,l,u]),q.useEffect(()=>{if(g.current&&b){var k=new wp(g.current);x.current=k,b({textarea:g.current,commandOrchestrator:k})}},[]),q.useEffect(()=>{if(f&&g.current&&h){g.current.focus();var k=g.current.value.length;g.current.setSelectionRange(k,k),setTimeout(()=>{h&&(h.scrollTop=h.scrollHeight),g.current&&(g.current.scrollTop=g.current.scrollHeight)},0)}},[h]);var E=k=>{z4(k,d,m),ny(k,[...s||[],...c||[]],x.current,b,C.current)};return q.useEffect(()=>(g.current&&g.current.addEventListener("keydown",E),()=>{g.current&&g.current.removeEventListener("keydown",E)}),[]),p.jsx("textarea",U({autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",spellCheck:!1},r,{ref:g,className:t+"-text-input "+(r.className?r.className:""),value:o,onChange:k=>{b&&b({markdown:k.target.value}),n&&n(k)}}))}var Y4=["prefixCls","className","onScroll","renderTextarea"];function G4(e){var t=e||{},{prefixCls:n,className:r,onScroll:a,renderTextarea:o}=t,s=je(t,Y4),{markdown:i,scrollTop:l,commands:u,extraCommands:c,dispatch:d}=q.useContext(Bo),m=q.useRef(null),f=q.useRef(),h=q.createRef();q.useEffect(()=>{var g={};h.current&&(g.textareaWarp=h.current||void 0,h.current.scrollTop=l||0),d&&d(U({},g))},[]),q.useEffect(()=>{if(m.current&&d){var g=new wp(m.current);f.current=g,d({textarea:m.current,commandOrchestrator:g})}},[]);var b={WebkitTextFillColor:"initial",overflow:"auto"};return p.jsx("div",{ref:h,className:n+"-area "+(r||""),onScroll:a,children:p.jsx("div",{className:n+"-text",children:o?q.cloneElement(o(U({},s,{value:i,autoComplete:"off",autoCorrect:"off",spellCheck:"false",autoCapitalize:"off",className:n+"-text-input",style:{WebkitTextFillColor:"inherit",overflow:"auto"}}),{dispatch:d,onChange:s.onChange,shortcuts:ny,useContext:{commands:u,extraCommands:c,commandOrchestrator:f.current}}),{ref:m}):p.jsx(q.Fragment,{children:p.jsx(q4,U({prefixCls:n},s,{style:b}))})})})}function K4(e){var{prefixCls:t,groupName:n,commands:r,children:a}=e||{},{barPopup:o={}}=q.useContext(Bo);return q.useMemo(()=>p.jsx("div",{className:t+"-toolbar-child "+(n&&o[n]?"active":""),onClick:s=>s.stopPropagation(),children:Array.isArray(r)?p.jsx(iy,U({commands:r},e,{isChild:!0})):a}),[r,o,n,t])}function _h(e){var{prefixCls:t,overflow:n}=e,{fullscreen:r,preview:a,barPopup:o={},components:s,commandOrchestrator:i,dispatch:l}=q.useContext(Bo),u=q.useRef("");function c(d,m){if(l){var f={barPopup:U({},o)};d.keyCommand==="preview"&&(f.preview=d.value),d.keyCommand==="fullscreen"&&(f.fullscreen=!r),e.commands&&d.keyCommand==="group"?e.commands.forEach(h=>{m===h.groupName?f.barPopup[m]=!0:h.keyCommand&&(f.barPopup[h.groupName]=!1)}):(m||d.parent)&&Object.keys(f.barPopup||{}).forEach(h=>{f.barPopup[h]=!1}),Object.keys(f).length&&l(U({},f)),i&&i.executeCommand(d)}}return q.useEffect(()=>{document&&n&&(r?document.body.style.overflow="hidden":(u.current||(u.current=window.getComputedStyle(document.body,null).overflow),document.body.style.overflow=u.current))},[r,u,n]),p.jsx("ul",{children:(e.commands||[]).map((d,m)=>{if(d.keyCommand==="divider")return p.jsx("li",U({},d.liProps,{className:t+"-toolbar-divider"}),m);if(!d.keyCommand)return p.jsx(q.Fragment,{},m);var f=r&&d.keyCommand==="fullscreen"||d.keyCommand==="preview"&&a===d.value,h=d.children&&typeof d.children=="function"?d.children({getState:()=>i.getState(),textApi:i?i.textApi:void 0,close:()=>c({},d.groupName),execute:()=>c({execute:d.execute}),dispatch:l}):void 0,b=o&&a&&a==="preview"&&!/(preview|fullscreen)/.test(d.keyCommand),g=s?.toolbar||d.render,x=g&&typeof g=="function"?g(d,!!b,c,m):null;return p.jsxs("li",U({},d.liProps,{className:f?"active":"",children:[x&&q.isValidElement(x)&&x,!x&&!d.buttonProps&&d.icon,!x&&d.buttonProps&&q.createElement("button",U({type:"button",key:m,disabled:b,"data-name":d.name},d.buttonProps,{onClick:C=>{C.stopPropagation(),c(d,d.groupName)}}),d.icon),d.children&&p.jsx(K4,{overflow:n,groupName:d.groupName,prefixCls:t,children:h,commands:Array.isArray(d.children)?d.children:void 0})]}),m)})})}function iy(e){e===void 0&&(e={});var{prefixCls:t,isChild:n,className:r}=e,{commands:a,extraCommands:o}=q.useContext(Bo);return p.jsxs("div",{className:t+"-toolbar "+r,children:[p.jsx(_h,U({},e,{commands:e.commands||a||[]})),!n&&p.jsx(_h,U({},e,{commands:o||[]}))]})}function Ih(e){var{hideToolbar:t,toolbarBottom:n,placement:r,overflow:a,prefixCls:o}=e;if(t||r==="bottom"&&!n||r==="top"&&n)return null;var s=n?"bottom":"";return p.jsx(iy,{prefixCls:o,overflow:a,className:s})}var Q4=e=>{var{prefixCls:t,onChange:n}=e||{},r=q.useRef(null),a=q.useRef(),o=q.useRef(e.height);q.useEffect(()=>{o.current!==e.height&&(o.current=e.height)},[e.height]);function s(c){if(a.current){var d,m=c.clientY||((d=c.changedTouches[0])==null?void 0:d.clientY),f=a.current.height+m-a.current.dragY;f>=e.minHeight&&f<=e.maxHeight&&n&&n(a.current.height+(m-a.current.dragY))}}function i(){var c,d;a.current=void 0,document.removeEventListener("mousemove",s),document.removeEventListener("mouseup",i),(c=r.current)==null||c.removeEventListener("touchmove",s),(d=r.current)==null||d.removeEventListener("touchend",i)}function l(c){var d,m,f;c.preventDefault();var h=c.clientY||((d=c.changedTouches[0])==null?void 0:d.clientY);a.current={height:o.current,dragY:h},document.addEventListener("mousemove",s),document.addEventListener("mouseup",i),(m=r.current)==null||m.addEventListener("touchmove",s,{passive:!1}),(f=r.current)==null||f.addEventListener("touchend",i,{passive:!1})}q.useEffect(()=>{if(document){var c,d;(c=r.current)==null||c.addEventListener("touchstart",l,{passive:!1}),(d=r.current)==null||d.addEventListener("mousedown",l)}return()=>{if(document){var m;(m=r.current)==null||m.removeEventListener("touchstart",l),document.removeEventListener("mousemove",s)}}},[]);var u=q.useMemo(()=>p.jsx("svg",{viewBox:"0 0 512 512",height:"100%",children:p.jsx("path",{fill:"currentColor",d:"M304 256c0 26.5-21.5 48-48 48s-48-21.5-48-48 21.5-48 48-48 48 21.5 48 48zm120-48c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48zm-336 0c-26.5 0-48 21.5-48 48s21.5 48 48 48 48-21.5 48-48-21.5-48-48-48z"})}),[]);return p.jsx("div",{className:t+"-bar",ref:r,children:u})},X4=["prefixCls","className","value","commands","commandsFilter","direction","extraCommands","height","enableScroll","visibleDragbar","highlightEnable","preview","fullscreen","overflow","previewOptions","textareaProps","maxHeight","minHeight","autoFocus","autoFocusEnd","tabSize","defaultTabEnable","onChange","onStatistics","onHeightChange","hideToolbar","toolbarBottom","components","renderTextarea"];function Z4(e){return e===void 0&&(e={}),Object.keys(e).forEach(t=>{e[t]=!1}),e}var J4=q.forwardRef((e,t)=>{var n=e||{},{prefixCls:r="w-md-editor",className:a,value:o,commands:s=H4(),commandsFilter:i,direction:l,extraCommands:u=U4(),height:c=200,enableScroll:d=!0,visibleDragbar:m=typeof e.visiableDragbar=="boolean"?e.visiableDragbar:!0,highlightEnable:f=!0,preview:h="live",fullscreen:b=!1,overflow:g=!0,previewOptions:x={},textareaProps:C,maxHeight:E=1200,minHeight:k=100,autoFocus:T,autoFocusEnd:S=!1,tabSize:O=2,defaultTabEnable:M=!1,onChange:$,onStatistics:P,onHeightChange:L,hideToolbar:v,toolbarBottom:N=!1,components:I,renderTextarea:A}=n,R=je(n,X4),W=s.map(be=>i?i(be,!1):be).filter(Boolean),H=u.map(be=>i?i(be,!0):be).filter(Boolean),[B,_]=q.useReducer(l4,{markdown:o,preview:h,components:I,height:c,minHeight:k,highlightEnable:f,tabSize:O,defaultTabEnable:M,scrollTop:0,scrollTopPreview:0,commands:W,extraCommands:H,fullscreen:b,barPopup:{}}),V=q.useRef(null),J=q.useRef(null),F=q.useRef(d);q.useImperativeHandle(t,()=>U({},B,{container:V.current,dispatch:_})),q.useMemo(()=>F.current=d,[d]),q.useEffect(()=>{var be={};V.current&&(be.container=V.current||void 0),be.markdown=o||"",be.barPopup={},_&&_(U({},B,be))},[]);var de=[a,"wmde-markdown-var",l?r+"-"+l:null,r,B.preview?r+"-show-"+B.preview:null,B.fullscreen?r+"-fullscreen":null].filter(Boolean).join(" ").trim();q.useMemo(()=>o!==B.markdown&&_({markdown:o||""}),[o,B.markdown]),q.useMemo(()=>h!==B.preview&&_({preview:h}),[h]),q.useMemo(()=>O!==B.tabSize&&_({tabSize:O}),[O]),q.useMemo(()=>f!==B.highlightEnable&&_({highlightEnable:f}),[f]),q.useMemo(()=>T!==B.autoFocus&&_({autoFocus:T}),[T]),q.useMemo(()=>S!==B.autoFocusEnd&&_({autoFocusEnd:S}),[S]),q.useMemo(()=>b!==B.fullscreen&&_({fullscreen:b}),[b]),q.useMemo(()=>c!==B.height&&_({height:c}),[c]),q.useMemo(()=>c!==B.height&&L&&L(B.height,c,B),[c,L,B]),q.useMemo(()=>s!==B.commands&&_({commands:W}),[e.commands]),q.useMemo(()=>u!==B.extraCommands&&_({extraCommands:H}),[e.extraCommands]);var Z=q.useRef(),Y=q.useRef("preview"),te=q.useRef(!1);q.useMemo(()=>{Z.current=B.textareaWarp,B.textareaWarp&&(B.textareaWarp.addEventListener("mouseover",()=>{Y.current="text"}),B.textareaWarp.addEventListener("mouseleave",()=>{Y.current="preview"}))},[B.textareaWarp]);var X=(be,le)=>{if(F.current){var Pe=Z.current,Te=J.current?J.current:void 0;if(te.current||(Y.current=le,te.current=!0),Pe&&Te){var ze=(Pe.scrollHeight-Pe.offsetHeight)/(Te.scrollHeight-Te.offsetHeight);be.target===Pe&&Y.current==="text"&&(Te.scrollTop=Pe.scrollTop/ze),be.target===Te&&Y.current==="preview"&&(Pe.scrollTop=Te.scrollTop*ze);var we=0;Y.current==="text"?we=Pe.scrollTop||0:Y.current==="preview"&&(we=Te.scrollTop||0),_({scrollTop:we})}}},re=r+"-preview "+(x.className||""),Q=be=>X(be,"preview"),G=q.useMemo(()=>p.jsx("div",{ref:J,className:re,children:p.jsx(ey,U({},x,{onScroll:Q,source:B.markdown||""}))}),[re,x,B.markdown]),se=I?.preview&&I?.preview(B.markdown||"",B,_);se&&q.isValidElement(se)&&(G=p.jsx("div",{className:re,ref:J,onScroll:Q,children:se}));var ee=U({},R.style,{height:B.height||"100%"}),ne=()=>_({barPopup:U({},Z4(B.barPopup))}),xe=be=>_({height:be}),pe=be=>{if($&&$(be.target.value,be,B),C&&C.onChange&&C.onChange(be),B.textarea&&B.textarea instanceof HTMLTextAreaElement&&P){var le=new wp(B.textarea),Pe=le.getState()||{};P(U({},Pe,{lineCount:be.target.value.split(`
92
- `).length,length:be.target.value.length}))}};return p.jsx(Bo.Provider,{value:U({},B,{dispatch:_}),children:p.jsxs("div",U({ref:V,className:de},R,{onClick:ne,style:ee,children:[p.jsx(Ih,{hideToolbar:v,toolbarBottom:N,prefixCls:r,overflow:g,placement:"top"}),p.jsxs("div",{className:r+"-content",children:[/(edit|live)/.test(B.preview||"")&&p.jsx(G4,U({className:r+"-input",prefixCls:r,autoFocus:T},C,{onChange:pe,renderTextarea:I?.textarea||A,onScroll:be=>X(be,"text")})),/(live|preview)/.test(B.preview||"")&&G]}),m&&!B.fullscreen&&p.jsx(Q4,{prefixCls:r,height:B.height,maxHeight:E,minHeight:k,onChange:xe}),p.jsx(Ih,{hideToolbar:v,toolbarBottom:N,prefixCls:r,overflow:g,placement:"bottom"})]}))})}),ly=J4;ly.Markdown=ey;let Ia=class extends Error{constructor(t){super(t),this.name="ShikiError"}},_p=class extends Error{constructor(t){super(t),this.name="ShikiError"}};function eP(){return 2147483648}function tP(){return typeof performance<"u"?performance.now():Date.now()}const nP=(e,t)=>e+(t-e%t)%t;async function rP(e){let t,n;const r={};function a(f){n=f,r.HEAPU8=new Uint8Array(f),r.HEAPU32=new Uint32Array(f)}function o(f,h,b){r.HEAPU8.copyWithin(f,h,h+b)}function s(f){try{return t.grow(f-n.byteLength+65535>>>16),a(t.buffer),1}catch{}}function i(f){const h=r.HEAPU8.length;f=f>>>0;const b=eP();if(f>b)return!1;for(let g=1;g<=4;g*=2){let x=h*(1+.2/g);x=Math.min(x,f+100663296);const C=Math.min(b,nP(Math.max(f,x),65536));if(s(C))return!0}return!1}const l=typeof TextDecoder<"u"?new TextDecoder("utf8"):void 0;function u(f,h,b=1024){const g=h+b;let x=h;for(;f[x]&&!(x>=g);)++x;if(x-h>16&&f.buffer&&l)return l.decode(f.subarray(h,x));let C="";for(;h<x;){let E=f[h++];if(!(E&128)){C+=String.fromCharCode(E);continue}const k=f[h++]&63;if((E&224)===192){C+=String.fromCharCode((E&31)<<6|k);continue}const T=f[h++]&63;if((E&240)===224?E=(E&15)<<12|k<<6|T:E=(E&7)<<18|k<<12|T<<6|f[h++]&63,E<65536)C+=String.fromCharCode(E);else{const S=E-65536;C+=String.fromCharCode(55296|S>>10,56320|S&1023)}}return C}function c(f,h){return f?u(r.HEAPU8,f,h):""}const d={emscripten_get_now:tP,emscripten_memcpy_big:o,emscripten_resize_heap:i,fd_write:()=>0};async function m(){const h=await e({env:d,wasi_snapshot_preview1:d});t=h.memory,a(t.buffer),Object.assign(r,h),r.UTF8ToString=c}return await m(),r}var aP=Object.defineProperty,oP=(e,t,n)=>t in e?aP(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Wt=(e,t,n)=>(oP(e,typeof t!="symbol"?t+"":t,n),n);let Xt=null;function sP(e){throw new _p(e.UTF8ToString(e.getLastOnigError()))}class vu{constructor(t){Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16Value"),Wt(this,"utf8Value"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16");const n=t.length,r=vu._utf8ByteLength(t),a=r!==n,o=a?new Uint32Array(n+1):null;a&&(o[n]=r);const s=a?new Uint32Array(r+1):null;a&&(s[r]=n);const i=new Uint8Array(r);let l=0;for(let u=0;u<n;u++){const c=t.charCodeAt(u);let d=c,m=!1;if(c>=55296&&c<=56319&&u+1<n){const f=t.charCodeAt(u+1);f>=56320&&f<=57343&&(d=(c-55296<<10)+65536|f-56320,m=!0)}a&&(o[u]=l,m&&(o[u+1]=l),d<=127?s[l+0]=u:d<=2047?(s[l+0]=u,s[l+1]=u):d<=65535?(s[l+0]=u,s[l+1]=u,s[l+2]=u):(s[l+0]=u,s[l+1]=u,s[l+2]=u,s[l+3]=u)),d<=127?i[l++]=d:d<=2047?(i[l++]=192|(d&1984)>>>6,i[l++]=128|(d&63)>>>0):d<=65535?(i[l++]=224|(d&61440)>>>12,i[l++]=128|(d&4032)>>>6,i[l++]=128|(d&63)>>>0):(i[l++]=240|(d&1835008)>>>18,i[l++]=128|(d&258048)>>>12,i[l++]=128|(d&4032)>>>6,i[l++]=128|(d&63)>>>0),m&&u++}this.utf16Length=n,this.utf8Length=r,this.utf16Value=t,this.utf8Value=i,this.utf16OffsetToUtf8=o,this.utf8OffsetToUtf16=s}static _utf8ByteLength(t){let n=0;for(let r=0,a=t.length;r<a;r++){const o=t.charCodeAt(r);let s=o,i=!1;if(o>=55296&&o<=56319&&r+1<a){const l=t.charCodeAt(r+1);l>=56320&&l<=57343&&(s=(o-55296<<10)+65536|l-56320,i=!0)}s<=127?n+=1:s<=2047?n+=2:s<=65535?n+=3:n+=4,i&&r++}return n}createString(t){const n=t.omalloc(this.utf8Length);return t.HEAPU8.set(this.utf8Value,n),n}}const dr=class{constructor(e){if(Wt(this,"id",++dr.LAST_ID),Wt(this,"_onigBinding"),Wt(this,"content"),Wt(this,"utf16Length"),Wt(this,"utf8Length"),Wt(this,"utf16OffsetToUtf8"),Wt(this,"utf8OffsetToUtf16"),Wt(this,"ptr"),!Xt)throw new _p("Must invoke loadWasm first.");this._onigBinding=Xt,this.content=e;const t=new vu(e);this.utf16Length=t.utf16Length,this.utf8Length=t.utf8Length,this.utf16OffsetToUtf8=t.utf16OffsetToUtf8,this.utf8OffsetToUtf16=t.utf8OffsetToUtf16,this.utf8Length<1e4&&!dr._sharedPtrInUse?(dr._sharedPtr||(dr._sharedPtr=Xt.omalloc(1e4)),dr._sharedPtrInUse=!0,Xt.HEAPU8.set(t.utf8Value,dr._sharedPtr),this.ptr=dr._sharedPtr):this.ptr=t.createString(Xt)}convertUtf8OffsetToUtf16(e){return this.utf8OffsetToUtf16?e<0?0:e>this.utf8Length?this.utf16Length:this.utf8OffsetToUtf16[e]:e}convertUtf16OffsetToUtf8(e){return this.utf16OffsetToUtf8?e<0?0:e>this.utf16Length?this.utf8Length:this.utf16OffsetToUtf8[e]:e}dispose(){this.ptr===dr._sharedPtr?dr._sharedPtrInUse=!1:this._onigBinding.ofree(this.ptr)}};let hi=dr;Wt(hi,"LAST_ID",0);Wt(hi,"_sharedPtr",0);Wt(hi,"_sharedPtrInUse",!1);class iP{constructor(t){if(Wt(this,"_onigBinding"),Wt(this,"_ptr"),!Xt)throw new _p("Must invoke loadWasm first.");const n=[],r=[];for(let i=0,l=t.length;i<l;i++){const u=new vu(t[i]);n[i]=u.createString(Xt),r[i]=u.utf8Length}const a=Xt.omalloc(4*t.length);Xt.HEAPU32.set(n,a/4);const o=Xt.omalloc(4*t.length);Xt.HEAPU32.set(r,o/4);const s=Xt.createOnigScanner(a,o,t.length);for(let i=0,l=t.length;i<l;i++)Xt.ofree(n[i]);Xt.ofree(o),Xt.ofree(a),s===0&&sP(Xt),this._onigBinding=Xt,this._ptr=s}dispose(){this._onigBinding.freeOnigScanner(this._ptr)}findNextMatchSync(t,n,r){let a=0;if(typeof r=="number"&&(a=r),typeof t=="string"){t=new hi(t);const o=this._findNextMatchSync(t,n,!1,a);return t.dispose(),o}return this._findNextMatchSync(t,n,!1,a)}_findNextMatchSync(t,n,r,a){const o=this._onigBinding,s=o.findNextOnigScannerMatch(this._ptr,t.id,t.ptr,t.utf8Length,t.convertUtf16OffsetToUtf8(n),a);if(s===0)return null;const i=o.HEAPU32;let l=s/4;const u=i[l++],c=i[l++],d=[];for(let m=0;m<c;m++){const f=t.convertUtf8OffsetToUtf16(i[l++]),h=t.convertUtf8OffsetToUtf16(i[l++]);d[m]={start:f,end:h,length:h-f}}return{index:u,captureIndices:d}}}function lP(e){return typeof e.instantiator=="function"}function uP(e){return typeof e.default=="function"}function cP(e){return typeof e.data<"u"}function dP(e){return typeof Response<"u"&&e instanceof Response}function pP(e){return typeof ArrayBuffer<"u"&&(e instanceof ArrayBuffer||ArrayBuffer.isView(e))||typeof Buffer<"u"&&Buffer.isBuffer?.(e)||typeof SharedArrayBuffer<"u"&&e instanceof SharedArrayBuffer||typeof Uint32Array<"u"&&e instanceof Uint32Array}let Li;function fP(e){if(Li)return Li;async function t(){Xt=await rP(async n=>{let r=e;return r=await r,typeof r=="function"&&(r=await r(n)),typeof r=="function"&&(r=await r(n)),lP(r)?r=await r.instantiator(n):uP(r)?r=await r.default(n):(cP(r)&&(r=r.data),dP(r)?typeof WebAssembly.instantiateStreaming=="function"?r=await mP(r)(n):r=await hP(r)(n):pP(r)?r=await Sc(r)(n):r instanceof WebAssembly.Module?r=await Sc(r)(n):"default"in r&&r.default instanceof WebAssembly.Module&&(r=await Sc(r.default)(n))),"instance"in r&&(r=r.instance),"exports"in r&&(r=r.exports),r})}return Li=t(),Li}function Sc(e){return t=>WebAssembly.instantiate(e,t)}function mP(e){return t=>WebAssembly.instantiateStreaming(e,t)}function hP(e){return async t=>{const n=await e.arrayBuffer();return WebAssembly.instantiate(n,t)}}let gP;function bP(){return gP}async function uy(e){return e&&await fP(e),{createScanner(t){return new iP(t.map(n=>typeof n=="string"?n:n.source))},createString(t){return new hi(t)}}}function yP(e){return Ip(e)}function Ip(e){return Array.isArray(e)?xP(e):e instanceof RegExp?e:typeof e=="object"?CP(e):e}function xP(e){let t=[];for(let n=0,r=e.length;n<r;n++)t[n]=Ip(e[n]);return t}function CP(e){let t={};for(let n in e)t[n]=Ip(e[n]);return t}function cy(e,...t){return t.forEach(n=>{for(let r in n)e[r]=n[r]}),e}function dy(e){const t=~e.lastIndexOf("/")||~e.lastIndexOf("\\");return t===0?e:~t===e.length-1?dy(e.substring(0,e.length-1)):e.substr(~t+1)}var wc=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g,Fi=class{static hasCaptures(e){return e===null?!1:(wc.lastIndex=0,wc.test(e))}static replaceCaptures(e,t,n){return e.replace(wc,(r,a,o,s)=>{let i=n[parseInt(a||o,10)];if(i){let l=t.substring(i.start,i.end);for(;l[0]===".";)l=l.substring(1);switch(s){case"downcase":return l.toLowerCase();case"upcase":return l.toUpperCase();default:return l}}else return r})}};function py(e,t){return e<t?-1:e>t?1:0}function fy(e,t){if(e===null&&t===null)return 0;if(!e)return-1;if(!t)return 1;let n=e.length,r=t.length;if(n===r){for(let a=0;a<n;a++){let o=py(e[a],t[a]);if(o!==0)return o}return 0}return n-r}function Ah(e){return!!(/^#[0-9a-f]{6}$/i.test(e)||/^#[0-9a-f]{8}$/i.test(e)||/^#[0-9a-f]{3}$/i.test(e)||/^#[0-9a-f]{4}$/i.test(e))}function my(e){return e.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")}var hy=class{constructor(e){this.fn=e}cache=new Map;get(e){if(this.cache.has(e))return this.cache.get(e);const t=this.fn(e);return this.cache.set(e,t),t}},Pl=class{constructor(e,t,n){this._colorMap=e,this._defaults=t,this._root=n}static createFromRawTheme(e,t){return this.createFromParsedTheme(TP(e),t)}static createFromParsedTheme(e,t){return SP(e,t)}_cachedMatchRoot=new hy(e=>this._root.match(e));getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(e){if(e===null)return this._defaults;const t=e.scopeName,r=this._cachedMatchRoot.get(t).find(a=>EP(e.parent,a.parentScopes));return r?new gy(r.fontStyle,r.foreground,r.background):null}},_c=class nl{constructor(t,n){this.parent=t,this.scopeName=n}static push(t,n){for(const r of n)t=new nl(t,r);return t}static from(...t){let n=null;for(let r=0;r<t.length;r++)n=new nl(n,t[r]);return n}push(t){return new nl(this,t)}getSegments(){let t=this;const n=[];for(;t;)n.push(t.scopeName),t=t.parent;return n.reverse(),n}toString(){return this.getSegments().join(" ")}extends(t){return this===t?!0:this.parent===null?!1:this.parent.extends(t)}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push(r.scopeName),r=r.parent;return r===t?n.reverse():void 0}};function EP(e,t){if(t.length===0)return!0;for(let n=0;n<t.length;n++){let r=t[n],a=!1;if(r===">"){if(n===t.length-1)return!1;r=t[++n],a=!0}for(;e&&!vP(e.scopeName,r);){if(a)return!1;e=e.parent}if(!e)return!1;e=e.parent}return!0}function vP(e,t){return t===e||e.startsWith(t)&&e[t.length]==="."}var gy=class{constructor(e,t,n){this.fontStyle=e,this.foregroundId=t,this.backgroundId=n}};function TP(e){if(!e)return[];if(!e.settings||!Array.isArray(e.settings))return[];let t=e.settings,n=[],r=0;for(let a=0,o=t.length;a<o;a++){let s=t[a];if(!s.settings)continue;let i;if(typeof s.scope=="string"){let d=s.scope;d=d.replace(/^[,]+/,""),d=d.replace(/[,]+$/,""),i=d.split(",")}else Array.isArray(s.scope)?i=s.scope:i=[""];let l=-1;if(typeof s.settings.fontStyle=="string"){l=0;let d=s.settings.fontStyle.split(" ");for(let m=0,f=d.length;m<f;m++)switch(d[m]){case"italic":l=l|1;break;case"bold":l=l|2;break;case"underline":l=l|4;break;case"strikethrough":l=l|8;break}}let u=null;typeof s.settings.foreground=="string"&&Ah(s.settings.foreground)&&(u=s.settings.foreground);let c=null;typeof s.settings.background=="string"&&Ah(s.settings.background)&&(c=s.settings.background);for(let d=0,m=i.length;d<m;d++){let h=i[d].trim().split(" "),b=h[h.length-1],g=null;h.length>1&&(g=h.slice(0,h.length-1),g.reverse()),n[r++]=new kP(b,g,a,l,u,c)}}return n}var kP=class{constructor(e,t,n,r,a,o){this.scope=e,this.parentScopes=t,this.index=n,this.fontStyle=r,this.foreground=a,this.background=o}},Nr=(e=>(e[e.NotSet=-1]="NotSet",e[e.None=0]="None",e[e.Italic=1]="Italic",e[e.Bold=2]="Bold",e[e.Underline=4]="Underline",e[e.Strikethrough=8]="Strikethrough",e))(Nr||{});function SP(e,t){e.sort((l,u)=>{let c=py(l.scope,u.scope);return c!==0||(c=fy(l.parentScopes,u.parentScopes),c!==0)?c:l.index-u.index});let n=0,r="#000000",a="#ffffff";for(;e.length>=1&&e[0].scope==="";){let l=e.shift();l.fontStyle!==-1&&(n=l.fontStyle),l.foreground!==null&&(r=l.foreground),l.background!==null&&(a=l.background)}let o=new wP(t),s=new gy(n,o.getId(r),o.getId(a)),i=new IP(new xd(0,null,-1,0,0),[]);for(let l=0,u=e.length;l<u;l++){let c=e[l];i.insert(0,c.scope,c.parentScopes,c.fontStyle,o.getId(c.foreground),o.getId(c.background))}return new Pl(o,s,i)}var wP=class{_isFrozen;_lastColorId;_id2color;_color2id;constructor(e){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(e)){this._isFrozen=!0;for(let t=0,n=e.length;t<n;t++)this._color2id[e[t]]=t,this._id2color[t]=e[t]}else this._isFrozen=!1}getId(e){if(e===null)return 0;e=e.toUpperCase();let t=this._color2id[e];if(t)return t;if(this._isFrozen)throw new Error(`Missing color in color map - ${e}`);return t=++this._lastColorId,this._color2id[e]=t,this._id2color[t]=e,t}getColorMap(){return this._id2color.slice(0)}},_P=Object.freeze([]),xd=class by{scopeDepth;parentScopes;fontStyle;foreground;background;constructor(t,n,r,a,o){this.scopeDepth=t,this.parentScopes=n||_P,this.fontStyle=r,this.foreground=a,this.background=o}clone(){return new by(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(t){let n=[];for(let r=0,a=t.length;r<a;r++)n[r]=t[r].clone();return n}acceptOverwrite(t,n,r,a){this.scopeDepth>t?console.log("how did this happen?"):this.scopeDepth=t,n!==-1&&(this.fontStyle=n),r!==0&&(this.foreground=r),a!==0&&(this.background=a)}},IP=class Cd{constructor(t,n=[],r={}){this._mainRule=t,this._children=r,this._rulesWithParentScopes=n}_rulesWithParentScopes;static _cmpBySpecificity(t,n){if(t.scopeDepth!==n.scopeDepth)return n.scopeDepth-t.scopeDepth;let r=0,a=0;for(;t.parentScopes[r]===">"&&r++,n.parentScopes[a]===">"&&a++,!(r>=t.parentScopes.length||a>=n.parentScopes.length);){const o=n.parentScopes[a].length-t.parentScopes[r].length;if(o!==0)return o;r++,a++}return n.parentScopes.length-t.parentScopes.length}match(t){if(t!==""){let r=t.indexOf("."),a,o;if(r===-1?(a=t,o=""):(a=t.substring(0,r),o=t.substring(r+1)),this._children.hasOwnProperty(a))return this._children[a].match(o)}const n=this._rulesWithParentScopes.concat(this._mainRule);return n.sort(Cd._cmpBySpecificity),n}insert(t,n,r,a,o,s){if(n===""){this._doInsertHere(t,r,a,o,s);return}let i=n.indexOf("."),l,u;i===-1?(l=n,u=""):(l=n.substring(0,i),u=n.substring(i+1));let c;this._children.hasOwnProperty(l)?c=this._children[l]:(c=new Cd(this._mainRule.clone(),xd.cloneArr(this._rulesWithParentScopes)),this._children[l]=c),c.insert(t+1,u,r,a,o,s)}_doInsertHere(t,n,r,a,o){if(n===null){this._mainRule.acceptOverwrite(t,r,a,o);return}for(let s=0,i=this._rulesWithParentScopes.length;s<i;s++){let l=this._rulesWithParentScopes[s];if(fy(l.parentScopes,n)===0){l.acceptOverwrite(t,r,a,o);return}}r===-1&&(r=this._mainRule.fontStyle),a===0&&(a=this._mainRule.foreground),o===0&&(o=this._mainRule.background),this._rulesWithParentScopes.push(new xd(t,n,r,a,o))}},To=class Fn{static toBinaryStr(t){return t.toString(2).padStart(32,"0")}static print(t){const n=Fn.getLanguageId(t),r=Fn.getTokenType(t),a=Fn.getFontStyle(t),o=Fn.getForeground(t),s=Fn.getBackground(t);console.log({languageId:n,tokenType:r,fontStyle:a,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static containsBalancedBrackets(t){return(t&1024)!==0}static getFontStyle(t){return(t&30720)>>>11}static getForeground(t){return(t&16744448)>>>15}static getBackground(t){return(t&4278190080)>>>24}static set(t,n,r,a,o,s,i){let l=Fn.getLanguageId(t),u=Fn.getTokenType(t),c=Fn.containsBalancedBrackets(t)?1:0,d=Fn.getFontStyle(t),m=Fn.getForeground(t),f=Fn.getBackground(t);return n!==0&&(l=n),r!==8&&(u=r),a!==null&&(c=a?1:0),o!==-1&&(d=o),s!==0&&(m=s),i!==0&&(f=i),(l<<0|u<<8|c<<10|d<<11|m<<15|f<<24)>>>0}};function Rl(e,t){const n=[],r=AP(e);let a=r.next();for(;a!==null;){let l=0;if(a.length===2&&a.charAt(1)===":"){switch(a.charAt(0)){case"R":l=1;break;case"L":l=-1;break;default:console.log(`Unknown priority ${a} in scope selector`)}a=r.next()}let u=s();if(n.push({matcher:u,priority:l}),a!==",")break;a=r.next()}return n;function o(){if(a==="-"){a=r.next();const l=o();return u=>!!l&&!l(u)}if(a==="("){a=r.next();const l=i();return a===")"&&(a=r.next()),l}if(Dh(a)){const l=[];do l.push(a),a=r.next();while(Dh(a));return u=>t(l,u)}return null}function s(){const l=[];let u=o();for(;u;)l.push(u),u=o();return c=>l.every(d=>d(c))}function i(){const l=[];let u=s();for(;u&&(l.push(u),a==="|"||a===",");){do a=r.next();while(a==="|"||a===",");u=s()}return c=>l.some(d=>d(c))}}function Dh(e){return!!e&&!!e.match(/[\w\.:]+/)}function AP(e){let t=/([LR]:|[\w\.:][\w\.:\-]*|[\,\|\-\(\)])/g,n=t.exec(e);return{next:()=>{if(!n)return null;const r=n[0];return n=t.exec(e),r}}}function yy(e){typeof e.dispose=="function"&&e.dispose()}var Ws=class{constructor(e){this.scopeName=e}toKey(){return this.scopeName}},DP=class{constructor(e,t){this.scopeName=e,this.ruleName=t}toKey(){return`${this.scopeName}#${this.ruleName}`}},PP=class{_references=[];_seenReferenceKeys=new Set;get references(){return this._references}visitedRule=new Set;add(e){const t=e.toKey();this._seenReferenceKeys.has(t)||(this._seenReferenceKeys.add(t),this._references.push(e))}},RP=class{constructor(e,t){this.repo=e,this.initialScopeName=t,this.seenFullScopeRequests.add(this.initialScopeName),this.Q=[new Ws(this.initialScopeName)]}seenFullScopeRequests=new Set;seenPartialScopeRequests=new Set;Q;processQueue(){const e=this.Q;this.Q=[];const t=new PP;for(const n of e)MP(n,this.initialScopeName,this.repo,t);for(const n of t.references)if(n instanceof Ws){if(this.seenFullScopeRequests.has(n.scopeName))continue;this.seenFullScopeRequests.add(n.scopeName),this.Q.push(n)}else{if(this.seenFullScopeRequests.has(n.scopeName)||this.seenPartialScopeRequests.has(n.toKey()))continue;this.seenPartialScopeRequests.add(n.toKey()),this.Q.push(n)}}};function MP(e,t,n,r){const a=n.lookup(e.scopeName);if(!a){if(e.scopeName===t)throw new Error(`No grammar provided for <${t}>`);return}const o=n.lookup(t);e instanceof Ws?rl({baseGrammar:o,selfGrammar:a},r):Ed(e.ruleName,{baseGrammar:o,selfGrammar:a,repository:a.repository},r);const s=n.injections(e.scopeName);if(s)for(const i of s)r.add(new Ws(i))}function Ed(e,t,n){if(t.repository&&t.repository[e]){const r=t.repository[e];Ml([r],t,n)}}function rl(e,t){e.selfGrammar.patterns&&Array.isArray(e.selfGrammar.patterns)&&Ml(e.selfGrammar.patterns,{...e,repository:e.selfGrammar.repository},t),e.selfGrammar.injections&&Ml(Object.values(e.selfGrammar.injections),{...e,repository:e.selfGrammar.repository},t)}function Ml(e,t,n){for(const r of e){if(n.visitedRule.has(r))continue;n.visitedRule.add(r);const a=r.repository?cy({},t.repository,r.repository):t.repository;Array.isArray(r.patterns)&&Ml(r.patterns,{...t,repository:a},n);const o=r.include;if(!o)continue;const s=xy(o);switch(s.kind){case 0:rl({...t,selfGrammar:t.baseGrammar},n);break;case 1:rl(t,n);break;case 2:Ed(s.ruleName,{...t,repository:a},n);break;case 3:case 4:const i=s.scopeName===t.selfGrammar.scopeName?t.selfGrammar:s.scopeName===t.baseGrammar.scopeName?t.baseGrammar:void 0;if(i){const l={baseGrammar:t.baseGrammar,selfGrammar:i,repository:a};s.kind===4?Ed(s.ruleName,l,n):rl(l,n)}else s.kind===4?n.add(new DP(s.scopeName,s.ruleName)):n.add(new Ws(s.scopeName));break}}}var NP=class{kind=0},OP=class{kind=1},LP=class{constructor(e){this.ruleName=e}kind=2},FP=class{constructor(e){this.scopeName=e}kind=3},$P=class{constructor(e,t){this.scopeName=e,this.ruleName=t}kind=4};function xy(e){if(e==="$base")return new NP;if(e==="$self")return new OP;const t=e.indexOf("#");if(t===-1)return new FP(e);if(t===0)return new LP(e.substring(1));{const n=e.substring(0,t),r=e.substring(t+1);return new $P(n,r)}}var BP=/\\(\d+)/,Ph=/\\(\d+)/g,jP=-1,Cy=-2;var gi=class{$location;id;_nameIsCapturing;_name;_contentNameIsCapturing;_contentName;constructor(e,t,n,r){this.$location=e,this.id=t,this._name=n||null,this._nameIsCapturing=Fi.hasCaptures(this._name),this._contentName=r||null,this._contentNameIsCapturing=Fi.hasCaptures(this._contentName)}get debugName(){const e=this.$location?`${dy(this.$location.filename)}:${this.$location.line}`:"unknown";return`${this.constructor.name}#${this.id} @ ${e}`}getName(e,t){return!this._nameIsCapturing||this._name===null||e===null||t===null?this._name:Fi.replaceCaptures(this._name,e,t)}getContentName(e,t){return!this._contentNameIsCapturing||this._contentName===null?this._contentName:Fi.replaceCaptures(this._contentName,e,t)}},HP=class extends gi{retokenizeCapturedWithRuleId;constructor(e,t,n,r,a){super(e,t,n,r),this.retokenizeCapturedWithRuleId=a}dispose(){}collectPatterns(e,t){throw new Error("Not supported!")}compile(e,t){throw new Error("Not supported!")}compileAG(e,t,n,r){throw new Error("Not supported!")}},UP=class extends gi{_match;captures;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,null),this._match=new qs(r,this.id),this.captures=a,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugMatchRegExp(){return`${this._match.source}`}collectPatterns(e,t){t.push(this._match)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ys,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},Rh=class extends gi{hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a){super(e,t,n,r),this.patterns=a.patterns,this.hasMissingPatterns=a.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}collectPatterns(e,t){for(const n of this.patterns)e.getRule(n).collectPatterns(e,t)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){return this._cachedCompiledPatterns||(this._cachedCompiledPatterns=new Ys,this.collectPatterns(e,this._cachedCompiledPatterns)),this._cachedCompiledPatterns}},vd=class extends gi{_begin;beginCaptures;_end;endHasBackReferences;endCaptures;applyEndPatternLast;hasMissingPatterns;patterns;_cachedCompiledPatterns;constructor(e,t,n,r,a,o,s,i,l,u){super(e,t,n,r),this._begin=new qs(a,this.id),this.beginCaptures=o,this._end=new qs(s||"￿",-1),this.endHasBackReferences=this._end.hasBackReferences,this.endCaptures=i,this.applyEndPatternLast=l||!1,this.patterns=u.patterns,this.hasMissingPatterns=u.hasMissingPatterns,this._cachedCompiledPatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugEndRegExp(){return`${this._end.source}`}getEndWithResolvedBackReferences(e,t){return this._end.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e,t).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e,t).compileAG(e,n,r)}_getCachedCompiledPatterns(e,t){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ys;for(const n of this.patterns)e.getRule(n).collectPatterns(e,this._cachedCompiledPatterns);this.applyEndPatternLast?this._cachedCompiledPatterns.push(this._end.hasBackReferences?this._end.clone():this._end):this._cachedCompiledPatterns.unshift(this._end.hasBackReferences?this._end.clone():this._end)}return this._end.hasBackReferences&&(this.applyEndPatternLast?this._cachedCompiledPatterns.setSource(this._cachedCompiledPatterns.length()-1,t):this._cachedCompiledPatterns.setSource(0,t)),this._cachedCompiledPatterns}},Nl=class extends gi{_begin;beginCaptures;whileCaptures;_while;whileHasBackReferences;hasMissingPatterns;patterns;_cachedCompiledPatterns;_cachedCompiledWhilePatterns;constructor(e,t,n,r,a,o,s,i,l){super(e,t,n,r),this._begin=new qs(a,this.id),this.beginCaptures=o,this.whileCaptures=i,this._while=new qs(s,Cy),this.whileHasBackReferences=this._while.hasBackReferences,this.patterns=l.patterns,this.hasMissingPatterns=l.hasMissingPatterns,this._cachedCompiledPatterns=null,this._cachedCompiledWhilePatterns=null}dispose(){this._cachedCompiledPatterns&&(this._cachedCompiledPatterns.dispose(),this._cachedCompiledPatterns=null),this._cachedCompiledWhilePatterns&&(this._cachedCompiledWhilePatterns.dispose(),this._cachedCompiledWhilePatterns=null)}get debugBeginRegExp(){return`${this._begin.source}`}get debugWhileRegExp(){return`${this._while.source}`}getWhileWithResolvedBackReferences(e,t){return this._while.resolveBackReferences(e,t)}collectPatterns(e,t){t.push(this._begin)}compile(e,t){return this._getCachedCompiledPatterns(e).compile(e)}compileAG(e,t,n,r){return this._getCachedCompiledPatterns(e).compileAG(e,n,r)}_getCachedCompiledPatterns(e){if(!this._cachedCompiledPatterns){this._cachedCompiledPatterns=new Ys;for(const t of this.patterns)e.getRule(t).collectPatterns(e,this._cachedCompiledPatterns)}return this._cachedCompiledPatterns}compileWhile(e,t){return this._getCachedCompiledWhilePatterns(e,t).compile(e)}compileWhileAG(e,t,n,r){return this._getCachedCompiledWhilePatterns(e,t).compileAG(e,n,r)}_getCachedCompiledWhilePatterns(e,t){return this._cachedCompiledWhilePatterns||(this._cachedCompiledWhilePatterns=new Ys,this._cachedCompiledWhilePatterns.push(this._while.hasBackReferences?this._while.clone():this._while)),this._while.hasBackReferences&&this._cachedCompiledWhilePatterns.setSource(0,t||"￿"),this._cachedCompiledWhilePatterns}},Ey=class an{static createCaptureRule(t,n,r,a,o){return t.registerRule(s=>new HP(n,s,r,a,o))}static getCompiledRuleId(t,n,r){return t.id||n.registerRule(a=>{if(t.id=a,t.match)return new UP(t.$vscodeTextmateLocation,t.id,t.name,t.match,an._compileCaptures(t.captures,n,r));if(typeof t.begin>"u"){t.repository&&(r=cy({},r,t.repository));let o=t.patterns;return typeof o>"u"&&t.include&&(o=[{include:t.include}]),new Rh(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,an._compilePatterns(o,n,r))}return t.while?new Nl(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,an._compileCaptures(t.beginCaptures||t.captures,n,r),t.while,an._compileCaptures(t.whileCaptures||t.captures,n,r),an._compilePatterns(t.patterns,n,r)):new vd(t.$vscodeTextmateLocation,t.id,t.name,t.contentName,t.begin,an._compileCaptures(t.beginCaptures||t.captures,n,r),t.end,an._compileCaptures(t.endCaptures||t.captures,n,r),t.applyEndPatternLast,an._compilePatterns(t.patterns,n,r))}),t.id}static _compileCaptures(t,n,r){let a=[];if(t){let o=0;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const i=parseInt(s,10);i>o&&(o=i)}for(let s=0;s<=o;s++)a[s]=null;for(const s in t){if(s==="$vscodeTextmateLocation")continue;const i=parseInt(s,10);let l=0;t[s].patterns&&(l=an.getCompiledRuleId(t[s],n,r)),a[i]=an.createCaptureRule(n,t[s].$vscodeTextmateLocation,t[s].name,t[s].contentName,l)}}return a}static _compilePatterns(t,n,r){let a=[];if(t)for(let o=0,s=t.length;o<s;o++){const i=t[o];let l=-1;if(i.include){const u=xy(i.include);switch(u.kind){case 0:case 1:l=an.getCompiledRuleId(r[i.include],n,r);break;case 2:let c=r[u.ruleName];c&&(l=an.getCompiledRuleId(c,n,r));break;case 3:case 4:const d=u.scopeName,m=u.kind===4?u.ruleName:null,f=n.getExternalGrammar(d,r);if(f)if(m){let h=f.repository[m];h&&(l=an.getCompiledRuleId(h,n,f.repository))}else l=an.getCompiledRuleId(f.repository.$self,n,f.repository);break}}else l=an.getCompiledRuleId(i,n,r);if(l!==-1){const u=n.getRule(l);let c=!1;if((u instanceof Rh||u instanceof vd||u instanceof Nl)&&u.hasMissingPatterns&&u.patterns.length===0&&(c=!0),c)continue;a.push(l)}}return{patterns:a,hasMissingPatterns:(t?t.length:0)!==a.length}}},qs=class vy{source;ruleId;hasAnchor;hasBackReferences;_anchorCache;constructor(t,n){if(t&&typeof t=="string"){const r=t.length;let a=0,o=[],s=!1;for(let i=0;i<r;i++)if(t.charAt(i)==="\\"&&i+1<r){const u=t.charAt(i+1);u==="z"?(o.push(t.substring(a,i)),o.push("$(?!\\n)(?<!\\n)"),a=i+2):(u==="A"||u==="G")&&(s=!0),i++}this.hasAnchor=s,a===0?this.source=t:(o.push(t.substring(a,r)),this.source=o.join(""))}else this.hasAnchor=!1,this.source=t;this.hasAnchor?this._anchorCache=this._buildAnchorCache():this._anchorCache=null,this.ruleId=n,typeof this.source=="string"?this.hasBackReferences=BP.test(this.source):this.hasBackReferences=!1}clone(){return new vy(this.source,this.ruleId)}setSource(t){this.source!==t&&(this.source=t,this.hasAnchor&&(this._anchorCache=this._buildAnchorCache()))}resolveBackReferences(t,n){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let r=n.map(a=>t.substring(a.start,a.end));return Ph.lastIndex=0,this.source.replace(Ph,(a,o)=>my(r[parseInt(o,10)]||""))}_buildAnchorCache(){if(typeof this.source!="string")throw new Error("This method should only be called if the source is a string");let t=[],n=[],r=[],a=[],o,s,i,l;for(o=0,s=this.source.length;o<s;o++)i=this.source.charAt(o),t[o]=i,n[o]=i,r[o]=i,a[o]=i,i==="\\"&&o+1<s&&(l=this.source.charAt(o+1),l==="A"?(t[o+1]="￿",n[o+1]="￿",r[o+1]="A",a[o+1]="A"):l==="G"?(t[o+1]="￿",n[o+1]="G",r[o+1]="￿",a[o+1]="G"):(t[o+1]=l,n[o+1]=l,r[o+1]=l,a[o+1]=l),o++);return{A0_G0:t.join(""),A0_G1:n.join(""),A1_G0:r.join(""),A1_G1:a.join("")}}resolveAnchors(t,n){return!this.hasAnchor||!this._anchorCache||typeof this.source!="string"?this.source:t?n?this._anchorCache.A1_G1:this._anchorCache.A1_G0:n?this._anchorCache.A0_G1:this._anchorCache.A0_G0}},Ys=class{_items;_hasAnchors;_cached;_anchorCache;constructor(){this._items=[],this._hasAnchors=!1,this._cached=null,this._anchorCache={A0_G0:null,A0_G1:null,A1_G0:null,A1_G1:null}}dispose(){this._disposeCaches()}_disposeCaches(){this._cached&&(this._cached.dispose(),this._cached=null),this._anchorCache.A0_G0&&(this._anchorCache.A0_G0.dispose(),this._anchorCache.A0_G0=null),this._anchorCache.A0_G1&&(this._anchorCache.A0_G1.dispose(),this._anchorCache.A0_G1=null),this._anchorCache.A1_G0&&(this._anchorCache.A1_G0.dispose(),this._anchorCache.A1_G0=null),this._anchorCache.A1_G1&&(this._anchorCache.A1_G1.dispose(),this._anchorCache.A1_G1=null)}push(e){this._items.push(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}unshift(e){this._items.unshift(e),this._hasAnchors=this._hasAnchors||e.hasAnchor}length(){return this._items.length}setSource(e,t){this._items[e].source!==t&&(this._disposeCaches(),this._items[e].setSource(t))}compile(e){if(!this._cached){let t=this._items.map(n=>n.source);this._cached=new Mh(e,t,this._items.map(n=>n.ruleId))}return this._cached}compileAG(e,t,n){return this._hasAnchors?t?n?(this._anchorCache.A1_G1||(this._anchorCache.A1_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G1):(this._anchorCache.A1_G0||(this._anchorCache.A1_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A1_G0):n?(this._anchorCache.A0_G1||(this._anchorCache.A0_G1=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G1):(this._anchorCache.A0_G0||(this._anchorCache.A0_G0=this._resolveAnchors(e,t,n)),this._anchorCache.A0_G0):this.compile(e)}_resolveAnchors(e,t,n){let r=this._items.map(a=>a.resolveAnchors(t,n));return new Mh(e,r,this._items.map(a=>a.ruleId))}},Mh=class{constructor(e,t,n){this.regExps=t,this.rules=n,this.scanner=e.createOnigScanner(t)}scanner;dispose(){typeof this.scanner.dispose=="function"&&this.scanner.dispose()}toString(){const e=[];for(let t=0,n=this.rules.length;t<n;t++)e.push(" - "+this.rules[t]+": "+this.regExps[t]);return e.join(`
93
- `)}findNextMatchSync(e,t,n){const r=this.scanner.findNextMatchSync(e,t,n);return r?{ruleId:this.rules[r.index],captureIndices:r.captureIndices}:null}},Ic=class{constructor(e,t){this.languageId=e,this.tokenType=t}},zP=class Td{_defaultAttributes;_embeddedLanguagesMatcher;constructor(t,n){this._defaultAttributes=new Ic(t,8),this._embeddedLanguagesMatcher=new VP(Object.entries(n||{}))}getDefaultAttributes(){return this._defaultAttributes}getBasicScopeAttributes(t){return t===null?Td._NULL_SCOPE_METADATA:this._getBasicScopeAttributes.get(t)}static _NULL_SCOPE_METADATA=new Ic(0,0);_getBasicScopeAttributes=new hy(t=>{const n=this._scopeToLanguage(t),r=this._toStandardTokenType(t);return new Ic(n,r)});_scopeToLanguage(t){return this._embeddedLanguagesMatcher.match(t)||0}_toStandardTokenType(t){const n=t.match(Td.STANDARD_TOKEN_TYPE_REGEXP);if(!n)return 8;switch(n[1]){case"comment":return 1;case"string":return 2;case"regex":return 3;case"meta.embedded":return 0}throw new Error("Unexpected match for standard token type!")}static STANDARD_TOKEN_TYPE_REGEXP=/\b(comment|string|regex|meta\.embedded)\b/},VP=class{values;scopesRegExp;constructor(e){if(e.length===0)this.values=null,this.scopesRegExp=null;else{this.values=new Map(e);const t=e.map(([n,r])=>my(n));t.sort(),t.reverse(),this.scopesRegExp=new RegExp(`^((${t.join(")|(")}))($|\\.)`,"")}}match(e){if(!this.scopesRegExp)return;const t=e.match(this.scopesRegExp);if(t)return this.values.get(t[1])}};typeof process<"u"&&process.env.VSCODE_TEXTMATE_DEBUG;var Nh=class{constructor(e,t){this.stack=e,this.stoppedEarly=t}};function Ty(e,t,n,r,a,o,s,i){const l=t.content.length;let u=!1,c=-1;if(s){const f=WP(e,t,n,r,a,o);a=f.stack,r=f.linePos,n=f.isFirstLine,c=f.anchorPosition}const d=Date.now();for(;!u;){if(i!==0&&Date.now()-d>i)return new Nh(a,!0);m()}return new Nh(a,!1);function m(){const f=qP(e,t,n,r,a,c);if(!f){o.produce(a,l),u=!0;return}const h=f.captureIndices,b=f.matchedRuleId,g=h&&h.length>0?h[0].end>r:!1;if(b===jP){const x=a.getRule(e);o.produce(a,h[0].start),a=a.withContentNameScopesList(a.nameScopesList),xs(e,t,n,a,o,x.endCaptures,h),o.produce(a,h[0].end);const C=a;if(a=a.parent,c=C.getAnchorPos(),!g&&C.getEnterPos()===r){a=C,o.produce(a,l),u=!0;return}}else{const x=e.getRule(b);o.produce(a,h[0].start);const C=a,E=x.getName(t.content,h),k=a.contentNameScopesList.pushAttributed(E,e);if(a=a.push(b,r,c,h[0].end===l,null,k,k),x instanceof vd){const T=x;xs(e,t,n,a,o,T.beginCaptures,h),o.produce(a,h[0].end),c=h[0].end;const S=T.getContentName(t.content,h),O=k.pushAttributed(S,e);if(a=a.withContentNameScopesList(O),T.endHasBackReferences&&(a=a.withEndRule(T.getEndWithResolvedBackReferences(t.content,h))),!g&&C.hasSameRuleAs(a)){a=a.pop(),o.produce(a,l),u=!0;return}}else if(x instanceof Nl){const T=x;xs(e,t,n,a,o,T.beginCaptures,h),o.produce(a,h[0].end),c=h[0].end;const S=T.getContentName(t.content,h),O=k.pushAttributed(S,e);if(a=a.withContentNameScopesList(O),T.whileHasBackReferences&&(a=a.withEndRule(T.getWhileWithResolvedBackReferences(t.content,h))),!g&&C.hasSameRuleAs(a)){a=a.pop(),o.produce(a,l),u=!0;return}}else if(xs(e,t,n,a,o,x.captures,h),o.produce(a,h[0].end),a=a.pop(),!g){a=a.safePop(),o.produce(a,l),u=!0;return}}h[0].end>r&&(r=h[0].end,n=!1)}}function WP(e,t,n,r,a,o){let s=a.beginRuleCapturedEOL?0:-1;const i=[];for(let l=a;l;l=l.pop()){const u=l.getRule(e);u instanceof Nl&&i.push({rule:u,stack:l})}for(let l=i.pop();l;l=i.pop()){const{ruleScanner:u,findOptions:c}=KP(l.rule,e,l.stack.endRule,n,r===s),d=u.findNextMatchSync(t,r,c);if(d){if(d.ruleId!==Cy){a=l.stack.pop();break}d.captureIndices&&d.captureIndices.length&&(o.produce(l.stack,d.captureIndices[0].start),xs(e,t,n,l.stack,o,l.rule.whileCaptures,d.captureIndices),o.produce(l.stack,d.captureIndices[0].end),s=d.captureIndices[0].end,d.captureIndices[0].end>r&&(r=d.captureIndices[0].end,n=!1))}else{a=l.stack.pop();break}}return{stack:a,linePos:r,anchorPosition:s,isFirstLine:n}}function qP(e,t,n,r,a,o){const s=YP(e,t,n,r,a,o),i=e.getInjections();if(i.length===0)return s;const l=GP(i,e,t,n,r,a,o);if(!l)return s;if(!s)return l;const u=s.captureIndices[0].start,c=l.captureIndices[0].start;return c<u||l.priorityMatch&&c===u?l:s}function YP(e,t,n,r,a,o){const s=a.getRule(e),{ruleScanner:i,findOptions:l}=ky(s,e,a.endRule,n,r===o),u=i.findNextMatchSync(t,r,l);return u?{captureIndices:u.captureIndices,matchedRuleId:u.ruleId}:null}function GP(e,t,n,r,a,o,s){let i=Number.MAX_VALUE,l=null,u,c=0;const d=o.contentNameScopesList.getScopeNames();for(let m=0,f=e.length;m<f;m++){const h=e[m];if(!h.matcher(d))continue;const b=t.getRule(h.ruleId),{ruleScanner:g,findOptions:x}=ky(b,t,null,r,a===s),C=g.findNextMatchSync(n,a,x);if(!C)continue;const E=C.captureIndices[0].start;if(!(E>=i)&&(i=E,l=C.captureIndices,u=C.ruleId,c=h.priority,i===a))break}return l?{priorityMatch:c===-1,captureIndices:l,matchedRuleId:u}:null}function ky(e,t,n,r,a){return{ruleScanner:e.compileAG(t,n,r,a),findOptions:0}}function KP(e,t,n,r,a){return{ruleScanner:e.compileWhileAG(t,n,r,a),findOptions:0}}function xs(e,t,n,r,a,o,s){if(o.length===0)return;const i=t.content,l=Math.min(o.length,s.length),u=[],c=s[0].end;for(let d=0;d<l;d++){const m=o[d];if(m===null)continue;const f=s[d];if(f.length===0)continue;if(f.start>c)break;for(;u.length>0&&u[u.length-1].endPos<=f.start;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop();if(u.length>0?a.produceFromScopes(u[u.length-1].scopes,f.start):a.produce(r,f.start),m.retokenizeCapturedWithRuleId){const b=m.getName(i,s),g=r.contentNameScopesList.pushAttributed(b,e),x=m.getContentName(i,s),C=g.pushAttributed(x,e),E=r.push(m.retokenizeCapturedWithRuleId,f.start,-1,!1,null,g,C),k=e.createOnigString(i.substring(0,f.end));Ty(e,k,n&&f.start===0,f.start,E,a,!1,0),yy(k);continue}const h=m.getName(i,s);if(h!==null){const g=(u.length>0?u[u.length-1].scopes:r.contentNameScopesList).pushAttributed(h,e);u.push(new QP(g,f.end))}}for(;u.length>0;)a.produceFromScopes(u[u.length-1].scopes,u[u.length-1].endPos),u.pop()}var QP=class{scopes;endPos;constructor(e,t){this.scopes=e,this.endPos=t}};function XP(e,t,n,r,a,o,s,i){return new JP(e,t,n,r,a,o,s,i)}function Oh(e,t,n,r,a){const o=Rl(t,Ol),s=Ey.getCompiledRuleId(n,r,a.repository);for(const i of o)e.push({debugSelector:t,matcher:i.matcher,ruleId:s,grammar:a,priority:i.priority})}function Ol(e,t){if(t.length<e.length)return!1;let n=0;return e.every(r=>{for(let a=n;a<t.length;a++)if(ZP(t[a],r))return n=a+1,!0;return!1})}function ZP(e,t){if(!e)return!1;if(e===t)return!0;const n=t.length;return e.length>n&&e.substr(0,n)===t&&e[n]==="."}var JP=class{constructor(e,t,n,r,a,o,s,i){if(this._rootScopeName=e,this.balancedBracketSelectors=o,this._onigLib=i,this._basicScopeAttributesProvider=new zP(n,r),this._rootId=-1,this._lastRuleId=0,this._ruleId2desc=[null],this._includedGrammars={},this._grammarRepository=s,this._grammar=Lh(t,null),this._injections=null,this._tokenTypeMatchers=[],a)for(const l of Object.keys(a)){const u=Rl(l,Ol);for(const c of u)this._tokenTypeMatchers.push({matcher:c.matcher,type:a[l]})}}_rootId;_lastRuleId;_ruleId2desc;_includedGrammars;_grammarRepository;_grammar;_injections;_basicScopeAttributesProvider;_tokenTypeMatchers;get themeProvider(){return this._grammarRepository}dispose(){for(const e of this._ruleId2desc)e&&e.dispose()}createOnigScanner(e){return this._onigLib.createOnigScanner(e)}createOnigString(e){return this._onigLib.createOnigString(e)}getMetadataForScope(e){return this._basicScopeAttributesProvider.getBasicScopeAttributes(e)}_collectInjections(){const e={lookup:a=>a===this._rootScopeName?this._grammar:this.getExternalGrammar(a),injections:a=>this._grammarRepository.injections(a)},t=[],n=this._rootScopeName,r=e.lookup(n);if(r){const a=r.injections;if(a)for(let s in a)Oh(t,s,a[s],this,r);const o=this._grammarRepository.injections(n);o&&o.forEach(s=>{const i=this.getExternalGrammar(s);if(i){const l=i.injectionSelector;l&&Oh(t,l,i,this,i)}})}return t.sort((a,o)=>a.priority-o.priority),t}getInjections(){return this._injections===null&&(this._injections=this._collectInjections()),this._injections}registerRule(e){const t=++this._lastRuleId,n=e(t);return this._ruleId2desc[t]=n,n}getRule(e){return this._ruleId2desc[e]}getExternalGrammar(e,t){if(this._includedGrammars[e])return this._includedGrammars[e];if(this._grammarRepository){const n=this._grammarRepository.lookup(e);if(n)return this._includedGrammars[e]=Lh(n,t&&t.$base),this._includedGrammars[e]}}tokenizeLine(e,t,n=0){const r=this._tokenize(e,t,!1,n);return{tokens:r.lineTokens.getResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}tokenizeLine2(e,t,n=0){const r=this._tokenize(e,t,!0,n);return{tokens:r.lineTokens.getBinaryResult(r.ruleStack,r.lineLength),ruleStack:r.ruleStack,stoppedEarly:r.stoppedEarly}}_tokenize(e,t,n,r){this._rootId===-1&&(this._rootId=Ey.getCompiledRuleId(this._grammar.repository.$self,this,this._grammar.repository),this.getInjections());let a;if(!t||t===kd.NULL){a=!0;const u=this._basicScopeAttributesProvider.getDefaultAttributes(),c=this.themeProvider.getDefaults(),d=To.set(0,u.languageId,u.tokenType,null,c.fontStyle,c.foregroundId,c.backgroundId),m=this.getRule(this._rootId).getName(null,null);let f;m?f=Rs.createRootAndLookUpScopeName(m,d,this):f=Rs.createRoot("unknown",d),t=new kd(null,this._rootId,-1,-1,!1,null,f,f)}else a=!1,t.reset();e=e+`
94
- `;const o=this.createOnigString(e),s=o.content.length,i=new tR(n,e,this._tokenTypeMatchers,this.balancedBracketSelectors),l=Ty(this,o,a,0,t,i,!0,r);return yy(o),{lineLength:s,lineTokens:i,ruleStack:l.stack,stoppedEarly:l.stoppedEarly}}};function Lh(e,t){return e=yP(e),e.repository=e.repository||{},e.repository.$self={$vscodeTextmateLocation:e.$vscodeTextmateLocation,patterns:e.patterns,name:e.scopeName},e.repository.$base=t||e.repository.$self,e}var Rs=class pr{constructor(t,n,r){this.parent=t,this.scopePath=n,this.tokenAttributes=r}static fromExtension(t,n){let r=t,a=t?.scopePath??null;for(const o of n)a=_c.push(a,o.scopeNames),r=new pr(r,a,o.encodedTokenAttributes);return r}static createRoot(t,n){return new pr(null,new _c(null,t),n)}static createRootAndLookUpScopeName(t,n,r){const a=r.getMetadataForScope(t),o=new _c(null,t),s=r.themeProvider.themeMatch(o),i=pr.mergeAttributes(n,a,s);return new pr(null,o,i)}get scopeName(){return this.scopePath.scopeName}toString(){return this.getScopeNames().join(" ")}equals(t){return pr.equals(this,t)}static equals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.scopeName!==n.scopeName||t.tokenAttributes!==n.tokenAttributes)return!1;t=t.parent,n=n.parent}while(!0)}static mergeAttributes(t,n,r){let a=-1,o=0,s=0;return r!==null&&(a=r.fontStyle,o=r.foregroundId,s=r.backgroundId),To.set(t,n.languageId,n.tokenType,null,a,o,s)}pushAttributed(t,n){if(t===null)return this;if(t.indexOf(" ")===-1)return pr._pushAttributed(this,t,n);const r=t.split(/ /g);let a=this;for(const o of r)a=pr._pushAttributed(a,o,n);return a}static _pushAttributed(t,n,r){const a=r.getMetadataForScope(n),o=t.scopePath.push(n),s=r.themeProvider.themeMatch(o),i=pr.mergeAttributes(t.tokenAttributes,a,s);return new pr(t,o,i)}getScopeNames(){return this.scopePath.getSegments()}getExtensionIfDefined(t){const n=[];let r=this;for(;r&&r!==t;)n.push({encodedTokenAttributes:r.tokenAttributes,scopeNames:r.scopePath.getExtensionIfDefined(r.parent?.scopePath??null)}),r=r.parent;return r===t?n.reverse():void 0}},kd=class ba{constructor(t,n,r,a,o,s,i,l){this.parent=t,this.ruleId=n,this.beginRuleCapturedEOL=o,this.endRule=s,this.nameScopesList=i,this.contentNameScopesList=l,this.depth=this.parent?this.parent.depth+1:1,this._enterPos=r,this._anchorPos=a}_stackElementBrand=void 0;static NULL=new ba(null,0,0,0,!1,null,null,null);_enterPos;_anchorPos;depth;equals(t){return t===null?!1:ba._equals(this,t)}static _equals(t,n){return t===n?!0:this._structuralEquals(t,n)?Rs.equals(t.contentNameScopesList,n.contentNameScopesList):!1}static _structuralEquals(t,n){do{if(t===n||!t&&!n)return!0;if(!t||!n||t.depth!==n.depth||t.ruleId!==n.ruleId||t.endRule!==n.endRule)return!1;t=t.parent,n=n.parent}while(!0)}clone(){return this}static _reset(t){for(;t;)t._enterPos=-1,t._anchorPos=-1,t=t.parent}reset(){ba._reset(this)}pop(){return this.parent}safePop(){return this.parent?this.parent:this}push(t,n,r,a,o,s,i){return new ba(this,t,n,r,a,o,s,i)}getEnterPos(){return this._enterPos}getAnchorPos(){return this._anchorPos}getRule(t){return t.getRule(this.ruleId)}toString(){const t=[];return this._writeString(t,0),"["+t.join(",")+"]"}_writeString(t,n){return this.parent&&(n=this.parent._writeString(t,n)),t[n++]=`(${this.ruleId}, ${this.nameScopesList?.toString()}, ${this.contentNameScopesList?.toString()})`,n}withContentNameScopesList(t){return this.contentNameScopesList===t?this:this.parent.push(this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,this.endRule,this.nameScopesList,t)}withEndRule(t){return this.endRule===t?this:new ba(this.parent,this.ruleId,this._enterPos,this._anchorPos,this.beginRuleCapturedEOL,t,this.nameScopesList,this.contentNameScopesList)}hasSameRuleAs(t){let n=this;for(;n&&n._enterPos===t._enterPos;){if(n.ruleId===t.ruleId)return!0;n=n.parent}return!1}toStateStackFrame(){return{ruleId:this.ruleId,beginRuleCapturedEOL:this.beginRuleCapturedEOL,endRule:this.endRule,nameScopesList:this.nameScopesList?.getExtensionIfDefined(this.parent?.nameScopesList??null)??[],contentNameScopesList:this.contentNameScopesList?.getExtensionIfDefined(this.nameScopesList)??[]}}static pushFrame(t,n){const r=Rs.fromExtension(t?.nameScopesList??null,n.nameScopesList);return new ba(t,n.ruleId,n.enterPos??-1,n.anchorPos??-1,n.beginRuleCapturedEOL,n.endRule,r,Rs.fromExtension(r,n.contentNameScopesList))}},eR=class{balancedBracketScopes;unbalancedBracketScopes;allowAny=!1;constructor(e,t){this.balancedBracketScopes=e.flatMap(n=>n==="*"?(this.allowAny=!0,[]):Rl(n,Ol).map(r=>r.matcher)),this.unbalancedBracketScopes=t.flatMap(n=>Rl(n,Ol).map(r=>r.matcher))}get matchesAlways(){return this.allowAny&&this.unbalancedBracketScopes.length===0}get matchesNever(){return this.balancedBracketScopes.length===0&&!this.allowAny}match(e){for(const t of this.unbalancedBracketScopes)if(t(e))return!1;for(const t of this.balancedBracketScopes)if(t(e))return!0;return this.allowAny}},tR=class{constructor(e,t,n,r){this.balancedBracketSelectors=r,this._emitBinaryTokens=e,this._tokenTypeOverrides=n,this._lineText=null,this._tokens=[],this._binaryTokens=[],this._lastTokenEndIndex=0}_emitBinaryTokens;_lineText;_tokens;_binaryTokens;_lastTokenEndIndex;_tokenTypeOverrides;produce(e,t){this.produceFromScopes(e.contentNameScopesList,t)}produceFromScopes(e,t){if(this._lastTokenEndIndex>=t)return;if(this._emitBinaryTokens){let r=e?.tokenAttributes??0,a=!1;if(this.balancedBracketSelectors?.matchesAlways&&(a=!0),this._tokenTypeOverrides.length>0||this.balancedBracketSelectors&&!this.balancedBracketSelectors.matchesAlways&&!this.balancedBracketSelectors.matchesNever){const o=e?.getScopeNames()??[];for(const s of this._tokenTypeOverrides)s.matcher(o)&&(r=To.set(r,0,s.type,null,-1,0,0));this.balancedBracketSelectors&&(a=this.balancedBracketSelectors.match(o))}if(a&&(r=To.set(r,0,8,a,-1,0,0)),this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-1]===r){this._lastTokenEndIndex=t;return}this._binaryTokens.push(this._lastTokenEndIndex),this._binaryTokens.push(r),this._lastTokenEndIndex=t;return}const n=e?.getScopeNames()??[];this._tokens.push({startIndex:this._lastTokenEndIndex,endIndex:t,scopes:n}),this._lastTokenEndIndex=t}getResult(e,t){return this._tokens.length>0&&this._tokens[this._tokens.length-1].startIndex===t-1&&this._tokens.pop(),this._tokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._tokens[this._tokens.length-1].startIndex=0),this._tokens}getBinaryResult(e,t){this._binaryTokens.length>0&&this._binaryTokens[this._binaryTokens.length-2]===t-1&&(this._binaryTokens.pop(),this._binaryTokens.pop()),this._binaryTokens.length===0&&(this._lastTokenEndIndex=-1,this.produce(e,t),this._binaryTokens[this._binaryTokens.length-2]=0);const n=new Uint32Array(this._binaryTokens.length);for(let r=0,a=this._binaryTokens.length;r<a;r++)n[r]=this._binaryTokens[r];return n}},nR=class{constructor(e,t){this._onigLib=t,this._theme=e}_grammars=new Map;_rawGrammars=new Map;_injectionGrammars=new Map;_theme;dispose(){for(const e of this._grammars.values())e.dispose()}setTheme(e){this._theme=e}getColorMap(){return this._theme.getColorMap()}addGrammar(e,t){this._rawGrammars.set(e.scopeName,e),t&&this._injectionGrammars.set(e.scopeName,t)}lookup(e){return this._rawGrammars.get(e)}injections(e){return this._injectionGrammars.get(e)}getDefaults(){return this._theme.getDefaults()}themeMatch(e){return this._theme.match(e)}grammarForScopeName(e,t,n,r,a){if(!this._grammars.has(e)){let o=this._rawGrammars.get(e);if(!o)return null;this._grammars.set(e,XP(e,o,t,n,r,a,this,this._onigLib))}return this._grammars.get(e)}},rR=class{_options;_syncRegistry;_ensureGrammarCache;constructor(t){this._options=t,this._syncRegistry=new nR(Pl.createFromRawTheme(t.theme,t.colorMap),t.onigLib),this._ensureGrammarCache=new Map}dispose(){this._syncRegistry.dispose()}setTheme(t,n){this._syncRegistry.setTheme(Pl.createFromRawTheme(t,n))}getColorMap(){return this._syncRegistry.getColorMap()}loadGrammarWithEmbeddedLanguages(t,n,r){return this.loadGrammarWithConfiguration(t,n,{embeddedLanguages:r})}loadGrammarWithConfiguration(t,n,r){return this._loadGrammar(t,n,r.embeddedLanguages,r.tokenTypes,new eR(r.balancedBracketSelectors||[],r.unbalancedBracketSelectors||[]))}loadGrammar(t){return this._loadGrammar(t,0,null,null,null)}_loadGrammar(t,n,r,a,o){const s=new RP(this._syncRegistry,t);for(;s.Q.length>0;)s.Q.map(i=>this._loadSingleGrammar(i.scopeName)),s.processQueue();return this._grammarForScopeName(t,n,r,a,o)}_loadSingleGrammar(t){this._ensureGrammarCache.has(t)||(this._doLoadSingleGrammar(t),this._ensureGrammarCache.set(t,!0))}_doLoadSingleGrammar(t){const n=this._options.loadGrammar(t);if(n){const r=typeof this._options.getInjections=="function"?this._options.getInjections(t):void 0;this._syncRegistry.addGrammar(n,r)}}addGrammar(t,n=[],r=0,a=null){return this._syncRegistry.addGrammar(t,n),this._grammarForScopeName(t.scopeName,r,a)}_grammarForScopeName(t,n=0,r=null,a=null,o=null){return this._syncRegistry.grammarForScopeName(t,n,r,a,o)}},Sd=kd.NULL;const aR=/["&'<>`]/g,oR=/[\uD800-\uDBFF][\uDC00-\uDFFF]/g,sR=/[\x01-\t\v\f\x0E-\x1F\x7F\x81\x8D\x8F\x90\x9D\xA0-\uFFFF]/g,iR=/[|\\{}()[\]^$+*?.]/g,Fh=new WeakMap;function lR(e,t){if(e=e.replace(t.subset?uR(t.subset):aR,r),t.subset||t.escapeOnly)return e;return e.replace(oR,n).replace(sR,r);function n(a,o,s){return t.format((a.charCodeAt(0)-55296)*1024+a.charCodeAt(1)-56320+65536,s.charCodeAt(o+2),t)}function r(a,o,s){return t.format(a.charCodeAt(0),s.charCodeAt(o+1),t)}}function uR(e){let t=Fh.get(e);return t||(t=cR(e),Fh.set(e,t)),t}function cR(e){const t=[];let n=-1;for(;++n<e.length;)t.push(e[n].replace(iR,"\\$&"));return new RegExp("(?:"+t.join("|")+")","g")}const dR=/[\dA-Fa-f]/;function pR(e,t,n){const r="&#x"+e.toString(16).toUpperCase();return n&&t&&!dR.test(String.fromCharCode(t))?r:r+";"}const fR=/\d/;function mR(e,t,n){const r="&#"+String(e);return n&&t&&!fR.test(String.fromCharCode(t))?r:r+";"}const hR=["AElig","AMP","Aacute","Acirc","Agrave","Aring","Atilde","Auml","COPY","Ccedil","ETH","Eacute","Ecirc","Egrave","Euml","GT","Iacute","Icirc","Igrave","Iuml","LT","Ntilde","Oacute","Ocirc","Ograve","Oslash","Otilde","Ouml","QUOT","REG","THORN","Uacute","Ucirc","Ugrave","Uuml","Yacute","aacute","acirc","acute","aelig","agrave","amp","aring","atilde","auml","brvbar","ccedil","cedil","cent","copy","curren","deg","divide","eacute","ecirc","egrave","eth","euml","frac12","frac14","frac34","gt","iacute","icirc","iexcl","igrave","iquest","iuml","laquo","lt","macr","micro","middot","nbsp","not","ntilde","oacute","ocirc","ograve","ordf","ordm","oslash","otilde","ouml","para","plusmn","pound","quot","raquo","reg","sect","shy","sup1","sup2","sup3","szlig","thorn","times","uacute","ucirc","ugrave","uml","uuml","yacute","yen","yuml"],Ac={nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",fnof:"ƒ",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",bull:"•",hellip:"…",prime:"′",Prime:"″",oline:"‾",frasl:"⁄",weierp:"℘",image:"ℑ",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦",quot:'"',amp:"&",lt:"<",gt:">",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",circ:"ˆ",tilde:"˜",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",permil:"‰",lsaquo:"‹",rsaquo:"›",euro:"€"},gR=["cent","copy","divide","gt","lt","not","para","times"],Sy={}.hasOwnProperty,wd={};let $i;for($i in Ac)Sy.call(Ac,$i)&&(wd[Ac[$i]]=$i);const bR=/[^\dA-Za-z]/;function yR(e,t,n,r){const a=String.fromCharCode(e);if(Sy.call(wd,a)){const o=wd[a],s="&"+o;return n&&hR.includes(o)&&!gR.includes(o)&&(!r||t&&t!==61&&bR.test(String.fromCharCode(t)))?s:s+";"}return""}function xR(e,t,n){let r=pR(e,t,n.omitOptionalSemicolons),a;if((n.useNamedReferences||n.useShortestReferences)&&(a=yR(e,t,n.omitOptionalSemicolons,n.attribute)),(n.useShortestReferences||!a)&&n.useShortestReferences){const o=mR(e,t,n.omitOptionalSemicolons);o.length<r.length&&(r=o)}return a&&(!n.useShortestReferences||a.length<r.length)?a:r}function ho(e,t){return lR(e,Object.assign({format:xR},t))}const CR=/^>|^->|<!--|-->|--!>|<!-$/g,ER=[">"],vR=["<",">"];function TR(e,t,n,r){return r.settings.bogusComments?"<?"+ho(e.value,Object.assign({},r.settings.characterReferences,{subset:ER}))+">":"<!--"+e.value.replace(CR,a)+"-->";function a(o){return ho(o,Object.assign({},r.settings.characterReferences,{subset:vR}))}}function kR(e,t,n,r){return"<!"+(r.settings.upperDoctype?"DOCTYPE":"doctype")+(r.settings.tightDoctype?"":" ")+"html>"}const Yt=_y(1),wy=_y(-1),SR=[];function _y(e){return t;function t(n,r,a){const o=n?n.children:SR;let s=(r||0)+e,i=o[s];if(!a)for(;i&&ii(i);)s+=e,i=o[s];return i}}const wR={}.hasOwnProperty;function Iy(e){return t;function t(n,r,a){return wR.call(e,n.tagName)&&e[n.tagName](n,r,a)}}const Ap=Iy({body:IR,caption:Dc,colgroup:Dc,dd:RR,dt:PR,head:Dc,html:_R,li:DR,optgroup:MR,option:NR,p:AR,rp:$h,rt:$h,tbody:LR,td:Bh,tfoot:FR,th:Bh,thead:OR,tr:$R});function Dc(e,t,n){const r=Yt(n,t,!0);return!r||r.type!=="comment"&&!(r.type==="text"&&ii(r.value.charAt(0)))}function _R(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function IR(e,t,n){const r=Yt(n,t);return!r||r.type!=="comment"}function AR(e,t,n){const r=Yt(n,t);return r?r.type==="element"&&(r.tagName==="address"||r.tagName==="article"||r.tagName==="aside"||r.tagName==="blockquote"||r.tagName==="details"||r.tagName==="div"||r.tagName==="dl"||r.tagName==="fieldset"||r.tagName==="figcaption"||r.tagName==="figure"||r.tagName==="footer"||r.tagName==="form"||r.tagName==="h1"||r.tagName==="h2"||r.tagName==="h3"||r.tagName==="h4"||r.tagName==="h5"||r.tagName==="h6"||r.tagName==="header"||r.tagName==="hgroup"||r.tagName==="hr"||r.tagName==="main"||r.tagName==="menu"||r.tagName==="nav"||r.tagName==="ol"||r.tagName==="p"||r.tagName==="pre"||r.tagName==="section"||r.tagName==="table"||r.tagName==="ul"):!n||!(n.type==="element"&&(n.tagName==="a"||n.tagName==="audio"||n.tagName==="del"||n.tagName==="ins"||n.tagName==="map"||n.tagName==="noscript"||n.tagName==="video"))}function DR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="li"}function PR(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd"))}function RR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="dt"||r.tagName==="dd")}function $h(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="rp"||r.tagName==="rt")}function MR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="optgroup"}function NR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="option"||r.tagName==="optgroup")}function OR(e,t,n){const r=Yt(n,t);return!!(r&&r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot"))}function LR(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="tbody"||r.tagName==="tfoot")}function FR(e,t,n){return!Yt(n,t)}function $R(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&r.tagName==="tr"}function Bh(e,t,n){const r=Yt(n,t);return!r||r.type==="element"&&(r.tagName==="td"||r.tagName==="th")}const BR=Iy({body:UR,colgroup:zR,head:HR,html:jR,tbody:VR});function jR(e){const t=Yt(e,-1);return!t||t.type!=="comment"}function HR(e){const t=new Set;for(const r of e.children)if(r.type==="element"&&(r.tagName==="base"||r.tagName==="title")){if(t.has(r.tagName))return!1;t.add(r.tagName)}const n=e.children[0];return!n||n.type==="element"}function UR(e){const t=Yt(e,-1,!0);return!t||t.type!=="comment"&&!(t.type==="text"&&ii(t.value.charAt(0)))&&!(t.type==="element"&&(t.tagName==="meta"||t.tagName==="link"||t.tagName==="script"||t.tagName==="style"||t.tagName==="template"))}function zR(e,t,n){const r=wy(n,t),a=Yt(e,-1,!0);return n&&r&&r.type==="element"&&r.tagName==="colgroup"&&Ap(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="col")}function VR(e,t,n){const r=wy(n,t),a=Yt(e,-1);return n&&r&&r.type==="element"&&(r.tagName==="thead"||r.tagName==="tbody")&&Ap(r,n.children.indexOf(r),n)?!1:!!(a&&a.type==="element"&&a.tagName==="tr")}const Bi={name:[[`
95
- \f\r &/=>`.split(""),`
96
- \f\r "&'/=>\``.split("")],[`\0
97
- \f\r "&'/<=>`.split(""),`\0
98
- \f\r "&'/<=>\``.split("")]],unquoted:[[`
99
- \f\r &>`.split(""),`\0
100
- \f\r "&'<=>\``.split("")],[`\0
101
- \f\r "&'<=>\``.split(""),`\0
102
- \f\r "&'<=>\``.split("")]],single:[["&'".split(""),"\"&'`".split("")],["\0&'".split(""),"\0\"&'`".split("")]],double:[['"&'.split(""),"\"&'`".split("")],['\0"&'.split(""),"\0\"&'`".split("")]]};function WR(e,t,n,r){const a=r.schema,o=a.space==="svg"?!1:r.settings.omitOptionalTags;let s=a.space==="svg"?r.settings.closeEmptyElements:r.settings.voids.includes(e.tagName.toLowerCase());const i=[];let l;a.space==="html"&&e.tagName==="svg"&&(r.schema=Ur);const u=qR(r,e.properties),c=r.all(a.space==="html"&&e.tagName==="template"?e.content:e);return r.schema=a,c&&(s=!1),(u||!o||!BR(e,t,n))&&(i.push("<",e.tagName,u?" "+u:""),s&&(a.space==="svg"||r.settings.closeSelfClosing)&&(l=u.charAt(u.length-1),(!r.settings.tightSelfClosing||l==="/"||l&&l!=='"'&&l!=="'")&&i.push(" "),i.push("/")),i.push(">")),i.push(c),!s&&(!o||!Ap(e,t,n))&&i.push("</"+e.tagName+">"),i.join("")}function qR(e,t){const n=[];let r=-1,a;if(t){for(a in t)if(t[a]!==null&&t[a]!==void 0){const o=YR(e,a,t[a]);o&&n.push(o)}}for(;++r<n.length;){const o=e.settings.tightAttributes?n[r].charAt(n[r].length-1):void 0;r!==n.length-1&&o!=='"'&&o!=="'"&&(n[r]+=" ")}return n.join("")}function YR(e,t,n){const r=ui(e.schema,t),a=e.settings.allowParseErrors&&e.schema.space==="html"?0:1,o=e.settings.allowDangerousCharacters?0:1;let s=e.quote,i;if(r.overloadedBoolean&&(n===r.attribute||n==="")?n=!0:(r.boolean||r.overloadedBoolean)&&(typeof n!="string"||n===r.attribute||n==="")&&(n=!!n),n==null||n===!1||typeof n=="number"&&Number.isNaN(n))return"";const l=ho(r.attribute,Object.assign({},e.settings.characterReferences,{subset:Bi.name[a][o]}));return n===!0||(n=Array.isArray(n)?(r.commaSeparated?lu:uu)(n,{padLeft:!e.settings.tightCommaSeparatedLists}):String(n),e.settings.collapseEmptyAttributes&&!n)?l:(e.settings.preferUnquoted&&(i=ho(n,Object.assign({},e.settings.characterReferences,{attribute:!0,subset:Bi.unquoted[a][o]}))),i!==n&&(e.settings.quoteSmart&&kl(n,s)>kl(n,e.alternative)&&(s=e.alternative),i=s+ho(n,Object.assign({},e.settings.characterReferences,{subset:(s==="'"?Bi.single:Bi.double)[a][o],attribute:!0}))+s),l+(i&&"="+i))}const GR=["<","&"];function Ay(e,t,n,r){return n&&n.type==="element"&&(n.tagName==="script"||n.tagName==="style")?e.value:ho(e.value,Object.assign({},r.settings.characterReferences,{subset:GR}))}function KR(e,t,n,r){return r.settings.allowDangerousHtml?e.value:Ay(e,t,n,r)}function QR(e,t,n,r){return r.all(e)}const XR=gu("type",{invalid:ZR,unknown:JR,handlers:{comment:TR,doctype:kR,element:WR,raw:KR,root:QR,text:Ay}});function ZR(e){throw new Error("Expected node, not `"+e+"`")}function JR(e){const t=e;throw new Error("Cannot compile unknown node `"+t.type+"`")}const e8={},t8={},n8=[];function r8(e,t){const n=e8,r=n.quote||'"',a=r==='"'?"'":'"';if(r!=='"'&&r!=="'")throw new Error("Invalid quote `"+r+"`, expected `'` or `\"`");return{one:a8,all:o8,settings:{omitOptionalTags:n.omitOptionalTags||!1,allowParseErrors:n.allowParseErrors||!1,allowDangerousCharacters:n.allowDangerousCharacters||!1,quoteSmart:n.quoteSmart||!1,preferUnquoted:n.preferUnquoted||!1,tightAttributes:n.tightAttributes||!1,upperDoctype:n.upperDoctype||!1,tightDoctype:n.tightDoctype||!1,bogusComments:n.bogusComments||!1,tightCommaSeparatedLists:n.tightCommaSeparatedLists||!1,tightSelfClosing:n.tightSelfClosing||!1,collapseEmptyAttributes:n.collapseEmptyAttributes||!1,allowDangerousHtml:n.allowDangerousHtml||!1,voids:n.voids||n1,characterReferences:n.characterReferences||t8,closeSelfClosing:n.closeSelfClosing||!1,closeEmptyElements:n.closeEmptyElements||!1},schema:n.space==="svg"?Ur:Mo,quote:r,alternative:a}.one(Array.isArray(e)?{type:"root",children:e}:e,void 0,void 0)}function a8(e,t,n){return XR(e,t,n,this)}function o8(e){const t=[],n=e&&e.children||n8;let r=-1;for(;++r<n.length;)t[r]=this.one(n[r],r,e);return t.join("")}function s8(e){return Array.isArray(e)?e:[e]}function Tu(e,t=!1){const n=e.split(/(\r?\n)/g);let r=0;const a=[];for(let o=0;o<n.length;o+=2){const s=t?n[o]+(n[o+1]||""):n[o];a.push([s,r]),r+=n[o].length,r+=n[o+1]?.length||0}return a}function Dp(e){return!e||["plaintext","txt","text","plain"].includes(e)}function i8(e){return e==="ansi"||Dp(e)}function Pp(e){return e==="none"}function l8(e){return Pp(e)}function Dy(e,t){if(!t)return e;e.properties||={},e.properties.class||=[],typeof e.properties.class=="string"&&(e.properties.class=e.properties.class.split(/\s+/g)),Array.isArray(e.properties.class)||(e.properties.class=[]);const n=Array.isArray(t)?t:t.split(/\s+/g);for(const r of n)r&&!e.properties.class.includes(r)&&e.properties.class.push(r);return e}function u8(e,t){let n=0;const r=[];for(const a of t)a>n&&r.push({...e,content:e.content.slice(n,a),offset:e.offset+n}),n=a;return n<e.content.length&&r.push({...e,content:e.content.slice(n),offset:e.offset+n}),r}function c8(e,t){const n=Array.from(t instanceof Set?t:new Set(t)).sort((r,a)=>r-a);return n.length?e.map(r=>r.flatMap(a=>{const o=n.filter(s=>a.offset<s&&s<a.offset+a.content.length).map(s=>s-a.offset).sort((s,i)=>s-i);return o.length?u8(a,o):a})):e}async function Py(e){return Promise.resolve(typeof e=="function"?e():e).then(t=>t.default||t)}function Ll(e,t){const n=typeof e=="string"?{}:{...e.colorReplacements},r=typeof e=="string"?e:e.name;for(const[a,o]of Object.entries(t?.colorReplacements||{}))typeof o=="string"?n[a]=o:a===r&&Object.assign(n,o);return n}function va(e,t){return e&&(t?.[e?.toLowerCase()]||e)}function Ry(e){const t={};return e.color&&(t.color=e.color),e.bgColor&&(t["background-color"]=e.bgColor),e.fontStyle&&(e.fontStyle&Nr.Italic&&(t["font-style"]="italic"),e.fontStyle&Nr.Bold&&(t["font-weight"]="bold"),e.fontStyle&Nr.Underline&&(t["text-decoration"]="underline")),t}function d8(e){return typeof e=="string"?e:Object.entries(e).map(([t,n])=>`${t}:${n}`).join(";")}function p8(e){const t=Tu(e,!0).map(([a])=>a);function n(a){if(a===e.length)return{line:t.length-1,character:t[t.length-1].length};let o=a,s=0;for(const i of t){if(o<i.length)break;o-=i.length,s++}return{line:s,character:o}}function r(a,o){let s=0;for(let i=0;i<a;i++)s+=t[i].length;return s+=o,s}return{lines:t,indexToPos:n,posToIndex:r}}class pn extends Error{constructor(t){super(t),this.name="ShikiError"}}const My=new WeakMap;function ku(e,t){My.set(e,t)}function Gs(e){return My.get(e)}class Ho{_stacks={};lang;get themes(){return Object.keys(this._stacks)}get theme(){return this.themes[0]}get _stack(){return this._stacks[this.theme]}static initial(t,n){return new Ho(Object.fromEntries(s8(n).map(r=>[r,Sd])),t)}constructor(...t){if(t.length===2){const[n,r]=t;this.lang=r,this._stacks=n}else{const[n,r,a]=t;this.lang=r,this._stacks={[a]:n}}}getInternalStack(t=this.theme){return this._stacks[t]}get scopes(){return jh(this._stacks[this.theme])}getScopes(t=this.theme){return jh(this._stacks[t])}toJSON(){return{lang:this.lang,theme:this.theme,themes:this.themes,scopes:this.scopes}}}function jh(e){const t=[],n=new Set;function r(a){if(n.has(a))return;n.add(a);const o=a?.nameScopesList?.scopeName;o&&t.push(o),a.parent&&r(a.parent)}return r(e),t}function f8(e,t){if(!(e instanceof Ho))throw new pn("Invalid grammar state");return e.getInternalStack(t)}function m8(){const e=new WeakMap;function t(n){if(!e.has(n.meta)){let r=function(s){if(typeof s=="number"){if(s<0||s>n.source.length)throw new pn(`Invalid decoration offset: ${s}. Code length: ${n.source.length}`);return{...a.indexToPos(s),offset:s}}else{const i=a.lines[s.line];if(i===void 0)throw new pn(`Invalid decoration position ${JSON.stringify(s)}. Lines length: ${a.lines.length}`);if(s.character<0||s.character>i.length)throw new pn(`Invalid decoration position ${JSON.stringify(s)}. Line ${s.line} length: ${i.length}`);return{...s,offset:a.posToIndex(s.line,s.character)}}};const a=p8(n.source),o=(n.options.decorations||[]).map(s=>({...s,start:r(s.start),end:r(s.end)}));h8(o),e.set(n.meta,{decorations:o,converter:a,source:n.source})}return e.get(n.meta)}return{name:"shiki:decorations",tokens(n){if(!this.options.decorations?.length)return;const a=t(this).decorations.flatMap(s=>[s.start.offset,s.end.offset]);return c8(n,a)},code(n){if(!this.options.decorations?.length)return;const r=t(this),a=Array.from(n.children).filter(c=>c.type==="element"&&c.tagName==="span");if(a.length!==r.converter.lines.length)throw new pn(`Number of lines in code element (${a.length}) does not match the number of lines in the source (${r.converter.lines.length}). Failed to apply decorations.`);function o(c,d,m,f){const h=a[c];let b="",g=-1,x=-1;if(d===0&&(g=0),m===0&&(x=0),m===Number.POSITIVE_INFINITY&&(x=h.children.length),g===-1||x===-1)for(let E=0;E<h.children.length;E++)b+=Ny(h.children[E]),g===-1&&b.length===d&&(g=E+1),x===-1&&b.length===m&&(x=E+1);if(g===-1)throw new pn(`Failed to find start index for decoration ${JSON.stringify(f.start)}`);if(x===-1)throw new pn(`Failed to find end index for decoration ${JSON.stringify(f.end)}`);const C=h.children.slice(g,x);if(!f.alwaysWrap&&C.length===h.children.length)i(h,f,"line");else if(!f.alwaysWrap&&C.length===1&&C[0].type==="element")i(C[0],f,"token");else{const E={type:"element",tagName:"span",properties:{},children:C};i(E,f,"wrapper"),h.children.splice(g,C.length,E)}}function s(c,d){a[c]=i(a[c],d,"line")}function i(c,d,m){const f=d.properties||{},h=d.transform||(b=>b);return c.tagName=d.tagName||"span",c.properties={...c.properties,...f,class:c.properties.class},d.properties?.class&&Dy(c,d.properties.class),c=h(c,m)||c,c}const l=[],u=r.decorations.sort((c,d)=>d.start.offset-c.start.offset);for(const c of u){const{start:d,end:m}=c;if(d.line===m.line)o(d.line,d.character,m.character,c);else if(d.line<m.line){o(d.line,d.character,Number.POSITIVE_INFINITY,c);for(let f=d.line+1;f<m.line;f++)l.unshift(()=>s(f,c));o(m.line,0,m.character,c)}}l.forEach(c=>c())}}}function h8(e){for(let t=0;t<e.length;t++){const n=e[t];if(n.start.offset>n.end.offset)throw new pn(`Invalid decoration range: ${JSON.stringify(n.start)} - ${JSON.stringify(n.end)}`);for(let r=t+1;r<e.length;r++){const a=e[r],o=n.start.offset<a.start.offset&&a.start.offset<n.end.offset,s=n.start.offset<a.end.offset&&a.end.offset<n.end.offset,i=a.start.offset<n.start.offset&&n.start.offset<a.end.offset,l=a.start.offset<n.end.offset&&n.end.offset<a.end.offset;if(o||s||i||l){if(s&&s||i&&l)continue;throw new pn(`Decorations ${JSON.stringify(n.start)} and ${JSON.stringify(a.start)} intersect.`)}}}}function Ny(e){return e.type==="text"?e.value:e.type==="element"?e.children.map(Ny).join(""):""}const g8=[m8()];function Fl(e){return[...e.transformers||[],...g8]}var Ta=["black","red","green","yellow","blue","magenta","cyan","white","brightBlack","brightRed","brightGreen","brightYellow","brightBlue","brightMagenta","brightCyan","brightWhite"],Pc={1:"bold",2:"dim",3:"italic",4:"underline",7:"reverse",9:"strikethrough"};function b8(e,t){const n=e.indexOf("\x1B[",t);if(n!==-1){const r=e.indexOf("m",n);return{sequence:e.substring(n+2,r).split(";"),startPosition:n,position:r+1}}return{position:e.length}}function Hh(e,t){let n=1;const r=e[t+n++];let a;if(r==="2"){const o=[e[t+n++],e[t+n++],e[t+n]].map(s=>Number.parseInt(s));o.length===3&&!o.some(s=>Number.isNaN(s))&&(a={type:"rgb",rgb:o})}else if(r==="5"){const o=Number.parseInt(e[t+n]);Number.isNaN(o)||(a={type:"table",index:Number(o)})}return[n,a]}function y8(e){const t=[];for(let n=0;n<e.length;n++){const r=e[n],a=Number.parseInt(r);if(!Number.isNaN(a))if(a===0)t.push({type:"resetAll"});else if(a<=9)Pc[a]&&t.push({type:"setDecoration",value:Pc[a]});else if(a<=29){const o=Pc[a-20];o&&t.push({type:"resetDecoration",value:o})}else if(a<=37)t.push({type:"setForegroundColor",value:{type:"named",name:Ta[a-30]}});else if(a===38){const[o,s]=Hh(e,n);s&&t.push({type:"setForegroundColor",value:s}),n+=o}else if(a===39)t.push({type:"resetForegroundColor"});else if(a<=47)t.push({type:"setBackgroundColor",value:{type:"named",name:Ta[a-40]}});else if(a===48){const[o,s]=Hh(e,n);s&&t.push({type:"setBackgroundColor",value:s}),n+=o}else a===49?t.push({type:"resetBackgroundColor"}):a>=90&&a<=97?t.push({type:"setForegroundColor",value:{type:"named",name:Ta[a-90+8]}}):a>=100&&a<=107&&t.push({type:"setBackgroundColor",value:{type:"named",name:Ta[a-100+8]}})}return t}function x8(){let e=null,t=null,n=new Set;return{parse(r){const a=[];let o=0;do{const s=b8(r,o),i=s.sequence?r.substring(o,s.startPosition):r.substring(o);if(i.length>0&&a.push({value:i,foreground:e,background:t,decorations:new Set(n)}),s.sequence){const l=y8(s.sequence);for(const u of l)u.type==="resetAll"?(e=null,t=null,n.clear()):u.type==="resetForegroundColor"?e=null:u.type==="resetBackgroundColor"?t=null:u.type==="resetDecoration"&&n.delete(u.value);for(const u of l)u.type==="setForegroundColor"?e=u.value:u.type==="setBackgroundColor"?t=u.value:u.type==="setDecoration"&&n.add(u.value)}o=s.position}while(o<r.length);return a}}}var C8={black:"#000000",red:"#bb0000",green:"#00bb00",yellow:"#bbbb00",blue:"#0000bb",magenta:"#ff00ff",cyan:"#00bbbb",white:"#eeeeee",brightBlack:"#555555",brightRed:"#ff5555",brightGreen:"#00ff00",brightYellow:"#ffff55",brightBlue:"#5555ff",brightMagenta:"#ff55ff",brightCyan:"#55ffff",brightWhite:"#ffffff"};function E8(e=C8){function t(i){return e[i]}function n(i){return`#${i.map(l=>Math.max(0,Math.min(l,255)).toString(16).padStart(2,"0")).join("")}`}let r;function a(){if(r)return r;r=[];for(let u=0;u<Ta.length;u++)r.push(t(Ta[u]));let i=[0,95,135,175,215,255];for(let u=0;u<6;u++)for(let c=0;c<6;c++)for(let d=0;d<6;d++)r.push(n([i[u],i[c],i[d]]));let l=8;for(let u=0;u<24;u++,l+=10)r.push(n([l,l,l]));return r}function o(i){return a()[i]}function s(i){switch(i.type){case"named":return t(i.name);case"rgb":return n(i.rgb);case"table":return o(i.index)}}return{value:s}}function v8(e,t,n){const r=Ll(e,n),a=Tu(t),o=E8(Object.fromEntries(Ta.map(i=>[i,e.colors?.[`terminal.ansi${i[0].toUpperCase()}${i.substring(1)}`]]))),s=x8();return a.map(i=>s.parse(i[0]).map(l=>{let u,c;l.decorations.has("reverse")?(u=l.background?o.value(l.background):e.bg,c=l.foreground?o.value(l.foreground):e.fg):(u=l.foreground?o.value(l.foreground):e.fg,c=l.background?o.value(l.background):void 0),u=va(u,r),c=va(c,r),l.decorations.has("dim")&&(u=T8(u));let d=Nr.None;return l.decorations.has("bold")&&(d|=Nr.Bold),l.decorations.has("italic")&&(d|=Nr.Italic),l.decorations.has("underline")&&(d|=Nr.Underline),{content:l.value,offset:i[1],color:u,bgColor:c,fontStyle:d}}))}function T8(e){const t=e.match(/#([0-9a-f]{3})([0-9a-f]{3})?([0-9a-f]{2})?/);if(t)if(t[3]){const r=Math.round(Number.parseInt(t[3],16)/2).toString(16).padStart(2,"0");return`#${t[1]}${t[2]}${r}`}else return t[2]?`#${t[1]}${t[2]}80`:`#${Array.from(t[1]).map(r=>`${r}${r}`).join("")}80`;const n=e.match(/var\((--[\w-]+-ansi-[\w-]+)\)/);return n?`var(${n[1]}-dim)`:e}function Rp(e,t,n={}){const{lang:r="text",theme:a=e.getLoadedThemes()[0]}=n;if(Dp(r)||Pp(a))return Tu(t).map(l=>[{content:l[0],offset:l[1]}]);const{theme:o,colorMap:s}=e.setTheme(a);if(r==="ansi")return v8(o,t,n);const i=e.getLanguage(r);if(n.grammarState){if(n.grammarState.lang!==i.name)throw new Ia(`Grammar state language "${n.grammarState.lang}" does not match highlight language "${i.name}"`);if(!n.grammarState.themes.includes(o.name))throw new Ia(`Grammar state themes "${n.grammarState.themes}" do not contain highlight theme "${o.name}"`)}return S8(t,i,o,s,n)}function k8(...e){if(e.length===2)return Gs(e[1]);const[t,n,r={}]=e,{lang:a="text",theme:o=t.getLoadedThemes()[0]}=r;if(Dp(a)||Pp(o))throw new Ia("Plain language does not have grammar state");if(a==="ansi")throw new Ia("ANSI language does not have grammar state");const{theme:s,colorMap:i}=t.setTheme(o),l=t.getLanguage(a);return new Ho($l(n,l,s,i,r).stateStack,l.name,s.name)}function S8(e,t,n,r,a){const o=$l(e,t,n,r,a),s=new Ho($l(e,t,n,r,a).stateStack,t.name,n.name);return ku(o.tokens,s),o.tokens}function $l(e,t,n,r,a){const o=Ll(n,a),{tokenizeMaxLineLength:s=0,tokenizeTimeLimit:i=500}=a,l=Tu(e);let u=a.grammarState?f8(a.grammarState,n.name)??Sd:a.grammarContextCode!=null?$l(a.grammarContextCode,t,n,r,{...a,grammarState:void 0,grammarContextCode:void 0}).stateStack:Sd,c=[];const d=[];for(let m=0,f=l.length;m<f;m++){const[h,b]=l[m];if(h===""){c=[],d.push([]);continue}if(s>0&&h.length>=s){c=[],d.push([{content:h,offset:b,color:"",fontStyle:0}]);continue}let g,x,C;a.includeExplanation&&(g=t.tokenizeLine(h,u),x=g.tokens,C=0);const E=t.tokenizeLine2(h,u,i),k=E.tokens.length/2;for(let T=0;T<k;T++){const S=E.tokens[2*T],O=T+1<k?E.tokens[2*T+2]:h.length;if(S===O)continue;const M=E.tokens[2*T+1],$=va(r[To.getForeground(M)],o),P=To.getFontStyle(M),L={content:h.substring(S,O),offset:b+S,color:$,fontStyle:P};if(a.includeExplanation){const v=[];if(a.includeExplanation!=="scopeName")for(const I of n.settings){let A;switch(typeof I.scope){case"string":A=I.scope.split(/,/).map(R=>R.trim());break;case"object":A=I.scope;break;default:continue}v.push({settings:I,selectors:A.map(R=>R.split(/ /))})}L.explanation=[];let N=0;for(;S+N<O;){const I=x[C],A=h.substring(I.startIndex,I.endIndex);N+=A.length,L.explanation.push({content:A,scopes:a.includeExplanation==="scopeName"?w8(I.scopes):_8(v,I.scopes)}),C+=1}}c.push(L)}d.push(c),c=[],u=E.ruleStack}return{tokens:d,stateStack:u}}function w8(e){return e.map(t=>({scopeName:t}))}function _8(e,t){const n=[];for(let r=0,a=t.length;r<a;r++){const o=t[r];n[r]={scopeName:o,themeMatches:A8(e,o,t.slice(0,r))}}return n}function Uh(e,t){return e===t||t.substring(0,e.length)===e&&t[e.length]==="."}function I8(e,t,n){if(!Uh(e[e.length-1],t))return!1;let r=e.length-2,a=n.length-1;for(;r>=0&&a>=0;)Uh(e[r],n[a])&&(r-=1),a-=1;return r===-1}function A8(e,t,n){const r=[];for(const{selectors:a,settings:o}of e)for(const s of a)if(I8(s,t,n)){r.push(o);break}return r}function Oy(e,t,n){const r=Object.entries(n.themes).filter(l=>l[1]).map(l=>({color:l[0],theme:l[1]})),a=r.map(l=>{const u=Rp(e,t,{...n,theme:l.theme}),c=Gs(u),d=typeof l.theme=="string"?l.theme:l.theme.name;return{tokens:u,state:c,theme:d}}),o=D8(...a.map(l=>l.tokens)),s=o[0].map((l,u)=>l.map((c,d)=>{const m={content:c.content,variants:{},offset:c.offset};return"includeExplanation"in n&&n.includeExplanation&&(m.explanation=c.explanation),o.forEach((f,h)=>{const{content:b,explanation:g,offset:x,...C}=f[u][d];m.variants[r[h].color]=C}),m})),i=a[0].state?new Ho(Object.fromEntries(a.map(l=>[l.theme,l.state?.getInternalStack(l.theme)])),a[0].state.lang):void 0;return i&&ku(s,i),s}function D8(...e){const t=e.map(()=>[]),n=e.length;for(let r=0;r<e[0].length;r++){const a=e.map(l=>l[r]),o=t.map(()=>[]);t.forEach((l,u)=>l.push(o[u]));const s=a.map(()=>0),i=a.map(l=>l[0]);for(;i.every(l=>l);){const l=Math.min(...i.map(u=>u.content.length));for(let u=0;u<n;u++){const c=i[u];c.content.length===l?(o[u].push(c),s[u]+=1,i[u]=a[u][s[u]]):(o[u].push({...c,content:c.content.slice(0,l)}),i[u]={...c,content:c.content.slice(l),offset:c.offset+l})}}}return t}function Bl(e,t,n){let r,a,o,s,i,l;if("themes"in n){const{defaultColor:u="light",cssVariablePrefix:c="--shiki-"}=n,d=Object.entries(n.themes).filter(g=>g[1]).map(g=>({color:g[0],theme:g[1]})).sort((g,x)=>g.color===u?-1:x.color===u?1:0);if(d.length===0)throw new Ia("`themes` option must not be empty");const m=Oy(e,t,n);if(l=Gs(m),u&&!d.find(g=>g.color===u))throw new Ia(`\`themes\` option must contain the defaultColor key \`${u}\``);const f=d.map(g=>e.getTheme(g.theme)),h=d.map(g=>g.color);o=m.map(g=>g.map(x=>P8(x,h,c,u))),l&&ku(o,l);const b=d.map(g=>Ll(g.theme,n));a=d.map((g,x)=>(x===0&&u?"":`${c+g.color}:`)+(va(f[x].fg,b[x])||"inherit")).join(";"),r=d.map((g,x)=>(x===0&&u?"":`${c+g.color}-bg:`)+(va(f[x].bg,b[x])||"inherit")).join(";"),s=`shiki-themes ${f.map(g=>g.name).join(" ")}`,i=u?void 0:[a,r].join(";")}else if("theme"in n){const u=Ll(n.theme,n);o=Rp(e,t,n);const c=e.getTheme(n.theme);r=va(c.bg,u),a=va(c.fg,u),s=c.name,l=Gs(o)}else throw new Ia("Invalid options, either `theme` or `themes` must be provided");return{tokens:o,fg:a,bg:r,themeName:s,rootStyle:i,grammarState:l}}function P8(e,t,n,r){const a={content:e.content,explanation:e.explanation,offset:e.offset},o=t.map(l=>Ry(e.variants[l])),s=new Set(o.flatMap(l=>Object.keys(l))),i={};return o.forEach((l,u)=>{for(const c of s){const d=l[c]||"inherit";if(u===0&&r)i[c]=d;else{const m=c==="color"?"":c==="background-color"?"-bg":`-${c}`,f=n+t[u]+(c==="color"?"":m);i[f]=d}}}),a.htmlStyle=i,a}function jl(e,t,n,r={meta:{},options:n,codeToHast:(a,o)=>jl(e,a,o),codeToTokens:(a,o)=>Bl(e,a,o)}){let a=t;for(const f of Fl(n))a=f.preprocess?.call(r,a,n)||a;let{tokens:o,fg:s,bg:i,themeName:l,rootStyle:u,grammarState:c}=Bl(e,a,n);const{mergeWhitespaces:d=!0}=n;d===!0?o=M8(o):d==="never"&&(o=N8(o));const m={...r,get source(){return a}};for(const f of Fl(n))o=f.tokens?.call(m,o)||o;return R8(o,{...n,fg:s,bg:i,themeName:l,rootStyle:u},m,c)}function R8(e,t,n,r=Gs(e)){const a=Fl(t),o=[],s={type:"root",children:[]},{structure:i="classic",tabindex:l="0"}=t;let u={type:"element",tagName:"pre",properties:{class:`shiki ${t.themeName||""}`,style:t.rootStyle||`background-color:${t.bg};color:${t.fg}`,...l!==!1&&l!=null?{tabindex:l.toString()}:{},...Object.fromEntries(Array.from(Object.entries(t.meta||{})).filter(([h])=>!h.startsWith("_")))},children:[]},c={type:"element",tagName:"code",properties:{},children:o};const d=[],m={...n,structure:i,addClassToHast:Dy,get source(){return n.source},get tokens(){return e},get options(){return t},get root(){return s},get pre(){return u},get code(){return c},get lines(){return d}};if(e.forEach((h,b)=>{b&&(i==="inline"?s.children.push({type:"element",tagName:"br",properties:{},children:[]}):i==="classic"&&o.push({type:"text",value:`
103
- `}));let g={type:"element",tagName:"span",properties:{class:"line"},children:[]},x=0;for(const C of h){let E={type:"element",tagName:"span",properties:{...C.htmlAttrs},children:[{type:"text",value:C.content}]};C.htmlStyle;const k=d8(C.htmlStyle||Ry(C));k&&(E.properties.style=k);for(const T of a)E=T?.span?.call(m,E,b+1,x,g,C)||E;i==="inline"?s.children.push(E):i==="classic"&&g.children.push(E),x+=C.content.length}if(i==="classic"){for(const C of a)g=C?.line?.call(m,g,b+1)||g;d.push(g),o.push(g)}}),i==="classic"){for(const h of a)c=h?.code?.call(m,c)||c;u.children.push(c);for(const h of a)u=h?.pre?.call(m,u)||u;s.children.push(u)}let f=s;for(const h of a)f=h?.root?.call(m,f)||f;return r&&ku(f,r),f}function M8(e){return e.map(t=>{const n=[];let r="",a=0;return t.forEach((o,s)=>{const l=!(o.fontStyle&&o.fontStyle&Nr.Underline);l&&o.content.match(/^\s+$/)&&t[s+1]?(a||(a=o.offset),r+=o.content):r?(l?n.push({...o,offset:a,content:r+o.content}):n.push({content:r,offset:a},o),a=0,r=""):n.push(o)}),n})}function N8(e){return e.map(t=>t.flatMap(n=>{if(n.content.match(/^\s+$/))return n;const r=n.content.match(/^(\s*)(.*?)(\s*)$/);if(!r)return n;const[,a,o,s]=r;if(!a&&!s)return n;const i=[{...n,offset:n.offset+a.length,content:o}];return a&&i.unshift({content:a,offset:n.offset}),s&&i.push({content:s,offset:n.offset+a.length+o.length}),i}))}function O8(e,t,n){const r={meta:{},options:n,codeToHast:(o,s)=>jl(e,o,s),codeToTokens:(o,s)=>Bl(e,o,s)};let a=r8(jl(e,t,n,r));for(const o of Fl(n))a=o.postprocess?.call(r,a,n)||a;return a}const zh={light:"#333333",dark:"#bbbbbb"},Vh={light:"#fffffe",dark:"#1e1e1e"},Wh="__shiki_resolved";function Mp(e){if(e?.[Wh])return e;const t={...e};t.tokenColors&&!t.settings&&(t.settings=t.tokenColors,delete t.tokenColors),t.type||="dark",t.colorReplacements={...t.colorReplacements},t.settings||=[];let{bg:n,fg:r}=t;if(!n||!r){const i=t.settings?t.settings.find(l=>!l.name&&!l.scope):void 0;i?.settings?.foreground&&(r=i.settings.foreground),i?.settings?.background&&(n=i.settings.background),!r&&t?.colors?.["editor.foreground"]&&(r=t.colors["editor.foreground"]),!n&&t?.colors?.["editor.background"]&&(n=t.colors["editor.background"]),r||(r=t.type==="light"?zh.light:zh.dark),n||(n=t.type==="light"?Vh.light:Vh.dark),t.fg=r,t.bg=n}t.settings[0]&&t.settings[0].settings&&!t.settings[0].scope||t.settings.unshift({settings:{foreground:t.fg,background:t.bg}});let a=0;const o=new Map;function s(i){if(o.has(i))return o.get(i);a+=1;const l=`#${a.toString(16).padStart(8,"0").toLowerCase()}`;return t.colorReplacements?.[`#${l}`]?s(i):(o.set(i,l),l)}t.settings=t.settings.map(i=>{const l=i.settings?.foreground&&!i.settings.foreground.startsWith("#"),u=i.settings?.background&&!i.settings.background.startsWith("#");if(!l&&!u)return i;const c={...i,settings:{...i.settings}};if(l){const d=s(i.settings.foreground);t.colorReplacements[d]=i.settings.foreground,c.settings.foreground=d}if(u){const d=s(i.settings.background);t.colorReplacements[d]=i.settings.background,c.settings.background=d}return c});for(const i of Object.keys(t.colors||{}))if((i==="editor.foreground"||i==="editor.background"||i.startsWith("terminal.ansi"))&&!t.colors[i]?.startsWith("#")){const l=s(t.colors[i]);t.colorReplacements[l]=t.colors[i],t.colors[i]=l}return Object.defineProperty(t,Wh,{enumerable:!1,writable:!1,value:!0}),t}async function Ly(e){return Array.from(new Set((await Promise.all(e.filter(t=>!i8(t)).map(async t=>await Py(t).then(n=>Array.isArray(n)?n:[n])))).flat()))}async function Fy(e){return(await Promise.all(e.map(async n=>l8(n)?null:Mp(await Py(n))))).filter(n=>!!n)}class L8 extends rR{constructor(t,n,r,a={}){super(t),this._resolver=t,this._themes=n,this._langs=r,this._alias=a,this._themes.map(o=>this.loadTheme(o)),this.loadLanguages(this._langs)}_resolvedThemes=new Map;_resolvedGrammars=new Map;_langMap=new Map;_langGraph=new Map;_textmateThemeCache=new WeakMap;_loadedThemesCache=null;_loadedLanguagesCache=null;getTheme(t){return typeof t=="string"?this._resolvedThemes.get(t):this.loadTheme(t)}loadTheme(t){const n=Mp(t);return n.name&&(this._resolvedThemes.set(n.name,n),this._loadedThemesCache=null),n}getLoadedThemes(){return this._loadedThemesCache||(this._loadedThemesCache=[...this._resolvedThemes.keys()]),this._loadedThemesCache}setTheme(t){let n=this._textmateThemeCache.get(t);n||(n=Pl.createFromRawTheme(t),this._textmateThemeCache.set(t,n)),this._syncRegistry.setTheme(n)}getGrammar(t){if(this._alias[t]){const n=new Set([t]);for(;this._alias[t];){if(t=this._alias[t],n.has(t))throw new pn(`Circular alias \`${Array.from(n).join(" -> ")} -> ${t}\``);n.add(t)}}return this._resolvedGrammars.get(t)}loadLanguage(t){if(this.getGrammar(t.name))return;const n=new Set([...this._langMap.values()].filter(o=>o.embeddedLangsLazy?.includes(t.name)));this._resolver.addLanguage(t);const r={balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]};this._syncRegistry._rawGrammars.set(t.scopeName,t);const a=this.loadGrammarWithConfiguration(t.scopeName,1,r);if(a.name=t.name,this._resolvedGrammars.set(t.name,a),t.aliases&&t.aliases.forEach(o=>{this._alias[o]=t.name}),this._loadedLanguagesCache=null,n.size)for(const o of n)this._resolvedGrammars.delete(o.name),this._loadedLanguagesCache=null,this._syncRegistry?._injectionGrammars?.delete(o.scopeName),this._syncRegistry?._grammars?.delete(o.scopeName),this.loadLanguage(this._langMap.get(o.name))}dispose(){super.dispose(),this._resolvedThemes.clear(),this._resolvedGrammars.clear(),this._langMap.clear(),this._langGraph.clear(),this._loadedThemesCache=null}loadLanguages(t){for(const a of t)this.resolveEmbeddedLanguages(a);const n=Array.from(this._langGraph.entries()),r=n.filter(([a,o])=>!o);if(r.length){const a=n.filter(([o,s])=>s&&s.embeddedLangs?.some(i=>r.map(([l])=>l).includes(i))).filter(o=>!r.includes(o));throw new pn(`Missing languages ${r.map(([o])=>`\`${o}\``).join(", ")}, required by ${a.map(([o])=>`\`${o}\``).join(", ")}`)}for(const[a,o]of n)this._resolver.addLanguage(o);for(const[a,o]of n)this.loadLanguage(o)}getLoadedLanguages(){return this._loadedLanguagesCache||(this._loadedLanguagesCache=[...new Set([...this._resolvedGrammars.keys(),...Object.keys(this._alias)])]),this._loadedLanguagesCache}resolveEmbeddedLanguages(t){if(this._langMap.set(t.name,t),this._langGraph.set(t.name,t),t.embeddedLangs)for(const n of t.embeddedLangs)this._langGraph.set(n,this._langMap.get(n))}}class F8{_langs=new Map;_scopeToLang=new Map;_injections=new Map;_onigLib;constructor(t,n){this._onigLib={createOnigScanner:r=>t.createScanner(r),createOnigString:r=>t.createString(r)},n.forEach(r=>this.addLanguage(r))}get onigLib(){return this._onigLib}getLangRegistration(t){return this._langs.get(t)}loadGrammar(t){return this._scopeToLang.get(t)}addLanguage(t){this._langs.set(t.name,t),t.aliases&&t.aliases.forEach(n=>{this._langs.set(n,t)}),this._scopeToLang.set(t.scopeName,t),t.injectTo&&t.injectTo.forEach(n=>{this._injections.get(n)||this._injections.set(n,[]),this._injections.get(n).push(t.scopeName)})}getInjections(t){const n=t.split(".");let r=[];for(let a=1;a<=n.length;a++){const o=n.slice(0,a).join(".");r=[...r,...this._injections.get(o)||[]]}return r}}let os=0;function $8(e){os+=1,e.warnings!==!1&&os>=10&&os%10===0&&console.warn(`[Shiki] ${os} instances have been created. Shiki is supposed to be used as a singleton, consider refactoring your code to cache your highlighter instance; Or call \`highlighter.dispose()\` to release unused instances.`);let t=!1;if(!e.engine)throw new pn("`engine` option is required for synchronous mode");const n=(e.langs||[]).flat(1),r=(e.themes||[]).flat(1).map(Mp),a=new F8(e.engine,n),o=new L8(a,r,n,e.langAlias);let s;function i(C){g();const E=o.getGrammar(typeof C=="string"?C:C.name);if(!E)throw new pn(`Language \`${C}\` not found, you may need to load it first`);return E}function l(C){if(C==="none")return{bg:"",fg:"",name:"none",settings:[],type:"dark"};g();const E=o.getTheme(C);if(!E)throw new pn(`Theme \`${C}\` not found, you may need to load it first`);return E}function u(C){g();const E=l(C);s!==C&&(o.setTheme(E),s=C);const k=o.getColorMap();return{theme:E,colorMap:k}}function c(){return g(),o.getLoadedThemes()}function d(){return g(),o.getLoadedLanguages()}function m(...C){g(),o.loadLanguages(C.flat(1))}async function f(...C){return m(await Ly(C))}function h(...C){g();for(const E of C.flat(1))o.loadTheme(E)}async function b(...C){return g(),h(await Fy(C))}function g(){if(t)throw new pn("Shiki instance has been disposed")}function x(){t||(t=!0,o.dispose(),os-=1)}return{setTheme:u,getTheme:l,getLanguage:i,getLoadedThemes:c,getLoadedLanguages:d,loadLanguage:f,loadLanguageSync:m,loadTheme:b,loadThemeSync:h,dispose:x,[Symbol.dispose]:x}}async function B8(e={}){e.loadWasm;const[t,n,r]=await Promise.all([Fy(e.themes||[]),Ly(e.langs||[]),e.engine||uy(e.loadWasm||bP())]);return $8({...e,themes:t,langs:n,engine:r})}async function j8(e={}){const t=await B8(e);return{getLastGrammarState:(...n)=>k8(t,...n),codeToTokensBase:(n,r)=>Rp(t,n,r),codeToTokensWithThemes:(n,r)=>Oy(t,n,r),codeToTokens:(n,r)=>Bl(t,n,r),codeToHast:(n,r)=>jl(t,n,r),codeToHtml:(n,r)=>O8(t,n,r),...t,getInternalContext:()=>t}}const H8=Object.freeze(JSON.parse('{"displayName":"JSON","name":"json","patterns":[{"include":"#value"}],"repository":{"array":{"begin":"\\\\[","beginCaptures":{"0":{"name":"punctuation.definition.array.begin.json"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.array.end.json"}},"name":"meta.structure.array.json","patterns":[{"include":"#value"},{"match":",","name":"punctuation.separator.array.json"},{"match":"[^\\\\s\\\\]]","name":"invalid.illegal.expected-array-separator.json"}]},"comments":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.documentation.json"},{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.json"}},"end":"\\\\*/","name":"comment.block.json"},{"captures":{"1":{"name":"punctuation.definition.comment.json"}},"match":"(//).*$\\\\n?","name":"comment.line.double-slash.js"}]},"constant":{"match":"\\\\b(?:true|false|null)\\\\b","name":"constant.language.json"},"number":{"match":"-?(?:0|[1-9]\\\\d*)(?:(?:\\\\.\\\\d+)?(?:[eE][+-]?\\\\d+)?)?","name":"constant.numeric.json"},"object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.dictionary.begin.json"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.dictionary.end.json"}},"name":"meta.structure.dictionary.json","patterns":[{"comment":"the JSON object key","include":"#objectkey"},{"include":"#comments"},{"begin":":","beginCaptures":{"0":{"name":"punctuation.separator.dictionary.key-value.json"}},"end":"(,)|(?=\\\\})","endCaptures":{"1":{"name":"punctuation.separator.dictionary.pair.json"}},"name":"meta.structure.dictionary.value.json","patterns":[{"comment":"the JSON object value","include":"#value"},{"match":"[^\\\\s,]","name":"invalid.illegal.expected-dictionary-separator.json"}]},{"match":"[^\\\\s\\\\}]","name":"invalid.illegal.expected-dictionary-separator.json"}]},"objectkey":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.support.type.property-name.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.support.type.property-name.end.json"}},"name":"string.json support.type.property-name.json","patterns":[{"include":"#stringcontent"}]},"string":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.json"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.json"}},"name":"string.quoted.double.json","patterns":[{"include":"#stringcontent"}]},"stringcontent":{"patterns":[{"match":"\\\\\\\\(?:[\\"\\\\\\\\/bfnrt]|u[0-9a-fA-F]{4})","name":"constant.character.escape.json"},{"match":"\\\\\\\\.","name":"invalid.illegal.unrecognized-string-escape.json"}]},"value":{"patterns":[{"include":"#constant"},{"include":"#number"},{"include":"#string"},{"include":"#array"},{"include":"#object"},{"include":"#comments"}]}},"scopeName":"source.json"}')),U8=[H8],z8=Object.freeze(JSON.parse('{"displayName":"SQL","name":"sql","patterns":[{"match":"((?<!@)@)\\\\b(\\\\w+)\\\\b","name":"text.variable"},{"match":"(\\\\[)[^\\\\]]*(\\\\])","name":"text.bracketed"},{"include":"#comments"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"},"5":{"name":"entity.name.function.sql"}},"match":"(?i:^\\\\s*(create(?:\\\\s+or\\\\s+replace)?)\\\\s+(aggregate|conversion|database|domain|function|group|(unique\\\\s+)?index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)([\'\\"`]?)(\\\\w+)\\\\4","name":"meta.create.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.sql"}},"match":"(?i:^\\\\s*(drop)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|rule|schema|sequence|table|tablespace|trigger|type|user|view))","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"},"3":{"name":"entity.name.function.sql"},"4":{"name":"keyword.other.cascade.sql"}},"match":"(?i:\\\\s*(drop)\\\\s+(table)\\\\s+(\\\\w+)(\\\\s+cascade)?\\\\b)","name":"meta.drop.sql"},{"captures":{"1":{"name":"keyword.other.create.sql"},"2":{"name":"keyword.other.table.sql"}},"match":"(?i:^\\\\s*(alter)\\\\s+(aggregate|conversion|database|domain|function|group|index|language|operator class|operator|proc(edure)?|rule|schema|sequence|table|tablespace|trigger|type|user|view)\\\\s+)","name":"meta.alter.sql"},{"captures":{"1":{"name":"storage.type.sql"},"2":{"name":"storage.type.sql"},"3":{"name":"constant.numeric.sql"},"4":{"name":"storage.type.sql"},"5":{"name":"constant.numeric.sql"},"6":{"name":"storage.type.sql"},"7":{"name":"constant.numeric.sql"},"8":{"name":"constant.numeric.sql"},"9":{"name":"storage.type.sql"},"10":{"name":"constant.numeric.sql"},"11":{"name":"storage.type.sql"},"12":{"name":"storage.type.sql"},"13":{"name":"storage.type.sql"},"14":{"name":"constant.numeric.sql"},"15":{"name":"storage.type.sql"}},"match":"(?xi)\\n\\n\\t\\t\\t\\t# normal stuff, capture 1\\n\\t\\t\\t\\t \\\\b(bigint|bigserial|bit|boolean|box|bytea|cidr|circle|date|double\\\\sprecision|inet|int|integer|line|lseg|macaddr|money|oid|path|point|polygon|real|serial|smallint|sysdate|text)\\\\b\\n\\n\\t\\t\\t\\t# numeric suffix, capture 2 + 3i\\n\\t\\t\\t\\t|\\\\b(bit\\\\svarying|character\\\\s(?:varying)?|tinyint|var\\\\schar|float|interval)\\\\((\\\\d+)\\\\)\\n\\n\\t\\t\\t\\t# optional numeric suffix, capture 4 + 5i\\n\\t\\t\\t\\t|\\\\b(char|number|varchar\\\\d?)\\\\b(?:\\\\((\\\\d+)\\\\))?\\n\\n\\t\\t\\t\\t# special case, capture 6 + 7i + 8i\\n\\t\\t\\t\\t|\\\\b(numeric|decimal)\\\\b(?:\\\\((\\\\d+),(\\\\d+)\\\\))?\\n\\n\\t\\t\\t\\t# special case, captures 9, 10i, 11\\n\\t\\t\\t\\t|\\\\b(times?)\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\swith(?:out)?\\\\stime\\\\szone\\\\b)?\\n\\n\\t\\t\\t\\t# special case, captures 12, 13, 14i, 15\\n\\t\\t\\t\\t|\\\\b(timestamp)(?:(s|tz))?\\\\b(?:\\\\((\\\\d+)\\\\))?(\\\\s(with|without)\\\\stime\\\\szone\\\\b)?\\n\\n\\t\\t\\t"},{"match":"(?i:\\\\b((?:primary|foreign)\\\\s+key|references|on\\\\sdelete(\\\\s+cascade)?|nocheck|check|constraint|collate|default)\\\\b)","name":"storage.modifier.sql"},{"match":"\\\\b\\\\d+\\\\b","name":"constant.numeric.sql"},{"match":"(?i:\\\\b(select(\\\\s+(all|distinct))?|insert\\\\s+(ignore\\\\s+)?into|update|delete|from|set|where|group\\\\s+by|or|like|and|union(\\\\s+all)?|having|order\\\\s+by|limit|cross\\\\s+join|join|straight_join|(inner|(left|right|full)(\\\\s+outer)?)\\\\s+join|natural(\\\\s+(inner|(left|right|full)(\\\\s+outer)?))?\\\\s+join)\\\\b)","name":"keyword.other.DML.sql"},{"match":"(?i:\\\\b(on|off|((is\\\\s+)?not\\\\s+)?null)\\\\b)","name":"keyword.other.DDL.create.II.sql"},{"match":"(?i:\\\\bvalues\\\\b)","name":"keyword.other.DML.II.sql"},{"match":"(?i:\\\\b(begin(\\\\s+work)?|start\\\\s+transaction|commit(\\\\s+work)?|rollback(\\\\s+work)?)\\\\b)","name":"keyword.other.LUW.sql"},{"match":"(?i:\\\\b(grant(\\\\swith\\\\sgrant\\\\soption)?|revoke)\\\\b)","name":"keyword.other.authorization.sql"},{"match":"(?i:\\\\bin\\\\b)","name":"keyword.other.data-integrity.sql"},{"match":"(?i:^\\\\s*(comment\\\\s+on\\\\s+(table|column|aggregate|constraint|database|domain|function|index|operator|rule|schema|sequence|trigger|type|view))\\\\s+.*?\\\\s+(is)\\\\s+)","name":"keyword.other.object-comments.sql"},{"match":"(?i)\\\\bAS\\\\b","name":"keyword.other.alias.sql"},{"match":"(?i)\\\\b(DESC|ASC)\\\\b","name":"keyword.other.order.sql"},{"match":"\\\\*","name":"keyword.operator.star.sql"},{"match":"[!<>]?=|<>|<|>","name":"keyword.operator.comparison.sql"},{"match":"-|\\\\+|/","name":"keyword.operator.math.sql"},{"match":"\\\\|\\\\|","name":"keyword.operator.concatenator.sql"},{"captures":{"1":{"name":"support.function.aggregate.sql"}},"match":"(?i)\\\\b(approx_count_distinct|approx_percentile_cont|approx_percentile_disc|avg|checksum_agg|count|count_big|group|grouping|grouping_id|max|min|sum|stdev|stdevp|var|varp)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.analytic.sql"}},"match":"(?i)\\\\b(cume_dist|first_value|lag|last_value|lead|percent_rank|percentile_cont|percentile_disc)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.bitmanipulation.sql"}},"match":"(?i)\\\\b(bit_count|get_bit|left_shift|right_shift|set_bit)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.conversion.sql"}},"match":"(?i)\\\\b(cast|convert|parse|try_cast|try_convert|try_parse)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.collation.sql"}},"match":"(?i)\\\\b(collationproperty|tertiary_weights)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cryptographic.sql"}},"match":"(?i)\\\\b(asymkey_id|asymkeyproperty|certproperty|cert_id|crypt_gen_random|decryptbyasymkey|decryptbycert|decryptbykey|decryptbykeyautoasymkey|decryptbykeyautocert|decryptbypassphrase|encryptbyasymkey|encryptbycert|encryptbykey|encryptbypassphrase|hashbytes|is_objectsigned|key_guid|key_id|key_name|signbyasymkey|signbycert|symkeyproperty|verifysignedbycert|verifysignedbyasymkey)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.cursor.sql"}},"match":"(?i)\\\\b(cursor_status)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datetime.sql"}},"match":"(?i)\\\\b(sysdatetime|sysdatetimeoffset|sysutcdatetime|current_time(stamp)?|getdate|getutcdate|datename|datepart|day|month|year|datefromparts|datetime2fromparts|datetimefromparts|datetimeoffsetfromparts|smalldatetimefromparts|timefromparts|datediff|dateadd|datetrunc|eomonth|switchoffset|todatetimeoffset|isdate|date_bucket)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.datatype.sql"}},"match":"(?i)\\\\b(datalength|ident_current|ident_incr|ident_seed|identity|sql_variant_property)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.expression.sql"}},"match":"(?i)\\\\b(coalesce|nullif)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.globalvar.sql"}},"match":"(?<!@)@@(?i)\\\\b(cursor_rows|connections|cpu_busy|datefirst|dbts|error|fetch_status|identity|idle|io_busy|langid|language|lock_timeout|max_connections|max_precision|nestlevel|options|packet_errors|pack_received|pack_sent|procid|remserver|rowcount|servername|servicename|spid|textsize|timeticks|total_errors|total_read|total_write|trancount|version)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.json.sql"}},"match":"(?i)\\\\b(json|isjson|json_object|json_array|json_value|json_query|json_modify|json_path_exists)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.logical.sql"}},"match":"(?i)\\\\b(choose|iif|greatest|least)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.mathematical.sql"}},"match":"(?i)\\\\b(abs|acos|asin|atan|atn2|ceiling|cos|cot|degrees|exp|floor|log|log10|pi|power|radians|rand|round|sign|sin|sqrt|square|tan)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.metadata.sql"}},"match":"(?i)\\\\b(app_name|applock_mode|applock_test|assemblyproperty|col_length|col_name|columnproperty|database_principal_id|databasepropertyex|db_id|db_name|file_id|file_idex|file_name|filegroup_id|filegroup_name|filegroupproperty|fileproperty|fulltextcatalogproperty|fulltextserviceproperty|index_col|indexkey_property|indexproperty|object_definition|object_id|object_name|object_schema_name|objectproperty|objectpropertyex|original_db_name|parsename|schema_id|schema_name|scope_identity|serverproperty|stats_date|type_id|type_name|typeproperty)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.ranking.sql"}},"match":"(?i)\\\\b(rank|dense_rank|ntile|row_number)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.rowset.sql"}},"match":"(?i)\\\\b(generate_series|opendatasource|openjson|openrowset|openquery|openxml|predict|string_split)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.security.sql"}},"match":"(?i)\\\\b(certencoded|certprivatekey|current_user|database_principal_id|has_perms_by_name|is_member|is_rolemember|is_srvrolemember|original_login|permissions|pwdcompare|pwdencrypt|schema_id|schema_name|session_user|suser_id|suser_sid|suser_sname|system_user|suser_name|user_id|user_name)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.string.sql"}},"match":"(?i)\\\\b(ascii|char|charindex|concat|difference|format|left|len|lower|ltrim|nchar|nodes|patindex|quotename|replace|replicate|reverse|right|rtrim|soundex|space|str|string_agg|string_escape|string_split|stuff|substring|translate|trim|unicode|upper)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.system.sql"}},"match":"(?i)\\\\b(binary_checksum|checksum|compress|connectionproperty|context_info|current_request_id|current_transaction_id|decompress|error_line|error_message|error_number|error_procedure|error_severity|error_state|formatmessage|get_filestream_transaction_context|getansinull|host_id|host_name|isnull|isnumeric|min_active_rowversion|newid|newsequentialid|rowcount_big|session_context|session_id|xact_state)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"support.function.textimage.sql"}},"match":"(?i)\\\\b(patindex|textptr|textvalid)\\\\b\\\\s*\\\\("},{"captures":{"1":{"name":"constant.other.database-name.sql"},"2":{"name":"constant.other.table-name.sql"}},"match":"(\\\\w+?)\\\\.(\\\\w+)"},{"include":"#strings"},{"include":"#regexps"},{"match":"\\\\b(?i)(abort|abort_after_wait|absent|absolute|accent_sensitivity|acceptable_cursopt|acp|action|activation|add|address|admin|aes_128|aes_192|aes_256|affinity|after|aggregate|algorithm|all_constraints|all_errormsgs|all_indexes|all_levels|all_results|allow_connections|allow_dup_row|allow_encrypted_value_modifications|allow_page_locks|allow_row_locks|allow_snapshot_isolation|alter|altercolumn|always|anonymous|ansi_defaults|ansi_null_default|ansi_null_dflt_off|ansi_null_dflt_on|ansi_nulls|ansi_padding|ansi_warnings|appdomain|append|application|apply|arithabort|arithignore|array|assembly|asymmetric|asynchronous_commit|at|atan2|atomic|attach|attach_force_rebuild_log|attach_rebuild_log|audit|auth_realm|authentication|auto|auto_cleanup|auto_close|auto_create_statistics|auto_drop|auto_shrink|auto_update_statistics|auto_update_statistics_async|automated_backup_preference|automatic|autopilot|availability|availability_mode|backup|backup_priority|base64|basic|batches|batchsize|before|between|bigint|binary|binding|bit|block|blockers|blocksize|bmk|both|break|broker|broker_instance|bucket_count|buffer|buffercount|bulk_logged|by|call|caller|card|case|catalog|catch|cert|certificate|change_retention|change_tracking|change_tracking_context|changes|char|character|character_set|check_expiration|check_policy|checkconstraints|checkindex|checkpoint|checksum|cleanup_policy|clear|clear_port|close|clustered|codepage|collection|column_encryption_key|column_master_key|columnstore|columnstore_archive|colv_80_to_100|colv_100_to_80|commit_differential_base|committed|compatibility_level|compress_all_row_groups|compression|compression_delay|concat_null_yields_null|concatenate|configuration|connect|connection|containment|continue|continue_after_error|contract|contract_name|control|conversation|conversation_group_id|conversation_handle|copy|copy_only|count_rows|counter|create(\\\\\\\\s+or\\\\\\\\s+alter)?|credential|cross|cryptographic|cryptographic_provider|cube|cursor|cursor_close_on_commit|cursor_default|data|data_compression|data_flush_interval_seconds|data_mirroring|data_purity|data_source|database|database_name|database_snapshot|datafiletype|date_correlation_optimization|date|datefirst|dateformat|date_format|datetime|datetime2|datetimeoffset|day(s)?|db_chaining|dbid|dbidexec|dbo_only|deadlock_priority|deallocate|dec|decimal|declare|decrypt|decrypt_a|decryption|default_database|default_fulltext_language|default_language|default_logon_domain|default_schema|definition|delay|delayed_durability|delimitedtext|density_vector|dependent|des|description|desired_state|desx|differential|digest|disable|disable_broker|disable_def_cnst_chk|disabled|disk|distinct|distributed|distribution|drop|drop_existing|dts_buffers|dump|durability|dynamic|edition|elements|else|emergency|empty|enable|enable_broker|enabled|encoding|encrypted|encrypted_value|encryption|encryption_type|end|endpoint|endpoint_url|enhancedintegrity|entry|error_broker_conversations|errorfile|estimateonly|event|except|exec|executable|execute|exists|expand|expiredate|expiry_date|explicit|external|external_access|failover|failover_mode|failure_condition_level|fast|fast_forward|fastfirstrow|federated_service_account|fetch|field_terminator|fieldterminator|file|filelistonly|filegroup|filegrowth|filename|filestream|filestream_log|filestream_on|filetable|file_format|filter|first_row|fips_flagger|fire_triggers|first|firstrow|float|flush_interval_seconds|fmtonly|following|for|force|force_failover_allow_data_loss|force_service_allow_data_loss|forced|forceplan|formatfile|format_options|format_type|formsof|forward_only|free_cursors|free_exec_context|fullscan|fulltext|fulltextall|fulltextkey|function|generated|get|geography|geometry|global|go|goto|governor|guid|hadoop|hardening|hash|hashed|header_limit|headeronly|health_check_timeout|hidden|hierarchyid|histogram|histogram_steps|hits_cursors|hits_exec_context|hour(s)?|http|identity|identity_value|if|ifnull|ignore|ignore_constraints|ignore_dup_key|ignore_dup_row|ignore_triggers|image|immediate|implicit_transactions|include|include_null_values|incremental|index|inflectional|init|initiator|insensitive|insert|instead|int|integer|integrated|intersect|intermediate|interval_length_minutes|into|inuse_cursors|inuse_exec_context|io|is|isabout|iso_week|isolation|job_tracker_location|json|keep|keep_nulls|keep_replication|keepdefaults|keepfixed|keepidentity|keepnulls|kerberos|key|key_path|key_source|key_store_provider_name|keyset|kill|kilobytes_per_batch|labelonly|langid|language|last|lastrow|leading|legacy_cardinality_estimation|length|level|lifetime|lineage_80_to_100|lineage_100_to_80|listener_ip|listener_port|load|loadhistory|lob_compaction|local|local_service_name|locate|location|lock_escalation|lock_timeout|lockres|log|login|login_type|loop|manual|mark_in_use_for_removal|masked|master|match|matched|max_queue_readers|max_duration|max_outstanding_io_per_volume|maxdop|maxerrors|maxlength|maxtransfersize|max_plans_per_query|max_storage_size_mb|mediadescription|medianame|mediapassword|memogroup|memory_optimized|merge|message|message_forward_size|message_forwarding|microsecond|millisecond|minute(s)?|mirror_address|misses_cursors|misses_exec_context|mixed|modify|money|month|move|multi_user|must_change|name|namespace|nanosecond|native|native_compilation|nchar|ncharacter|nested_triggers|never|new_account|new_broker|newname|next|no|no_browsetable|no_checksum|no_compression|no_infomsgs|no_triggers|no_truncate|nocount|noexec|noexpand|noformat|noinit|nolock|nonatomic|nonclustered|nondurable|none|norecompute|norecovery|noreset|norewind|noskip|not|notification|nounload|now|nowait|ntext|ntlm|nulls|numeric|numeric_roundabort|nvarchar|object|objid|oem|offline|old_account|online|operation_mode|open|openjson|optimistic|option|orc|out|outer|output|over|override|owner|ownership|pad_index|page|page_checksum|page_verify|pagecount|paglock|param|parameter_sniffing|parameter_type_expansion|parameterization|parquet|parseonly|partial|partition|partner|password|path|pause|percentage|permission_set|persisted|period|physical_only|plan_forcing_mode|policy|pool|population|ports|preceding|precision|predicate|presume_abort|primary|primary_role|print|prior|priority |priority_level|private|proc(edure)?|procedure_name|profile|provider|quarter|query_capture_mode|query_governor_cost_limit|query_optimizer_hotfixes|query_store|queue|quoted_identifier|raiserror|range|raw|rcfile|rc2|rc4|rc4_128|rdbms|read_committed_snapshot|read|read_only|read_write|readcommitted|readcommittedlock|readonly|readpast|readuncommitted|readwrite|real|rebuild|receive|recmodel_70backcomp|recompile|reconfigure|recovery|recursive|recursive_triggers|redo_queue|reject_sample_value|reject_type|reject_value|relative|remote|remote_data_archive|remote_proc_transactions|remote_service_name|remove|removed_cursors|removed_exec_context|reorganize|repeat|repeatable|repeatableread|replace|replica|replicated|replnick_100_to_80|replnickarray_80_to_100|replnickarray_100_to_80|required|required_cursopt|resample|reset|resource|resource_manager_location|respect|restart|restore|restricted_user|resume|retaindays|retention|return|revert|rewind|rewindonly|returns|robust|role|rollup|root|round_robin|route|row|rowdump|rowguidcol|rowlock|row_terminator|rows|rows_per_batch|rowsets_only|rowterminator|rowversion|rsa_1024|rsa_2048|rsa_3072|rsa_4096|rsa_512|safe|safety|sample|save|scalar|schema|schemabinding|scoped|scroll|scroll_locks|sddl|second|secexpr|seconds|secondary|secondary_only|secondary_role|secret|security|securityaudit|selective|self|send|sent|sequence|serde_method|serializable|server|service|service_broker|service_name|service_objective|session_timeout|session|sessions|seterror|setopts|sets|shard_map_manager|shard_map_name|sharded|shared_memory|shortest_path|show_statistics|showplan_all|showplan_text|showplan_xml|showplan_xml_with_recompile|shrinkdb|shutdown|sid|signature|simple|single_blob|single_clob|single_nclob|single_user|singleton|site|size|size_based_cleanup_mode|skip|smalldatetime|smallint|smallmoney|snapshot|snapshot_import|snapshotrestorephase|soap|softnuma|sort_in_tempdb|sorted_data|sorted_data_reorg|spatial|sql|sql_bigint|sql_binary|sql_bit|sql_char|sql_date|sql_decimal|sql_double|sql_float|sql_guid|sql_handle|sql_longvarbinary|sql_longvarchar|sql_numeric|sql_real|sql_smallint|sql_time|sql_timestamp|sql_tinyint|sql_tsi_day|sql_tsi_frac_second|sql_tsi_hour|sql_tsi_minute|sql_tsi_month|sql_tsi_quarter|sql_tsi_second|sql_tsi_week|sql_tsi_year|sql_type_date|sql_type_time|sql_type_timestamp|sql_varbinary|sql_varchar|sql_variant|sql_wchar|sql_wlongvarchar|ssl|ssl_port|standard|standby|start|start_date|started|stat_header|state|statement|static|statistics|statistics_incremental|statistics_norecompute|statistics_only|statman|stats|stats_stream|status|stop|stop_on_error|stopat|stopatmark|stopbeforemark|stoplist|stopped|string_delimiter|subject|supplemental_logging|supported|suspend|symmetric|synchronous_commit|synonym|sysname|system|system_time|system_versioning|table|tableresults|tablock|tablockx|take|tape|target|target_index|target_partition|target_recovery_time|tcp|temporal_history_retention|text|textimage_on|then|thesaurus|throw|time|timeout|timestamp|tinyint|to|top|torn_page_detection|track_columns_updated|trailing|tran|transaction|transfer|transform_noise_words|triple_des|triple_des_3key|truncate|trustworthy|try|tsql|two_digit_year_cutoff|type|type_desc|type_warning|tzoffset|uid|unbounded|uncommitted|unique|uniqueidentifier|unlimited|unload|unlock|unsafe|updlock|url|use|useplan|useroptions|use_type_default|using|utcdatetime|valid_xml|validation|value|values|varbinary|varchar|verbose|verifyonly|version|view_metadata|virtual_device|visiblity|wait_at_low_priority|waitfor|webmethod|week|weekday|weight|well_formed_xml|when|while|widechar|widechar_ansi|widenative|window|windows|with|within|within group|witness|without|without_array_wrapper|workload|wsdl|xact_abort|xlock|xml|xmlschema|xquery|xsinil|year|zone)\\\\b","name":"keyword.other.sql"},{"captures":{"1":{"name":"punctuation.section.scope.begin.sql"},"2":{"name":"punctuation.section.scope.end.sql"}},"comment":"Allow for special ↩ behavior","match":"(\\\\()(\\\\))","name":"meta.block.sql"}],"repository":{"comment-block":{"begin":"/\\\\*","captures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\*/","name":"comment.block","patterns":[{"include":"#comment-block"}]},"comments":{"patterns":[{"begin":"(^[ \\\\t]+)?(?=--)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[{"begin":"--","beginCaptures":{"0":{"name":"punctuation.definition.comment.sql"}},"end":"\\\\n","name":"comment.line.double-dash.sql"}]},{"begin":"(^[ \\\\t]+)?(?=#)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.sql"}},"end":"(?!\\\\G)","patterns":[]},{"include":"#comment-block"}]},"regexps":{"patterns":[{"begin":"/(?=\\\\S.*/)","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"/","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.sql","patterns":[{"include":"#string_interpolation"},{"match":"\\\\\\\\/","name":"constant.character.escape.slash.sql"}]},{"begin":"%r\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"comment":"We should probably handle nested bracket pairs!?! -- Allan","end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.regexp.modr.sql","patterns":[{"include":"#string_interpolation"}]}]},"string_escape":{"match":"\\\\\\\\.","name":"constant.character.escape.sql"},"string_interpolation":{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"match":"(#\\\\{)([^\\\\}]*)(\\\\})","name":"string.interpolated.sql"},"strings":{"patterns":[{"captures":{"2":{"name":"punctuation.definition.string.begin.sql"},"3":{"name":"punctuation.definition.string.end.sql"}},"comment":"this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.","match":"(N)?(\')[^\']*(\')","name":"string.quoted.single.sql"},{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\'","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.single.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"comment":"this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.","match":"(`)[^`\\\\\\\\]*(`)","name":"string.quoted.other.backtick.sql"},{"begin":"`","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"`","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.other.backtick.sql","patterns":[{"include":"#string_escape"}]},{"captures":{"1":{"name":"punctuation.definition.string.begin.sql"},"2":{"name":"punctuation.definition.string.end.sql"}},"comment":"this is faster than the next begin/end rule since sub-pattern will match till end-of-line and SQL files tend to have very long lines.","match":"(\\")[^\\"#]*(\\")","name":"string.quoted.double.sql"},{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\"","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.quoted.double.sql","patterns":[{"include":"#string_interpolation"}]},{"begin":"%\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.sql"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.string.end.sql"}},"name":"string.other.quoted.brackets.sql","patterns":[{"include":"#string_interpolation"}]}]}},"scopeName":"source.sql"}')),V8=[z8],W8=Object.freeze(JSON.parse('{"displayName":"TypeScript","name":"typescript","patterns":[{"include":"#directives"},{"include":"#statements"},{"include":"#shebang"}],"repository":{"access-modifier":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(abstract|declare|override|public|protected|private|readonly|static)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},"after-operator-block-as-object-literal":{"begin":"(?<!\\\\+\\\\+|--)(?<=[:=(,\\\\[?+!>]|^await|[^\\\\._$[:alnum:]]await|^return|[^\\\\._$[:alnum:]]return|^yield|[^\\\\._$[:alnum:]]yield|^throw|[^\\\\._$[:alnum:]]throw|^in|[^\\\\._$[:alnum:]]in|^of|[^\\\\._$[:alnum:]]of|^typeof|[^\\\\._$[:alnum:]]typeof|&&|\\\\|\\\\||\\\\*)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.objectliteral.ts","patterns":[{"include":"#object-member"}]},"array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element"},{"include":"#punctuation-comma"}]},"array-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#binding-element-const"},{"include":"#punctuation-comma"}]},"array-literal":{"begin":"\\\\s*(\\\\[)","beginCaptures":{"1":{"name":"meta.brace.square.ts"}},"end":"\\\\]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.array.literal.ts","patterns":[{"include":"#expression"},{"include":"#punctuation-comma"}]},"arrow-function":{"patterns":[{"captures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"variable.parameter.ts"}},"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(\\\\basync)\\\\s+)?([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?==>)","name":"meta.arrow.ts"},{"begin":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(\\\\basync))?((?<![})!\\\\]])\\\\s*(?=((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>)))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?==>|\\\\{|(^\\\\s*(export|function|class|interface|let|var|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.arrow.ts","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#arrow-return-type"},{"include":"#possibly-arrow-return-type"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"((?<=\\\\}|\\\\S)(?<!=>)|((?!\\\\{)(?=\\\\S)))(?!\\\\/[\\\\/\\\\*])","name":"meta.arrow.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#decl-block"},{"include":"#expression"}]}]},"arrow-return-type":{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?==>|\\\\{|(^\\\\s*(export|function|class|interface|let|var|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","name":"meta.return.type.arrow.ts","patterns":[{"include":"#arrow-return-type-body"}]},"arrow-return-type-body":{"patterns":[{"begin":"(?<=[:])(?=\\\\s*\\\\{)","end":"(?<=\\\\})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"async-modifier":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(async)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.async.ts"},"binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern"},{"include":"#array-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"}]},"binding-element-const":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#object-binding-pattern-const"},{"include":"#array-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"}]},"boolean-literal":{"patterns":[{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))true(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.true.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))false(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.boolean.false.ts"}]},"brackets":{"patterns":[{"begin":"{","end":"}|(?=\\\\*/)","patterns":[{"include":"#brackets"}]},{"begin":"\\\\[","end":"\\\\]|(?=\\\\*/)","patterns":[{"include":"#brackets"}]}]},"cast":{"patterns":[{"captures":{"1":{"name":"meta.brace.angle.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"meta.brace.angle.ts"}},"match":"\\\\s*(<)\\\\s*(const)\\\\s*(>)","name":"cast.expr.ts"},{"begin":"(?:(?<!\\\\+\\\\+|--)(?<=^return|[^\\\\._$[:alnum:]]return|^throw|[^\\\\._$[:alnum:]]throw|^yield|[^\\\\._$[:alnum:]]yield|^await|[^\\\\._$[:alnum:]]await|^default|[^\\\\._$[:alnum:]]default|[=(,:>*?\\\\&\\\\|\\\\^]|[^_$[:alnum:]](?:\\\\+\\\\+|\\\\-\\\\-)|[^\\\\+]\\\\+|[^\\\\-]\\\\-))\\\\s*(<)(?!<?\\\\=)(?!\\\\s*$)","beginCaptures":{"1":{"name":"meta.brace.angle.ts"}},"end":"(\\\\>)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]},{"begin":"(?:(?<=^))\\\\s*(<)(?=[_$[:alpha:]][_$[:alnum:]]*\\\\s*>)","beginCaptures":{"1":{"name":"meta.brace.angle.ts"}},"end":"(\\\\>)","endCaptures":{"1":{"name":"meta.brace.angle.ts"}},"name":"cast.expr.ts","patterns":[{"include":"#type"}]}]},"class-declaration":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(class)\\\\b(?=\\\\s+|/[/*])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.class.ts"}},"end":"(?<=\\\\})","name":"meta.class.ts","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-declaration-or-expression-patterns":{"patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.class.ts"}},"match":"[_$[:alpha:]][_$[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"class-expression":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(class)\\\\b(?=\\\\s+|[<{]|\\\\/[\\\\/*])","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.type.class.ts"}},"end":"(?<=\\\\})","name":"meta.class.ts","patterns":[{"include":"#class-declaration-or-expression-patterns"}]},"class-or-interface-body":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"include":"#decorator"},{"begin":"(?<=:)\\\\s*","end":"(?=\\\\s|[;),}\\\\]:\\\\-\\\\+]|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","patterns":[{"include":"#expression"}]},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#field-declaration"},{"include":"#string"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"include":"#access-modifier"},{"include":"#property-accessor"},{"include":"#async-modifier"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#expression"},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"}]},"class-or-interface-heritage":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(extends|implements)\\\\b)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?=\\\\{)","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"include":"#type-parameters"},{"include":"#expressionWithoutIdentifiers"},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))(?=\\\\s*[_$[:alpha:]][_$[:alnum:]]*(\\\\s*\\\\??\\\\.\\\\s*[_$[:alpha:]][_$[:alnum:]]*)*\\\\s*)"},{"captures":{"1":{"name":"entity.other.inherited-class.ts"}},"match":"([_$[:alpha:]][_$[:alnum:]]*)"},{"include":"#expressionPunctuations"}]},"comment":{"patterns":[{"begin":"/\\\\*\\\\*(?!/)","beginCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"name":"comment.block.documentation.ts","patterns":[{"include":"#docblock"}]},{"begin":"(/\\\\*)(?:\\\\s*((@)internal)(?=\\\\s|(\\\\*/)))?","beginCaptures":{"1":{"name":"punctuation.definition.comment.ts"},"2":{"name":"storage.type.internaldeclaration.ts"},"3":{"name":"punctuation.decorator.internaldeclaration.ts"}},"end":"\\\\*/","endCaptures":{"0":{"name":"punctuation.definition.comment.ts"}},"name":"comment.block.ts"},{"begin":"(^[ \\\\t]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ts"},"2":{"name":"comment.line.double-slash.ts"},"3":{"name":"punctuation.definition.comment.ts"},"4":{"name":"storage.type.internaldeclaration.ts"},"5":{"name":"punctuation.decorator.internaldeclaration.ts"}},"contentName":"comment.line.double-slash.ts","end":"(?=$)"}]},"control-statement":{"patterns":[{"include":"#switch-statement"},{"include":"#for-loop"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(catch|finally|throw|try)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.trycatch.ts"},{"captures":{"1":{"name":"keyword.control.loop.ts"},"2":{"name":"entity.name.label.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|goto)\\\\s+([_$[:alpha:]][_$[:alnum:]]*)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(break|continue|do|goto|while)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.loop.ts"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(return)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.control.flow.ts"}},"end":"(?=[;}]|$|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","patterns":[{"include":"#expression"}]},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default|switch)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.switch.ts"},{"include":"#if-statement"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(else|if)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.conditional.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(with)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.with.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(package)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(debugger)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.other.debugger.ts"}]},"decl-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.block.ts","patterns":[{"include":"#statements"}]},"declaration":{"patterns":[{"include":"#decorator"},{"include":"#var-expr"},{"include":"#function-declaration"},{"include":"#class-declaration"},{"include":"#interface-declaration"},{"include":"#enum-declaration"},{"include":"#namespace-declaration"},{"include":"#type-alias-declaration"},{"include":"#import-equals-declaration"},{"include":"#import-declaration"},{"include":"#export-declaration"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(declare|export)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"}]},"decorator":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))\\\\@","beginCaptures":{"0":{"name":"punctuation.decorator.ts"}},"end":"(?=\\\\s)","name":"meta.decorator.ts","patterns":[{"include":"#expression"}]},"destructuring-const":{"patterns":[{"begin":"(?<!=|:|^of|[^\\\\._$[:alnum:]]of|^in|[^\\\\._$[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.ts","patterns":[{"include":"#object-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<!=|:|^of|[^\\\\._$[:alnum:]]of|^in|[^\\\\._$[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.ts","patterns":[{"include":"#array-binding-pattern-const"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-parameter":{"patterns":[{"begin":"(?<!=|:)\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"name":"meta.parameter.object-binding-pattern.ts","patterns":[{"include":"#parameter-object-binding-element"}]},{"begin":"(?<!=|:)\\\\s*(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"name":"meta.paramter.array-binding-pattern.ts","patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]}]},"destructuring-parameter-rest":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"variable.parameter.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([_$[:alpha:]][_$[:alnum:]]*)"},"destructuring-variable":{"patterns":[{"begin":"(?<!=|:|^of|[^\\\\._$[:alnum:]]of|^in|[^\\\\._$[:alnum:]]in)\\\\s*(?=\\\\{)","end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.object-binding-pattern-variable.ts","patterns":[{"include":"#object-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]},{"begin":"(?<!=|:|^of|[^\\\\._$[:alnum:]]of|^in|[^\\\\._$[:alnum:]]in)\\\\s*(?=\\\\[)","end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","name":"meta.array-binding-pattern-variable.ts","patterns":[{"include":"#array-binding-pattern"},{"include":"#type-annotation"},{"include":"#comment"}]}]},"destructuring-variable-rest":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"meta.definition.variable.ts variable.other.readwrite.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([_$[:alpha:]][_$[:alnum:]]*)"},"destructuring-variable-rest-const":{"captures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"meta.definition.variable.ts variable.other.constant.ts"}},"match":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?([_$[:alpha:]][_$[:alnum:]]*)"},"directives":{"begin":"^(///)\\\\s*(?=<(reference|amd-dependency|amd-module)(\\\\s+(path|types|no-default-lib|lib|name|resolution-mode)\\\\s*=\\\\s*((\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)))+\\\\s*/>\\\\s*$)","beginCaptures":{"1":{"name":"punctuation.definition.comment.ts"}},"end":"(?=$)","name":"comment.line.triple-slash.directive.ts","patterns":[{"begin":"(<)(reference|amd-dependency|amd-module)","beginCaptures":{"1":{"name":"punctuation.definition.tag.directive.ts"},"2":{"name":"entity.name.tag.directive.ts"}},"end":"/>","endCaptures":{"0":{"name":"punctuation.definition.tag.directive.ts"}},"name":"meta.tag.ts","patterns":[{"match":"path|types|no-default-lib|lib|name|resolution-mode","name":"entity.other.attribute-name.directive.ts"},{"match":"=","name":"keyword.operator.assignment.ts"},{"include":"#string"}]}]},"docblock":{"patterns":[{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.access-type.jsdoc"}},"match":"((@)(?:access|api))\\\\s+(private|protected|public)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"5":{"name":"constant.other.email.link.underline.jsdoc"},"6":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"match":"((@)author)\\\\s+([^@\\\\s<>*/](?:[^@<>*/]|\\\\*[^/])*)(?:\\\\s*(<)([^>\\\\s]+)(>))?"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"},"4":{"name":"keyword.operator.control.jsdoc"},"5":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)borrows)\\\\s+((?:[^@\\\\s*/]|\\\\*[^/])+)\\\\s+(as)\\\\s+((?:[^@\\\\s*/]|\\\\*[^/])+)"},{"begin":"((@)example)\\\\s+","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=@|\\\\*/)","name":"meta.example.jsdoc","patterns":[{"match":"^\\\\s\\\\*\\\\s+"},{"begin":"\\\\G(<)caption(>)","beginCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}},"contentName":"constant.other.description.jsdoc","end":"(</)caption(>)|(?=\\\\*/)","endCaptures":{"0":{"name":"entity.name.tag.inline.jsdoc"},"1":{"name":"punctuation.definition.bracket.angle.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.angle.end.jsdoc"}}},{"captures":{"0":{"name":"source.embedded.ts"}},"match":"[^\\\\s@*](?:[^*]|\\\\*[^/])*"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"constant.language.symbol-type.jsdoc"}},"match":"((@)kind)\\\\s+(class|constant|event|external|file|function|member|mixin|module|namespace|typedef)\\\\b"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.link.underline.jsdoc"},"4":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)see)\\\\s+(?:((?=https?://)(?:[^\\\\s*]|\\\\*[^/])+)|((?!https?://|(?:\\\\[[^\\\\[\\\\]]*\\\\])?{@(?:link|linkcode|linkplain|tutorial)\\\\b)(?:[^@\\\\s*/]|\\\\*[^/])+))"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)template)\\\\s+([A-Za-z_$][\\\\w$.\\\\[\\\\]]*(?:\\\\s*,\\\\s*[A-Za-z_$][\\\\w$.\\\\[\\\\]]*)*)"},{"begin":"((@)template)\\\\s+(?={)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^{}\\\\[\\\\]A-Za-z_$])","patterns":[{"include":"#jsdoctype"},{"match":"([A-Za-z_$][\\\\w$.\\\\[\\\\]]*)","name":"variable.other.jsdoc"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:arg|argument|const|constant|member|namespace|param|var))\\\\s+([A-Za-z_$][\\\\w$.\\\\[\\\\]]*)"},{"begin":"((@)typedef)\\\\s+(?={)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^{}\\\\[\\\\]A-Za-z_$])","patterns":[{"include":"#jsdoctype"},{"match":"(?:[^@\\\\s*/]|\\\\*[^/])+","name":"entity.name.type.instance.jsdoc"}]},{"begin":"((@)(?:arg|argument|const|constant|member|namespace|param|prop|property|var))\\\\s+(?={)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^{}\\\\[\\\\]A-Za-z_$])","patterns":[{"include":"#jsdoctype"},{"match":"([A-Za-z_$][\\\\w$.\\\\[\\\\]]*)","name":"variable.other.jsdoc"},{"captures":{"1":{"name":"punctuation.definition.optional-value.begin.bracket.square.jsdoc"},"2":{"name":"keyword.operator.assignment.jsdoc"},"3":{"name":"source.embedded.ts"},"4":{"name":"punctuation.definition.optional-value.end.bracket.square.jsdoc"},"5":{"name":"invalid.illegal.syntax.jsdoc"}},"match":"(\\\\[)\\\\s*[\\\\w$]+(?:(?:\\\\[\\\\])?\\\\.[\\\\w$]+)*(?:\\\\s*(=)\\\\s*((?>\\"(?:(?:\\\\*(?!/))|(?:\\\\\\\\(?!\\"))|[^*\\\\\\\\])*?\\"|\'(?:(?:\\\\*(?!/))|(?:\\\\\\\\(?!\'))|[^*\\\\\\\\])*?\'|\\\\[(?:(?:\\\\*(?!/))|[^*])*?\\\\]|(?:(?:\\\\*(?!/))|\\\\s(?!\\\\s*\\\\])|\\\\[.*?(?:\\\\]|(?=\\\\*/))|[^*\\\\s\\\\[\\\\]])*)*))?\\\\s*(?:(\\\\])((?:[^*\\\\s]|\\\\*[^\\\\s/])+)?|(?=\\\\*/))","name":"variable.other.jsdoc"}]},{"begin":"((@)(?:define|enum|exception|export|extends|lends|implements|modifies|namespace|private|protected|returns?|satisfies|suppress|this|throws|type|yields?))\\\\s+(?={)","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"end":"(?=\\\\s|\\\\*/|[^{}\\\\[\\\\]A-Za-z_$])","patterns":[{"include":"#jsdoctype"}]},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"entity.name.type.instance.jsdoc"}},"match":"((@)(?:alias|augments|callback|constructs|emits|event|fires|exports?|extends|external|function|func|host|lends|listens|interface|memberof!?|method|module|mixes|mixin|name|requires|see|this|typedef|uses))\\\\s+((?:[^{}@\\\\s*]|\\\\*[^/])+)"},{"begin":"((@)(?:default(?:value)?|license|version))\\\\s+(([\'\'\\"]))","beginCaptures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"},"4":{"name":"punctuation.definition.string.begin.jsdoc"}},"contentName":"variable.other.jsdoc","end":"(\\\\3)|(?=$|\\\\*/)","endCaptures":{"0":{"name":"variable.other.jsdoc"},"1":{"name":"punctuation.definition.string.end.jsdoc"}}},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"},"3":{"name":"variable.other.jsdoc"}},"match":"((@)(?:default(?:value)?|license|tutorial|variation|version))\\\\s+([^\\\\s*]+)"},{"captures":{"1":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"(@)(?:abstract|access|alias|api|arg|argument|async|attribute|augments|author|beta|borrows|bubbles|callback|chainable|class|classdesc|code|config|const|constant|constructor|constructs|copyright|default|defaultvalue|define|deprecated|desc|description|dict|emits|enum|event|example|exception|exports?|extends|extension(?:_?for)?|external|externs|file|fileoverview|final|fires|for|func|function|generator|global|hideconstructor|host|ignore|implements|implicitCast|inherit[Dd]oc|inner|instance|interface|internal|kind|lends|license|listens|main|member|memberof!?|method|mixes|mixins?|modifies|module|name|namespace|noalias|nocollapse|nocompile|nosideeffects|override|overview|package|param|polymer(?:Behavior)?|preserve|private|prop|property|protected|public|read[Oo]nly|record|require[ds]|returns?|see|since|static|struct|submodule|summary|suppress|template|this|throws|todo|tutorial|type|typedef|unrestricted|uses|var|variation|version|virtual|writeOnce|yields?)\\\\b","name":"storage.type.class.jsdoc"},{"include":"#inline-tags"},{"captures":{"1":{"name":"storage.type.class.jsdoc"},"2":{"name":"punctuation.definition.block.tag.jsdoc"}},"match":"((@)(?:[_$[:alpha:]][_$[:alnum:]]*))(?=\\\\s+)"}]},"enum-declaration":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?(?:\\\\b(const)\\\\s+)?\\\\b(enum)\\\\s+([_$[:alpha:]][_$[:alnum:]]*)","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.enum.ts"},"5":{"name":"entity.name.type.enum.ts"}},"end":"(?<=\\\\})","name":"meta.enum.declaration.ts","patterns":[{"include":"#comment"},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"begin":"([_$[:alpha:]][_$[:alnum:]]*)","beginCaptures":{"0":{"name":"variable.other.enummember.ts"}},"end":"(?=,|\\\\}|$)","patterns":[{"include":"#comment"},{"include":"#variable-initializer"}]},{"begin":"(?=((\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\])))","end":"(?=,|\\\\}|$)","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#comment"},{"include":"#variable-initializer"}]},{"include":"#punctuation-comma"}]}]},"export-declaration":{"patterns":[{"captures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.as.ts"},"3":{"name":"storage.type.namespace.ts"},"4":{"name":"entity.name.type.module.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)\\\\s+(as)\\\\s+(namespace)\\\\s+([_$[:alpha:]][_$[:alnum:]]*)"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?(?:(?:\\\\s*(=))|(?:\\\\s+(default)(?=\\\\s+)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.type.ts"},"3":{"name":"keyword.operator.assignment.ts"},"4":{"name":"keyword.control.default.ts"}},"end":"(?=$|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","name":"meta.export.default.ts","patterns":[{"include":"#interface-declaration"},{"include":"#expression"}]},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(export)(?:\\\\s+(type))?\\\\b(?!(\\\\$)|(\\\\s*:))((?=\\\\s*[\\\\{*])|((?=\\\\s*[_$[:alpha:]][_$[:alnum:]]*(\\\\s|,))(?!\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"keyword.control.type.ts"}},"end":"(?=$|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","name":"meta.export.ts","patterns":[{"include":"#import-export-declaration"}]}]},"expression":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-inside-possibly-arrow-parens":{"patterns":[{"include":"#expressionWithoutIdentifiers"},{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>)))))|(:\\\\s*((<)|([(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>)))))))|(:\\\\s*(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^<>(),=])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*[:,]|$)"},{"include":"#type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.ts"},{"include":"#identifiers"},{"include":"#expressionPunctuations"}]},"expression-operators":{"patterns":[{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(await)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.control.flow.ts"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?=\\\\s*\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*\\\\*)","beginCaptures":{"1":{"name":"keyword.control.flow.ts"}},"end":"\\\\*","endCaptures":{"0":{"name":"keyword.generator.asterisk.ts"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.control.flow.ts"},"2":{"name":"keyword.generator.asterisk.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(yield)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s*(\\\\*))?"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))delete(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.delete.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))in(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.in.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))of(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?!\\\\()","name":"keyword.operator.expression.of.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))instanceof(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.instanceof.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.new.ts"},{"include":"#typeof-operator"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))void(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.void.ts"},{"captures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"storage.modifier.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*($|[;,:})\\\\]]))"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"keyword.control.satisfies.ts"}},"end":"(?=^|[;),}\\\\]:?\\\\-\\\\+\\\\>]|\\\\|\\\\||\\\\&\\\\&|\\\\!\\\\=\\\\=|$|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisfies)\\\\s+)|(\\\\s+\\\\<))","patterns":[{"include":"#type"}]},{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.spread.ts"},{"match":"\\\\*=|(?<!\\\\()/=|%=|\\\\+=|\\\\-=","name":"keyword.operator.assignment.compound.ts"},{"match":"\\\\&=|\\\\^=|<<=|>>=|>>>=|\\\\|=","name":"keyword.operator.assignment.compound.bitwise.ts"},{"match":"<<|>>>|>>","name":"keyword.operator.bitwise.shift.ts"},{"match":"===|!==|==|!=","name":"keyword.operator.comparison.ts"},{"match":"<=|>=|<>|<|>","name":"keyword.operator.relational.ts"},{"captures":{"1":{"name":"keyword.operator.logical.ts"},"2":{"name":"keyword.operator.assignment.compound.ts"},"3":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[_$[:alnum:]])(\\\\!)\\\\s*(?:(/=)|(?:(/)(?![/*])))"},{"match":"\\\\!|&&|\\\\|\\\\||\\\\?\\\\?","name":"keyword.operator.logical.ts"},{"match":"\\\\&|~|\\\\^|\\\\|","name":"keyword.operator.bitwise.ts"},{"match":"\\\\=","name":"keyword.operator.assignment.ts"},{"match":"--","name":"keyword.operator.decrement.ts"},{"match":"\\\\+\\\\+","name":"keyword.operator.increment.ts"},{"match":"%|\\\\*|/|-|\\\\+","name":"keyword.operator.arithmetic.ts"},{"begin":"(?<=[_$[:alnum:])\\\\]])\\\\s*(?=(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)+(?:(/=)|(?:(/)(?![/*]))))","end":"(?:(/=)|(?:(/)(?!\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/)))","endCaptures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"patterns":[{"include":"#comment"}]},{"captures":{"1":{"name":"keyword.operator.assignment.compound.ts"},"2":{"name":"keyword.operator.arithmetic.ts"}},"match":"(?<=[_$[:alnum:])\\\\]])\\\\s*(?:(/=)|(?:(/)(?![/*])))"}]},"expressionPunctuations":{"patterns":[{"include":"#punctuation-comma"},{"include":"#punctuation-accessor"}]},"expressionWithoutIdentifiers":{"patterns":[{"include":"#string"},{"include":"#regex"},{"include":"#comment"},{"include":"#function-expression"},{"include":"#class-expression"},{"include":"#arrow-function"},{"include":"#paren-expression-possibly-arrow"},{"include":"#cast"},{"include":"#ternary-expression"},{"include":"#new-expr"},{"include":"#instanceof-expr"},{"include":"#object-literal"},{"include":"#expression-operators"},{"include":"#function-call"},{"include":"#literal"},{"include":"#support-objects"},{"include":"#paren-expression"}]},"field-declaration":{"begin":"(?<!\\\\()(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s+)?(?=\\\\s*((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|(\\\\#?[_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(?:(?:(\\\\?)|(\\\\!))\\\\s*)?(=|:|;|,|\\\\}|$))","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?=\\\\}|;|,|$|(^(?!\\\\s*((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|(\\\\#?[_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(?:(?:(\\\\?)|(\\\\!))\\\\s*)?(=|:|;|,|$))))|(?<=\\\\})","name":"meta.field.declaration.ts","patterns":[{"include":"#variable-initializer"},{"include":"#type-annotation"},{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"include":"#comment"},{"captures":{"1":{"name":"meta.definition.property.ts entity.name.function.ts"},"2":{"name":"keyword.operator.optional.ts"},"3":{"name":"keyword.operator.definiteassignment.ts"}},"match":"(\\\\#?[_$[:alpha:]][_$[:alnum:]]*)(?:(\\\\?)|(\\\\!))?(?=\\\\s*\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>)))))|(:\\\\s*((<)|([(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>)))))))|(:\\\\s*(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^<>(),=])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>))))))"},{"match":"\\\\#?[_$[:alpha:]][_$[:alnum:]]*","name":"meta.definition.property.ts variable.object.property.ts"},{"match":"\\\\?","name":"keyword.operator.optional.ts"},{"match":"\\\\!","name":"keyword.operator.definiteassignment.ts"}]},"for-loop":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))for(?=((\\\\s+|(\\\\s*\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*))await)?\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)?(\\\\())","beginCaptures":{"0":{"name":"keyword.control.loop.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#comment"},{"match":"await","name":"keyword.control.loop.ts"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#var-expr"},{"include":"#expression"},{"include":"#punctuation-semicolon"}]}]},"function-body":{"patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"include":"#function-parameters"},{"include":"#return-type"},{"include":"#type-function-return-type"},{"include":"#decl-block"},{"match":"\\\\*","name":"keyword.generator.asterisk.ts"}]},"function-call":{"patterns":[{"begin":"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(\\\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\\\)]))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(\\\\!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>)*(?<!=)\\\\>))*(?<!=)\\\\>)*(?<!=)>\\\\s*)?\\\\())","end":"(?<=\\\\))(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(\\\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\\\)]))\\\\s*(?:(\\\\?\\\\.\\\\s*)|(\\\\!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>)*(?<!=)\\\\>))*(?<!=)\\\\>)*(?<!=)>\\\\s*)?\\\\())","patterns":[{"begin":"(?=(([_$[:alpha:]][_$[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(\\\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*))","end":"(?=\\\\s*(?:(\\\\?\\\\.\\\\s*)|(\\\\!))?((<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>)*(?<!=)\\\\>))*(?<!=)\\\\>)*(?<!=)>\\\\s*)?\\\\())","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"},{"include":"#paren-expression"}]},{"begin":"(?=(((([_$[:alpha:]][_$[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(\\\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\\\)]))(<\\\\s*[\\\\{\\\\[\\\\(]\\\\s*$))","end":"(?<=\\\\>)(?!(((([_$[:alpha:]][_$[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(\\\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*))|(?<=[\\\\)]))(<\\\\s*[\\\\{\\\\[\\\\(]\\\\s*$))","patterns":[{"begin":"(?=(([_$[:alpha:]][_$[:alnum:]]*)(\\\\s*\\\\??\\\\.\\\\s*(\\\\#?[_$[:alpha:]][_$[:alnum:]]*))*)|(\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*))","end":"(?=(<\\\\s*[\\\\{\\\\[\\\\(]\\\\s*$))","name":"meta.function-call.ts","patterns":[{"include":"#function-call-target"}]},{"include":"#comment"},{"include":"#function-call-optionals"},{"include":"#type-arguments"}]}]},"function-call-optionals":{"patterns":[{"match":"\\\\?\\\\.","name":"meta.function-call.ts punctuation.accessor.optional.ts"},{"match":"\\\\!","name":"meta.function-call.ts keyword.operator.definiteassignment.ts"}]},"function-call-target":{"patterns":[{"include":"#support-function-call-identifiers"},{"match":"(\\\\#?[_$[:alpha:]][_$[:alnum:]]*)","name":"entity.name.function.ts"}]},"function-declaration":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?(?:(async)\\\\s+)?(function\\\\b)(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([_$[:alpha:]][_$[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.async.ts"},"4":{"name":"storage.type.function.ts"},"5":{"name":"keyword.generator.asterisk.ts"},"6":{"name":"meta.definition.function.ts entity.name.function.ts"}},"end":"(?=;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))|(?<=\\\\})","name":"meta.function.ts","patterns":[{"include":"#function-name"},{"include":"#function-body"}]},"function-expression":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(async)\\\\s+)?(function\\\\b)(?:\\\\s*(\\\\*))?(?:(?:\\\\s+|(?<=\\\\*))([_$[:alpha:]][_$[:alnum:]]*))?\\\\s*","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.function.ts"},"3":{"name":"keyword.generator.asterisk.ts"},"4":{"name":"meta.definition.function.ts entity.name.function.ts"}},"end":"(?=;)|(?<=\\\\})","name":"meta.function.expression.ts","patterns":[{"include":"#function-name"},{"include":"#single-line-comment-consuming-line-ending"},{"include":"#function-body"}]},"function-name":{"match":"[_$[:alpha:]][_$[:alnum:]]*","name":"meta.definition.function.ts entity.name.function.ts"},"function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"punctuation.definition.parameters.begin.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.parameters.end.ts"}},"name":"meta.parameters.ts","patterns":[{"include":"#function-parameters-body"}]},"function-parameters-body":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#decorator"},{"include":"#destructuring-parameter"},{"include":"#parameter-name"},{"include":"#parameter-type-annotation"},{"include":"#variable-initializer"},{"match":",","name":"punctuation.separator.parameter.ts"}]},"identifiers":{"patterns":[{"include":"#object-identifiers"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"entity.name.function.ts"}},"match":"(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*)?([_$[:alpha:]][_$[:alnum:]]*)(?=\\\\s*=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>)))))"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.constant.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*(\\\\#?[[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*(\\\\#?[_$[:alpha:]][_$[:alnum:]]*)"},{"match":"([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])","name":"variable.other.constant.ts"},{"match":"[_$[:alpha:]][_$[:alnum:]]*","name":"variable.other.readwrite.ts"}]},"if-statement":{"patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bif\\\\s*(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))\\\\s*(?!\\\\{))","end":"(?=;|$|\\\\})","patterns":[{"include":"#comment"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(if)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.conditional.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression"}]},{"begin":"(?<=\\\\))\\\\s*\\\\/(?![\\\\/*])(?=(?:[^\\\\/\\\\\\\\\\\\[]|\\\\\\\\.|\\\\[([^\\\\]\\\\\\\\]|\\\\\\\\.)*\\\\])+\\\\/([dgimsuvy]+|(?![\\\\/\\\\*])|(?=\\\\/\\\\*))(?!\\\\s*[a-zA-Z0-9_$]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]},{"include":"#statements"}]}]},"import-declaration":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(import)(?:\\\\s+(type)(?!\\\\s+from))?(?!\\\\s*[:\\\\(])(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"}},"end":"(?<!^import|[^\\\\._$[:alnum:]]import)(?=;|$|^)","name":"meta.import.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#string"},{"begin":"(?<=^import|[^\\\\._$[:alnum:]]import)(?!\\\\s*[\\"\'])","end":"\\\\bfrom\\\\b","endCaptures":{"0":{"name":"keyword.control.from.ts"}},"patterns":[{"include":"#import-export-declaration"}]},{"include":"#import-export-declaration"}]},"import-equals-declaration":{"patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(=)\\\\s*(require)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"},"5":{"name":"variable.other.readwrite.alias.ts"},"6":{"name":"keyword.operator.assignment.ts"},"7":{"name":"keyword.control.require.ts"},"8":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.import-equals.external.ts","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(import)(?:\\\\s+(type))?\\\\s+([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(=)\\\\s*(?!require\\\\b)","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"keyword.control.import.ts"},"4":{"name":"keyword.control.type.ts"},"5":{"name":"variable.other.readwrite.alias.ts"},"6":{"name":"keyword.operator.assignment.ts"}},"end":"(?=;|$|^)","name":"meta.import-equals.internal.ts","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))"},{"match":"([_$[:alpha:]][_$[:alnum:]]*)","name":"variable.other.readwrite.ts"}]}]},"import-export-assert-clause":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(with)|(assert))\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"keyword.control.with.ts"},"2":{"name":"keyword.control.assert.ts"},"3":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"patterns":[{"include":"#comment"},{"include":"#string"},{"match":"(?:[_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?=(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*:)","name":"meta.object-literal.key.ts"},{"match":":","name":"punctuation.separator.key-value.ts"}]},"import-export-block":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.block.ts","patterns":[{"include":"#import-export-clause"}]},"import-export-clause":{"patterns":[{"include":"#comment"},{"captures":{"1":{"name":"keyword.control.type.ts"},"2":{"name":"keyword.control.default.ts"},"3":{"name":"constant.language.import-export-all.ts"},"4":{"name":"variable.other.readwrite.ts"},"5":{"name":"string.quoted.alias.ts"},"12":{"name":"keyword.control.as.ts"},"13":{"name":"keyword.control.default.ts"},"14":{"name":"variable.other.readwrite.alias.ts"},"15":{"name":"string.quoted.alias.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(?:(\\\\btype)\\\\s+)?(?:(\\\\bdefault)|(\\\\*)|(\\\\b[_$[:alpha:]][_$[:alnum:]]*)|((\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))))\\\\s+(as)\\\\s+(?:(default(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|([_$[:alpha:]][_$[:alnum:]]*)|((\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)))"},{"include":"#punctuation-comma"},{"match":"\\\\*","name":"constant.language.import-export-all.ts"},{"match":"\\\\b(default)\\\\b","name":"keyword.control.default.ts"},{"captures":{"1":{"name":"keyword.control.type.ts"},"2":{"name":"variable.other.readwrite.alias.ts"},"3":{"name":"string.quoted.alias.ts"}},"match":"(?:(\\\\btype)\\\\s+)?(?:([_$[:alpha:]][_$[:alnum:]]*)|((\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)))"}]},"import-export-declaration":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#import-export-block"},{"match":"\\\\bfrom\\\\b","name":"keyword.control.from.ts"},{"include":"#import-export-assert-clause"},{"include":"#import-export-clause"}]},"indexer-declaration":{"begin":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?=:)","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"meta.brace.square.ts"},"3":{"name":"variable.parameter.ts"}},"end":"(\\\\])\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.ts"},"2":{"name":"keyword.operator.optional.ts"}},"name":"meta.indexer.declaration.ts","patterns":[{"include":"#type-annotation"}]},"indexer-mapped-type-declaration":{"begin":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([+-])?(readonly)\\\\s*)?\\\\s*(\\\\[)\\\\s*([_$[:alpha:]][_$[:alnum:]]*)\\\\s+(in)\\\\s+","beginCaptures":{"1":{"name":"keyword.operator.type.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"meta.brace.square.ts"},"4":{"name":"entity.name.type.ts"},"5":{"name":"keyword.operator.expression.in.ts"}},"end":"(\\\\])([+-])?\\\\s*(\\\\?\\\\s*)?|$","endCaptures":{"1":{"name":"meta.brace.square.ts"},"2":{"name":"keyword.operator.type.modifier.ts"},"3":{"name":"keyword.operator.optional.ts"}},"name":"meta.indexer.mappedtype.declaration.ts","patterns":[{"captures":{"1":{"name":"keyword.control.as.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+"},{"include":"#type"}]},"inline-tags":{"patterns":[{"captures":{"1":{"name":"punctuation.definition.bracket.square.begin.jsdoc"},"2":{"name":"punctuation.definition.bracket.square.end.jsdoc"}},"match":"(\\\\[)[^\\\\]]+(\\\\])(?={@(?:link|linkcode|linkplain|tutorial))","name":"constant.other.description.jsdoc"},{"begin":"({)((@)(?:link(?:code|plain)?|tutorial))\\\\s*","beginCaptures":{"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"},"2":{"name":"storage.type.class.jsdoc"},"3":{"name":"punctuation.definition.inline.tag.jsdoc"}},"end":"}|(?=\\\\*/)","endCaptures":{"0":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"name":"entity.name.type.instance.jsdoc","patterns":[{"captures":{"1":{"name":"variable.other.link.underline.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?=https?://)(?:[^|}\\\\s*]|\\\\*[/])+)(\\\\|)?"},{"captures":{"1":{"name":"variable.other.description.jsdoc"},"2":{"name":"punctuation.separator.pipe.jsdoc"}},"match":"\\\\G((?:[^{}@\\\\s|*]|\\\\*[^/])+)(\\\\|)?"}]}]},"instanceof-expr":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(instanceof)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.expression.instanceof.ts"}},"end":"(?<=\\\\))|(?=[;),}\\\\]:?\\\\-\\\\+\\\\>]|\\\\|\\\\||\\\\&\\\\&|\\\\!\\\\=\\\\=|$|(===|!==|==|!=)|(([\\\\&\\\\~\\\\^\\\\|]\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s+instanceof(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\\\s*[\\\\(]))))","patterns":[{"include":"#type"}]},"interface-declaration":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(?:(abstract)\\\\s+)?\\\\b(interface)\\\\b(?=\\\\s+|/[/*])","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.type.interface.ts"}},"end":"(?<=\\\\})","name":"meta.interface.ts","patterns":[{"include":"#comment"},{"include":"#class-or-interface-heritage"},{"captures":{"0":{"name":"entity.name.type.interface.ts"}},"match":"[_$[:alpha:]][_$[:alnum:]]*"},{"include":"#type-parameters"},{"include":"#class-or-interface-body"}]},"jsdoctype":{"patterns":[{"begin":"\\\\G({)","beginCaptures":{"0":{"name":"entity.name.type.instance.jsdoc"},"1":{"name":"punctuation.definition.bracket.curly.begin.jsdoc"}},"contentName":"entity.name.type.instance.jsdoc","end":"((}))\\\\s*|(?=\\\\*/)","endCaptures":{"1":{"name":"entity.name.type.instance.jsdoc"},"2":{"name":"punctuation.definition.bracket.curly.end.jsdoc"}},"patterns":[{"include":"#brackets"}]}]},"label":{"patterns":[{"begin":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(:)(?=\\\\s*\\\\{)","beginCaptures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"punctuation.separator.label.ts"}},"end":"(?<=\\\\})","patterns":[{"include":"#decl-block"}]},{"captures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"punctuation.separator.label.ts"}},"match":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(:)"}]},"literal":{"patterns":[{"include":"#numeric-literal"},{"include":"#boolean-literal"},{"include":"#null-literal"},{"include":"#undefined-literal"},{"include":"#numericConstant-literal"},{"include":"#array-literal"},{"include":"#this-literal"},{"include":"#super-literal"}]},"method-declaration":{"patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(public|private|protected)\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?\\\\s*\\\\b(constructor)\\\\b(?!:)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"storage.type.ts"}},"end":"(?=\\\\}|;|,|$)|(?<=\\\\})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(public|private|protected)\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:(?:\\\\s*\\\\b(new)\\\\b(?!:)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(?:(\\\\*)\\\\s*)?)(?=\\\\s*((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*))?[\\\\(])","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"keyword.operator.new.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=\\\\}|;|,|$)|(?<=\\\\})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(override)\\\\s+)?(?:\\\\b(public|private|protected)\\\\s+)?(?:\\\\b(abstract)\\\\s+)?(?:\\\\b(async)\\\\s+)?(?:\\\\b(get|set)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*(((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*))?[\\\\(])","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.modifier.ts"},"4":{"name":"storage.modifier.async.ts"},"5":{"name":"storage.type.property.ts"},"6":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=\\\\}|;|,|$)|(?<=\\\\})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"}]}]},"method-declaration-name":{"begin":"(?=((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(\\\\??)\\\\s*[\\\\(\\\\<])","end":"(?=\\\\(|\\\\<)","patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"[_$[:alpha:]][_$[:alnum:]]*","name":"meta.definition.method.ts entity.name.function.ts"},{"match":"\\\\?","name":"keyword.operator.optional.ts"}]},"namespace-declaration":{"begin":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(namespace|module)\\\\s+(?=[_$[:alpha:]\\"\'`]))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.namespace.ts"}},"end":"(?<=\\\\})|(?=;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","name":"meta.namespace.declaration.ts","patterns":[{"include":"#comment"},{"include":"#string"},{"match":"([_$[:alpha:]][_$[:alnum:]]*)","name":"entity.name.type.module.ts"},{"include":"#punctuation-accessor"},{"include":"#decl-block"}]},"new-expr":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.new.ts"}},"end":"(?<=\\\\))|(?=[;),}\\\\]:?\\\\-\\\\+\\\\>]|\\\\|\\\\||\\\\&\\\\&|\\\\!\\\\=\\\\=|$|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))new(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))function((\\\\s+[_$[:alpha:]][_$[:alnum:]]*)|(\\\\s*[\\\\(]))))","name":"new.expr.ts","patterns":[{"include":"#expression"}]},"null-literal":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))null(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.null.ts"},"numeric-literal":{"patterns":[{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.hex.ts"},{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.binary.ts"},{"captures":{"1":{"name":"storage.type.numeric.bigint.ts"}},"match":"\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$)","name":"constant.numeric.octal.ts"},{"captures":{"0":{"name":"constant.numeric.decimal.ts"},"1":{"name":"meta.delimiter.decimal.period.ts"},"2":{"name":"storage.type.numeric.bigint.ts"},"3":{"name":"meta.delimiter.decimal.period.ts"},"4":{"name":"storage.type.numeric.bigint.ts"},"5":{"name":"meta.delimiter.decimal.period.ts"},"6":{"name":"storage.type.numeric.bigint.ts"},"7":{"name":"storage.type.numeric.bigint.ts"},"8":{"name":"meta.delimiter.decimal.period.ts"},"9":{"name":"storage.type.numeric.bigint.ts"},"10":{"name":"meta.delimiter.decimal.period.ts"},"11":{"name":"storage.type.numeric.bigint.ts"},"12":{"name":"meta.delimiter.decimal.period.ts"},"13":{"name":"storage.type.numeric.bigint.ts"},"14":{"name":"storage.type.numeric.bigint.ts"}},"match":"(?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$)"}]},"numericConstant-literal":{"patterns":[{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))NaN(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.nan.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Infinity(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.infinity.ts"}]},"object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(:))","end":"(?=,|\\\\})","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element"}]},{"include":"#object-binding-pattern"},{"include":"#destructuring-variable-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-const":{"patterns":[{"include":"#comment"},{"begin":"(?=((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(:))","end":"(?=,|\\\\})","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#binding-element-const"}]},{"include":"#object-binding-pattern-const"},{"include":"#destructuring-variable-rest-const"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"object-binding-element-propertyName":{"begin":"(?=((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(:))","end":"(:)","endCaptures":{"0":{"name":"punctuation.destructuring.ts"}},"patterns":[{"include":"#string"},{"include":"#array-literal"},{"include":"#numeric-literal"},{"match":"([_$[:alpha:]][_$[:alnum:]]*)","name":"variable.object.property.ts"}]},"object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#object-binding-element"}]},"object-binding-pattern-const":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#object-binding-element-const"}]},"object-identifiers":{"patterns":[{"match":"([_$[:alpha:]][_$[:alnum:]]*)(?=\\\\s*\\\\??\\\\.\\\\s*prototype\\\\b(?!\\\\$))","name":"support.class.ts"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"variable.other.constant.object.property.ts"},"4":{"name":"variable.other.object.property.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*(?:(\\\\#?[[:upper:]][_$[:digit:][:upper:]]*)|(\\\\#?[_$[:alpha:]][_$[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*)"},{"captures":{"1":{"name":"variable.other.constant.object.ts"},"2":{"name":"variable.other.object.ts"}},"match":"(?:([[:upper:]][_$[:digit:][:upper:]]*)|([_$[:alpha:]][_$[:alnum:]]*))(?=\\\\s*\\\\??\\\\.\\\\s*\\\\#?[_$[:alpha:]][_$[:alnum:]]*)"}]},"object-literal":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.objectliteral.ts","patterns":[{"include":"#object-member"}]},"object-literal-method-declaration":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b(get|set)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*(((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*))?[\\\\(])","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=\\\\}|;|,)|(?<=\\\\})","name":"meta.method.declaration.ts","patterns":[{"include":"#method-declaration-name"},{"include":"#function-body"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:\\\\b(async)\\\\s+)?(?:\\\\b(get|set)\\\\s+)?(?:(\\\\*)\\\\s*)?(?=\\\\s*(((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(\\\\??))\\\\s*((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*))?[\\\\(])","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"storage.type.property.ts"},"3":{"name":"keyword.generator.asterisk.ts"}},"end":"(?=\\\\(|\\\\<)","patterns":[{"include":"#method-declaration-name"}]}]},"object-member":{"patterns":[{"include":"#comment"},{"include":"#object-literal-method-declaration"},{"begin":"(?=\\\\[)","end":"(?=:)|((?<=[\\\\]])(?=\\\\s*[\\\\(\\\\<]))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#array-literal"}]},{"begin":"(?=[\\\\\'\\\\\\"\\\\`])","end":"(?=:)|((?<=[\\\\\'\\\\\\"\\\\`])(?=((\\\\s*[\\\\(\\\\<,}])|(\\\\s+(as|satisifies)\\\\s+))))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#string"}]},{"begin":"(?=(\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$)))","end":"(?=:)|(?=\\\\s*([\\\\(\\\\<,}])|(\\\\s+as|satisifies\\\\s+))","name":"meta.object.member.ts meta.object-literal.key.ts","patterns":[{"include":"#comment"},{"include":"#numeric-literal"}]},{"begin":"(?<=[\\\\]\\\\\'\\\\\\"\\\\`])(?=\\\\s*[\\\\(\\\\<])","end":"(?=\\\\}|;|,)|(?<=\\\\})","name":"meta.method.declaration.ts","patterns":[{"include":"#function-body"}]},{"captures":{"0":{"name":"meta.object-literal.key.ts"},"1":{"name":"constant.numeric.decimal.ts"}},"match":"(?![_$[:alpha:]])([[:digit:]]+)\\\\s*(?=(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*:)","name":"meta.object.member.ts"},{"captures":{"0":{"name":"meta.object-literal.key.ts"},"1":{"name":"entity.name.function.ts"}},"match":"(?:([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?=(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*:(\\\\s*\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/)*\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>))))))","name":"meta.object.member.ts"},{"captures":{"0":{"name":"meta.object-literal.key.ts"}},"match":"(?:[_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?=(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*:)","name":"meta.object.member.ts"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=,|\\\\})","name":"meta.object.member.ts","patterns":[{"include":"#expression"}]},{"captures":{"1":{"name":"variable.other.readwrite.ts"}},"match":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?=,|\\\\}|$|\\\\/\\\\/|\\\\/\\\\*)","name":"meta.object.member.ts"},{"captures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"storage.modifier.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as)\\\\s+(const)(?=\\\\s*([,}]|$))","name":"meta.object.member.ts"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(as)|(satisfies))\\\\s+","beginCaptures":{"1":{"name":"keyword.control.as.ts"},"2":{"name":"keyword.control.satisfies.ts"}},"end":"(?=[;),}\\\\]:?\\\\-\\\\+\\\\>]|\\\\|\\\\||\\\\&\\\\&|\\\\!\\\\=\\\\=|$|^|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(as|satisifies)\\\\s+))","name":"meta.object.member.ts","patterns":[{"include":"#type"}]},{"begin":"(?=[_$[:alpha:]][_$[:alnum:]]*\\\\s*=)","end":"(?=,|\\\\}|$|\\\\/\\\\/|\\\\/\\\\*)","name":"meta.object.member.ts","patterns":[{"include":"#expression"}]},{"begin":":","beginCaptures":{"0":{"name":"meta.object-literal.key.ts punctuation.separator.key-value.ts"}},"end":"(?=,|\\\\})","name":"meta.object.member.ts","patterns":[{"begin":"(?<=:)\\\\s*(async)?(?=\\\\s*(<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)\\\\(\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(\\\\()(?=\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"begin":"(?<=:)\\\\s*(async)?\\\\s*(?=\\\\<\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\>)","patterns":[{"include":"#type-parameters"}]},{"begin":"(?<=\\\\>)\\\\s*(\\\\()(?=\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]},{"include":"#possibly-arrow-return-type"},{"include":"#expression"}]},{"include":"#punctuation-comma"},{"include":"#decl-block"}]},"parameter-array-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\[)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.array.ts"}},"end":"\\\\]","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.array.ts"}},"patterns":[{"include":"#parameter-binding-element"},{"include":"#punctuation-comma"}]},"parameter-binding-element":{"patterns":[{"include":"#comment"},{"include":"#string"},{"include":"#numeric-literal"},{"include":"#regex"},{"include":"#parameter-object-binding-pattern"},{"include":"#parameter-array-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"}]},"parameter-name":{"patterns":[{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|protected|private|readonly)\\\\s+(?=(override|public|protected|private|readonly)\\\\s+)"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>)))))|(:\\\\s*((<)|([(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>)))))))|(:\\\\s*(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^<>(),=])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(override|public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*(\\\\??)"}]},"parameter-object-binding-element":{"patterns":[{"include":"#comment"},{"begin":"(?=((\\\\b(?<!\\\\$)0(?:x|X)[0-9a-fA-F][0-9a-fA-F_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:b|B)[01][01_]*(n)?\\\\b(?!\\\\$))|(\\\\b(?<!\\\\$)0(?:o|O)?[0-7][0-7_]*(n)?\\\\b(?!\\\\$))|((?<!\\\\$)(?:(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\B(\\\\.)[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*[eE][+-]?[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(\\\\.)(n)?\\\\B)|(?:\\\\B(\\\\.)[0-9][0-9_]*(n)?\\\\b)|(?:\\\\b[0-9][0-9_]*(n)?\\\\b(?!\\\\.)))(?!\\\\$))|([_$[:alpha:]][_$[:alnum:]]*)|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`)|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])+\\\\]))\\\\s*(:))","end":"(?=,|\\\\})","patterns":[{"include":"#object-binding-element-propertyName"},{"include":"#parameter-binding-element"},{"include":"#paren-expression"}]},{"include":"#parameter-object-binding-pattern"},{"include":"#destructuring-parameter-rest"},{"include":"#variable-initializer"},{"include":"#punctuation-comma"}]},"parameter-object-binding-pattern":{"begin":"(?:(\\\\.\\\\.\\\\.)\\\\s*)?(\\\\{)","beginCaptures":{"1":{"name":"keyword.operator.rest.ts"},"2":{"name":"punctuation.definition.binding-pattern.object.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.binding-pattern.object.ts"}},"patterns":[{"include":"#parameter-object-binding-element"}]},"parameter-type-annotation":{"patterns":[{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?=[,)])|(?==[^>])","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"paren-expression":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression"}]},"paren-expression-possibly-arrow":{"patterns":[{"begin":"(?<=[(=,])\\\\s*(async)?(?=\\\\s*((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*))?\\\\(\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"begin":"(?<=[(=,]|=>|^return|[^\\\\._$[:alnum:]]return)\\\\s*(async)?(?=\\\\s*((((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*))?\\\\()|(<)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)))\\\\s*$)","beginCaptures":{"1":{"name":"storage.modifier.async.ts"}},"end":"(?<=\\\\))","patterns":[{"include":"#paren-expression-possibly-arrow-with-typeparameters"}]},{"include":"#possibly-arrow-return-type"}]},"paren-expression-possibly-arrow-with-typeparameters":{"patterns":[{"include":"#type-parameters"},{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"patterns":[{"include":"#expression-inside-possibly-arrow-parens"}]}]},"possibly-arrow-return-type":{"begin":"(?<=\\\\)|^)\\\\s*(:)(?=\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*=>)","beginCaptures":{"1":{"name":"meta.arrow.ts meta.return.type.arrow.ts keyword.operator.type.annotation.ts"}},"contentName":"meta.arrow.ts meta.return.type.arrow.ts","end":"(?==>|\\\\{|(^\\\\s*(export|function|class|interface|let|var|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|const|import|enum|namespace|module|type|abstract|declare)\\\\s+))","patterns":[{"include":"#arrow-return-type-body"}]},"property-accessor":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(accessor|get|set)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.type.property.ts"},"punctuation-accessor":{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))"},"punctuation-comma":{"match":",","name":"punctuation.separator.comma.ts"},"punctuation-semicolon":{"match":";","name":"punctuation.terminator.statement.ts"},"qstring-double":{"begin":"\\"","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\")|((?:[^\\\\\\\\\\\\n])$)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.double.ts","patterns":[{"include":"#string-character-escape"}]},"qstring-single":{"begin":"\'","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(\\\\\')|((?:[^\\\\\\\\\\\\n])$)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"invalid.illegal.newline.ts"}},"name":"string.quoted.single.ts","patterns":[{"include":"#string-character-escape"}]},"regex":{"patterns":[{"begin":"(?<!\\\\+\\\\+|--|})(?<=[=(:,\\\\[?+!]|^return|[^\\\\._$[:alnum:]]return|^case|[^\\\\._$[:alnum:]]case|=>|&&|\\\\|\\\\||\\\\*\\\\/)\\\\s*(\\\\/)(?![\\\\/*])(?=(?:[^\\\\/\\\\\\\\\\\\[\\\\()]|\\\\\\\\.|\\\\[([^\\\\]\\\\\\\\]|\\\\\\\\.)+\\\\]|\\\\(([^\\\\)\\\\\\\\]|\\\\\\\\.)+\\\\))+\\\\/([dgimsuvy]+|(?![\\\\/\\\\*])|(?=\\\\/\\\\*))(?!\\\\s*[a-zA-Z0-9_$]))","beginCaptures":{"1":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]},{"begin":"((?<![_$[:alnum:])\\\\]]|\\\\+\\\\+|--|}|\\\\*\\\\/)|((?<=^return|[^\\\\._$[:alnum:]]return|^case|[^\\\\._$[:alnum:]]case))\\\\s*)\\\\/(?![\\\\/*])(?=(?:[^\\\\/\\\\\\\\\\\\[]|\\\\\\\\.|\\\\[([^\\\\]\\\\\\\\]|\\\\\\\\.)*\\\\])+\\\\/([dgimsuvy]+|(?![\\\\/\\\\*])|(?=\\\\/\\\\*))(?!\\\\s*[a-zA-Z0-9_$]))","beginCaptures":{"0":{"name":"punctuation.definition.string.begin.ts"}},"end":"(/)([dgimsuvy]*)","endCaptures":{"1":{"name":"punctuation.definition.string.end.ts"},"2":{"name":"keyword.other.ts"}},"name":"string.regexp.ts","patterns":[{"include":"#regexp"}]}]},"regex-character-class":{"patterns":[{"match":"\\\\\\\\[wWsSdDtrnvf]|\\\\.","name":"constant.other.character-class.regexp"},{"match":"\\\\\\\\([0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4})","name":"constant.character.numeric.regexp"},{"match":"\\\\\\\\c[A-Z]","name":"constant.character.control.regexp"},{"match":"\\\\\\\\.","name":"constant.character.escape.backslash.regexp"}]},"regexp":{"patterns":[{"match":"\\\\\\\\[bB]|\\\\^|\\\\$","name":"keyword.control.anchor.regexp"},{"captures":{"0":{"name":"keyword.other.back-reference.regexp"},"1":{"name":"variable.other.regexp"}},"match":"\\\\\\\\[1-9]\\\\d*|\\\\\\\\k<([a-zA-Z_$][\\\\w$]*)>"},{"match":"[?+*]|\\\\{(\\\\d+,\\\\d+|\\\\d+,|,\\\\d+|\\\\d+)\\\\}\\\\??","name":"keyword.operator.quantifier.regexp"},{"match":"\\\\|","name":"keyword.operator.or.regexp"},{"begin":"(\\\\()((\\\\?=)|(\\\\?!)|(\\\\?<=)|(\\\\?<!))","beginCaptures":{"1":{"name":"punctuation.definition.group.regexp"},"2":{"name":"punctuation.definition.group.assertion.regexp"},"3":{"name":"meta.assertion.look-ahead.regexp"},"4":{"name":"meta.assertion.negative-look-ahead.regexp"},"5":{"name":"meta.assertion.look-behind.regexp"},"6":{"name":"meta.assertion.negative-look-behind.regexp"}},"end":"(\\\\))","endCaptures":{"1":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.assertion.regexp","patterns":[{"include":"#regexp"}]},{"begin":"\\\\((?:(\\\\?:)|(?:\\\\?<([a-zA-Z_$][\\\\w$]*)>))?","beginCaptures":{"0":{"name":"punctuation.definition.group.regexp"},"1":{"name":"punctuation.definition.group.no-capture.regexp"},"2":{"name":"variable.other.regexp"}},"end":"\\\\)","endCaptures":{"0":{"name":"punctuation.definition.group.regexp"}},"name":"meta.group.regexp","patterns":[{"include":"#regexp"}]},{"begin":"(\\\\[)(\\\\^)?","beginCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"},"2":{"name":"keyword.operator.negation.regexp"}},"end":"(\\\\])","endCaptures":{"1":{"name":"punctuation.definition.character-class.regexp"}},"name":"constant.other.character-class.set.regexp","patterns":[{"captures":{"1":{"name":"constant.character.numeric.regexp"},"2":{"name":"constant.character.control.regexp"},"3":{"name":"constant.character.escape.backslash.regexp"},"4":{"name":"constant.character.numeric.regexp"},"5":{"name":"constant.character.control.regexp"},"6":{"name":"constant.character.escape.backslash.regexp"}},"match":"(?:.|(\\\\\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))\\\\-(?:[^\\\\]\\\\\\\\]|(\\\\\\\\(?:[0-7]{3}|x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}))|(\\\\\\\\c[A-Z])|(\\\\\\\\.))","name":"constant.other.character-class.range.regexp"},{"include":"#regex-character-class"}]},{"include":"#regex-character-class"}]},"return-type":{"patterns":[{"begin":"(?<=\\\\))\\\\s*(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![:|&])(?=$|^|[{};,]|//)","name":"meta.return.type.ts","patterns":[{"include":"#return-type-core"}]},{"begin":"(?<=\\\\))\\\\s*(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![:|&])((?=[{};,]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.return.type.ts","patterns":[{"include":"#return-type-core"}]}]},"return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<=[:|&])(?=\\\\s*\\\\{)","end":"(?<=\\\\})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"shebang":{"captures":{"1":{"name":"punctuation.definition.comment.ts"}},"match":"\\\\A(#!).*(?=$)","name":"comment.line.shebang.ts"},"single-line-comment-consuming-line-ending":{"begin":"(^[ \\\\t]+)?((//)(?:\\\\s*((@)internal)(?=\\\\s|$))?)","beginCaptures":{"1":{"name":"punctuation.whitespace.comment.leading.ts"},"2":{"name":"comment.line.double-slash.ts"},"3":{"name":"punctuation.definition.comment.ts"},"4":{"name":"storage.type.internaldeclaration.ts"},"5":{"name":"punctuation.decorator.internaldeclaration.ts"}},"contentName":"comment.line.double-slash.ts","end":"(?=^)"},"statements":{"patterns":[{"include":"#declaration"},{"include":"#control-statement"},{"include":"#after-operator-block-as-object-literal"},{"include":"#decl-block"},{"include":"#label"},{"include":"#expression"},{"include":"#punctuation-semicolon"},{"include":"#string"},{"include":"#comment"}]},"string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template"}]},"string-character-escape":{"match":"\\\\\\\\(x[0-9A-Fa-f]{2}|u[0-9A-Fa-f]{4}|u\\\\{[0-9A-Fa-f]+\\\\}|[0-2][0-7]{0,2}|3[0-6][0-7]?|37[0-7]?|[4-7][0-7]?|.|$)","name":"constant.character.escape.ts"},"super-literal":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))super\\\\b(?!\\\\$)","name":"variable.language.super.ts"},"support-function-call-identifiers":{"patterns":[{"include":"#literal"},{"include":"#support-objects"},{"include":"#object-identifiers"},{"include":"#punctuation-accessor"},{"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*[\\\\(]\\\\s*[\\\\\\"\\\\\'\\\\`]))","name":"keyword.operator.expression.import.ts"}]},"support-objects":{"patterns":[{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(arguments)\\\\b(?!\\\\$)","name":"variable.language.arguments.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(Promise)\\\\b(?!\\\\$)","name":"support.class.promise.ts"},{"captures":{"1":{"name":"keyword.control.import.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"support.variable.property.importmeta.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(import)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*(meta)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"keyword.operator.new.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"support.variable.property.target.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(new)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*(target)\\\\b(?!\\\\$)"},{"captures":{"1":{"name":"punctuation.accessor.ts"},"2":{"name":"punctuation.accessor.optional.ts"},"3":{"name":"support.variable.property.ts"},"4":{"name":"support.constant.ts"}},"match":"(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*(?:(?:(constructor|length|prototype|__proto__)\\\\b(?!\\\\$|\\\\s*(<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\())|(?:(EPSILON|MAX_SAFE_INTEGER|MAX_VALUE|MIN_SAFE_INTEGER|MIN_VALUE|NEGATIVE_INFINITY|POSITIVE_INFINITY)\\\\b(?!\\\\$)))"},{"captures":{"1":{"name":"support.type.object.module.ts"},"2":{"name":"support.type.object.module.ts"},"3":{"name":"punctuation.accessor.ts"},"4":{"name":"punctuation.accessor.optional.ts"},"5":{"name":"support.type.object.module.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(exports)|(module)(?:(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))(exports|id|filename|loaded|parent|children))?)\\\\b(?!\\\\$)"}]},"switch-statement":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?=\\\\bswitch\\\\s*\\\\()","end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"switch-statement.expr.ts","patterns":[{"include":"#comment"},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(switch)\\\\s*(\\\\()","beginCaptures":{"1":{"name":"keyword.control.switch.ts"},"2":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"switch-expression.expr.ts","patterns":[{"include":"#expression"}]},{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"(?=\\\\})","name":"switch-block.expr.ts","patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(case|default(?=:))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.control.switch.ts"}},"end":"(?=:)","name":"case-clause.expr.ts","patterns":[{"include":"#expression"}]},{"begin":"(:)\\\\s*(\\\\{)","beginCaptures":{"1":{"name":"case-clause.expr.ts punctuation.definition.section.case-statement.ts"},"2":{"name":"meta.block.ts punctuation.definition.block.ts"}},"contentName":"meta.block.ts","end":"\\\\}","endCaptures":{"0":{"name":"meta.block.ts punctuation.definition.block.ts"}},"patterns":[{"include":"#statements"}]},{"captures":{"0":{"name":"case-clause.expr.ts punctuation.definition.section.case-statement.ts"}},"match":"(:)"},{"include":"#statements"}]}]},"template":{"patterns":[{"include":"#template-call"},{"begin":"([_$[:alpha:]][_$[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#template-substitution-element"},{"include":"#string-character-escape"}]}]},"template-call":{"patterns":[{"begin":"(?=(([_$[:alpha:]][_$[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([_$[:alpha:]][_$[:alnum:]]*)(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>)*(?<!=)\\\\>))*(?<!=)\\\\>)*(?<!=)>\\\\s*)?`)","end":"(?=`)","patterns":[{"begin":"(?=(([_$[:alpha:]][_$[:alnum:]]*\\\\s*\\\\??\\\\.\\\\s*)*|(\\\\??\\\\.\\\\s*)?)([_$[:alpha:]][_$[:alnum:]]*))","end":"(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>)*(?<!=)\\\\>))*(?<!=)\\\\>)*(?<!=)>\\\\s*)?`)","patterns":[{"include":"#support-function-call-identifiers"},{"match":"([_$[:alpha:]][_$[:alnum:]]*)","name":"entity.name.function.tagged-template.ts"}]},{"include":"#type-arguments"}]},{"begin":"([_$[:alpha:]][_$[:alnum:]]*)?\\\\s*(?=(<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))(([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>|\\\\<\\\\s*(((keyof|infer|typeof|readonly)\\\\s+)|(([_$[:alpha:]][_$[:alnum:]]*|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))(?=\\\\s*([\\\\<\\\\>\\\\,\\\\.\\\\[]|=>|&(?!&)|\\\\|(?!\\\\|)))))([^<>\\\\(]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(?<==)\\\\>)*(?<!=)\\\\>))*(?<!=)\\\\>)*(?<!=)>\\\\s*)`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"}},"end":"(?=`)","patterns":[{"include":"#type-arguments"}]}]},"template-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#expression"}]},"template-type":{"patterns":[{"include":"#template-call"},{"begin":"([_$[:alpha:]][_$[:alnum:]]*)?(`)","beginCaptures":{"1":{"name":"entity.name.function.tagged-template.ts"},"2":{"name":"string.template.ts punctuation.definition.string.template.begin.ts"}},"contentName":"string.template.ts","end":"`","endCaptures":{"0":{"name":"string.template.ts punctuation.definition.string.template.end.ts"}},"patterns":[{"include":"#template-type-substitution-element"},{"include":"#string-character-escape"}]}]},"template-type-substitution-element":{"begin":"\\\\$\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.template-expression.begin.ts"}},"contentName":"meta.embedded.line.ts","end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.template-expression.end.ts"}},"name":"meta.template.expression.ts","patterns":[{"include":"#type"}]},"ternary-expression":{"begin":"(?!\\\\?\\\\.\\\\s*[^[:digit:]])(\\\\?)(?!\\\\?)","beginCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"end":"\\\\s*(:)","endCaptures":{"1":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#expression"}]},"this-literal":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))this\\\\b(?!\\\\$)","name":"variable.language.this.ts"},"type":{"patterns":[{"include":"#comment"},{"include":"#type-string"},{"include":"#numeric-literal"},{"include":"#type-primitive"},{"include":"#type-builtin-literals"},{"include":"#type-parameters"},{"include":"#type-tuple"},{"include":"#type-object"},{"include":"#type-operators"},{"include":"#type-conditional"},{"include":"#type-fn-type-parameters"},{"include":"#type-paren-or-function-parameters"},{"include":"#type-function-return-type"},{"captures":{"1":{"name":"storage.modifier.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(readonly)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*"},{"include":"#type-name"}]},"type-alias-declaration":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(type)\\\\b\\\\s+([_$[:alpha:]][_$[:alnum:]]*)\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.type.ts"},"4":{"name":"entity.name.type.alias.ts"}},"end":"(?=\\\\}|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","name":"meta.type.declaration.ts","patterns":[{"include":"#comment"},{"include":"#type-parameters"},{"begin":"(=)\\\\s*(intrinsic)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"},"2":{"name":"keyword.control.intrinsic.ts"}},"end":"(?=\\\\}|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","patterns":[{"include":"#type"}]},{"begin":"(=)\\\\s*","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=\\\\}|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","patterns":[{"include":"#type"}]}]},"type-annotation":{"patterns":[{"begin":"(:)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![:|&])(?!\\\\s*[|&]\\\\s+)((?=^|[,);\\\\}\\\\]]|//)|(?==[^>])|((?<=[\\\\}>\\\\]\\\\)]|[_$[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]},{"begin":"(:)","beginCaptures":{"1":{"name":"keyword.operator.type.annotation.ts"}},"end":"(?<![:|&])((?=[,);\\\\}\\\\]]|\\\\/\\\\/)|(?==[^>])|(?=^\\\\s*$)|((?<=[\\\\}>\\\\]\\\\)]|[_$[:alpha:]])\\\\s*(?=\\\\{)))","name":"meta.type.annotation.ts","patterns":[{"include":"#type"}]}]},"type-arguments":{"begin":"\\\\<","beginCaptures":{"0":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":"\\\\>","endCaptures":{"0":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#type-arguments-body"}]},"type-arguments-body":{"patterns":[{"captures":{"0":{"name":"keyword.operator.type.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(_)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"include":"#type"},{"include":"#punctuation-comma"}]},"type-builtin-literals":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(this|true|false|undefined|null|object)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.builtin.ts"},"type-conditional":{"patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends)\\\\s+","beginCaptures":{"1":{"name":"storage.modifier.ts"}},"end":"(?<=:)","patterns":[{"begin":"\\\\?","beginCaptures":{"0":{"name":"keyword.operator.ternary.ts"}},"end":":","endCaptures":{"0":{"name":"keyword.operator.ternary.ts"}},"patterns":[{"include":"#type"}]},{"include":"#type"}]}]},"type-fn-type-parameters":{"patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b(?=\\\\s*\\\\<)","beginCaptures":{"1":{"name":"meta.type.constructor.ts storage.modifier.ts"},"2":{"name":"meta.type.constructor.ts keyword.control.new.ts"}},"end":"(?<=>)","patterns":[{"include":"#comment"},{"include":"#type-parameters"}]},{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(abstract)\\\\s+)?(new)\\\\b\\\\s*(?=\\\\()","beginCaptures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.control.new.ts"}},"end":"(?<=\\\\))","name":"meta.type.constructor.ts","patterns":[{"include":"#function-parameters"}]},{"begin":"((?=[(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>))))))","end":"(?<=\\\\))","name":"meta.type.function.ts","patterns":[{"include":"#function-parameters"}]}]},"type-function-return-type":{"patterns":[{"begin":"(=>)(?=\\\\s*\\\\S)","beginCaptures":{"1":{"name":"storage.type.function.arrow.ts"}},"end":"(?<!=>)(?<![|&])(?=[,\\\\]\\\\)\\\\{\\\\}=;>:\\\\?]|//|$)","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]},{"begin":"=>","beginCaptures":{"0":{"name":"storage.type.function.arrow.ts"}},"end":"(?<!=>)(?<![|&])((?=[,\\\\]\\\\)\\\\{\\\\}=;:\\\\?>]|//|^\\\\s*$)|((?<=\\\\S)(?=\\\\s*$)))","name":"meta.type.function.return.ts","patterns":[{"include":"#type-function-return-type-core"}]}]},"type-function-return-type-core":{"patterns":[{"include":"#comment"},{"begin":"(?<==>)(?=\\\\s*\\\\{)","end":"(?<=\\\\})","patterns":[{"include":"#type-object"}]},{"include":"#type-predicate-operator"},{"include":"#type"}]},"type-infer":{"patterns":[{"captures":{"1":{"name":"keyword.operator.expression.infer.ts"},"2":{"name":"entity.name.type.ts"},"3":{"name":"keyword.operator.expression.extends.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(infer)\\\\s+([_$[:alpha:]][_$[:alnum:]]*)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))(?:\\\\s+(extends)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))?","name":"meta.type.infer.ts"}]},"type-name":{"patterns":[{"begin":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))\\\\s*(<)","captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"},"4":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts"}},"contentName":"meta.type.parameters.ts","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"begin":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(<)","beginCaptures":{"1":{"name":"entity.name.type.ts"},"2":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.begin.ts"}},"contentName":"meta.type.parameters.ts","end":"(>)","endCaptures":{"1":{"name":"meta.type.parameters.ts punctuation.definition.typeparameters.end.ts"}},"patterns":[{"include":"#type-arguments-body"}]},{"captures":{"1":{"name":"entity.name.type.module.ts"},"2":{"name":"punctuation.accessor.ts"},"3":{"name":"punctuation.accessor.optional.ts"}},"match":"([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(?:(\\\\.)|(\\\\?\\\\.(?!\\\\s*[[:digit:]])))"},{"match":"[_$[:alpha:]][_$[:alnum:]]*","name":"entity.name.type.ts"}]},"type-object":{"begin":"\\\\{","beginCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"end":"\\\\}","endCaptures":{"0":{"name":"punctuation.definition.block.ts"}},"name":"meta.object.type.ts","patterns":[{"include":"#comment"},{"include":"#method-declaration"},{"include":"#indexer-declaration"},{"include":"#indexer-mapped-type-declaration"},{"include":"#field-declaration"},{"include":"#type-annotation"},{"begin":"\\\\.\\\\.\\\\.","beginCaptures":{"0":{"name":"keyword.operator.spread.ts"}},"end":"(?=\\\\}|;|,|$)|(?<=\\\\})","patterns":[{"include":"#type"}]},{"include":"#punctuation-comma"},{"include":"#punctuation-semicolon"},{"include":"#type"}]},"type-operators":{"patterns":[{"include":"#typeof-operator"},{"include":"#type-infer"},{"begin":"([&|])(?=\\\\s*\\\\{)","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?<=\\\\})","patterns":[{"include":"#type-object"}]},{"begin":"[&|]","beginCaptures":{"0":{"name":"keyword.operator.type.ts"}},"end":"(?=\\\\S)"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))keyof(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.keyof.ts"},{"match":"(\\\\?|\\\\:)","name":"keyword.operator.ternary.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))import(?=\\\\s*\\\\()","name":"keyword.operator.expression.import.ts"}]},"type-parameters":{"begin":"(<)","beginCaptures":{"1":{"name":"punctuation.definition.typeparameters.begin.ts"}},"end":"(>)","endCaptures":{"1":{"name":"punctuation.definition.typeparameters.end.ts"}},"name":"meta.type.parameters.ts","patterns":[{"include":"#comment"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(extends|in|out|const)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"storage.modifier.ts"},{"include":"#type"},{"include":"#punctuation-comma"},{"match":"(=)(?!>)","name":"keyword.operator.assignment.ts"}]},"type-paren-or-function-parameters":{"begin":"\\\\(","beginCaptures":{"0":{"name":"meta.brace.round.ts"}},"end":"\\\\)","endCaptures":{"0":{"name":"meta.brace.round.ts"}},"name":"meta.type.paren.cover.ts","patterns":[{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"entity.name.function.ts variable.language.this.ts"},"4":{"name":"entity.name.function.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))\\\\s*(\\\\??)(?=\\\\s*(:\\\\s*((<)|([(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>)))))))|(:\\\\s*(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))))"},{"captures":{"1":{"name":"storage.modifier.ts"},"2":{"name":"keyword.operator.rest.ts"},"3":{"name":"variable.parameter.ts variable.language.this.ts"},"4":{"name":"variable.parameter.ts"},"5":{"name":"keyword.operator.optional.ts"}},"match":"(?:(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(public|private|protected|readonly)\\\\s+)?(?:(\\\\.\\\\.\\\\.)\\\\s*)?(?<!=|:)(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))\\\\s*(\\\\??)(?=:)"},{"include":"#type-annotation"},{"match":",","name":"punctuation.separator.parameter.ts"},{"include":"#type"}]},"type-predicate-operator":{"patterns":[{"captures":{"1":{"name":"keyword.operator.type.asserts.ts"},"2":{"name":"variable.parameter.ts variable.language.this.ts"},"3":{"name":"variable.parameter.ts"},"4":{"name":"keyword.operator.expression.is.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(asserts)\\\\s+)?(?!asserts)(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))\\\\s(is)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"captures":{"1":{"name":"keyword.operator.type.asserts.ts"},"2":{"name":"variable.parameter.ts variable.language.this.ts"},"3":{"name":"variable.parameter.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(asserts)\\\\s+(?!is)(?:(this)|([_$[:alpha:]][_$[:alnum:]]*))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))asserts(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.type.asserts.ts"},{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))is(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"keyword.operator.expression.is.ts"}]},"type-primitive":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(string|number|bigint|boolean|symbol|any|void|never|unknown)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"support.type.primitive.ts"},"type-string":{"patterns":[{"include":"#qstring-single"},{"include":"#qstring-double"},{"include":"#template-type"}]},"type-tuple":{"begin":"\\\\[","beginCaptures":{"0":{"name":"meta.brace.square.ts"}},"end":"\\\\]","endCaptures":{"0":{"name":"meta.brace.square.ts"}},"name":"meta.type.tuple.ts","patterns":[{"match":"\\\\.\\\\.\\\\.","name":"keyword.operator.rest.ts"},{"captures":{"1":{"name":"entity.name.label.ts"},"2":{"name":"keyword.operator.optional.ts"},"3":{"name":"punctuation.separator.label.ts"}},"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))([_$[:alpha:]][_$[:alnum:]]*)\\\\s*(\\\\?)?\\\\s*(:)"},{"include":"#type"},{"include":"#punctuation-comma"}]},"typeof-operator":{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))typeof(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","beginCaptures":{"0":{"name":"keyword.operator.expression.typeof.ts"}},"end":"(?=[,);}\\\\]=>:&|{\\\\?]|(extends\\\\s+)|$|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))","patterns":[{"include":"#type-arguments"},{"include":"#expression"}]},"undefined-literal":{"match":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))undefined(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))","name":"constant.language.undefined.ts"},"var-expr":{"patterns":[{"begin":"(?=(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(var|let)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","end":"(?!(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(var|let)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|;|}|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))|((?<!^let|[^\\\\._$[:alnum:]]let|^var|[^\\\\._$[:alnum:]]var)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(var|let)(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|\\\\/\\\\/)","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?==|;|}|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-variable"},{"include":"#var-single-variable"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?!(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=^|;|}|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))|((?<!^const|[^\\\\._$[:alnum:]]const)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b(const(?!\\\\s+enum\\\\b))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*(?=$|\\\\/\\\\/)","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?==|;|}|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#destructuring-const"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]},{"begin":"(?=(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b((?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?!(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b((?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))((?=;|}|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b))|((?<!^using|[^\\\\._$[:alnum:]]using|^await\\\\s+using|[^\\\\._$[:alnum:]]await\\\\s+using)(?=\\\\s*$)))","name":"meta.var.expr.ts","patterns":[{"begin":"(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(?:(\\\\bexport)\\\\s+)?(?:(\\\\bdeclare)\\\\s+)?\\\\b((?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b))(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.))\\\\s*","beginCaptures":{"1":{"name":"keyword.control.export.ts"},"2":{"name":"storage.modifier.ts"},"3":{"name":"storage.type.ts"}},"end":"(?=\\\\S)"},{"include":"#var-single-const"},{"include":"#variable-initializer"},{"include":"#comment"},{"begin":"(,)\\\\s*((?!\\\\S)|(?=\\\\/\\\\/))","beginCaptures":{"1":{"name":"punctuation.separator.comma.ts"}},"end":"(?<!,)(((?==|;|}|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|^\\\\s*$))|((?<=\\\\S)(?=\\\\s*$)))","patterns":[{"include":"#single-line-comment-consuming-line-ending"},{"include":"#comment"},{"include":"#var-single-const"},{"include":"#punctuation-comma"}]},{"include":"#punctuation-comma"}]}]},"var-single-const":{"patterns":[{"begin":"([_$[:alpha:]][_$[:alnum:]]*)(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>)))))|(:\\\\s*((<)|([(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>)))))))|(:\\\\s*(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^<>(),=])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts entity.name.function.ts"}},"end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b)))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([_$[:alpha:]][_$[:alnum:]]*)","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts"}},"end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b)))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable":{"patterns":[{"begin":"([_$[:alpha:]][_$[:alnum:]]*)(\\\\!)?(?=\\\\s*(=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>)))))|(:\\\\s*((<)|([(]\\\\s*(([)])|(\\\\.\\\\.\\\\.)|([_$[:alnum:]]+\\\\s*(([:,?=])|([)]\\\\s*=>)))))))|(:\\\\s*(?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))Function(?![_$[:alnum:]])(?:(?=\\\\.\\\\.\\\\.)|(?!\\\\.)))|(:\\\\s*((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))))))|(:\\\\s*(=>|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(<[^<>]*>)|[^<>(),=])+=\\\\s*(((async\\\\s+)?((function\\\\s*[(<*])|(function\\\\s+)|([_$[:alpha:]][_$[:alnum:]]*\\\\s*=>)))|((async\\\\s*)?(((<\\\\s*$)|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[\\\\(]\\\\s*((([\\\\{\\\\[]\\\\s*)?$)|((\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})\\\\s*((:\\\\s*\\\\{?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*)))|((\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])\\\\s*((:\\\\s*\\\\[?$)|((\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+\\\\s*)?=\\\\s*))))))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?[(]\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([)]\\\\s*:)|((\\\\.\\\\.\\\\.\\\\s*)?[_$[:alpha:]][_$[:alnum:]]*\\\\s*:)))|((<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<]|\\\\<\\\\s*(((const\\\\s+)?[_$[:alpha:]])|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\]))([^=<>]|=[^<])*\\\\>)*\\\\>)*>\\\\s*)?\\\\(\\\\s*(\\\\/\\\\*([^\\\\*]|(\\\\*[^\\\\/]))*\\\\*\\\\/\\\\s*)*(([_$[:alpha:]]|(\\\\{([^\\\\{\\\\}]|(\\\\{([^\\\\{\\\\}]|\\\\{[^\\\\{\\\\}]*\\\\})*\\\\}))*\\\\})|(\\\\[([^\\\\[\\\\]]|(\\\\[([^\\\\[\\\\]]|\\\\[[^\\\\[\\\\]]*\\\\])*\\\\]))*\\\\])|(\\\\.\\\\.\\\\.\\\\s*[_$[:alpha:]]))([^()\\\\\'\\\\\\"\\\\`]|(\\\\(([^\\\\(\\\\)]|(\\\\(([^\\\\(\\\\)]|\\\\([^\\\\(\\\\)]*\\\\))*\\\\)))*\\\\))|(\\\\\'([^\\\\\'\\\\\\\\]|\\\\\\\\.)*\\\\\')|(\\\\\\"([^\\\\\\"\\\\\\\\]|\\\\\\\\.)*\\\\\\")|(\\\\`([^\\\\`\\\\\\\\]|\\\\\\\\.)*\\\\`))*)?\\\\)(\\\\s*:\\\\s*([^<>\\\\(\\\\)\\\\{\\\\}]|\\\\<([^<>]|\\\\<([^<>]|\\\\<[^<>]+\\\\>)+\\\\>)+\\\\>|\\\\([^\\\\(\\\\)]+\\\\)|\\\\{[^\\\\{\\\\}]+\\\\})+)?\\\\s*=>))))))","beginCaptures":{"1":{"name":"meta.definition.variable.ts entity.name.function.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b)))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([[:upper:]][_$[:digit:][:upper:]]*)(?![_$[:alnum:]])(\\\\!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.constant.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b)))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]},{"begin":"([_$[:alpha:]][_$[:alnum:]]*)(\\\\!)?","beginCaptures":{"1":{"name":"meta.definition.variable.ts variable.other.readwrite.ts"},"2":{"name":"keyword.operator.definiteassignment.ts"}},"end":"(?=$|^|[;,=}]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+)|(;|^\\\\s*$|(?:^\\\\s*(?:abstract|async|(?:\\\\bawait\\\\s+(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)\\\\b)|break|case|catch|class|const|continue|declare|do|else|enum|export|finally|function|for|goto|if|import|interface|let|module|namespace|switch|return|throw|try|type|(?:\\\\busing(?=\\\\s+(?!in\\\\b|of\\\\b(?!\\\\s*(?:of\\\\b|=)))[_$[:alpha:]])\\\\b)|var|while)\\\\b)))","name":"meta.var-single-variable.expr.ts","patterns":[{"include":"#var-single-variable-type-annotation"}]}]},"var-single-variable-type-annotation":{"patterns":[{"include":"#type-annotation"},{"include":"#string"},{"include":"#comment"}]},"variable-initializer":{"patterns":[{"begin":"(?<!=|!)(=)(?!=)(?=\\\\s*\\\\S)(?!\\\\s*.*=>\\\\s*$)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=$|^|[,);}\\\\]]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))","patterns":[{"include":"#expression"}]},{"begin":"(?<!=|!)(=)(?!=)","beginCaptures":{"1":{"name":"keyword.operator.assignment.ts"}},"end":"(?=[,);}\\\\]]|((?<![_$[:alnum:]])(?:(?<=\\\\.\\\\.\\\\.)|(?<!\\\\.))(of|in)\\\\s+))|(?=^\\\\s*$)|(?<![\\\\|\\\\&\\\\+\\\\-\\\\*\\\\/])(?<=\\\\S)(?<!=)(?=\\\\s*$)","patterns":[{"include":"#expression"}]}]}},"scopeName":"source.ts","aliases":["ts"]}')),q8=[W8],Y8=Object.freeze(JSON.parse('{"colors":{"activityBar.activeBorder":"#f9826c","activityBar.background":"#fff","activityBar.border":"#e1e4e8","activityBar.foreground":"#2f363d","activityBar.inactiveForeground":"#959da5","activityBarBadge.background":"#2188ff","activityBarBadge.foreground":"#fff","badge.background":"#dbedff","badge.foreground":"#005cc5","breadcrumb.activeSelectionForeground":"#586069","breadcrumb.focusForeground":"#2f363d","breadcrumb.foreground":"#6a737d","breadcrumbPicker.background":"#fafbfc","button.background":"#159739","button.foreground":"#fff","button.hoverBackground":"#138934","button.secondaryBackground":"#e1e4e8","button.secondaryForeground":"#1b1f23","button.secondaryHoverBackground":"#d1d5da","checkbox.background":"#fafbfc","checkbox.border":"#d1d5da","debugToolBar.background":"#fff","descriptionForeground":"#6a737d","diffEditor.insertedTextBackground":"#34d05822","diffEditor.removedTextBackground":"#d73a4922","dropdown.background":"#fafbfc","dropdown.border":"#e1e4e8","dropdown.foreground":"#2f363d","dropdown.listBackground":"#fff","editor.background":"#fff","editor.findMatchBackground":"#ffdf5d","editor.findMatchHighlightBackground":"#ffdf5d66","editor.focusedStackFrameHighlightBackground":"#28a74525","editor.foldBackground":"#d1d5da11","editor.foreground":"#24292e","editor.inactiveSelectionBackground":"#0366d611","editor.lineHighlightBackground":"#f6f8fa","editor.linkedEditingBackground":"#0366d611","editor.selectionBackground":"#0366d625","editor.selectionHighlightBackground":"#34d05840","editor.selectionHighlightBorder":"#34d05800","editor.stackFrameHighlightBackground":"#ffd33d33","editor.wordHighlightBackground":"#34d05800","editor.wordHighlightBorder":"#24943e99","editor.wordHighlightStrongBackground":"#34d05800","editor.wordHighlightStrongBorder":"#24943e50","editorBracketHighlight.foreground1":"#005cc5","editorBracketHighlight.foreground2":"#e36209","editorBracketHighlight.foreground3":"#5a32a3","editorBracketHighlight.foreground4":"#005cc5","editorBracketHighlight.foreground5":"#e36209","editorBracketHighlight.foreground6":"#5a32a3","editorBracketMatch.background":"#34d05840","editorBracketMatch.border":"#34d05800","editorCursor.foreground":"#044289","editorError.foreground":"#cb2431","editorGroup.border":"#e1e4e8","editorGroupHeader.tabsBackground":"#f6f8fa","editorGroupHeader.tabsBorder":"#e1e4e8","editorGutter.addedBackground":"#28a745","editorGutter.deletedBackground":"#d73a49","editorGutter.modifiedBackground":"#2188ff","editorIndentGuide.activeBackground":"#d7dbe0","editorIndentGuide.background":"#eff2f6","editorLineNumber.activeForeground":"#24292e","editorLineNumber.foreground":"#1b1f234d","editorOverviewRuler.border":"#fff","editorWarning.foreground":"#f9c513","editorWhitespace.foreground":"#d1d5da","editorWidget.background":"#f6f8fa","errorForeground":"#cb2431","focusBorder":"#2188ff","foreground":"#444d56","gitDecoration.addedResourceForeground":"#28a745","gitDecoration.conflictingResourceForeground":"#e36209","gitDecoration.deletedResourceForeground":"#d73a49","gitDecoration.ignoredResourceForeground":"#959da5","gitDecoration.modifiedResourceForeground":"#005cc5","gitDecoration.submoduleResourceForeground":"#959da5","gitDecoration.untrackedResourceForeground":"#28a745","input.background":"#fafbfc","input.border":"#e1e4e8","input.foreground":"#2f363d","input.placeholderForeground":"#959da5","list.activeSelectionBackground":"#e2e5e9","list.activeSelectionForeground":"#2f363d","list.focusBackground":"#cce5ff","list.hoverBackground":"#ebf0f4","list.hoverForeground":"#2f363d","list.inactiveFocusBackground":"#dbedff","list.inactiveSelectionBackground":"#e8eaed","list.inactiveSelectionForeground":"#2f363d","notificationCenterHeader.background":"#e1e4e8","notificationCenterHeader.foreground":"#6a737d","notifications.background":"#fafbfc","notifications.border":"#e1e4e8","notifications.foreground":"#2f363d","notificationsErrorIcon.foreground":"#d73a49","notificationsInfoIcon.foreground":"#005cc5","notificationsWarningIcon.foreground":"#e36209","panel.background":"#f6f8fa","panel.border":"#e1e4e8","panelInput.border":"#e1e4e8","panelTitle.activeBorder":"#f9826c","panelTitle.activeForeground":"#2f363d","panelTitle.inactiveForeground":"#6a737d","pickerGroup.border":"#e1e4e8","pickerGroup.foreground":"#2f363d","progressBar.background":"#2188ff","quickInput.background":"#fafbfc","quickInput.foreground":"#2f363d","scrollbar.shadow":"#6a737d33","scrollbarSlider.activeBackground":"#959da588","scrollbarSlider.background":"#959da533","scrollbarSlider.hoverBackground":"#959da544","settings.headerForeground":"#2f363d","settings.modifiedItemIndicator":"#2188ff","sideBar.background":"#f6f8fa","sideBar.border":"#e1e4e8","sideBar.foreground":"#586069","sideBarSectionHeader.background":"#f6f8fa","sideBarSectionHeader.border":"#e1e4e8","sideBarSectionHeader.foreground":"#2f363d","sideBarTitle.foreground":"#2f363d","statusBar.background":"#fff","statusBar.border":"#e1e4e8","statusBar.debuggingBackground":"#f9826c","statusBar.debuggingForeground":"#fff","statusBar.foreground":"#586069","statusBar.noFolderBackground":"#fff","statusBarItem.prominentBackground":"#e8eaed","statusBarItem.remoteBackground":"#fff","statusBarItem.remoteForeground":"#586069","tab.activeBackground":"#fff","tab.activeBorder":"#fff","tab.activeBorderTop":"#f9826c","tab.activeForeground":"#2f363d","tab.border":"#e1e4e8","tab.hoverBackground":"#fff","tab.inactiveBackground":"#f6f8fa","tab.inactiveForeground":"#6a737d","tab.unfocusedActiveBorder":"#fff","tab.unfocusedActiveBorderTop":"#e1e4e8","tab.unfocusedHoverBackground":"#fff","terminal.ansiBlack":"#24292e","terminal.ansiBlue":"#0366d6","terminal.ansiBrightBlack":"#959da5","terminal.ansiBrightBlue":"#005cc5","terminal.ansiBrightCyan":"#3192aa","terminal.ansiBrightGreen":"#22863a","terminal.ansiBrightMagenta":"#5a32a3","terminal.ansiBrightRed":"#cb2431","terminal.ansiBrightWhite":"#d1d5da","terminal.ansiBrightYellow":"#b08800","terminal.ansiCyan":"#1b7c83","terminal.ansiGreen":"#28a745","terminal.ansiMagenta":"#5a32a3","terminal.ansiRed":"#d73a49","terminal.ansiWhite":"#6a737d","terminal.ansiYellow":"#dbab09","terminal.foreground":"#586069","terminal.tab.activeBorder":"#f9826c","terminalCursor.background":"#d1d5da","terminalCursor.foreground":"#005cc5","textBlockQuote.background":"#fafbfc","textBlockQuote.border":"#e1e4e8","textCodeBlock.background":"#f6f8fa","textLink.activeForeground":"#005cc5","textLink.foreground":"#0366d6","textPreformat.foreground":"#586069","textSeparator.foreground":"#d1d5da","titleBar.activeBackground":"#fff","titleBar.activeForeground":"#2f363d","titleBar.border":"#e1e4e8","titleBar.inactiveBackground":"#f6f8fa","titleBar.inactiveForeground":"#6a737d","tree.indentGuidesStroke":"#e1e4e8","welcomePage.buttonBackground":"#f6f8fa","welcomePage.buttonHoverBackground":"#e1e4e8"},"displayName":"GitHub Light","name":"github-light","semanticHighlighting":true,"tokenColors":[{"scope":["comment","punctuation.definition.comment","string.comment"],"settings":{"foreground":"#6a737d"}},{"scope":["constant","entity.name.constant","variable.other.constant","variable.other.enummember","variable.language"],"settings":{"foreground":"#005cc5"}},{"scope":["entity","entity.name"],"settings":{"foreground":"#6f42c1"}},{"scope":"variable.parameter.function","settings":{"foreground":"#24292e"}},{"scope":"entity.name.tag","settings":{"foreground":"#22863a"}},{"scope":"keyword","settings":{"foreground":"#d73a49"}},{"scope":["storage","storage.type"],"settings":{"foreground":"#d73a49"}},{"scope":["storage.modifier.package","storage.modifier.import","storage.type.java"],"settings":{"foreground":"#24292e"}},{"scope":["string","punctuation.definition.string","string punctuation.section.embedded source"],"settings":{"foreground":"#032f62"}},{"scope":"support","settings":{"foreground":"#005cc5"}},{"scope":"meta.property-name","settings":{"foreground":"#005cc5"}},{"scope":"variable","settings":{"foreground":"#e36209"}},{"scope":"variable.other","settings":{"foreground":"#24292e"}},{"scope":"invalid.broken","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.deprecated","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.illegal","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"invalid.unimplemented","settings":{"fontStyle":"italic","foreground":"#b31d28"}},{"scope":"carriage-return","settings":{"background":"#d73a49","content":"^M","fontStyle":"italic underline","foreground":"#fafbfc"}},{"scope":"message.error","settings":{"foreground":"#b31d28"}},{"scope":"string variable","settings":{"foreground":"#005cc5"}},{"scope":["source.regexp","string.regexp"],"settings":{"foreground":"#032f62"}},{"scope":["string.regexp.character-class","string.regexp constant.character.escape","string.regexp source.ruby.embedded","string.regexp string.regexp.arbitrary-repitition"],"settings":{"foreground":"#032f62"}},{"scope":"string.regexp constant.character.escape","settings":{"fontStyle":"bold","foreground":"#22863a"}},{"scope":"support.constant","settings":{"foreground":"#005cc5"}},{"scope":"support.variable","settings":{"foreground":"#005cc5"}},{"scope":"meta.module-reference","settings":{"foreground":"#005cc5"}},{"scope":"punctuation.definition.list.begin.markdown","settings":{"foreground":"#e36209"}},{"scope":["markup.heading","markup.heading entity.name"],"settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"markup.quote","settings":{"foreground":"#22863a"}},{"scope":"markup.italic","settings":{"fontStyle":"italic","foreground":"#24292e"}},{"scope":"markup.bold","settings":{"fontStyle":"bold","foreground":"#24292e"}},{"scope":["markup.underline"],"settings":{"fontStyle":"underline"}},{"scope":["markup.strikethrough"],"settings":{"fontStyle":"strikethrough"}},{"scope":"markup.inline.raw","settings":{"foreground":"#005cc5"}},{"scope":["markup.deleted","meta.diff.header.from-file","punctuation.definition.deleted"],"settings":{"background":"#ffeef0","foreground":"#b31d28"}},{"scope":["markup.inserted","meta.diff.header.to-file","punctuation.definition.inserted"],"settings":{"background":"#f0fff4","foreground":"#22863a"}},{"scope":["markup.changed","punctuation.definition.changed"],"settings":{"background":"#ffebda","foreground":"#e36209"}},{"scope":["markup.ignored","markup.untracked"],"settings":{"background":"#005cc5","foreground":"#f6f8fa"}},{"scope":"meta.diff.range","settings":{"fontStyle":"bold","foreground":"#6f42c1"}},{"scope":"meta.diff.header","settings":{"foreground":"#005cc5"}},{"scope":"meta.separator","settings":{"fontStyle":"bold","foreground":"#005cc5"}},{"scope":"meta.output","settings":{"foreground":"#005cc5"}},{"scope":["brackethighlighter.tag","brackethighlighter.curly","brackethighlighter.round","brackethighlighter.square","brackethighlighter.angle","brackethighlighter.quote"],"settings":{"foreground":"#586069"}},{"scope":"brackethighlighter.unmatched","settings":{"foreground":"#b31d28"}},{"scope":["constant.other.reference.link","string.other.link"],"settings":{"fontStyle":"underline","foreground":"#032f62"}}],"type":"light"}')),Rc={scopeName:"source.malloy",patterns:[{include:"#malloy-language"}],repository:{"malloy-language":{patterns:[{include:"#sql-string"},{include:"#comments"},{include:"#tags"},{include:"#strings"},{include:"#numbers"},{include:"#keywords"},{include:"#properties"},{include:"#functions"},{include:"#datetimes"},{include:"#identifiers-quoted"},{include:"#types"},{include:"#constants"},{include:"#timeframes"},{include:"#identifiers-unquoted"}]},"malloy-matched":{begin:"{",end:"}",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"malloy-in-sql":{begin:"%{",name:"source.malloy-in-sql",end:"}%?",patterns:[{include:"#malloy-matched"},{include:"#malloy-language"}]},"sql-string":{patterns:[{begin:'(\\b[A-Za-z_][A-Za-z_0-9]*)(\\s*\\.\\s*)(sql)(\\s*\\(\\s*)(""")',end:'"""',beginCaptures:{1:{name:"variable.other"},3:{name:"keyword.control.sql"},5:{name:"punctuation.sql-block.open"}},endCaptures:{0:{name:"punctuation.sql-block.close"}},name:"source.sql",patterns:[{include:"#malloy-in-sql"},{include:"source.sql"}]}]},functions:{patterns:[{match:"(?i)\\b(count)(\\s*\\()(distinct)",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.function.modifier"}}},{match:"(?i)\\b(AVG|COUNT|FIRST|FORMAT|LAST|LCASE|LEN|MAX|MID|MIN|MOD|NOW|ROUND|SUM|UCASE|UNGROUPED)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(\\s*\\()",captures:{1:{name:"entity.name.function"}}},{match:"(?i)\\b([a-zA-Z_][a-zA-Z_0-9]*)(!)(timestamp|number|string|boolean|date)?(\\s*\\()",captures:{1:{name:"entity.name.function"},3:{name:"entity.name.type"}}}]},datetimes:{patterns:[{match:"(?i)@[0-9]{4}-[0-9]{2}-[0-9]{2}[ T][0-9]{2}:[0-9]{2}((:[0-9]{2})(([\\.,][0-9]+)(\\[[A-Za-z_/]+\\])?)?)?",name:"constant.numeric.timestamp"},{match:"(?i)@[0-9]{4}(-Q[1-4]|-[0-9]{2}(-[0-9]{2}(-WK)?)?)?",name:"constant.numeric.date"}]},"identifiers-quoted":{patterns:[{match:"`[^`]*`",name:"variable.other.quoted"}]},"identifiers-unquoted":{patterns:[{match:"(?i)\\b[A-Za-z_][A-Za-z_0-9]*\\b",name:"variable.other"}]},timeframes:{patterns:[{match:"(?i)\\b((year|quarter|month|week|day|hour|minute|second)s?)\\b",name:"keyword.other.timeframe"},{match:"(?i)\\b(day_of_year|day_of_month)\\b",name:"keyword.other.timeframe"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]},tags:{patterns:[{match:"##\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:'#"',end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{match:"#\\n",name:"string.quoted",captures:{0:{name:"string.quoted"}}},{begin:"#\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"##\\s",end:"\\n",beginCaptures:{0:{name:"support.type.property-name.json"}},name:"comment.line.double-slash",patterns:[{include:"#tag-values"}]},{begin:"#",end:"\\n",beginCaptures:{0:{name:"string.quoted"}},name:"string.quoted"}],repository:{"tag-values":{name:"support.type.property-name.json",match:'(-)?((?:[^\\s=#]+)|(?:"[^#]+"))(?:\\s*(=)\\s*((?:[^\\s=#]+)|(?:"[^#]+")))?',captures:{1:{name:"keyword.control.negate"},2:{name:"support.type.property-name.json"},3:{name:"keyword.operator.comparison.ts"},4:{name:"string.quoted"}}}}},strings:{patterns:[{begin:"'",end:"'",beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.single",patterns:[{include:"#escapes"}]},{begin:'"',end:'"',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.double",patterns:[{include:"#escapes"}]},{begin:'"""',end:'"""',beginCaptures:{0:{name:"punctuation.definition.string.begin"}},endCaptures:{0:{name:"punctuation.definition.string.end"}},name:"string.quoted.triple"},{begin:"(?i)[r|/]'",end:"'",name:"string.regexp",patterns:[{include:"#regex-escapes"}]}],repository:{escapes:{name:"constant.character.escape",match:"\\\\(u[A-Fa-f0-9]{4}|.)",captures:{0:{name:"constant.character.escape"}}},"regex-escapes":{name:"constant.character.escape",match:"\\\\.",captures:{0:{name:"constant.character.escape"}}}}},numbers:{match:"(?i)(\\b((0|[1-9][0-9]*)(E[+-]?[0-9]+|\\.[0-9]*)?)|\\.[0-9]+)",name:"constant.numeric"},constants:{patterns:[{match:"(?i)\\bnull\\b",name:"constant.language.null"},{match:"(?i)\\btrue\\b",name:"constant.language.true"},{match:"(?i)\\bfalse\\b",name:"constant.language.false"}]},types:{patterns:[{match:"(?i)\\bstring\\b",name:"entity.name.type.string"},{match:"(?i)\\bnumber\\b",name:"entity.name.type.number"},{match:"(?i)\\bdate\\b",name:"entity.name.type.date"},{match:"(?i)\\btimestamp\\b",name:"entity.name.type.timestamp"},{match:"(?i)\\bboolean\\b",name:"entity.name.type.boolean"}]},properties:{patterns:[{match:"(?i)\\baccept\\b",name:"keyword.control.accept"},{match:"(?i)\\bselect\\b",name:"keyword.control.select"},{match:"(?i)\\bconnection\\b",name:"keyword.control.connection"},{match:"(?i)\\brun\\b",name:"keyword.control.run"},{match:"(?i)\\bextend\\b",name:"keyword.control.extend"},{match:"(?i)\\brefine\\b",name:"keyword.control.refine"},{match:"(?i)\\baggregate\\b",name:"keyword.control.aggregate"},{match:"(?i)\\bsample\\b",name:"keyword.control.sample"},{match:"(?i)\\bcalculate\\b",name:"keyword.control.calculate"},{match:"(?i)\\btimezone\\b",name:"keyword.control.timezone"},{match:"(?i)\\bdimension\\b",name:"keyword.control.dimension"},{match:"(?i)\\bexcept\\b",name:"keyword.control.except"},{match:"(?i)\\bsource\\b",name:"keyword.control.source"},{match:"(?i)\\bgroup_by\\b",name:"keyword.control.group_by"},{match:"(?i)\\bhaving\\b",name:"keyword.control.having"},{match:"(?i)\\bindex\\b",name:"keyword.control.index"},{match:"(?i)\\bjoin_one\\b",name:"keyword.control.join_one"},{match:"(?i)\\bwith\\b",name:"keyword.control.with"},{match:"(?i)\\bjoin_many\\b",name:"keyword.control.join_many"},{match:"(?i)\\bjoin_cross\\b",name:"keyword.control.join_cross"},{match:"(?i)\\blimit\\b",name:"keyword.control.limit"},{match:"(?i)\\bmeasure\\b",name:"keyword.control.measure"},{match:"(?i)\\bnest\\b",name:"keyword.control.nest"},{match:"(?i)\\border_by\\b",name:"keyword.control.order_by"},{match:"(?i)\\bpartition_by\\b",name:"keyword.control.partition_by"},{match:"(?i)\\bprimary_key\\b",name:"keyword.control.primary_key"},{match:"(?i)\\bproject\\b",name:"keyword.control.project"},{match:"(?i)\\bquery\\b",name:"keyword.control.query"},{match:"(?i)\\brename\\b",name:"keyword.control.rename"},{match:"(?i)\\btop\\b",name:"keyword.control.top"},{match:"(?i)\\bview\\b",name:"keyword.control.view"},{match:"(?i)\\bwhere\\b",name:"keyword.control.where"},{match:"(?i)\\bdeclare\\b",name:"keyword.control.declare"}]},keywords:{patterns:[{match:"(?i)\\bis\\b",name:"keyword.control.is"},{match:"(?i)\\bon\\b",name:"keyword.control.on"},{match:"(?i)\\bnot\\b",name:"keyword.other.not"},{match:"(?i)\\bor\\b",name:"keyword.other.or"},{match:"(?i)\\bdesc\\b",name:"keyword.control.desc"},{match:"(?i)\\bby\\b",name:"keyword.control.by"},{match:"(?i)\\band\\b",name:"keyword.other.and"},{match:"(?i)\\basc\\b",name:"keyword.control.asc"},{match:"(?i)\\bfor\\b",name:"keyword.other.for"},{match:"(?i)\\belse\\b",name:"keyword.other.else"},{match:"(?i)\\bto\\b",name:"keyword.other.to"},{match:"(?i)\\bwhen\\b",name:"keyword.other.when"},{match:"(?i)\\bpick\\b",name:"keyword.other.pick"},{match:"(?i)\\bimport\\b",name:"keyword.control.import"}]}}},G8={...Rc,patterns:[...Rc.patterns,{include:"#docvar"}],repository:{...Rc.repository,docvar:{patterns:[{match:"\\<\\<[^(\\>\\>)]*\\>\\>",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"markup.italic.markdown"}]}}},K8={name:"Malloy SQL",scopeName:"source.malloy-sql",patterns:[{include:"#malloysql-sql"}],repository:{"malloysql-sql":{beginCaptures:{0:{name:"entity.other.attribute.malloy-sql"},1:{name:"entity.other.attribute.malloy-sql"},3:{name:"comment.line.double-slash"}},name:"meta.embedded.block.malloysql.sql",patterns:[{include:"#comments"},{begin:"%{",end:"}%",beginCaptures:{0:{name:"punctuation.definition.malloy-sql"}},endCaptures:{0:{name:"punctuation.definition.malloy-sql"}},name:"meta.embedded.block.malloy",patterns:[{include:"source.malloy"}]},{include:"source.sql"}]},comments:{patterns:[{begin:"/\\*",end:"\\*/",beginCaptures:{0:{name:"punctuation.definition.comment.begin"}},endCaptures:{0:{name:"punctuation.definition.comment.end"}},name:"comment.block"},{begin:"//",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-slash"},{begin:"--",end:"\\n",beginCaptures:{0:{name:"punctuation.definition.comment"}},name:"comment.line.double-hyphen"}]}}},Q8="github-light",X8=j8({engine:uy(Promise.resolve().then(()=>require("./wasm-Dw4u1m6u.cjs.js"))),themes:[Y8],langs:[V8,U8,q8,{name:"malloy",scopeName:"source.malloy",embeddedLangs:["sql"],...G8},{name:"malloysql",scopeName:"source.malloy-sql",embeddedLangs:["sql"],...K8}]});async function Hl(e,t){return(await X8).codeToHtml(e,{lang:t,theme:Q8})}function Jt(e){const{server:t}=et.useServer(),n={...e,queryKey:[...e.queryKey,t],queryFn:async()=>{try{return await e.queryFn()}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return Hr.useQuery(n,et.globalQueryClient)}function br(e){const t={...e,mutationFn:async n=>{try{return await e.mutationFn(n)}catch(r){if(r&&typeof r=="object"&&"response"in r){const a=r;if(a.response?.data){const o=new Error(a.response.data.message||a.message);throw o.status=a.response.status,o.data=a.response.data,o}}throw r}},retry:!1,throwOnError:!1};return Hr.useMutation(t,et.globalQueryClient)}const vt=e=>{const t=new URL(e),n={};if(t.protocol!=="publisher:")throw new Error(`Failed to parse resource URI: ${e}`);const r=(t.hostname+t.pathname).split("/");for(let a=0;a<r.length;a+=2){const o=r[a];o==="projects"?n.projectName=decodeURI(r[a+1])||void 0:o==="packages"?n.packageName=decodeURI(r[a+1])||void 0:o==="connections"?n.connectionName=decodeURI(r[a+1])||void 0:o==="models"&&(n.modelPath=decodeURI(r.slice(a+1).join("/"))||void 0)}if(n.versionId=t.searchParams.get("versionId")||void 0,!n.projectName)throw new Error(`Failed to parse resource URI: ${e}`);return n},bi=e=>{if(!e.projectName)throw new Error(`Failed to encode resource URI, missing project name: ${e}`);let t=`publisher://projects/${e.projectName}`;return e.packageName&&(t+=`/packages/${e.packageName}`),e.connectionName&&(t+=`/connections/${e.connectionName}`),e.modelPath&&(t+=`/models/${e.modelPath}`),e.packageName&&e.versionId&&(t+=`?versionId=${e.versionId}`),t};function Np({sourceAndPaths:e,selectedSourceIndex:t,existingQuery:n,onQueryChange:r,onSourceChange:a,resourceUri:o}){return q.useEffect(()=>{a&&a(t)},[t,a]),p.jsx(Qd,{children:p.jsxs(dt.Stack,{spacing:2,component:"section",children:[p.jsx($y,{sourceAndPath:e[t],existingQuery:n,onChange:s=>{r&&r(s)},resourceUri:o}),p.jsx(dt.Box,{height:"5px"})]})})}function al(){return{query:void 0,malloyQuery:void 0,malloyResult:void 0}}function Z8({sourceAndPath:e,onChange:t,existingQuery:n,explorerComponents:r,QueryBuilder:a,resourceUri:o}){const[s,i]=q.useState(n||al()),[l,u]=q.useState(void 0);q.useEffect(()=>{n&&i(n)},[n]);const[c,d]=q.useState([]),{MalloyExplorerProvider:m,QueryPanel:f,ResizableCollapsiblePanel:h,ResultPanel:b,SourcePanel:g}=r;q.useEffect(()=>{t&&t(s)},[t,s]);const{projectName:x,packageName:C,versionId:E}=vt(o),{apiClients:k}=et.useServer(),T=br({mutationFn:()=>{const $=typeof s?.malloyQuery=="string"?s.malloyQuery:new a.ASTQuery({source:e.sourceInfo,query:s?.malloyQuery}).toMalloy();return u({executionState:"running",query:s?.malloyQuery,queryResolutionStartMillis:Date.now(),onCancel:()=>{T.reset(),u(void 0)},response:{result:{}}}),i({...s,query:$}),k.models.executeQueryModel(x,C,e.modelPath,{query:$,sourceName:void 0,queryName:void 0,versionId:E})},onSuccess:$=>{if($){const P=JSON.parse($.data.result);i({...s,malloyResult:P}),u(L=>L?{...L,executionState:"finished",response:{result:P}}:void 0)}},onError:$=>{u(void 0),console.error("Query execution error:",$)}}),[S,O]=q.useState(e.sourceInfo.name);q.useEffect(()=>{S!==e.sourceInfo.name&&(O(e.sourceInfo.name),i(al()),u(void 0))},[e,S]);const M=q.useCallback($=>{i({...s,malloyQuery:$,malloyResult:void 0})},[s]);return S!==e.sourceInfo.name?p.jsx("div",{children:"Loading..."}):p.jsx($0,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",overflow:"hidden"},children:p.jsx(m,{source:e.sourceInfo,query:s?.malloyQuery,topValues:[],onFocusedNestViewPathChange:d,focusedNestViewPath:c,onQueryChange:M,children:p.jsxs("div",{style:{display:"flex",height:"100%",overflowY:"auto"},children:[p.jsx(h,{isInitiallyExpanded:!0,initialWidth:180,minWidth:180,icon:"database",title:e.sourceInfo.name,children:p.jsx(g,{onRefresh:()=>i(al())})}),p.jsx(h,{isInitiallyExpanded:!0,initialWidth:280,minWidth:280,icon:"filterSliders",title:"Query",children:p.jsx(f,{runQuery:()=>{console.log(`running query with: ${s?.malloyQuery}`);try{T.mutate()}catch($){console.error("Error running query:",$)}}})}),p.jsx(b,{source:e.sourceInfo,draftQuery:s?.malloyQuery,setDraftQuery:$=>i({...s,malloyQuery:$}),submittedQuery:l,options:{showRawQuery:!0}})]})})},e.sourceInfo.name)}function $y(e){const[t,n]=q.useState(null),[r,a]=q.useState(null),[o,s]=q.useState(!0);return q.useEffect(()=>{let i=!0;return Promise.all([import("@malloydata/malloy-explorer"),import("@malloydata/malloy-query-builder")]).then(([l,u])=>{i&&(n(l),a(u),s(!1))}).catch(l=>{console.error("Failed to load Malloy components:",l),i&&s(!1)}),()=>{i=!1}},[]),o||!t||!r?p.jsx(Dv,{children:p.jsx($0,{children:p.jsx("div",{style:{alignItems:"center",justifyContent:"center",height:"200px",color:"#666"},children:"Loading explorer..."})})}):p.jsx(Z8,{...e,explorerComponents:t,QueryBuilder:r,resourceUri:e.resourceUri})}function tn({text:e,size:t=20,color:n="primary",thickness:r=3.6,centered:a=!0,spacing:o=2,textVariant:s="body2"}){const i=p.jsxs(D.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",gap:o},children:[p.jsx(D.CircularProgress,{size:t,color:n,thickness:r}),e&&p.jsx(D.Typography,{variant:s,color:"text.secondary",children:e})]});return a?p.jsx(D.Box,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:"200px",width:"100%"},children:i}):i}const J8=q.lazy(()=>Promise.resolve().then(()=>vV));function Uo({result:e,maxHeight:t,maxResultSize:n=0}){const r=q.useRef(null),[a,o]=q.useState(t),[s,i]=q.useState(!1);if(!e)return null;if(n>0&&e.length>n&&!s)return p.jsxs(D.Box,{sx:{display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:2,p:4,backgroundColor:"#fafafa",border:"1px solid",borderColor:"#e0e0e0",borderRadius:1},children:[p.jsx(Pn.Warning,{sx:{fontSize:48,color:"#757575"}}),p.jsx(D.Typography,{variant:"h6",color:"text.secondary",align:"center",children:"Processing large results may cause browser performance issues. Proceed?"}),p.jsx(D.Button,{variant:"contained",color:"primary",onClick:()=>i(!0),children:"Proceed"})]});const u=p.jsx(tn,{text:"Loading...",centered:!0,size:32}),c=Math.min(t,a);return p.jsx(D.Box,{ref:r,sx:{position:"relative",height:"auto",border:"0px",borderRadius:0,overflow:"hidden"},children:e&&p.jsx(q.Suspense,{fallback:u,children:p.jsx(J8,{result:e,height:c,onSizeChange:o})})})}function eM({cell:e,sourceAndPaths:t,resourceUri:n,onQueryChange:r,onSourceChange:a}){const o={query:e.value,malloyResult:e.result?JSON.parse(e.result):void 0,malloyQuery:e.queryInfo?JSON.parse(e.queryInfo):void 0},s=t.findIndex(i=>i.sourceInfo.name===e.sourceName);return p.jsx(Np,{resourceUri:n,sourceAndPaths:t,selectedSourceIndex:s>=0?s:0,existingQuery:o,onQueryChange:r,onSourceChange:a})}function tM({cell:e,editingMalloy:t,editingMarkdown:n,sourceAndPaths:r,resourceUri:a,onCellChange:o,onClose:s,onEdit:i,onDelete:l,addButtonCallback:u}){const[c,d]=q.useState(e.value),[m,f]=q.useState(!1),[h,b]=q.useState(!1),[g,x]=q.useState(),[C]=q.useState(),[E,k]=q.useState(al()),[T,S]=q.useState(!1),[O,M]=q.useState(e.sourceName?r.findIndex(V=>V.sourceInfo.name===e.sourceName):0);q.useEffect(()=>{e.isMarkdown||Hl(e.value,"malloy").then(V=>{x(V)})},[e]),q.useEffect(()=>{document.documentElement.setAttribute("data-color-mode","light")});const[$,P]=q.useState(!1),L=()=>{l(),P(!1)},v=r.length===0,N=q.useCallback(()=>{const V=r[O],J=V?.modelPath||e.modelPath||"",F=V?.sourceInfo.name||e.sourceName||"";o({...e,value:e.isMarkdown?c:E.query,result:E.malloyResult?JSON.stringify(E.malloyResult):void 0,queryInfo:E.malloyQuery?JSON.stringify(E.malloyQuery):void 0,sourceName:F,modelPath:J})},[e,c,E,o,O,r]),I=p.jsx(D.Tooltip,{title:"Delete Cell",children:p.jsx(D.IconButton,{size:"small",onClick:()=>P(!0),children:p.jsx("svg",{width:"20",height:"20",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:p.jsx("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6h14zM10 11v6M14 11v6",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"})})})}),A=p.jsxs(D.Dialog,{open:$,onClose:()=>P(!1),children:[p.jsx(D.DialogTitle,{children:"Confirm Delete"}),p.jsx(D.DialogContent,{children:p.jsx(D.Typography,{children:"Are you sure you want to delete this cell?"})}),p.jsxs(D.DialogActions,{children:[p.jsx(D.Button,{onClick:()=>P(!1),children:"Cancel"}),p.jsx(D.Button,{onClick:L,color:"error",children:"Delete"})]})]}),R=()=>{N(),s()},W=e.isMarkdown?p.jsxs(p.Fragment,{children:[n?p.jsx(D.Tooltip,{title:"Save",children:p.jsx(D.IconButton,{size:"small",onClick:R,children:p.jsx(_i,{})})}):p.jsx(D.Tooltip,{title:"Edit",children:p.jsx(D.IconButton,{size:"small",onClick:i,children:p.jsx(Xf,{})})}),!n&&I]}):p.jsxs(p.Fragment,{children:[!t&&p.jsx(D.Tooltip,{title:m?"Hide Code":"View Code",children:p.jsx(D.IconButton,{size:"small",onClick:()=>{f(!m)},children:p.jsx(B0,{})})}),!t&&e.result&&p.jsx(D.Tooltip,{title:h?"Hide Embedding":"View Embedding",children:p.jsx(D.IconButton,{size:"small",onClick:()=>{b(!h)},children:p.jsx(Xd,{})})}),t&&p.jsx(D.Tooltip,{title:"Save",children:p.jsx(D.IconButton,{size:"small",onClick:R,children:p.jsx(_i,{})})}),!t&&p.jsx(D.Tooltip,{title:"Edit",children:p.jsx(D.IconButton,{size:"small",onClick:i,children:p.jsx(Xf,{})})}),!t&&I]}),H=t||n,B=n?p.jsx(D.Tooltip,{title:"Save",children:p.jsx(D.IconButton,{size:"small",onClick:R,children:p.jsx(_i,{})})}):t?p.jsx(D.Tooltip,{title:"Save",children:p.jsx(D.IconButton,{size:"small",onClick:R,children:p.jsx(_i,{})})}):null,_=T&&p.jsx(D.Box,{sx:{position:"absolute",top:"4px",right:"4px",display:"flex",gap:"8px",backgroundColor:"background.paper",border:"1px solid",borderColor:"divider",borderRadius:"8px",padding:"2px 4px",boxShadow:1,zIndex:10},children:!H&&p.jsxs(p.Fragment,{children:[u(!0),u(!1),W]})||B});return p.jsxs(Cl,{sx:{position:"relative",marginTop:"5px",marginBottom:"5px",borderWidth:"1.5px",backgroundColor:"#fff",minHeight:"50px"},onMouseEnter:()=>S(!0),onMouseLeave:()=>{S(!1)},children:[_,e.isMarkdown?p.jsx(p.Fragment,{children:n?p.jsx(ly,{value:c,preview:"edit",autoFocus:!0,onChange:V=>{d(V),o({...e,value:V})},onBlur:()=>{N(),T||R()}}):p.jsx(D.Box,{sx:{px:.5,pt:0,mt:0,"& h1, & h2, & h3, & h4, & h5, & h6":{mt:.5,mb:.5},"& p":{mt:.5,mb:.5},"& ul, & ol":{mt:.5,mb:.5},"& li":{mt:0,mb:0},"& pre, & code":{mt:.5,mb:.5},"& blockquote":{mt:.5,mb:.5}},children:e.value?p.jsx(D.Box,{onClick:i,sx:{cursor:"pointer"},children:p.jsx(gl,{children:e.value})}):p.jsxs(D.Box,{onClick:i,sx:{cursor:"pointer"},children:[p.jsx(D.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Markdown is empty"}),p.jsx(D.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})})}):p.jsxs(p.Fragment,{children:[p.jsx(D.Collapse,{in:h,timeout:"auto",unmountOnExit:!0,children:p.jsx(D.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:p.jsx(D.Typography,{component:"div",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:C}})})}),p.jsx(D.Collapse,{in:m,timeout:"auto",unmountOnExit:!0,children:p.jsx(D.Stack,{sx:{p:"10px",borderRadius:0,flexDirection:"row",justifyContent:"space-between"},children:p.jsx(D.Typography,{component:"div",className:"content",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},dangerouslySetInnerHTML:{__html:g}})})}),t&&(v?p.jsxs(p.Fragment,{children:[p.jsx(D.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"No Model Imports"}),p.jsx(D.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Please add a model import above."})]}):p.jsx(eM,{sourceAndPaths:r,resourceUri:a,onQueryChange:V=>{k(V)},onSourceChange:V=>{M(V)},cell:e})),!t&&e.result&&p.jsx(Cl,{variant:"outlined",sx:{borderRadius:0},children:p.jsx(Uo,{result:e.result,maxHeight:800})}),!t&&!e.result&&p.jsxs(D.Box,{onClick:i,sx:{cursor:"pointer"},children:[p.jsx(D.Typography,{sx:{p:2,textAlign:"center",variant:"subtitle2",fontWeight:"medium"},children:"Explore is empty"}),p.jsx(D.Typography,{sx:{mb:2,textAlign:"center",variant:"body2"},children:"Click to edit."})]})]}),$&&A]})}const By=q.createContext(void 0);function nM({children:e,workbookStorage:t}){const n=q.useMemo(()=>({workbookStorage:t}),[t]);return p.jsx(By.Provider,{value:n,children:e})}function Op(){const e=q.useContext(By);if(!e)throw new Error("useWorkbookStorage must be used within a WorkbookStorageProvider");return e}const aa=nt(p.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),rM=nt(p.jsx("path",{d:"M18 15v3H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3zM7 9l1.41 1.41L11 7.83V16h2V7.83l2.59 2.58L17 9l-5-5z"}));function nn({error:e,context:t}){const n=e.data?.message||"Unknown Error";return p.jsxs(p.Fragment,{children:[t&&p.jsx(D.Typography,{variant:"body2",sx:{p:"10px",m:"auto"},children:t}),p.jsx("pre",{style:{whiteSpace:"pre-wrap",color:"red",padding:"10px",margin:"auto"},children:n})]})}function aM({initialSelectedModels:e,onModelChange:t,resourceUri:n}){const{projectName:r,packageName:a,versionId:o}=vt(n),{apiClients:s}=et.useServer(),{data:i,isLoading:l,isSuccess:u,isError:c,error:d}=Jt({queryKey:["models",r,a,o],queryFn:()=>s.models.listModels(r,a,o)}),[m,f]=q.useState(e||[]),[h,b]=q.useState(null);q.useEffect(()=>{f(e||[])},[e]);const g=E=>{const k=m.filter(T=>T!==E);f(k),t(k)},x=E=>{const k=[...m,E];f(k),t(k),b(null)};let C=[];return u&&i?.data&&(C=i.data.filter(E=>!m.includes(E.path)).map(E=>E.path)),c?p.jsx(nn,{error:d,context:`${r} > ${a} > Model Picker`}):p.jsxs(p.Fragment,{children:[p.jsxs(D.FormControl,{fullWidth:!0,children:[l&&p.jsx(D.Typography,{children:"Loading..."}),p.jsxs(D.Stack,{direction:"row",spacing:1,children:[m.map(E=>p.jsx(D.Chip,{label:E,onDelete:()=>g(E),deleteIcon:p.jsx(aa,{}),sx:{marginBottom:"5px"}},E)),p.jsx(D.Button,{size:"small",startIcon:p.jsx(rM,{}),onClick:E=>b(E.currentTarget),disabled:l||c||C.length===0,children:"Add Model"})]})]}),p.jsxs(D.Menu,{anchorEl:h,open:!!h,onClose:()=>b(null),children:[p.jsx(D.Typography,{variant:"subtitle2",sx:{ml:1},children:"Models"}),p.jsx(D.Divider,{}),C.length===0?p.jsx(D.MenuItem,{disabled:!0,children:"No models available"}):C.map(E=>p.jsx(D.MenuItem,{onClick:()=>x(E),children:p.jsx(D.Typography,{variant:"body2",children:E})},E))]})]})}function jy(){const e=tC.useNavigate();return(t,n)=>{if(!n||!n.metaKey&&!n.ctrlKey&&!n.shiftKey&&n.button!==1){e(t);return}const r=new URL(t,window.location.href).href;(n.metaKey||n.ctrlKey||n.button===1||n.shiftKey)&&window.open(r,"_blank")}}function oM({workbookPath:e,resourceUri:t}){const n=jy(),{server:r,getAccessToken:a}=et.useServer(),{apiClients:o}=et.useServer(),{workbookStorage:s}=Op(),{projectName:i,packageName:l}=vt(t),[u,c]=q.useState(void 0),[d,m]=q.useState(void 0);if(!s)throw new Error("Workbook storage be provided via WorkbookStorageProvider");const[f,h]=q.useState(),[b,g]=q.useState(),[x,C]=q.useState(),[E,k]=q.useState([]),[T,S]=q.useState(null),[O,M]=q.useState(null),$=!!T,P=()=>{S(null),M(null)},L=(V,J)=>{f&&(h(f.insertCell(J,{isMarkdown:V,value:""})),V?C(J):g(J),P(),console.log("handleAddCell",V,J))},[v,N]=q.useState(!1),I=()=>{N(!0)},A=async()=>{e&&s&&await s.deleteWorkbook(e).then(()=>{m(void 0),c(void 0)}).catch(V=>{m(`Error deleting workbook: ${V.message}`),c(void 0)}),N(!1),n(`/${i}/${l}`)},R=()=>{N(!1)},W=q.useCallback(async()=>{if(!f){console.log("No workbook data ref");return}try{h(await f.saveWorkbook()),m(void 0),c("Workbook saved")}catch(V){m(`Error saving workbook: ${V.message}`),c(void 0)}},[f]);if(q.useEffect(()=>{if(!f)return;(async()=>{const J=new Map(E.map(({modelPath:Z,sourceInfos:Y})=>[Z,Y])),F=[],de=[];for(const Z of f.getModels())J.has(Z)?F.push({modelPath:Z,sourceInfos:J.get(Z)}):(console.log("Fetching model from Publisher",Z),de.push(o.models.getModel(i,l,Z,void 0).then(Y=>({modelPath:Z,sourceInfos:Y.data.sourceInfos.map(te=>JSON.parse(te))}))));if(de.length>0){const Z=await Promise.all(de);k([...F,...Z])}else k(F)})()},[a,f,l,i,r]),q.useEffect(()=>{e&&co.loadWorkbook(s,e).then(V=>{h(V)})},[e,s]),!f)return p.jsx("div",{children:"Loading..."});const H=V=>{const J=[];for(const F of V)for(const de of F.sourceInfos)J.push({modelPath:F.modelPath,sourceInfo:de});return J},B=(V,J)=>p.jsx(D.Button,{size:"small",startIcon:p.jsx(Kd,{}),onClick:()=>L(V,J),variant:"contained",sx:{backgroundColor:"#fff",color:F=>F.palette.mode==="dark"?F.palette.grey[100]:F.palette.grey[700],boxShadow:"none","&:hover":{backgroundColor:F=>F.palette.mode==="dark"?F.palette.grey[500]:F.palette.grey[300],boxShadow:"none"}},children:V?"Markdown":"Explore"}),_=p.jsxs(D.Box,{sx:{display:"flex",gap:1,justifyContent:"center",flex:2},children:[B(!1,f.getCells().length),B(!0,f.getCells().length)]});return p.jsxs(Cl,{variant:"outlined",children:[p.jsxs(F0,{children:[p.jsx(D.Box,{sx:{mb:2},children:p.jsx(D.Box,{sx:{minHeight:"24px"},children:d?p.jsx(D.Typography,{color:"error",variant:"body2",children:d}):u?p.jsx(D.Typography,{color:"success",variant:"body2",children:u}):p.jsx("span",{children:" "})})}),p.jsxs(Za,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"center"},children:[p.jsxs(Za,{direction:"row",spacing:1,alignItems:"center",children:[p.jsx(D.Typography,{variant:"overline",sx:{fontSize:"13px",fontWeight:"bold",verticalAlign:"middle"},children:"Workbook"}),p.jsx(D.Typography,{variant:"subtitle2",sx:{fontSize:"13px",fontWeight:"normal",verticalAlign:"middle",ml:1},children:`${e.workspace} > ${e.path}`})]}),p.jsxs(Za,{sx:{display:"flex",flexDirection:"row",gap:1},children:[p.jsx(D.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:p.jsx(sM,{workbookData:f})}),p.jsxs(D.Box,{sx:{display:"flex",alignItems:"center",mt:1,mb:1},children:[p.jsx(D.Button,{color:"error",onClick:I,size:"small",children:"Delete"}),p.jsxs(D.Dialog,{open:v,onClose:R,children:[p.jsx(D.DialogTitle,{children:"Delete Workbook"}),p.jsx(D.DialogContent,{children:p.jsxs(D.DialogContentText,{children:['Are you sure you want to delete the workbook "',e.path,'"? This action cannot be undone.']})}),p.jsxs(D.DialogActions,{children:[p.jsx(D.Button,{onClick:R,color:"primary",size:"small",children:"Cancel"}),p.jsx(D.Button,{onClick:A,color:"error",autoFocus:!0,size:"small",children:"Delete"})]})]})]})]})]}),p.jsx(D.Divider,{}),p.jsxs(Za,{sx:{display:"flex",flexDirection:"row",width:"100%",mt:2},children:[p.jsx(D.Box,{sx:{flex:1},children:p.jsx(aM,{initialSelectedModels:f.getModels(),onModelChange:V=>{h(f.setModels(V)),W()},resourceUri:t})}),p.jsx(D.Box,{sx:{flex:1}})]})]}),p.jsx(Qd,{children:p.jsxs(Za,{children:[f.getCells().length===0&&p.jsxs(p.Fragment,{children:[p.jsx(D.Typography,{sx:{textAlign:"center",p:2,variant:"subtitle2",fontWeight:"medium"},children:"Workbook is empty"}),p.jsx(D.Typography,{variant:"body2",sx:{textAlign:"center",mb:2,variant:"body2"},children:"Click the + buttons to add a markdown or code cell."})]}),f.getCells().map((V,J)=>p.jsx(q.Fragment,{children:p.jsx(tM,{cell:V,resourceUri:t,addButtonCallback:F=>B(F,J),sourceAndPaths:H(E),editingMarkdown:x===J,editingMalloy:b===J,onDelete:()=>{h(f.deleteCell(J)),W()},onCellChange:F=>{h(f.setCell(J,F))},onEdit:()=>{V.isMarkdown?C(J):g(J)},onClose:()=>{V.isMarkdown?C(void 0):g(void 0),W()}},`${J}-${V.isMarkdown}-${e.workspace}-${e.path}`)},`${J}-${f.getCells().length}`)),_,p.jsxs(D.Menu,{anchorEl:T,open:$,onClose:P,anchorOrigin:{vertical:"bottom",horizontal:"right"},transformOrigin:{vertical:"top",horizontal:"right"},children:[p.jsx(D.MenuItem,{onClick:()=>L(!0,O??0),children:"Add Markdown"}),p.jsx(D.MenuItem,{onClick:()=>L(!1,O??0),children:"Add Malloy"})]}),p.jsx(Za,{sx:{flexDirection:"row",justifyContent:"flex-end",p:1}})]})})]})}function sM({workbookData:e}){const[t,n]=q.useState(!1),r=async()=>{if(!e)return;const a=e.toMalloyWorkbook();try{await navigator.clipboard.writeText(a),n(!0),setTimeout(()=>n(!1),1500)}catch{n(!1),alert("Failed to copy to clipboard")}};return p.jsx(D.Button,{color:"primary",onClick:r,size:"small",children:t?"Copied!":"Export"})}function Hy({onWorkbookClick:e}){const{workbookStorage:t}=Op(),[n,r]=q.useState([]),[a,o]=q.useState(void 0);return q.useEffect(()=>{t&&t.listWorkspaces(!1).then(s=>{const i=[];Promise.all(s.map(async l=>{await t.listWorkbooks(l).then(u=>{i.push(...u)}).catch(u=>{o(`Error listing workbooks: ${u.message}`)})})).then(()=>{r(i),o(void 0)})})},[t]),p.jsxs(p.Fragment,{children:[a&&p.jsx(D.Box,{sx:{mb:2},children:p.jsx(D.Typography,{color:"error",variant:"body2",children:a})}),p.jsx(D.Divider,{}),p.jsx(D.Box,{sx:{maxHeight:"300px",overflow:"auto","&::-webkit-scrollbar":{width:"8px"},"&::-webkit-scrollbar-track":{background:"transparent"},"&::-webkit-scrollbar-thumb":{background:"rgba(0,0,0,0.2)",borderRadius:"4px"}},children:p.jsxs(D.List,{dense:!0,children:[n.length===0&&p.jsx(D.ListItem,{children:p.jsx(D.ListItemText,{primary:"No workbooks found.",sx:{textAlign:"center"}})}),n.map(s=>p.jsx(D.ListItem,{onClick:i=>e(s,i),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:p.jsx(D.ListItemText,{primary:s.path})},s.path))]})})]})}const qh="Local";class iM{async listWorkspaces(t){return Promise.resolve([{name:qh,description:"Stored locally- only accessible to this browser",writeable:!0}])}async listWorkbooks(t){const n=[];for(let r=0;r<localStorage.length;r++){const a=localStorage.key(r);n.push({path:a,workspace:qh})}return n}async getWorkbook(t){const n=localStorage.getItem(t.path);if(n===null)throw new Error(`Notebook not found at path: ${t}`);return n}async deleteWorkbook(t){if(localStorage.getItem(t.path)===null)throw new Error(`Notebook not found at path: ${t}`);localStorage.removeItem(t.path)}async saveWorkbook(t,n){localStorage.setItem(t.path,n)}async moveWorkbook(t,n){const r=localStorage.getItem(t.path);if(r===null)throw new Error(`Notebook not found at path: ${t.path}`);localStorage.setItem(n.path,r),localStorage.removeItem(t.path)}}function lM({onWorkbookSelect:e}){const{workbookStorage:t}=Op(),[n,r]=q.useState(""),[a,o]=q.useState(""),[s,i]=q.useState([]),[l,u]=q.useState(null),[c,d]=q.useState(!1),[m,f]=q.useState(!1),h=!!l,b=S=>{u(S.currentTarget)},g=()=>{u(null)},x=()=>{f(!1)},C=()=>{d(!1),r(""),o("")};q.useEffect(()=>{t&&(console.log("fetching workspaces"),t.listWorkspaces(!0).then(S=>{i(S),S.length===1&&o(S[0].name)}).catch(S=>{console.error("Error fetching workspaces:",S),i([])}))},[t]);const E=(S,O)=>{f(!1),e(S,O)},k=S=>{d(!1),e({path:n,workspace:a},S),r(""),o("")},T=s.length===0;return p.jsxs(p.Fragment,{children:[p.jsx(D.Button,{"aria-controls":h?"basic-menu":void 0,"aria-haspopup":"true","aria-expanded":h?"true":void 0,onClick:b,variant:"contained",sx:{height:"40px",px:2,backgroundColor:"#fbbb04","&:hover":{backgroundColor:"#eab308"}},children:"Analyze Package"}),p.jsxs(D.Menu,{id:"basic-menu",anchorEl:l,open:h,onClose:g,MenuListProps:{"aria-labelledby":"basic-button",sx:{py:.5}},children:[p.jsxs(D.MenuItem,{onClick:()=>{d(!0),g()},sx:{py:1,px:2},disabled:T,children:[p.jsx(D.ListItemIcon,{children:p.jsx(Pn.Add,{fontSize:"small"})}),p.jsxs(D.ListItemText,{children:[p.jsx(D.Typography,{variant:"body2",fontWeight:500,children:"New Workbook"}),T?p.jsx(D.Typography,{variant:"caption",color:"text.secondary",children:"No workspaces available"}):p.jsx(D.Typography,{variant:"caption",color:"text.secondary",children:"Create a new analysis workbook"})]})]}),p.jsxs(D.MenuItem,{onClick:()=>{f(!0),g()},sx:{py:1,px:2},children:[p.jsx(D.ListItemIcon,{children:p.jsx(Pn.Launch,{fontSize:"small"})}),p.jsxs(D.ListItemText,{children:[p.jsx(D.Typography,{variant:"body2",fontWeight:500,children:"Open Workbook"}),p.jsx(D.Typography,{variant:"caption",color:"text.secondary",children:"Open an existing workbook"})]})]})]}),p.jsxs(D.Dialog,{open:c,onClose:C,maxWidth:"sm",fullWidth:!0,children:[p.jsxs(D.DialogTitle,{sx:{pb:1,pt:2,px:2},children:[p.jsx(D.Typography,{fontWeight:600,sx:{fontSize:"1.5rem",mb:.5},children:"Create New Workbook"}),p.jsx(D.Typography,{variant:"body2",color:"text.secondary",children:"Start a new analysis workbook to explore your data"})]}),p.jsx(D.DialogContent,{sx:{px:2,pb:2},children:p.jsxs(D.Stack,{spacing:2,sx:{mt:1},children:[s.length>1?p.jsxs(D.FormControl,{fullWidth:!0,size:"small",children:[p.jsx(D.InputLabel,{children:"Workspace"}),p.jsx(D.Select,{value:a,label:"Workspace",onChange:S=>o(S.target.value),children:s.map(S=>p.jsx(D.MenuItem,{value:S.name,children:p.jsxs(D.Box,{children:[p.jsx(D.Typography,{variant:"body2",fontWeight:500,children:S.name}),p.jsx(D.Typography,{variant:"caption",color:"text.secondary",children:S.description})]})},S.name))})]}):s.length===1?p.jsxs(D.Box,{sx:{p:2,border:1,borderColor:"divider",borderRadius:1,backgroundColor:"grey.50"},children:[p.jsxs(D.Typography,{variant:"body2",fontWeight:500,gutterBottom:!0,children:["Workspace: ",s[0].name]}),p.jsx(D.Typography,{variant:"caption",color:"text.secondary",children:s[0].description})]}):null,p.jsx(D.FormControl,{fullWidth:!0,children:p.jsx(D.TextField,{label:"Workbook Name",value:n,onChange:S=>r(S.target.value),placeholder:"Enter workbook name...",fullWidth:!0,autoFocus:!0,size:"small"})}),p.jsxs(D.Stack,{direction:"row",spacing:1,justifyContent:"flex-end",children:[p.jsx(D.Button,{onClick:C,variant:"outlined",size:"small",children:"Cancel"}),p.jsx(D.Button,{onClick:S=>k(S),variant:"contained",disabled:!n.trim()||s.length>1&&!a,size:"small",children:"Create Workbook"})]})]})})]}),p.jsxs(D.Dialog,{open:m,onClose:x,maxWidth:"md",fullWidth:!0,children:[p.jsxs(D.DialogTitle,{sx:{pb:1,pt:2,px:2},children:[p.jsx(D.Typography,{fontWeight:600,sx:{mb:.5,fontSize:"1.5rem"},children:"Open Workbook"}),p.jsx(D.Typography,{variant:"body2",color:"text.secondary",children:"Select an existing workbook to continue your analysis"})]}),p.jsx(D.DialogContent,{sx:{px:2,pb:2},children:p.jsx(Hy,{onWorkbookClick:E})})]})]})}const uM=e=>{const t=w.useRef({});return w.useEffect(()=>{t.current=e}),t.current};function Yh({array1:e,array2:t,parser:n=r=>r}){return e&&t&&e.length===t.length&&e.every((r,a)=>n(r)===n(t[a]))}function Gh(e){return e.normalize("NFD").replace(/[\u0300-\u036f]/g,"")}function cM(e={}){const{ignoreAccents:t=!0,ignoreCase:n=!0,limit:r,matchFrom:a="any",stringify:o,trim:s=!1}=e;return(i,{inputValue:l,getOptionLabel:u})=>{let c=s?l.trim():l;n&&(c=c.toLowerCase()),t&&(c=Gh(c));const d=c?i.filter(m=>{let f=(o||u)(m);return n&&(f=f.toLowerCase()),t&&(f=Gh(f)),a==="start"?f.startsWith(c):f.includes(c)}):i;return typeof r=="number"?d.slice(0,r):d}}const dM=cM(),Kh=5,pM=e=>e.current!==null&&e.current.parentElement?.contains(document.activeElement),fM=[];function Qh(e,t,n,r){if(t||e==null||r)return"";const a=n(e);return typeof a=="string"?a:""}function mM(e){const{unstable_isActiveElementInListbox:t=pM,unstable_classNamePrefix:n="Mui",autoComplete:r=!1,autoHighlight:a=!1,autoSelect:o=!1,blurOnSelect:s=!1,clearOnBlur:i=!e.freeSolo,clearOnEscape:l=!1,componentName:u="useAutocomplete",defaultValue:c=e.multiple?fM:null,disableClearable:d=!1,disableCloseOnSelect:m=!1,disabled:f,disabledItemsFocusable:h=!1,disableListWrap:b=!1,filterOptions:g=dM,filterSelectedOptions:x=!1,freeSolo:C=!1,getOptionDisabled:E,getOptionKey:k,getOptionLabel:T=ge=>ge.label??ge,groupBy:S,handleHomeEndKeys:O=!e.freeSolo,id:M,includeInputInList:$=!1,inputValue:P,isOptionEqualToValue:L=(ge,he)=>ge===he,multiple:v=!1,onChange:N,onClose:I,onHighlightChange:A,onInputChange:R,onOpen:W,open:H,openOnFocus:B=!1,options:_,readOnly:V=!1,renderValue:J,selectOnFocus:F=!e.freeSolo,value:de}=e,Z=or(M);let Y=T;Y=ge=>{const he=T(ge);return typeof he!="string"?String(he):he};const te=w.useRef(!1),X=w.useRef(!0),re=w.useRef(null),Q=w.useRef(null),[G,se]=w.useState(null),[ee,ne]=w.useState(-1),xe=a?0:-1,pe=w.useRef(xe),be=w.useRef(Qh(c??de,v,Y)).current,[le,Pe]=An({controlled:de,default:c,name:u}),[Te,ze]=An({controlled:P,default:be,name:u,state:"inputValue"}),[we,Tt]=w.useState(!1),lt=w.useCallback((ge,he,Oe)=>{if(!(v?le.length<he.length:he!==null)&&!i)return;const Ye=Qh(he,v,Y,J);Te!==Ye&&(ze(Ye),R&&R(ge,Ye,Oe))},[Y,Te,v,R,ze,i,le,J]),[qe,ue]=An({controlled:H,default:!1,name:u,state:"open"}),[Ee,Me]=w.useState(!0),He=!v&&le!=null&&Te===Y(le),Be=qe&&!V,Ne=Be?g(_.filter(ge=>!(x&&(v?le:[le]).some(he=>he!==null&&L(ge,he)))),{inputValue:He&&Ee?"":Te,getOptionLabel:Y}):[],Je=uM({filteredOptions:Ne,value:le,inputValue:Te});w.useEffect(()=>{const ge=le!==Je.value;we&&!ge||C&&!ge||lt(null,le,"reset")},[le,lt,we,Je.value,C]);const gt=qe&&Ne.length>0&&!V,ft=Ae(ge=>{if(ge===-1)re.current.focus();else{const he=J?"data-item-index":"data-tag-index";G.querySelector(`[${he}="${ge}"]`).focus()}});w.useEffect(()=>{v&&ee>le.length-1&&(ne(-1),ft(-1))},[le,v,ee,ft]);function ie(ge,he){if(!Q.current||ge<0||ge>=Ne.length)return-1;let Oe=ge;for(;;){const Ve=Q.current.querySelector(`[data-option-index="${Oe}"]`),Ye=h?!1:!Ve||Ve.disabled||Ve.getAttribute("aria-disabled")==="true";if(Ve&&Ve.hasAttribute("tabindex")&&!Ye)return Oe;if(he==="next"?Oe=(Oe+1)%Ne.length:Oe=(Oe-1+Ne.length)%Ne.length,Oe===ge)return-1}}const ye=Ae(({event:ge,index:he,reason:Oe})=>{if(pe.current=he,he===-1?re.current.removeAttribute("aria-activedescendant"):re.current.setAttribute("aria-activedescendant",`${Z}-option-${he}`),A&&["mouse","keyboard","touch"].includes(Oe)&&A(ge,he===-1?null:Ne[he],Oe),!Q.current)return;const Ve=Q.current.querySelector(`[role="option"].${n}-focused`);Ve&&(Ve.classList.remove(`${n}-focused`),Ve.classList.remove(`${n}-focusVisible`));let Ye=Q.current;if(Q.current.getAttribute("role")!=="listbox"&&(Ye=Q.current.parentElement.querySelector('[role="listbox"]')),!Ye)return;if(he===-1){Ye.scrollTop=0;return}const Kt=Q.current.querySelector(`[data-option-index="${he}"]`);if(Kt&&(Kt.classList.add(`${n}-focused`),Oe==="keyboard"&&Kt.classList.add(`${n}-focusVisible`),Ye.scrollHeight>Ye.clientHeight&&Oe!=="mouse"&&Oe!=="touch")){const Ft=Kt,tr=Ye.clientHeight+Ye.scrollTop,Si=Ft.offsetTop+Ft.offsetHeight;Si>tr?Ye.scrollTop=Si-Ye.clientHeight:Ft.offsetTop-Ft.offsetHeight*(S?1.3:0)<Ye.scrollTop&&(Ye.scrollTop=Ft.offsetTop-Ft.offsetHeight*(S?1.3:0))}}),ve=Ae(({event:ge,diff:he,direction:Oe="next",reason:Ve})=>{if(!Be)return;const Kt=ie((()=>{const Ft=Ne.length-1;if(he==="reset")return xe;if(he==="start")return 0;if(he==="end")return Ft;const tr=pe.current+he;return tr<0?tr===-1&&$?-1:b&&pe.current!==-1||Math.abs(he)>1?0:Ft:tr>Ft?tr===Ft+1&&$?-1:b||Math.abs(he)>1?Ft:0:tr})(),Oe);if(ye({index:Kt,reason:Ve,event:ge}),r&&he!=="reset")if(Kt===-1)re.current.value=Te;else{const Ft=Y(Ne[Kt]);re.current.value=Ft,Ft.toLowerCase().indexOf(Te.toLowerCase())===0&&Te.length>0&&re.current.setSelectionRange(Te.length,Ft.length)}}),$e=!Yh({array1:Je.filteredOptions,array2:Ne,parser:Y}),We=()=>{const ge=(he,Oe)=>{const Ve=he?Y(he):"",Ye=Oe?Y(Oe):"";return Ve===Ye};if(pe.current!==-1&&!Yh({array1:Je.filteredOptions,array2:Ne,parser:Y})&&Je.inputValue===Te&&(v?le.length===Je.value.length&&Je.value.every((he,Oe)=>Y(le[Oe])===Y(he)):ge(Je.value,le))){const he=Je.filteredOptions[pe.current];if(he)return Ne.findIndex(Oe=>Y(Oe)===Y(he))}return-1},It=w.useCallback(()=>{if(!Be)return;const ge=We();if(ge!==-1){pe.current=ge;return}const he=v?le[0]:le;if(Ne.length===0||he==null){ve({diff:"reset"});return}if(Q.current){if(he!=null){const Oe=Ne[pe.current];if(v&&Oe&&le.findIndex(Ye=>L(Oe,Ye))!==-1)return;const Ve=Ne.findIndex(Ye=>L(Ye,he));Ve===-1?ve({diff:"reset"}):ye({index:Ve});return}if(pe.current>=Ne.length-1){ye({index:Ne.length-1});return}ye({index:pe.current})}},[Ne.length,v?!1:le,x,ve,ye,Be,Te,v]),Nt=Ae(ge=>{Kc(Q,ge),ge&&It()});w.useEffect(()=>{$e&&It()},[It,$e]);const xt=ge=>{qe||(ue(!0),Me(!0),W&&W(ge))},zt=(ge,he)=>{qe&&(ue(!1),I&&I(ge,he))},Nn=(ge,he,Oe,Ve)=>{if(v){if(le.length===he.length&&le.every((Ye,Kt)=>Ye===he[Kt]))return}else if(le===he)return;N&&N(ge,he,Oe,Ve),Pe(he)},At=w.useRef(!1),rn=(ge,he,Oe="selectOption",Ve="options")=>{let Ye=Oe,Kt=he;if(v){Kt=Array.isArray(le)?le.slice():[];const Ft=Kt.findIndex(tr=>L(he,tr));Ft===-1?Kt.push(he):Ve!=="freeSolo"&&(Kt.splice(Ft,1),Ye="removeOption")}lt(ge,Kt,Ye),Nn(ge,Kt,Ye,{option:he}),!m&&(!ge||!ge.ctrlKey&&!ge.metaKey)&&zt(ge,Ye),(s===!0||s==="touch"&&At.current||s==="mouse"&&!At.current)&&re.current.blur()};function _r(ge,he){if(ge===-1)return-1;let Oe=ge;for(;;){if(he==="next"&&Oe===le.length||he==="previous"&&Oe===-1)return-1;const Ve=J?"data-item-index":"data-tag-index",Ye=G.querySelector(`[${Ve}="${Oe}"]`);if(!Ye||!Ye.hasAttribute("tabindex")||Ye.disabled||Ye.getAttribute("aria-disabled")==="true")Oe+=he==="next"?1:-1;else return Oe}}const On=(ge,he)=>{if(!v)return;Te===""&&zt(ge,"toggleInput");let Oe=ee;ee===-1?Te===""&&he==="previous"&&(Oe=le.length-1):(Oe+=he==="next"?1:-1,Oe<0&&(Oe=0),Oe===le.length&&(Oe=-1)),Oe=_r(Oe,he),ne(Oe),ft(Oe)},ca=ge=>{te.current=!0,ze(""),R&&R(ge,"","clear"),Nn(ge,v?[]:null,"clear")},er=ge=>he=>{if(ge.onKeyDown&&ge.onKeyDown(he),!he.defaultMuiPrevented&&(ee!==-1&&!["ArrowLeft","ArrowRight"].includes(he.key)&&(ne(-1),ft(-1)),he.which!==229))switch(he.key){case"Home":Be&&O&&(he.preventDefault(),ve({diff:"start",direction:"next",reason:"keyboard",event:he}));break;case"End":Be&&O&&(he.preventDefault(),ve({diff:"end",direction:"previous",reason:"keyboard",event:he}));break;case"PageUp":he.preventDefault(),ve({diff:-Kh,direction:"previous",reason:"keyboard",event:he}),xt(he);break;case"PageDown":he.preventDefault(),ve({diff:Kh,direction:"next",reason:"keyboard",event:he}),xt(he);break;case"ArrowDown":he.preventDefault(),ve({diff:1,direction:"next",reason:"keyboard",event:he}),xt(he);break;case"ArrowUp":he.preventDefault(),ve({diff:-1,direction:"previous",reason:"keyboard",event:he}),xt(he);break;case"ArrowLeft":!v&&J?ft(0):On(he,"previous");break;case"ArrowRight":!v&&J?ft(-1):On(he,"next");break;case"Enter":if(pe.current!==-1&&Be){const Oe=Ne[pe.current],Ve=E?E(Oe):!1;if(he.preventDefault(),Ve)return;rn(he,Oe,"selectOption"),r&&re.current.setSelectionRange(re.current.value.length,re.current.value.length)}else C&&Te!==""&&He===!1&&(v&&he.preventDefault(),rn(he,Te,"createOption","freeSolo"));break;case"Escape":Be?(he.preventDefault(),he.stopPropagation(),zt(he,"escape")):l&&(Te!==""||v&&le.length>0||J)&&(he.preventDefault(),he.stopPropagation(),ca(he));break;case"Backspace":if(v&&!V&&Te===""&&le.length>0){const Oe=ee===-1?le.length-1:ee,Ve=le.slice();Ve.splice(Oe,1),Nn(he,Ve,"removeOption",{option:le[Oe]})}!v&&J&&!V&&(Pe(null),ft(-1));break;case"Delete":if(v&&!V&&Te===""&&le.length>0&&ee!==-1){const Oe=ee,Ve=le.slice();Ve.splice(Oe,1),Nn(he,Ve,"removeOption",{option:le[Oe]})}!v&&J&&!V&&(Pe(null),ft(-1));break}},Ir=ge=>{Tt(!0),B&&!te.current&&xt(ge)},qa=ge=>{if(t(Q)){re.current.focus();return}Tt(!1),X.current=!0,te.current=!1,o&&pe.current!==-1&&Be?rn(ge,Ne[pe.current],"blur"):o&&C&&Te!==""?rn(ge,Te,"blur","freeSolo"):i&&lt(ge,le,"blur"),zt(ge,"blur")},qo=ge=>{const he=ge.target.value;Te!==he&&(ze(he),Me(!1),R&&R(ge,he,"input")),he===""?!d&&!v&&Nn(ge,null,"clear"):xt(ge)},Bu=ge=>{const he=Number(ge.currentTarget.getAttribute("data-option-index"));pe.current!==he&&ye({event:ge,index:he,reason:"mouse"})},ju=ge=>{ye({event:ge,index:Number(ge.currentTarget.getAttribute("data-option-index")),reason:"touch"}),At.current=!0},Hu=ge=>{const he=Number(ge.currentTarget.getAttribute("data-option-index"));rn(ge,Ne[he],"selectOption"),At.current=!1},Uu=ge=>he=>{const Oe=le.slice();Oe.splice(ge,1),Nn(he,Oe,"removeOption",{option:le[ge]})},Yo=ge=>{Nn(ge,null,"removeOption",{option:le})},Vt=ge=>{qe?zt(ge,"toggleInput"):xt(ge)},Gt=ge=>{ge.currentTarget.contains(ge.target)&&ge.target.getAttribute("id")!==Z&&ge.preventDefault()},qr=ge=>{ge.currentTarget.contains(ge.target)&&(re.current.focus(),F&&X.current&&re.current.selectionEnd-re.current.selectionStart===0&&re.current.select(),X.current=!1)},zu=ge=>{!f&&(Te===""||!qe)&&Vt(ge)};let Go=C&&Te.length>0;Go=Go||(v?le.length>0:le!==null);let ki=Ne;return S&&(ki=Ne.reduce((ge,he,Oe)=>{const Ve=S(he);return ge.length>0&&ge[ge.length-1].group===Ve?ge[ge.length-1].options.push(he):ge.push({key:Oe,index:Oe,group:Ve,options:[he]}),ge},[])),f&&we&&qa(),{getRootProps:(ge={})=>({...ge,onKeyDown:er(ge),onMouseDown:Gt,onClick:qr}),getInputLabelProps:()=>({id:`${Z}-label`,htmlFor:Z}),getInputProps:()=>({id:Z,value:Te,onBlur:qa,onFocus:Ir,onChange:qo,onMouseDown:zu,"aria-activedescendant":Be?"":null,"aria-autocomplete":r?"both":"list","aria-controls":gt?`${Z}-listbox`:void 0,"aria-expanded":gt,autoComplete:"off",ref:re,autoCapitalize:"none",spellCheck:"false",role:"combobox",disabled:f}),getClearProps:()=>({tabIndex:-1,type:"button",onClick:ca}),getItemProps:({index:ge=0}={})=>({...v&&{key:ge},...J?{"data-item-index":ge}:{"data-tag-index":ge},tabIndex:-1,...!V&&{onDelete:v?Uu(ge):Yo}}),getPopupIndicatorProps:()=>({tabIndex:-1,type:"button",onClick:Vt}),getTagProps:({index:ge})=>({key:ge,"data-tag-index":ge,tabIndex:-1,...!V&&{onDelete:Uu(ge)}}),getListboxProps:()=>({role:"listbox",id:`${Z}-listbox`,"aria-labelledby":`${Z}-label`,ref:Nt,onMouseDown:ge=>{ge.preventDefault()}}),getOptionProps:({index:ge,option:he})=>{const Oe=(v?le:[le]).some(Ye=>Ye!=null&&L(he,Ye)),Ve=E?E(he):!1;return{key:k?.(he)??Y(he),tabIndex:-1,role:"option",id:`${Z}-option-${ge}`,onMouseMove:Bu,onClick:Hu,onTouchStart:ju,"data-option-index":ge,"aria-disabled":Ve,"aria-selected":Oe}},id:Z,inputValue:Te,value:le,dirty:Go,expanded:Be&&G,popupOpen:Be,focused:we||ee!==-1,anchorEl:G,setAnchorEl:se,focusedItem:ee,focusedTag:ee,groupedOptions:ki}}const Uy=ce.oneOfType([ce.func,ce.object]);var Cn="top",qn="bottom",Yn="right",En="left",Lp="auto",yi=[Cn,qn,Yn,En],ko="start",Ks="end",hM="clippingParents",zy="viewport",ss="popper",gM="reference",Xh=yi.reduce(function(e,t){return e.concat([t+"-"+ko,t+"-"+Ks])},[]),Vy=[].concat(yi,[Lp]).reduce(function(e,t){return e.concat([t,t+"-"+ko,t+"-"+Ks])},[]),bM="beforeRead",yM="read",xM="afterRead",CM="beforeMain",EM="main",vM="afterMain",TM="beforeWrite",kM="write",SM="afterWrite",wM=[bM,yM,xM,CM,EM,vM,TM,kM,SM];function xr(e){return e?(e.nodeName||"").toLowerCase():null}function Rn(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Oa(e){var t=Rn(e).Element;return e instanceof t||e instanceof Element}function Vn(e){var t=Rn(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Fp(e){if(typeof ShadowRoot>"u")return!1;var t=Rn(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function _M(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var r=t.styles[n]||{},a=t.attributes[n]||{},o=t.elements[n];!Vn(o)||!xr(o)||(Object.assign(o.style,r),Object.keys(a).forEach(function(s){var i=a[s];i===!1?o.removeAttribute(s):o.setAttribute(s,i===!0?"":i)}))})}function IM(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 a=t.elements[r],o=t.attributes[r]||{},s=Object.keys(t.styles.hasOwnProperty(r)?t.styles[r]:n[r]),i=s.reduce(function(l,u){return l[u]="",l},{});!Vn(a)||!xr(a)||(Object.assign(a.style,i),Object.keys(o).forEach(function(l){a.removeAttribute(l)}))})}}const AM={name:"applyStyles",enabled:!0,phase:"write",fn:_M,effect:IM,requires:["computeStyles"]};function yr(e){return e.split("-")[0]}var Aa=Math.max,Ul=Math.min,So=Math.round;function _d(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function Wy(){return!/^((?!chrome|android).)*safari/i.test(_d())}function wo(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var r=e.getBoundingClientRect(),a=1,o=1;t&&Vn(e)&&(a=e.offsetWidth>0&&So(r.width)/e.offsetWidth||1,o=e.offsetHeight>0&&So(r.height)/e.offsetHeight||1);var s=Oa(e)?Rn(e):window,i=s.visualViewport,l=!Wy()&&n,u=(r.left+(l&&i?i.offsetLeft:0))/a,c=(r.top+(l&&i?i.offsetTop:0))/o,d=r.width/a,m=r.height/o;return{width:d,height:m,top:c,right:u+d,bottom:c+m,left:u,x:u,y:c}}function $p(e){var t=wo(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 qy(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Fp(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function Br(e){return Rn(e).getComputedStyle(e)}function DM(e){return["table","td","th"].indexOf(xr(e))>=0}function ua(e){return((Oa(e)?e.ownerDocument:e.document)||window.document).documentElement}function Su(e){return xr(e)==="html"?e:e.assignedSlot||e.parentNode||(Fp(e)?e.host:null)||ua(e)}function Zh(e){return!Vn(e)||Br(e).position==="fixed"?null:e.offsetParent}function PM(e){var t=/firefox/i.test(_d()),n=/Trident/i.test(_d());if(n&&Vn(e)){var r=Br(e);if(r.position==="fixed")return null}var a=Su(e);for(Fp(a)&&(a=a.host);Vn(a)&&["html","body"].indexOf(xr(a))<0;){var o=Br(a);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return a;a=a.parentNode}return null}function xi(e){for(var t=Rn(e),n=Zh(e);n&&DM(n)&&Br(n).position==="static";)n=Zh(n);return n&&(xr(n)==="html"||xr(n)==="body"&&Br(n).position==="static")?t:n||PM(e)||t}function Bp(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Ms(e,t,n){return Aa(e,Ul(t,n))}function RM(e,t,n){var r=Ms(e,t,n);return r>n?n:r}function Yy(){return{top:0,right:0,bottom:0,left:0}}function Gy(e){return Object.assign({},Yy(),e)}function Ky(e,t){return t.reduce(function(n,r){return n[r]=e,n},{})}var MM=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,Gy(typeof t!="number"?t:Ky(t,yi))};function NM(e){var t,n=e.state,r=e.name,a=e.options,o=n.elements.arrow,s=n.modifiersData.popperOffsets,i=yr(n.placement),l=Bp(i),u=[En,Yn].indexOf(i)>=0,c=u?"height":"width";if(!(!o||!s)){var d=MM(a.padding,n),m=$p(o),f=l==="y"?Cn:En,h=l==="y"?qn:Yn,b=n.rects.reference[c]+n.rects.reference[l]-s[l]-n.rects.popper[c],g=s[l]-n.rects.reference[l],x=xi(o),C=x?l==="y"?x.clientHeight||0:x.clientWidth||0:0,E=b/2-g/2,k=d[f],T=C-m[c]-d[h],S=C/2-m[c]/2+E,O=Ms(k,S,T),M=l;n.modifiersData[r]=(t={},t[M]=O,t.centerOffset=O-S,t)}}function OM(e){var t=e.state,n=e.options,r=n.element,a=r===void 0?"[data-popper-arrow]":r;a!=null&&(typeof a=="string"&&(a=t.elements.popper.querySelector(a),!a)||qy(t.elements.popper,a)&&(t.elements.arrow=a))}const LM={name:"arrow",enabled:!0,phase:"main",fn:NM,effect:OM,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function _o(e){return e.split("-")[1]}var FM={top:"auto",right:"auto",bottom:"auto",left:"auto"};function $M(e,t){var n=e.x,r=e.y,a=t.devicePixelRatio||1;return{x:So(n*a)/a||0,y:So(r*a)/a||0}}function Jh(e){var t,n=e.popper,r=e.popperRect,a=e.placement,o=e.variation,s=e.offsets,i=e.position,l=e.gpuAcceleration,u=e.adaptive,c=e.roundOffsets,d=e.isFixed,m=s.x,f=m===void 0?0:m,h=s.y,b=h===void 0?0:h,g=typeof c=="function"?c({x:f,y:b}):{x:f,y:b};f=g.x,b=g.y;var x=s.hasOwnProperty("x"),C=s.hasOwnProperty("y"),E=En,k=Cn,T=window;if(u){var S=xi(n),O="clientHeight",M="clientWidth";if(S===Rn(n)&&(S=ua(n),Br(S).position!=="static"&&i==="absolute"&&(O="scrollHeight",M="scrollWidth")),S=S,a===Cn||(a===En||a===Yn)&&o===Ks){k=qn;var $=d&&S===T&&T.visualViewport?T.visualViewport.height:S[O];b-=$-r.height,b*=l?1:-1}if(a===En||(a===Cn||a===qn)&&o===Ks){E=Yn;var P=d&&S===T&&T.visualViewport?T.visualViewport.width:S[M];f-=P-r.width,f*=l?1:-1}}var L=Object.assign({position:i},u&&FM),v=c===!0?$M({x:f,y:b},Rn(n)):{x:f,y:b};if(f=v.x,b=v.y,l){var N;return Object.assign({},L,(N={},N[k]=C?"0":"",N[E]=x?"0":"",N.transform=(T.devicePixelRatio||1)<=1?"translate("+f+"px, "+b+"px)":"translate3d("+f+"px, "+b+"px, 0)",N))}return Object.assign({},L,(t={},t[k]=C?b+"px":"",t[E]=x?f+"px":"",t.transform="",t))}function BM(e){var t=e.state,n=e.options,r=n.gpuAcceleration,a=r===void 0?!0:r,o=n.adaptive,s=o===void 0?!0:o,i=n.roundOffsets,l=i===void 0?!0:i,u={placement:yr(t.placement),variation:_o(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:a,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,Jh(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,Jh(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 jM={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:BM,data:{}};var ji={passive:!0};function HM(e){var t=e.state,n=e.instance,r=e.options,a=r.scroll,o=a===void 0?!0:a,s=r.resize,i=s===void 0?!0:s,l=Rn(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&u.forEach(function(c){c.addEventListener("scroll",n.update,ji)}),i&&l.addEventListener("resize",n.update,ji),function(){o&&u.forEach(function(c){c.removeEventListener("scroll",n.update,ji)}),i&&l.removeEventListener("resize",n.update,ji)}}const UM={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:HM,data:{}};var zM={left:"right",right:"left",bottom:"top",top:"bottom"};function ol(e){return e.replace(/left|right|bottom|top/g,function(t){return zM[t]})}var VM={start:"end",end:"start"};function eg(e){return e.replace(/start|end/g,function(t){return VM[t]})}function jp(e){var t=Rn(e),n=t.pageXOffset,r=t.pageYOffset;return{scrollLeft:n,scrollTop:r}}function Hp(e){return wo(ua(e)).left+jp(e).scrollLeft}function WM(e,t){var n=Rn(e),r=ua(e),a=n.visualViewport,o=r.clientWidth,s=r.clientHeight,i=0,l=0;if(a){o=a.width,s=a.height;var u=Wy();(u||!u&&t==="fixed")&&(i=a.offsetLeft,l=a.offsetTop)}return{width:o,height:s,x:i+Hp(e),y:l}}function qM(e){var t,n=ua(e),r=jp(e),a=(t=e.ownerDocument)==null?void 0:t.body,o=Aa(n.scrollWidth,n.clientWidth,a?a.scrollWidth:0,a?a.clientWidth:0),s=Aa(n.scrollHeight,n.clientHeight,a?a.scrollHeight:0,a?a.clientHeight:0),i=-r.scrollLeft+Hp(e),l=-r.scrollTop;return Br(a||n).direction==="rtl"&&(i+=Aa(n.clientWidth,a?a.clientWidth:0)-o),{width:o,height:s,x:i,y:l}}function Up(e){var t=Br(e),n=t.overflow,r=t.overflowX,a=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+a+r)}function Qy(e){return["html","body","#document"].indexOf(xr(e))>=0?e.ownerDocument.body:Vn(e)&&Up(e)?e:Qy(Su(e))}function Ns(e,t){var n;t===void 0&&(t=[]);var r=Qy(e),a=r===((n=e.ownerDocument)==null?void 0:n.body),o=Rn(r),s=a?[o].concat(o.visualViewport||[],Up(r)?r:[]):r,i=t.concat(s);return a?i:i.concat(Ns(Su(s)))}function Id(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function YM(e,t){var n=wo(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 tg(e,t,n){return t===zy?Id(WM(e,n)):Oa(t)?YM(t,n):Id(qM(ua(e)))}function GM(e){var t=Ns(Su(e)),n=["absolute","fixed"].indexOf(Br(e).position)>=0,r=n&&Vn(e)?xi(e):e;return Oa(r)?t.filter(function(a){return Oa(a)&&qy(a,r)&&xr(a)!=="body"}):[]}function KM(e,t,n,r){var a=t==="clippingParents"?GM(e):[].concat(t),o=[].concat(a,[n]),s=o[0],i=o.reduce(function(l,u){var c=tg(e,u,r);return l.top=Aa(c.top,l.top),l.right=Ul(c.right,l.right),l.bottom=Ul(c.bottom,l.bottom),l.left=Aa(c.left,l.left),l},tg(e,s,r));return i.width=i.right-i.left,i.height=i.bottom-i.top,i.x=i.left,i.y=i.top,i}function Xy(e){var t=e.reference,n=e.element,r=e.placement,a=r?yr(r):null,o=r?_o(r):null,s=t.x+t.width/2-n.width/2,i=t.y+t.height/2-n.height/2,l;switch(a){case Cn:l={x:s,y:t.y-n.height};break;case qn:l={x:s,y:t.y+t.height};break;case Yn:l={x:t.x+t.width,y:i};break;case En:l={x:t.x-n.width,y:i};break;default:l={x:t.x,y:t.y}}var u=a?Bp(a):null;if(u!=null){var c=u==="y"?"height":"width";switch(o){case ko:l[u]=l[u]-(t[c]/2-n[c]/2);break;case Ks:l[u]=l[u]+(t[c]/2-n[c]/2);break}}return l}function Qs(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=r===void 0?e.placement:r,o=n.strategy,s=o===void 0?e.strategy:o,i=n.boundary,l=i===void 0?hM:i,u=n.rootBoundary,c=u===void 0?zy:u,d=n.elementContext,m=d===void 0?ss:d,f=n.altBoundary,h=f===void 0?!1:f,b=n.padding,g=b===void 0?0:b,x=Gy(typeof g!="number"?g:Ky(g,yi)),C=m===ss?gM:ss,E=e.rects.popper,k=e.elements[h?C:m],T=KM(Oa(k)?k:k.contextElement||ua(e.elements.popper),l,c,s),S=wo(e.elements.reference),O=Xy({reference:S,element:E,placement:a}),M=Id(Object.assign({},E,O)),$=m===ss?M:S,P={top:T.top-$.top+x.top,bottom:$.bottom-T.bottom+x.bottom,left:T.left-$.left+x.left,right:$.right-T.right+x.right},L=e.modifiersData.offset;if(m===ss&&L){var v=L[a];Object.keys(P).forEach(function(N){var I=[Yn,qn].indexOf(N)>=0?1:-1,A=[Cn,qn].indexOf(N)>=0?"y":"x";P[N]+=v[A]*I})}return P}function QM(e,t){t===void 0&&(t={});var n=t,r=n.placement,a=n.boundary,o=n.rootBoundary,s=n.padding,i=n.flipVariations,l=n.allowedAutoPlacements,u=l===void 0?Vy:l,c=_o(r),d=c?i?Xh:Xh.filter(function(h){return _o(h)===c}):yi,m=d.filter(function(h){return u.indexOf(h)>=0});m.length===0&&(m=d);var f=m.reduce(function(h,b){return h[b]=Qs(e,{placement:b,boundary:a,rootBoundary:o,padding:s})[yr(b)],h},{});return Object.keys(f).sort(function(h,b){return f[h]-f[b]})}function XM(e){if(yr(e)===Lp)return[];var t=ol(e);return[eg(e),t,eg(t)]}function ZM(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!0:s,l=n.fallbackPlacements,u=n.padding,c=n.boundary,d=n.rootBoundary,m=n.altBoundary,f=n.flipVariations,h=f===void 0?!0:f,b=n.allowedAutoPlacements,g=t.options.placement,x=yr(g),C=x===g,E=l||(C||!h?[ol(g)]:XM(g)),k=[g].concat(E).reduce(function(de,Z){return de.concat(yr(Z)===Lp?QM(t,{placement:Z,boundary:c,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:b}):Z)},[]),T=t.rects.reference,S=t.rects.popper,O=new Map,M=!0,$=k[0],P=0;P<k.length;P++){var L=k[P],v=yr(L),N=_o(L)===ko,I=[Cn,qn].indexOf(v)>=0,A=I?"width":"height",R=Qs(t,{placement:L,boundary:c,rootBoundary:d,altBoundary:m,padding:u}),W=I?N?Yn:En:N?qn:Cn;T[A]>S[A]&&(W=ol(W));var H=ol(W),B=[];if(o&&B.push(R[v]<=0),i&&B.push(R[W]<=0,R[H]<=0),B.every(function(de){return de})){$=L,M=!1;break}O.set(L,B)}if(M)for(var _=h?3:1,V=function(Z){var Y=k.find(function(te){var X=O.get(te);if(X)return X.slice(0,Z).every(function(re){return re})});if(Y)return $=Y,"break"},J=_;J>0;J--){var F=V(J);if(F==="break")break}t.placement!==$&&(t.modifiersData[r]._skip=!0,t.placement=$,t.reset=!0)}}const JM={name:"flip",enabled:!0,phase:"main",fn:ZM,requiresIfExists:["offset"],data:{_skip:!1}};function ng(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 rg(e){return[Cn,Yn,qn,En].some(function(t){return e[t]>=0})}function eN(e){var t=e.state,n=e.name,r=t.rects.reference,a=t.rects.popper,o=t.modifiersData.preventOverflow,s=Qs(t,{elementContext:"reference"}),i=Qs(t,{altBoundary:!0}),l=ng(s,r),u=ng(i,a,o),c=rg(l),d=rg(u);t.modifiersData[n]={referenceClippingOffsets:l,popperEscapeOffsets:u,isReferenceHidden:c,hasPopperEscaped:d},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":c,"data-popper-escaped":d})}const tN={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:eN};function nN(e,t,n){var r=yr(e),a=[En,Cn].indexOf(r)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,s=o[0],i=o[1];return s=s||0,i=(i||0)*a,[En,Yn].indexOf(r)>=0?{x:i,y:s}:{x:s,y:i}}function rN(e){var t=e.state,n=e.options,r=e.name,a=n.offset,o=a===void 0?[0,0]:a,s=Vy.reduce(function(c,d){return c[d]=nN(d,t.rects,o),c},{}),i=s[t.placement],l=i.x,u=i.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=u),t.modifiersData[r]=s}const aN={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:rN};function oN(e){var t=e.state,n=e.name;t.modifiersData[n]=Xy({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const sN={name:"popperOffsets",enabled:!0,phase:"read",fn:oN,data:{}};function iN(e){return e==="x"?"y":"x"}function lN(e){var t=e.state,n=e.options,r=e.name,a=n.mainAxis,o=a===void 0?!0:a,s=n.altAxis,i=s===void 0?!1:s,l=n.boundary,u=n.rootBoundary,c=n.altBoundary,d=n.padding,m=n.tether,f=m===void 0?!0:m,h=n.tetherOffset,b=h===void 0?0:h,g=Qs(t,{boundary:l,rootBoundary:u,padding:d,altBoundary:c}),x=yr(t.placement),C=_o(t.placement),E=!C,k=Bp(x),T=iN(k),S=t.modifiersData.popperOffsets,O=t.rects.reference,M=t.rects.popper,$=typeof b=="function"?b(Object.assign({},t.rects,{placement:t.placement})):b,P=typeof $=="number"?{mainAxis:$,altAxis:$}:Object.assign({mainAxis:0,altAxis:0},$),L=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,v={x:0,y:0};if(S){if(o){var N,I=k==="y"?Cn:En,A=k==="y"?qn:Yn,R=k==="y"?"height":"width",W=S[k],H=W+g[I],B=W-g[A],_=f?-M[R]/2:0,V=C===ko?O[R]:M[R],J=C===ko?-M[R]:-O[R],F=t.elements.arrow,de=f&&F?$p(F):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:Yy(),Y=Z[I],te=Z[A],X=Ms(0,O[R],de[R]),re=E?O[R]/2-_-X-Y-P.mainAxis:V-X-Y-P.mainAxis,Q=E?-O[R]/2+_+X+te+P.mainAxis:J+X+te+P.mainAxis,G=t.elements.arrow&&xi(t.elements.arrow),se=G?k==="y"?G.clientTop||0:G.clientLeft||0:0,ee=(N=L?.[k])!=null?N:0,ne=W+re-ee-se,xe=W+Q-ee,pe=Ms(f?Ul(H,ne):H,W,f?Aa(B,xe):B);S[k]=pe,v[k]=pe-W}if(i){var be,le=k==="x"?Cn:En,Pe=k==="x"?qn:Yn,Te=S[T],ze=T==="y"?"height":"width",we=Te+g[le],Tt=Te-g[Pe],lt=[Cn,En].indexOf(x)!==-1,qe=(be=L?.[T])!=null?be:0,ue=lt?we:Te-O[ze]-M[ze]-qe+P.altAxis,Ee=lt?Te+O[ze]+M[ze]-qe-P.altAxis:Tt,Me=f&&lt?RM(ue,Te,Ee):Ms(f?ue:we,Te,f?Ee:Tt);S[T]=Me,v[T]=Me-Te}t.modifiersData[r]=v}}const uN={name:"preventOverflow",enabled:!0,phase:"main",fn:lN,requiresIfExists:["offset"]};function cN(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function dN(e){return e===Rn(e)||!Vn(e)?jp(e):cN(e)}function pN(e){var t=e.getBoundingClientRect(),n=So(t.width)/e.offsetWidth||1,r=So(t.height)/e.offsetHeight||1;return n!==1||r!==1}function fN(e,t,n){n===void 0&&(n=!1);var r=Vn(t),a=Vn(t)&&pN(t),o=ua(t),s=wo(e,a,n),i={scrollLeft:0,scrollTop:0},l={x:0,y:0};return(r||!r&&!n)&&((xr(t)!=="body"||Up(o))&&(i=dN(t)),Vn(t)?(l=wo(t,!0),l.x+=t.clientLeft,l.y+=t.clientTop):o&&(l.x=Hp(o))),{x:s.left+i.scrollLeft-l.x,y:s.top+i.scrollTop-l.y,width:s.width,height:s.height}}function mN(e){var t=new Map,n=new Set,r=[];e.forEach(function(o){t.set(o.name,o)});function a(o){n.add(o.name);var s=[].concat(o.requires||[],o.requiresIfExists||[]);s.forEach(function(i){if(!n.has(i)){var l=t.get(i);l&&a(l)}}),r.push(o)}return e.forEach(function(o){n.has(o.name)||a(o)}),r}function hN(e){var t=mN(e);return wM.reduce(function(n,r){return n.concat(t.filter(function(a){return a.phase===r}))},[])}function gN(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function bN(e){var t=e.reduce(function(n,r){var a=n[r.name];return n[r.name]=a?Object.assign({},a,r,{options:Object.assign({},a.options,r.options),data:Object.assign({},a.data,r.data)}):r,n},{});return Object.keys(t).map(function(n){return t[n]})}var ag={placement:"bottom",modifiers:[],strategy:"absolute"};function og(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(r){return!(r&&typeof r.getBoundingClientRect=="function")})}function yN(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,r=n===void 0?[]:n,a=t.defaultOptions,o=a===void 0?ag:a;return function(i,l,u){u===void 0&&(u=o);var c={placement:"bottom",orderedModifiers:[],options:Object.assign({},ag,o),modifiersData:{},elements:{reference:i,popper:l},attributes:{},styles:{}},d=[],m=!1,f={state:c,setOptions:function(x){var C=typeof x=="function"?x(c.options):x;b(),c.options=Object.assign({},o,c.options,C),c.scrollParents={reference:Oa(i)?Ns(i):i.contextElement?Ns(i.contextElement):[],popper:Ns(l)};var E=hN(bN([].concat(r,c.options.modifiers)));return c.orderedModifiers=E.filter(function(k){return k.enabled}),h(),f.update()},forceUpdate:function(){if(!m){var x=c.elements,C=x.reference,E=x.popper;if(og(C,E)){c.rects={reference:fN(C,xi(E),c.options.strategy==="fixed"),popper:$p(E)},c.reset=!1,c.placement=c.options.placement,c.orderedModifiers.forEach(function(P){return c.modifiersData[P.name]=Object.assign({},P.data)});for(var k=0;k<c.orderedModifiers.length;k++){if(c.reset===!0){c.reset=!1,k=-1;continue}var T=c.orderedModifiers[k],S=T.fn,O=T.options,M=O===void 0?{}:O,$=T.name;typeof S=="function"&&(c=S({state:c,options:M,name:$,instance:f})||c)}}}},update:gN(function(){return new Promise(function(g){f.forceUpdate(),g(c)})}),destroy:function(){b(),m=!0}};if(!og(i,l))return f;f.setOptions(u).then(function(g){!m&&u.onFirstUpdate&&u.onFirstUpdate(g)});function h(){c.orderedModifiers.forEach(function(g){var x=g.name,C=g.options,E=C===void 0?{}:C,k=g.effect;if(typeof k=="function"){var T=k({state:c,name:x,instance:f,options:E}),S=function(){};d.push(T||S)}})}function b(){d.forEach(function(g){return g()}),d=[]}return f}}var xN=[UM,sN,jM,AM,aN,JM,uN,LM,tN],CN=yN({defaultModifiers:xN});function Io(e){return typeof e=="string"}function Zy(e,t,n){return e===void 0||Io(e)?t:{...t,ownerState:{...t.ownerState,...n}}}function dn(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 sg(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 Jy(e){const{getSlotProps:t,additionalProps:n,externalSlotProps:r,externalForwardedProps:a,className:o}=e;if(!t){const f=De(n?.className,o,a?.className,r?.className),h={...n?.style,...a?.style,...r?.style},b={...n,...a,...r};return f.length>0&&(b.className=f),Object.keys(h).length>0&&(b.style=h),{props:b,internalRef:void 0}}const s=dn({...a,...r}),i=sg(r),l=sg(a),u=t(s),c=De(u?.className,n?.className,o,a?.className,r?.className),d={...u?.style,...n?.style,...a?.style,...r?.style},m={...u,...n,...l,...i};return c.length>0&&(m.className=c),Object.keys(d).length>0&&(m.style=d),{props:m,internalRef:u.ref}}function zn(e,t,n){return typeof e=="function"?e(t,n):e}function at(e){const{elementType:t,externalSlotProps:n,ownerState:r,skipResolvingSlotProps:a=!1,...o}=e,s=a?{}:zn(n,r),{props:i,internalRef:l}=Jy({...o,externalSlotProps:s}),u=ot(l,s?.ref,e.additionalProps?.ref);return Zy(t,{...i,ref:u},r)}function zo(e){return parseInt(w.version,10)>=19?e?.props?.ref||null:e?.ref||null}function EN(e){return typeof e=="function"?e():e}const ex=w.forwardRef(function(t,n){const{children:r,container:a,disablePortal:o=!1}=t,[s,i]=w.useState(null),l=ot(w.isValidElement(r)?zo(r):null,n);if(qt(()=>{o||i(EN(a)||document.body)},[a,o]),qt(()=>{if(s&&!o)return Kc(n,s),()=>{Kc(n,null)}},[n,s,o]),o){if(w.isValidElement(r)){const u={ref:l};return w.cloneElement(r,u)}return r}return s&&nC.createPortal(r,s)});function vN(e){return Fe("MuiPopper",e)}Re("MuiPopper",["root"]);function TN(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 Ad(e){return typeof e=="function"?e():e}function kN(e){return e.nodeType!==void 0}const SN=e=>{const{classes:t}=e;return Le({root:["root"]},vN,t)},wN={},_N=w.forwardRef(function(t,n){const{anchorEl:r,children:a,direction:o,disablePortal:s,modifiers:i,open:l,placement:u,popperOptions:c,popperRef:d,slotProps:m={},slots:f={},TransitionProps:h,ownerState:b,...g}=t,x=w.useRef(null),C=ot(x,n),E=w.useRef(null),k=ot(E,d),T=w.useRef(k);qt(()=>{T.current=k},[k]),w.useImperativeHandle(d,()=>E.current,[]);const S=TN(u,o),[O,M]=w.useState(S),[$,P]=w.useState(Ad(r));w.useEffect(()=>{E.current&&E.current.forceUpdate()}),w.useEffect(()=>{r&&P(Ad(r))},[r]),qt(()=>{if(!$||!l)return;const A=H=>{M(H.placement)};let R=[{name:"preventOverflow",options:{altBoundary:s}},{name:"flip",options:{altBoundary:s}},{name:"onUpdate",enabled:!0,phase:"afterWrite",fn:({state:H})=>{A(H)}}];i!=null&&(R=R.concat(i)),c&&c.modifiers!=null&&(R=R.concat(c.modifiers));const W=CN($,x.current,{placement:S,...c,modifiers:R});return T.current(W),()=>{W.destroy(),T.current(null)}},[$,s,i,l,c,S]);const L={placement:O};h!==null&&(L.TransitionProps=h);const v=SN(t),N=f.root??"div",I=at({elementType:N,externalSlotProps:m.root,externalForwardedProps:g,additionalProps:{role:"tooltip",ref:C},ownerState:t,className:v.root});return p.jsx(N,{...I,children:typeof a=="function"?a(L):a})}),IN=w.forwardRef(function(t,n){const{anchorEl:r,children:a,container:o,direction:s="ltr",disablePortal:i=!1,keepMounted:l=!1,modifiers:u,open:c,placement:d="bottom",popperOptions:m=wN,popperRef:f,style:h,transition:b=!1,slotProps:g={},slots:x={},...C}=t,[E,k]=w.useState(!0),T=()=>{k(!1)},S=()=>{k(!0)};if(!l&&!c&&(!b||E))return null;let O;if(o)O=o;else if(r){const P=Ad(r);O=P&&kN(P)?Ut(P).body:Ut(null).body}const M=!c&&l&&(!b||E)?"none":void 0,$=b?{in:c,onEnter:T,onExited:S}:void 0;return p.jsx(ex,{disablePortal:i,container:O,children:p.jsx(_N,{anchorEl:r,direction:s,disablePortal:i,modifiers:u,ref:n,open:b?!E:c,placement:d,popperOptions:m,popperRef:f,slotProps:g,slots:x,...C,style:{position:"fixed",top:0,left:0,display:M,...h},TransitionProps:$,children:a})})}),AN=oe(IN,{name:"MuiPopper",slot:"Root"})({}),zp=w.forwardRef(function(t,n){const r=Qn(),a=Xe({props:t,name:"MuiPopper"}),{anchorEl:o,component:s,components:i,componentsProps:l,container:u,disablePortal:c,keepMounted:d,modifiers:m,open:f,placement:h,popperOptions:b,popperRef:g,transition:x,slots:C,slotProps:E,...k}=a,T=C?.root??i?.Root,S={anchorEl:o,container:u,disablePortal:c,keepMounted:d,modifiers:m,open:f,placement:h,popperOptions:b,popperRef:g,transition:x,...k};return p.jsx(AN,{as:s,direction:r?"rtl":"ltr",slots:{root:T},slotProps:E??l,...S,ref:n})});function DN(e){return Fe("MuiListSubheader",e)}Re("MuiListSubheader",["root","colorPrimary","colorInherit","gutters","inset","sticky"]);const PN=e=>{const{classes:t,color:n,disableGutters:r,inset:a,disableSticky:o}=e,s={root:["root",n!=="default"&&`color${Se(n)}`,!r&&"gutters",a&&"inset",!o&&"sticky"]};return Le(s,DN,t)},RN=oe("li",{name:"MuiListSubheader",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color!=="default"&&t[`color${Se(n.color)}`],!n.disableGutters&&t.gutters,n.inset&&t.inset,!n.disableSticky&&t.sticky]}})(tt(({theme:e})=>({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),variants:[{props:{color:"primary"},style:{color:(e.vars||e).palette.primary.main}},{props:{color:"inherit"},style:{color:"inherit"}},{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.inset,style:{paddingLeft:72}},{props:({ownerState:t})=>!t.disableSticky,style:{position:"sticky",top:0,zIndex:1,backgroundColor:(e.vars||e).palette.background.paper}}]}))),Dd=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListSubheader"}),{className:a,color:o="default",component:s="li",disableGutters:i=!1,disableSticky:l=!1,inset:u=!1,...c}=r,d={...r,color:o,component:s,disableGutters:i,disableSticky:l,inset:u},m=PN(d);return p.jsx(RN,{as:s,className:De(m.root,a),ref:n,ownerState:d,...c})});Dd&&(Dd.muiSkipListHighlight=!0);function MN(e){return Fe("MuiPaper",e)}Re("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 NN=e=>{const{square:t,elevation:n,variant:r,classes:a}=e,o={root:["root",r,!t&&"rounded",r==="elevation"&&`elevation${n}`]};return Le(o,MN,a)},ON=oe("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}`]]}})(tt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,color:(e.vars||e).palette.text.primary,transition:e.transitions.create("box-shadow"),variants:[{props:({ownerState:t})=>!t.square,style:{borderRadius:e.shape.borderRadius}},{props:{variant:"outlined"},style:{border:`1px solid ${(e.vars||e).palette.divider}`}},{props:{variant:"elevation"},style:{boxShadow:"var(--Paper-shadow)",backgroundImage:"var(--Paper-overlay)"}}]}))),za=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiPaper"}),a=oa(),{className:o,component:s="div",elevation:i=1,square:l=!1,variant:u="elevation",...c}=r,d={...r,component:s,elevation:i,square:l,variant:u},m=NN(d);return p.jsx(ON,{as:s,ownerState:d,className:De(m.root,o),ref:n,...c,style:{...u==="elevation"&&{"--Paper-shadow":(a.vars||a).shadows[i],...a.vars&&{"--Paper-overlay":a.vars.overlays?.[i]},...!a.vars&&a.palette.mode==="dark"&&{"--Paper-overlay":`linear-gradient(${yl("#fff",Yc(i))}, ${yl("#fff",Yc(i))})`}},...c.style}})});function LN(e){return typeof e.main=="string"}function FN(e,t=[]){if(!LN(e))return!1;for(const n of t)if(!e.hasOwnProperty(n)||typeof e[n]!="string")return!1;return!0}function mn(e=[]){return([,t])=>t&&FN(t,e)}function ig(e){try{return e.matches(":focus-visible")}catch{}return!1}const lg={};function tx(e,t){const n=w.useRef(lg);return n.current===lg&&(n.current=e(t)),n}class zl{static create(){return new zl}static use(){const t=tx(zl.create).current,[n,r]=w.useState(!1);return t.shouldMount=n,t.setShouldMount=r,w.useEffect(t.mountEffect,[n]),t}constructor(){this.ref={current:null},this.mounted=null,this.didMount=!1,this.shouldMount=!1,this.setShouldMount=null}mount(){return this.mounted||(this.mounted=BN(),this.shouldMount=!0,this.setShouldMount(this.shouldMount)),this.mounted}mountEffect=()=>{this.shouldMount&&!this.didMount&&this.ref.current!==null&&(this.didMount=!0,this.mounted.resolve())};start(...t){this.mount().then(()=>this.ref.current?.start(...t))}stop(...t){this.mount().then(()=>this.ref.current?.stop(...t))}pulsate(...t){this.mount().then(()=>this.ref.current?.pulsate(...t))}}function $N(){return zl.use()}function BN(){let e,t;const n=new Promise((r,a)=>{e=r,t=a});return n.resolve=e,n.reject=t,n}function Pd(e,t){return Pd=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(n,r){return n.__proto__=r,n},Pd(e,t)}function Vp(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,Pd(e,t)}function jN(e,t){return e.classList?!!t&&e.classList.contains(t):(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")!==-1}function HN(e,t){e.classList?e.classList.add(t):jN(e,t)||(typeof e.className=="string"?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))}function ug(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}function UN(e,t){e.classList?e.classList.remove(t):typeof e.className=="string"?e.className=ug(e.className,t):e.setAttribute("class",ug(e.className&&e.className.baseVal||"",t))}const cg={disabled:!1},Vl=q.createContext(null);var nx=function(t){return t.scrollTop},Cs="unmounted",ya="exited",xa="entering",oo="entered",Rd="exiting",Zn=(function(e){Vp(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=a,i=s&&!s.isMounting?r.enter:r.appear,l;return o.appearStatus=null,r.in?i?(l=ya,o.appearStatus=xa):l=oo:r.unmountOnExit||r.mountOnEnter?l=Cs:l=ya,o.state={status:l},o.nextCallback=null,o}t.getDerivedStateFromProps=function(a,o){var s=a.in;return s&&o.status===Cs?{status:ya}:null};var n=t.prototype;return n.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},n.componentDidUpdate=function(a){var o=null;if(a!==this.props){var s=this.state.status;this.props.in?s!==xa&&s!==oo&&(o=xa):(s===xa||s===oo)&&(o=Rd)}this.updateStatus(!1,o)},n.componentWillUnmount=function(){this.cancelNextCallback()},n.getTimeouts=function(){var a=this.props.timeout,o,s,i;return o=s=i=a,a!=null&&typeof a!="number"&&(o=a.exit,s=a.enter,i=a.appear!==void 0?a.appear:s),{exit:o,enter:s,appear:i}},n.updateStatus=function(a,o){if(a===void 0&&(a=!1),o!==null)if(this.cancelNextCallback(),o===xa){if(this.props.unmountOnExit||this.props.mountOnEnter){var s=this.props.nodeRef?this.props.nodeRef.current:hs.findDOMNode(this);s&&nx(s)}this.performEnter(a)}else this.performExit();else this.props.unmountOnExit&&this.state.status===ya&&this.setState({status:Cs})},n.performEnter=function(a){var o=this,s=this.props.enter,i=this.context?this.context.isMounting:a,l=this.props.nodeRef?[i]:[hs.findDOMNode(this),i],u=l[0],c=l[1],d=this.getTimeouts(),m=i?d.appear:d.enter;if(!a&&!s||cg.disabled){this.safeSetState({status:oo},function(){o.props.onEntered(u)});return}this.props.onEnter(u,c),this.safeSetState({status:xa},function(){o.props.onEntering(u,c),o.onTransitionEnd(m,function(){o.safeSetState({status:oo},function(){o.props.onEntered(u,c)})})})},n.performExit=function(){var a=this,o=this.props.exit,s=this.getTimeouts(),i=this.props.nodeRef?void 0:hs.findDOMNode(this);if(!o||cg.disabled){this.safeSetState({status:ya},function(){a.props.onExited(i)});return}this.props.onExit(i),this.safeSetState({status:Rd},function(){a.props.onExiting(i),a.onTransitionEnd(s.exit,function(){a.safeSetState({status:ya},function(){a.props.onExited(i)})})})},n.cancelNextCallback=function(){this.nextCallback!==null&&(this.nextCallback.cancel(),this.nextCallback=null)},n.safeSetState=function(a,o){o=this.setNextCallback(o),this.setState(a,o)},n.setNextCallback=function(a){var o=this,s=!0;return this.nextCallback=function(i){s&&(s=!1,o.nextCallback=null,a(i))},this.nextCallback.cancel=function(){s=!1},this.nextCallback},n.onTransitionEnd=function(a,o){this.setNextCallback(o);var s=this.props.nodeRef?this.props.nodeRef.current:hs.findDOMNode(this),i=a==null&&!this.props.addEndListener;if(!s||i){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)}a!=null&&setTimeout(this.nextCallback,a)},n.render=function(){var a=this.state.status;if(a===Cs)return null;var o=this.props,s=o.children;o.in,o.mountOnEnter,o.unmountOnExit,o.appear,o.enter,o.exit,o.timeout,o.addEndListener,o.onEnter,o.onEntering,o.onEntered,o.onExit,o.onExiting,o.onExited,o.nodeRef;var i=je(o,["children","in","mountOnEnter","unmountOnExit","appear","enter","exit","timeout","addEndListener","onEnter","onEntering","onEntered","onExit","onExiting","onExited","nodeRef"]);return q.createElement(Vl.Provider,{value:null},typeof s=="function"?s(a,i):q.cloneElement(q.Children.only(s),i))},t})(q.Component);Zn.contextType=Vl;Zn.propTypes={};function no(){}Zn.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:no,onEntering:no,onEntered:no,onExit:no,onExiting:no,onExited:no};Zn.UNMOUNTED=Cs;Zn.EXITED=ya;Zn.ENTERING=xa;Zn.ENTERED=oo;Zn.EXITING=Rd;var zN=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return HN(t,r)})},Mc=function(t,n){return t&&n&&n.split(" ").forEach(function(r){return UN(t,r)})},Wp=(function(e){Vp(t,e);function t(){for(var r,a=arguments.length,o=new Array(a),s=0;s<a;s++)o[s]=arguments[s];return r=e.call.apply(e,[this].concat(o))||this,r.appliedClasses={appear:{},enter:{},exit:{}},r.onEnter=function(i,l){var u=r.resolveArguments(i,l),c=u[0],d=u[1];r.removeClasses(c,"exit"),r.addClass(c,d?"appear":"enter","base"),r.props.onEnter&&r.props.onEnter(i,l)},r.onEntering=function(i,l){var u=r.resolveArguments(i,l),c=u[0],d=u[1],m=d?"appear":"enter";r.addClass(c,m,"active"),r.props.onEntering&&r.props.onEntering(i,l)},r.onEntered=function(i,l){var u=r.resolveArguments(i,l),c=u[0],d=u[1],m=d?"appear":"enter";r.removeClasses(c,m),r.addClass(c,m,"done"),r.props.onEntered&&r.props.onEntered(i,l)},r.onExit=function(i){var l=r.resolveArguments(i),u=l[0];r.removeClasses(u,"appear"),r.removeClasses(u,"enter"),r.addClass(u,"exit","base"),r.props.onExit&&r.props.onExit(i)},r.onExiting=function(i){var l=r.resolveArguments(i),u=l[0];r.addClass(u,"exit","active"),r.props.onExiting&&r.props.onExiting(i)},r.onExited=function(i){var l=r.resolveArguments(i),u=l[0];r.removeClasses(u,"exit"),r.addClass(u,"exit","done"),r.props.onExited&&r.props.onExited(i)},r.resolveArguments=function(i,l){return r.props.nodeRef?[r.props.nodeRef.current,i]:[i,l]},r.getClassNames=function(i){var l=r.props.classNames,u=typeof l=="string",c=u&&l?l+"-":"",d=u?""+c+i:l[i],m=u?d+"-active":l[i+"Active"],f=u?d+"-done":l[i+"Done"];return{baseClassName:d,activeClassName:m,doneClassName:f}},r}var n=t.prototype;return n.addClass=function(a,o,s){var i=this.getClassNames(o)[s+"ClassName"],l=this.getClassNames("enter"),u=l.doneClassName;o==="appear"&&s==="done"&&u&&(i+=" "+u),s==="active"&&a&&nx(a),i&&(this.appliedClasses[o][s]=i,zN(a,i))},n.removeClasses=function(a,o){var s=this.appliedClasses[o],i=s.base,l=s.active,u=s.done;this.appliedClasses[o]={},i&&Mc(a,i),l&&Mc(a,l),u&&Mc(a,u)},n.render=function(){var a=this.props;a.classNames;var o=je(a,["classNames"]);return q.createElement(Zn,U({},o,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},t})(q.Component);Wp.defaultProps={classNames:""};Wp.propTypes={};function VN(e){if(e===void 0)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function qp(e,t){var n=function(o){return t&&q.isValidElement(o)?t(o):o},r=Object.create(null);return e&&q.Children.map(e,function(a){return a}).forEach(function(a){r[a.key]=n(a)}),r}function WN(e,t){e=e||{},t=t||{};function n(c){return c in t?t[c]:e[c]}var r=Object.create(null),a=[];for(var o in e)o in t?a.length&&(r[o]=a,a=[]):a.push(o);var s,i={};for(var l in t){if(r[l])for(s=0;s<r[l].length;s++){var u=r[l][s];i[r[l][s]]=n(u)}i[l]=n(l)}for(s=0;s<a.length;s++)i[a[s]]=n(a[s]);return i}function ka(e,t,n){return n[t]!=null?n[t]:e.props[t]}function qN(e,t){return qp(e.children,function(n){return q.cloneElement(n,{onExited:t.bind(null,n),in:!0,appear:ka(n,"appear",e),enter:ka(n,"enter",e),exit:ka(n,"exit",e)})})}function YN(e,t,n){var r=qp(e.children),a=WN(t,r);return Object.keys(a).forEach(function(o){var s=a[o];if(q.isValidElement(s)){var i=o in t,l=o in r,u=t[o],c=q.isValidElement(u)&&!u.props.in;l&&(!i||c)?a[o]=q.cloneElement(s,{onExited:n.bind(null,s),in:!0,exit:ka(s,"exit",e),enter:ka(s,"enter",e)}):!l&&i&&!c?a[o]=q.cloneElement(s,{in:!1}):l&&i&&q.isValidElement(u)&&(a[o]=q.cloneElement(s,{onExited:n.bind(null,s),in:u.props.in,exit:ka(s,"exit",e),enter:ka(s,"enter",e)}))}}),a}var GN=Object.values||function(e){return Object.keys(e).map(function(t){return e[t]})},KN={component:"div",childFactory:function(t){return t}},Ci=(function(e){Vp(t,e);function t(r,a){var o;o=e.call(this,r,a)||this;var s=o.handleExited.bind(VN(o));return o.state={contextValue:{isMounting:!0},handleExited:s,firstRender:!0},o}var n=t.prototype;return n.componentDidMount=function(){this.mounted=!0,this.setState({contextValue:{isMounting:!1}})},n.componentWillUnmount=function(){this.mounted=!1},t.getDerivedStateFromProps=function(a,o){var s=o.children,i=o.handleExited,l=o.firstRender;return{children:l?qN(a,i):YN(a,s,i),firstRender:!1}},n.handleExited=function(a,o){var s=qp(this.props.children);a.key in s||(a.props.onExited&&a.props.onExited(o),this.mounted&&this.setState(function(i){var l=U({},i.children);return delete l[a.key],{children:l}}))},n.render=function(){var a=this.props,o=a.component,s=a.childFactory,i=je(a,["component","childFactory"]),l=this.state.contextValue,u=GN(this.state.children).map(s);return delete i.appear,delete i.enter,delete i.exit,o===null?q.createElement(Vl.Provider,{value:l},u):q.createElement(Vl.Provider,{value:l},q.createElement(o,i,u))},t})(q.Component);Ci.propTypes={};Ci.defaultProps=KN;const QN=[];function XN(e){w.useEffect(e,QN)}class Yp{static create(){return new Yp}currentId=null;start(t,n){this.clear(),this.currentId=setTimeout(()=>{this.currentId=null,n()},t)}clear=()=>{this.currentId!==null&&(clearTimeout(this.currentId),this.currentId=null)};disposeEffect=()=>this.clear}function wu(){const e=tx(Yp.create).current;return XN(e.disposeEffect),e}function ZN(e){const{className:t,classes:n,pulsate:r=!1,rippleX:a,rippleY:o,rippleSize:s,in:i,onExited:l,timeout:u}=e,[c,d]=w.useState(!1),m=De(t,n.ripple,n.rippleVisible,r&&n.ripplePulsate),f={width:s,height:s,top:-(s/2)+o,left:-(s/2)+a},h=De(n.child,c&&n.childLeaving,r&&n.childPulsate);return!i&&!c&&d(!0),w.useEffect(()=>{if(!i&&l!=null){const b=setTimeout(l,u);return()=>{clearTimeout(b)}}},[l,i,u]),p.jsx("span",{className:m,style:f,children:p.jsx("span",{className:h})})}const Bn=Re("MuiTouchRipple",["root","ripple","rippleVisible","ripplePulsate","child","childLeaving","childPulsate"]),Md=550,JN=80,e9=dt.keyframes`
104
- 0% {
105
- transform: scale(0);
106
- opacity: 0.1;
107
- }
108
-
109
- 100% {
110
- transform: scale(1);
111
- opacity: 0.3;
112
- }
113
- `,t9=dt.keyframes`
114
- 0% {
115
- opacity: 1;
116
- }
117
-
118
- 100% {
119
- opacity: 0;
120
- }
121
- `,n9=dt.keyframes`
122
- 0% {
123
- transform: scale(1);
124
- }
125
-
126
- 50% {
127
- transform: scale(0.92);
128
- }
129
-
130
- 100% {
131
- transform: scale(1);
132
- }
133
- `,r9=oe("span",{name:"MuiTouchRipple",slot:"Root"})({overflow:"hidden",pointerEvents:"none",position:"absolute",zIndex:0,top:0,right:0,bottom:0,left:0,borderRadius:"inherit"}),a9=oe(ZN,{name:"MuiTouchRipple",slot:"Ripple"})`
134
- opacity: 0;
135
- position: absolute;
136
-
137
- &.${Bn.rippleVisible} {
138
- opacity: 0.3;
139
- transform: scale(1);
140
- animation-name: ${e9};
141
- animation-duration: ${Md}ms;
142
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
143
- }
144
-
145
- &.${Bn.ripplePulsate} {
146
- animation-duration: ${({theme:e})=>e.transitions.duration.shorter}ms;
147
- }
148
-
149
- & .${Bn.child} {
150
- opacity: 1;
151
- display: block;
152
- width: 100%;
153
- height: 100%;
154
- border-radius: 50%;
155
- background-color: currentColor;
156
- }
157
-
158
- & .${Bn.childLeaving} {
159
- opacity: 0;
160
- animation-name: ${t9};
161
- animation-duration: ${Md}ms;
162
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
163
- }
164
-
165
- & .${Bn.childPulsate} {
166
- position: absolute;
167
- /* @noflip */
168
- left: 0px;
169
- top: 0;
170
- animation-name: ${n9};
171
- animation-duration: 2500ms;
172
- animation-timing-function: ${({theme:e})=>e.transitions.easing.easeInOut};
173
- animation-iteration-count: infinite;
174
- animation-delay: 200ms;
175
- }
176
- `,o9=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTouchRipple"}),{center:a=!1,classes:o={},className:s,...i}=r,[l,u]=w.useState([]),c=w.useRef(0),d=w.useRef(null);w.useEffect(()=>{d.current&&(d.current(),d.current=null)},[l]);const m=w.useRef(!1),f=wu(),h=w.useRef(null),b=w.useRef(null),g=w.useCallback(k=>{const{pulsate:T,rippleX:S,rippleY:O,rippleSize:M,cb:$}=k;u(P=>[...P,p.jsx(a9,{classes:{ripple:De(o.ripple,Bn.ripple),rippleVisible:De(o.rippleVisible,Bn.rippleVisible),ripplePulsate:De(o.ripplePulsate,Bn.ripplePulsate),child:De(o.child,Bn.child),childLeaving:De(o.childLeaving,Bn.childLeaving),childPulsate:De(o.childPulsate,Bn.childPulsate)},timeout:Md,pulsate:T,rippleX:S,rippleY:O,rippleSize:M},c.current)]),c.current+=1,d.current=$},[o]),x=w.useCallback((k={},T={},S=()=>{})=>{const{pulsate:O=!1,center:M=a||T.pulsate,fakeElement:$=!1}=T;if(k?.type==="mousedown"&&m.current){m.current=!1;return}k?.type==="touchstart"&&(m.current=!0);const P=$?null:b.current,L=P?P.getBoundingClientRect():{width:0,height:0,left:0,top:0};let v,N,I;if(M||k===void 0||k.clientX===0&&k.clientY===0||!k.clientX&&!k.touches)v=Math.round(L.width/2),N=Math.round(L.height/2);else{const{clientX:A,clientY:R}=k.touches&&k.touches.length>0?k.touches[0]:k;v=Math.round(A-L.left),N=Math.round(R-L.top)}if(M)I=Math.sqrt((2*L.width**2+L.height**2)/3),I%2===0&&(I+=1);else{const A=Math.max(Math.abs((P?P.clientWidth:0)-v),v)*2+2,R=Math.max(Math.abs((P?P.clientHeight:0)-N),N)*2+2;I=Math.sqrt(A**2+R**2)}k?.touches?h.current===null&&(h.current=()=>{g({pulsate:O,rippleX:v,rippleY:N,rippleSize:I,cb:S})},f.start(JN,()=>{h.current&&(h.current(),h.current=null)})):g({pulsate:O,rippleX:v,rippleY:N,rippleSize:I,cb:S})},[a,g,f]),C=w.useCallback(()=>{x({},{pulsate:!0})},[x]),E=w.useCallback((k,T)=>{if(f.clear(),k?.type==="touchend"&&h.current){h.current(),h.current=null,f.start(0,()=>{E(k,T)});return}h.current=null,u(S=>S.length>0?S.slice(1):S),d.current=T},[f]);return w.useImperativeHandle(n,()=>({pulsate:C,start:x,stop:E}),[C,x,E]),p.jsx(r9,{className:De(Bn.root,o.root,s),ref:b,...i,children:p.jsx(Ci,{component:null,exit:!0,children:l})})});function s9(e){return Fe("MuiButtonBase",e)}const i9=Re("MuiButtonBase",["root","disabled","focusVisible"]),l9=e=>{const{disabled:t,focusVisible:n,focusVisibleClassName:r,classes:a}=e,s=Le({root:["root",t&&"disabled",n&&"focusVisible"]},s9,a);return n&&r&&(s.root+=` ${r}`),s},u9=oe("button",{name:"MuiButtonBase",slot:"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"},[`&.${i9.disabled}`]:{pointerEvents:"none",cursor:"default"},"@media print":{colorAdjust:"exact"}}),La=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiButtonBase"}),{action:a,centerRipple:o=!1,children:s,className:i,component:l="button",disabled:u=!1,disableRipple:c=!1,disableTouchRipple:d=!1,focusRipple:m=!1,focusVisibleClassName:f,LinkComponent:h="a",onBlur:b,onClick:g,onContextMenu:x,onDragLeave:C,onFocus:E,onFocusVisible:k,onKeyDown:T,onKeyUp:S,onMouseDown:O,onMouseLeave:M,onMouseUp:$,onTouchEnd:P,onTouchMove:L,onTouchStart:v,tabIndex:N=0,TouchRippleProps:I,touchRippleRef:A,type:R,...W}=r,H=w.useRef(null),B=$N(),_=ot(B.ref,A),[V,J]=w.useState(!1);u&&V&&J(!1),w.useImperativeHandle(a,()=>({focusVisible:()=>{J(!0),H.current.focus()}}),[]);const F=B.shouldMount&&!c&&!u;w.useEffect(()=>{V&&m&&!c&&B.pulsate()},[c,m,V,B]);const de=Pr(B,"start",O,d),Z=Pr(B,"stop",x,d),Y=Pr(B,"stop",C,d),te=Pr(B,"stop",$,d),X=Pr(B,"stop",we=>{V&&we.preventDefault(),M&&M(we)},d),re=Pr(B,"start",v,d),Q=Pr(B,"stop",P,d),G=Pr(B,"stop",L,d),se=Pr(B,"stop",we=>{ig(we.target)||J(!1),b&&b(we)},!1),ee=Ae(we=>{H.current||(H.current=we.currentTarget),ig(we.target)&&(J(!0),k&&k(we)),E&&E(we)}),ne=()=>{const we=H.current;return l&&l!=="button"&&!(we.tagName==="A"&&we.href)},xe=Ae(we=>{m&&!we.repeat&&V&&we.key===" "&&B.stop(we,()=>{B.start(we)}),we.target===we.currentTarget&&ne()&&we.key===" "&&we.preventDefault(),T&&T(we),we.target===we.currentTarget&&ne()&&we.key==="Enter"&&!u&&(we.preventDefault(),g&&g(we))}),pe=Ae(we=>{m&&we.key===" "&&V&&!we.defaultPrevented&&B.stop(we,()=>{B.pulsate(we)}),S&&S(we),g&&we.target===we.currentTarget&&ne()&&we.key===" "&&!we.defaultPrevented&&g(we)});let be=l;be==="button"&&(W.href||W.to)&&(be=h);const le={};be==="button"?(le.type=R===void 0?"button":R,le.disabled=u):(!W.href&&!W.to&&(le.role="button"),u&&(le["aria-disabled"]=u));const Pe=ot(n,H),Te={...r,centerRipple:o,component:l,disabled:u,disableRipple:c,disableTouchRipple:d,focusRipple:m,tabIndex:N,focusVisible:V},ze=l9(Te);return p.jsxs(u9,{as:be,className:De(ze.root,i),ownerState:Te,onBlur:se,onClick:g,onContextMenu:Z,onFocus:ee,onKeyDown:xe,onKeyUp:pe,onMouseDown:de,onMouseLeave:X,onMouseUp:te,onDragLeave:Y,onTouchEnd:Q,onTouchMove:G,onTouchStart:re,ref:Pe,tabIndex:u?-1:N,type:R,...le,...W,children:[s,F?p.jsx(o9,{ref:_,center:o,...I}):null]})});function Pr(e,t,n,r=!1){return Ae(a=>(n&&n(a),r||e[t](a),!0))}function c9(e){return Fe("MuiCircularProgress",e)}Re("MuiCircularProgress",["root","determinate","indeterminate","colorPrimary","colorSecondary","svg","circle","circleDeterminate","circleIndeterminate","circleDisableShrink"]);const Qr=44,Nd=dt.keyframes`
177
- 0% {
178
- transform: rotate(0deg);
179
- }
180
-
181
- 100% {
182
- transform: rotate(360deg);
183
- }
184
- `,Od=dt.keyframes`
185
- 0% {
186
- stroke-dasharray: 1px, 200px;
187
- stroke-dashoffset: 0;
188
- }
189
-
190
- 50% {
191
- stroke-dasharray: 100px, 200px;
192
- stroke-dashoffset: -15px;
193
- }
194
-
195
- 100% {
196
- stroke-dasharray: 1px, 200px;
197
- stroke-dashoffset: -126px;
198
- }
199
- `,d9=typeof Nd!="string"?dt.css`
200
- animation: ${Nd} 1.4s linear infinite;
201
- `:null,p9=typeof Od!="string"?dt.css`
202
- animation: ${Od} 1.4s ease-in-out infinite;
203
- `:null,f9=e=>{const{classes:t,variant:n,color:r,disableShrink:a}=e,o={root:["root",n,`color${Se(r)}`],svg:["svg"],circle:["circle",`circle${Se(n)}`,a&&"circleDisableShrink"]};return Le(o,c9,t)},m9=oe("span",{name:"MuiCircularProgress",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`color${Se(n.color)}`]]}})(tt(({theme:e})=>({display:"inline-block",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("transform")}},{props:{variant:"indeterminate"},style:d9||{animation:`${Nd} 1.4s linear infinite`}},...Object.entries(e.palette).filter(mn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}}))]}))),h9=oe("svg",{name:"MuiCircularProgress",slot:"Svg"})({display:"block"}),g9=oe("circle",{name:"MuiCircularProgress",slot:"Circle",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.circle,t[`circle${Se(n.variant)}`],n.disableShrink&&t.circleDisableShrink]}})(tt(({theme:e})=>({stroke:"currentColor",variants:[{props:{variant:"determinate"},style:{transition:e.transitions.create("stroke-dashoffset")}},{props:{variant:"indeterminate"},style:{strokeDasharray:"80px, 200px",strokeDashoffset:0}},{props:({ownerState:t})=>t.variant==="indeterminate"&&!t.disableShrink,style:p9||{animation:`${Od} 1.4s ease-in-out infinite`}}]}))),Gp=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiCircularProgress"}),{className:a,color:o="primary",disableShrink:s=!1,size:i=40,style:l,thickness:u=3.6,value:c=0,variant:d="indeterminate",...m}=r,f={...r,color:o,disableShrink:s,size:i,thickness:u,value:c,variant:d},h=f9(f),b={},g={},x={};if(d==="determinate"){const C=2*Math.PI*((Qr-u)/2);b.strokeDasharray=C.toFixed(3),x["aria-valuenow"]=Math.round(c),b.strokeDashoffset=`${((100-c)/100*C).toFixed(3)}px`,g.transform="rotate(-90deg)"}return p.jsx(m9,{className:De(h.root,a),style:{width:i,height:i,...g,...l},ownerState:f,ref:n,role:"progressbar",...x,...m,children:p.jsx(h9,{className:h.svg,ownerState:f,viewBox:`${Qr/2} ${Qr/2} ${Qr} ${Qr}`,children:p.jsx(g9,{className:h.circle,style:b,ownerState:f,cx:Qr,cy:Qr,r:(Qr-u)/2,fill:"none",strokeWidth:u})})})});function b9(e){return Fe("MuiIconButton",e)}const dg=Re("MuiIconButton",["root","disabled","colorInherit","colorPrimary","colorSecondary","colorError","colorInfo","colorSuccess","colorWarning","edgeStart","edgeEnd","sizeSmall","sizeMedium","sizeLarge","loading","loadingIndicator","loadingWrapper"]),y9=e=>{const{classes:t,disabled:n,color:r,edge:a,size:o,loading:s}=e,i={root:["root",s&&"loading",n&&"disabled",r!=="default"&&`color${Se(r)}`,a&&`edge${Se(a)}`,`size${Se(o)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]};return Le(i,b9,t)},x9=oe(La,{name:"MuiIconButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.loading&&t.loading,n.color!=="default"&&t[`color${Se(n.color)}`],n.edge&&t[`edge${Se(n.edge)}`],t[`size${Se(n.size)}`]]}})(tt(({theme:e})=>({textAlign:"center",flex:"0 0 auto",fontSize:e.typography.pxToRem(24),padding:8,borderRadius:"50%",color:(e.vars||e).palette.action.active,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shortest}),variants:[{props:t=>!t.disableRipple,style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity),"&:hover":{backgroundColor:"var(--IconButton-hoverBg)","@media (hover: none)":{backgroundColor:"transparent"}}}},{props:{edge:"start"},style:{marginLeft:-12}},{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:{edge:"end"},style:{marginRight:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}}]})),tt(({theme:e})=>({variants:[{props:{color:"inherit"},style:{color:"inherit"}},...Object.entries(e.palette).filter(mn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette).filter(mn()).map(([t])=>({props:{color:t},style:{"--IconButton-hoverBg":e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}})),{props:{size:"small"},style:{padding:5,fontSize:e.typography.pxToRem(18)}},{props:{size:"large"},style:{padding:12,fontSize:e.typography.pxToRem(28)}}],[`&.${dg.disabled}`]:{backgroundColor:"transparent",color:(e.vars||e).palette.action.disabled},[`&.${dg.loading}`]:{color:"transparent"}}))),C9=oe("span",{name:"MuiIconButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",top:"50%",left:"50%",transform:"translate(-50%, -50%)",color:(e.vars||e).palette.action.disabled,variants:[{props:{loading:!0},style:{display:"flex"}}]})),Mn=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiIconButton"}),{edge:a=!1,children:o,className:s,color:i="default",disabled:l=!1,disableFocusRipple:u=!1,size:c="medium",id:d,loading:m=null,loadingIndicator:f,...h}=r,b=or(d),g=f??p.jsx(Gp,{"aria-labelledby":b,color:"inherit",size:16}),x={...r,edge:a,color:i,disabled:l,disableFocusRipple:u,loading:m,loadingIndicator:g,size:c},C=y9(x);return p.jsxs(x9,{id:m?b:d,className:De(C.root,s),centerRipple:!0,focusRipple:!u,disabled:l||m,ref:n,...h,ownerState:x,children:[typeof m=="boolean"&&p.jsx("span",{className:C.loadingWrapper,style:{display:"contents"},children:p.jsx(C9,{className:C.loadingIndicator,ownerState:x,children:m&&g})}),o]})}),E9=nt(p.jsx("path",{d:"M12 2C6.47 2 2 6.47 2 12s4.47 10 10 10 10-4.47 10-10S17.53 2 12 2zm5 13.59L15.59 17 12 13.41 8.41 17 7 15.59 10.59 12 7 8.41 8.41 7 12 10.59 15.59 7 17 8.41 13.41 12 17 15.59z"}));function v9(e){return Fe("MuiChip",e)}const st=Re("MuiChip",["root","sizeSmall","sizeMedium","colorDefault","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"]);function ct(e,t){const{className:n,elementType:r,ownerState:a,externalForwardedProps:o,internalForwardedProps:s,shouldForwardComponentProp:i=!1,...l}=t,{component:u,slots:c={[e]:void 0},slotProps:d={[e]:void 0},...m}=o,f=c[e]||r,h=zn(d[e],a),{props:{component:b,...g},internalRef:x}=Jy({className:n,...l,externalForwardedProps:e==="root"?m:void 0,externalSlotProps:h}),C=ot(x,h?.ref,t.ref),E=e==="root"?b||u:b,k=Zy(f,{...e==="root"&&!u&&!c[e]&&s,...e!=="root"&&!c[e]&&s,...g,...E&&!i&&{as:E},...E&&i&&{component:E},ref:C},a);return[f,k]}const T9=e=>{const{classes:t,disabled:n,size:r,color:a,iconColor:o,onDelete:s,clickable:i,variant:l}=e,u={root:["root",l,n&&"disabled",`size${Se(r)}`,`color${Se(a)}`,i&&"clickable",i&&`clickableColor${Se(a)}`,s&&"deletable",s&&`deletableColor${Se(a)}`,`${l}${Se(a)}`],label:["label",`label${Se(r)}`],avatar:["avatar",`avatar${Se(r)}`,`avatarColor${Se(a)}`],icon:["icon",`icon${Se(r)}`,`iconColor${Se(o)}`],deleteIcon:["deleteIcon",`deleteIcon${Se(r)}`,`deleteIconColor${Se(a)}`,`deleteIcon${Se(l)}Color${Se(a)}`]};return Le(u,v9,t)},k9=oe("div",{name:"MuiChip",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{color:r,iconColor:a,clickable:o,onDelete:s,size:i,variant:l}=n;return[{[`& .${st.avatar}`]:t.avatar},{[`& .${st.avatar}`]:t[`avatar${Se(i)}`]},{[`& .${st.avatar}`]:t[`avatarColor${Se(r)}`]},{[`& .${st.icon}`]:t.icon},{[`& .${st.icon}`]:t[`icon${Se(i)}`]},{[`& .${st.icon}`]:t[`iconColor${Se(a)}`]},{[`& .${st.deleteIcon}`]:t.deleteIcon},{[`& .${st.deleteIcon}`]:t[`deleteIcon${Se(i)}`]},{[`& .${st.deleteIcon}`]:t[`deleteIconColor${Se(r)}`]},{[`& .${st.deleteIcon}`]:t[`deleteIcon${Se(l)}Color${Se(r)}`]},t.root,t[`size${Se(i)}`],t[`color${Se(r)}`],o&&t.clickable,o&&r!=="default"&&t[`clickableColor${Se(r)})`],s&&t.deletable,s&&r!=="default"&&t[`deletableColor${Se(r)}`],t[l],t[`${l}${Se(r)}`]]}})(tt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[700]:e.palette.grey[300];return{maxWidth:"100%",fontFamily:e.typography.fontFamily,fontSize:e.typography.pxToRem(13),display:"inline-flex",alignItems:"center",justifyContent:"center",height:32,lineHeight:1.5,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",[`&.${st.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,pointerEvents:"none"},[`& .${st.avatar}`]:{marginLeft:5,marginRight:-6,width:24,height:24,color:e.vars?e.vars.palette.Chip.defaultAvatarColor:t,fontSize:e.typography.pxToRem(12)},[`& .${st.avatarColorPrimary}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.dark},[`& .${st.avatarColorSecondary}`]:{color:(e.vars||e).palette.secondary.contrastText,backgroundColor:(e.vars||e).palette.secondary.dark},[`& .${st.avatarSmall}`]:{marginLeft:4,marginRight:-4,width:18,height:18,fontSize:e.typography.pxToRem(10)},[`& .${st.icon}`]:{marginLeft:5,marginRight:-6},[`& .${st.deleteIcon}`]:{WebkitTapHighlightColor:"transparent",color:e.alpha((e.vars||e).palette.text.primary,.26),fontSize:22,cursor:"pointer",margin:"0 5px 0 -6px","&:hover":{color:e.alpha((e.vars||e).palette.text.primary,.4)}},variants:[{props:{size:"small"},style:{height:24,[`& .${st.icon}`]:{fontSize:18,marginLeft:4,marginRight:-4},[`& .${st.deleteIcon}`]:{fontSize:16,marginRight:4,marginLeft:-4}}},...Object.entries(e.palette).filter(mn(["contrastText"])).map(([n])=>({props:{color:n},style:{backgroundColor:(e.vars||e).palette[n].main,color:(e.vars||e).palette[n].contrastText,[`& .${st.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].contrastText,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].contrastText}}}})),{props:n=>n.iconColor===n.color,style:{[`& .${st.icon}`]:{color:e.vars?e.vars.palette.Chip.defaultIconColor:t}}},{props:n=>n.iconColor===n.color&&n.color!=="default",style:{[`& .${st.icon}`]:{color:"inherit"}}},{props:{onDelete:!0},style:{[`&.${st.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}},...Object.entries(e.palette).filter(mn(["dark"])).map(([n])=>({props:{color:n,onDelete:!0},style:{[`&.${st.focusVisible}`]:{background:(e.vars||e).palette[n].dark}}})),{props:{clickable:!0},style:{userSelect:"none",WebkitTapHighlightColor:"transparent",cursor:"pointer","&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`)},[`&.${st.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.action.selected,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)},"&:active":{boxShadow:(e.vars||e).shadows[1]}}},...Object.entries(e.palette).filter(mn(["dark"])).map(([n])=>({props:{color:n,clickable:!0},style:{[`&:hover, &.${st.focusVisible}`]:{backgroundColor:(e.vars||e).palette[n].dark}}})),{props:{variant:"outlined"},style:{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]}`,[`&.${st.clickable}:hover`]:{backgroundColor:(e.vars||e).palette.action.hover},[`&.${st.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`& .${st.avatar}`]:{marginLeft:4},[`& .${st.avatarSmall}`]:{marginLeft:2},[`& .${st.icon}`]:{marginLeft:4},[`& .${st.iconSmall}`]:{marginLeft:2},[`& .${st.deleteIcon}`]:{marginRight:5},[`& .${st.deleteIconSmall}`]:{marginRight:3}}},...Object.entries(e.palette).filter(mn()).map(([n])=>({props:{variant:"outlined",color:n},style:{color:(e.vars||e).palette[n].main,border:`1px solid ${e.alpha((e.vars||e).palette[n].main,.7)}`,[`&.${st.clickable}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.hoverOpacity)},[`&.${st.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette[n].main,(e.vars||e).palette.action.focusOpacity)},[`& .${st.deleteIcon}`]:{color:e.alpha((e.vars||e).palette[n].main,.7),"&:hover, &:active":{color:(e.vars||e).palette[n].main}}}}))]}})),S9=oe("span",{name:"MuiChip",slot:"Label",overridesResolver:(e,t)=>{const{ownerState:n}=e,{size:r}=n;return[t.label,t[`label${Se(r)}`]]}})({overflow:"hidden",textOverflow:"ellipsis",paddingLeft:12,paddingRight:12,whiteSpace:"nowrap",variants:[{props:{variant:"outlined"},style:{paddingLeft:11,paddingRight:11}},{props:{size:"small"},style:{paddingLeft:8,paddingRight:8}},{props:{size:"small",variant:"outlined"},style:{paddingLeft:7,paddingRight:7}}]});function pg(e){return e.key==="Backspace"||e.key==="Delete"}const rx=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiChip"}),{avatar:a,className:o,clickable:s,color:i="default",component:l,deleteIcon:u,disabled:c=!1,icon:d,label:m,onClick:f,onDelete:h,onKeyDown:b,onKeyUp:g,size:x="medium",variant:C="filled",tabIndex:E,skipFocusWhenDisabled:k=!1,slots:T={},slotProps:S={},...O}=r,M=w.useRef(null),$=ot(M,n),P=Y=>{Y.stopPropagation(),h&&h(Y)},L=Y=>{Y.currentTarget===Y.target&&pg(Y)&&Y.preventDefault(),b&&b(Y)},v=Y=>{Y.currentTarget===Y.target&&h&&pg(Y)&&h(Y),g&&g(Y)},N=s!==!1&&f?!0:s,I=N||h?La:l||"div",A={...r,component:I,disabled:c,size:x,color:i,iconColor:w.isValidElement(d)&&d.props.color||i,onDelete:!!h,clickable:N,variant:C},R=T9(A),W=I===La?{component:l||"div",focusVisibleClassName:R.focusVisible,...h&&{disableRipple:!0}}:{};let H=null;h&&(H=u&&w.isValidElement(u)?w.cloneElement(u,{className:De(u.props.className,R.deleteIcon),onClick:P}):p.jsx(E9,{className:R.deleteIcon,onClick:P}));let B=null;a&&w.isValidElement(a)&&(B=w.cloneElement(a,{className:De(R.avatar,a.props.className)}));let _=null;d&&w.isValidElement(d)&&(_=w.cloneElement(d,{className:De(R.icon,d.props.className)}));const V={slots:T,slotProps:S},[J,F]=ct("root",{elementType:k9,externalForwardedProps:{...V,...O},ownerState:A,shouldForwardComponentProp:!0,ref:$,className:De(R.root,o),additionalProps:{disabled:N&&c?!0:void 0,tabIndex:k&&c?-1:E,...W},getSlotProps:Y=>({...Y,onClick:te=>{Y.onClick?.(te),f?.(te)},onKeyDown:te=>{Y.onKeyDown?.(te),L(te)},onKeyUp:te=>{Y.onKeyUp?.(te),v(te)}})}),[de,Z]=ct("label",{elementType:S9,externalForwardedProps:V,ownerState:A,className:R.label});return p.jsxs(J,{as:I,...F,children:[B||_,p.jsx(de,{...Z,children:m}),H]})});function Hi(e){return parseInt(e,10)||0}const w9={shadow:{visibility:"hidden",position:"absolute",overflow:"hidden",height:0,top:0,left:0,transform:"translateZ(0)"}};function _9(e){for(const t in e)return!1;return!0}function fg(e){return _9(e)||e.outerHeightStyle===0&&!e.overflowing}const I9=w.forwardRef(function(t,n){const{onChange:r,maxRows:a,minRows:o=1,style:s,value:i,...l}=t,{current:u}=w.useRef(i!=null),c=w.useRef(null),d=ot(n,c),m=w.useRef(null),f=w.useRef(null),h=w.useCallback(()=>{const E=c.current,k=f.current;if(!E||!k)return;const S=$r(E).getComputedStyle(E);if(S.width==="0px")return{outerHeightStyle:0,overflowing:!1};k.style.width=S.width,k.value=E.value||t.placeholder||"x",k.value.slice(-1)===`
204
- `&&(k.value+=" ");const O=S.boxSizing,M=Hi(S.paddingBottom)+Hi(S.paddingTop),$=Hi(S.borderBottomWidth)+Hi(S.borderTopWidth),P=k.scrollHeight;k.value="x";const L=k.scrollHeight;let v=P;o&&(v=Math.max(Number(o)*L,v)),a&&(v=Math.min(Number(a)*L,v)),v=Math.max(v,L);const N=v+(O==="border-box"?M+$:0),I=Math.abs(v-P)<=1;return{outerHeightStyle:N,overflowing:I}},[a,o,t.placeholder]),b=Ae(()=>{const E=c.current,k=h();if(!E||!k||fg(k))return!1;const T=k.outerHeightStyle;return m.current!=null&&m.current!==T}),g=w.useCallback(()=>{const E=c.current,k=h();if(!E||!k||fg(k))return;const T=k.outerHeightStyle;m.current!==T&&(m.current=T,E.style.height=`${T}px`),E.style.overflow=k.overflowing?"hidden":""},[h]),x=w.useRef(-1);qt(()=>{const E=O0(g),k=c?.current;if(!k)return;const T=$r(k);T.addEventListener("resize",E);let S;return typeof ResizeObserver<"u"&&(S=new ResizeObserver(()=>{b()&&(S.unobserve(k),cancelAnimationFrame(x.current),g(),x.current=requestAnimationFrame(()=>{S.observe(k)}))}),S.observe(k)),()=>{E.clear(),cancelAnimationFrame(x.current),T.removeEventListener("resize",E),S&&S.disconnect()}},[h,g,b]),qt(()=>{g()});const C=E=>{u||g();const k=E.target,T=k.value.length,S=k.value.endsWith(`
205
- `),O=k.selectionStart===T;S&&O&&k.setSelectionRange(T,T),r&&r(E)};return p.jsxs(w.Fragment,{children:[p.jsx("textarea",{value:i,onChange:C,ref:d,rows:o,style:s,...l}),p.jsx("textarea",{"aria-hidden":!0,className:t.className,readOnly:!0,ref:f,tabIndex:-1,style:{...w9.shadow,...s,paddingTop:0,paddingBottom:0}})]})});function Vo({props:e,states:t,muiFormControl:n}){return t.reduce((r,a)=>(r[a]=e[a],n&&typeof e[a]>"u"&&(r[a]=n[a]),r),{})}const _u=w.createContext(void 0);function Jn(){return w.useContext(_u)}function mg(e){return e!=null&&!(Array.isArray(e)&&e.length===0)}function Wl(e,t=!1){return e&&(mg(e.value)&&e.value!==""||t&&mg(e.defaultValue)&&e.defaultValue!=="")}function A9(e){return e.startAdornment}function D9(e){return Fe("MuiInputBase",e)}const wn=Re("MuiInputBase",["root","formControl","focused","disabled","adornedStart","adornedEnd","error","sizeSmall","multiline","colorSecondary","fullWidth","hiddenLabel","readOnly","input","inputSizeSmall","inputMultiline","inputTypeSearch","inputAdornedStart","inputAdornedEnd","inputHiddenLabel"]);var hg;const Iu=(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${Se(n.color)}`],n.fullWidth&&t.fullWidth,n.hiddenLabel&&t.hiddenLabel]},Au=(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]},P9=e=>{const{classes:t,color:n,disabled:r,error:a,endAdornment:o,focused:s,formControl:i,fullWidth:l,hiddenLabel:u,multiline:c,readOnly:d,size:m,startAdornment:f,type:h}=e,b={root:["root",`color${Se(n)}`,r&&"disabled",a&&"error",l&&"fullWidth",s&&"focused",i&&"formControl",m&&m!=="medium"&&`size${Se(m)}`,c&&"multiline",f&&"adornedStart",o&&"adornedEnd",u&&"hiddenLabel",d&&"readOnly"],input:["input",r&&"disabled",h==="search"&&"inputTypeSearch",c&&"inputMultiline",m==="small"&&"inputSizeSmall",u&&"inputHiddenLabel",f&&"inputAdornedStart",o&&"inputAdornedEnd",d&&"readOnly"]};return Le(b,D9,t)},Du=oe("div",{name:"MuiInputBase",slot:"Root",overridesResolver:Iu})(tt(({theme:e})=>({...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",[`&.${wn.disabled}`]:{color:(e.vars||e).palette.text.disabled,cursor:"default"},variants:[{props:({ownerState:t})=>t.multiline,style:{padding:"4px 0 5px"}},{props:({ownerState:t,size:n})=>t.multiline&&n==="small",style:{paddingTop:1}},{props:({ownerState:t})=>t.fullWidth,style:{width:"100%"}}]}))),Pu=oe("input",{name:"MuiInputBase",slot:"Input",overridesResolver:Au})(tt(({theme:e})=>{const t=e.palette.mode==="light",n={color:"currentColor",...e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5},transition:e.transitions.create("opacity",{duration:e.transitions.duration.shorter})},r={opacity:"0 !important"},a=e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:t?.42:.5};return{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%","&::-webkit-input-placeholder":n,"&::-moz-placeholder":n,"&::-ms-input-placeholder":n,"&:focus":{outline:0},"&:invalid":{boxShadow:"none"},"&::-webkit-search-decoration":{WebkitAppearance:"none"},[`label[data-shrink=false] + .${wn.formControl} &`]:{"&::-webkit-input-placeholder":r,"&::-moz-placeholder":r,"&::-ms-input-placeholder":r,"&:focus::-webkit-input-placeholder":a,"&:focus::-moz-placeholder":a,"&:focus::-ms-input-placeholder":a},[`&.${wn.disabled}`]:{opacity:1,WebkitTextFillColor:(e.vars||e).palette.text.disabled},variants:[{props:({ownerState:o})=>!o.disableInjectingGlobalStyles,style:{animationName:"mui-auto-fill-cancel",animationDuration:"10ms","&:-webkit-autofill":{animationDuration:"5000s",animationName:"mui-auto-fill"}}},{props:{size:"small"},style:{paddingTop:1}},{props:({ownerState:o})=>o.multiline,style:{height:"auto",resize:"none",padding:0,paddingTop:0}},{props:{type:"search"},style:{MozAppearance:"textfield"}}]}})),gg=vv({"@keyframes mui-auto-fill":{from:{display:"block"}},"@keyframes mui-auto-fill-cancel":{from:{display:"block"}}}),Kp=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInputBase"}),{"aria-describedby":a,autoComplete:o,autoFocus:s,className:i,color:l,components:u={},componentsProps:c={},defaultValue:d,disabled:m,disableInjectingGlobalStyles:f,endAdornment:h,error:b,fullWidth:g=!1,id:x,inputComponent:C="input",inputProps:E={},inputRef:k,margin:T,maxRows:S,minRows:O,multiline:M=!1,name:$,onBlur:P,onChange:L,onClick:v,onFocus:N,onKeyDown:I,onKeyUp:A,placeholder:R,readOnly:W,renderSuffix:H,rows:B,size:_,slotProps:V={},slots:J={},startAdornment:F,type:de="text",value:Z,...Y}=r,te=E.value!=null?E.value:Z,{current:X}=w.useRef(te!=null),re=w.useRef(),Q=w.useCallback(Ne=>{},[]),G=ot(re,k,E.ref,Q),[se,ee]=w.useState(!1),ne=Jn(),xe=Vo({props:r,muiFormControl:ne,states:["color","disabled","error","hiddenLabel","size","required","filled"]});xe.focused=ne?ne.focused:se,w.useEffect(()=>{!ne&&m&&se&&(ee(!1),P&&P())},[ne,m,se,P]);const pe=ne&&ne.onFilled,be=ne&&ne.onEmpty,le=w.useCallback(Ne=>{Wl(Ne)?pe&&pe():be&&be()},[pe,be]);qt(()=>{X&&le({value:te})},[te,le,X]);const Pe=Ne=>{N&&N(Ne),E.onFocus&&E.onFocus(Ne),ne&&ne.onFocus?ne.onFocus(Ne):ee(!0)},Te=Ne=>{P&&P(Ne),E.onBlur&&E.onBlur(Ne),ne&&ne.onBlur?ne.onBlur(Ne):ee(!1)},ze=(Ne,...Je)=>{if(!X){const gt=Ne.target||re.current;if(gt==null)throw new Error(Lr(1));le({value:gt.value})}E.onChange&&E.onChange(Ne,...Je),L&&L(Ne,...Je)};w.useEffect(()=>{le(re.current)},[]);const we=Ne=>{re.current&&Ne.currentTarget===Ne.target&&re.current.focus(),v&&v(Ne)};let Tt=C,lt=E;M&&Tt==="input"&&(B?lt={type:void 0,minRows:B,maxRows:B,...lt}:lt={type:void 0,maxRows:S,minRows:O,...lt},Tt=I9);const qe=Ne=>{le(Ne.animationName==="mui-auto-fill-cancel"?re.current:{value:"x"})};w.useEffect(()=>{ne&&ne.setAdornedStart(!!F)},[ne,F]);const ue={...r,color:xe.color||"primary",disabled:xe.disabled,endAdornment:h,error:xe.error,focused:xe.focused,formControl:ne,fullWidth:g,hiddenLabel:xe.hiddenLabel,multiline:M,size:xe.size,startAdornment:F,type:de},Ee=P9(ue),Me=J.root||u.Root||Du,He=V.root||c.root||{},Be=J.input||u.Input||Pu;return lt={...lt,...V.input??c.input},p.jsxs(w.Fragment,{children:[!f&&typeof gg=="function"&&(hg||(hg=p.jsx(gg,{}))),p.jsxs(Me,{...He,ref:n,onClick:we,...Y,...!Io(Me)&&{ownerState:{...ue,...He.ownerState}},className:De(Ee.root,He.className,i,W&&"MuiInputBase-readOnly"),children:[F,p.jsx(_u.Provider,{value:null,children:p.jsx(Be,{"aria-invalid":xe.error,"aria-describedby":a,autoComplete:o,autoFocus:s,defaultValue:d,disabled:xe.disabled,id:x,onAnimationStart:qe,name:$,placeholder:R,readOnly:W,required:xe.required,rows:B,value:te,onKeyDown:I,onKeyUp:A,type:de,...lt,...!Io(Be)&&{as:Tt,ownerState:{...ue,...lt.ownerState}},ref:G,className:De(Ee.input,lt.className,W&&"MuiInputBase-readOnly"),onBlur:Te,onChange:ze,onFocus:Pe})}),h,H?H({...xe,startAdornment:F}):null]})]})});function R9(e){return Fe("MuiInput",e)}const Jr={...wn,...Re("MuiInput",["root","underline","input"])};function M9(e){return Fe("MuiOutlinedInput",e)}const $n={...wn,...Re("MuiOutlinedInput",["root","notchedOutline","input"])};function N9(e){return Fe("MuiFilledInput",e)}const _n={...wn,...Re("MuiFilledInput",["root","underline","input","adornedStart","adornedEnd","sizeSmall","multiline","hiddenLabel"])},O9=nt(p.jsx("path",{d:"M19 6.41L17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),ax=nt(p.jsx("path",{d:"M7 10l5 5 5-5z"}));function L9(e){return Fe("MuiAutocomplete",e)}const Ze=Re("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 bg,yg;const F9=e=>{const{classes:t,disablePortal:n,expanded:r,focused:a,fullWidth:o,hasClearIcon:s,hasPopupIcon:i,inputFocused:l,popupOpen:u,size:c}=e,d={root:["root",r&&"expanded",a&&"focused",o&&"fullWidth",s&&"hasClearIcon",i&&"hasPopupIcon"],inputRoot:["inputRoot"],input:["input",l&&"inputFocused"],tag:["tag",`tagSize${Se(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 Le(d,L9,t)},$9=oe("div",{name:"MuiAutocomplete",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e,{fullWidth:r,hasClearIcon:a,hasPopupIcon:o,inputFocused:s,size:i}=n;return[{[`& .${Ze.tag}`]:t.tag},{[`& .${Ze.tag}`]:t[`tagSize${Se(i)}`]},{[`& .${Ze.inputRoot}`]:t.inputRoot},{[`& .${Ze.input}`]:t.input},{[`& .${Ze.input}`]:s&&t.inputFocused},t.root,r&&t.fullWidth,o&&t.hasPopupIcon,a&&t.hasClearIcon]}})({[`&.${Ze.focused} .${Ze.clearIndicator}`]:{visibility:"visible"},"@media (pointer: fine)":{[`&:hover .${Ze.clearIndicator}`]:{visibility:"visible"}},[`& .${Ze.tag}`]:{margin:3,maxWidth:"calc(100% - 6px)"},[`& .${Ze.inputRoot}`]:{[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:30},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:56},[`& .${Ze.input}`]:{width:0,minWidth:30}},[`& .${Jr.root}`]:{paddingBottom:1,"& .MuiInput-input":{padding:"4px 4px 4px 0px"}},[`& .${Jr.root}.${wn.sizeSmall}`]:{[`& .${Jr.input}`]:{padding:"2px 4px 3px 0"}},[`& .${$n.root}`]:{padding:9,[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:39},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:65},[`& .${Ze.input}`]:{padding:"7.5px 4px 7.5px 5px"},[`& .${Ze.endAdornment}`]:{right:9}},[`& .${$n.root}.${wn.sizeSmall}`]:{paddingTop:6,paddingBottom:6,paddingLeft:6,[`& .${Ze.input}`]:{padding:"2.5px 4px 2.5px 8px"}},[`& .${_n.root}`]:{paddingTop:19,paddingLeft:8,[`.${Ze.hasPopupIcon}&, .${Ze.hasClearIcon}&`]:{paddingRight:39},[`.${Ze.hasPopupIcon}.${Ze.hasClearIcon}&`]:{paddingRight:65},[`& .${_n.input}`]:{padding:"7px 4px"},[`& .${Ze.endAdornment}`]:{right:9}},[`& .${_n.root}.${wn.sizeSmall}`]:{paddingBottom:1,[`& .${_n.input}`]:{padding:"2.5px 4px"}},[`& .${wn.hiddenLabel}`]:{paddingTop:8},[`& .${_n.root}.${wn.hiddenLabel}`]:{paddingTop:0,paddingBottom:0,[`& .${Ze.input}`]:{paddingTop:16,paddingBottom:17}},[`& .${_n.root}.${wn.hiddenLabel}.${wn.sizeSmall}`]:{[`& .${Ze.input}`]:{paddingTop:8,paddingBottom:9}},[`& .${Ze.input}`]:{flexGrow:1,textOverflow:"ellipsis",opacity:0},variants:[{props:{fullWidth:!0},style:{width:"100%"}},{props:{size:"small"},style:{[`& .${Ze.tag}`]:{margin:2,maxWidth:"calc(100% - 4px)"}}},{props:{inputFocused:!0},style:{[`& .${Ze.input}`]:{opacity:1}}},{props:{multiple:!0},style:{[`& .${Ze.inputRoot}`]:{flexWrap:"wrap"}}}]}),B9=oe("div",{name:"MuiAutocomplete",slot:"EndAdornment"})({position:"absolute",right:0,top:"50%",transform:"translate(0, -50%)"}),j9=oe(Mn,{name:"MuiAutocomplete",slot:"ClearIndicator"})({marginRight:-2,padding:4,visibility:"hidden"}),H9=oe(Mn,{name:"MuiAutocomplete",slot:"PopupIndicator",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.popupIndicator,n.popupOpen&&t.popupIndicatorOpen]}})({padding:2,marginRight:-2,variants:[{props:{popupOpen:!0},style:{transform:"rotate(180deg)"}}]}),U9=oe(zp,{name:"MuiAutocomplete",slot:"Popper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Ze.option}`]:t.option},t.popper,n.disablePortal&&t.popperDisablePortal]}})(tt(({theme:e})=>({zIndex:(e.vars||e).zIndex.modal,variants:[{props:{disablePortal:!0},style:{position:"absolute"}}]}))),z9=oe(za,{name:"MuiAutocomplete",slot:"Paper"})(tt(({theme:e})=>({...e.typography.body1,overflow:"auto"}))),V9=oe("div",{name:"MuiAutocomplete",slot:"Loading"})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),W9=oe("div",{name:"MuiAutocomplete",slot:"NoOptions"})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,padding:"14px 16px"}))),q9=oe("ul",{name:"MuiAutocomplete",slot:"Listbox"})(tt(({theme:e})=>({listStyle:"none",margin:0,padding:"8px 0",maxHeight:"40vh",overflow:"auto",position:"relative",[`& .${Ze.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"},[`&.${Ze.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"},[`&.${Ze.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},'&[aria-selected="true"]':{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${Ze.focused}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:(e.vars||e).palette.action.selected}},[`&.${Ze.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}}}}))),Y9=oe(Dd,{name:"MuiAutocomplete",slot:"GroupLabel"})(tt(({theme:e})=>({backgroundColor:(e.vars||e).palette.background.paper,top:-8}))),G9=oe("ul",{name:"MuiAutocomplete",slot:"GroupUl"})({padding:0,[`& .${Ze.option}`]:{paddingLeft:24}}),Ld=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiAutocomplete"}),{autoComplete:a=!1,autoHighlight:o=!1,autoSelect:s=!1,blurOnSelect:i=!1,ChipProps:l,className:u,clearIcon:c=bg||(bg=p.jsx(O9,{fontSize:"small"})),clearOnBlur:d=!r.freeSolo,clearOnEscape:m=!1,clearText:f="Clear",closeText:h="Close",componentsProps:b,defaultValue:g=r.multiple?[]:null,disableClearable:x=!1,disableCloseOnSelect:C=!1,disabled:E=!1,disabledItemsFocusable:k=!1,disableListWrap:T=!1,disablePortal:S=!1,filterOptions:O,filterSelectedOptions:M=!1,forcePopupIcon:$="auto",freeSolo:P=!1,fullWidth:L=!1,getLimitTagsText:v=pt=>`+${pt}`,getOptionDisabled:N,getOptionKey:I,getOptionLabel:A,isOptionEqualToValue:R,groupBy:W,handleHomeEndKeys:H=!r.freeSolo,id:B,includeInputInList:_=!1,inputValue:V,limitTags:J=-1,ListboxComponent:F,ListboxProps:de,loading:Z=!1,loadingText:Y="Loading…",multiple:te=!1,noOptionsText:X="No options",onChange:re,onClose:Q,onHighlightChange:G,onInputChange:se,onOpen:ee,open:ne,openOnFocus:xe=!1,openText:pe="Open",options:be,PaperComponent:le,PopperComponent:Pe,popupIcon:Te=yg||(yg=p.jsx(ax,{})),readOnly:ze=!1,renderGroup:we,renderInput:Tt,renderOption:lt,renderTags:qe,renderValue:ue,selectOnFocus:Ee=!r.freeSolo,size:Me="medium",slots:He={},slotProps:Be={},value:Ne,...Je}=r,{getRootProps:gt,getInputProps:ft,getInputLabelProps:ie,getPopupIndicatorProps:ye,getClearProps:ve,getItemProps:$e,getListboxProps:We,getOptionProps:It,value:Nt,dirty:xt,expanded:zt,id:Nn,popupOpen:At,focused:rn,focusedItem:_r,anchorEl:On,setAnchorEl:ca,inputValue:er,groupedOptions:Ir}=mM({...r,componentName:"Autocomplete"}),qa=!x&&!E&&xt&&!ze,qo=(!P||$===!0)&&$!==!1,{onMouseDown:Bu}=ft(),{ref:ju,...Hu}=We(),Yo=A||(pt=>pt.label??pt),Vt={...r,disablePortal:S,expanded:zt,focused:rn,fullWidth:L,getOptionLabel:Yo,hasClearIcon:qa,hasPopupIcon:qo,inputFocused:_r===-1,popupOpen:At,size:Me},Gt=F9(Vt),qr={slots:{paper:le,popper:Pe,...He},slotProps:{chip:l,listbox:de,...b,...Be}},[zu,Go]=ct("listbox",{elementType:q9,externalForwardedProps:qr,ownerState:Vt,className:Gt.listbox,additionalProps:Hu,ref:ju}),[ki,ge]=ct("paper",{elementType:za,externalForwardedProps:qr,ownerState:Vt,className:Gt.paper}),[he,Oe]=ct("popper",{elementType:zp,externalForwardedProps:qr,ownerState:Vt,className:Gt.popper,additionalProps:{disablePortal:S,style:{width:On?On.clientWidth:null},role:"presentation",anchorEl:On,open:At}});let Ve;const Ye=pt=>({className:Gt.tag,disabled:E,...$e(pt)});if(te?Nt.length>0&&(qe?Ve=qe(Nt,Ye,Vt):ue?Ve=ue(Nt,Ye,Vt):Ve=Nt.map((pt,Yr)=>{const{key:Gr,...Ko}=Ye({index:Yr});return p.jsx(rx,{label:Yo(pt),size:Me,...Ko,...qr.slotProps.chip},Gr)})):ue&&Nt!=null&&(Ve=ue(Nt,Ye,Vt)),J>-1&&Array.isArray(Ve)){const pt=Ve.length-J;!rn&&pt>0&&(Ve=Ve.splice(0,J),Ve.push(p.jsx("span",{className:Gt.tag,children:v(pt)},Ve.length)))}const Ft=we||(pt=>p.jsxs("li",{children:[p.jsx(Y9,{className:Gt.groupLabel,ownerState:Vt,component:"div",children:pt.group}),p.jsx(G9,{className:Gt.groupUl,ownerState:Vt,children:pt.children})]},pt.key)),Si=lt||((pt,Yr)=>{const{key:Gr,...Ko}=pt;return p.jsx("li",{...Ko,children:Yo(Yr)},Gr)}),vf=(pt,Yr)=>{const Gr=It({option:pt,index:Yr});return Si({...Gr,className:Gt.option},pt,{selected:Gr["aria-selected"],index:Yr,inputValue:er},Vt)},Tf=qr.slotProps.clearIndicator,kf=qr.slotProps.popupIndicator;return p.jsxs(w.Fragment,{children:[p.jsx($9,{ref:n,className:De(Gt.root,u),ownerState:Vt,...gt(Je),children:Tt({id:Nn,disabled:E,fullWidth:!0,size:Me==="small"?"small":void 0,InputLabelProps:ie(),InputProps:{ref:ca,className:Gt.inputRoot,startAdornment:Ve,onMouseDown:pt=>{pt.target===pt.currentTarget&&Bu(pt)},...(qa||qo)&&{endAdornment:p.jsxs(B9,{className:Gt.endAdornment,ownerState:Vt,children:[qa?p.jsx(j9,{...ve(),"aria-label":f,title:f,ownerState:Vt,...Tf,className:De(Gt.clearIndicator,Tf?.className),children:c}):null,qo?p.jsx(H9,{...ye(),disabled:E,"aria-label":At?h:pe,title:At?h:pe,ownerState:Vt,...kf,className:De(Gt.popupIndicator,kf?.className),children:Te}):null]})}},inputProps:{className:Gt.input,disabled:E,readOnly:ze,...ft()}})}),On?p.jsx(U9,{as:he,...Oe,children:p.jsxs(z9,{as:ki,...ge,children:[Z&&Ir.length===0?p.jsx(V9,{className:Gt.loading,ownerState:Vt,children:Y}):null,Ir.length===0&&!P&&!Z?p.jsx(W9,{className:Gt.noOptions,ownerState:Vt,role:"presentation",onMouseDown:pt=>{pt.preventDefault()},children:X}):null,Ir.length>0?p.jsx(zu,{as:F,...Go,children:Ir.map((pt,Yr)=>W?Ft({key:pt.key,group:pt.group,children:pt.options.map((Gr,Ko)=>vf(Gr,pt.index+Ko))}):vf(pt,Yr))}):null]})}):null]})});function ox(e){const{theme:t,name:n,props:r}=e;return!t||!t.components||!t.components[n]||!t.components[n].defaultProps?r:js(t.components[n].defaultProps,r)}function K9({props:e,name:t,defaultTheme:n,themeId:r}){let a=LE(n);return a=a[r]||a,ox({theme:a,name:t,props:e})}function _t({props:e,name:t}){return K9({props:e,name:t,defaultTheme:iu,themeId:Po})}const Q9=Re("MuiBox",["root"]),X9=R0(),Dt=dt.createBox({themeId:Po,defaultTheme:X9,defaultClassName:Q9.root,generateClassName:b0.generate});function Z9(e){return Fe("MuiFormControl",e)}Re("MuiFormControl",["root","marginNone","marginNormal","marginDense","fullWidth","disabled"]);const J9=e=>{const{classes:t,margin:n,fullWidth:r}=e,a={root:["root",n!=="none"&&`margin${Se(n)}`,r&&"fullWidth"]};return Le(a,Z9,t)},eO=oe("div",{name:"MuiFormControl",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`margin${Se(n.margin)}`],n.fullWidth&&t.fullWidth]}})({display:"inline-flex",flexDirection:"column",position:"relative",minWidth:0,padding:0,margin:0,border:0,verticalAlign:"top",variants:[{props:{margin:"normal"},style:{marginTop:16,marginBottom:8}},{props:{margin:"dense"},style:{marginTop:8,marginBottom:4}},{props:{fullWidth:!0},style:{width:"100%"}}]}),ql=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormControl"}),{children:a,className:o,color:s="primary",component:i="div",disabled:l=!1,error:u=!1,focused:c,fullWidth:d=!1,hiddenLabel:m=!1,margin:f="none",required:h=!1,size:b="medium",variant:g="outlined",...x}=r,C={...r,color:s,component:i,disabled:l,error:u,fullWidth:d,hiddenLabel:m,margin:f,required:h,size:b,variant:g},E=J9(C),[k,T]=w.useState(()=>{let A=!1;return a&&w.Children.forEach(a,R=>{if(!Yi(R,["Input","Select"]))return;const W=Yi(R,["Select"])?R.props.input:R;W&&A9(W.props)&&(A=!0)}),A}),[S,O]=w.useState(()=>{let A=!1;return a&&w.Children.forEach(a,R=>{Yi(R,["Input","Select"])&&(Wl(R.props,!0)||Wl(R.props.inputProps,!0))&&(A=!0)}),A}),[M,$]=w.useState(!1);l&&M&&$(!1);const P=c!==void 0&&!l?c:M;let L;w.useRef(!1);const v=w.useCallback(()=>{O(!0)},[]),N=w.useCallback(()=>{O(!1)},[]),I=w.useMemo(()=>({adornedStart:k,setAdornedStart:T,color:s,disabled:l,error:u,filled:S,focused:P,fullWidth:d,hiddenLabel:m,size:b,onBlur:()=>{$(!1)},onFocus:()=>{$(!0)},onEmpty:N,onFilled:v,registerEffect:L,required:h,variant:g}),[k,s,l,u,S,P,d,m,L,N,v,h,b,g]);return p.jsx(_u.Provider,{value:I,children:p.jsx(eO,{as:i,ownerState:C,className:De(E.root,o),ref:n,...x,children:a})})});function tO(e){return Fe("MuiFormLabel",e)}const Os=Re("MuiFormLabel",["root","colorSecondary","focused","disabled","error","filled","required","asterisk"]),nO=e=>{const{classes:t,color:n,focused:r,disabled:a,error:o,filled:s,required:i}=e,l={root:["root",`color${Se(n)}`,a&&"disabled",o&&"error",s&&"filled",r&&"focused",i&&"required"],asterisk:["asterisk",o&&"error"]};return Le(l,tO,t)},rO=oe("label",{name:"MuiFormLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.color==="secondary"&&t.colorSecondary,n.filled&&t.filled]}})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.body1,lineHeight:"1.4375em",padding:0,position:"relative",variants:[...Object.entries(e.palette).filter(mn()).map(([t])=>({props:{color:t},style:{[`&.${Os.focused}`]:{color:(e.vars||e).palette[t].main}}})),{props:{},style:{[`&.${Os.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Os.error}`]:{color:(e.vars||e).palette.error.main}}}]}))),aO=oe("span",{name:"MuiFormLabel",slot:"Asterisk"})(tt(({theme:e})=>({[`&.${Os.error}`]:{color:(e.vars||e).palette.error.main}}))),oO=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormLabel"}),{children:a,className:o,color:s,component:i="label",disabled:l,error:u,filled:c,focused:d,required:m,...f}=r,h=Jn(),b=Vo({props:r,muiFormControl:h,states:["color","required","focused","disabled","error","filled"]}),g={...r,color:b.color||"primary",component:i,disabled:b.disabled,error:b.error,filled:b.filled,focused:b.focused,required:b.required},x=nO(g);return p.jsxs(rO,{as:i,ownerState:g,className:De(x.root,o),ref:n,...f,children:[a,b.required&&p.jsxs(aO,{ownerState:g,"aria-hidden":!0,className:x.asterisk,children:[" ","*"]})]})});function sO(e){return Fe("MuiInputLabel",e)}Re("MuiInputLabel",["root","focused","disabled","error","required","asterisk","formControl","sizeSmall","shrink","animated","standard","filled","outlined"]);const iO=e=>{const{classes:t,formControl:n,size:r,shrink:a,disableAnimation:o,variant:s,required:i}=e,l={root:["root",n&&"formControl",!o&&"animated",a&&"shrink",r&&r!=="medium"&&`size${Se(r)}`,s],asterisk:[i&&"asterisk"]},u=Le(l,sO,t);return{...t,...u}},lO=oe(oO,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiInputLabel",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`& .${Os.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]]}})(tt(({theme:e})=>({display:"block",transformOrigin:"top left",whiteSpace:"nowrap",overflow:"hidden",textOverflow:"ellipsis",maxWidth:"100%",variants:[{props:({ownerState:t})=>t.formControl,style:{position:"absolute",left:0,top:0,transform:"translate(0, 20px) scale(1)"}},{props:{size:"small"},style:{transform:"translate(0, 17px) scale(1)"}},{props:({ownerState:t})=>t.shrink,style:{transform:"translate(0, -1.5px) scale(0.75)",transformOrigin:"top left",maxWidth:"133%"}},{props:({ownerState:t})=>!t.disableAnimation,style:{transition:e.transitions.create(["color","transform","max-width"],{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut})}},{props:{variant:"filled"},style:{zIndex:1,pointerEvents:"none",transform:"translate(12px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"filled",size:"small"},style:{transform:"translate(12px, 13px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="filled"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",transform:"translate(12px, 7px) scale(0.75)",maxWidth:"calc(133% - 24px)"}},{props:({variant:t,ownerState:n,size:r})=>t==="filled"&&n.shrink&&r==="small",style:{transform:"translate(12px, 4px) scale(0.75)"}},{props:{variant:"outlined"},style:{zIndex:1,pointerEvents:"none",transform:"translate(14px, 16px) scale(1)",maxWidth:"calc(100% - 24px)"}},{props:{variant:"outlined",size:"small"},style:{transform:"translate(14px, 9px) scale(1)"}},{props:({variant:t,ownerState:n})=>t==="outlined"&&n.shrink,style:{userSelect:"none",pointerEvents:"auto",maxWidth:"calc(133% - 32px)",transform:"translate(14px, -9px) scale(0.75)"}}]}))),Yl=w.forwardRef(function(t,n){const r=Xe({name:"MuiInputLabel",props:t}),{disableAnimation:a=!1,margin:o,shrink:s,variant:i,className:l,...u}=r,c=Jn();let d=s;typeof d>"u"&&c&&(d=c.filled||c.focused||c.adornedStart);const m=Vo({props:r,muiFormControl:c,states:["size","variant","required","focused"]}),f={...r,disableAnimation:a,formControl:c,shrink:d,size:m.size,variant:m.variant,required:m.required,focused:m.focused},h=iO(f);return p.jsx(lO,{"data-shrink":d,ref:n,className:De(h.root,l),...u,ownerState:f,classes:h})}),Da=w.createContext({}),xg=Re("MuiDivider",["root","absolute","fullWidth","inset","middle","flexItem","light","vertical","withChildren","withChildrenVertical","textAlignRight","textAlignLeft","wrapper","wrapperVertical"]),Cg=Re("MuiListItemIcon",["root","alignItemsFlexStart"]);function uO(e){return Fe("MuiTypography",e)}Re("MuiTypography",["root","h1","h2","h3","h4","h5","h6","subtitle1","subtitle2","body1","body2","inherit","button","caption","overline","alignLeft","alignRight","alignCenter","alignJustify","noWrap","gutterBottom","paragraph"]);const cO={primary:!0,secondary:!0,error:!0,info:!0,success:!0,warning:!0,textPrimary:!0,textSecondary:!0,textDisabled:!0},dO=Tv(),pO=e=>{const{align:t,gutterBottom:n,noWrap:r,paragraph:a,variant:o,classes:s}=e,i={root:["root",o,e.align!=="inherit"&&`align${Se(t)}`,n&&"gutterBottom",r&&"noWrap",a&&"paragraph"]};return Le(i,uO,s)},fO=oe("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${Se(n.align)}`],n.noWrap&&t.noWrap,n.gutterBottom&&t.gutterBottom,n.paragraph&&t.paragraph]}})(tt(({theme:e})=>({margin:0,variants:[{props:{variant:"inherit"},style:{font:"inherit",lineHeight:"inherit",letterSpacing:"inherit"}},...Object.entries(e.typography).filter(([t,n])=>t!=="inherit"&&n&&typeof n=="object").map(([t,n])=>({props:{variant:t},style:n})),...Object.entries(e.palette).filter(mn()).map(([t])=>({props:{color:t},style:{color:(e.vars||e).palette[t].main}})),...Object.entries(e.palette?.text||{}).filter(([,t])=>typeof t=="string").map(([t])=>({props:{color:`text${Se(t)}`},style:{color:(e.vars||e).palette.text[t]}})),{props:({ownerState:t})=>t.align!=="inherit",style:{textAlign:"var(--Typography-textAlign)"}},{props:({ownerState:t})=>t.noWrap,style:{overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"}},{props:({ownerState:t})=>t.gutterBottom,style:{marginBottom:"0.35em"}},{props:({ownerState:t})=>t.paragraph,style:{marginBottom:16}}]}))),Eg={h1:"h1",h2:"h2",h3:"h3",h4:"h4",h5:"h5",h6:"h6",subtitle1:"h6",subtitle2:"h6",body1:"p",body2:"p",inherit:"p"},yt=w.forwardRef(function(t,n){const{color:r,...a}=Xe({props:t,name:"MuiTypography"}),o=!cO[r],s=dO({...a,...o&&{color:r}}),{align:i="inherit",className:l,component:u,gutterBottom:c=!1,noWrap:d=!1,paragraph:m=!1,variant:f="body1",variantMapping:h=Eg,...b}=s,g={...s,align:i,color:r,className:l,component:u,gutterBottom:c,noWrap:d,paragraph:m,variant:f,variantMapping:h},x=u||(m?"p":h[f]||Eg[f])||"span",C=pO(g);return p.jsx(fO,{as:x,ref:n,className:De(C.root,l),...b,ownerState:g,style:{...i!=="inherit"&&{"--Typography-textAlign":i},...b.style}})}),vg=Re("MuiListItemText",["root","multiline","dense","inset","primary","secondary"]);function mO(e){return Fe("MuiMenuItem",e)}const is=Re("MuiMenuItem",["root","focusVisible","dense","disabled","divider","gutters","selected"]),hO=(e,t)=>{const{ownerState:n}=e;return[t.root,n.dense&&t.dense,n.divider&&t.divider,!n.disableGutters&&t.gutters]},gO=e=>{const{disabled:t,dense:n,divider:r,disableGutters:a,selected:o,classes:s}=e,l=Le({root:["root",n&&"dense",t&&"disabled",!a&&"gutters",r&&"divider",o&&"selected"]},mO,s);return{...s,...l}},bO=oe(La,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiMenuItem",slot:"Root",overridesResolver:hO})(tt(({theme:e})=>({...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","&:hover":{textDecoration:"none",backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${is.selected}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity),[`&.${is.focusVisible}`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.focusOpacity}`)}},[`&.${is.selected}:hover`]:{backgroundColor:e.alpha((e.vars||e).palette.primary.main,`${(e.vars||e).palette.action.selectedOpacity} + ${(e.vars||e).palette.action.hoverOpacity}`),"@media (hover: none)":{backgroundColor:e.alpha((e.vars||e).palette.primary.main,(e.vars||e).palette.action.selectedOpacity)}},[`&.${is.focusVisible}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${is.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity},[`& + .${xg.root}`]:{marginTop:e.spacing(1),marginBottom:e.spacing(1)},[`& + .${xg.inset}`]:{marginLeft:52},[`& .${vg.root}`]:{marginTop:0,marginBottom:0},[`& .${vg.inset}`]:{paddingLeft:36},[`& .${Cg.root}`]:{minWidth:36},variants:[{props:({ownerState:t})=>!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>!t.dense,style:{[e.breakpoints.up("sm")]:{minHeight:"auto"}}},{props:({ownerState:t})=>t.dense,style:{minHeight:32,paddingTop:4,paddingBottom:4,...e.typography.body2,[`& .${Cg.root} svg`]:{fontSize:"1.25rem"}}}]}))),on=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenuItem"}),{autoFocus:a=!1,component:o="li",dense:s=!1,divider:i=!1,disableGutters:l=!1,focusVisibleClassName:u,role:c="menuitem",tabIndex:d,className:m,...f}=r,h=w.useContext(Da),b=w.useMemo(()=>({dense:s||h.dense||!1,disableGutters:l}),[h.dense,s,l]),g=w.useRef(null);qt(()=>{a&&g.current&&g.current.focus()},[a]);const x={...r,dense:b.dense,divider:i,disableGutters:l},C=gO(r),E=ot(g,n);let k;return r.disabled||(k=d!==void 0?d:-1),p.jsx(Da.Provider,{value:b,children:p.jsx(bO,{ref:E,role:c,tabIndex:k,component:o,focusVisibleClassName:De(C.focusVisible,u),className:De(C.root,m),...f,ownerState:x,classes:C})})});function yO(e){return Fe("MuiList",e)}Re("MuiList",["root","padding","dense","subheader"]);const xO=e=>{const{classes:t,disablePadding:n,dense:r,subheader:a}=e;return Le({root:["root",!n&&"padding",r&&"dense",a&&"subheader"]},yO,t)},CO=oe("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]}})({listStyle:"none",margin:0,padding:0,position:"relative",variants:[{props:({ownerState:e})=>!e.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:e})=>e.subheader,style:{paddingTop:0}}]}),sx=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiList"}),{children:a,className:o,component:s="ul",dense:i=!1,disablePadding:l=!1,subheader:u,...c}=r,d=w.useMemo(()=>({dense:i}),[i]),m={...r,component:s,dense:i,disablePadding:l},f=xO(m);return p.jsx(Da.Provider,{value:d,children:p.jsxs(CO,{as:s,className:De(f.root,o),ref:n,ownerState:m,...c,children:[u,a]})})});function ix(e=window){const t=e.document.documentElement.clientWidth;return e.innerWidth-t}function Nc(e,t,n){return e===t?e.firstChild:t&&t.nextElementSibling?t.nextElementSibling:n?null:e.firstChild}function Tg(e,t,n){return e===t?n?e.firstChild:e.lastChild:t&&t.previousElementSibling?t.previousElementSibling:n?null:e.lastChild}function lx(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.startsWith(t.keys.join(""))}function ls(e,t,n,r,a,o){let s=!1,i=a(e,t,t?n:!1);for(;i;){if(i===e.firstChild){if(s)return!1;s=!0}const l=r?!1:i.disabled||i.getAttribute("aria-disabled")==="true";if(!i.hasAttribute("tabindex")||!lx(i,o)||l)i=a(e,i,n);else return i.focus(),!0}return!1}const EO=w.forwardRef(function(t,n){const{actions:r,autoFocus:a=!1,autoFocusItem:o=!1,children:s,className:i,disabledItemsFocusable:l=!1,disableListWrap:u=!1,onKeyDown:c,variant:d="selectedMenu",...m}=t,f=w.useRef(null),h=w.useRef({keys:[],repeating:!0,previousKeyMatched:!0,lastTime:null});qt(()=>{a&&f.current.focus()},[a]),w.useImperativeHandle(r,()=>({adjustStyleForScrollbar:(E,{direction:k})=>{const T=!f.current.style.width;if(E.clientHeight<f.current.clientHeight&&T){const S=`${ix($r(E))}px`;f.current.style[k==="rtl"?"paddingLeft":"paddingRight"]=S,f.current.style.width=`calc(100% + ${S})`}return f.current}}),[]);const b=E=>{const k=f.current,T=E.key;if(E.ctrlKey||E.metaKey||E.altKey){c&&c(E);return}const O=Ut(k).activeElement;if(T==="ArrowDown")E.preventDefault(),ls(k,O,u,l,Nc);else if(T==="ArrowUp")E.preventDefault(),ls(k,O,u,l,Tg);else if(T==="Home")E.preventDefault(),ls(k,null,u,l,Nc);else if(T==="End")E.preventDefault(),ls(k,null,u,l,Tg);else if(T.length===1){const M=h.current,$=T.toLowerCase(),P=performance.now();M.keys.length>0&&(P-M.lastTime>500?(M.keys=[],M.repeating=!0,M.previousKeyMatched=!0):M.repeating&&$!==M.keys[0]&&(M.repeating=!1)),M.lastTime=P,M.keys.push($);const L=O&&!M.repeating&&lx(O,M);M.previousKeyMatched&&(L||ls(k,O,!1,l,Nc,M))?E.preventDefault():M.previousKeyMatched=!1}c&&c(E)},g=ot(f,n);let x=-1;w.Children.forEach(s,(E,k)=>{if(!w.isValidElement(E)){x===k&&(x+=1,x>=s.length&&(x=-1));return}E.props.disabled||(d==="selectedMenu"&&E.props.selected||x===-1)&&(x=k),x===k&&(E.props.disabled||E.props.muiSkipListHighlight||E.type.muiSkipListHighlight)&&(x+=1,x>=s.length&&(x=-1))});const C=w.Children.map(s,(E,k)=>{if(k===x){const T={};return o&&(T.autoFocus=!0),E.props.tabIndex===void 0&&d==="selectedMenu"&&(T.tabIndex=0),w.cloneElement(E,T)}return E});return p.jsx(sx,{role:"menu",ref:g,className:i,onKeyDown:b,tabIndex:a?0:-1,...m,children:C})}),ux=e=>e.scrollTop;function Ao(e,t){const{timeout:n,easing:r,style:a={}}=e;return{duration:a.transitionDuration??(typeof n=="number"?n:n[t.mode]||0),easing:a.transitionTimingFunction??(typeof r=="object"?r[t.mode]:r),delay:a.transitionDelay}}function Fd(e){return`scale(${e}, ${e**2})`}const vO={entering:{opacity:1,transform:Fd(1)},entered:{opacity:1,transform:"none"}},Oc=typeof navigator<"u"&&/^((?!chrome|android).)*(safari|mobile)/i.test(navigator.userAgent)&&/(os |version\/)15(.|_)4/i.test(navigator.userAgent),Xs=w.forwardRef(function(t,n){const{addEndListener:r,appear:a=!0,children:o,easing:s,in:i,onEnter:l,onEntered:u,onEntering:c,onExit:d,onExited:m,onExiting:f,style:h,timeout:b="auto",TransitionComponent:g=Zn,...x}=t,C=wu(),E=w.useRef(),k=oa(),T=w.useRef(null),S=ot(T,zo(o),n),O=A=>R=>{if(A){const W=T.current;R===void 0?A(W):A(W,R)}},M=O(c),$=O((A,R)=>{ux(A);const{duration:W,delay:H,easing:B}=Ao({style:h,timeout:b,easing:s},{mode:"enter"});let _;b==="auto"?(_=k.transitions.getAutoHeightDuration(A.clientHeight),E.current=_):_=W,A.style.transition=[k.transitions.create("opacity",{duration:_,delay:H}),k.transitions.create("transform",{duration:Oc?_:_*.666,delay:H,easing:B})].join(","),l&&l(A,R)}),P=O(u),L=O(f),v=O(A=>{const{duration:R,delay:W,easing:H}=Ao({style:h,timeout:b,easing:s},{mode:"exit"});let B;b==="auto"?(B=k.transitions.getAutoHeightDuration(A.clientHeight),E.current=B):B=R,A.style.transition=[k.transitions.create("opacity",{duration:B,delay:W}),k.transitions.create("transform",{duration:Oc?B:B*.666,delay:Oc?W:W||B*.333,easing:H})].join(","),A.style.opacity=0,A.style.transform=Fd(.75),d&&d(A)}),N=O(m),I=A=>{b==="auto"&&C.start(E.current||0,A),r&&r(T.current,A)};return p.jsx(g,{appear:a,in:i,nodeRef:T,onEnter:$,onEntered:P,onEntering:M,onExit:v,onExited:N,onExiting:L,addEndListener:I,timeout:b==="auto"?null:b,...x,children:(A,{ownerState:R,...W})=>w.cloneElement(o,{style:{opacity:0,transform:Fd(.75),visibility:A==="exited"&&!i?"hidden":void 0,...vO[A],...h,...o.props.style},ref:S,...W})})});Xs&&(Xs.muiSupportAuto=!0);function TO(e){const t=Ut(e);return t.body===e?$r(e).innerWidth>t.documentElement.clientWidth:e.scrollHeight>e.clientHeight}function Ls(e,t){t?e.setAttribute("aria-hidden","true"):e.removeAttribute("aria-hidden")}function kg(e){return parseInt($r(e).getComputedStyle(e).paddingRight,10)||0}function kO(e){const n=["TEMPLATE","SCRIPT","STYLE","LINK","MAP","META","NOSCRIPT","PICTURE","COL","COLGROUP","PARAM","SLOT","SOURCE","TRACK"].includes(e.tagName),r=e.tagName==="INPUT"&&e.getAttribute("type")==="hidden";return n||r}function Sg(e,t,n,r,a){const o=[t,n,...r];[].forEach.call(e.children,s=>{const i=!o.includes(s),l=!kO(s);i&&l&&Ls(s,a)})}function Lc(e,t){let n=-1;return e.some((r,a)=>t(r)?(n=a,!0):!1),n}function SO(e,t){const n=[],r=e.container;if(!t.disableScrollLock){if(TO(r)){const s=ix($r(r));n.push({value:r.style.paddingRight,property:"padding-right",el:r}),r.style.paddingRight=`${kg(r)+s}px`;const i=Ut(r).querySelectorAll(".mui-fixed");[].forEach.call(i,l=>{n.push({value:l.style.paddingRight,property:"padding-right",el:l}),l.style.paddingRight=`${kg(l)+s}px`})}let o;if(r.parentNode instanceof DocumentFragment)o=Ut(r).body;else{const s=r.parentElement,i=$r(r);o=s?.nodeName==="HTML"&&i.getComputedStyle(s).overflowY==="scroll"?s:r}n.push({value:o.style.overflow,property:"overflow",el:o},{value:o.style.overflowX,property:"overflow-x",el:o},{value:o.style.overflowY,property:"overflow-y",el:o}),o.style.overflow="hidden"}return()=>{n.forEach(({value:o,el:s,property:i})=>{o?s.style.setProperty(i,o):s.style.removeProperty(i)})}}function wO(e){const t=[];return[].forEach.call(e.children,n=>{n.getAttribute("aria-hidden")==="true"&&t.push(n)}),t}class _O{constructor(){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&&Ls(t.modalRef,!1);const a=wO(n);Sg(n,t.mount,t.modalRef,a,!0);const o=Lc(this.containers,s=>s.container===n);return o!==-1?(this.containers[o].modals.push(t),r):(this.containers.push({modals:[t],container:n,restore:null,hiddenSiblings:a}),r)}mount(t,n){const r=Lc(this.containers,o=>o.modals.includes(t)),a=this.containers[r];a.restore||(a.restore=SO(a,n))}remove(t,n=!0){const r=this.modals.indexOf(t);if(r===-1)return r;const a=Lc(this.containers,s=>s.modals.includes(t)),o=this.containers[a];if(o.modals.splice(o.modals.indexOf(t),1),this.modals.splice(r,1),o.modals.length===0)o.restore&&o.restore(),t.modalRef&&Ls(t.modalRef,n),Sg(o.container,t.mount,t.modalRef,o.hiddenSiblings,!1),this.containers.splice(a,1);else{const s=o.modals[o.modals.length-1];s.modalRef&&Ls(s.modalRef,!1)}return r}isTopModal(t){return this.modals.length>0&&this.modals[this.modals.length-1]===t}}const IO=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'].join(",");function AO(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 DO(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 PO(e){return!(e.disabled||e.tagName==="INPUT"&&e.type==="hidden"||DO(e))}function RO(e){const t=[],n=[];return Array.from(e.querySelectorAll(IO)).forEach((r,a)=>{const o=AO(r);o===-1||!PO(r)||(o===0?t.push(r):n.push({documentOrder:a,tabIndex:o,node:r}))}),n.sort((r,a)=>r.tabIndex===a.tabIndex?r.documentOrder-a.documentOrder:r.tabIndex-a.tabIndex).map(r=>r.node).concat(t)}function MO(){return!0}function cx(e){const{children:t,disableAutoFocus:n=!1,disableEnforceFocus:r=!1,disableRestoreFocus:a=!1,getTabbable:o=RO,isEnabled:s=MO,open:i}=e,l=w.useRef(!1),u=w.useRef(null),c=w.useRef(null),d=w.useRef(null),m=w.useRef(null),f=w.useRef(!1),h=w.useRef(null),b=ot(zo(t),h),g=w.useRef(null);w.useEffect(()=>{!i||!h.current||(f.current=!n)},[n,i]),w.useEffect(()=>{if(!i||!h.current)return;const E=Ut(h.current);return h.current.contains(E.activeElement)||(h.current.hasAttribute("tabIndex")||h.current.setAttribute("tabIndex","-1"),f.current&&h.current.focus()),()=>{a||(d.current&&d.current.focus&&(l.current=!0,d.current.focus()),d.current=null)}},[i]),w.useEffect(()=>{if(!i||!h.current)return;const E=Ut(h.current),k=O=>{g.current=O,!(r||!s()||O.key!=="Tab")&&E.activeElement===h.current&&O.shiftKey&&(l.current=!0,c.current&&c.current.focus())},T=()=>{const O=h.current;if(O===null)return;if(!E.hasFocus()||!s()||l.current){l.current=!1;return}if(O.contains(E.activeElement)||r&&E.activeElement!==u.current&&E.activeElement!==c.current)return;if(E.activeElement!==m.current)m.current=null;else if(m.current!==null)return;if(!f.current)return;let M=[];if((E.activeElement===u.current||E.activeElement===c.current)&&(M=o(h.current)),M.length>0){const $=!!(g.current?.shiftKey&&g.current?.key==="Tab"),P=M[0],L=M[M.length-1];typeof P!="string"&&typeof L!="string"&&($?L.focus():P.focus())}else O.focus()};E.addEventListener("focusin",T),E.addEventListener("keydown",k,!0);const S=setInterval(()=>{E.activeElement&&E.activeElement.tagName==="BODY"&&T()},50);return()=>{clearInterval(S),E.removeEventListener("focusin",T),E.removeEventListener("keydown",k,!0)}},[n,r,a,s,i,o]);const x=E=>{d.current===null&&(d.current=E.relatedTarget),f.current=!0,m.current=E.target;const k=t.props.onFocus;k&&k(E)},C=E=>{d.current===null&&(d.current=E.relatedTarget),f.current=!0};return p.jsxs(w.Fragment,{children:[p.jsx("div",{tabIndex:i?0:-1,onFocus:C,ref:u,"data-testid":"sentinelStart"}),w.cloneElement(t,{ref:b,onFocus:x}),p.jsx("div",{tabIndex:i?0:-1,onFocus:C,ref:c,"data-testid":"sentinelEnd"})]})}const NO={entering:{opacity:1},entered:{opacity:1}},Fa=w.forwardRef(function(t,n){const r=oa(),a={enter:r.transitions.duration.enteringScreen,exit:r.transitions.duration.leavingScreen},{addEndListener:o,appear:s=!0,children:i,easing:l,in:u,onEnter:c,onEntered:d,onEntering:m,onExit:f,onExited:h,onExiting:b,style:g,timeout:x=a,TransitionComponent:C=Zn,...E}=t,k=w.useRef(null),T=ot(k,zo(i),n),S=I=>A=>{if(I){const R=k.current;A===void 0?I(R):I(R,A)}},O=S(m),M=S((I,A)=>{ux(I);const R=Ao({style:g,timeout:x,easing:l},{mode:"enter"});I.style.webkitTransition=r.transitions.create("opacity",R),I.style.transition=r.transitions.create("opacity",R),c&&c(I,A)}),$=S(d),P=S(b),L=S(I=>{const A=Ao({style:g,timeout:x,easing:l},{mode:"exit"});I.style.webkitTransition=r.transitions.create("opacity",A),I.style.transition=r.transitions.create("opacity",A),f&&f(I)}),v=S(h),N=I=>{o&&o(k.current,I)};return p.jsx(C,{appear:s,in:u,nodeRef:k,onEnter:M,onEntered:$,onEntering:O,onExit:L,onExited:v,onExiting:P,addEndListener:N,timeout:x,...E,children:(I,{ownerState:A,...R})=>w.cloneElement(i,{style:{opacity:0,visibility:I==="exited"&&!u?"hidden":void 0,...NO[I],...g,...i.props.style},ref:T,...R})})});function OO(e){return Fe("MuiBackdrop",e)}Re("MuiBackdrop",["root","invisible"]);const LO=e=>{const{classes:t,invisible:n}=e;return Le({root:["root",n&&"invisible"]},OO,t)},FO=oe("div",{name:"MuiBackdrop",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.invisible&&t.invisible]}})({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",variants:[{props:{invisible:!0},style:{backgroundColor:"transparent"}}]}),dx=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiBackdrop"}),{children:a,className:o,component:s="div",invisible:i=!1,open:l,components:u={},componentsProps:c={},slotProps:d={},slots:m={},TransitionComponent:f,transitionDuration:h,...b}=r,g={...r,component:s,invisible:i},x=LO(g),C={transition:f,root:u.Root,...m},E={...c,...d},k={component:s,slots:C,slotProps:E},[T,S]=ct("root",{elementType:FO,externalForwardedProps:k,className:De(x.root,o),ownerState:g}),[O,M]=ct("transition",{elementType:Fa,externalForwardedProps:k,ownerState:g});return p.jsx(O,{in:l,timeout:h,...b,...M,children:p.jsx(T,{"aria-hidden":!0,...S,classes:x,ref:n,children:a})})});function $O(e){return typeof e=="function"?e():e}function BO(e){return e?e.props.hasOwnProperty("in"):!1}const wg=()=>{},Ui=new _O;function jO(e){const{container:t,disableEscapeKeyDown:n=!1,disableScrollLock:r=!1,closeAfterTransition:a=!1,onTransitionEnter:o,onTransitionExited:s,children:i,onClose:l,open:u,rootRef:c}=e,d=w.useRef({}),m=w.useRef(null),f=w.useRef(null),h=ot(f,c),[b,g]=w.useState(!u),x=BO(i);let C=!0;(e["aria-hidden"]==="false"||e["aria-hidden"]===!1)&&(C=!1);const E=()=>Ut(m.current),k=()=>(d.current.modalRef=f.current,d.current.mount=m.current,d.current),T=()=>{Ui.mount(k(),{disableScrollLock:r}),f.current&&(f.current.scrollTop=0)},S=Ae(()=>{const A=$O(t)||E().body;Ui.add(k(),A),f.current&&T()}),O=()=>Ui.isTopModal(k()),M=Ae(A=>{m.current=A,A&&(u&&O()?T():f.current&&Ls(f.current,C))}),$=w.useCallback(()=>{Ui.remove(k(),C)},[C]);w.useEffect(()=>()=>{$()},[$]),w.useEffect(()=>{u?S():(!x||!a)&&$()},[u,$,x,a,S]);const P=A=>R=>{A.onKeyDown?.(R),!(R.key!=="Escape"||R.which===229||!O())&&(n||(R.stopPropagation(),l&&l(R,"escapeKeyDown")))},L=A=>R=>{A.onClick?.(R),R.target===R.currentTarget&&l&&l(R,"backdropClick")};return{getRootProps:(A={})=>{const R=dn(e);delete R.onTransitionEnter,delete R.onTransitionExited;const W={...R,...A};return{role:"presentation",...W,onKeyDown:P(W),ref:h}},getBackdropProps:(A={})=>{const R=A;return{"aria-hidden":!0,...R,onClick:L(R),open:u}},getTransitionProps:()=>{const A=()=>{g(!1),o&&o()},R=()=>{g(!0),s&&s(),a&&$()};return{onEnter:_f(A,i?.props.onEnter??wg),onExited:_f(R,i?.props.onExited??wg)}},rootRef:h,portalRef:M,isTopModal:O,exited:b,hasTransition:x}}function HO(e){return Fe("MuiModal",e)}Re("MuiModal",["root","hidden","backdrop"]);const UO=e=>{const{open:t,exited:n,classes:r}=e;return Le({root:["root",!t&&n&&"hidden"],backdrop:["backdrop"]},HO,r)},zO=oe("div",{name:"MuiModal",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.open&&n.exited&&t.hidden]}})(tt(({theme:e})=>({position:"fixed",zIndex:(e.vars||e).zIndex.modal,right:0,bottom:0,top:0,left:0,variants:[{props:({ownerState:t})=>!t.open&&t.exited,style:{visibility:"hidden"}}]}))),VO=oe(dx,{name:"MuiModal",slot:"Backdrop"})({zIndex:-1}),px=w.forwardRef(function(t,n){const r=Xe({name:"MuiModal",props:t}),{BackdropComponent:a=VO,BackdropProps:o,classes:s,className:i,closeAfterTransition:l=!1,children:u,container:c,component:d,components:m={},componentsProps:f={},disableAutoFocus:h=!1,disableEnforceFocus:b=!1,disableEscapeKeyDown:g=!1,disablePortal:x=!1,disableRestoreFocus:C=!1,disableScrollLock:E=!1,hideBackdrop:k=!1,keepMounted:T=!1,onClose:S,onTransitionEnter:O,onTransitionExited:M,open:$,slotProps:P={},slots:L={},theme:v,...N}=r,I={...r,closeAfterTransition:l,disableAutoFocus:h,disableEnforceFocus:b,disableEscapeKeyDown:g,disablePortal:x,disableRestoreFocus:C,disableScrollLock:E,hideBackdrop:k,keepMounted:T},{getRootProps:A,getBackdropProps:R,getTransitionProps:W,portalRef:H,isTopModal:B,exited:_,hasTransition:V}=jO({...I,rootRef:n}),J={...I,exited:_},F=UO(J),de={};if(u.props.tabIndex===void 0&&(de.tabIndex="-1"),V){const{onEnter:Q,onExited:G}=W();de.onEnter=Q,de.onExited=G}const Z={slots:{root:m.Root,backdrop:m.Backdrop,...L},slotProps:{...f,...P}},[Y,te]=ct("root",{ref:n,elementType:zO,externalForwardedProps:{...Z,...N,component:d},getSlotProps:A,ownerState:J,className:De(i,F?.root,!J.open&&J.exited&&F?.hidden)}),[X,re]=ct("backdrop",{ref:o?.ref,elementType:a,externalForwardedProps:Z,shouldForwardComponentProp:!0,additionalProps:o,getSlotProps:Q=>R({...Q,onClick:G=>{Q?.onClick&&Q.onClick(G)}}),className:De(o?.className,F?.backdrop),ownerState:J});return!T&&!$&&(!V||_)?null:p.jsx(ex,{ref:H,container:c,disablePortal:x,children:p.jsxs(Y,{...te,children:[!k&&a?p.jsx(X,{...re}):null,p.jsx(cx,{disableEnforceFocus:b,disableAutoFocus:h,disableRestoreFocus:C,isEnabled:B,open:$,children:w.cloneElement(u,de)})]})})});function WO(e){return Fe("MuiPopover",e)}Re("MuiPopover",["root","paper"]);function _g(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.height/2:t==="bottom"&&(n=e.height),n}function Ig(e,t){let n=0;return typeof t=="number"?n=t:t==="center"?n=e.width/2:t==="right"&&(n=e.width),n}function Ag(e){return[e.horizontal,e.vertical].map(t=>typeof t=="number"?`${t}px`:t).join(" ")}function zi(e){return typeof e=="function"?e():e}const qO=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"]},WO,t)},YO=oe(px,{name:"MuiPopover",slot:"Root"})({}),fx=oe(za,{name:"MuiPopover",slot:"Paper"})({position:"absolute",overflowY:"auto",overflowX:"hidden",minWidth:16,minHeight:16,maxWidth:"calc(100% - 32px)",maxHeight:"calc(100% - 32px)",outline:0}),GO=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiPopover"}),{action:a,anchorEl:o,anchorOrigin:s={vertical:"top",horizontal:"left"},anchorPosition:i,anchorReference:l="anchorEl",children:u,className:c,container:d,elevation:m=8,marginThreshold:f=16,open:h,PaperProps:b={},slots:g={},slotProps:x={},transformOrigin:C={vertical:"top",horizontal:"left"},TransitionComponent:E,transitionDuration:k="auto",TransitionProps:T={},disableScrollLock:S=!1,...O}=r,M=w.useRef(),$={...r,anchorOrigin:s,anchorReference:l,elevation:m,marginThreshold:f,transformOrigin:C,TransitionComponent:E,transitionDuration:k,TransitionProps:T},P=qO($),L=w.useCallback(()=>{if(l==="anchorPosition")return i;const Q=zi(o),se=(Q&&Q.nodeType===1?Q:Ut(M.current).body).getBoundingClientRect();return{top:se.top+_g(se,s.vertical),left:se.left+Ig(se,s.horizontal)}},[o,s.horizontal,s.vertical,i,l]),v=w.useCallback(Q=>({vertical:_g(Q,C.vertical),horizontal:Ig(Q,C.horizontal)}),[C.horizontal,C.vertical]),N=w.useCallback(Q=>{const G={width:Q.offsetWidth,height:Q.offsetHeight},se=v(G);if(l==="none")return{top:null,left:null,transformOrigin:Ag(se)};const ee=L();let ne=ee.top-se.vertical,xe=ee.left-se.horizontal;const pe=ne+G.height,be=xe+G.width,le=$r(zi(o)),Pe=le.innerHeight-f,Te=le.innerWidth-f;if(f!==null&&ne<f){const ze=ne-f;ne-=ze,se.vertical+=ze}else if(f!==null&&pe>Pe){const ze=pe-Pe;ne-=ze,se.vertical+=ze}if(f!==null&&xe<f){const ze=xe-f;xe-=ze,se.horizontal+=ze}else if(be>Te){const ze=be-Te;xe-=ze,se.horizontal+=ze}return{top:`${Math.round(ne)}px`,left:`${Math.round(xe)}px`,transformOrigin:Ag(se)}},[o,l,L,v,f]),[I,A]=w.useState(h),R=w.useCallback(()=>{const Q=M.current;if(!Q)return;const G=N(Q);G.top!==null&&Q.style.setProperty("top",G.top),G.left!==null&&(Q.style.left=G.left),Q.style.transformOrigin=G.transformOrigin,A(!0)},[N]);w.useEffect(()=>(S&&window.addEventListener("scroll",R),()=>window.removeEventListener("scroll",R)),[o,S,R]);const W=()=>{R()},H=()=>{A(!1)};w.useEffect(()=>{h&&R()}),w.useImperativeHandle(a,()=>h?{updatePosition:()=>{R()}}:null,[h,R]),w.useEffect(()=>{if(!h)return;const Q=O0(()=>{R()}),G=$r(zi(o));return G.addEventListener("resize",Q),()=>{Q.clear(),G.removeEventListener("resize",Q)}},[o,h,R]);let B=k;const _={slots:{transition:E,...g},slotProps:{transition:T,paper:b,...x}},[V,J]=ct("transition",{elementType:Xs,externalForwardedProps:_,ownerState:$,getSlotProps:Q=>({...Q,onEntering:(G,se)=>{Q.onEntering?.(G,se),W()},onExited:G=>{Q.onExited?.(G),H()}}),additionalProps:{appear:!0,in:h}});k==="auto"&&!V.muiSupportAuto&&(B=void 0);const F=d||(o?Ut(zi(o)).body:void 0),[de,{slots:Z,slotProps:Y,...te}]=ct("root",{ref:n,elementType:YO,externalForwardedProps:{..._,...O},shouldForwardComponentProp:!0,additionalProps:{slots:{backdrop:g.backdrop},slotProps:{backdrop:L0(typeof x.backdrop=="function"?x.backdrop($):x.backdrop,{invisible:!0})},container:F,open:h},ownerState:$,className:De(P.root,c)}),[X,re]=ct("paper",{ref:M,className:P.paper,elementType:fx,externalForwardedProps:_,shouldForwardComponentProp:!0,additionalProps:{elevation:m,style:I?void 0:{opacity:0}},ownerState:$});return p.jsx(de,{...te,...!Io(de)&&{slots:Z,slotProps:Y,disableScrollLock:S},children:p.jsx(V,{...J,timeout:B,children:p.jsx(X,{...re,children:u})})})});function KO(e){return Fe("MuiMenu",e)}Re("MuiMenu",["root","paper","list"]);const QO={vertical:"top",horizontal:"right"},XO={vertical:"top",horizontal:"left"},ZO=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"],list:["list"]},KO,t)},JO=oe(GO,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiMenu",slot:"Root"})({}),eL=oe(fx,{name:"MuiMenu",slot:"Paper"})({maxHeight:"calc(100% - 96px)",WebkitOverflowScrolling:"touch"}),tL=oe(EO,{name:"MuiMenu",slot:"List"})({outline:0}),nL=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiMenu"}),{autoFocus:a=!0,children:o,className:s,disableAutoFocusItem:i=!1,MenuListProps:l={},onClose:u,open:c,PaperProps:d={},PopoverClasses:m,transitionDuration:f="auto",TransitionProps:{onEntering:h,...b}={},variant:g="selectedMenu",slots:x={},slotProps:C={},...E}=r,k=Qn(),T={...r,autoFocus:a,disableAutoFocusItem:i,MenuListProps:l,onEntering:h,PaperProps:d,transitionDuration:f,TransitionProps:b,variant:g},S=ZO(T),O=a&&!i&&c,M=w.useRef(null),$=(B,_)=>{M.current&&M.current.adjustStyleForScrollbar(B,{direction:k?"rtl":"ltr"}),h&&h(B,_)},P=B=>{B.key==="Tab"&&(B.preventDefault(),u&&u(B,"tabKeyDown"))};let L=-1;w.Children.map(o,(B,_)=>{w.isValidElement(B)&&(B.props.disabled||(g==="selectedMenu"&&B.props.selected||L===-1)&&(L=_))});const v={slots:x,slotProps:{list:l,transition:b,paper:d,...C}},N=at({elementType:x.root,externalSlotProps:C.root,ownerState:T,className:[S.root,s]}),[I,A]=ct("paper",{className:S.paper,elementType:eL,externalForwardedProps:v,shouldForwardComponentProp:!0,ownerState:T}),[R,W]=ct("list",{className:De(S.list,l.className),elementType:tL,shouldForwardComponentProp:!0,externalForwardedProps:v,getSlotProps:B=>({...B,onKeyDown:_=>{P(_),B.onKeyDown?.(_)}}),ownerState:T}),H=typeof v.slotProps.transition=="function"?v.slotProps.transition(T):v.slotProps.transition;return p.jsx(JO,{onClose:u,anchorOrigin:{vertical:"bottom",horizontal:k?"right":"left"},transformOrigin:k?QO:XO,slots:{root:x.root,paper:I,backdrop:x.backdrop,...x.transition&&{transition:x.transition}},slotProps:{root:N,paper:A,backdrop:typeof C.backdrop=="function"?C.backdrop(T):C.backdrop,transition:{...H,onEntering:(...B)=>{$(...B),H?.onEntering?.(...B)}}},open:c,ref:n,transitionDuration:f,ownerState:T,...E,classes:m,children:p.jsx(R,{actions:M,autoFocus:a&&(L===-1||i),autoFocusItem:O,variant:g,...W,children:o})})});function rL(e){return Fe("MuiNativeSelect",e)}const Qp=Re("MuiNativeSelect",["root","select","multiple","filled","outlined","standard","disabled","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]),aL=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,i={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Se(n)}`,o&&"iconOpen",r&&"disabled"]};return Le(i,rL,t)},mx=oe("select",{name:"MuiNativeSelect"})(({theme:e})=>({MozAppearance:"none",WebkitAppearance:"none",userSelect:"none",borderRadius:0,cursor:"pointer","&:focus":{borderRadius:0},[`&.${Qp.disabled}`]:{cursor:"default"},"&[multiple]":{height:"auto"},"&:not([multiple]) option, &:not([multiple]) optgroup":{backgroundColor:(e.vars||e).palette.background.paper},variants:[{props:({ownerState:t})=>t.variant!=="filled"&&t.variant!=="outlined",style:{"&&&":{paddingRight:24,minWidth:16}}},{props:{variant:"filled"},style:{"&&&":{paddingRight:32}}},{props:{variant:"outlined"},style:{borderRadius:(e.vars||e).shape.borderRadius,"&:focus":{borderRadius:(e.vars||e).shape.borderRadius},"&&&":{paddingRight:32}}}]})),oL=oe(mx,{name:"MuiNativeSelect",slot:"Select",shouldForwardProp:gn,overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.select,t[n.variant],n.error&&t.error,{[`&.${Qp.multiple}`]:t.multiple}]}})({}),hx=oe("svg",{name:"MuiNativeSelect"})(({theme:e})=>({position:"absolute",right:0,top:"calc(50% - .5em)",pointerEvents:"none",color:(e.vars||e).palette.action.active,[`&.${Qp.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:({ownerState:t})=>t.open,style:{transform:"rotate(180deg)"}},{props:{variant:"filled"},style:{right:7}},{props:{variant:"outlined"},style:{right:7}}]})),sL=oe(hx,{name:"MuiNativeSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})({}),iL=w.forwardRef(function(t,n){const{className:r,disabled:a,error:o,IconComponent:s,inputRef:i,variant:l="standard",...u}=t,c={...t,disabled:a,variant:l,error:o},d=aL(c);return p.jsxs(w.Fragment,{children:[p.jsx(oL,{ownerState:c,className:De(d.select,r),disabled:a,ref:i||n,...u}),t.multiple?null:p.jsx(sL,{as:s,ownerState:c,className:d.icon})]})});function gx(e){return Fe("MuiSelect",e)}const us=Re("MuiSelect",["root","select","multiple","filled","outlined","standard","disabled","focused","icon","iconOpen","iconFilled","iconOutlined","iconStandard","nativeInput","error"]);var Dg;const lL=oe(mx,{name:"MuiSelect",slot:"Select",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[{[`&.${us.select}`]:t.select},{[`&.${us.select}`]:t[n.variant]},{[`&.${us.error}`]:t.error},{[`&.${us.multiple}`]:t.multiple}]}})({[`&.${us.select}`]:{height:"auto",minHeight:"1.4375em",textOverflow:"ellipsis",whiteSpace:"nowrap",overflow:"hidden"}}),uL=oe(hx,{name:"MuiSelect",slot:"Icon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.icon,n.variant&&t[`icon${Se(n.variant)}`],n.open&&t.iconOpen]}})({}),cL=oe("input",{shouldForwardProp:e=>N0(e)&&e!=="classes",name:"MuiSelect",slot:"NativeInput"})({bottom:0,left:0,position:"absolute",opacity:0,pointerEvents:"none",width:"100%",boxSizing:"border-box"});function Pg(e,t){return typeof t=="object"&&t!==null?e===t:String(e)===String(t)}function dL(e){return e==null||typeof e=="string"&&!e.trim()}const pL=e=>{const{classes:t,variant:n,disabled:r,multiple:a,open:o,error:s}=e,i={select:["select",n,r&&"disabled",a&&"multiple",s&&"error"],icon:["icon",`icon${Se(n)}`,o&&"iconOpen",r&&"disabled"],nativeInput:["nativeInput"]};return Le(i,gx,t)},fL=w.forwardRef(function(t,n){const{"aria-describedby":r,"aria-label":a,autoFocus:o,autoWidth:s,children:i,className:l,defaultOpen:u,defaultValue:c,disabled:d,displayEmpty:m,error:f=!1,IconComponent:h,inputRef:b,labelId:g,MenuProps:x={},multiple:C,name:E,onBlur:k,onChange:T,onClose:S,onFocus:O,onOpen:M,open:$,readOnly:P,renderValue:L,required:v,SelectDisplayProps:N={},tabIndex:I,type:A,value:R,variant:W="standard",...H}=t,[B,_]=An({controlled:R,default:c,name:"Select"}),[V,J]=An({controlled:$,default:u,name:"Select"}),F=w.useRef(null),de=w.useRef(null),[Z,Y]=w.useState(null),{current:te}=w.useRef($!=null),[X,re]=w.useState(),Q=ot(n,b),G=w.useCallback(ie=>{de.current=ie,ie&&Y(ie)},[]),se=Z?.parentNode;w.useImperativeHandle(Q,()=>({focus:()=>{de.current.focus()},node:F.current,value:B}),[B]),w.useEffect(()=>{u&&V&&Z&&!te&&(re(s?null:se.clientWidth),de.current.focus())},[Z,s]),w.useEffect(()=>{o&&de.current.focus()},[o]),w.useEffect(()=>{if(!g)return;const ie=Ut(de.current).getElementById(g);if(ie){const ye=()=>{getSelection().isCollapsed&&de.current.focus()};return ie.addEventListener("click",ye),()=>{ie.removeEventListener("click",ye)}}},[g]);const ee=(ie,ye)=>{ie?M&&M(ye):S&&S(ye),te||(re(s?null:se.clientWidth),J(ie))},ne=ie=>{ie.button===0&&(ie.preventDefault(),de.current.focus(),ee(!0,ie))},xe=ie=>{ee(!1,ie)},pe=w.Children.toArray(i),be=ie=>{const ye=pe.find(ve=>ve.props.value===ie.target.value);ye!==void 0&&(_(ye.props.value),T&&T(ie,ye))},le=ie=>ye=>{let ve;if(ye.currentTarget.hasAttribute("tabindex")){if(C){ve=Array.isArray(B)?B.slice():[];const $e=B.indexOf(ie.props.value);$e===-1?ve.push(ie.props.value):ve.splice($e,1)}else ve=ie.props.value;if(ie.props.onClick&&ie.props.onClick(ye),B!==ve&&(_(ve),T)){const $e=ye.nativeEvent||ye,We=new $e.constructor($e.type,$e);Object.defineProperty(We,"target",{writable:!0,value:{value:ve,name:E}}),T(We,ie)}C||ee(!1,ye)}},Pe=ie=>{P||[" ","ArrowUp","ArrowDown","Enter"].includes(ie.key)&&(ie.preventDefault(),ee(!0,ie))},Te=Z!==null&&V,ze=ie=>{!Te&&k&&(Object.defineProperty(ie,"target",{writable:!0,value:{value:B,name:E}}),k(ie))};delete H["aria-invalid"];let we,Tt;const lt=[];let qe=!1;(Wl({value:B})||m)&&(L?we=L(B):qe=!0);const ue=pe.map(ie=>{if(!w.isValidElement(ie))return null;let ye;if(C){if(!Array.isArray(B))throw new Error(Lr(2));ye=B.some(ve=>Pg(ve,ie.props.value)),ye&&qe&&lt.push(ie.props.children)}else ye=Pg(B,ie.props.value),ye&&qe&&(Tt=ie.props.children);return w.cloneElement(ie,{"aria-selected":ye?"true":"false",onClick:le(ie),onKeyUp:ve=>{ve.key===" "&&ve.preventDefault(),ie.props.onKeyUp&&ie.props.onKeyUp(ve)},role:"option",selected:ye,value:void 0,"data-value":ie.props.value})});qe&&(C?lt.length===0?we=null:we=lt.reduce((ie,ye,ve)=>(ie.push(ye),ve<lt.length-1&&ie.push(", "),ie),[]):we=Tt);let Ee=X;!s&&te&&Z&&(Ee=se.clientWidth);let Me;typeof I<"u"?Me=I:Me=d?null:0;const He=N.id||(E?`mui-component-select-${E}`:void 0),Be={...t,variant:W,value:B,open:Te,error:f},Ne=pL(Be),Je={...x.PaperProps,...typeof x.slotProps?.paper=="function"?x.slotProps.paper(Be):x.slotProps?.paper},gt={...x.MenuListProps,...typeof x.slotProps?.list=="function"?x.slotProps.list(Be):x.slotProps?.list},ft=or();return p.jsxs(w.Fragment,{children:[p.jsx(lL,{as:"div",ref:G,tabIndex:Me,role:"combobox","aria-controls":Te?ft:void 0,"aria-disabled":d?"true":void 0,"aria-expanded":Te?"true":"false","aria-haspopup":"listbox","aria-label":a,"aria-labelledby":[g,He].filter(Boolean).join(" ")||void 0,"aria-describedby":r,"aria-required":v?"true":void 0,"aria-invalid":f?"true":void 0,onKeyDown:Pe,onMouseDown:d||P?null:ne,onBlur:ze,onFocus:O,...N,ownerState:Be,className:De(N.className,Ne.select,l),id:He,children:dL(we)?Dg||(Dg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):we}),p.jsx(cL,{"aria-invalid":f,value:Array.isArray(B)?B.join(","):B,name:E,ref:F,"aria-hidden":!0,onChange:be,tabIndex:-1,disabled:d,className:Ne.nativeInput,autoFocus:o,required:v,...H,ownerState:Be}),p.jsx(uL,{as:h,className:Ne.icon,ownerState:Be}),p.jsx(nL,{id:`menu-${E||""}`,anchorEl:se,open:Te,onClose:xe,anchorOrigin:{vertical:"bottom",horizontal:"center"},transformOrigin:{vertical:"top",horizontal:"center"},...x,slotProps:{...x.slotProps,list:{"aria-labelledby":g,role:"listbox","aria-multiselectable":C?"true":void 0,disableListWrap:!0,id:ft,...gt},paper:{...Je,style:{minWidth:Ee,...Je!=null?Je.style:null}}},children:ue})]})}),mL=e=>{const{classes:t,disableUnderline:n}=e,a=Le({root:["root",!n&&"underline"],input:["input"]},R9,t);return{...t,...a}},hL=oe(Du,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Iu(e,t),!n.disableUnderline&&t.underline]}})(tt(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline)),{position:"relative",variants:[{props:({ownerState:r})=>r.formControl,style:{"label + &":{marginTop:16}}},{props:({ownerState:r})=>!r.disableUnderline,style:{"&::after":{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"},[`&.${Jr.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${Jr.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${Jr.disabled}, .${Jr.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${Jr.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(mn()).map(([r])=>({props:{color:r,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}}))]}})),gL=oe(Pu,{name:"MuiInput",slot:"Input",overridesResolver:Au})({}),Xp=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInput"}),{disableUnderline:a=!1,components:o={},componentsProps:s,fullWidth:i=!1,inputComponent:l="input",multiline:u=!1,slotProps:c,slots:d={},type:m="text",...f}=r,h=mL(r),g={root:{ownerState:{disableUnderline:a}}},x=c??s?ln(c??s,g):g,C=d.root??o.Root??hL,E=d.input??o.Input??gL;return p.jsx(Kp,{slots:{root:C,input:E},slotProps:x,fullWidth:i,inputComponent:l,multiline:u,ref:n,type:m,...f,classes:h})});Xp.muiName="Input";const bL=e=>{const{classes:t,disableUnderline:n,startAdornment:r,endAdornment:a,size:o,hiddenLabel:s,multiline:i}=e,l={root:["root",!n&&"underline",r&&"adornedStart",a&&"adornedEnd",o==="small"&&`size${Se(o)}`,s&&"hiddenLabel",i&&"multiline"],input:["input"]},u=Le(l,N9,t);return{...t,...u}},yL=oe(Du,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiFilledInput",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[...Iu(e,t),!n.disableUnderline&&t.underline]}})(tt(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{position:"relative",backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${_n.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${_n.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[{props:({ownerState:s})=>!s.disableUnderline,style:{"&::after":{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"},[`&.${_n.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${_n.error}`]:{"&::before, &::after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${e.vars?e.alpha(e.vars.palette.common.onBackground,e.vars.opacity.inputUnderline):n}`,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(.${_n.disabled}, .${_n.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${_n.disabled}:before`]:{borderBottomStyle:"dotted"}}},...Object.entries(e.palette).filter(mn()).map(([s])=>({props:{disableUnderline:!1,color:s},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:({ownerState:s})=>s.startAdornment,style:{paddingLeft:12}},{props:({ownerState:s})=>s.endAdornment,style:{paddingRight:12}},{props:({ownerState:s})=>s.multiline,style:{padding:"25px 12px 8px"}},{props:({ownerState:s,size:i})=>s.multiline&&i==="small",style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:s})=>s.multiline&&s.hiddenLabel&&s.size==="small",style:{paddingTop:8,paddingBottom:9}}]}})),xL=oe(Pu,{name:"MuiFilledInput",slot:"Input",overridesResolver:Au})(tt(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({ownerState:t})=>t.hiddenLabel,style:{paddingTop:16,paddingBottom:17}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}},{props:({ownerState:t})=>t.hiddenLabel&&t.size==="small",style:{paddingTop:8,paddingBottom:9}},{props:({ownerState:t})=>t.multiline,style:{paddingTop:0,paddingBottom:0,paddingLeft:0,paddingRight:0}}]}))),Zp=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFilledInput"}),{disableUnderline:a=!1,components:o={},componentsProps:s,fullWidth:i=!1,hiddenLabel:l,inputComponent:u="input",multiline:c=!1,slotProps:d,slots:m={},type:f="text",...h}=r,b={...r,disableUnderline:a,fullWidth:i,inputComponent:u,multiline:c,type:f},g=bL(r),x={root:{ownerState:b},input:{ownerState:b}},C=d??s?ln(x,d??s):x,E=m.root??o.Root??yL,k=m.input??o.Input??xL;return p.jsx(Kp,{slots:{root:E,input:k},slotProps:C,fullWidth:i,inputComponent:u,multiline:c,ref:n,type:f,...h,classes:g})});Zp.muiName="Input";var Rg;const CL=oe("fieldset",{name:"MuiNotchedOutlined",shouldForwardProp:gn})({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%"}),EL=oe("legend",{name:"MuiNotchedOutlined",shouldForwardProp:gn})(tt(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:({ownerState:t})=>!t.withLabel,style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:({ownerState:t})=>t.withLabel,style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:({ownerState:t})=>t.withLabel&&t.notched,style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]})));function vL(e){const{children:t,classes:n,className:r,label:a,notched:o,...s}=e,i=a!=null&&a!=="",l={...e,notched:o,withLabel:i};return p.jsx(CL,{"aria-hidden":!0,className:r,ownerState:l,...s,children:p.jsx(EL,{ownerState:l,children:i?p.jsx("span",{children:a}):Rg||(Rg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"}))})})}const TL=e=>{const{classes:t}=e,r=Le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},M9,t);return{...t,...r}},kL=oe(Du,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiOutlinedInput",slot:"Root",overridesResolver:Iu})(tt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{position:"relative",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${$n.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${$n.notchedOutline}`]:{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}},[`&.${$n.focused} .${$n.notchedOutline}`]:{borderWidth:2},variants:[...Object.entries(e.palette).filter(mn()).map(([n])=>({props:{color:n},style:{[`&.${$n.focused} .${$n.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}})),{props:{},style:{[`&.${$n.error} .${$n.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},[`&.${$n.disabled} .${$n.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled}}},{props:({ownerState:n})=>n.startAdornment,style:{paddingLeft:14}},{props:({ownerState:n})=>n.endAdornment,style:{paddingRight:14}},{props:({ownerState:n})=>n.multiline,style:{padding:"16.5px 14px"}},{props:({ownerState:n,size:r})=>n.multiline&&r==="small",style:{padding:"8.5px 14px"}}]}})),SL=oe(vL,{name:"MuiOutlinedInput",slot:"NotchedOutline"})(tt(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{borderColor:e.vars?e.alpha(e.vars.palette.common.onBackground,.23):t}})),wL=oe(Pu,{name:"MuiOutlinedInput",slot:"Input",overridesResolver:Au})(tt(({theme:e})=>({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"}}},variants:[{props:{size:"small"},style:{padding:"8.5px 14px"}},{props:({ownerState:t})=>t.multiline,style:{padding:0}},{props:({ownerState:t})=>t.startAdornment,style:{paddingLeft:0}},{props:({ownerState:t})=>t.endAdornment,style:{paddingRight:0}}]}))),Jp=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiOutlinedInput"}),{components:a={},fullWidth:o=!1,inputComponent:s="input",label:i,multiline:l=!1,notched:u,slots:c={},slotProps:d={},type:m="text",...f}=r,h=TL(r),b=Jn(),g=Vo({props:r,muiFormControl:b,states:["color","disabled","error","focused","hiddenLabel","size","required"]}),x={...r,color:g.color||"primary",disabled:g.disabled,error:g.error,focused:g.focused,formControl:b,fullWidth:o,hiddenLabel:g.hiddenLabel,multiline:l,size:g.size,type:m},C=c.root??a.Root??kL,E=c.input??a.Input??wL,[k,T]=ct("notchedOutline",{elementType:SL,className:h.notchedOutline,shouldForwardComponentProp:!0,ownerState:x,externalForwardedProps:{slots:c,slotProps:d},additionalProps:{label:i!=null&&i!==""&&g.required?p.jsxs(w.Fragment,{children:[i," ","*"]}):i}});return p.jsx(Kp,{slots:{root:C,input:E},slotProps:d,renderSuffix:S=>p.jsx(k,{...T,notched:typeof u<"u"?u:!!(S.startAdornment||S.filled||S.focused)}),fullWidth:o,inputComponent:s,multiline:l,ref:n,type:m,...f,classes:{...h,notchedOutline:null}})});Jp.muiName="Input";const _L=e=>{const{classes:t}=e,r=Le({root:["root"]},gx,t);return{...t,...r}},ef={name:"MuiSelect",slot:"Root",shouldForwardProp:e=>gn(e)&&e!=="variant"},IL=oe(Xp,ef)(""),AL=oe(Jp,ef)(""),DL=oe(Zp,ef)(""),Gl=w.forwardRef(function(t,n){const r=Xe({name:"MuiSelect",props:t}),{autoWidth:a=!1,children:o,classes:s={},className:i,defaultOpen:l=!1,displayEmpty:u=!1,IconComponent:c=ax,id:d,input:m,inputProps:f,label:h,labelId:b,MenuProps:g,multiple:x=!1,native:C=!1,onClose:E,onOpen:k,open:T,renderValue:S,SelectDisplayProps:O,variant:M="outlined",...$}=r,P=C?iL:fL,L=Jn(),v=Vo({props:r,muiFormControl:L,states:["variant","error"]}),N=v.variant||M,I={...r,variant:N,classes:s},A=_L(I),{root:R,...W}=A,H=m||{standard:p.jsx(IL,{ownerState:I}),outlined:p.jsx(AL,{label:h,ownerState:I}),filled:p.jsx(DL,{ownerState:I})}[N],B=ot(n,zo(H));return p.jsx(w.Fragment,{children:w.cloneElement(H,{inputComponent:P,inputProps:{children:o,error:v.error,IconComponent:c,variant:N,type:void 0,multiple:x,...C?{id:d}:{autoWidth:a,defaultOpen:l,displayEmpty:u,labelId:b,MenuProps:g,onClose:E,onOpen:k,open:T,renderValue:S,SelectDisplayProps:{id:d,...O}},...f,classes:f?ln(W,f.classes):W,...m?m.props.inputProps:{}},...(x&&C||u)&&N==="outlined"?{notched:!0}:{},ref:B,className:De(H.props.className,i,A.root),...!m&&{variant:N},...$})})});Gl.muiName="Select";function PL(e){return Fe("MuiFormHelperText",e)}const Mg=Re("MuiFormHelperText",["root","error","disabled","sizeSmall","sizeMedium","contained","focused","filled","required"]);var Ng;const RL=e=>{const{classes:t,contained:n,size:r,disabled:a,error:o,filled:s,focused:i,required:l}=e,u={root:["root",a&&"disabled",o&&"error",r&&`size${Se(r)}`,n&&"contained",i&&"focused",s&&"filled",l&&"required"]};return Le(u,PL,t)},ML=oe("p",{name:"MuiFormHelperText",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.size&&t[`size${Se(n.size)}`],n.contained&&t.contained,n.filled&&t.filled]}})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,...e.typography.caption,textAlign:"left",marginTop:3,marginRight:0,marginBottom:0,marginLeft:0,[`&.${Mg.disabled}`]:{color:(e.vars||e).palette.text.disabled},[`&.${Mg.error}`]:{color:(e.vars||e).palette.error.main},variants:[{props:{size:"small"},style:{marginTop:4}},{props:({ownerState:t})=>t.contained,style:{marginLeft:14,marginRight:14}}]}))),bx=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiFormHelperText"}),{children:a,className:o,component:s="p",disabled:i,error:l,filled:u,focused:c,margin:d,required:m,variant:f,...h}=r,b=Jn(),g=Vo({props:r,muiFormControl:b,states:["variant","size","disabled","error","filled","focused","required"]}),x={...r,component:s,contained:g.variant==="filled"||g.variant==="outlined",variant:g.variant,size:g.size,disabled:g.disabled,error:g.error,filled:g.filled,focused:g.focused,required:g.required};delete x.ownerState;const C=RL(x);return p.jsx(ML,{as:s,className:De(C.root,o),ref:n,...h,ownerState:x,children:a===" "?Ng||(Ng=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):a})});function NL(e){return Fe("MuiTextField",e)}Re("MuiTextField",["root"]);const OL={standard:Xp,filled:Zp,outlined:Jp},LL=e=>{const{classes:t}=e;return Le({root:["root"]},NL,t)},FL=oe(ql,{name:"MuiTextField",slot:"Root"})({}),Qe=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiTextField"}),{autoComplete:a,autoFocus:o=!1,children:s,className:i,color:l="primary",defaultValue:u,disabled:c=!1,error:d=!1,FormHelperTextProps:m,fullWidth:f=!1,helperText:h,id:b,InputLabelProps:g,inputProps:x,InputProps:C,inputRef:E,label:k,maxRows:T,minRows:S,multiline:O=!1,name:M,onBlur:$,onChange:P,onFocus:L,placeholder:v,required:N=!1,rows:I,select:A=!1,SelectProps:R,slots:W={},slotProps:H={},type:B,value:_,variant:V="outlined",...J}=r,F={...r,autoFocus:o,color:l,disabled:c,error:d,fullWidth:f,multiline:O,required:N,select:A,variant:V},de=LL(F),Z=or(b),Y=h&&Z?`${Z}-helper-text`:void 0,te=k&&Z?`${Z}-label`:void 0,X=OL[V],re={slots:W,slotProps:{input:C,inputLabel:g,htmlInput:x,formHelperText:m,select:R,...H}},Q={},G=re.slotProps.inputLabel;V==="outlined"&&(G&&typeof G.shrink<"u"&&(Q.notched=G.shrink),Q.label=k),A&&((!R||!R.native)&&(Q.id=void 0),Q["aria-describedby"]=void 0);const[se,ee]=ct("root",{elementType:FL,shouldForwardComponentProp:!0,externalForwardedProps:{...re,...J},ownerState:F,className:De(de.root,i),ref:n,additionalProps:{disabled:c,error:d,fullWidth:f,required:N,color:l,variant:V}}),[ne,xe]=ct("input",{elementType:X,externalForwardedProps:re,additionalProps:Q,ownerState:F}),[pe,be]=ct("inputLabel",{elementType:Yl,externalForwardedProps:re,ownerState:F}),[le,Pe]=ct("htmlInput",{elementType:"input",externalForwardedProps:re,ownerState:F}),[Te,ze]=ct("formHelperText",{elementType:bx,externalForwardedProps:re,ownerState:F}),[we,Tt]=ct("select",{elementType:Gl,externalForwardedProps:re,ownerState:F}),lt=p.jsx(ne,{"aria-describedby":Y,autoComplete:a,autoFocus:o,defaultValue:u,fullWidth:f,multiline:O,name:M,rows:I,maxRows:T,minRows:S,type:B,value:_,id:Z,inputRef:E,onBlur:$,onChange:P,onFocus:L,placeholder:v,inputProps:Pe,slots:{input:W.htmlInput?le:void 0},...xe});return p.jsxs(se,{...ee,children:[k!=null&&k!==""&&p.jsx(pe,{htmlFor:Z,id:te,...be,children:k}),A?p.jsx(we,{"aria-describedby":Y,id:Z,labelId:te,value:_,input:lt,...Tt,children:s}):lt,h&&p.jsx(Te,{id:Y,...ze,children:h})]})});var sl={exports:{}},$L=sl.exports,Og;function BL(){return Og||(Og=1,(function(e,t){(function(n,r){e.exports=r()})($L,(function(){var n=1e3,r=6e4,a=36e5,o="millisecond",s="second",i="minute",l="hour",u="day",c="week",d="month",m="quarter",f="year",h="date",b="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,x=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,C={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(I){var A=["th","st","nd","rd"],R=I%100;return"["+I+(A[(R-20)%10]||A[R]||A[0])+"]"}},E=function(I,A,R){var W=String(I);return!W||W.length>=A?I:""+Array(A+1-W.length).join(R)+I},k={s:E,z:function(I){var A=-I.utcOffset(),R=Math.abs(A),W=Math.floor(R/60),H=R%60;return(A<=0?"+":"-")+E(W,2,"0")+":"+E(H,2,"0")},m:function I(A,R){if(A.date()<R.date())return-I(R,A);var W=12*(R.year()-A.year())+(R.month()-A.month()),H=A.clone().add(W,d),B=R-H<0,_=A.clone().add(W+(B?-1:1),d);return+(-(W+(R-H)/(B?H-_:_-H))||0)},a:function(I){return I<0?Math.ceil(I)||0:Math.floor(I)},p:function(I){return{M:d,y:f,w:c,d:u,D:h,h:l,m:i,s,ms:o,Q:m}[I]||String(I||"").toLowerCase().replace(/s$/,"")},u:function(I){return I===void 0}},T="en",S={};S[T]=C;var O="$isDayjsObject",M=function(I){return I instanceof v||!(!I||!I[O])},$=function I(A,R,W){var H;if(!A)return T;if(typeof A=="string"){var B=A.toLowerCase();S[B]&&(H=B),R&&(S[B]=R,H=B);var _=A.split("-");if(!H&&_.length>1)return I(_[0])}else{var V=A.name;S[V]=A,H=V}return!W&&H&&(T=H),H||!W&&T},P=function(I,A){if(M(I))return I.clone();var R=typeof A=="object"?A:{};return R.date=I,R.args=arguments,new v(R)},L=k;L.l=$,L.i=M,L.w=function(I,A){return P(I,{locale:A.$L,utc:A.$u,x:A.$x,$offset:A.$offset})};var v=(function(){function I(R){this.$L=$(R.locale,null,!0),this.parse(R),this.$x=this.$x||R.x||{},this[O]=!0}var A=I.prototype;return A.parse=function(R){this.$d=(function(W){var H=W.date,B=W.utc;if(H===null)return new Date(NaN);if(L.u(H))return new Date;if(H instanceof Date)return new Date(H);if(typeof H=="string"&&!/Z$/i.test(H)){var _=H.match(g);if(_){var V=_[2]-1||0,J=(_[7]||"0").substring(0,3);return B?new Date(Date.UTC(_[1],V,_[3]||1,_[4]||0,_[5]||0,_[6]||0,J)):new Date(_[1],V,_[3]||1,_[4]||0,_[5]||0,_[6]||0,J)}}return new Date(H)})(R),this.init()},A.init=function(){var R=this.$d;this.$y=R.getFullYear(),this.$M=R.getMonth(),this.$D=R.getDate(),this.$W=R.getDay(),this.$H=R.getHours(),this.$m=R.getMinutes(),this.$s=R.getSeconds(),this.$ms=R.getMilliseconds()},A.$utils=function(){return L},A.isValid=function(){return this.$d.toString()!==b},A.isSame=function(R,W){var H=P(R);return this.startOf(W)<=H&&H<=this.endOf(W)},A.isAfter=function(R,W){return P(R)<this.startOf(W)},A.isBefore=function(R,W){return this.endOf(W)<P(R)},A.$g=function(R,W,H){return L.u(R)?this[W]:this.set(H,R)},A.unix=function(){return Math.floor(this.valueOf()/1e3)},A.valueOf=function(){return this.$d.getTime()},A.startOf=function(R,W){var H=this,B=!!L.u(W)||W,_=L.p(R),V=function(re,Q){var G=L.w(H.$u?Date.UTC(H.$y,Q,re):new Date(H.$y,Q,re),H);return B?G:G.endOf(u)},J=function(re,Q){return L.w(H.toDate()[re].apply(H.toDate("s"),(B?[0,0,0,0]:[23,59,59,999]).slice(Q)),H)},F=this.$W,de=this.$M,Z=this.$D,Y="set"+(this.$u?"UTC":"");switch(_){case f:return B?V(1,0):V(31,11);case d:return B?V(1,de):V(0,de+1);case c:var te=this.$locale().weekStart||0,X=(F<te?F+7:F)-te;return V(B?Z-X:Z+(6-X),de);case u:case h:return J(Y+"Hours",0);case l:return J(Y+"Minutes",1);case i:return J(Y+"Seconds",2);case s:return J(Y+"Milliseconds",3);default:return this.clone()}},A.endOf=function(R){return this.startOf(R,!1)},A.$set=function(R,W){var H,B=L.p(R),_="set"+(this.$u?"UTC":""),V=(H={},H[u]=_+"Date",H[h]=_+"Date",H[d]=_+"Month",H[f]=_+"FullYear",H[l]=_+"Hours",H[i]=_+"Minutes",H[s]=_+"Seconds",H[o]=_+"Milliseconds",H)[B],J=B===u?this.$D+(W-this.$W):W;if(B===d||B===f){var F=this.clone().set(h,1);F.$d[V](J),F.init(),this.$d=F.set(h,Math.min(this.$D,F.daysInMonth())).$d}else V&&this.$d[V](J);return this.init(),this},A.set=function(R,W){return this.clone().$set(R,W)},A.get=function(R){return this[L.p(R)]()},A.add=function(R,W){var H,B=this;R=Number(R);var _=L.p(W),V=function(de){var Z=P(B);return L.w(Z.date(Z.date()+Math.round(de*R)),B)};if(_===d)return this.set(d,this.$M+R);if(_===f)return this.set(f,this.$y+R);if(_===u)return V(1);if(_===c)return V(7);var J=(H={},H[i]=r,H[l]=a,H[s]=n,H)[_]||1,F=this.$d.getTime()+R*J;return L.w(F,this)},A.subtract=function(R,W){return this.add(-1*R,W)},A.format=function(R){var W=this,H=this.$locale();if(!this.isValid())return H.invalidDate||b;var B=R||"YYYY-MM-DDTHH:mm:ssZ",_=L.z(this),V=this.$H,J=this.$m,F=this.$M,de=H.weekdays,Z=H.months,Y=H.meridiem,te=function(Q,G,se,ee){return Q&&(Q[G]||Q(W,B))||se[G].slice(0,ee)},X=function(Q){return L.s(V%12||12,Q,"0")},re=Y||function(Q,G,se){var ee=Q<12?"AM":"PM";return se?ee.toLowerCase():ee};return B.replace(x,(function(Q,G){return G||(function(se){switch(se){case"YY":return String(W.$y).slice(-2);case"YYYY":return L.s(W.$y,4,"0");case"M":return F+1;case"MM":return L.s(F+1,2,"0");case"MMM":return te(H.monthsShort,F,Z,3);case"MMMM":return te(Z,F);case"D":return W.$D;case"DD":return L.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return te(H.weekdaysMin,W.$W,de,2);case"ddd":return te(H.weekdaysShort,W.$W,de,3);case"dddd":return de[W.$W];case"H":return String(V);case"HH":return L.s(V,2,"0");case"h":return X(1);case"hh":return X(2);case"a":return re(V,J,!0);case"A":return re(V,J,!1);case"m":return String(J);case"mm":return L.s(J,2,"0");case"s":return String(W.$s);case"ss":return L.s(W.$s,2,"0");case"SSS":return L.s(W.$ms,3,"0");case"Z":return _}return null})(Q)||_.replace(":","")}))},A.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},A.diff=function(R,W,H){var B,_=this,V=L.p(W),J=P(R),F=(J.utcOffset()-this.utcOffset())*r,de=this-J,Z=function(){return L.m(_,J)};switch(V){case f:B=Z()/12;break;case d:B=Z();break;case m:B=Z()/3;break;case c:B=(de-F)/6048e5;break;case u:B=(de-F)/864e5;break;case l:B=de/a;break;case i:B=de/r;break;case s:B=de/n;break;default:B=de}return H?B:L.a(B)},A.daysInMonth=function(){return this.endOf(d).$D},A.$locale=function(){return S[this.$L]},A.locale=function(R,W){if(!R)return this.$L;var H=this.clone(),B=$(R,W,!0);return B&&(H.$L=B),H},A.clone=function(){return L.w(this.$d,this)},A.toDate=function(){return new Date(this.valueOf())},A.toJSON=function(){return this.isValid()?this.toISOString():null},A.toISOString=function(){return this.$d.toISOString()},A.toString=function(){return this.$d.toUTCString()},I})(),N=v.prototype;return P.prototype=N,[["$ms",o],["$s",s],["$m",i],["$H",l],["$W",u],["$M",d],["$y",f],["$D",h]].forEach((function(I){N[I[1]]=function(A){return this.$g(A,I[0],I[1])}})),P.extend=function(I,A){return I.$i||(I(A,v,P),I.$i=!0),P},P.locale=$,P.isDayjs=M,P.unix=function(I){return P(1e3*I)},P.en=S[T],P.Ls=S,P.p={},P}))})(sl)),sl.exports}var jL=BL();const Ct=ar(jL);var il={exports:{}},HL=il.exports,Lg;function UL(){return Lg||(Lg=1,(function(e,t){(function(n,r){e.exports=r()})(HL,(function(){var n="week",r="year";return function(a,o,s){var i=o.prototype;i.week=function(l){if(l===void 0&&(l=null),l!==null)return this.add(7*(l-this.week()),"day");var u=this.$locale().yearStart||1;if(this.month()===11&&this.date()>25){var c=s(this).startOf(r).add(1,r).date(u),d=s(this).endOf(n);if(c.isBefore(d))return 1}var m=s(this).startOf(r).date(u).startOf(n).subtract(1,"millisecond"),f=this.diff(m,n,!0);return f<0?s(this).startOf("week").week():Math.ceil(f)},i.weeks=function(l){return l===void 0&&(l=null),this.week(l)}}}))})(il)),il.exports}var zL=UL();const VL=ar(zL);var ll={exports:{}},WL=ll.exports,Fg;function qL(){return Fg||(Fg=1,(function(e,t){(function(n,r){e.exports=r()})(WL,(function(){var n={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"},r=/(\[[^[]*\])|([-_:/.,()\s]+)|(A|a|Q|YYYY|YY?|ww?|MM?M?M?|Do|DD?|hh?|HH?|mm?|ss?|S{1,3}|z|ZZ?)/g,a=/\d/,o=/\d\d/,s=/\d\d?/,i=/\d*[^-_:/,()\s\d]+/,l={},u=function(g){return(g=+g)+(g>68?1900:2e3)},c=function(g){return function(x){this[g]=+x}},d=[/[+-]\d\d:?(\d\d)?|Z/,function(g){(this.zone||(this.zone={})).offset=(function(x){if(!x||x==="Z")return 0;var C=x.match(/([+-]|\d\d)/g),E=60*C[1]+(+C[2]||0);return E===0?0:C[0]==="+"?-E:E})(g)}],m=function(g){var x=l[g];return x&&(x.indexOf?x:x.s.concat(x.f))},f=function(g,x){var C,E=l.meridiem;if(E){for(var k=1;k<=24;k+=1)if(g.indexOf(E(k,0,x))>-1){C=k>12;break}}else C=g===(x?"pm":"PM");return C},h={A:[i,function(g){this.afternoon=f(g,!1)}],a:[i,function(g){this.afternoon=f(g,!0)}],Q:[a,function(g){this.month=3*(g-1)+1}],S:[a,function(g){this.milliseconds=100*+g}],SS:[o,function(g){this.milliseconds=10*+g}],SSS:[/\d{3}/,function(g){this.milliseconds=+g}],s:[s,c("seconds")],ss:[s,c("seconds")],m:[s,c("minutes")],mm:[s,c("minutes")],H:[s,c("hours")],h:[s,c("hours")],HH:[s,c("hours")],hh:[s,c("hours")],D:[s,c("day")],DD:[o,c("day")],Do:[i,function(g){var x=l.ordinal,C=g.match(/\d+/);if(this.day=C[0],x)for(var E=1;E<=31;E+=1)x(E).replace(/\[|\]/g,"")===g&&(this.day=E)}],w:[s,c("week")],ww:[o,c("week")],M:[s,c("month")],MM:[o,c("month")],MMM:[i,function(g){var x=m("months"),C=(m("monthsShort")||x.map((function(E){return E.slice(0,3)}))).indexOf(g)+1;if(C<1)throw new Error;this.month=C%12||C}],MMMM:[i,function(g){var x=m("months").indexOf(g)+1;if(x<1)throw new Error;this.month=x%12||x}],Y:[/[+-]?\d+/,c("year")],YY:[o,function(g){this.year=u(g)}],YYYY:[/\d{4}/,c("year")],Z:d,ZZ:d};function b(g){var x,C;x=g,C=l&&l.formats;for(var E=(g=x.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(P,L,v){var N=v&&v.toUpperCase();return L||C[v]||n[v]||C[N].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(I,A,R){return A||R.slice(1)}))}))).match(r),k=E.length,T=0;T<k;T+=1){var S=E[T],O=h[S],M=O&&O[0],$=O&&O[1];E[T]=$?{regex:M,parser:$}:S.replace(/^\[|\]$/g,"")}return function(P){for(var L={},v=0,N=0;v<k;v+=1){var I=E[v];if(typeof I=="string")N+=I.length;else{var A=I.regex,R=I.parser,W=P.slice(N),H=A.exec(W)[0];R.call(L,H),P=P.replace(H,"")}}return(function(B){var _=B.afternoon;if(_!==void 0){var V=B.hours;_?V<12&&(B.hours+=12):V===12&&(B.hours=0),delete B.afternoon}})(L),L}}return function(g,x,C){C.p.customParseFormat=!0,g&&g.parseTwoDigitYear&&(u=g.parseTwoDigitYear);var E=x.prototype,k=E.parse;E.parse=function(T){var S=T.date,O=T.utc,M=T.args;this.$u=O;var $=M[1];if(typeof $=="string"){var P=M[2]===!0,L=M[3]===!0,v=P||L,N=M[2];L&&(N=M[2]),l=this.$locale(),!P&&N&&(l=C.Ls[N]),this.$d=(function(W,H,B,_){try{if(["x","X"].indexOf(H)>-1)return new Date((H==="X"?1e3:1)*W);var V=b(H)(W),J=V.year,F=V.month,de=V.day,Z=V.hours,Y=V.minutes,te=V.seconds,X=V.milliseconds,re=V.zone,Q=V.week,G=new Date,se=de||(J||F?1:G.getDate()),ee=J||G.getFullYear(),ne=0;J&&!F||(ne=F>0?F-1:G.getMonth());var xe,pe=Z||0,be=Y||0,le=te||0,Pe=X||0;return re?new Date(Date.UTC(ee,ne,se,pe,be,le,Pe+60*re.offset*1e3)):B?new Date(Date.UTC(ee,ne,se,pe,be,le,Pe)):(xe=new Date(ee,ne,se,pe,be,le,Pe),Q&&(xe=_(xe).week(Q).toDate()),xe)}catch{return new Date("")}})(S,$,O,C),this.init(),N&&N!==!0&&(this.$L=this.locale(N).$L),v&&S!=this.format($)&&(this.$d=new Date("")),l={}}else if($ instanceof Array)for(var I=$.length,A=1;A<=I;A+=1){M[1]=$[A-1];var R=C.apply(this,M);if(R.isValid()){this.$d=R.$d,this.$L=R.$L,this.init();break}A===I&&(this.$d=new Date(""))}else k.call(this,T)}}}))})(ll)),ll.exports}var YL=qL();const GL=ar(YL);var ul={exports:{}},KL=ul.exports,$g;function QL(){return $g||($g=1,(function(e,t){(function(n,r){e.exports=r()})(KL,(function(){var n={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"};return function(r,a,o){var s=a.prototype,i=s.format;o.en.formats=n,s.format=function(l){l===void 0&&(l="YYYY-MM-DDTHH:mm:ssZ");var u=this.$locale().formats,c=(function(d,m){return d.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(function(f,h,b){var g=b&&b.toUpperCase();return h||m[b]||n[b]||m[g].replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(function(x,C,E){return C||E.slice(1)}))}))})(l,u===void 0?{}:u);return i.call(this,c)}}}))})(ul)),ul.exports}var XL=QL();const ZL=ar(XL);var cl={exports:{}},JL=cl.exports,Bg;function eF(){return Bg||(Bg=1,(function(e,t){(function(n,r){e.exports=r()})(JL,(function(){return function(n,r,a){r.prototype.isBetween=function(o,s,i,l){var u=a(o),c=a(s),d=(l=l||"()")[0]==="(",m=l[1]===")";return(d?this.isAfter(u,i):!this.isBefore(u,i))&&(m?this.isBefore(c,i):!this.isAfter(c,i))||(d?this.isBefore(u,i):!this.isAfter(u,i))&&(m?this.isAfter(c,i):!this.isBefore(c,i))}}}))})(cl)),cl.exports}var tF=eF();const nF=ar(tF);var dl={exports:{}},rF=dl.exports,jg;function aF(){return jg||(jg=1,(function(e,t){(function(n,r){e.exports=r()})(rF,(function(){return function(n,r){var a=r.prototype,o=a.format;a.format=function(s){var i=this,l=this.$locale();if(!this.isValid())return o.bind(this)(s);var u=this.$utils(),c=(s||"YYYY-MM-DDTHH:mm:ssZ").replace(/\[([^\]]+)]|Q|wo|ww|w|WW|W|zzz|z|gggg|GGGG|Do|X|x|k{1,2}|S/g,(function(d){switch(d){case"Q":return Math.ceil((i.$M+1)/3);case"Do":return l.ordinal(i.$D);case"gggg":return i.weekYear();case"GGGG":return i.isoWeekYear();case"wo":return l.ordinal(i.week(),"W");case"w":case"ww":return u.s(i.week(),d==="w"?1:2,"0");case"W":case"WW":return u.s(i.isoWeek(),d==="W"?1:2,"0");case"k":case"kk":return u.s(String(i.$H===0?24:i.$H),d==="k"?1:2,"0");case"X":return Math.floor(i.$d.getTime()/1e3);case"x":return i.$d.getTime();case"z":return"["+i.offsetName()+"]";case"zzz":return"["+i.offsetName("long")+"]";default:return d}}));return o.bind(this)(c)}}}))})(dl)),dl.exports}var oF=aF();const sF=ar(oF);Ct.extend(ZL);Ct.extend(VL);Ct.extend(nF);Ct.extend(sF);const iF={YY:"year",YYYY:{sectionType:"year",contentType:"digit",maxLength:4},M:{sectionType:"month",contentType:"digit",maxLength:2},MM:"month",MMM:{sectionType:"month",contentType:"letter"},MMMM:{sectionType:"month",contentType:"letter"},D:{sectionType:"day",contentType:"digit",maxLength:2},DD:"day",Do:{sectionType:"day",contentType:"digit-with-letter"},d:{sectionType:"weekDay",contentType:"digit",maxLength:2},dd:{sectionType:"weekDay",contentType:"letter"},ddd:{sectionType:"weekDay",contentType:"letter"},dddd:{sectionType:"weekDay",contentType:"letter"},A:"meridiem",a:"meridiem",H:{sectionType:"hours",contentType:"digit",maxLength:2},HH:"hours",h:{sectionType:"hours",contentType:"digit",maxLength:2},hh:"hours",m:{sectionType:"minutes",contentType:"digit",maxLength:2},mm:"minutes",s:{sectionType:"seconds",contentType:"digit",maxLength:2},ss:"seconds"},lF={year:"YYYY",month:"MMMM",monthShort:"MMM",dayOfMonth:"D",dayOfMonthFull:"Do",weekday:"dddd",weekdayShort:"dd",hours24h:"HH",hours12h:"hh",meridiem:"A",minutes:"mm",seconds:"ss",fullDate:"ll",keyboardDate:"L",shortDate:"MMM D",normalDate:"D MMMM",normalDateWithWeekday:"ddd, MMM D",fullTime:"LT",fullTime12h:"hh:mm A",fullTime24h:"HH:mm",keyboardDateTime:"L LT",keyboardDateTime12h:"L hh:mm A",keyboardDateTime24h:"L HH:mm"},Fc=["Missing UTC plugin","To be able to use UTC or timezones, you have to enable the `utc` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-utc"].join(`
206
- `),Hg=["Missing timezone plugin","To be able to use timezones, you have to enable both the `utc` and the `timezone` plugin","Find more information on https://mui.com/x/react-date-pickers/timezone/#day-js-and-timezone"].join(`
207
- `),uF=(e,t)=>t?(...n)=>e(...n).locale(t):e;class Ug{constructor({locale:t,formats:n}={}){this.isMUIAdapter=!0,this.isTimezoneCompatible=!0,this.lib="dayjs",this.dayjs=void 0,this.locale=void 0,this.formats=void 0,this.escapedCharacters={start:"[",end:"]"},this.formatTokenMap=iF,this.setLocaleToValue=r=>{const a=this.getCurrentLocaleCode();return a===r.locale()?r:r.locale(a)},this.hasUTCPlugin=()=>typeof Ct.utc<"u",this.hasTimezonePlugin=()=>typeof Ct.tz<"u",this.isSame=(r,a,o)=>{const s=this.setTimezone(a,this.getTimezone(r));return r.format(o)===s.format(o)},this.cleanTimezone=r=>{switch(r){case"default":return;case"system":return Ct.tz.guess();default:return r}},this.createSystemDate=r=>{if(this.hasUTCPlugin()&&this.hasTimezonePlugin()){const a=Ct.tz.guess();return a!=="UTC"?Ct.tz(r,a):Ct(r)}return Ct(r)},this.createUTCDate=r=>{if(!this.hasUTCPlugin())throw new Error(Fc);return Ct.utc(r)},this.createTZDate=(r,a)=>{if(!this.hasUTCPlugin())throw new Error(Fc);if(!this.hasTimezonePlugin())throw new Error(Hg);const o=r!==void 0&&!r.endsWith("Z");return Ct(r).tz(this.cleanTimezone(a),o)},this.getLocaleFormats=()=>{const r=Ct.Ls,a=this.locale||"en";let o=r[a];return o===void 0&&(o=r.en),o.formats},this.adjustOffset=r=>{if(!this.hasTimezonePlugin())return r;const a=this.getTimezone(r);if(a!=="UTC"){const o=r.tz(this.cleanTimezone(a),!0);if(o.$offset===(r.$offset??0))return r;r.$offset=o.$offset}return r},this.date=(r,a="default")=>{if(r===null)return null;let o;return a==="UTC"?o=this.createUTCDate(r):a==="system"||a==="default"&&!this.hasTimezonePlugin()?o=this.createSystemDate(r):o=this.createTZDate(r,a),this.locale===void 0?o:o.locale(this.locale)},this.getInvalidDate=()=>Ct(new Date("Invalid date")),this.getTimezone=r=>{if(this.hasTimezonePlugin()){const a=r.$x?.$timezone;if(a)return a}return this.hasUTCPlugin()&&r.isUTC()?"UTC":"system"},this.setTimezone=(r,a)=>{if(this.getTimezone(r)===a)return r;if(a==="UTC"){if(!this.hasUTCPlugin())throw new Error(Fc);return r.utc()}if(a==="system")return r.local();if(!this.hasTimezonePlugin()){if(a==="default")return r;throw new Error(Hg)}return Ct.tz(r,this.cleanTimezone(a))},this.toJsDate=r=>r.toDate(),this.parse=(r,a)=>r===""?null:this.dayjs(r,a,this.locale,!0),this.getCurrentLocaleCode=()=>this.locale||"en",this.is12HourCycleInCurrentLocale=()=>/A|a/.test(this.getLocaleFormats().LT||""),this.expandFormat=r=>{const a=this.getLocaleFormats(),o=s=>s.replace(/(\[[^\]]+])|(MMMM|MM|DD|dddd)/g,(i,l,u)=>l||u.slice(1));return r.replace(/(\[[^\]]+])|(LTS?|l{1,4}|L{1,4})/g,(s,i,l)=>{const u=l&&l.toUpperCase();return i||a[l]||o(a[u])})},this.isValid=r=>r==null?!1:r.isValid(),this.format=(r,a)=>this.formatByString(r,this.formats[a]),this.formatByString=(r,a)=>this.dayjs(r).format(a),this.formatNumber=r=>r,this.isEqual=(r,a)=>r===null&&a===null?!0:r===null||a===null?!1:r.toDate().getTime()===a.toDate().getTime(),this.isSameYear=(r,a)=>this.isSame(r,a,"YYYY"),this.isSameMonth=(r,a)=>this.isSame(r,a,"YYYY-MM"),this.isSameDay=(r,a)=>this.isSame(r,a,"YYYY-MM-DD"),this.isSameHour=(r,a)=>r.isSame(a,"hour"),this.isAfter=(r,a)=>r>a,this.isAfterYear=(r,a)=>this.hasUTCPlugin()?!this.isSameYear(r,a)&&r.utc()>a.utc():r.isAfter(a,"year"),this.isAfterDay=(r,a)=>this.hasUTCPlugin()?!this.isSameDay(r,a)&&r.utc()>a.utc():r.isAfter(a,"day"),this.isBefore=(r,a)=>r<a,this.isBeforeYear=(r,a)=>this.hasUTCPlugin()?!this.isSameYear(r,a)&&r.utc()<a.utc():r.isBefore(a,"year"),this.isBeforeDay=(r,a)=>this.hasUTCPlugin()?!this.isSameDay(r,a)&&r.utc()<a.utc():r.isBefore(a,"day"),this.isWithinRange=(r,[a,o])=>r>=a&&r<=o,this.startOfYear=r=>this.adjustOffset(r.startOf("year")),this.startOfMonth=r=>this.adjustOffset(r.startOf("month")),this.startOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).startOf("week")),this.startOfDay=r=>this.adjustOffset(r.startOf("day")),this.endOfYear=r=>this.adjustOffset(r.endOf("year")),this.endOfMonth=r=>this.adjustOffset(r.endOf("month")),this.endOfWeek=r=>this.adjustOffset(this.setLocaleToValue(r).endOf("week")),this.endOfDay=r=>this.adjustOffset(r.endOf("day")),this.addYears=(r,a)=>this.adjustOffset(a<0?r.subtract(Math.abs(a),"year"):r.add(a,"year")),this.addMonths=(r,a)=>this.adjustOffset(a<0?r.subtract(Math.abs(a),"month"):r.add(a,"month")),this.addWeeks=(r,a)=>this.adjustOffset(a<0?r.subtract(Math.abs(a),"week"):r.add(a,"week")),this.addDays=(r,a)=>this.adjustOffset(a<0?r.subtract(Math.abs(a),"day"):r.add(a,"day")),this.addHours=(r,a)=>this.adjustOffset(a<0?r.subtract(Math.abs(a),"hour"):r.add(a,"hour")),this.addMinutes=(r,a)=>this.adjustOffset(a<0?r.subtract(Math.abs(a),"minute"):r.add(a,"minute")),this.addSeconds=(r,a)=>this.adjustOffset(a<0?r.subtract(Math.abs(a),"second"):r.add(a,"second")),this.getYear=r=>r.year(),this.getMonth=r=>r.month(),this.getDate=r=>r.date(),this.getHours=r=>r.hour(),this.getMinutes=r=>r.minute(),this.getSeconds=r=>r.second(),this.getMilliseconds=r=>r.millisecond(),this.setYear=(r,a)=>this.adjustOffset(r.set("year",a)),this.setMonth=(r,a)=>this.adjustOffset(r.set("month",a)),this.setDate=(r,a)=>this.adjustOffset(r.set("date",a)),this.setHours=(r,a)=>this.adjustOffset(r.set("hour",a)),this.setMinutes=(r,a)=>this.adjustOffset(r.set("minute",a)),this.setSeconds=(r,a)=>this.adjustOffset(r.set("second",a)),this.setMilliseconds=(r,a)=>this.adjustOffset(r.set("millisecond",a)),this.getDaysInMonth=r=>r.daysInMonth(),this.getWeekArray=r=>{const a=this.startOfWeek(this.startOfMonth(r)),o=this.endOfWeek(this.endOfMonth(r));let s=0,i=a;const l=[];for(;i<o;){const u=Math.floor(s/7);l[u]=l[u]||[],l[u].push(i),i=this.addDays(i,1),s+=1}return l},this.getWeekNumber=r=>r.week(),this.getYearRange=([r,a])=>{const o=this.startOfYear(r),s=this.endOfYear(a),i=[];let l=o;for(;this.isBefore(l,s);)i.push(l),l=this.addYears(l,1);return i},this.dayjs=uF(Ct,t),this.locale=t,this.formats=U({},lF,n),Ct.extend(GL)}getDayOfWeek(t){return t.day()+1}}function cF(e,t,n,r,a){const[o,s]=w.useState(()=>a&&n?n(e).matches:r?r(e).matches:t);return qt(()=>{if(!n)return;const i=n(e),l=()=>{s(i.matches)};return l(),i.addEventListener("change",l),()=>{i.removeEventListener("change",l)}},[e,n]),o}const dF={...w},yx=dF.useSyncExternalStore;function pF(e,t,n,r,a){const o=w.useCallback(()=>t,[t]),s=w.useMemo(()=>{if(a&&n)return()=>n(e).matches;if(r!==null){const{matches:c}=r(e);return()=>c}return o},[o,e,r,a,n]),[i,l]=w.useMemo(()=>{if(n===null)return[o,()=>()=>{}];const c=n(e);return[()=>c.matches,d=>(c.addEventListener("change",d),()=>{c.removeEventListener("change",d)})]},[o,n,e]);return yx(l,i,s)}function xx(e={}){const{themeId:t}=e;return function(r,a={}){let o=_0();o&&t&&(o=o[t]||o);const s=typeof window<"u"&&typeof window.matchMedia<"u",{defaultMatches:i=!1,matchMedia:l=s?window.matchMedia:null,ssrMatchMedia:u=null,noSsr:c=!1}=ox({name:"MuiUseMediaQuery",props:a,theme:o});let d=typeof r=="function"?r(o):r;return d=d.replace(/^@media( ?)/m,""),d.includes("print")&&console.warn(["MUI: You have provided a `print` query to the `useMediaQuery` hook.","Using the print media query to modify print styles can lead to unexpected results.","Consider using the `displayPrint` field in the `sx` prop instead.","More information about `displayPrint` on our docs: https://mui.com/system/display/#display-in-print."].join(`
208
- `)),(yx!==void 0?pF:cF)(d,i,l,u,c)}}xx();const Cx=xx({themeId:Po}),fF={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",whiteSpace:"nowrap",width:"1px"},cs=(e,t)=>e.length!==t.length?!1:t.every(n=>e.includes(n)),mF=({openTo:e,defaultOpenTo:t,views:n,defaultViews:r})=>{const a=n??r;let o;if(e!=null)o=e;else if(a.includes(t))o=t;else if(a.length>0)o=a[0];else throw new Error("MUI X: The `views` prop must contain at least one view.");return{views:a,openTo:o}},Kl=(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=e.setMilliseconds(r,e.getMilliseconds(n)),r},Fs=({date:e,disableFuture:t,disablePast:n,maxDate:r,minDate:a,isDateDisabled:o,utils:s,timezone:i})=>{const l=Kl(s,s.date(void 0,i),e);n&&s.isBefore(a,l)&&(a=l),t&&s.isAfter(r,l)&&(r=l);let u=e,c=e;for(s.isBefore(e,a)&&(u=a,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,a)&&(c=null),u){if(!o(u))return u;u=s.addDays(u,1)}if(c){if(!o(c))return c;c=s.addDays(c,-1)}}return null},hF=(e,t)=>t==null||!e.isValid(t)?null:t,Gn=(e,t,n)=>t==null||!e.isValid(t)?n:t,gF=(e,t,n)=>!e.isValid(t)&&t!=null&&!e.isValid(n)&&n!=null?!0:e.isEqual(t,n),tf=(e,t)=>{const r=[e.startOfYear(t)];for(;r.length<12;){const a=r[r.length-1];r.push(e.addMonths(a,1))}return r},Ex=(e,t,n)=>n==="date"?e.startOfDay(e.date(void 0,t)):e.date(void 0,t),bF=["year","month","day"],zg=e=>bF.includes(e),nf=(e,{format:t,views:n},r)=>{if(t!=null)return t;const a=e.formats;return cs(n,["year"])?a.year:cs(n,["month"])?a.month:cs(n,["day"])?a.dayOfMonth:cs(n,["month","year"])?`${a.month} ${a.year}`:cs(n,["day","month"])?`${a.month} ${a.dayOfMonth}`:r?/en/.test(e.getCurrentLocaleCode())?a.normalDateWithWeekday:a.normalDate:a.keyboardDate},yF=(e,t)=>{const n=e.startOfWeek(t);return[0,1,2,3,4,5,6].map(r=>e.addDays(n,r))},xF=["hours","minutes","seconds"],CF=e=>xF.includes(e),Vg=(e,t)=>t.getHours(e)*3600+t.getMinutes(e)*60+t.getSeconds(e),EF=(e,t)=>(n,r)=>e?t.isAfter(n,r):Vg(n,t)>Vg(r,t),hr={year:1,month:2,day:3,hours:4,minutes:5,seconds:6,milliseconds:7},vF=e=>Math.max(...e.map(t=>hr[t.type]??1)),ds=(e,t,n)=>{if(t===hr.year)return e.startOfYear(n);if(t===hr.month)return e.startOfMonth(n);if(t===hr.day)return e.startOfDay(n);let r=n;return t<hr.minutes&&(r=e.setMinutes(r,0)),t<hr.seconds&&(r=e.setSeconds(r,0)),t<hr.milliseconds&&(r=e.setMilliseconds(r,0)),r},TF=({props:e,utils:t,granularity:n,timezone:r,getTodayDate:a})=>{let o=a?a():ds(t,n,Ex(t,r));e.minDate!=null&&t.isAfterDay(e.minDate,o)&&(o=ds(t,n,e.minDate)),e.maxDate!=null&&t.isBeforeDay(e.maxDate,o)&&(o=ds(t,n,e.maxDate));const s=EF(e.disableIgnoringDatePartForTimeValidation??!1,t);return e.minTime!=null&&s(e.minTime,o)&&(o=ds(t,n,e.disableIgnoringDatePartForTimeValidation?e.minTime:Kl(t,o,e.minTime))),e.maxTime!=null&&s(o,e.maxTime)&&(o=ds(t,n,e.disableIgnoringDatePartForTimeValidation?e.maxTime:Kl(t,o,e.maxTime))),o},vx=(e,t)=>{const n=e.formatTokenMap[t];if(n==null)throw new Error([`MUI X: 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(`
209
- `));return typeof n=="string"?{type:n,contentType:n==="meridiem"?"letter":"digit",maxLength:void 0}:{type:n.sectionType,contentType:n.contentType,maxLength:n.maxLength}},kF=e=>{switch(e){case"ArrowUp":return 1;case"ArrowDown":return-1;case"PageUp":return 5;case"PageDown":return-5;default:return 0}},Ru=(e,t)=>{const n=[],r=e.date(void 0,"default"),a=e.startOfWeek(r),o=e.endOfWeek(r);let s=a;for(;e.isBefore(s,o);)n.push(s),s=e.addDays(s,1);return n.map(i=>e.formatByString(i,t))},Tx=(e,t,n,r)=>{switch(n){case"month":return tf(e,e.date(void 0,t)).map(a=>e.formatByString(a,r));case"weekDay":return Ru(e,r);case"meridiem":{const a=e.date(void 0,t);return[e.startOfDay(a),e.endOfDay(a)].map(o=>e.formatByString(o,r))}default:return[]}},Wg="s",SF=["0","1","2","3","4","5","6","7","8","9"],wF=e=>{const t=e.date(void 0);return e.formatByString(e.setSeconds(t,0),Wg)==="0"?SF:Array.from({length:10}).map((r,a)=>e.formatByString(e.setSeconds(t,a),Wg))},$a=(e,t)=>{if(t[0]==="0")return e;const n=[];let r="";for(let a=0;a<e.length;a+=1){r+=e[a];const o=t.indexOf(r);o>-1&&(n.push(o.toString()),r="")}return n.join("")},rf=(e,t)=>t[0]==="0"?e:e.split("").map(n=>t[Number(n)]).join(""),qg=(e,t)=>{const n=$a(e,t);return n!==" "&&!Number.isNaN(Number(n))},kx=(e,t)=>{let n=e;for(n=Number(n).toString();n.length<t;)n=`0${n}`;return n},Sx=(e,t,n,r,a)=>{if(a.type==="day"&&a.contentType==="digit-with-letter"){const s=e.setDate(n.longestMonth,t);return e.formatByString(s,a.format)}let o=t.toString();return a.hasLeadingZerosInInput&&(o=kx(o,a.maxLength)),rf(o,r)},_F=(e,t,n,r,a,o,s,i)=>{const l=kF(r),u=r==="Home",c=r==="End",d=n.value===""||u||c,m=()=>{const h=a[n.type]({currentDate:s,format:n.format,contentType:n.contentType}),b=C=>Sx(e,C,h,o,n),g=n.type==="minutes"&&i?.minutesStep?i.minutesStep:1;let x;if(d){if(n.type==="year"&&!c&&!u)return e.formatByString(e.date(void 0,t),n.format);l>0||u?x=h.minimum:x=h.maximum}else x=parseInt($a(n.value,o),10)+l*g;return x%g!==0&&((l<0||u)&&(x+=g-(g+x)%g),(l>0||c)&&(x-=x%g)),x>h.maximum?b(h.minimum+(x-h.maximum-1)%(h.maximum-h.minimum+1)):x<h.minimum?b(h.maximum-(h.minimum-x-1)%(h.maximum-h.minimum+1)):b(x)},f=()=>{const h=Tx(e,t,n.type,n.format);if(h.length===0)return n.value;if(d)return l>0||u?h[0]:h[h.length-1];const x=((h.indexOf(n.value)+l)%h.length+h.length)%h.length;return h[x]};return n.contentType==="digit"||n.contentType==="digit-with-letter"?m():f()},af=(e,t,n)=>{let r=e.value||e.placeholder;const a=t==="non-input"?e.hasLeadingZerosInFormat:e.hasLeadingZerosInInput;return t==="non-input"&&e.hasLeadingZerosInInput&&!e.hasLeadingZerosInFormat&&(r=Number($a(r,n)).toString()),["input-rtl","input-ltr"].includes(t)&&e.contentType==="digit"&&!a&&r.length===1&&(r=`${r}‎`),t==="input-rtl"&&(r=`⁨${r}⁩`),r},Yg=(e,t,n,r)=>e.formatByString(e.parse(t,n),r),IF=(e,t)=>e.formatByString(e.date(void 0,"system"),t).length===4,wx=(e,t,n,r)=>{if(t!=="digit")return!1;const a=e.date(void 0,"default");switch(n){case"year":return e.lib==="dayjs"&&r==="YY"?!0:e.formatByString(e.setYear(a,1),r).startsWith("0");case"month":return e.formatByString(e.startOfYear(a),r).length>1;case"day":return e.formatByString(e.startOfMonth(a),r).length>1;case"weekDay":return e.formatByString(e.startOfWeek(a),r).length>1;case"hours":return e.formatByString(e.setHours(a,1),r).length>1;case"minutes":return e.formatByString(e.setMinutes(a,1),r).length>1;case"seconds":return e.formatByString(e.setSeconds(a,1),r).length>1;default:throw new Error("Invalid section type")}},AF=(e,t,n)=>{const r=t.some(l=>l.type==="day"),a=[],o=[];for(let l=0;l<t.length;l+=1){const u=t[l];r&&u.type==="weekDay"||(a.push(u.format),o.push(af(u,"non-input",n)))}const s=a.join(" "),i=o.join(" ");return e.parse(i,s)},DF=e=>e.map(t=>`${t.startSeparator}${t.value||t.placeholder}${t.endSeparator}`).join(""),PF=(e,t,n)=>{const a=e.map(o=>{const s=af(o,n?"input-rtl":"input-ltr",t);return`${o.startSeparator}${s}${o.endSeparator}`}).join("");return n?`⁦${a}⁩`:a},RF=(e,t,n)=>{const r=e.date(void 0,n),a=e.endOfYear(r),o=e.endOfDay(r),{maxDaysInMonth:s,longestMonth:i}=tf(e,r).reduce((l,u)=>{const c=e.getDaysInMonth(u);return c>l.maxDaysInMonth?{maxDaysInMonth:c,longestMonth:u}:l},{maxDaysInMonth:0,longestMonth:null});return{year:({format:l})=>({minimum:0,maximum:IF(e,l)?9999:99}),month:()=>({minimum:1,maximum:e.getMonth(a)+1}),day:({currentDate:l})=>({minimum:1,maximum:l!=null&&e.isValid(l)?e.getDaysInMonth(l):s,longestMonth:i}),weekDay:({format:l,contentType:u})=>{if(u==="digit"){const c=Ru(e,l).map(Number);return{minimum:Math.min(...c),maximum:Math.max(...c)}}return{minimum:1,maximum:7}},hours:({format:l})=>{const u=e.getHours(o);return $a(e.formatByString(e.endOfDay(r),l),t)!==u.toString()?{minimum:1,maximum:Number($a(e.formatByString(e.startOfDay(r),l),t))}:{minimum:0,maximum:u}},minutes:()=>({minimum:0,maximum:e.getMinutes(o)}),seconds:()=>({minimum:0,maximum:e.getSeconds(o)}),meridiem:()=>({minimum:0,maximum:1}),empty:()=>({minimum:0,maximum:0})}},MF=(e,t,n,r)=>{switch(t.type){case"year":return e.setYear(r,e.getYear(n));case"month":return e.setMonth(r,e.getMonth(n));case"weekDay":{const a=Ru(e,t.format),o=e.formatByString(n,t.format),s=a.indexOf(o),l=a.indexOf(t.value)-s;return e.addDays(n,l)}case"day":return e.setDate(r,e.getDate(n));case"meridiem":{const a=e.getHours(n)<12,o=e.getHours(r);return a&&o>=12?e.addHours(r,-12):!a&&o<12?e.addHours(r,12):r}case"hours":return e.setHours(r,e.getHours(n));case"minutes":return e.setMinutes(r,e.getMinutes(n));case"seconds":return e.setSeconds(r,e.getSeconds(n));default:return r}},Gg={year:1,month:2,day:3,weekDay:4,hours:5,minutes:6,seconds:7,meridiem:8,empty:9},Kg=(e,t,n,r,a)=>[...n].sort((o,s)=>Gg[o.type]-Gg[s.type]).reduce((o,s)=>!a||s.modified?MF(e,s,t,o):o,r),NF=()=>navigator.userAgent.toLowerCase().includes("android"),OF=(e,t)=>{const n={};if(!t)return e.forEach((l,u)=>{const c=u===0?null:u-1,d=u===e.length-1?null:u+1;n[u]={leftIndex:c,rightIndex:d}}),{neighbors:n,startIndex:0,endIndex:e.length-1};const r={},a={};let o=0,s=0,i=e.length-1;for(;i>=0;){s=e.findIndex((l,u)=>u>=o&&l.endSeparator?.includes(" ")&&l.endSeparator!==" / "),s===-1&&(s=e.length-1);for(let l=s;l>=o;l-=1)a[l]=i,r[i]=l,i-=1;o=s+1}return e.forEach((l,u)=>{const c=a[u],d=c===0?null:r[c-1],m=c===e.length-1?null:r[c+1];n[u]={leftIndex:d,rightIndex:m}}),{neighbors:n,startIndex:r[0],endIndex:r[e.length-1]}},$d=(e,t)=>{if(e==null)return null;if(e==="all")return"all";if(typeof e=="string"){const n=t.findIndex(r=>r.type===e);return n===-1?null:n}return e},LF=(e,t)=>{if(e.value)switch(e.type){case"month":{if(e.contentType==="digit")return t.format(t.setMonth(t.date(),Number(e.value)-1),"month");const n=t.parse(e.value,e.format);return n?t.format(n,"month"):void 0}case"day":return e.contentType==="digit"?t.format(t.setDate(t.startOfYear(t.date()),Number(e.value)),"dayOfMonthFull"):e.value;case"weekDay":return;default:return}},FF=(e,t)=>{if(e.value)switch(e.type){case"weekDay":return e.contentType==="letter"?void 0:Number(e.value);case"meridiem":{const n=t.parse(`01:00 ${e.value}`,`${t.formats.hours12h}:${t.formats.minutes} ${e.format}`);return n?t.getHours(n)>=12?1:0:void 0}case"day":return e.contentType==="digit-with-letter"?parseInt(e.value,10):Number(e.value);case"month":{if(e.contentType==="digit")return Number(e.value);const n=t.parse(e.value,e.format);return n?t.getMonth(n)+1:void 0}default:return e.contentType!=="letter"?Number(e.value):void 0}},$F=["value","referenceDate"],Cr={emptyValue:null,getTodayValue:Ex,getInitialReferenceValue:e=>{let{value:t,referenceDate:n}=e,r=je(e,$F);return t!=null&&r.utils.isValid(t)?t:n??TF(r)},cleanValue:hF,areValuesEqual:gF,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)},BF={updateReferenceValue:(e,t,n)=>t==null||!e.isValid(t)?n:t,getSectionsFromValue:(e,t,n,r)=>!e.isValid(t)&&!!n?n:r(t),getV7HiddenInputValueFromSections:DF,getV6InputValueFromSections:PF,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)},jF=["localeText"],Bd=w.createContext(null),jd=function(t){const{localeText:n}=t,r=je(t,jF),{utils:a,localeText:o}=w.useContext(Bd)??{utils:void 0,localeText:void 0},s=_t({props:r,name:"MuiLocalizationProvider"}),{children:i,dateAdapter:l,dateFormats:u,dateLibInstance:c,adapterLocale:d,localeText:m}=s,f=w.useMemo(()=>U({},m,o,n),[m,o,n]),h=w.useMemo(()=>{if(!l)return a||null;const x=new l({locale:d,formats:u,instance:c});if(!x.isMUIAdapter)throw new Error(["MUI X: 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(`
210
- `));return x},[l,d,u,c,a]),b=w.useMemo(()=>h?{minDate:h.date("1900-01-01T00:00:00.000"),maxDate:h.date("2099-12-31T00:00:00.000")}:null,[h]),g=w.useMemo(()=>({utils:h,defaultDates:b,localeText:f}),[b,h,f]);return p.jsx(Bd.Provider,{value:g,children:i})},HF=e=>({components:{MuiLocalizationProvider:{defaultProps:{localeText:U({},e)}}}}),_x=e=>{const{utils:t,formatKey:n,contextTranslation:r,propsTranslation:a}=e;return o=>{const s=o!==null&&t.isValid(o)?t.format(o,n):null;return(a??r)(o,t,s)}},Ix={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",startDate:"Start date",startTime:"Start time",endDate:"End date",endTime:"End time",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,r)=>`Select ${e}. ${!r&&(t===null||!n.isValid(t))?"No time selected":`Selected time is ${r??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,n)=>n||e!==null&&t.isValid(e)?`Choose date, selected date is ${n??t.format(e,"fullDate")}`:"Choose date",openTimePickerDialogue:(e,t,n)=>n||e!==null&&t.isValid(e)?`Choose time, selected time is ${n??t.format(e,"fullTime")}`:"Choose time",fieldClearLabel:"Clear",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",year:"Year",month:"Month",day:"Day",weekDay:"Week day",hours:"Hours",minutes:"Minutes",seconds:"Seconds",meridiem:"Meridiem",empty:"Empty"},UF=Ix;HF(Ix);const Va=()=>{const e=w.useContext(Bd);if(e===null)throw new Error(["MUI X: 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(`
211
- `));if(e.utils===null)throw new Error(["MUI X: 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(`
212
- `));const t=w.useMemo(()=>U({},UF,e.localeText),[e.localeText]);return w.useMemo(()=>U({},e,{localeText:t}),[e,t])},Pt=()=>Va().utils,Ei=()=>Va().defaultDates,Mu=e=>{const t=Pt(),n=w.useRef(void 0);return n.current===void 0&&(n.current=t.date(void 0,e)),n.current};function zF(e){return Fe("MuiPickersToolbar",e)}Re("MuiPickersToolbar",["root","content"]);const VF=["children","className","toolbarTitle","hidden","titleId","isLandscape","classes","landscapeDirection"],WF=e=>{const{classes:t}=e;return Le({root:["root"],content:["content"]},zF,t)},qF=oe("div",{name:"MuiPickersToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({display:"flex",flexDirection:"column",alignItems:"flex-start",justifyContent:"space-between",padding:e.spacing(2,3),variants:[{props:{isLandscape:!0},style:{height:"auto",maxWidth:160,padding:16,justifyContent:"flex-start",flexWrap:"wrap"}}]})),YF=oe("div",{name:"MuiPickersToolbar",slot:"Content",overridesResolver:(e,t)=>t.content})({display:"flex",flexWrap:"wrap",width:"100%",flex:1,justifyContent:"space-between",alignItems:"center",flexDirection:"row",variants:[{props:{isLandscape:!0},style:{justifyContent:"flex-start",alignItems:"flex-start",flexDirection:"column"}},{props:{isLandscape:!0,landscapeDirection:"row"},style:{flexDirection:"row"}}]}),GF=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersToolbar"}),{children:a,className:o,toolbarTitle:s,hidden:i,titleId:l}=r,u=je(r,VF),c=r,d=WF(c);return i?null:p.jsxs(qF,U({ref:n,className:De(d.root,o),ownerState:c},u,{children:[p.jsx(yt,{color:"text.secondary",variant:"overline",id:l,children:s}),p.jsx(YF,{className:d.content,ownerState:c,children:a})]}))}),Vr=()=>Va().localeText;function KF(e){return Fe("MuiDatePickerToolbar",e)}Re("MuiDatePickerToolbar",["root","title"]);const QF=["value","isLandscape","onChange","toolbarFormat","toolbarPlaceholder","views","className","onViewChange","view"],XF=e=>{const{classes:t}=e;return Le({root:["root"],title:["title"]},KF,t)},ZF=oe(GF,{name:"MuiDatePickerToolbar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),JF=oe(yt,{name:"MuiDatePickerToolbar",slot:"Title",overridesResolver:(e,t)=>t.title})({variants:[{props:{isLandscape:!0},style:{margin:"auto 16px auto auto"}}]}),e7=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePickerToolbar"}),{value:a,isLandscape:o,toolbarFormat:s,toolbarPlaceholder:i="––",views:l,className:u}=r,c=je(r,QF),d=Pt(),m=Vr(),f=XF(r),h=w.useMemo(()=>{if(!a)return i;const g=nf(d,{format:s,views:l},!0);return d.formatByString(a,g)},[a,s,i,d,l]),b=r;return p.jsx(ZF,U({ref:n,toolbarTitle:m.datePickerToolbarTitle,isLandscape:o,className:De(f.root,u)},c,{children:p.jsx(JF,{variant:"h4",align:o?"left":"center",ownerState:b,className:f.title,children:h})}))});function Ax(e,t){const n=Pt(),r=Ei(),a=_t({props:e,name:t}),o=w.useMemo(()=>a.localeText?.toolbarTitle==null?a.localeText:U({},a.localeText,{datePickerToolbarTitle:a.localeText.toolbarTitle}),[a.localeText]);return U({},a,{localeText:o},mF({views:a.views,openTo:a.openTo,defaultViews:["year","day"],defaultOpenTo:"day"}),{disableFuture:a.disableFuture??!1,disablePast:a.disablePast??!1,minDate:Gn(n,a.minDate,r.minDate),maxDate:Gn(n,a.maxDate,r.maxDate),slots:U({toolbar:e7},a.slots)})}const vi=({props:e,value:t,timezone:n,adapter:r})=>{if(t===null)return null;const{shouldDisableDate:a,shouldDisableMonth:o,shouldDisableYear:s,disablePast:i,disableFuture:l}=e,u=r.utils.date(void 0,n),c=Gn(r.utils,e.minDate,r.defaultDates.minDate),d=Gn(r.utils,e.maxDate,r.defaultDates.maxDate);switch(!0){case!r.utils.isValid(t):return"invalidDate";case!!(a&&a(t)):return"shouldDisableDate";case!!(o&&o(t)):return"shouldDisableMonth";case!!(s&&s(t)):return"shouldDisableYear";case!!(l&&r.utils.isAfterDay(t,u)):return"disableFuture";case!!(i&&r.utils.isBeforeDay(t,u)):return"disablePast";case!!(c&&r.utils.isBeforeDay(t,c)):return"minDate";case!!(d&&r.utils.isAfterDay(t,d)):return"maxDate";default:return null}};vi.valueManager=Cr;const Dx=["disablePast","disableFuture","minDate","maxDate","shouldDisableDate","shouldDisableMonth","shouldDisableYear"],t7=["disablePast","disableFuture","minTime","maxTime","shouldDisableTime","minutesStep","ampm","disableIgnoringDatePartForTimeValidation"],n7=["minDateTime","maxDateTime"],r7=[...Dx,...t7,...n7],Px=e=>r7.reduce((t,n)=>(e.hasOwnProperty(n)&&(t[n]=e[n]),t),{});function Rx(e){const{props:t,validator:n,value:r,timezone:a,onError:o}=e,s=Va(),i=w.useRef(n.valueManager.defaultErrorState),l=n({adapter:s,value:r,timezone:a,props:t}),u=n.valueManager.hasError(l);w.useEffect(()=>{o&&!n.valueManager.isSameError(l,i.current)&&o(l,r),i.current=l},[n,o,l,r]);const c=Ae(d=>n({adapter:s,value:d,timezone:a,props:t}));return{validationError:l,hasValidationError:u,getValidationErrorForNewValue:c}}function a7(e){return Fe("MuiInputAdornment",e)}const Qg=Re("MuiInputAdornment",["root","filled","standard","outlined","positionStart","positionEnd","disablePointerEvents","hiddenLabel","sizeSmall"]);var Xg;const o7=(e,t)=>{const{ownerState:n}=e;return[t.root,t[`position${Se(n.position)}`],n.disablePointerEvents===!0&&t.disablePointerEvents,t[n.variant]]},s7=e=>{const{classes:t,disablePointerEvents:n,hiddenLabel:r,position:a,size:o,variant:s}=e,i={root:["root",n&&"disablePointerEvents",a&&`position${Se(a)}`,s,r&&"hiddenLabel",o&&`size${Se(o)}`]};return Le(i,a7,t)},i7=oe("div",{name:"MuiInputAdornment",slot:"Root",overridesResolver:o7})(tt(({theme:e})=>({display:"flex",maxHeight:"2em",alignItems:"center",whiteSpace:"nowrap",color:(e.vars||e).palette.action.active,variants:[{props:{variant:"filled"},style:{[`&.${Qg.positionStart}&:not(.${Qg.hiddenLabel})`]:{marginTop:16}}},{props:{position:"start"},style:{marginRight:8}},{props:{position:"end"},style:{marginLeft:8}},{props:{disablePointerEvents:!0},style:{pointerEvents:"none"}}]}))),Mx=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiInputAdornment"}),{children:a,className:o,component:s="div",disablePointerEvents:i=!1,disableTypography:l=!1,position:u,variant:c,...d}=r,m=Jn()||{};let f=c;c&&m.variant,m&&!f&&(f=m.variant);const h={...r,hiddenLabel:m.hiddenLabel,size:m.size,disablePointerEvents:i,position:u,variant:f},b=s7(h);return p.jsx(_u.Provider,{value:null,children:p.jsx(i7,{as:s,ownerState:h,className:De(b.root,o),ref:n,...d,children:typeof a=="string"&&!l?p.jsx(yt,{color:"textSecondary",children:a}):p.jsxs(w.Fragment,{children:[u==="start"?Xg||(Xg=p.jsx("span",{className:"notranslate","aria-hidden":!0,children:"​"})):null,a]})})})});function l7(e){return Fe("MuiPickersPopper",e)}Re("MuiPickersPopper",["root","paper"]);function u7(e,t){return Array.isArray(t)?t.every(n=>e.indexOf(n)!==-1):e.indexOf(t)!==-1}const c7=(e,t)=>n=>{(n.key==="Enter"||n.key===" ")&&(e(n),n.preventDefault(),n.stopPropagation())},xn=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?xn(t.shadowRoot):t:null},d7="@media (pointer: fine)",p7="@media (prefers-reduced-motion: reduce)",go=typeof navigator<"u"&&navigator.userAgent.match(/android\s(\d+)|OS\s(\d+)/i),Zg=go&&go[1]?parseInt(go[1],10):null,Jg=go&&go[2]?parseInt(go[2],10):null,f7=Zg&&Zg<10||Jg&&Jg<13||!1,Nx=()=>Cx(p7,{defaultMatches:!1})||f7,m7=["PaperComponent","popperPlacement","ownerState","children","paperSlotProps","paperClasses","onPaperClick","onPaperTouchStart"],h7=e=>{const{classes:t}=e;return Le({root:["root"],paper:["paper"]},l7,t)},g7=oe(zp,{name:"MuiPickersPopper",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>({zIndex:e.zIndex.modal})),b7=oe(za,{name:"MuiPickersPopper",slot:"Paper",overridesResolver:(e,t)=>t.paper})({outline:0,transformOrigin:"top center",variants:[{props:({placement:e})=>["top","top-start","top-end"].includes(e),style:{transformOrigin:"bottom center"}}]});function y7(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function x7(e,t){const n=w.useRef(!1),r=w.useRef(!1),a=w.useRef(null),o=w.useRef(!1);w.useEffect(()=>{if(!e)return;function l(){o.current=!0}return document.addEventListener("mousedown",l,!0),document.addEventListener("touchstart",l,!0),()=>{document.removeEventListener("mousedown",l,!0),document.removeEventListener("touchstart",l,!0),o.current=!1}},[e]);const s=Ae(l=>{if(!o.current)return;const u=r.current;r.current=!1;const c=Ut(a.current);if(!a.current||"clientX"in l&&y7(l,c))return;if(n.current){n.current=!1;return}let d;l.composedPath?d=l.composedPath().indexOf(a.current)>-1:d=!c.documentElement.contains(l.target)||a.current.contains(l.target),!d&&!u&&t(l)}),i=()=>{r.current=!0};return w.useEffect(()=>{if(e){const l=Ut(a.current),u=()=>{n.current=!0};return l.addEventListener("touchstart",s),l.addEventListener("touchmove",u),()=>{l.removeEventListener("touchstart",s),l.removeEventListener("touchmove",u)}}},[e,s]),w.useEffect(()=>{if(e){const l=Ut(a.current);return l.addEventListener("click",s),()=>{l.removeEventListener("click",s),r.current=!1}}},[e,s]),[a,i,i]}const C7=w.forwardRef((e,t)=>{const{PaperComponent:n,popperPlacement:r,ownerState:a,children:o,paperSlotProps:s,paperClasses:i,onPaperClick:l,onPaperTouchStart:u}=e,c=je(e,m7),d=U({},a,{placement:r}),m=at({elementType:n,externalSlotProps:s,additionalProps:{tabIndex:-1,elevation:8,ref:t},className:i,ownerState:d});return p.jsx(n,U({},c,m,{onClick:f=>{l(f),m.onClick?.(f)},onTouchStart:f=>{u(f),m.onTouchStart?.(f)},ownerState:d,children:o}))});function E7(e){const t=_t({props:e,name:"MuiPickersPopper"}),{anchorEl:n,children:r,containerRef:a=null,shouldRestoreFocus:o,onBlur:s,onDismiss:i,open:l,role:u,placement:c,slots:d,slotProps:m,reduceAnimations:f}=t;w.useEffect(()=>{function A(R){l&&R.key==="Escape"&&i()}return document.addEventListener("keydown",A),()=>{document.removeEventListener("keydown",A)}},[i,l]);const h=w.useRef(null);w.useEffect(()=>{u==="tooltip"||o&&!o()||(l?h.current=xn(document):h.current&&h.current instanceof HTMLElement&&setTimeout(()=>{h.current instanceof HTMLElement&&h.current.focus()}))},[l,u,o]);const[b,g,x]=x7(l,s??i),C=w.useRef(null),E=ot(C,a),k=ot(E,b),T=t,S=h7(T),O=Nx(),M=f??O,$=A=>{A.key==="Escape"&&(A.stopPropagation(),i())},P=d?.desktopTransition??M?Fa:Xs,L=d?.desktopTrapFocus??cx,v=d?.desktopPaper??b7,N=d?.popper??g7,I=at({elementType:N,externalSlotProps:m?.popper,additionalProps:{transition:!0,role:u,open:l,anchorEl:n,placement:c,onKeyDown:$},className:S.root,ownerState:t});return p.jsx(N,U({},I,{children:({TransitionProps:A,placement:R})=>p.jsx(L,U({open:l,disableAutoFocus:!0,disableRestoreFocus:!0,disableEnforceFocus:u==="tooltip",isEnabled:()=>!0},m?.desktopTrapFocus,{children:p.jsx(P,U({},A,m?.desktopTransition,{children:p.jsx(C7,{PaperComponent:v,ownerState:T,popperPlacement:R,ref:k,onPaperClick:g,onPaperTouchStart:x,paperClasses:S.paper,paperSlotProps:m?.desktopPaper,children:r})}))}))}))}const v7=({open:e,onOpen:t,onClose:n})=>{const r=w.useRef(typeof e=="boolean").current,[a,o]=w.useState(!1);w.useEffect(()=>{if(r){if(typeof e!="boolean")throw new Error("You must not mix controlling and uncontrolled mode for `open` prop");o(e)}},[r,e]);const s=w.useCallback(i=>{r||o(i),i&&t&&t(),!i&&n&&n()},[r,t,n]);return{isOpen:a,setIsOpen:s}},of=({timezone:e,value:t,defaultValue:n,referenceDate:r,onChange:a,valueManager:o})=>{const s=Pt(),i=w.useRef(n),l=t??i.current??o.emptyValue,u=w.useMemo(()=>o.getTimezone(s,l),[s,o,l]),c=Ae(h=>u==null?h:o.setTimezone(s,u,h));let d;e?d=e:u?d=u:r?d=s.getTimezone(r):d="default";const m=w.useMemo(()=>o.setTimezone(s,d,l),[o,s,d,l]),f=Ae((h,...b)=>{const g=c(h);a?.(g,...b)});return{value:m,handleValueChange:f,timezone:d}},sf=({name:e,timezone:t,value:n,defaultValue:r,referenceDate:a,onChange:o,valueManager:s})=>{const[i,l]=An({name:e,state:"value",controlled:n,default:r??s.emptyValue}),u=Ae((c,...d)=>{l(c),o?.(c,...d)});return of({timezone:t,value:i,defaultValue:void 0,referenceDate:a,onChange:u,valueManager:s})},T7=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:a}=e,o=!a&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromField"?!0:t.name==="setValueFromAction"?o&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastPublishedValue):t.name==="setValueFromView"&&t.selectionState!=="shallow"||t.name==="setValueFromShortcut"?o?!0:n(r.lastPublishedValue):!1},k7=e=>{const{action:t,hasChanged:n,dateState:r,isControlled:a,closeOnSelect:o}=e,s=!a&&!r.hasBeenModifiedSinceMount;return t.name==="setValueFromAction"?s&&["accept","today","clear"].includes(t.pickerAction)?!0:n(r.lastCommittedValue):t.name==="setValueFromView"&&t.selectionState==="finish"&&o?s?!0:n(r.lastCommittedValue):t.name==="setValueFromShortcut"?t.changeImportance==="accept"&&n(r.lastCommittedValue):!1},S7=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},w7=({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:a})=>{const{onAccept:o,onChange:s,value:i,defaultValue:l,closeOnSelect:u=r==="desktop",timezone:c,referenceDate:d}=e,{current:m}=w.useRef(l),{current:f}=w.useRef(i!==void 0),[h,b]=w.useState(c),g=Pt(),x=Va(),{isOpen:C,setIsOpen:E}=v7(e),{timezone:k,value:T,handleValueChange:S}=of({timezone:c,value:i,defaultValue:m,referenceDate:d,onChange:s,valueManager:t}),[O,M]=w.useState(()=>{let re;return T!==void 0?re=T:m!==void 0?re=m:re=t.emptyValue,{draft:re,lastPublishedValue:re,lastCommittedValue:re,lastControlledValue:i,hasBeenModifiedSinceMount:!1}}),$=t.getTimezone(g,O.draft);h!==c&&(b(c),c&&$&&c!==$&&M(re=>U({},re,{draft:t.setTimezone(g,c,re.draft)})));const{getValidationErrorForNewValue:P}=Rx({props:e,validator:a,timezone:k,value:O.draft,onError:e.onError}),L=Ae(re=>{const Q={action:re,dateState:O,hasChanged:pe=>!t.areValuesEqual(g,re.value,pe),isControlled:f,closeOnSelect:u},G=T7(Q),se=k7(Q),ee=S7(Q);M(pe=>U({},pe,{draft:re.value,lastPublishedValue:G?re.value:pe.lastPublishedValue,lastCommittedValue:se?re.value:pe.lastCommittedValue,hasBeenModifiedSinceMount:!0}));let ne=null;const xe=()=>(ne||(ne={validationError:re.name==="setValueFromField"?re.context.validationError:P(re.value)},re.name==="setValueFromShortcut"&&(ne.shortcut=re.shortcut)),ne);G&&S(re.value,xe()),se&&o&&o(re.value,xe()),ee&&E(!1)});if(O.lastControlledValue!==i){const re=t.areValuesEqual(g,O.draft,T);M(Q=>U({},Q,{lastControlledValue:i},re?{}:{lastCommittedValue:T,lastPublishedValue:T,draft:T,hasBeenModifiedSinceMount:!0}))}const v=Ae(()=>{L({value:t.emptyValue,name:"setValueFromAction",pickerAction:"clear"})}),N=Ae(()=>{L({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"accept"})}),I=Ae(()=>{L({value:O.lastPublishedValue,name:"setValueFromAction",pickerAction:"dismiss"})}),A=Ae(()=>{L({value:O.lastCommittedValue,name:"setValueFromAction",pickerAction:"cancel"})}),R=Ae(()=>{L({value:t.getTodayValue(g,k,n),name:"setValueFromAction",pickerAction:"today"})}),W=Ae(re=>{re.preventDefault(),E(!0)}),H=Ae(re=>{re?.preventDefault(),E(!1)}),B=Ae((re,Q="partial")=>L({name:"setValueFromView",value:re,selectionState:Q})),_=Ae((re,Q,G)=>L({name:"setValueFromShortcut",value:re,changeImportance:Q,shortcut:G})),V=Ae((re,Q)=>L({name:"setValueFromField",value:re,context:Q})),J={onClear:v,onAccept:N,onDismiss:I,onCancel:A,onSetToday:R,onOpen:W,onClose:H},F={value:O.draft,onChange:V},de=w.useMemo(()=>t.cleanValue(g,O.draft),[g,t,O.draft]),Z={value:de,onChange:B,onClose:H,open:C},te=U({},J,{value:de,onChange:B,onSelectShortcut:_,isValid:re=>{const Q=a({adapter:x,value:re,timezone:k,props:e});return!t.hasError(Q)}}),X=w.useMemo(()=>({onOpen:W,onClose:H,open:C}),[C,H,W]);return{open:C,fieldProps:F,viewProps:Z,layoutProps:te,actions:J,contextValue:X}};function Ox({onChange:e,onViewChange:t,openTo:n,view:r,views:a,autoFocus:o,focusedView:s,onFocusedViewChange:i}){const l=w.useRef(n),u=w.useRef(a),c=w.useRef(a.includes(n)?n:a[0]),[d,m]=An({name:"useViews",state:"view",controlled:r,default:c.current}),f=w.useRef(o?d:null),[h,b]=An({name:"useViews",state:"focusedView",controlled:s,default:f.current});w.useEffect(()=>{(l.current&&l.current!==n||u.current&&u.current.some(O=>!a.includes(O)))&&(m(a.includes(n)?n:a[0]),u.current=a,l.current=n)},[n,m,d,a]);const g=a.indexOf(d),x=a[g-1]??null,C=a[g+1]??null,E=Ae((O,M)=>{b(M?O:$=>O===$?null:$),i?.(O,M)}),k=Ae(O=>{E(O,!0),O!==d&&(m(O),t&&t(O))}),T=Ae(()=>{C&&k(C)}),S=Ae((O,M,$)=>{const P=M==="finish",L=$?a.indexOf($)<a.length-1:!!C;if(e(O,P&&L?"partial":M,$),$&&$!==d){const N=a[a.indexOf($)+1];N&&k(N)}else P&&T()});return{view:d,setView:k,focusedView:h,setFocusedView:E,nextView:C,previousView:x,defaultView:a.includes(n)?n:a[0],goToNextView:T,setValueAndGoToNextView:S}}const _7=["className","sx"],I7=({props:e,propsFromPickerValue:t,additionalViewProps:n,autoFocusView:r,rendererInterceptor:a,fieldRef:o})=>{const{onChange:s,open:i,onClose:l}=t,{view:u,views:c,openTo:d,onViewChange:m,viewRenderers:f,timezone:h}=e,b=je(e,_7),{view:g,setView:x,defaultView:C,focusedView:E,setFocusedView:k,setValueAndGoToNextView:T}=Ox({view:u,views:c,openTo:d,onChange:s,onViewChange:m,autoFocus:r}),{hasUIView:S,viewModeLookup:O}=w.useMemo(()=>c.reduce((I,A)=>{let R;return f[A]!=null?R="UI":R="field",I.viewModeLookup[A]=R,R==="UI"&&(I.hasUIView=!0),I},{hasUIView:!1,viewModeLookup:{}}),[f,c]),M=w.useMemo(()=>c.reduce((I,A)=>f[A]!=null&&CF(A)?I+1:I,0),[f,c]),$=O[g],P=Ae(()=>$==="UI"),[L,v]=w.useState($==="UI"?g:null);return L!==g&&O[g]==="UI"&&v(g),qt(()=>{$==="field"&&i&&(l(),setTimeout(()=>{o?.current?.setSelectedSections(g),o?.current?.focusField(g)}))},[g]),qt(()=>{if(!i)return;let I=g;$==="field"&&L!=null&&(I=L),I!==C&&O[I]==="UI"&&O[C]==="UI"&&(I=C),I!==g&&x(I),k(I,!0)},[i]),{hasUIView:S,shouldRestoreFocus:P,layoutProps:{views:c,view:L,onViewChange:x},renderCurrentView:()=>{if(L==null)return null;const I=f[L];if(I==null)return null;const A=U({},b,n,t,{views:c,timezone:h,onChange:T,view:L,onViewChange:x,focusedView:E,onFocusedViewChange:k,showViewSwitcher:M>1,timeViewsCount:M});return a?a(f,L,A):I(A)}}};function e0(){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 A7=(e,t)=>{const[n,r]=w.useState(e0);return qt(()=>{const o=()=>{r(e0())};return window.addEventListener("orientationchange",o),()=>{window.removeEventListener("orientationchange",o)}},[]),u7(e,["hours","minutes","seconds"])?!1:(t||n)==="landscape"},D7=({props:e,propsFromPickerValue:t,propsFromPickerViews:n,wrapperVariant:r})=>{const{orientation:a}=e,o=A7(n.views,a),s=Qn();return{layoutProps:U({},n,t,{isLandscape:o,isRtl:s,wrapperVariant:r,disabled:e.disabled,readOnly:e.readOnly})}};function P7(e){const{props:t,pickerValueResponse:n}=e;return w.useMemo(()=>({value:n.viewProps.value,open:n.open,disabled:t.disabled??!1,readOnly:t.readOnly??!1}),[n.viewProps.value,n.open,t.disabled,t.readOnly])}const Lx=({props:e,valueManager:t,valueType:n,wrapperVariant:r,additionalViewProps:a,validator:o,autoFocusView:s,rendererInterceptor:i,fieldRef:l})=>{const u=w7({props:e,valueManager:t,valueType:n,wrapperVariant:r,validator:o}),c=I7({props:e,additionalViewProps:a,autoFocusView:s,fieldRef:l,propsFromPickerValue:u.viewProps,rendererInterceptor:i}),d=D7({props:e,wrapperVariant:r,propsFromPickerValue:u.layoutProps,propsFromPickerViews:c.layoutProps}),m=P7({props:e,pickerValueResponse:u});return{open:u.open,actions:u.actions,fieldProps:u.fieldProps,renderCurrentView:c.renderCurrentView,hasUIView:c.hasUIView,shouldRestoreFocus:c.shouldRestoreFocus,layoutProps:d.layoutProps,contextValue:u.contextValue,ownerState:m}};function Fx(e){return Fe("MuiPickersLayout",e)}const fa=Re("MuiPickersLayout",["root","landscape","contentWrapper","toolbar","actionBar","tabs","shortcuts"]);function R7(e){return Fe("MuiButton",e)}const ma=Re("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","loading","loadingWrapper","loadingIconPlaceholder","loadingIndicator","loadingPositionCenter","loadingPositionStart","loadingPositionEnd"]),M7=w.createContext({}),N7=w.createContext(void 0),O7=e=>{const{color:t,disableElevation:n,fullWidth:r,size:a,variant:o,loading:s,loadingPosition:i,classes:l}=e,u={root:["root",s&&"loading",o,`${o}${Se(t)}`,`size${Se(a)}`,`${o}Size${Se(a)}`,`color${Se(t)}`,n&&"disableElevation",r&&"fullWidth",s&&`loadingPosition${Se(i)}`],startIcon:["icon","startIcon",`iconSize${Se(a)}`],endIcon:["icon","endIcon",`iconSize${Se(a)}`],loadingIndicator:["loadingIndicator"],loadingWrapper:["loadingWrapper"]},c=Le(u,R7,l);return{...l,...c}},$x=[{props:{size:"small"},style:{"& > *:nth-of-type(1)":{fontSize:18}}},{props:{size:"medium"},style:{"& > *:nth-of-type(1)":{fontSize:20}}},{props:{size:"large"},style:{"& > *:nth-of-type(1)":{fontSize:22}}}],L7=oe(La,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiButton",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[n.variant],t[`${n.variant}${Se(n.color)}`],t[`size${Se(n.size)}`],t[`${n.variant}Size${Se(n.size)}`],n.color==="inherit"&&t.colorInherit,n.disableElevation&&t.disableElevation,n.fullWidth&&t.fullWidth,n.loading&&t.loading]}})(tt(({theme:e})=>{const t=e.palette.mode==="light"?e.palette.grey[300]:e.palette.grey[800],n=e.palette.mode==="light"?e.palette.grey.A100:e.palette.grey[700];return{...e.typography.button,minWidth:64,padding:"6px 16px",border:0,borderRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create(["background-color","box-shadow","border-color","color"],{duration:e.transitions.duration.short}),"&:hover":{textDecoration:"none"},[`&.${ma.disabled}`]:{color:(e.vars||e).palette.action.disabled},variants:[{props:{variant:"contained"},style:{color:"var(--variant-containedColor)",backgroundColor:"var(--variant-containedBg)",boxShadow:(e.vars||e).shadows[2],"&:hover":{boxShadow:(e.vars||e).shadows[4],"@media (hover: none)":{boxShadow:(e.vars||e).shadows[2]}},"&:active":{boxShadow:(e.vars||e).shadows[8]},[`&.${ma.focusVisible}`]:{boxShadow:(e.vars||e).shadows[6]},[`&.${ma.disabled}`]:{color:(e.vars||e).palette.action.disabled,boxShadow:(e.vars||e).shadows[0],backgroundColor:(e.vars||e).palette.action.disabledBackground}}},{props:{variant:"outlined"},style:{padding:"5px 15px",border:"1px solid currentColor",borderColor:"var(--variant-outlinedBorder, currentColor)",backgroundColor:"var(--variant-outlinedBg)",color:"var(--variant-outlinedColor)",[`&.${ma.disabled}`]:{border:`1px solid ${(e.vars||e).palette.action.disabledBackground}`}}},{props:{variant:"text"},style:{padding:"6px 8px",color:"var(--variant-textColor)",backgroundColor:"var(--variant-textBg)"}},...Object.entries(e.palette).filter(mn()).map(([r])=>({props:{color:r},style:{"--variant-textColor":(e.vars||e).palette[r].main,"--variant-outlinedColor":(e.vars||e).palette[r].main,"--variant-outlinedBorder":e.alpha((e.vars||e).palette[r].main,.5),"--variant-containedColor":(e.vars||e).palette[r].contrastText,"--variant-containedBg":(e.vars||e).palette[r].main,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":(e.vars||e).palette[r].dark,"--variant-textBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBorder":(e.vars||e).palette[r].main,"--variant-outlinedBg":e.alpha((e.vars||e).palette[r].main,(e.vars||e).palette.action.hoverOpacity)}}}})),{props:{color:"inherit"},style:{color:"inherit",borderColor:"currentColor","--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedBg:t,"@media (hover: hover)":{"&:hover":{"--variant-containedBg":e.vars?e.vars.palette.Button.inheritContainedHoverBg:n,"--variant-textBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity),"--variant-outlinedBg":e.alpha((e.vars||e).palette.text.primary,(e.vars||e).palette.action.hoverOpacity)}}}},{props:{size:"small",variant:"text"},style:{padding:"4px 5px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"text"},style:{padding:"8px 11px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"outlined"},style:{padding:"3px 9px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"outlined"},style:{padding:"7px 21px",fontSize:e.typography.pxToRem(15)}},{props:{size:"small",variant:"contained"},style:{padding:"4px 10px",fontSize:e.typography.pxToRem(13)}},{props:{size:"large",variant:"contained"},style:{padding:"8px 22px",fontSize:e.typography.pxToRem(15)}},{props:{disableElevation:!0},style:{boxShadow:"none","&:hover":{boxShadow:"none"},[`&.${ma.focusVisible}`]:{boxShadow:"none"},"&:active":{boxShadow:"none"},[`&.${ma.disabled}`]:{boxShadow:"none"}}},{props:{fullWidth:!0},style:{width:"100%"}},{props:{loadingPosition:"center"},style:{transition:e.transitions.create(["background-color","box-shadow","border-color"],{duration:e.transitions.duration.short}),[`&.${ma.loading}`]:{color:"transparent"}}}]}})),F7=oe("span",{name:"MuiButton",slot:"StartIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.startIcon,n.loading&&t.startIconLoadingStart,t[`iconSize${Se(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:8,marginLeft:-4,variants:[{props:{size:"small"},style:{marginLeft:-2}},{props:{loadingPosition:"start",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"start",loading:!0,fullWidth:!0},style:{marginRight:-8}},...$x]})),$7=oe("span",{name:"MuiButton",slot:"EndIcon",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.endIcon,n.loading&&t.endIconLoadingEnd,t[`iconSize${Se(n.size)}`]]}})(({theme:e})=>({display:"inherit",marginRight:-4,marginLeft:8,variants:[{props:{size:"small"},style:{marginRight:-2}},{props:{loadingPosition:"end",loading:!0},style:{transition:e.transitions.create(["opacity"],{duration:e.transitions.duration.short}),opacity:0}},{props:{loadingPosition:"end",loading:!0,fullWidth:!0},style:{marginLeft:-8}},...$x]})),B7=oe("span",{name:"MuiButton",slot:"LoadingIndicator"})(({theme:e})=>({display:"none",position:"absolute",visibility:"visible",variants:[{props:{loading:!0},style:{display:"flex"}},{props:{loadingPosition:"start"},style:{left:14}},{props:{loadingPosition:"start",size:"small"},style:{left:10}},{props:{variant:"text",loadingPosition:"start"},style:{left:6}},{props:{loadingPosition:"center"},style:{left:"50%",transform:"translate(-50%)",color:(e.vars||e).palette.action.disabled}},{props:{loadingPosition:"end"},style:{right:14}},{props:{loadingPosition:"end",size:"small"},style:{right:10}},{props:{variant:"text",loadingPosition:"end"},style:{right:6}},{props:{loadingPosition:"start",fullWidth:!0},style:{position:"relative",left:-10}},{props:{loadingPosition:"end",fullWidth:!0},style:{position:"relative",right:-10}}]})),t0=oe("span",{name:"MuiButton",slot:"LoadingIconPlaceholder"})({display:"inline-block",width:"1em",height:"1em"}),wt=w.forwardRef(function(t,n){const r=w.useContext(M7),a=w.useContext(N7),o=js(r,t),s=Xe({props:o,name:"MuiButton"}),{children:i,color:l="primary",component:u="button",className:c,disabled:d=!1,disableElevation:m=!1,disableFocusRipple:f=!1,endIcon:h,focusVisibleClassName:b,fullWidth:g=!1,id:x,loading:C=null,loadingIndicator:E,loadingPosition:k="center",size:T="medium",startIcon:S,type:O,variant:M="text",...$}=s,P=or(x),L=E??p.jsx(Gp,{"aria-labelledby":P,color:"inherit",size:16}),v={...s,color:l,component:u,disabled:d,disableElevation:m,disableFocusRipple:f,fullWidth:g,loading:C,loadingIndicator:L,loadingPosition:k,size:T,type:O,variant:M},N=O7(v),I=(S||C&&k==="start")&&p.jsx(F7,{className:N.startIcon,ownerState:v,children:S||p.jsx(t0,{className:N.loadingIconPlaceholder,ownerState:v})}),A=(h||C&&k==="end")&&p.jsx($7,{className:N.endIcon,ownerState:v,children:h||p.jsx(t0,{className:N.loadingIconPlaceholder,ownerState:v})}),R=a||"",W=typeof C=="boolean"?p.jsx("span",{className:N.loadingWrapper,style:{display:"contents"},children:C&&p.jsx(B7,{className:N.loadingIndicator,ownerState:v,children:L})}):null;return p.jsxs(L7,{ownerState:v,className:De(r.className,N.root,c,R),component:u,disabled:d||C,focusRipple:!f,focusVisibleClassName:De(N.focusVisible,b),ref:n,type:O,id:C?P:x,...$,classes:N,children:[I,k!=="end"&&W,i,k==="end"&&W,A]})});function j7(e){return Fe("MuiDialogActions",e)}Re("MuiDialogActions",["root","spacing"]);const H7=e=>{const{classes:t,disableSpacing:n}=e;return Le({root:["root",!n&&"spacing"]},j7,t)},U7=oe("div",{name:"MuiDialogActions",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,!n.disableSpacing&&t.spacing]}})({display:"flex",alignItems:"center",padding:8,justifyContent:"flex-end",flex:"0 0 auto",variants:[{props:({ownerState:e})=>!e.disableSpacing,style:{"& > :not(style) ~ :not(style)":{marginLeft:8}}}]}),kr=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogActions"}),{className:a,disableSpacing:o=!1,...s}=r,i={...r,disableSpacing:o},l=H7(i);return p.jsx(U7,{className:De(l.root,a),ownerState:i,ref:n,...s})}),z7=["onAccept","onClear","onCancel","onSetToday","actions"];function V7(e){const{onAccept:t,onClear:n,onCancel:r,onSetToday:a,actions:o}=e,s=je(e,z7),i=Vr();if(o==null||o.length===0)return null;const l=o?.map(u=>{switch(u){case"clear":return p.jsx(wt,{onClick:n,children:i.clearButtonLabel},u);case"cancel":return p.jsx(wt,{onClick:r,children:i.cancelButtonLabel},u);case"accept":return p.jsx(wt,{onClick:t,children:i.okButtonLabel},u);case"today":return p.jsx(wt,{onClick:a,children:i.todayButtonLabel},u);default:return null}});return p.jsx(kr,U({},s,{children:l}))}function W7(e){return Fe("MuiListItem",e)}Re("MuiListItem",["root","container","dense","alignItemsFlexStart","divider","gutters","padding","secondaryAction"]);const q7=Re("MuiListItemButton",["root","focusVisible","dense","alignItemsFlexStart","disabled","divider","gutters","selected"]);function Y7(e){return Fe("MuiListItemSecondaryAction",e)}Re("MuiListItemSecondaryAction",["root","disableGutters"]);const G7=e=>{const{disableGutters:t,classes:n}=e;return Le({root:["root",t&&"disableGutters"]},Y7,n)},K7=oe("div",{name:"MuiListItemSecondaryAction",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.disableGutters&&t.disableGutters]}})({position:"absolute",right:16,top:"50%",transform:"translateY(-50%)",variants:[{props:({ownerState:e})=>e.disableGutters,style:{right:0}}]}),Bx=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItemSecondaryAction"}),{className:a,...o}=r,s=w.useContext(Da),i={...r,disableGutters:s.disableGutters},l=G7(i);return p.jsx(K7,{className:De(l.root,a),ownerState:i,ref:n,...o})});Bx.muiName="ListItemSecondaryAction";const Q7=(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.hasSecondaryAction&&t.secondaryAction]},X7=e=>{const{alignItems:t,classes:n,dense:r,disableGutters:a,disablePadding:o,divider:s,hasSecondaryAction:i}=e;return Le({root:["root",r&&"dense",!a&&"gutters",!o&&"padding",s&&"divider",t==="flex-start"&&"alignItemsFlexStart",i&&"secondaryAction"],container:["container"]},W7,n)},Z7=oe("div",{name:"MuiListItem",slot:"Root",overridesResolver:Q7})(tt(({theme:e})=>({display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",textDecoration:"none",width:"100%",boxSizing:"border-box",textAlign:"left",variants:[{props:({ownerState:t})=>!t.disablePadding,style:{paddingTop:8,paddingBottom:8}},{props:({ownerState:t})=>!t.disablePadding&&t.dense,style:{paddingTop:4,paddingBottom:4}},{props:({ownerState:t})=>!t.disablePadding&&!t.disableGutters,style:{paddingLeft:16,paddingRight:16}},{props:({ownerState:t})=>!t.disablePadding&&!!t.secondaryAction,style:{paddingRight:48}},{props:({ownerState:t})=>!!t.secondaryAction,style:{[`& > .${q7.root}`]:{paddingRight:48}}},{props:{alignItems:"flex-start"},style:{alignItems:"flex-start"}},{props:({ownerState:t})=>t.divider,style:{borderBottom:`1px solid ${(e.vars||e).palette.divider}`,backgroundClip:"padding-box"}},{props:({ownerState:t})=>t.button,style:{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"}}}},{props:({ownerState:t})=>t.hasSecondaryAction,style:{paddingRight:48}}]}))),J7=oe("li",{name:"MuiListItem",slot:"Container"})({position:"relative"}),e$=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiListItem"}),{alignItems:a="center",children:o,className:s,component:i,components:l={},componentsProps:u={},ContainerComponent:c="li",ContainerProps:{className:d,...m}={},dense:f=!1,disableGutters:h=!1,disablePadding:b=!1,divider:g=!1,secondaryAction:x,slotProps:C={},slots:E={},...k}=r,T=w.useContext(Da),S=w.useMemo(()=>({dense:f||T.dense||!1,alignItems:a,disableGutters:h}),[a,T.dense,f,h]),O=w.useRef(null),M=w.Children.toArray(o),$=M.length&&Yi(M[M.length-1],["ListItemSecondaryAction"]),P={...r,alignItems:a,dense:S.dense,disableGutters:h,disablePadding:b,divider:g,hasSecondaryAction:$},L=X7(P),v=ot(O,n),N=E.root||l.Root||Z7,I=C.root||u.root||{},A={className:De(L.root,I.className,s),...k};let R=i||"li";return $?(R=!A.component&&!i?"div":R,c==="li"&&(R==="li"?R="div":A.component==="li"&&(A.component="div")),p.jsx(Da.Provider,{value:S,children:p.jsxs(J7,{as:c,className:De(L.container,d),ref:v,ownerState:P,...m,children:[p.jsx(N,{...I,...!Io(N)&&{as:R,ownerState:{...P,...I.ownerState}},...A,children:M}),M.pop()]})})):p.jsx(Da.Provider,{value:S,children:p.jsxs(N,{...I,as:R,ref:v,...!Io(N)&&{ownerState:{...P,...I.ownerState}},...A,children:[M,x&&p.jsx(Bx,{children:x})]})})}),Zs=36,Nu=2,Ou=320,t$=280,lf=336,n$=["items","changeImportance","isLandscape","onChange","isValid"],r$=["getValue"];function a$(e){const{items:t,changeImportance:n="accept",onChange:r,isValid:a}=e,o=je(e,n$);if(t==null||t.length===0)return null;const s=t.map(i=>{let{getValue:l}=i,u=je(i,r$);const c=l({isValid:a});return U({},u,{label:u.label,onClick:()=>{r(c,n,u)},disabled:!a(c)})});return p.jsx(sx,U({dense:!0,sx:[{maxHeight:lf,maxWidth:200,overflow:"auto"},...Array.isArray(o.sx)?o.sx:[o.sx]]},o,{children:s.map(i=>p.jsx(e$,{children:p.jsx(rx,U({},i))},i.id??i.label))}))}function o$(e){return e.view!==null}const s$=e=>{const{classes:t,isLandscape:n}=e;return Le({root:["root",n&&"landscape"],contentWrapper:["contentWrapper"],toolbar:["toolbar"],actionBar:["actionBar"],tabs:["tabs"],landscape:["landscape"],shortcuts:["shortcuts"]},Fx,t)},i$=e=>{const{wrapperVariant:t,onAccept:n,onClear:r,onCancel:a,onSetToday:o,view:s,views:i,onViewChange:l,value:u,onChange:c,onSelectShortcut:d,isValid:m,isLandscape:f,disabled:h,readOnly:b,children:g,slots:x,slotProps:C}=e,E=s$(e),k=x?.actionBar??V7,T=at({elementType:k,externalSlotProps:C?.actionBar,additionalProps:{onAccept:n,onClear:r,onCancel:a,onSetToday:o,actions:t==="desktop"?[]:["cancel","accept"]},className:E.actionBar,ownerState:U({},e,{wrapperVariant:t})}),S=p.jsx(k,U({},T)),O=x?.toolbar,M=at({elementType:O,externalSlotProps:C?.toolbar,additionalProps:{isLandscape:f,onChange:c,value:u,view:s,onViewChange:l,views:i,disabled:h,readOnly:b},className:E.toolbar,ownerState:U({},e,{wrapperVariant:t})}),$=o$(M)&&O?p.jsx(O,U({},M)):null,P=g,L=x?.tabs,v=s&&L?p.jsx(L,U({view:s,onViewChange:l,className:E.tabs},C?.tabs)):null,N=x?.shortcuts??a$,I=at({elementType:N,externalSlotProps:C?.shortcuts,additionalProps:{isValid:m,isLandscape:f,onChange:d},className:E.shortcuts,ownerState:{isValid:m,isLandscape:f,onChange:d,wrapperVariant:t}}),A=s&&N?p.jsx(N,U({},I)):null;return{toolbar:$,content:P,tabs:v,actionBar:S,shortcuts:A}},l$=e=>{const{isLandscape:t,classes:n}=e;return Le({root:["root",t&&"landscape"],contentWrapper:["contentWrapper"]},Fx,n)},u$=oe("div",{name:"MuiPickersLayout",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"grid",gridAutoColumns:"max-content auto max-content",gridAutoRows:"max-content auto max-content",[`& .${fa.actionBar}`]:{gridColumn:"1 / 4",gridRow:3},variants:[{props:{isLandscape:!0},style:{[`& .${fa.toolbar}`]:{gridColumn:1,gridRow:"2 / 3"},[`.${fa.shortcuts}`]:{gridColumn:"2 / 4",gridRow:1}}},{props:{isLandscape:!0,isRtl:!0},style:{[`& .${fa.toolbar}`]:{gridColumn:3}}},{props:{isLandscape:!1},style:{[`& .${fa.toolbar}`]:{gridColumn:"2 / 4",gridRow:1},[`& .${fa.shortcuts}`]:{gridColumn:1,gridRow:"2 / 3"}}},{props:{isLandscape:!1,isRtl:!0},style:{[`& .${fa.shortcuts}`]:{gridColumn:3}}}]}),c$=oe("div",{name:"MuiPickersLayout",slot:"ContentWrapper",overridesResolver:(e,t)=>t.contentWrapper})({gridColumn:2,gridRow:2,display:"flex",flexDirection:"column"}),jx=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersLayout"}),{toolbar:a,content:o,tabs:s,actionBar:i,shortcuts:l}=i$(r),{sx:u,className:c,isLandscape:d,wrapperVariant:m}=r,f=l$(r);return p.jsxs(u$,{ref:n,sx:u,className:De(f.root,c),ownerState:r,children:[d?l:a,d?a:l,p.jsx(c$,{className:f.contentWrapper,children:m==="desktop"?p.jsxs(w.Fragment,{children:[o,s]}):p.jsxs(w.Fragment,{children:[s,o]})}),i]})}),d$=w.createContext(null);function Hx(e){const{contextValue:t,localeText:n,children:r}=e;return p.jsx(d$.Provider,{value:t,children:p.jsx(jd,{localeText:n,children:r})})}const p$=["props","getOpenDialogAriaText"],f$=["ownerState"],m$=["ownerState"],h$=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=je(e,p$);const{slots:a,slotProps:o,className:s,sx:i,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:c,selectedSections:d,onSelectedSectionsChange:m,timezone:f,name:h,label:b,inputRef:g,readOnly:x,disabled:C,autoFocus:E,localeText:k,reduceAnimations:T}=t,S=w.useRef(null),O=w.useRef(null),M=or(),$=o?.toolbar?.hidden??!1,{open:P,actions:L,hasUIView:v,layoutProps:N,renderCurrentView:I,shouldRestoreFocus:A,fieldProps:R,contextValue:W,ownerState:H}=Lx(U({},r,{props:t,fieldRef:O,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"desktop"})),B=a.inputAdornment??Mx,_=at({elementType:B,externalSlotProps:o?.inputAdornment,additionalProps:{position:"end"},ownerState:t}),V=je(_,f$),J=a.openPickerButton??Mn,F=at({elementType:J,externalSlotProps:o?.openPickerButton,additionalProps:{disabled:C||x,onClick:P?L.onClose:L.onOpen,"aria-label":n(R.value),edge:V.position},ownerState:t}),de=je(F,m$),Z=a.openPickerIcon,Y=at({elementType:Z,externalSlotProps:o?.openPickerIcon,ownerState:H}),te=a.field,X=at({elementType:te,externalSlotProps:o?.field,additionalProps:U({},R,$&&{id:M},{readOnly:x,disabled:C,className:s,sx:i,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:c,selectedSections:d,onSelectedSectionsChange:m,timezone:f,label:b,name:h,autoFocus:E&&!t.open,focused:P?!0:void 0},g?{inputRef:g}:{}),ownerState:t});v&&(X.InputProps=U({},X.InputProps,{ref:S},!t.disableOpenPicker&&{[`${V.position}Adornment`]:p.jsx(B,U({},V,{children:p.jsx(J,U({},de,{children:p.jsx(Z,U({},Y))}))}))}));const re=U({textField:a.textField,clearIcon:a.clearIcon,clearButton:a.clearButton},X.slots),Q=a.layout??jx;let G=M;$&&(b?G=`${M}-label`:G=void 0);const se=U({},o,{toolbar:U({},o?.toolbar,{titleId:M}),popper:U({"aria-labelledby":G},o?.popper)}),ee=ot(O,X.unstableFieldRef);return{renderPicker:()=>p.jsxs(Hx,{contextValue:W,localeText:k,children:[p.jsx(te,U({},X,{slots:re,slotProps:se,unstableFieldRef:ee})),p.jsx(E7,U({role:"dialog",placement:"bottom-start",anchorEl:S.current},L,{open:P,slots:a,slotProps:se,shouldRestoreFocus:A,reduceAnimations:T,children:p.jsx(Q,U({},N,se?.layout,{slots:a,slotProps:se,children:I()}))}))]})}},g$=nt(p.jsx("path",{d:"M7 10l5 5 5-5z"})),b$=nt(p.jsx("path",{d:"M15.41 16.59L10.83 12l4.58-4.59L14 6l-6 6 6 6 1.41-1.41z"})),y$=nt(p.jsx("path",{d:"M8.59 16.59L13.17 12 8.59 7.41 10 6l6 6-6 6-1.41-1.41z"})),x$=nt(p.jsx("path",{d:"M17 12h-5v5h5v-5zM16 1v2H8V1H6v2H5c-1.11 0-1.99.9-1.99 2L3 19c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2h-1V1h-2zm3 18H5V8h14v11z"}));nt(p.jsxs(w.Fragment,{children:[p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));nt(p.jsx("path",{d:"M9 11H7v2h2v-2zm4 0h-2v2h2v-2zm4 0h-2v2h2v-2zm2-7h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20c0 1.1.89 2 2 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V9h14v11z"}));nt(p.jsxs(w.Fragment,{children:[p.jsx("path",{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}),p.jsx("path",{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"})]}));const C$=nt(p.jsx("path",{d:"M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z"})),E$=({utils:e,format:t})=>{let n=10,r=t,a=e.expandFormat(t);for(;a!==r;)if(r=a,a=e.expandFormat(r),n-=1,n<0)throw new Error("MUI X: The format expansion seems to be in an infinite loop. Please open an issue with the format passed to the picker component.");return a},v$=({utils:e,expandedFormat:t})=>{const n=[],{start:r,end:a}=e.escapedCharacters,o=new RegExp(`(\\${r}[^\\${a}]*\\${a})+`,"g");let s=null;for(;s=o.exec(t);)n.push({start:s.index,end:o.lastIndex-1});return n},T$=(e,t,n,r)=>{switch(n.type){case"year":return t.fieldYearPlaceholder({digitAmount:e.formatByString(e.date(void 0,"default"),r).length,format:r});case"month":return t.fieldMonthPlaceholder({contentType:n.contentType,format:r});case"day":return t.fieldDayPlaceholder({format:r});case"weekDay":return t.fieldWeekDayPlaceholder({contentType:n.contentType,format:r});case"hours":return t.fieldHoursPlaceholder({format:r});case"minutes":return t.fieldMinutesPlaceholder({format:r});case"seconds":return t.fieldSecondsPlaceholder({format:r});case"meridiem":return t.fieldMeridiemPlaceholder({format:r});default:return r}},k$=({utils:e,date:t,shouldRespectLeadingZeros:n,localeText:r,localizedDigits:a,now:o,token:s,startSeparator:i})=>{if(s==="")throw new Error("MUI X: Should not call `commitToken` with an empty token");const l=vx(e,s),u=wx(e,l.contentType,l.type,s),c=n?u:l.contentType==="digit",d=t!=null&&e.isValid(t);let m=d?e.formatByString(t,s):"",f=null;if(c)if(u)f=m===""?e.formatByString(o,s).length:m.length;else{if(l.maxLength==null)throw new Error(`MUI X: The token ${s} should have a 'maxDigitNumber' property on it's adapter`);f=l.maxLength,d&&(m=rf(kx($a(m,a),f),a))}return U({},l,{format:s,maxLength:f,value:m,placeholder:T$(e,r,l,s),hasLeadingZerosInFormat:u,hasLeadingZerosInInput:c,startSeparator:i,endSeparator:"",modified:!1})},S$=e=>{const{utils:t,expandedFormat:n,escapedParts:r}=e,a=t.date(void 0),o=[];let s="";const i=Object.keys(t.formatTokenMap).sort((f,h)=>h.length-f.length),l=/^([a-zA-Z]+)/,u=new RegExp(`^(${i.join("|")})*$`),c=new RegExp(`^(${i.join("|")})`),d=f=>r.find(h=>h.start<=f&&h.end>=f);let m=0;for(;m<n.length;){const f=d(m),h=f!=null,b=l.exec(n.slice(m))?.[1];if(!h&&b!=null&&u.test(b)){let g=b;for(;g.length>0;){const x=c.exec(g)[1];g=g.slice(x.length),o.push(k$(U({},e,{now:a,token:x,startSeparator:s}))),s=""}m+=b.length}else{const g=n[m];h&&f?.start===m||f?.end===m||(o.length===0?s+=g:o[o.length-1].endSeparator+=g),m+=1}}return o.length===0&&s.length>0&&o.push({type:"empty",contentType:"letter",maxLength:null,format:"",value:"",placeholder:"",hasLeadingZerosInFormat:!1,hasLeadingZerosInInput:!1,startSeparator:s,endSeparator:"",modified:!1}),o},w$=({isRtl:e,formatDensity:t,sections:n})=>n.map(r=>{const a=o=>{let s=o;return e&&s!==null&&s.includes(" ")&&(s=`⁩${s}⁦`),t==="spacious"&&["/",".","-"].includes(s)&&(s=` ${s} `),s};return r.startSeparator=a(r.startSeparator),r.endSeparator=a(r.endSeparator),r}),n0=e=>{let t=E$(e);e.isRtl&&e.enableAccessibleFieldDOMStructure&&(t=t.split(" ").reverse().join(" "));const n=v$(U({},e,{expandedFormat:t})),r=S$(U({},e,{expandedFormat:t,escapedParts:n}));return w$(U({},e,{sections:r}))},_$=e=>{const t=Pt(),n=Vr(),r=Va(),a=Qn(),{valueManager:o,fieldValueManager:s,valueType:i,validator:l,internalProps:u,internalProps:{value:c,defaultValue:d,referenceDate:m,onChange:f,format:h,formatDensity:b="dense",selectedSections:g,onSelectedSectionsChange:x,shouldRespectLeadingZeros:C=!1,timezone:E,enableAccessibleFieldDOMStructure:k=!1}}=e,{timezone:T,value:S,handleValueChange:O}=of({timezone:E,value:c,defaultValue:d,referenceDate:m,onChange:f,valueManager:o}),M=w.useMemo(()=>wF(t),[t]),$=w.useMemo(()=>RF(t,M,T),[t,M,T]),P=w.useCallback((Z,Y=null)=>s.getSectionsFromValue(t,Z,Y,te=>n0({utils:t,localeText:n,localizedDigits:M,format:h,date:te,formatDensity:b,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:k,isRtl:a})),[s,h,n,M,a,C,t,b,k]),[L,v]=w.useState(()=>{const Z=P(S),Y={sections:Z,value:S,referenceValue:o.emptyValue,tempValueStrAndroid:null},te=vF(Z),X=o.getInitialReferenceValue({referenceDate:m,value:S,utils:t,props:u,granularity:te,timezone:T});return U({},Y,{referenceValue:X})}),[N,I]=An({controlled:g,default:null,name:"useField",state:"selectedSections"}),A=Z=>{I(Z),x?.(Z)},R=w.useMemo(()=>$d(N,L.sections),[N,L.sections]),W=R==="all"?0:R,H=({value:Z,referenceValue:Y,sections:te})=>{if(v(re=>U({},re,{sections:te,value:Z,referenceValue:Y,tempValueStrAndroid:null})),o.areValuesEqual(t,L.value,Z))return;const X={validationError:l({adapter:r,value:Z,timezone:T,props:u})};O(Z,X)},B=(Z,Y)=>{const te=[...L.sections];return te[Z]=U({},te[Z],{value:Y,modified:!0}),te},_=()=>{H({value:o.emptyValue,referenceValue:L.referenceValue,sections:P(o.emptyValue)})},V=()=>{if(W==null)return;const Z=L.sections[W],Y=s.getActiveDateManager(t,L,Z),X=Y.getSections(L.sections).filter(se=>se.value!=="").length===(Z.value===""?0:1),re=B(W,""),Q=X?null:t.getInvalidDate(),G=Y.getNewValuesFromNewActiveDate(Q);H(U({},G,{sections:re}))},J=Z=>{const Y=(re,Q)=>{const G=t.parse(re,h);if(G==null||!t.isValid(G))return null;const se=n0({utils:t,localeText:n,localizedDigits:M,format:h,date:G,formatDensity:b,shouldRespectLeadingZeros:C,enableAccessibleFieldDOMStructure:k,isRtl:a});return Kg(t,G,se,Q,!1)},te=s.parseValueStr(Z,L.referenceValue,Y),X=s.updateReferenceValue(t,te,L.referenceValue);H({value:te,referenceValue:X,sections:P(te,L.sections)})},F=({activeSection:Z,newSectionValue:Y,shouldGoToNextSection:te})=>{te&&W<L.sections.length-1&&A(W+1);const X=s.getActiveDateManager(t,L,Z),re=B(W,Y),Q=X.getSections(re),G=AF(t,Q,M);let se,ee;if(G!=null&&t.isValid(G)){const ne=Kg(t,G,Q,X.referenceDate,!0);se=X.getNewValuesFromNewActiveDate(ne),ee=!0}else se=X.getNewValuesFromNewActiveDate(G),ee=(G!=null&&!t.isValid(G))!=(X.date!=null&&!t.isValid(X.date));return ee?H(U({},se,{sections:re})):v(ne=>U({},ne,se,{sections:re,tempValueStrAndroid:null}))},de=Z=>v(Y=>U({},Y,{tempValueStrAndroid:Z}));return w.useEffect(()=>{const Z=P(L.value);v(Y=>U({},Y,{sections:Z}))},[h,t.locale,a]),w.useEffect(()=>{let Z;o.areValuesEqual(t,L.value,S)?Z=o.getTimezone(t,L.value)!==o.getTimezone(t,S):Z=!0,Z&&v(Y=>U({},Y,{value:S,referenceValue:s.updateReferenceValue(t,S,Y.referenceValue),sections:P(S)}))},[S]),{state:L,activeSectionIndex:W,parsedSelectedSections:R,setSelectedSections:A,clearValue:_,clearActiveSection:V,updateSectionValue:F,updateValueFromValueStr:J,setTempAndroidValueStr:de,getSectionsFromValue:P,sectionsValueBoundaries:$,localizedDigits:M,timezone:T}},I$=5e3,ro=e=>e.saveQuery!=null,A$=({sections:e,updateSectionValue:t,sectionsValueBoundaries:n,localizedDigits:r,setTempAndroidValueStr:a,timezone:o})=>{const s=Pt(),[i,l]=w.useState(null),u=Ae(()=>l(null));w.useEffect(()=>{i!=null&&e[i.sectionIndex]?.type!==i.sectionType&&u()},[e,i,u]),w.useEffect(()=>{if(i!=null){const h=setTimeout(()=>u(),I$);return()=>{clearTimeout(h)}}return()=>{}},[i,u]);const c=({keyPressed:h,sectionIndex:b},g,x)=>{const C=h.toLowerCase(),E=e[b];if(i!=null&&(!x||x(i.value))&&i.sectionIndex===b){const T=`${i.value}${C}`,S=g(T,E);if(!ro(S))return l({sectionIndex:b,value:T,sectionType:E.type}),S}const k=g(C,E);return ro(k)&&!k.saveQuery?(u(),null):(l({sectionIndex:b,value:C,sectionType:E.type}),ro(k)?null:k)},d=h=>{const b=(C,E,k)=>{const T=E.filter(S=>S.toLowerCase().startsWith(k));return T.length===0?{saveQuery:!1}:{sectionValue:T[0],shouldGoToNextSection:T.length===1}},g=(C,E,k,T)=>{const S=O=>Tx(s,o,E.type,O);if(E.contentType==="letter")return b(E.format,S(E.format),C);if(k&&T!=null&&vx(s,k).contentType==="letter"){const O=S(k),M=b(k,O,C);return ro(M)?{saveQuery:!1}:U({},M,{sectionValue:T(M.sectionValue,O)})}return{saveQuery:!1}};return c(h,(C,E)=>{switch(E.type){case"month":{const k=T=>Yg(s,T,s.formats.month,E.format);return g(C,E,s.formats.month,k)}case"weekDay":{const k=(T,S)=>S.indexOf(T).toString();return g(C,E,s.formats.weekday,k)}case"meridiem":return g(C,E);default:return{saveQuery:!1}}})},m=h=>{const b=(x,C)=>{const E=$a(x,r),k=Number(E),T=n[C.type]({currentDate:null,format:C.format,contentType:C.contentType});if(k>T.maximum)return{saveQuery:!1};if(k<T.minimum)return{saveQuery:!0};const S=k*10>T.maximum||E.length===T.maximum.toString().length;return{sectionValue:Sx(s,k,T,r,C),shouldGoToNextSection:S}};return c(h,(x,C)=>{if(C.contentType==="digit"||C.contentType==="digit-with-letter")return b(x,C);if(C.type==="month"){wx(s,"digit","month","MM");const E=b(x,{type:C.type,format:"MM",hasLeadingZerosInInput:!0,contentType:"digit",maxLength:2});if(ro(E))return E;const k=Yg(s,E.sectionValue,"MM",C.format);return U({},E,{sectionValue:k})}if(C.type==="weekDay"){const E=b(x,C);if(ro(E))return E;const k=Ru(s,C.format)[Number(E.sectionValue)-1];return U({},E,{sectionValue:k})}return{saveQuery:!1}},x=>qg(x,r))};return{applyCharacterEditing:Ae(h=>{const b=e[h.sectionIndex],x=qg(h.keyPressed,r)?m(U({},h,{keyPressed:rf(h.keyPressed,r)})):d(h);if(x==null){a(null);return}t({activeSection:b,newSectionValue:x.sectionValue,shouldGoToNextSection:x.shouldGoToNextSection})}),resetCharacterQuery:u}},D$=e=>{const{internalProps:{disabled:t,readOnly:n=!1},forwardedProps:{sectionListRef:r,onBlur:a,onClick:o,onFocus:s,onInput:i,onPaste:l,focused:u,autoFocus:c=!1},fieldValueManager:d,applyCharacterEditing:m,resetCharacterQuery:f,setSelectedSections:h,parsedSelectedSections:b,state:g,clearActiveSection:x,clearValue:C,updateSectionValue:E,updateValueFromValueStr:k,sectionOrder:T,areAllSectionsEmpty:S,sectionsValueBoundaries:O}=e,M=w.useRef(null),$=ot(r,M),P=Vr(),L=Pt(),v=or(),[N,I]=w.useState(!1),A=w.useMemo(()=>({syncSelectionToDOM:()=>{if(!M.current)return;const ee=document.getSelection();if(!ee)return;if(b==null){ee.rangeCount>0&&M.current.getRoot().contains(ee.getRangeAt(0).startContainer)&&ee.removeAllRanges(),N&&M.current.getRoot().blur();return}if(!M.current.getRoot().contains(xn(document)))return;const ne=new window.Range;let xe;b==="all"?xe=M.current.getRoot():g.sections[b].type==="empty"?xe=M.current.getSectionContainer(b):xe=M.current.getSectionContent(b),ne.selectNodeContents(xe),xe.focus(),ee.removeAllRanges(),ee.addRange(ne)},getActiveSectionIndexFromDOM:()=>{const ee=xn(document);return!ee||!M.current||!M.current.getRoot().contains(ee)?null:M.current.getSectionIndexFromDOMElement(ee)},focusField:(ee=0)=>{if(!M.current||A.getActiveSectionIndexFromDOM()!=null)return;const ne=$d(ee,g.sections);I(!0),M.current.getSectionContent(ne).focus()},setSelectedSections:ee=>{if(!M.current)return;const ne=$d(ee,g.sections);I((ne==="all"?0:ne)!==null),h(ee)},isFieldFocused:()=>{const ee=xn(document);return!!M.current&&M.current.getRoot().contains(ee)}}),[b,h,g.sections,N]),R=Ae(ee=>{if(!M.current)return;const ne=g.sections[ee];M.current.getSectionContent(ee).innerHTML=ne.value||ne.placeholder,A.syncSelectionToDOM()}),W=Ae((ee,...ne)=>{ee.isDefaultPrevented()||!M.current||(I(!0),o?.(ee,...ne),b==="all"?setTimeout(()=>{const xe=document.getSelection().getRangeAt(0).startOffset;if(xe===0){h(T.startIndex);return}let pe=0,be=0;for(;be<xe&&pe<g.sections.length;){const le=g.sections[pe];pe+=1,be+=`${le.startSeparator}${le.value||le.placeholder}${le.endSeparator}`.length}h(pe-1)}):N?M.current.getRoot().contains(ee.target)||h(T.startIndex):(I(!0),h(T.startIndex)))}),H=Ae(ee=>{if(i?.(ee),!M.current||b!=="all")return;const xe=ee.target.textContent??"";M.current.getRoot().innerHTML=g.sections.map(pe=>`${pe.startSeparator}${pe.value||pe.placeholder}${pe.endSeparator}`).join(""),A.syncSelectionToDOM(),xe.length===0||xe.charCodeAt(0)===10?(f(),C(),h("all")):xe.length>1?k(xe):(b==="all"&&h(0),m({keyPressed:xe,sectionIndex:0}))}),B=Ae(ee=>{if(l?.(ee),n||b!=="all"){ee.preventDefault();return}const ne=ee.clipboardData.getData("text");ee.preventDefault(),f(),k(ne)}),_=Ae((...ee)=>{if(s?.(...ee),N||!M.current)return;I(!0),M.current.getSectionIndexFromDOMElement(xn(document))!=null||h(T.startIndex)}),V=Ae((...ee)=>{a?.(...ee),setTimeout(()=>{if(!M.current)return;const ne=xn(document);!M.current.getRoot().contains(ne)&&(I(!1),h(null))})}),J=Ae(ee=>ne=>{ne.isDefaultPrevented()||h(ee)}),F=Ae(ee=>{ee.preventDefault()}),de=Ae(ee=>()=>{h(ee)}),Z=Ae(ee=>{if(ee.preventDefault(),n||t||typeof b!="number")return;const ne=g.sections[b],xe=ee.clipboardData.getData("text"),pe=/^[a-zA-Z]+$/.test(xe),be=/^[0-9]+$/.test(xe),le=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(xe);ne.contentType==="letter"&&pe||ne.contentType==="digit"&&be||ne.contentType==="digit-with-letter"&&le?(f(),E({activeSection:ne,newSectionValue:xe,shouldGoToNextSection:!0})):!pe&&!be&&(f(),k(xe))}),Y=Ae(ee=>{ee.preventDefault(),ee.dataTransfer.dropEffect="none"}),te=Ae(ee=>{if(!M.current)return;const ne=ee.target,xe=ne.textContent??"",pe=M.current.getSectionIndexFromDOMElement(ne),be=g.sections[pe];if(n||!M.current){R(pe);return}if(xe.length===0){if(be.value===""){R(pe);return}const le=ee.nativeEvent.inputType;if(le==="insertParagraph"||le==="insertLineBreak"){R(pe);return}f(),x();return}m({keyPressed:xe,sectionIndex:pe}),R(pe)});qt(()=>{if(!(!N||!M.current)){if(b==="all")M.current.getRoot().focus();else if(typeof b=="number"){const ee=M.current.getSectionContent(b);ee&&ee.focus()}}},[b,N]);const X=w.useMemo(()=>g.sections.reduce((ee,ne)=>(ee[ne.type]=O[ne.type]({currentDate:null,contentType:ne.contentType,format:ne.format}),ee),{}),[O,g.sections]),re=b==="all",Q=w.useMemo(()=>g.sections.map((ee,ne)=>{const xe=!re&&!t&&!n;return{container:{"data-sectionindex":ne,onClick:J(ne)},content:{tabIndex:re||ne>0?-1:0,contentEditable:!re&&!t&&!n,role:"spinbutton",id:`${v}-${ee.type}`,"aria-labelledby":`${v}-${ee.type}`,"aria-readonly":n,"aria-valuenow":FF(ee,L),"aria-valuemin":X[ee.type].minimum,"aria-valuemax":X[ee.type].maximum,"aria-valuetext":ee.value?LF(ee,L):P.empty,"aria-label":P[ee.type],"aria-disabled":t,spellCheck:xe?!1:void 0,autoCapitalize:xe?"off":void 0,autoCorrect:xe?"off":void 0,[parseInt(w.version,10)>=17?"enterKeyHint":"enterkeyhint"]:xe?"next":void 0,children:ee.value||ee.placeholder,onInput:te,onPaste:Z,onFocus:de(ne),onDragOver:Y,onMouseUp:F,inputMode:ee.contentType==="letter"?"text":"numeric"},before:{children:ee.startSeparator},after:{children:ee.endSeparator}}}),[g.sections,de,Z,Y,te,J,F,t,n,re,P,L,X,v]),G=Ae(ee=>{k(ee.target.value)}),se=w.useMemo(()=>S?"":d.getV7HiddenInputValueFromSections(g.sections),[S,g.sections,d]);return w.useEffect(()=>{if(M.current==null)throw new Error(["MUI X: The `sectionListRef` prop has not been initialized by `PickersSectionList`","You probably tried to pass a component to the `textField` slot that contains an `<input />` element instead of a `PickersSectionList`.","","If you want to keep using an `<input />` HTML element for the editing, please remove the `enableAccessibleFieldDOMStructure` prop from your picker or field component:","","<DatePicker slots={{ textField: MyCustomTextField }} />","","Learn more about the field accessible DOM structure on the MUI documentation: https://mui.com/x/react-date-pickers/fields/#fields-to-edit-a-single-element"].join(`
213
- `));c&&M.current&&M.current.getSectionContent(T.startIndex).focus()},[]),{interactions:A,returnedValue:{autoFocus:c,readOnly:n,focused:u??N,sectionListRef:$,onBlur:V,onClick:W,onFocus:_,onInput:H,onPaste:B,enableAccessibleFieldDOMStructure:!0,elements:Q,tabIndex:b===0?-1:0,contentEditable:re,value:se,onChange:G,areAllSectionsEmpty:S}}},io=e=>e.replace(/[\u2066\u2067\u2068\u2069]/g,""),P$=(e,t,n)=>{let r=0,a=n?1:0;const o=[];for(let s=0;s<e.length;s+=1){const i=e[s],l=af(i,n?"input-rtl":"input-ltr",t),u=`${i.startSeparator}${l}${i.endSeparator}`,c=io(u).length,d=u.length,m=io(l),f=a+(m===""?0:l.indexOf(m[0]))+i.startSeparator.length,h=f+m.length;o.push(U({},i,{start:r,end:r+c,startInInput:f,endInInput:h})),r+=c,a+=d}return o},R$=e=>{const t=Qn(),n=w.useRef(void 0),r=w.useRef(void 0),{forwardedProps:{onFocus:a,onClick:o,onPaste:s,onBlur:i,inputRef:l,placeholder:u},internalProps:{readOnly:c=!1,disabled:d=!1},parsedSelectedSections:m,activeSectionIndex:f,state:h,fieldValueManager:b,valueManager:g,applyCharacterEditing:x,resetCharacterQuery:C,updateSectionValue:E,updateValueFromValueStr:k,clearActiveSection:T,clearValue:S,setTempAndroidValueStr:O,setSelectedSections:M,getSectionsFromValue:$,areAllSectionsEmpty:P,localizedDigits:L}=e,v=w.useRef(null),N=ot(l,v),I=w.useMemo(()=>P$(h.sections,L,t),[h.sections,L,t]),A=w.useMemo(()=>({syncSelectionToDOM:()=>{if(!v.current)return;if(m==null){v.current.scrollLeft&&(v.current.scrollLeft=0);return}if(v.current!==xn(document))return;const te=v.current.scrollTop;if(m==="all")v.current.select();else{const X=I[m],re=X.type==="empty"?X.startInInput-X.startSeparator.length:X.startInInput,Q=X.type==="empty"?X.endInInput+X.endSeparator.length:X.endInInput;(re!==v.current.selectionStart||Q!==v.current.selectionEnd)&&v.current===xn(document)&&v.current.setSelectionRange(re,Q),clearTimeout(r.current),r.current=setTimeout(()=>{v.current&&v.current===xn(document)&&v.current.selectionStart===v.current.selectionEnd&&(v.current.selectionStart!==re||v.current.selectionEnd!==Q)&&A.syncSelectionToDOM()})}v.current.scrollTop=te},getActiveSectionIndexFromDOM:()=>{const te=v.current.selectionStart??0,X=v.current.selectionEnd??0;if(te===0&&X===0)return null;const re=te<=I[0].startInInput?1:I.findIndex(Q=>Q.startInInput-Q.startSeparator.length>te);return re===-1?I.length-1:re-1},focusField:(te=0)=>{xn(document)!==v.current&&(v.current?.focus(),M(te))},setSelectedSections:te=>M(te),isFieldFocused:()=>v.current===xn(document)}),[v,m,I,M]),R=()=>{const te=v.current.selectionStart??0;let X;te<=I[0].startInInput||te>=I[I.length-1].endInInput?X=1:X=I.findIndex(Q=>Q.startInInput-Q.startSeparator.length>te);const re=X===-1?I.length-1:X-1;M(re)},W=Ae((...te)=>{a?.(...te);const X=v.current;clearTimeout(n.current),n.current=setTimeout(()=>{!X||X!==v.current||f==null&&(X.value.length&&Number(X.selectionEnd)-Number(X.selectionStart)===X.value.length?M("all"):R())})}),H=Ae((te,...X)=>{te.isDefaultPrevented()||(o?.(te,...X),R())}),B=Ae(te=>{if(s?.(te),te.preventDefault(),c||d)return;const X=te.clipboardData.getData("text");if(typeof m=="number"){const re=h.sections[m],Q=/^[a-zA-Z]+$/.test(X),G=/^[0-9]+$/.test(X),se=/^(([a-zA-Z]+)|)([0-9]+)(([a-zA-Z]+)|)$/.test(X);if(re.contentType==="letter"&&Q||re.contentType==="digit"&&G||re.contentType==="digit-with-letter"&&se){C(),E({activeSection:re,newSectionValue:X,shouldGoToNextSection:!0});return}if(Q||G)return}C(),k(X)}),_=Ae((...te)=>{i?.(...te),M(null)}),V=Ae(te=>{if(c)return;const X=te.target.value;if(X===""){C(),S();return}const re=te.nativeEvent.data,Q=re&&re.length>1,G=Q?re:X,se=io(G);if(m==="all"&&M(f),f==null||Q){k(Q?re:se);return}let ee;if(m==="all"&&se.length===1)ee=se;else{const ne=io(b.getV6InputValueFromSections(I,L,t));let xe=-1,pe=-1;for(let Te=0;Te<ne.length;Te+=1)xe===-1&&ne[Te]!==se[Te]&&(xe=Te),pe===-1&&ne[ne.length-Te-1]!==se[se.length-Te-1]&&(pe=Te);const be=I[f];if(xe<be.start||ne.length-pe-1>be.end)return;const Pe=se.length-ne.length+be.end-io(be.endSeparator||"").length;ee=se.slice(be.start+io(be.startSeparator||"").length,Pe)}if(ee.length===0){NF()&&O(G),C(),T();return}x({keyPressed:ee,sectionIndex:f})}),J=w.useMemo(()=>u!==void 0?u:b.getV6InputValueFromSections($(g.emptyValue),L,t),[u,b,$,g.emptyValue,L,t]),F=w.useMemo(()=>h.tempValueStrAndroid??b.getV6InputValueFromSections(h.sections,L,t),[h.sections,b,h.tempValueStrAndroid,L,t]);w.useEffect(()=>(v.current&&v.current===xn(document)&&M("all"),()=>{clearTimeout(n.current),clearTimeout(r.current)}),[]);const de=w.useMemo(()=>f==null||h.sections[f].contentType==="letter"?"text":"numeric",[f,h.sections]),Y=!(v.current&&v.current===xn(document))&&P;return{interactions:A,returnedValue:{readOnly:c,onBlur:_,onClick:H,onFocus:W,onPaste:B,inputRef:N,enableAccessibleFieldDOMStructure:!1,placeholder:J,inputMode:de,autoComplete:"off",value:Y?"":F,onChange:V}}},M$=e=>{const t=Pt(),{internalProps:n,internalProps:{unstableFieldRef:r,minutesStep:a,enableAccessibleFieldDOMStructure:o=!1,disabled:s=!1,readOnly:i=!1},forwardedProps:{onKeyDown:l,error:u,clearable:c,onClear:d},fieldValueManager:m,valueManager:f,validator:h}=e,b=Qn(),g=_$(e),{state:x,activeSectionIndex:C,parsedSelectedSections:E,setSelectedSections:k,clearValue:T,clearActiveSection:S,updateSectionValue:O,setTempAndroidValueStr:M,sectionsValueBoundaries:$,localizedDigits:P,timezone:L}=g,v=A$({sections:x.sections,updateSectionValue:O,sectionsValueBoundaries:$,localizedDigits:P,setTempAndroidValueStr:M,timezone:L}),{resetCharacterQuery:N}=v,I=f.areValuesEqual(t,x.value,f.emptyValue),A=o?D$:R$,R=w.useMemo(()=>OF(x.sections,b&&!o),[x.sections,b,o]),{returnedValue:W,interactions:H}=A(U({},e,g,v,{areAllSectionsEmpty:I,sectionOrder:R})),B=Ae(Z=>{if(l?.(Z),!s)switch(!0){case((Z.ctrlKey||Z.metaKey)&&String.fromCharCode(Z.keyCode)==="A"&&!Z.shiftKey&&!Z.altKey):{Z.preventDefault(),k("all");break}case Z.key==="ArrowRight":{if(Z.preventDefault(),E==null)k(R.startIndex);else if(E==="all")k(R.endIndex);else{const Y=R.neighbors[E].rightIndex;Y!==null&&k(Y)}break}case Z.key==="ArrowLeft":{if(Z.preventDefault(),E==null)k(R.endIndex);else if(E==="all")k(R.startIndex);else{const Y=R.neighbors[E].leftIndex;Y!==null&&k(Y)}break}case Z.key==="Delete":{if(Z.preventDefault(),i)break;E==null||E==="all"?T():S(),N();break}case["ArrowUp","ArrowDown","Home","End","PageUp","PageDown"].includes(Z.key):{if(Z.preventDefault(),i||C==null)break;E==="all"&&k(C);const Y=x.sections[C],te=m.getActiveDateManager(t,x,Y),X=_F(t,L,Y,Z.key,$,P,te.date,{minutesStep:a});O({activeSection:Y,newSectionValue:X,shouldGoToNextSection:!1});break}}});qt(()=>{H.syncSelectionToDOM()});const{hasValidationError:_}=Rx({props:n,validator:h,timezone:L,value:x.value,onError:n.onError}),V=w.useMemo(()=>u!==void 0?u:_,[_,u]);w.useEffect(()=>{!V&&C==null&&N()},[x.referenceValue,C,V]),w.useEffect(()=>{x.tempValueStrAndroid!=null&&C!=null&&(N(),S())},[x.sections]),w.useImperativeHandle(r,()=>({getSections:()=>x.sections,getActiveSectionIndex:H.getActiveSectionIndexFromDOM,setSelectedSections:H.setSelectedSections,focusField:H.focusField,isFieldFocused:H.isFieldFocused}));const J=Ae((Z,...Y)=>{Z.preventDefault(),d?.(Z,...Y),T(),H.isFieldFocused()?k(R.startIndex):H.focusField(0)}),F={onKeyDown:B,onClear:J,error:V,clearable:!!(c&&!I&&!i&&!s)},de={disabled:s,readOnly:i};return U({},e.forwardedProps,F,de,W)},N$=["clearable","onClear","InputProps","sx","slots","slotProps"],O$=["ownerState"],L$=e=>{const t=Vr(),{clearable:n,onClear:r,InputProps:a,sx:o,slots:s,slotProps:i}=e,l=je(e,N$),u=s?.clearButton??Mn,c=at({elementType:u,externalSlotProps:i?.clearButton,ownerState:{},className:"clearButton",additionalProps:{title:t.fieldClearLabel}}),d=je(c,O$),m=s?.clearIcon??C$,f=at({elementType:m,externalSlotProps:i?.clearIcon,ownerState:{}});return U({},l,{InputProps:U({},a,{endAdornment:p.jsxs(w.Fragment,{children:[n&&p.jsx(Mx,{position:"end",sx:{marginRight:a?.endAdornment?-1:-1.5},children:p.jsx(u,U({},d,{onClick:r,children:p.jsx(m,U({fontSize:"small"},f))}))}),a?.endAdornment]})}),sx:[{"& .clearButton":{opacity:1},"@media (pointer: fine)":{"& .clearButton":{opacity:0},"&:hover, &:focus-within":{".clearButton":{opacity:1}}}},...Array.isArray(o)?o:[o]]})},F$=["value","defaultValue","referenceDate","format","formatDensity","onChange","timezone","onError","shouldRespectLeadingZeros","selectedSections","onSelectedSectionsChange","unstableFieldRef","enableAccessibleFieldDOMStructure","disabled","readOnly","dateSeparator"],$$=(e,t)=>w.useMemo(()=>{const n=U({},e),r={},a=o=>{n.hasOwnProperty(o)&&(r[o]=n[o],delete n[o])};return F$.forEach(a),Dx.forEach(a),{forwardedProps:n,internalProps:r}},[e,t]),B$=e=>{const t=Pt(),n=Ei();return U({},e,{disablePast:e.disablePast??!1,disableFuture:e.disableFuture??!1,format:e.format??t.formats.keyboardDate,minDate:Gn(t,e.minDate,n.minDate),maxDate:Gn(t,e.maxDate,n.maxDate)})},j$=e=>{const t=B$(e),{forwardedProps:n,internalProps:r}=$$(t,"date");return M$({forwardedProps:n,internalProps:r,valueManager:Cr,fieldValueManager:BF,validator:vi,valueType:"date"})};function H$(e){return Fe("MuiPickersTextField",e)}Re("MuiPickersTextField",["root","focused","disabled","error","required"]);function U$(e){return Fe("MuiPickersInputBase",e)}const bo=Re("MuiPickersInputBase",["root","focused","disabled","error","notchedOutline","sectionContent","sectionBefore","sectionAfter","adornedStart","adornedEnd","input"]);function z$(e){return Fe("MuiPickersSectionList",e)}const ps=Re("MuiPickersSectionList",["root","section","sectionContent"]),V$=["slots","slotProps","elements","sectionListRef"],Ux=oe("div",{name:"MuiPickersSectionList",slot:"Root",overridesResolver:(e,t)=>t.root})({direction:"ltr /*! @noflip */",outline:"none"}),zx=oe("span",{name:"MuiPickersSectionList",slot:"Section",overridesResolver:(e,t)=>t.section})({}),Vx=oe("span",{name:"MuiPickersSectionList",slot:"SectionSeparator",overridesResolver:(e,t)=>t.sectionSeparator})({whiteSpace:"pre"}),Wx=oe("span",{name:"MuiPickersSectionList",slot:"SectionContent",overridesResolver:(e,t)=>t.sectionContent})({outline:"none"}),W$=e=>{const{classes:t}=e;return Le({root:["root"],section:["section"],sectionContent:["sectionContent"]},z$,t)};function q$(e){const{slots:t,slotProps:n,element:r,classes:a}=e,o=t?.section??zx,s=at({elementType:o,externalSlotProps:n?.section,externalForwardedProps:r.container,className:a.section,ownerState:{}}),i=t?.sectionContent??Wx,l=at({elementType:i,externalSlotProps:n?.sectionContent,externalForwardedProps:r.content,additionalProps:{suppressContentEditableWarning:!0},className:a.sectionContent,ownerState:{}}),u=t?.sectionSeparator??Vx,c=at({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.before,ownerState:{position:"before"}}),d=at({elementType:u,externalSlotProps:n?.sectionSeparator,externalForwardedProps:r.after,ownerState:{position:"after"}});return p.jsxs(o,U({},s,{children:[p.jsx(u,U({},c)),p.jsx(i,U({},l)),p.jsx(u,U({},d))]}))}const Y$=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersSectionList"}),{slots:a,slotProps:o,elements:s,sectionListRef:i}=r,l=je(r,V$),u=W$(r),c=w.useRef(null),d=ot(n,c),m=b=>{if(!c.current)throw new Error(`MUI X: Cannot call sectionListRef.${b} before the mount of the component.`);return c.current};w.useImperativeHandle(i,()=>({getRoot(){return m("getRoot")},getSectionContainer(b){return m("getSectionContainer").querySelector(`.${ps.section}[data-sectionindex="${b}"]`)},getSectionContent(b){return m("getSectionContent").querySelector(`.${ps.section}[data-sectionindex="${b}"] .${ps.sectionContent}`)},getSectionIndexFromDOMElement(b){const g=m("getSectionIndexFromDOMElement");if(b==null||!g.contains(b))return null;let x=null;return b.classList.contains(ps.section)?x=b:b.classList.contains(ps.sectionContent)&&(x=b.parentElement),x==null?null:Number(x.dataset.sectionindex)}}));const f=a?.root??Ux,h=at({elementType:f,externalSlotProps:o?.root,externalForwardedProps:l,additionalProps:{ref:d,suppressContentEditableWarning:!0},className:u.root,ownerState:{}});return p.jsx(f,U({},h,{children:h.contentEditable?s.map(({content:b,before:g,after:x})=>`${g.children}${b.children}${x.children}`).join(""):p.jsx(w.Fragment,{children:s.map((b,g)=>p.jsx(q$,{slots:a,slotProps:o,element:b,classes:u},g))})}))}),G$=["elements","areAllSectionsEmpty","defaultValue","label","value","onChange","id","autoFocus","endAdornment","startAdornment","renderSuffix","slots","slotProps","contentEditable","tabIndex","onInput","onPaste","onKeyDown","fullWidth","name","readOnly","inputProps","inputRef","sectionListRef"],K$=e=>Math.round(e*1e5)/1e5,Lu=oe("div",{name:"MuiPickersInputBase",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>U({},e.typography.body1,{color:(e.vars||e).palette.text.primary,cursor:"text",padding:0,display:"flex",justifyContent:"flex-start",alignItems:"center",position:"relative",boxSizing:"border-box",letterSpacing:`${K$(.15/16)}em`,variants:[{props:{fullWidth:!0},style:{width:"100%"}}]})),uf=oe(Ux,{name:"MuiPickersInputBase",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})(({theme:e})=>({padding:"4px 0 5px",fontFamily:e.typography.fontFamily,fontSize:"inherit",lineHeight:"1.4375em",flexGrow:1,outline:"none",display:"flex",flexWrap:"nowrap",overflow:"hidden",letterSpacing:"inherit",width:"182px",variants:[{props:{isRtl:!0},style:{textAlign:"right /*! @noflip */"}},{props:{size:"small"},style:{paddingTop:1}},{props:{adornedStart:!1,focused:!1,filled:!1},style:{color:"currentColor",opacity:0}},{props:({adornedStart:t,focused:n,filled:r,label:a})=>!t&&!n&&!r&&a==null,style:e.vars?{opacity:e.vars.opacity.inputPlaceholder}:{opacity:e.palette.mode==="light"?.42:.5}}]})),Q$=oe(zx,{name:"MuiPickersInputBase",slot:"Section",overridesResolver:(e,t)=>t.section})(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit",letterSpacing:"inherit",lineHeight:"1.4375em",display:"inline-block",whiteSpace:"nowrap"})),X$=oe(Wx,{name:"MuiPickersInputBase",slot:"SectionContent",overridesResolver:(e,t)=>t.content})(({theme:e})=>({fontFamily:e.typography.fontFamily,lineHeight:"1.4375em",letterSpacing:"inherit",width:"fit-content",outline:"none"})),Z$=oe(Vx,{name:"MuiPickersInputBase",slot:"Separator",overridesResolver:(e,t)=>t.separator})(()=>({whiteSpace:"pre",letterSpacing:"inherit"})),J$=oe("input",{name:"MuiPickersInputBase",slot:"Input",overridesResolver:(e,t)=>t.hiddenInput})(U({},fF)),eB=e=>{const{focused:t,disabled:n,error:r,classes:a,fullWidth:o,readOnly:s,color:i,size:l,endAdornment:u,startAdornment:c}=e,d={root:["root",t&&!n&&"focused",n&&"disabled",s&&"readOnly",r&&"error",o&&"fullWidth",`color${Se(i)}`,l==="small"&&"inputSizeSmall",!!c&&"adornedStart",!!u&&"adornedEnd"],notchedOutline:["notchedOutline"],input:["input"],sectionsContainer:["sectionsContainer"],sectionContent:["sectionContent"],sectionBefore:["sectionBefore"],sectionAfter:["sectionAfter"]};return Le(d,U$,a)},cf=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersInputBase"}),{elements:a,areAllSectionsEmpty:o,value:s,onChange:i,id:l,endAdornment:u,startAdornment:c,renderSuffix:d,slots:m,slotProps:f,contentEditable:h,tabIndex:b,onInput:g,onPaste:x,onKeyDown:C,name:E,readOnly:k,inputProps:T,inputRef:S,sectionListRef:O}=r,M=je(r,G$),$=w.useRef(null),P=ot(n,$),L=ot(T?.ref,S),v=Qn(),N=Jn();if(!N)throw new Error("MUI X: PickersInputBase should always be used inside a PickersTextField component");const I=_=>{if(N.disabled){_.stopPropagation();return}N.onFocus?.(_)};w.useEffect(()=>{N&&N.setAdornedStart(!!c)},[N,c]),w.useEffect(()=>{N&&(o?N.onEmpty():N.onFilled())},[N,o]);const A=U({},r,N,{isRtl:v}),R=eB(A),W=m?.root||Lu,H=at({elementType:W,externalSlotProps:f?.root,externalForwardedProps:M,additionalProps:{"aria-invalid":N.error,ref:P},className:R.root,ownerState:A}),B=m?.input||uf;return p.jsxs(W,U({},H,{children:[c,p.jsx(Y$,{sectionListRef:O,elements:a,contentEditable:h,tabIndex:b,className:R.sectionsContainer,onFocus:I,onBlur:N.onBlur,onInput:g,onPaste:x,onKeyDown:C,slots:{root:B,section:Q$,sectionContent:X$,sectionSeparator:Z$},slotProps:{root:{ownerState:A},sectionContent:{className:bo.sectionContent},sectionSeparator:({position:_})=>({className:_==="before"?bo.sectionBefore:bo.sectionAfter})}}),u,d?d(U({},N)):null,p.jsx(J$,U({name:E,className:R.input,value:s,onChange:i,id:l,"aria-hidden":"true",tabIndex:-1,readOnly:k,required:N.required,disabled:N.disabled},T,{ref:L}))]}))});function tB(e){return Fe("MuiPickersOutlinedInput",e)}const nr=U({},bo,Re("MuiPickersOutlinedInput",["root","notchedOutline","input"])),nB=["children","className","label","notched","shrink"],rB=oe("fieldset",{name:"MuiPickersOutlinedInput",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{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%",borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}}),r0=oe("span")(({theme:e})=>({fontFamily:e.typography.fontFamily,fontSize:"inherit"})),aB=oe("legend")(({theme:e})=>({float:"unset",width:"auto",overflow:"hidden",variants:[{props:{withLabel:!1},style:{padding:0,lineHeight:"11px",transition:e.transitions.create("width",{duration:150,easing:e.transitions.easing.easeOut})}},{props:{withLabel:!0},style:{display:"block",padding:0,height:11,fontSize:"0.75em",visibility:"hidden",maxWidth:.01,transition:e.transitions.create("max-width",{duration:50,easing:e.transitions.easing.easeOut}),whiteSpace:"nowrap","& > span":{paddingLeft:5,paddingRight:5,display:"inline-block",opacity:0,visibility:"visible"}}},{props:{withLabel:!0,notched:!0},style:{maxWidth:"100%",transition:e.transitions.create("max-width",{duration:100,easing:e.transitions.easing.easeOut,delay:50})}}]}));function oB(e){const{className:t,label:n}=e,r=je(e,nB),a=n!=null&&n!=="",o=U({},e,{withLabel:a});return p.jsx(rB,U({"aria-hidden":!0,className:t},r,{ownerState:o,children:p.jsx(aB,{ownerState:o,children:a?p.jsx(r0,{children:n}):p.jsx(r0,{className:"notranslate",children:"​"})})}))}const sB=["label","autoFocus","ownerState","notched"],iB=oe(Lu,{name:"MuiPickersOutlinedInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{const t=e.palette.mode==="light"?"rgba(0, 0, 0, 0.23)":"rgba(255, 255, 255, 0.23)";return{padding:"0 14px",borderRadius:(e.vars||e).shape.borderRadius,[`&:hover .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.text.primary},"@media (hover: none)":{[`&:hover .${nr.notchedOutline}`]:{borderColor:e.vars?`rgba(${e.vars.palette.common.onBackgroundChannel} / 0.23)`:t}},[`&.${nr.focused} .${nr.notchedOutline}`]:{borderStyle:"solid",borderWidth:2},[`&.${nr.disabled}`]:{[`& .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.action.disabled},"*":{color:(e.vars||e).palette.action.disabled}},[`&.${nr.error} .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette.error.main},variants:Object.keys((e.vars??e).palette).filter(n=>(e.vars??e).palette[n]?.main??!1).map(n=>({props:{color:n},style:{[`&.${nr.focused}:not(.${nr.error}) .${nr.notchedOutline}`]:{borderColor:(e.vars||e).palette[n].main}}}))}}),lB=oe(uf,{name:"MuiPickersOutlinedInput",slot:"SectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({padding:"16.5px 0",variants:[{props:{size:"small"},style:{padding:"8.5px 0"}}]}),uB=e=>{const{classes:t}=e,r=Le({root:["root"],notchedOutline:["notchedOutline"],input:["input"]},tB,t);return U({},t,r)},qx=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersOutlinedInput"}),{label:a,ownerState:o,notched:s}=r,i=je(r,sB),l=Jn(),u=U({},r,o,l,{color:l?.color||"primary"}),c=uB(u);return p.jsx(cf,U({slots:{root:iB,input:lB},renderSuffix:d=>p.jsx(oB,{shrink:!!(s||d.adornedStart||d.focused||d.filled),notched:!!(s||d.adornedStart||d.focused||d.filled),className:c.notchedOutline,label:a!=null&&a!==""&&l?.required?p.jsxs(w.Fragment,{children:[a," ","*"]}):a,ownerState:u})},i,{label:a,classes:c,ref:n}))});qx.muiName="Input";function cB(e){return Fe("MuiPickersFilledInput",e)}const ha=U({},bo,Re("MuiPickersFilledInput",["root","underline","input"])),dB=["label","autoFocus","disableUnderline","ownerState"],pB=oe(Lu,{name:"MuiPickersFilledInput",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dt.shouldForwardProp(e)&&e!=="disableUnderline"})(({theme:e})=>{const t=e.palette.mode==="light",n=t?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)",r=t?"rgba(0, 0, 0, 0.06)":"rgba(255, 255, 255, 0.09)",a=t?"rgba(0, 0, 0, 0.09)":"rgba(255, 255, 255, 0.13)",o=t?"rgba(0, 0, 0, 0.12)":"rgba(255, 255, 255, 0.12)";return{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r,borderTopLeftRadius:(e.vars||e).shape.borderRadius,borderTopRightRadius:(e.vars||e).shape.borderRadius,transition:e.transitions.create("background-color",{duration:e.transitions.duration.shorter,easing:e.transitions.easing.easeOut}),"&:hover":{backgroundColor:e.vars?e.vars.palette.FilledInput.hoverBg:a,"@media (hover: none)":{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r}},[`&.${ha.focused}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.bg:r},[`&.${ha.disabled}`]:{backgroundColor:e.vars?e.vars.palette.FilledInput.disabledBg:o},variants:[...Object.keys((e.vars??e).palette).filter(s=>(e.vars??e).palette[s].main).map(s=>({props:{color:s,disableUnderline:!1},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[s]?.main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{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"},[`&.${ha.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${ha.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})`:n}`,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(.${ha.disabled}, .${ha.error}):before`]:{borderBottom:`1px solid ${(e.vars||e).palette.text.primary}`},[`&.${ha.disabled}:before`]:{borderBottomStyle:"dotted"}}},{props:({startAdornment:s})=>!!s,style:{paddingLeft:12}},{props:({endAdornment:s})=>!!s,style:{paddingRight:12}}]}}),fB=oe(uf,{name:"MuiPickersFilledInput",slot:"sectionsContainer",overridesResolver:(e,t)=>t.sectionsContainer})({paddingTop:25,paddingRight:12,paddingBottom:8,paddingLeft:12,variants:[{props:{size:"small"},style:{paddingTop:21,paddingBottom:4}},{props:({startAdornment:e})=>!!e,style:{paddingLeft:0}},{props:({endAdornment:e})=>!!e,style:{paddingRight:0}},{props:{hiddenLabel:!0},style:{paddingTop:16,paddingBottom:17}},{props:{hiddenLabel:!0,size:"small"},style:{paddingTop:8,paddingBottom:9}}]}),mB=e=>{const{classes:t,disableUnderline:n}=e,a=Le({root:["root",!n&&"underline"],input:["input"]},cB,t);return U({},t,a)},Yx=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersFilledInput"}),{label:a,disableUnderline:o=!1,ownerState:s}=r,i=je(r,dB),l=Jn(),u=U({},r,s,l,{color:l?.color||"primary"}),c=mB(u);return p.jsx(cf,U({slots:{root:pB,input:fB},slotProps:{root:{disableUnderline:o}}},i,{label:a,classes:c,ref:n}))});Yx.muiName="Input";function hB(e){return Fe("MuiPickersFilledInput",e)}const fs=U({},bo,Re("MuiPickersInput",["root","input"])),gB=["label","autoFocus","disableUnderline","ownerState"],bB=oe(Lu,{name:"MuiPickersInput",slot:"Root",overridesResolver:(e,t)=>t.root})(({theme:e})=>{let n=e.palette.mode==="light"?"rgba(0, 0, 0, 0.42)":"rgba(255, 255, 255, 0.7)";return e.vars&&(n=`rgba(${e.vars.palette.common.onBackgroundChannel} / ${e.vars.opacity.inputUnderline})`),{"label + &":{marginTop:16},variants:[...Object.keys((e.vars??e).palette).filter(r=>(e.vars??e).palette[r].main).map(r=>({props:{color:r},style:{"&::after":{borderBottom:`2px solid ${(e.vars||e).palette[r].main}`}}})),{props:{disableUnderline:!1},style:{"&::after":{background:"red",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"},[`&.${fs.focused}:after`]:{transform:"scaleX(1) translateX(0)"},[`&.${fs.error}`]:{"&:before, &:after":{borderBottomColor:(e.vars||e).palette.error.main}},"&::before":{borderBottom:`1px solid ${n}`,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(.${fs.disabled}, .${fs.error}):before`]:{borderBottom:`2px solid ${(e.vars||e).palette.text.primary}`,"@media (hover: none)":{borderBottom:`1px solid ${n}`}},[`&.${fs.disabled}:before`]:{borderBottomStyle:"dotted"}}}]}}),yB=e=>{const{classes:t,disableUnderline:n}=e,a=Le({root:["root",!n&&"underline"],input:["input"]},hB,t);return U({},t,a)},Gx=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersInput"}),{label:a,disableUnderline:o=!1,ownerState:s}=r,i=je(r,gB),l=Jn(),u=U({},r,s,l,{disableUnderline:o,color:l?.color||"primary"}),c=yB(u);return p.jsx(cf,U({slots:{root:bB}},i,{label:a,classes:c,ref:n}))});Gx.muiName="Input";const xB=["onFocus","onBlur","className","color","disabled","error","variant","required","InputProps","inputProps","inputRef","sectionListRef","elements","areAllSectionsEmpty","onClick","onKeyDown","onKeyUp","onPaste","onInput","endAdornment","startAdornment","tabIndex","contentEditable","focused","value","onChange","fullWidth","id","name","helperText","FormHelperTextProps","label","InputLabelProps"],CB={standard:Gx,filled:Yx,outlined:qx},EB=oe(ql,{name:"MuiPickersTextField",slot:"Root",overridesResolver:(e,t)=>t.root})({maxWidth:"100%"}),vB=e=>{const{focused:t,disabled:n,classes:r,required:a}=e;return Le({root:["root",t&&!n&&"focused",n&&"disabled",a&&"required"]},H$,r)},TB=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersTextField"}),{onFocus:a,onBlur:o,className:s,color:i="primary",disabled:l=!1,error:u=!1,variant:c="outlined",required:d=!1,InputProps:m,inputProps:f,inputRef:h,sectionListRef:b,elements:g,areAllSectionsEmpty:x,onClick:C,onKeyDown:E,onKeyUp:k,onPaste:T,onInput:S,endAdornment:O,startAdornment:M,tabIndex:$,contentEditable:P,focused:L,value:v,onChange:N,fullWidth:I,id:A,name:R,helperText:W,FormHelperTextProps:H,label:B,InputLabelProps:_}=r,V=je(r,xB),J=w.useRef(null),F=ot(n,J),de=or(A),Z=W&&de?`${de}-helper-text`:void 0,Y=B&&de?`${de}-label`:void 0,te=U({},r,{color:i,disabled:l,error:u,focused:L,required:d,variant:c}),X=vB(te),re=CB[c];return p.jsxs(EB,U({className:De(X.root,s),ref:F,focused:L,onFocus:a,onBlur:o,disabled:l,variant:c,error:u,color:i,fullWidth:I,required:d,ownerState:te},V,{children:[p.jsx(Yl,U({htmlFor:de,id:Y},_,{children:B})),p.jsx(re,U({elements:g,areAllSectionsEmpty:x,onClick:C,onKeyDown:E,onKeyUp:k,onInput:S,onPaste:T,endAdornment:O,startAdornment:M,tabIndex:$,contentEditable:P,value:v,onChange:N,id:de,fullWidth:I,inputProps:f,inputRef:h,sectionListRef:b,label:B,name:R,role:"group","aria-labelledby":Y,"aria-describedby":Z,"aria-live":Z?"polite":void 0},m)),W&&p.jsx(bx,U({id:Z},H,{children:W}))]}))}),kB=["enableAccessibleFieldDOMStructure"],SB=["InputProps","readOnly"],wB=["onPaste","onKeyDown","inputMode","readOnly","InputProps","inputProps","inputRef"],_B=e=>{let{enableAccessibleFieldDOMStructure:t}=e,n=je(e,kB);if(t){const{InputProps:d,readOnly:m}=n,f=je(n,SB);return U({},f,{InputProps:U({},d??{},{readOnly:m})})}const{onPaste:r,onKeyDown:a,inputMode:o,readOnly:s,InputProps:i,inputProps:l,inputRef:u}=n,c=je(n,wB);return U({},c,{InputProps:U({},i??{},{readOnly:s}),inputProps:U({},l??{},{inputMode:o,onPaste:r,onKeyDown:a,ref:u})})},IB=["slots","slotProps","InputProps","inputProps"],Kx=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDateField"}),{slots:a,slotProps:o,InputProps:s,inputProps:i}=r,l=je(r,IB),u=r,c=a?.textField??(t.enableAccessibleFieldDOMStructure?TB:Qe),d=at({elementType:c,externalSlotProps:o?.textField,externalForwardedProps:l,additionalProps:{ref:n},ownerState:u});d.inputProps=U({},i,d.inputProps),d.InputProps=U({},s,d.InputProps);const m=j$(d),f=_B(m),h=L$(U({},f,{slots:a,slotProps:o}));return p.jsx(c,U({},h))}),Qx=({shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:a,disableFuture:o,disablePast:s,timezone:i})=>{const l=Va();return w.useCallback(u=>vi({adapter:l,value:u,timezone:i,props:{shouldDisableDate:e,shouldDisableMonth:t,shouldDisableYear:n,minDate:r,maxDate:a,disableFuture:o,disablePast:s}})!==null,[l,e,t,n,r,a,o,s,i])},AB=(e,t,n)=>(r,a)=>{switch(a.type){case"changeMonth":return U({},r,{slideDirection:a.direction,currentMonth:a.newMonth,isMonthSwitchingAnimating:!e});case"changeMonthTimezone":{const o=a.newTimezone;if(n.getTimezone(r.currentMonth)===o)return r;let s=n.setTimezone(r.currentMonth,o);return n.getMonth(s)!==n.getMonth(r.currentMonth)&&(s=n.setMonth(s,n.getMonth(r.currentMonth))),U({},r,{currentMonth:s})}case"finishMonthSwitchingAnimation":return U({},r,{isMonthSwitchingAnimating:!1});case"changeFocusedDay":{if(r.focusedDay!=null&&a.focusedDay!=null&&n.isSameDay(a.focusedDay,r.focusedDay))return r;const o=a.focusedDay!=null&&!t&&!n.isSameMonth(r.currentMonth,a.focusedDay);return U({},r,{focusedDay:a.focusedDay,isMonthSwitchingAnimating:o&&!e&&!a.withoutMonthSwitchingAnimation,currentMonth:o?n.startOfMonth(a.focusedDay):r.currentMonth,slideDirection:a.focusedDay!=null&&n.isAfterDay(a.focusedDay,r.currentMonth)?"left":"right"})}default:throw new Error("missing support")}},DB=e=>{const{value:t,referenceDate:n,disableFuture:r,disablePast:a,disableSwitchToMonthOnDayFocus:o=!1,maxDate:s,minDate:i,onMonthChange:l,reduceAnimations:u,shouldDisableDate:c,timezone:d}=e,m=Pt(),f=w.useRef(AB(!!u,o,m)).current,h=w.useMemo(()=>Cr.getInitialReferenceValue({value:t,utils:m,timezone:d,props:e,referenceDate:n,granularity:hr.day}),[n,d]),[b,g]=w.useReducer(f,{isMonthSwitchingAnimating:!1,focusedDay:h,currentMonth:m.startOfMonth(h),slideDirection:"left"});w.useEffect(()=>{g({type:"changeMonthTimezone",newTimezone:m.getTimezone(h)})},[h,m]);const x=w.useCallback(S=>{g(U({type:"changeMonth"},S)),l&&l(S.newMonth)},[l]),C=w.useCallback(S=>{const O=S;m.isSameMonth(O,b.currentMonth)||x({newMonth:m.startOfMonth(O),direction:m.isAfterDay(O,b.currentMonth)?"left":"right"})},[b.currentMonth,x,m]),E=Qx({shouldDisableDate:c,minDate:i,maxDate:s,disableFuture:r,disablePast:a,timezone:d}),k=w.useCallback(()=>{g({type:"finishMonthSwitchingAnimation"})},[]),T=Ae((S,O)=>{E(S)||g({type:"changeFocusedDay",focusedDay:S,withoutMonthSwitchingAnimation:O})});return{referenceDate:h,calendarState:b,changeMonth:C,changeFocusedDay:T,isDateDisabled:E,onMonthSwitchingAnimationEnd:k,handleChangeMonth:x}},PB=e=>Fe("MuiPickersFadeTransitionGroup",e);Re("MuiPickersFadeTransitionGroup",["root"]);const RB=e=>{const{classes:t}=e;return Le({root:["root"]},PB,t)},MB=oe(Ci,{name:"MuiPickersFadeTransitionGroup",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"block",position:"relative"});function Xx(e){const t=_t({props:e,name:"MuiPickersFadeTransitionGroup"}),{children:n,className:r,reduceAnimations:a,transKey:o}=t,s=RB(t),i=oa();return a?n:p.jsx(MB,{className:De(s.root,r),children:p.jsx(Fa,{appear:!1,mountOnEnter:!0,unmountOnExit:!0,timeout:{appear:i.transitions.duration.enteringScreen,enter:i.transitions.duration.enteringScreen,exit:0},children:n},o)})}function NB(e){return Fe("MuiPickersDay",e)}const ga=Re("MuiPickersDay",["root","dayWithMargin","dayOutsideMonth","hiddenDaySpacingFiller","today","selected","disabled"]),OB=["autoFocus","className","day","disabled","disableHighlightToday","disableMargin","hidden","isAnimating","onClick","onDaySelect","onFocus","onBlur","onKeyDown","onMouseDown","onMouseEnter","outsideCurrentMonth","selected","showDaysOutsideCurrentMonth","children","today","isFirstVisibleCell","isLastVisibleCell"],LB=e=>{const{selected:t,disableMargin:n,disableHighlightToday:r,today:a,disabled:o,outsideCurrentMonth:s,showDaysOutsideCurrentMonth:i,classes:l}=e,u=s&&!i;return Le({root:["root",t&&!u&&"selected",o&&"disabled",!n&&"dayWithMargin",!r&&a&&"today",s&&i&&"dayOutsideMonth",u&&"hiddenDaySpacingFiller"],hiddenDaySpacingFiller:["hiddenDaySpacingFiller"]},NB,l)},Zx=({theme:e})=>U({},e.typography.caption,{width:Zs,height:Zs,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})`:dt.alpha(e.palette.primary.main,e.palette.action.hoverOpacity)}},"&:focus":{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.focusOpacity})`:dt.alpha(e.palette.primary.main,e.palette.action.focusOpacity),[`&.${ga.selected}`]:{willChange:"background-color",backgroundColor:(e.vars||e).palette.primary.dark}},[`&.${ga.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}},[`&.${ga.disabled}:not(.${ga.selected})`]:{color:(e.vars||e).palette.text.disabled},[`&.${ga.disabled}&.${ga.selected}`]:{opacity:.6},variants:[{props:{disableMargin:!1},style:{margin:`0 ${Nu}px`}},{props:{outsideCurrentMonth:!0,showDaysOutsideCurrentMonth:!0},style:{color:(e.vars||e).palette.text.secondary}},{props:{disableHighlightToday:!1,today:!0},style:{[`&:not(.${ga.selected})`]:{border:`1px solid ${(e.vars||e).palette.text.secondary}`}}}]}),Jx=(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]},FB=oe(La,{name:"MuiPickersDay",slot:"Root",overridesResolver:Jx})(Zx),$B=oe("div",{name:"MuiPickersDay",slot:"Root",overridesResolver:Jx})(({theme:e})=>U({},Zx({theme:e}),{opacity:0,pointerEvents:"none"})),ms=()=>{},BB=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiPickersDay"}),{autoFocus:a=!1,className:o,day:s,disabled:i=!1,disableHighlightToday:l=!1,disableMargin:u=!1,isAnimating:c,onClick:d,onDaySelect:m,onFocus:f=ms,onBlur:h=ms,onKeyDown:b=ms,onMouseDown:g=ms,onMouseEnter:x=ms,outsideCurrentMonth:C,selected:E=!1,showDaysOutsideCurrentMonth:k=!1,children:T,today:S=!1}=r,O=je(r,OB),M=U({},r,{autoFocus:a,disabled:i,disableHighlightToday:l,disableMargin:u,selected:E,showDaysOutsideCurrentMonth:k,today:S}),$=LB(M),P=Pt(),L=w.useRef(null),v=ot(L,n);qt(()=>{a&&!i&&!c&&!C&&L.current.focus()},[a,i,c,C]);const N=A=>{g(A),C&&A.preventDefault()},I=A=>{i||m(s),C&&A.currentTarget.focus(),d&&d(A)};return C&&!k?p.jsx($B,{className:De($.root,$.hiddenDaySpacingFiller,o),ownerState:M,role:O.role}):p.jsx(FB,U({className:De($.root,o),ref:v,centerRipple:!0,disabled:i,tabIndex:E?0:-1,onKeyDown:A=>b(A,s),onFocus:A=>f(A,s),onBlur:A=>h(A,s),onMouseEnter:A=>x(A,s),onClick:I,onMouseDown:N},O,{ownerState:M,children:T||P.format(s,"dayOfMonth")}))}),jB=w.memo(BB),HB=e=>Fe("MuiPickersSlideTransition",e),Ln=Re("MuiPickersSlideTransition",["root","slideEnter-left","slideEnter-right","slideEnterActive","slideExit","slideExitActiveLeft-left","slideExitActiveLeft-right"]),UB=["children","className","reduceAnimations","slideDirection","transKey","classes"],zB=e=>{const{classes:t,slideDirection:n}=e,r={root:["root"],exit:["slideExit"],enterActive:["slideEnterActive"],enter:[`slideEnter-${n}`],exitActive:[`slideExitActiveLeft-${n}`]};return Le(r,HB,t)},VB=oe(Ci,{name:"MuiPickersSlideTransition",slot:"Root",overridesResolver:(e,t)=>[t.root,{[`.${Ln["slideEnter-left"]}`]:t["slideEnter-left"]},{[`.${Ln["slideEnter-right"]}`]:t["slideEnter-right"]},{[`.${Ln.slideEnterActive}`]:t.slideEnterActive},{[`.${Ln.slideExit}`]:t.slideExit},{[`.${Ln["slideExitActiveLeft-left"]}`]:t["slideExitActiveLeft-left"]},{[`.${Ln["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},[`& .${Ln["slideEnter-left"]}`]:{willChange:"transform",transform:"translate(100%)",zIndex:1},[`& .${Ln["slideEnter-right"]}`]:{willChange:"transform",transform:"translate(-100%)",zIndex:1},[`& .${Ln.slideEnterActive}`]:{transform:"translate(0%)",transition:t},[`& .${Ln.slideExit}`]:{transform:"translate(0%)"},[`& .${Ln["slideExitActiveLeft-left"]}`]:{willChange:"transform",transform:"translate(-100%)",transition:t,zIndex:0},[`& .${Ln["slideExitActiveLeft-right"]}`]:{willChange:"transform",transform:"translate(100%)",transition:t,zIndex:0}}});function WB(e){const t=_t({props:e,name:"MuiPickersSlideTransition"}),{children:n,className:r,reduceAnimations:a,transKey:o}=t,s=je(t,UB),i=zB(t),l=oa();if(a)return p.jsx("div",{className:De(i.root,r),children:n});const u={exit:i.exit,enterActive:i.enterActive,enter:i.enter,exitActive:i.exitActive};return p.jsx(VB,{className:De(i.root,r),childFactory:c=>w.cloneElement(c,{classNames:u}),role:"presentation",children:p.jsx(Wp,U({mountOnEnter:!0,unmountOnExit:!0,timeout:l.transitions.duration.complex,classNames:u},s,{children:n}),o)})}const qB=e=>Fe("MuiDayCalendar",e);Re("MuiDayCalendar",["root","header","weekDayLabel","loadingContainer","slideTransition","monthContainer","weekContainer","weekNumberLabel","weekNumber"]);const YB=["parentProps","day","focusableDay","selectedDays","isDateDisabled","currentMonthNumber","isViewFocused"],GB=["ownerState"],KB=e=>{const{classes:t}=e;return Le({root:["root"],header:["header"],weekDayLabel:["weekDayLabel"],loadingContainer:["loadingContainer"],slideTransition:["slideTransition"],monthContainer:["monthContainer"],weekContainer:["weekContainer"],weekNumberLabel:["weekNumberLabel"],weekNumber:["weekNumber"]},qB,t)},e2=(Zs+Nu*2)*6,QB=oe("div",{name:"MuiDayCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({}),XB=oe("div",{name:"MuiDayCalendar",slot:"Header",overridesResolver:(e,t)=>t.header})({display:"flex",justifyContent:"center",alignItems:"center"}),ZB=oe(yt,{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})),JB=oe(yt,{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})),ej=oe(yt,{name:"MuiDayCalendar",slot:"WeekNumber",overridesResolver:(e,t)=>t.weekNumber})(({theme:e})=>U({},e.typography.caption,{width:Zs,height:Zs,padding:0,margin:`0 ${Nu}px`,color:e.palette.text.disabled,fontSize:"0.75rem",alignItems:"center",justifyContent:"center",display:"inline-flex"})),tj=oe("div",{name:"MuiDayCalendar",slot:"LoadingContainer",overridesResolver:(e,t)=>t.loadingContainer})({display:"flex",justifyContent:"center",alignItems:"center",minHeight:e2}),nj=oe(WB,{name:"MuiDayCalendar",slot:"SlideTransition",overridesResolver:(e,t)=>t.slideTransition})({minHeight:e2}),rj=oe("div",{name:"MuiDayCalendar",slot:"MonthContainer",overridesResolver:(e,t)=>t.monthContainer})({overflow:"hidden"}),aj=oe("div",{name:"MuiDayCalendar",slot:"WeekContainer",overridesResolver:(e,t)=>t.weekContainer})({margin:`${Nu}px 0`,display:"flex",justifyContent:"center"});function oj(e){let{parentProps:t,day:n,focusableDay:r,selectedDays:a,isDateDisabled:o,currentMonthNumber:s,isViewFocused:i}=e,l=je(e,YB);const{disabled:u,disableHighlightToday:c,isMonthSwitchingAnimating:d,showDaysOutsideCurrentMonth:m,slots:f,slotProps:h,timezone:b}=t,g=Pt(),x=Mu(b),C=r!==null&&g.isSameDay(n,r),E=a.some(v=>g.isSameDay(v,n)),k=g.isSameDay(n,x),T=f?.day??jB,S=at({elementType:T,externalSlotProps:h?.day,additionalProps:U({disableHighlightToday:c,showDaysOutsideCurrentMonth:m,role:"gridcell",isAnimating:d,"data-timestamp":g.toJsDate(n).valueOf()},l),ownerState:U({},t,{day:n,selected:E})}),O=je(S,GB),M=w.useMemo(()=>u||o(n),[u,o,n]),$=w.useMemo(()=>g.getMonth(n)!==s,[g,n,s]),P=w.useMemo(()=>{const v=g.startOfMonth(g.setMonth(n,s));return m?g.isSameDay(n,g.startOfWeek(v)):g.isSameDay(n,v)},[s,n,m,g]),L=w.useMemo(()=>{const v=g.endOfMonth(g.setMonth(n,s));return m?g.isSameDay(n,g.endOfWeek(v)):g.isSameDay(n,v)},[s,n,m,g]);return p.jsx(T,U({},O,{day:n,disabled:M,autoFocus:i&&C,today:k,outsideCurrentMonth:$,isFirstVisibleCell:P,isLastVisibleCell:L,selected:E,tabIndex:C?0:-1,"aria-selected":E,"aria-current":k?"date":void 0}))}function sj(e){const t=_t({props:e,name:"MuiDayCalendar"}),n=Pt(),{onFocusedDayChange:r,className:a,currentMonth:o,selectedDays:s,focusedDay:i,loading:l,onSelectedDaysChange:u,onMonthSwitchingAnimationEnd:c,readOnly:d,reduceAnimations:m,renderLoading:f=()=>p.jsx("span",{children:"..."}),slideDirection:h,TransitionProps:b,disablePast:g,disableFuture:x,minDate:C,maxDate:E,shouldDisableDate:k,shouldDisableMonth:T,shouldDisableYear:S,dayOfWeekFormatter:O=pe=>n.format(pe,"weekdayShort").charAt(0).toUpperCase(),hasFocus:M,onFocusedViewChange:$,gridLabelId:P,displayWeekNumber:L,fixedWeekNumber:v,autoFocus:N,timezone:I}=t,A=Mu(I),R=KB(t),W=Qn(),H=Qx({shouldDisableDate:k,shouldDisableMonth:T,shouldDisableYear:S,minDate:C,maxDate:E,disablePast:g,disableFuture:x,timezone:I}),B=Vr(),[_,V]=An({name:"DayCalendar",state:"hasFocus",controlled:M,default:N??!1}),[J,F]=w.useState(()=>i||A),de=Ae(pe=>{d||u(pe)}),Z=pe=>{H(pe)||(r(pe),F(pe),$?.(!0),V(!0))},Y=Ae((pe,be)=>{switch(pe.key){case"ArrowUp":Z(n.addDays(be,-7)),pe.preventDefault();break;case"ArrowDown":Z(n.addDays(be,7)),pe.preventDefault();break;case"ArrowLeft":{const le=n.addDays(be,W?1:-1),Pe=n.addMonths(be,W?1:-1),Te=Fs({utils:n,date:le,minDate:W?le:n.startOfMonth(Pe),maxDate:W?n.endOfMonth(Pe):le,isDateDisabled:H,timezone:I});Z(Te||le),pe.preventDefault();break}case"ArrowRight":{const le=n.addDays(be,W?-1:1),Pe=n.addMonths(be,W?-1:1),Te=Fs({utils:n,date:le,minDate:W?n.startOfMonth(Pe):le,maxDate:W?le:n.endOfMonth(Pe),isDateDisabled:H,timezone:I});Z(Te||le),pe.preventDefault();break}case"Home":Z(n.startOfWeek(be)),pe.preventDefault();break;case"End":Z(n.endOfWeek(be)),pe.preventDefault();break;case"PageUp":Z(n.addMonths(be,1)),pe.preventDefault();break;case"PageDown":Z(n.addMonths(be,-1)),pe.preventDefault();break}}),te=Ae((pe,be)=>Z(be)),X=Ae((pe,be)=>{_&&n.isSameDay(J,be)&&$?.(!1)}),re=n.getMonth(o),Q=n.getYear(o),G=w.useMemo(()=>s.filter(pe=>!!pe).map(pe=>n.startOfDay(pe)),[n,s]),se=`${Q}-${re}`,ee=w.useMemo(()=>w.createRef(),[se]),ne=w.useMemo(()=>{const pe=n.startOfMonth(o),be=n.endOfMonth(o);return H(J)||n.isAfterDay(J,be)||n.isBeforeDay(J,pe)?Fs({utils:n,date:J,minDate:pe,maxDate:be,disablePast:g,disableFuture:x,isDateDisabled:H,timezone:I}):J},[o,x,g,J,H,n,I]),xe=w.useMemo(()=>{const pe=n.getWeekArray(o);let be=n.addMonths(o,1);for(;v&&pe.length<v;){const le=n.getWeekArray(be),Pe=n.isSameDay(pe[pe.length-1][0],le[0][0]);le.slice(Pe?1:0).forEach(Te=>{pe.length<v&&pe.push(Te)}),be=n.addMonths(be,1)}return pe},[o,v,n]);return p.jsxs(QB,{role:"grid","aria-labelledby":P,className:R.root,children:[p.jsxs(XB,{role:"row",className:R.header,children:[L&&p.jsx(JB,{variant:"caption",role:"columnheader","aria-label":B.calendarWeekNumberHeaderLabel,className:R.weekNumberLabel,children:B.calendarWeekNumberHeaderText}),yF(n,A).map((pe,be)=>p.jsx(ZB,{variant:"caption",role:"columnheader","aria-label":n.format(pe,"weekday"),className:R.weekDayLabel,children:O(pe)},be.toString()))]}),l?p.jsx(tj,{className:R.loadingContainer,children:f()}):p.jsx(nj,U({transKey:se,onExited:c,reduceAnimations:m,slideDirection:h,className:De(a,R.slideTransition)},b,{nodeRef:ee,children:p.jsx(rj,{ref:ee,role:"rowgroup",className:R.monthContainer,children:xe.map((pe,be)=>p.jsxs(aj,{role:"row",className:R.weekContainer,"aria-rowindex":be+1,children:[L&&p.jsx(ej,{className:R.weekNumber,role:"rowheader","aria-label":B.calendarWeekNumberAriaLabelText(n.getWeekNumber(pe[0])),children:B.calendarWeekNumberText(n.getWeekNumber(pe[0]))}),pe.map((le,Pe)=>p.jsx(oj,{parentProps:t,day:le,selectedDays:G,focusableDay:ne,onKeyDown:Y,onFocus:te,onBlur:X,onDaySelect:de,isDateDisabled:H,currentMonthNumber:re,isViewFocused:_,"aria-colindex":Pe+1},le.toString()))]},`week-${pe[0]}`))})}))]})}function ij(e){return Fe("MuiPickersMonth",e)}const Vi=Re("MuiPickersMonth",["root","monthButton","disabled","selected"]),lj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","aria-label","monthsPerRow","slots","slotProps"],uj=e=>{const{disabled:t,selected:n,classes:r}=e;return Le({root:["root"],monthButton:["monthButton",t&&"disabled",n&&"selected"]},ij,r)},cj=oe("div",{name:"MuiPickersMonth",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{monthsPerRow:4},style:{flexBasis:"25%"}}]}),dj=oe("button",{name:"MuiPickersMonth",slot:"MonthButton",overridesResolver:(e,t)=>[t.monthButton,{[`&.${Vi.disabled}`]:t.disabled},{[`&.${Vi.selected}`]:t.selected}]})(({theme:e})=>U({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})`:dt.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dt.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Vi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Vi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),pj=w.memo(function(t){const n=_t({props:t,name:"MuiPickersMonth"}),{autoFocus:r,className:a,children:o,disabled:s,selected:i,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:m,onBlur:f,"aria-current":h,"aria-label":b,slots:g,slotProps:x}=n,C=je(n,lj),E=w.useRef(null),k=uj(n);qt(()=>{r&&E.current?.focus()},[r]);const T=g?.monthButton??dj,S=at({elementType:T,externalSlotProps:x?.monthButton,additionalProps:{children:o,disabled:s,tabIndex:u,ref:E,type:"button",role:"radio","aria-current":h,"aria-checked":i,"aria-label":b,onClick:O=>c(O,l),onKeyDown:O=>d(O,l),onFocus:O=>m(O,l),onBlur:O=>f(O,l)},ownerState:n,className:k.monthButton});return p.jsx(cj,U({className:De(k.root,a),ownerState:n},C,{children:p.jsx(T,U({},S))}))});function fj(e){return Fe("MuiMonthCalendar",e)}Re("MuiMonthCalendar",["root"]);const mj=["className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","shouldDisableMonth","readOnly","disableHighlightToday","autoFocus","onMonthFocus","hasFocus","onFocusedViewChange","monthsPerRow","timezone","gridLabelId","slots","slotProps"],hj=e=>{const{classes:t}=e;return Le({root:["root"]},fj,t)};function gj(e,t){const n=Pt(),r=Ei(),a=_t({props:e,name:t});return U({disableFuture:!1,disablePast:!1},a,{minDate:Gn(n,a.minDate,r.minDate),maxDate:Gn(n,a.maxDate,r.maxDate)})}const bj=oe("div",{name:"MuiMonthCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexWrap:"wrap",alignContent:"stretch",padding:"0 4px",width:Ou,boxSizing:"border-box"}),yj=w.forwardRef(function(t,n){const r=gj(t,"MuiMonthCalendar"),{className:a,value:o,defaultValue:s,referenceDate:i,disabled:l,disableFuture:u,disablePast:c,maxDate:d,minDate:m,onChange:f,shouldDisableMonth:h,readOnly:b,autoFocus:g=!1,onMonthFocus:x,hasFocus:C,onFocusedViewChange:E,monthsPerRow:k=3,timezone:T,gridLabelId:S,slots:O,slotProps:M}=r,$=je(r,mj),{value:P,handleValueChange:L,timezone:v}=sf({name:"MonthCalendar",timezone:T,value:o,defaultValue:s,referenceDate:i,onChange:f,valueManager:Cr}),N=Mu(v),I=Qn(),A=Pt(),R=w.useMemo(()=>Cr.getInitialReferenceValue({value:P,utils:A,props:r,timezone:v,referenceDate:i,granularity:hr.month}),[]),W=r,H=hj(W),B=w.useMemo(()=>A.getMonth(N),[A,N]),_=w.useMemo(()=>P!=null?A.getMonth(P):null,[P,A]),[V,J]=w.useState(()=>_||A.getMonth(R)),[F,de]=An({name:"MonthCalendar",state:"hasFocus",controlled:C,default:g??!1}),Z=Ae(se=>{de(se),E&&E(se)}),Y=w.useCallback(se=>{const ee=A.startOfMonth(c&&A.isAfter(N,m)?N:m),ne=A.startOfMonth(u&&A.isBefore(N,d)?N:d),xe=A.startOfMonth(se);return A.isBefore(xe,ee)||A.isAfter(xe,ne)?!0:h?h(xe):!1},[u,c,d,m,N,h,A]),te=Ae((se,ee)=>{if(b)return;const ne=A.setMonth(P??R,ee);L(ne)}),X=Ae(se=>{Y(A.setMonth(P??R,se))||(J(se),Z(!0),x&&x(se))});w.useEffect(()=>{J(se=>_!==null&&se!==_?_:se)},[_]);const re=Ae((se,ee)=>{switch(se.key){case"ArrowUp":X((12+ee-3)%12),se.preventDefault();break;case"ArrowDown":X((12+ee+3)%12),se.preventDefault();break;case"ArrowLeft":X((12+ee+(I?1:-1))%12),se.preventDefault();break;case"ArrowRight":X((12+ee+(I?-1:1))%12),se.preventDefault();break}}),Q=Ae((se,ee)=>{X(ee)}),G=Ae((se,ee)=>{V===ee&&Z(!1)});return p.jsx(bj,U({ref:n,className:De(H.root,a),ownerState:W,role:"radiogroup","aria-labelledby":S},$,{children:tf(A,P??R).map(se=>{const ee=A.getMonth(se),ne=A.format(se,"monthShort"),xe=A.format(se,"month"),pe=ee===_,be=l||Y(se);return p.jsx(pj,{selected:pe,value:ee,onClick:te,onKeyDown:re,autoFocus:F&&ee===V,disabled:be,tabIndex:ee===V&&!be?0:-1,onFocus:Q,onBlur:G,"aria-current":B===ee?"date":void 0,"aria-label":xe,monthsPerRow:k,slots:O,slotProps:M,children:ne},ne)})}))});function xj(e){return Fe("MuiPickersYear",e)}const Wi=Re("MuiPickersYear",["root","yearButton","selected","disabled"]),Cj=["autoFocus","className","children","disabled","selected","value","tabIndex","onClick","onKeyDown","onFocus","onBlur","aria-current","yearsPerRow","slots","slotProps"],Ej=e=>{const{disabled:t,selected:n,classes:r}=e;return Le({root:["root"],yearButton:["yearButton",t&&"disabled",n&&"selected"]},xj,r)},vj=oe("div",{name:"MuiPickersYear",slot:"Root",overridesResolver:(e,t)=>[t.root]})({display:"flex",alignItems:"center",justifyContent:"center",flexBasis:"33.3%",variants:[{props:{yearsPerRow:4},style:{flexBasis:"25%"}}]}),Tj=oe("button",{name:"MuiPickersYear",slot:"YearButton",overridesResolver:(e,t)=>[t.yearButton,{[`&.${Wi.disabled}`]:t.disabled},{[`&.${Wi.selected}`]:t.selected}]})(({theme:e})=>U({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})`:dt.alpha(e.palette.action.active,e.palette.action.focusOpacity)},"&:hover":{backgroundColor:e.vars?`rgba(${e.vars.palette.action.activeChannel} / ${e.vars.palette.action.hoverOpacity})`:dt.alpha(e.palette.action.active,e.palette.action.hoverOpacity)},"&:disabled":{cursor:"auto",pointerEvents:"none"},[`&.${Wi.disabled}`]:{color:(e.vars||e).palette.text.secondary},[`&.${Wi.selected}`]:{color:(e.vars||e).palette.primary.contrastText,backgroundColor:(e.vars||e).palette.primary.main,"&:focus, &:hover":{backgroundColor:(e.vars||e).palette.primary.dark}}})),kj=w.memo(function(t){const n=_t({props:t,name:"MuiPickersYear"}),{autoFocus:r,className:a,children:o,disabled:s,selected:i,value:l,tabIndex:u,onClick:c,onKeyDown:d,onFocus:m,onBlur:f,"aria-current":h,slots:b,slotProps:g}=n,x=je(n,Cj),C=w.useRef(null),E=Ej(n);qt(()=>{r&&C.current?.focus()},[r]);const k=b?.yearButton??Tj,T=at({elementType:k,externalSlotProps:g?.yearButton,additionalProps:{children:o,disabled:s,tabIndex:u,ref:C,type:"button",role:"radio","aria-current":h,"aria-checked":i,onClick:S=>c(S,l),onKeyDown:S=>d(S,l),onFocus:S=>m(S,l),onBlur:S=>f(S,l)},ownerState:n,className:E.yearButton});return p.jsx(vj,U({className:De(E.root,a),ownerState:n},x,{children:p.jsx(k,U({},T))}))});function Sj(e){return Fe("MuiYearCalendar",e)}Re("MuiYearCalendar",["root"]);const wj=["autoFocus","className","value","defaultValue","referenceDate","disabled","disableFuture","disablePast","maxDate","minDate","onChange","readOnly","shouldDisableYear","disableHighlightToday","onYearFocus","hasFocus","onFocusedViewChange","yearsOrder","yearsPerRow","timezone","gridLabelId","slots","slotProps"],_j=e=>{const{classes:t}=e;return Le({root:["root"]},Sj,t)};function Ij(e,t){const n=Pt(),r=Ei(),a=_t({props:e,name:t});return U({disablePast:!1,disableFuture:!1},a,{yearsPerRow:a.yearsPerRow??3,minDate:Gn(n,a.minDate,r.minDate),maxDate:Gn(n,a.maxDate,r.maxDate)})}const Aj=oe("div",{name:"MuiYearCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"row",flexWrap:"wrap",overflowY:"auto",height:"100%",padding:"0 4px",width:Ou,maxHeight:t$,boxSizing:"border-box",position:"relative"}),Dj=w.forwardRef(function(t,n){const r=Ij(t,"MuiYearCalendar"),{autoFocus:a,className:o,value:s,defaultValue:i,referenceDate:l,disabled:u,disableFuture:c,disablePast:d,maxDate:m,minDate:f,onChange:h,readOnly:b,shouldDisableYear:g,onYearFocus:x,hasFocus:C,onFocusedViewChange:E,yearsOrder:k="asc",yearsPerRow:T,timezone:S,gridLabelId:O,slots:M,slotProps:$}=r,P=je(r,wj),{value:L,handleValueChange:v,timezone:N}=sf({name:"YearCalendar",timezone:S,value:s,defaultValue:i,referenceDate:l,onChange:h,valueManager:Cr}),I=Mu(N),A=Qn(),R=Pt(),W=w.useMemo(()=>Cr.getInitialReferenceValue({value:L,utils:R,props:r,timezone:N,referenceDate:l,granularity:hr.year}),[]),H=r,B=_j(H),_=w.useMemo(()=>R.getYear(I),[R,I]),V=w.useMemo(()=>L!=null?R.getYear(L):null,[L,R]),[J,F]=w.useState(()=>V||R.getYear(W)),[de,Z]=An({name:"YearCalendar",state:"hasFocus",controlled:C,default:a??!1}),Y=Ae(le=>{Z(le),E&&E(le)}),te=w.useCallback(le=>{if(d&&R.isBeforeYear(le,I)||c&&R.isAfterYear(le,I)||f&&R.isBeforeYear(le,f)||m&&R.isAfterYear(le,m))return!0;if(!g)return!1;const Pe=R.startOfYear(le);return g(Pe)},[c,d,m,f,I,g,R]),X=Ae((le,Pe)=>{if(b)return;const Te=R.setYear(L??W,Pe);v(Te)}),re=Ae(le=>{te(R.setYear(L??W,le))||(F(le),Y(!0),x?.(le))});w.useEffect(()=>{F(le=>V!==null&&le!==V?V:le)},[V]);const Q=k!=="desc"?T*1:T*-1,G=A&&k==="asc"||!A&&k==="desc"?-1:1,se=Ae((le,Pe)=>{switch(le.key){case"ArrowUp":re(Pe-Q),le.preventDefault();break;case"ArrowDown":re(Pe+Q),le.preventDefault();break;case"ArrowLeft":re(Pe-G),le.preventDefault();break;case"ArrowRight":re(Pe+G),le.preventDefault();break}}),ee=Ae((le,Pe)=>{re(Pe)}),ne=Ae((le,Pe)=>{J===Pe&&Y(!1)}),xe=w.useRef(null),pe=ot(n,xe);w.useEffect(()=>{if(a||xe.current===null)return;const le=xe.current.querySelector('[tabindex="0"]');if(!le)return;const Pe=le.offsetHeight,Te=le.offsetTop,ze=xe.current.clientHeight,we=xe.current.scrollTop,Tt=Te+Pe;Pe>ze||Te<we||(xe.current.scrollTop=Tt-ze/2-Pe/2)},[a]);const be=R.getYearRange([f,m]);return k==="desc"&&be.reverse(),p.jsx(Aj,U({ref:pe,className:De(B.root,o),ownerState:H,role:"radiogroup","aria-labelledby":O},P,{children:be.map(le=>{const Pe=R.getYear(le),Te=Pe===V,ze=u||te(le);return p.jsx(kj,{selected:Te,value:Pe,onClick:X,onKeyDown:se,autoFocus:de&&Pe===J,disabled:ze,tabIndex:Pe===J&&!ze?0:-1,onFocus:ee,onBlur:ne,"aria-current":_===Pe?"date":void 0,yearsPerRow:T,slots:M,slotProps:$,children:R.format(le,"year")},R.format(le,"year"))})}))}),Pj=e=>Fe("MuiPickersCalendarHeader",e),Rj=Re("MuiPickersCalendarHeader",["root","labelContainer","label","switchViewButton","switchViewIcon"]);function Mj(e){return Fe("MuiPickersArrowSwitcher",e)}Re("MuiPickersArrowSwitcher",["root","spacer","button","previousIconButton","nextIconButton","leftArrowIcon","rightArrowIcon"]);const Nj=["children","className","slots","slotProps","isNextDisabled","isNextHidden","onGoToNext","nextLabel","isPreviousDisabled","isPreviousHidden","onGoToPrevious","previousLabel","labelId"],Oj=["ownerState"],Lj=["ownerState"],Fj=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex"}),$j=oe("div",{name:"MuiPickersArrowSwitcher",slot:"Spacer",overridesResolver:(e,t)=>t.spacer})(({theme:e})=>({width:e.spacing(3)})),a0=oe(Mn,{name:"MuiPickersArrowSwitcher",slot:"Button",overridesResolver:(e,t)=>t.button})({variants:[{props:{hidden:!0},style:{visibility:"hidden"}}]}),Bj=e=>{const{classes:t}=e;return Le({root:["root"],spacer:["spacer"],button:["button"],previousIconButton:["previousIconButton"],nextIconButton:["nextIconButton"],leftArrowIcon:["leftArrowIcon"],rightArrowIcon:["rightArrowIcon"]},Mj,t)},jj=w.forwardRef(function(t,n){const r=Qn(),a=_t({props:t,name:"MuiPickersArrowSwitcher"}),{children:o,className:s,slots:i,slotProps:l,isNextDisabled:u,isNextHidden:c,onGoToNext:d,nextLabel:m,isPreviousDisabled:f,isPreviousHidden:h,onGoToPrevious:b,previousLabel:g,labelId:x}=a,C=je(a,Nj),E=a,k=Bj(E),T={isDisabled:u,isHidden:c,goTo:d,label:m},S={isDisabled:f,isHidden:h,goTo:b,label:g},O=i?.previousIconButton??a0,M=at({elementType:O,externalSlotProps:l?.previousIconButton,additionalProps:{size:"medium",title:S.label,"aria-label":S.label,disabled:S.isDisabled,edge:"end",onClick:S.goTo},ownerState:U({},E,{hidden:S.isHidden}),className:De(k.button,k.previousIconButton)}),$=i?.nextIconButton??a0,P=at({elementType:$,externalSlotProps:l?.nextIconButton,additionalProps:{size:"medium",title:T.label,"aria-label":T.label,disabled:T.isDisabled,edge:"start",onClick:T.goTo},ownerState:U({},E,{hidden:T.isHidden}),className:De(k.button,k.nextIconButton)}),L=i?.leftArrowIcon??b$,v=at({elementType:L,externalSlotProps:l?.leftArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:E,className:k.leftArrowIcon}),N=je(v,Oj),I=i?.rightArrowIcon??y$,A=at({elementType:I,externalSlotProps:l?.rightArrowIcon,additionalProps:{fontSize:"inherit"},ownerState:E,className:k.rightArrowIcon}),R=je(A,Lj);return p.jsxs(Fj,U({ref:n,className:De(k.root,s),ownerState:E},C,{children:[p.jsx(O,U({},M,{children:r?p.jsx(I,U({},R)):p.jsx(L,U({},N))})),o?p.jsx(yt,{variant:"subtitle1",component:"span",id:x,children:o}):p.jsx($j,{className:k.spacer,ownerState:E}),p.jsx($,U({},P,{children:r?p.jsx(L,U({},N)):p.jsx(I,U({},R))}))]}))});function Hj(e,{disableFuture:t,maxDate:n,timezone:r}){const a=Pt();return w.useMemo(()=>{const o=a.date(void 0,r),s=a.startOfMonth(t&&a.isBefore(o,n)?o:n);return!a.isAfter(s,e)},[t,n,e,a,r])}function Uj(e,{disablePast:t,minDate:n,timezone:r}){const a=Pt();return w.useMemo(()=>{const o=a.date(void 0,r),s=a.startOfMonth(t&&a.isAfter(o,n)?o:n);return!a.isBefore(s,e)},[t,n,e,a,r])}const zj=["slots","slotProps","currentMonth","disabled","disableFuture","disablePast","maxDate","minDate","onMonthChange","onViewChange","view","reduceAnimations","views","labelId","className","timezone","format"],Vj=["ownerState"],Wj=e=>{const{classes:t}=e;return Le({root:["root"],labelContainer:["labelContainer"],label:["label"],switchViewButton:["switchViewButton"],switchViewIcon:["switchViewIcon"]},Pj,t)},qj=oe("div",{name:"MuiPickersCalendarHeader",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",alignItems:"center",marginTop:12,marginBottom:4,paddingLeft:24,paddingRight:12,maxHeight:40,minHeight:40}),Yj=oe("div",{name:"MuiPickersCalendarHeader",slot:"LabelContainer",overridesResolver:(e,t)=>t.labelContainer})(({theme:e})=>U({display:"flex",overflow:"hidden",alignItems:"center",cursor:"pointer",marginRight:"auto"},e.typography.body1,{fontWeight:e.typography.fontWeightMedium})),Gj=oe("div",{name:"MuiPickersCalendarHeader",slot:"Label",overridesResolver:(e,t)=>t.label})({marginRight:6}),Kj=oe(Mn,{name:"MuiPickersCalendarHeader",slot:"SwitchViewButton",overridesResolver:(e,t)=>t.switchViewButton})({marginRight:"auto",variants:[{props:{view:"year"},style:{[`.${Rj.switchViewIcon}`]:{transform:"rotate(180deg)"}}}]}),Qj=oe(g$,{name:"MuiPickersCalendarHeader",slot:"SwitchViewIcon",overridesResolver:(e,t)=>t.switchViewIcon})(({theme:e})=>({willChange:"transform",transition:e.transitions.create("transform"),transform:"rotate(0deg)"})),Xj=w.forwardRef(function(t,n){const r=Vr(),a=Pt(),o=_t({props:t,name:"MuiPickersCalendarHeader"}),{slots:s,slotProps:i,currentMonth:l,disabled:u,disableFuture:c,disablePast:d,maxDate:m,minDate:f,onMonthChange:h,onViewChange:b,view:g,reduceAnimations:x,views:C,labelId:E,className:k,timezone:T,format:S=`${a.formats.month} ${a.formats.year}`}=o,O=je(o,zj),M=o,$=Wj(o),P=s?.switchViewButton??Kj,L=at({elementType:P,externalSlotProps:i?.switchViewButton,additionalProps:{size:"small","aria-label":r.calendarViewSwitchingButtonAriaLabel(g)},ownerState:M,className:$.switchViewButton}),v=s?.switchViewIcon??Qj,N=at({elementType:v,externalSlotProps:i?.switchViewIcon,ownerState:M,className:$.switchViewIcon}),I=je(N,Vj),A=()=>h(a.addMonths(l,1),"left"),R=()=>h(a.addMonths(l,-1),"right"),W=Hj(l,{disableFuture:c,maxDate:m,timezone:T}),H=Uj(l,{disablePast:d,minDate:f,timezone:T}),B=()=>{if(!(C.length===1||!b||u))if(C.length===2)b(C.find(V=>V!==g)||C[0]);else{const V=C.indexOf(g)!==0?0:1;b(C[V])}};if(C.length===1&&C[0]==="year")return null;const _=a.formatByString(l,S);return p.jsxs(qj,U({},O,{ownerState:M,className:De($.root,k),ref:n,children:[p.jsxs(Yj,{role:"presentation",onClick:B,ownerState:M,"aria-live":"polite",className:$.labelContainer,children:[p.jsx(Xx,{reduceAnimations:x,transKey:_,children:p.jsx(Gj,{id:E,ownerState:M,className:$.label,children:_})}),C.length>1&&!u&&p.jsx(P,U({},L,{children:p.jsx(v,U({},I))}))]}),p.jsx(Fa,{in:g==="day",appear:!x,enter:!x,children:p.jsx(jj,{slots:s,slotProps:i,onGoToPrevious:R,isPreviousDisabled:H,previousLabel:r.previousMonth,onGoToNext:A,isNextDisabled:W,nextLabel:r.nextMonth})})]}))}),Zj=oe("div")({overflow:"hidden",width:Ou,maxHeight:lf,display:"flex",flexDirection:"column",margin:"0 auto"}),Jj=e=>Fe("MuiDateCalendar",e);Re("MuiDateCalendar",["root","viewTransitionContainer"]);const eH=["autoFocus","onViewChange","value","defaultValue","referenceDate","disableFuture","disablePast","onChange","onYearChange","onMonthChange","reduceAnimations","shouldDisableDate","shouldDisableMonth","shouldDisableYear","view","views","openTo","className","disabled","readOnly","minDate","maxDate","disableHighlightToday","focusedView","onFocusedViewChange","showDaysOutsideCurrentMonth","fixedWeekNumber","dayOfWeekFormatter","slots","slotProps","loading","renderLoading","displayWeekNumber","yearsOrder","yearsPerRow","monthsPerRow","timezone"],tH=e=>{const{classes:t}=e;return Le({root:["root"],viewTransitionContainer:["viewTransitionContainer"]},Jj,t)};function nH(e,t){const n=Pt(),r=Ei(),a=Nx(),o=_t({props:e,name:t});return U({},o,{loading:o.loading??!1,disablePast:o.disablePast??!1,disableFuture:o.disableFuture??!1,openTo:o.openTo??"day",views:o.views??["year","day"],reduceAnimations:o.reduceAnimations??a,renderLoading:o.renderLoading??(()=>p.jsx("span",{children:"..."})),minDate:Gn(n,o.minDate,r.minDate),maxDate:Gn(n,o.maxDate,r.maxDate)})}const rH=oe(Zj,{name:"MuiDateCalendar",slot:"Root",overridesResolver:(e,t)=>t.root})({display:"flex",flexDirection:"column",height:lf}),aH=oe(Xx,{name:"MuiDateCalendar",slot:"ViewTransitionContainer",overridesResolver:(e,t)=>t.viewTransitionContainer})({}),oH=w.forwardRef(function(t,n){const r=Pt(),a=or(),o=nH(t,"MuiDateCalendar"),{autoFocus:s,onViewChange:i,value:l,defaultValue:u,referenceDate:c,disableFuture:d,disablePast:m,onChange:f,onYearChange:h,onMonthChange:b,reduceAnimations:g,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:E,view:k,views:T,openTo:S,className:O,disabled:M,readOnly:$,minDate:P,maxDate:L,disableHighlightToday:v,focusedView:N,onFocusedViewChange:I,showDaysOutsideCurrentMonth:A,fixedWeekNumber:R,dayOfWeekFormatter:W,slots:H,slotProps:B,loading:_,renderLoading:V,displayWeekNumber:J,yearsOrder:F,yearsPerRow:de,monthsPerRow:Z,timezone:Y}=o,te=je(o,eH),{value:X,handleValueChange:re,timezone:Q}=sf({name:"DateCalendar",timezone:Y,value:l,defaultValue:u,referenceDate:c,onChange:f,valueManager:Cr}),{view:G,setView:se,focusedView:ee,setFocusedView:ne,goToNextView:xe,setValueAndGoToNextView:pe}=Ox({view:k,views:T,openTo:S,onChange:re,onViewChange:i,autoFocus:s,focusedView:N,onFocusedViewChange:I}),{referenceDate:be,calendarState:le,changeFocusedDay:Pe,changeMonth:Te,handleChangeMonth:ze,isDateDisabled:we,onMonthSwitchingAnimationEnd:Tt}=DB({value:X,referenceDate:c,reduceAnimations:g,onMonthChange:b,minDate:P,maxDate:L,shouldDisableDate:x,disablePast:m,disableFuture:d,timezone:Q}),lt=M&&X||P,qe=M&&X||L,ue=`${a}-grid-label`,Ee=ee!==null,Me=H?.calendarHeader??Xj,He=at({elementType:Me,externalSlotProps:B?.calendarHeader,additionalProps:{views:T,view:G,currentMonth:le.currentMonth,onViewChange:se,onMonthChange:(We,It)=>ze({newMonth:We,direction:It}),minDate:lt,maxDate:qe,disabled:M,disablePast:m,disableFuture:d,reduceAnimations:g,timezone:Q,labelId:ue},ownerState:o}),Be=Ae(We=>{const It=r.startOfMonth(We),Nt=r.endOfMonth(We),xt=we(We)?Fs({utils:r,date:We,minDate:r.isBefore(P,It)?It:P,maxDate:r.isAfter(L,Nt)?Nt:L,disablePast:m,disableFuture:d,isDateDisabled:we,timezone:Q}):We;xt?(pe(xt,"finish"),b?.(It)):(xe(),Te(It)),Pe(xt,!0)}),Ne=Ae(We=>{const It=r.startOfYear(We),Nt=r.endOfYear(We),xt=we(We)?Fs({utils:r,date:We,minDate:r.isBefore(P,It)?It:P,maxDate:r.isAfter(L,Nt)?Nt:L,disablePast:m,disableFuture:d,isDateDisabled:we,timezone:Q}):We;xt?(pe(xt,"finish"),h?.(xt)):(xe(),Te(It)),Pe(xt,!0)}),Je=Ae(We=>re(We&&Kl(r,We,X??be),"finish",G));w.useEffect(()=>{X!=null&&r.isValid(X)&&Te(X)},[X]);const gt=o,ft=tH(gt),ie={disablePast:m,disableFuture:d,maxDate:L,minDate:P},ye={disableHighlightToday:v,readOnly:$,disabled:M,timezone:Q,gridLabelId:ue,slots:H,slotProps:B},ve=w.useRef(G);w.useEffect(()=>{ve.current!==G&&(ee===ve.current&&ne(G,!0),ve.current=G)},[ee,ne,G]);const $e=w.useMemo(()=>[X],[X]);return p.jsxs(rH,U({ref:n,className:De(ft.root,O),ownerState:gt},te,{children:[p.jsx(Me,U({},He,{slots:H,slotProps:B})),p.jsx(aH,{reduceAnimations:g,className:ft.viewTransitionContainer,transKey:G,ownerState:gt,children:p.jsxs("div",{children:[G==="year"&&p.jsx(Dj,U({},ie,ye,{value:X,onChange:Ne,shouldDisableYear:E,hasFocus:Ee,onFocusedViewChange:We=>ne("year",We),yearsOrder:F,yearsPerRow:de,referenceDate:be})),G==="month"&&p.jsx(yj,U({},ie,ye,{hasFocus:Ee,className:O,value:X,onChange:Be,shouldDisableMonth:C,onFocusedViewChange:We=>ne("month",We),monthsPerRow:Z,referenceDate:be})),G==="day"&&p.jsx(sj,U({},le,ie,ye,{onMonthSwitchingAnimationEnd:Tt,onFocusedDayChange:Pe,reduceAnimations:g,selectedDays:$e,onSelectedDaysChange:Je,shouldDisableDate:x,shouldDisableMonth:C,shouldDisableYear:E,hasFocus:Ee,onFocusedViewChange:We=>ne("day",We),showDaysOutsideCurrentMonth:A,fixedWeekNumber:R,dayOfWeekFormatter:W,displayWeekNumber:J,loading:_,renderLoading:V}))]})})]}))}),yo=({view:e,onViewChange:t,views:n,focusedView:r,onFocusedViewChange:a,value:o,defaultValue:s,referenceDate:i,onChange:l,className:u,classes:c,disableFuture:d,disablePast:m,minDate:f,maxDate:h,shouldDisableDate:b,shouldDisableMonth:g,shouldDisableYear:x,reduceAnimations:C,onMonthChange:E,monthsPerRow:k,onYearChange:T,yearsOrder:S,yearsPerRow:O,slots:M,slotProps:$,loading:P,renderLoading:L,disableHighlightToday:v,readOnly:N,disabled:I,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:R,sx:W,autoFocus:H,fixedWeekNumber:B,displayWeekNumber:_,timezone:V})=>p.jsx(oH,{view:e,onViewChange:t,views:n.filter(zg),focusedView:r&&zg(r)?r:null,onFocusedViewChange:a,value:o,defaultValue:s,referenceDate:i,onChange:l,className:u,classes:c,disableFuture:d,disablePast:m,minDate:f,maxDate:h,shouldDisableDate:b,shouldDisableMonth:g,shouldDisableYear:x,reduceAnimations:C,onMonthChange:E,monthsPerRow:k,onYearChange:T,yearsOrder:S,yearsPerRow:O,slots:M,slotProps:$,loading:P,renderLoading:L,disableHighlightToday:v,readOnly:N,disabled:I,showDaysOutsideCurrentMonth:A,dayOfWeekFormatter:R,sx:W,autoFocus:H,fixedWeekNumber:B,displayWeekNumber:_,timezone:V}),t2=w.forwardRef(function(t,n){const r=Vr(),a=Pt(),o=Ax(t,"MuiDesktopDatePicker"),s=U({day:yo,month:yo,year:yo},o.viewRenderers),i=U({},o,{viewRenderers:s,format:nf(a,o,!1),yearsPerRow:o.yearsPerRow??4,slots:U({openPickerIcon:x$,field:Kx},o.slots),slotProps:U({},o.slotProps,{field:u=>U({},zn(o.slotProps?.field,u),Px(o),{ref:n}),toolbar:U({hidden:!0},o.slotProps?.toolbar)})}),{renderPicker:l}=h$({props:i,valueManager:Cr,valueType:"date",getOpenDialogAriaText:_x({utils:a,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:i.localeText?.openDatePickerDialogue}),validator:vi});return l()});t2.propTypes={autoFocus:ce.bool,className:ce.string,closeOnSelect:ce.bool,dayOfWeekFormatter:ce.func,defaultValue:ce.object,disabled:ce.bool,disableFuture:ce.bool,disableHighlightToday:ce.bool,disableOpenPicker:ce.bool,disablePast:ce.bool,displayWeekNumber:ce.bool,enableAccessibleFieldDOMStructure:ce.any,fixedWeekNumber:ce.number,format:ce.string,formatDensity:ce.oneOf(["dense","spacious"]),inputRef:Uy,label:ce.node,loading:ce.bool,localeText:ce.object,maxDate:ce.object,minDate:ce.object,monthsPerRow:ce.oneOf([3,4]),name:ce.string,onAccept:ce.func,onChange:ce.func,onClose:ce.func,onError:ce.func,onMonthChange:ce.func,onOpen:ce.func,onSelectedSectionsChange:ce.func,onViewChange:ce.func,onYearChange:ce.func,open:ce.bool,openTo:ce.oneOf(["day","month","year"]),orientation:ce.oneOf(["landscape","portrait"]),readOnly:ce.bool,reduceAnimations:ce.bool,referenceDate:ce.object,renderLoading:ce.func,selectedSections:ce.oneOfType([ce.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),ce.number]),shouldDisableDate:ce.func,shouldDisableMonth:ce.func,shouldDisableYear:ce.func,showDaysOutsideCurrentMonth:ce.bool,slotProps:ce.object,slots:ce.object,sx:ce.oneOfType([ce.arrayOf(ce.oneOfType([ce.func,ce.object,ce.bool])),ce.func,ce.object]),timezone:ce.string,value:ce.object,view:ce.oneOf(["day","month","year"]),viewRenderers:ce.shape({day:ce.func,month:ce.func,year:ce.func}),views:ce.arrayOf(ce.oneOf(["day","month","year"]).isRequired),yearsOrder:ce.oneOf(["asc","desc"]),yearsPerRow:ce.oneOf([3,4])};function sH(e){return Fe("MuiDialogContent",e)}Re("MuiDialogContent",["root","dividers"]);function iH(e){return Fe("MuiDialogTitle",e)}const lH=Re("MuiDialogTitle",["root"]),uH=e=>{const{classes:t,dividers:n}=e;return Le({root:["root",n&&"dividers"]},sH,t)},cH=oe("div",{name:"MuiDialogContent",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.dividers&&t.dividers]}})(tt(({theme:e})=>({flex:"1 1 auto",WebkitOverflowScrolling:"touch",overflowY:"auto",padding:"20px 24px",variants:[{props:({ownerState:t})=>t.dividers,style:{padding:"16px 24px",borderTop:`1px solid ${(e.vars||e).palette.divider}`,borderBottom:`1px solid ${(e.vars||e).palette.divider}`}},{props:({ownerState:t})=>!t.dividers,style:{[`.${lH.root} + &`]:{paddingTop:0}}}]}))),Sr=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogContent"}),{className:a,dividers:o=!1,...s}=r,i={...r,dividers:o},l=uH(i);return p.jsx(cH,{className:De(l.root,a),ownerState:i,ref:n,...s})});function dH(e){return Fe("MuiDialog",e)}const $s=Re("MuiDialog",["root","scrollPaper","scrollBody","container","paper","paperScrollPaper","paperScrollBody","paperWidthFalse","paperWidthXs","paperWidthSm","paperWidthMd","paperWidthLg","paperWidthXl","paperFullWidth","paperFullScreen"]),n2=w.createContext({}),pH=oe(dx,{name:"MuiDialog",slot:"Backdrop",overrides:(e,t)=>t.backdrop})({zIndex:-1}),fH=e=>{const{classes:t,scroll:n,maxWidth:r,fullWidth:a,fullScreen:o}=e,s={root:["root"],container:["container",`scroll${Se(n)}`],paper:["paper",`paperScroll${Se(n)}`,`paperWidth${Se(String(r))}`,a&&"paperFullWidth",o&&"paperFullScreen"]};return Le(s,dH,t)},mH=oe(px,{name:"MuiDialog",slot:"Root"})({"@media print":{position:"absolute !important"}}),hH=oe("div",{name:"MuiDialog",slot:"Container",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.container,t[`scroll${Se(n.scroll)}`]]}})({height:"100%","@media print":{height:"auto"},outline:0,variants:[{props:{scroll:"paper"},style:{display:"flex",justifyContent:"center",alignItems:"center"}},{props:{scroll:"body"},style:{overflowY:"auto",overflowX:"hidden",textAlign:"center","&::after":{content:'""',display:"inline-block",verticalAlign:"middle",height:"100%",width:"0"}}}]}),gH=oe(za,{name:"MuiDialog",slot:"Paper",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.paper,t[`scrollPaper${Se(n.scroll)}`],t[`paperWidth${Se(String(n.maxWidth))}`],n.fullWidth&&t.paperFullWidth,n.fullScreen&&t.paperFullScreen]}})(tt(({theme:e})=>({margin:32,position:"relative",overflowY:"auto","@media print":{overflowY:"visible",boxShadow:"none"},variants:[{props:{scroll:"paper"},style:{display:"flex",flexDirection:"column",maxHeight:"calc(100% - 64px)"}},{props:{scroll:"body"},style:{display:"inline-block",verticalAlign:"middle",textAlign:"initial"}},{props:({ownerState:t})=>!t.maxWidth,style:{maxWidth:"calc(100% - 64px)"}},{props:{maxWidth:"xs"},style:{maxWidth:e.breakpoints.unit==="px"?Math.max(e.breakpoints.values.xs,444):`max(${e.breakpoints.values.xs}${e.breakpoints.unit}, 444px)`,[`&.${$s.paperScrollBody}`]:{[e.breakpoints.down(Math.max(e.breakpoints.values.xs,444)+64)]:{maxWidth:"calc(100% - 64px)"}}}},...Object.keys(e.breakpoints.values).filter(t=>t!=="xs").map(t=>({props:{maxWidth:t},style:{maxWidth:`${e.breakpoints.values[t]}${e.breakpoints.unit}`,[`&.${$s.paperScrollBody}`]:{[e.breakpoints.down(e.breakpoints.values[t]+64)]:{maxWidth:"calc(100% - 64px)"}}}})),{props:({ownerState:t})=>t.fullWidth,style:{width:"calc(100% - 64px)"}},{props:({ownerState:t})=>t.fullScreen,style:{margin:0,width:"100%",maxWidth:"100%",height:"100%",maxHeight:"none",borderRadius:0,[`&.${$s.paperScrollBody}`]:{margin:0,maxWidth:"100%"}}}]}))),wr=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialog"}),a=oa(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{"aria-describedby":s,"aria-labelledby":i,"aria-modal":l=!0,BackdropComponent:u,BackdropProps:c,children:d,className:m,disableEscapeKeyDown:f=!1,fullScreen:h=!1,fullWidth:b=!1,maxWidth:g="sm",onClick:x,onClose:C,open:E,PaperComponent:k=za,PaperProps:T={},scroll:S="paper",slots:O={},slotProps:M={},TransitionComponent:$=Fa,transitionDuration:P=o,TransitionProps:L,...v}=r,N={...r,disableEscapeKeyDown:f,fullScreen:h,fullWidth:b,maxWidth:g,scroll:S},I=fH(N),A=w.useRef(),R=ee=>{A.current=ee.target===ee.currentTarget},W=ee=>{x&&x(ee),A.current&&(A.current=null,C&&C(ee,"backdropClick"))},H=or(i),B=w.useMemo(()=>({titleId:H}),[H]),_={transition:$,...O},V={transition:L,paper:T,backdrop:c,...M},J={slots:_,slotProps:V},[F,de]=ct("root",{elementType:mH,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:N,className:De(I.root,m),ref:n}),[Z,Y]=ct("backdrop",{elementType:pH,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:N}),[te,X]=ct("paper",{elementType:gH,shouldForwardComponentProp:!0,externalForwardedProps:J,ownerState:N,className:De(I.paper,T.className)}),[re,Q]=ct("container",{elementType:hH,externalForwardedProps:J,ownerState:N,className:I.container}),[G,se]=ct("transition",{elementType:Fa,externalForwardedProps:J,ownerState:N,additionalProps:{appear:!0,in:E,timeout:P,role:"presentation"}});return p.jsx(F,{closeAfterTransition:!0,slots:{backdrop:Z},slotProps:{backdrop:{transitionDuration:P,as:u,...Y}},disableEscapeKeyDown:f,onClose:C,open:E,onClick:W,...de,...v,children:p.jsx(G,{...se,children:p.jsx(re,{onMouseDown:R,...Q,children:p.jsx(te,{as:k,elevation:24,role:"dialog","aria-describedby":s,"aria-labelledby":H,"aria-modal":l,...X,children:p.jsx(n2.Provider,{value:B,children:d})})})})})}),bH=oe(wr)({[`& .${$s.container}`]:{outline:0},[`& .${$s.paper}`]:{outline:0,minWidth:Ou}}),yH=oe(Sr)({"&:first-of-type":{padding:0}});function xH(e){const{children:t,onDismiss:n,open:r,slots:a,slotProps:o}=e,s=a?.dialog??bH,i=a?.mobileTransition??Fa;return p.jsx(s,U({open:r,onClose:n},o?.dialog,{TransitionComponent:i,TransitionProps:o?.mobileTransition,PaperComponent:a?.mobilePaper,PaperProps:o?.mobilePaper,children:p.jsx(yH,{children:t})}))}const CH=["props","getOpenDialogAriaText"],EH=e=>{let{props:t,getOpenDialogAriaText:n}=e,r=je(e,CH);const{slots:a,slotProps:o,className:s,sx:i,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:c,selectedSections:d,onSelectedSectionsChange:m,timezone:f,name:h,label:b,inputRef:g,readOnly:x,disabled:C,localeText:E}=t,k=w.useRef(null),T=or(),S=o?.toolbar?.hidden??!1,{open:O,actions:M,layoutProps:$,renderCurrentView:P,fieldProps:L,contextValue:v}=Lx(U({},r,{props:t,fieldRef:k,autoFocusView:!0,additionalViewProps:{},wrapperVariant:"mobile"})),N=a.field,I=at({elementType:N,externalSlotProps:o?.field,additionalProps:U({},L,S&&{id:T},!(C||x)&&{onClick:M.onOpen,onKeyDown:c7(M.onOpen)},{readOnly:x??!0,disabled:C,className:s,sx:i,format:l,formatDensity:u,enableAccessibleFieldDOMStructure:c,selectedSections:d,onSelectedSectionsChange:m,timezone:f,label:b,name:h},g?{inputRef:g}:{}),ownerState:t});I.inputProps=U({},I.inputProps,{"aria-label":n(L.value)});const A=U({textField:a.textField},I.slots),R=a.layout??jx;let W=T;S&&(b?W=`${T}-label`:W=void 0);const H=U({},o,{toolbar:U({},o?.toolbar,{titleId:T}),mobilePaper:U({"aria-labelledby":W},o?.mobilePaper)}),B=ot(k,I.unstableFieldRef);return{renderPicker:()=>p.jsxs(Hx,{contextValue:v,localeText:E,children:[p.jsx(N,U({},I,{slots:A,slotProps:H,unstableFieldRef:B})),p.jsx(xH,U({},M,{open:O,slots:a,slotProps:H,children:p.jsx(R,U({},$,H?.layout,{slots:a,slotProps:H,children:P()}))}))]})}},r2=w.forwardRef(function(t,n){const r=Vr(),a=Pt(),o=Ax(t,"MuiMobileDatePicker"),s=U({day:yo,month:yo,year:yo},o.viewRenderers),i=U({},o,{viewRenderers:s,format:nf(a,o,!1),slots:U({field:Kx},o.slots),slotProps:U({},o.slotProps,{field:u=>U({},zn(o.slotProps?.field,u),Px(o),{ref:n}),toolbar:U({hidden:!1},o.slotProps?.toolbar)})}),{renderPicker:l}=EH({props:i,valueManager:Cr,valueType:"date",getOpenDialogAriaText:_x({utils:a,formatKey:"fullDate",contextTranslation:r.openDatePickerDialogue,propsTranslation:i.localeText?.openDatePickerDialogue}),validator:vi});return l()});r2.propTypes={autoFocus:ce.bool,className:ce.string,closeOnSelect:ce.bool,dayOfWeekFormatter:ce.func,defaultValue:ce.object,disabled:ce.bool,disableFuture:ce.bool,disableHighlightToday:ce.bool,disableOpenPicker:ce.bool,disablePast:ce.bool,displayWeekNumber:ce.bool,enableAccessibleFieldDOMStructure:ce.any,fixedWeekNumber:ce.number,format:ce.string,formatDensity:ce.oneOf(["dense","spacious"]),inputRef:Uy,label:ce.node,loading:ce.bool,localeText:ce.object,maxDate:ce.object,minDate:ce.object,monthsPerRow:ce.oneOf([3,4]),name:ce.string,onAccept:ce.func,onChange:ce.func,onClose:ce.func,onError:ce.func,onMonthChange:ce.func,onOpen:ce.func,onSelectedSectionsChange:ce.func,onViewChange:ce.func,onYearChange:ce.func,open:ce.bool,openTo:ce.oneOf(["day","month","year"]),orientation:ce.oneOf(["landscape","portrait"]),readOnly:ce.bool,reduceAnimations:ce.bool,referenceDate:ce.object,renderLoading:ce.func,selectedSections:ce.oneOfType([ce.oneOf(["all","day","empty","hours","meridiem","minutes","month","seconds","weekDay","year"]),ce.number]),shouldDisableDate:ce.func,shouldDisableMonth:ce.func,shouldDisableYear:ce.func,showDaysOutsideCurrentMonth:ce.bool,slotProps:ce.object,slots:ce.object,sx:ce.oneOfType([ce.arrayOf(ce.oneOfType([ce.func,ce.object,ce.bool])),ce.func,ce.object]),timezone:ce.string,value:ce.object,view:ce.oneOf(["day","month","year"]),viewRenderers:ce.shape({day:ce.func,month:ce.func,year:ce.func}),views:ce.arrayOf(ce.oneOf(["day","month","year"]).isRequired),yearsOrder:ce.oneOf(["asc","desc"]),yearsPerRow:ce.oneOf([3,4])};const vH=["desktopModeMediaQuery"],$c=w.forwardRef(function(t,n){const r=_t({props:t,name:"MuiDatePicker"}),{desktopModeMediaQuery:a=d7}=r,o=je(r,vH);return Cx(a,{defaultMatches:!0})?p.jsx(t2,U({ref:n},o)):p.jsx(r2,U({ref:n},o))});var pl={exports:{}},TH=pl.exports,o0;function kH(){return o0||(o0=1,(function(e,t){(function(n,r){e.exports=r()})(TH,(function(){var n="minute",r=/[+-]\d\d(?::?\d\d)?/g,a=/([+-]|\d\d)/g;return function(o,s,i){var l=s.prototype;i.utc=function(b){var g={date:b,utc:!0,args:arguments};return new s(g)},l.utc=function(b){var g=i(this.toDate(),{locale:this.$L,utc:!0});return b?g.add(this.utcOffset(),n):g},l.local=function(){return i(this.toDate(),{locale:this.$L,utc:!1})};var u=l.parse;l.parse=function(b){b.utc&&(this.$u=!0),this.$utils().u(b.$offset)||(this.$offset=b.$offset),u.call(this,b)};var c=l.init;l.init=function(){if(this.$u){var b=this.$d;this.$y=b.getUTCFullYear(),this.$M=b.getUTCMonth(),this.$D=b.getUTCDate(),this.$W=b.getUTCDay(),this.$H=b.getUTCHours(),this.$m=b.getUTCMinutes(),this.$s=b.getUTCSeconds(),this.$ms=b.getUTCMilliseconds()}else c.call(this)};var d=l.utcOffset;l.utcOffset=function(b,g){var x=this.$utils().u;if(x(b))return this.$u?0:x(this.$offset)?d.call(this):this.$offset;if(typeof b=="string"&&(b=(function(T){T===void 0&&(T="");var S=T.match(r);if(!S)return null;var O=(""+S[0]).match(a)||["-",0,0],M=O[0],$=60*+O[1]+ +O[2];return $===0?0:M==="+"?$:-$})(b),b===null))return this;var C=Math.abs(b)<=16?60*b:b;if(C===0)return this.utc(g);var E=this.clone();if(g)return E.$offset=C,E.$u=!1,E;var k=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();return(E=this.local().add(C+k,n)).$offset=C,E.$x.$localOffset=k,E};var m=l.format;l.format=function(b){var g=b||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return m.call(this,g)},l.valueOf=function(){var b=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||this.$d.getTimezoneOffset());return this.$d.valueOf()-6e4*b},l.isUTC=function(){return!!this.$u},l.toISOString=function(){return this.toDate().toISOString()},l.toString=function(){return this.toDate().toUTCString()};var f=l.toDate;l.toDate=function(b){return b==="s"&&this.$offset?i(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():f.call(this)};var h=l.diff;l.diff=function(b,g,x){if(b&&this.$u===b.$u)return h.call(this,b,g,x);var C=this.local(),E=i(b).local();return h.call(C,E,g,x)}}}))})(pl)),pl.exports}var SH=kH();const wH=ar(SH);Ct.extend(wH);function Bc(e){switch(e){case"Star":return["Equals","Contains"];case"MinMax":return["Equals","Less Than","Greater Than","Between"];case"DateMinMax":return["Equals","Before","After","Between"];case"Retrieval":return["Semantic Search"];case"Boolean":return["Equals"];case"NONE":default:return[]}}function _H(e){return e==="DateMinMax"}function jc(e){return e==="Between"}function a2({spec:e,values:t,selection:n,onChange:r,retrievalFn:a}){const o=()=>n?.matchType?n.matchType:e.defaultMatchType?e.defaultMatchType:e.filterType==="DateMinMax"?"Between":Bc(e.filterType)[0]||"Equals",[s,i]=q.useState(o()),[l,u]=q.useState(n?.value??""),[c,d]=q.useState(n?.value2??""),[m,f]=q.useState([]),[h,b]=q.useState(!1),[g,x]=q.useState(""),[C,E]=q.useState(!1),[k,T]=q.useState(!1),S=q.useRef(null),O=q.useRef(0),[M,$]=q.useState(!1);q.useEffect(()=>{if(e.filterType!=="Retrieval"||!a)return;const _=g.trim();if(_.length<=2){f([]),E(!1);return}return S.current&&clearTimeout(S.current),S.current=setTimeout(async()=>{O.current+=1;const V=O.current;b(!0);try{const J=await a(_,e);V===O.current&&f(J)}catch(J){V===O.current&&(console.error("Retrieval failed",J),f([]))}finally{V===O.current&&(b(!1),E(!0))}},500),()=>{S.current&&clearTimeout(S.current)}},[g,e,a]),q.useEffect(()=>{n===null?(u(""),d(""),i(e.defaultMatchType??(e.filterType==="DateMinMax"?"Between":Bc(e.filterType)[0]||"Equals"))):n&&(i(n.matchType),u(n.value??""),d(n.value2??""))},[n,e.filterType,e.defaultMatchType]);const P=Bc(e.filterType),L=_H(e.filterType),v=jc(s),N=L&&t.length>=2&&t[0].value instanceof Date?Ct.utc(t[0].value):void 0,I=L&&t.length>=2&&t[1].value instanceof Date?Ct.utc(t[1].value):void 0,A=e.filterType==="MinMax"&&t.length>=2&&typeof t[0].value=="number"?t[0].value:void 0,R=e.filterType==="MinMax"&&t.length>=2&&typeof t[1].value=="number"?t[1].value:void 0;if(P.length===0)return null;const W=_=>{const V=_.target.value;i(V),jc(V)||d(""),l&&r({dimensionName:e.dimensionName,source:e.source,filterName:e.filterName,matchType:V,value:l,...jc(V)&&c&&{value2:c}})},H=(_,V)=>{u(_??""),V!==void 0&&d(V??"");const J=Array.isArray(_)&&_.length===0;r(!J&&_!==""&&_!==null&&_!==void 0?{dimensionName:e.dimensionName,source:e.source,filterName:e.filterName,matchType:s,value:_,...v&&V&&{value2:V}}:null)},B=()=>{u(""),d(""),r(null)};return p.jsxs(Dt,{sx:{display:"flex",flexDirection:"column",gap:1.5,fontSize:"0.75rem","& .MuiInputBase-root":{fontSize:"0.75rem"},"& .MuiInputBase-input":{padding:"6px 10px"},"& .MuiSelect-select":{padding:"6px 10px !important"},"& .MuiAutocomplete-input":{padding:"0 !important"},"& .MuiAutocomplete-root .MuiInputBase-root":{padding:"5px 10px",minHeight:"29.5px",boxSizing:"border-box",flexWrap:"wrap"},"& .MuiChip-root":{height:"16px",margin:"0 2px 0 0"},"& .MuiChip-label":{fontSize:"0.7rem",padding:"0 6px"},"& .MuiChip-deleteIcon":{fontSize:"14px",margin:"0 2px 0 -4px"},"& .MuiInputLabel-root":{fontSize:"0.75rem",transform:"translate(10px, 6px) scale(1)"},"& .MuiInputLabel-shrink":{fontSize:"0.85rem",transform:"translate(14px, -9px) scale(0.75)"},"& .MuiOutlinedInput-notchedOutline legend":{fontSize:"0.65rem"},"& .MuiFormHelperText-root":{fontSize:"0.65rem",marginTop:"2px"},"& .MuiSvgIcon-root":{fontSize:"1.25rem"}},children:[p.jsxs(Dt,{sx:{fontWeight:600,color:e.required&&!n?"error.main":"text.primary"},children:[e.label??e.dimensionName,e.required&&p.jsx(Dt,{component:"span",sx:{color:n?"text.secondary":"error.main",fontWeight:400,fontSize:"0.7rem",ml:.5},children:"(required)"})]}),e.filterType!=="Boolean"&&!e.defaultMatchType&&P.length>1&&p.jsxs(ql,{size:"small",fullWidth:!0,children:[p.jsx(Yl,{children:"Match Type"}),p.jsx(Gl,{value:s,label:"Match Type",onChange:W,MenuProps:{PaperProps:{sx:{"& .MuiMenuItem-root":{fontSize:"0.75rem",minHeight:"auto",padding:"4px 10px"}}}},children:P.map(_=>p.jsx(on,{value:_,children:_},_))})]}),e.filterType==="Star"&&s==="Equals"&&p.jsx(Ld,{multiple:!0,size:"small",options:t,getOptionLabel:_=>typeof _=="string"?_:typeof _=="object"&&_!==null&&"value"in _?String(_.value):String(_),value:Array.isArray(l)?l.map(_=>t.find(V=>V.value===_)||_):l?[t.find(_=>_.value===l)||l]:[],onChange:(_,V)=>{const J=V.map(F=>typeof F=="string"?F:F&&typeof F=="object"&&"value"in F?F.value:F);H(J)},noOptionsText:"No matches found",renderInput:_=>p.jsx(Qe,{..._,size:"small",label:"Values",placeholder:"Select values..."}),freeSolo:!e.values||e.values.length===0,slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"0.75rem",minHeight:"auto",padding:"4px 10px"}}}}}),e.filterType==="Star"&&s==="Contains"&&p.jsx(Qe,{size:"small",label:"Search Text",value:l,onChange:_=>u(_.target.value),onBlur:()=>H(l),onKeyDown:_=>{_.key==="Enter"&&H(l)},placeholder:"Enter text to search...",fullWidth:!0}),e.filterType==="Boolean"&&p.jsxs(ql,{size:"small",fullWidth:!0,children:[p.jsx(Yl,{children:"Value"}),p.jsxs(Gl,{value:l===!0?"true":l===!1?"false":"",label:"Value",onChange:_=>{const V=_.target.value;V==="true"?H(!0):V==="false"?H(!1):B()},MenuProps:{PaperProps:{sx:{"& .MuiMenuItem-root":{fontSize:"0.75rem",minHeight:"auto",padding:"4px 10px"}}}},children:[p.jsx(on,{value:"",children:p.jsx("em",{children:"Blank"})}),p.jsx(on,{value:"true",children:"True"}),p.jsx(on,{value:"false",children:"False"})]})]}),e.filterType==="Retrieval"&&s==="Semantic Search"&&p.jsx(Ld,{multiple:!0,size:"small",options:m,loading:h,getOptionLabel:_=>typeof _=="string"?_:typeof _=="object"&&_!==null&&"value"in _?String(_.value):String(_),value:Array.isArray(l)?l.map(_=>m.find(J=>J.value===_)||{value:_}):l?[{value:l}]:[],onInputChange:(_,V)=>{x(V)},onChange:(_,V)=>{const J=V.map(F=>typeof F=="string"?F:F&&typeof F=="object"&&"value"in F?F.value:F);H(J)},noOptionsText:g.trim().length<=2?"Type at least 3 characters to search":"No matches found",renderInput:_=>p.jsx(Qe,{..._,size:"small",label:"Search Values",placeholder:"Type to search...",onFocus:()=>T(!0),onBlur:()=>T(!1),helperText:k&&!h&&C&&m.length===0?"No matches found":void 0,InputProps:{..._.InputProps,endAdornment:p.jsxs(p.Fragment,{children:[h?p.jsx(Gp,{color:"inherit",size:20}):null,_.InputProps.endAdornment]})}}),freeSolo:!0,filterOptions:_=>_,slotProps:{paper:{sx:{"& .MuiAutocomplete-option":{fontSize:"0.75rem",minHeight:"auto",padding:"4px 10px"}}}}}),e.filterType==="MinMax"&&!v&&p.jsx(Qe,{size:"small",type:"number",label:"Value",value:l,onChange:_=>H(parseFloat(_.target.value)||""),onFocus:()=>$(!0),onBlur:()=>$(!1),placeholder:"Enter number...",fullWidth:!0,inputProps:{min:A,max:R},helperText:M&&A!==void 0&&R!==void 0?`Valid range: [${A} - ${R}]`:void 0}),e.filterType==="MinMax"&&v&&p.jsxs(Dt,{sx:{display:"flex",flexDirection:"column",gap:1},children:[p.jsxs(Dt,{sx:{display:"flex",gap:1,alignItems:"center"},children:[p.jsx(Qe,{size:"small",type:"number",label:"From",value:l,onChange:_=>H(parseFloat(_.target.value)||"",c),onFocus:()=>$(!0),onBlur:()=>$(!1),placeholder:"Min...",fullWidth:!0,inputProps:{min:A,max:c||R}}),p.jsx(Dt,{children:"to"}),p.jsx(Qe,{size:"small",type:"number",label:"To",value:c,onChange:_=>H(l,parseFloat(_.target.value)||""),onFocus:()=>$(!0),onBlur:()=>$(!1),placeholder:"Max...",fullWidth:!0,inputProps:{min:l||A,max:R}})]}),M&&A!==void 0&&R!==void 0&&p.jsxs(yt,{variant:"caption",color:"text.secondary",sx:{mt:-.5,ml:1.5},children:["Valid range: [",A," - ",R,"]"]})]}),L&&!v&&p.jsx(jd,{dateAdapter:Ug,children:p.jsx($c,{label:"Date",value:l instanceof Date?Ct.utc(l):null,onChange:_=>{_===null?H(null):_.isValid()&&H(_.utc().toDate())},timezone:"UTC",minDate:l instanceof Date?void 0:N,maxDate:l instanceof Date?void 0:I,referenceDate:s==="After"&&N?N:void 0,slotProps:{textField:{size:"small",fullWidth:!0,sx:{minWidth:150},onFocus:()=>$(!0),onBlur:()=>$(!1),helperText:M&&N&&I?`Valid range: [${N.format("YYYY-MM-DD")} - ${I.format("YYYY-MM-DD")}]`:void 0},openPickerButton:{sx:{backgroundColor:"transparent"}}}})}),L&&v&&p.jsx(jd,{dateAdapter:Ug,children:p.jsxs(Dt,{sx:{display:"flex",flexDirection:"column",gap:1},children:[p.jsxs(Dt,{sx:{display:"flex",gap:1,alignItems:"center"},children:[p.jsx(Dt,{sx:{flex:1,minWidth:0},children:p.jsx($c,{label:"From",value:l instanceof Date?Ct.utc(l):null,onChange:_=>{_===null?H(null,c):_.isValid()&&H(_.utc().toDate(),c)},timezone:"UTC",minDate:l instanceof Date?void 0:N,maxDate:c instanceof Date?Ct.utc(c):l instanceof Date?void 0:I,referenceDate:N,slotProps:{textField:{size:"small",fullWidth:!0,onFocus:()=>$(!0),onBlur:()=>$(!1)},openPickerButton:{sx:{backgroundColor:"transparent"}}}})}),p.jsx(Dt,{children:"to"}),p.jsx(Dt,{sx:{flex:1,minWidth:0},children:p.jsx($c,{label:"To",value:c instanceof Date?Ct.utc(c):null,onChange:_=>{_===null?H(l,null):_.isValid()&&H(l,_.utc().toDate())},timezone:"UTC",minDate:l instanceof Date?Ct.utc(l):c instanceof Date?void 0:N,maxDate:c instanceof Date?void 0:I,referenceDate:l instanceof Date?Ct.utc(l):N,slotProps:{textField:{size:"small",fullWidth:!0,onFocus:()=>$(!0),onBlur:()=>$(!1)},openPickerButton:{sx:{backgroundColor:"transparent"}}}})})]}),M&&N&&I&&p.jsxs(yt,{variant:"caption",color:"text.secondary",sx:{mt:-.5,ml:1.5},children:["Valid range: [",N.format("YYYY-MM-DD")," -"," ",I.format("YYYY-MM-DD"),"]"]})]})})]})}function IH(e){const t=new Set,n=e.schema?.fields;if(!n)return t;for(const r of n)"kind"in r&&r.kind==="join"&&r.name&&t.add(r.name);return t}function o2(e){if(!e)return null;for(const t of e)if(t.startsWith("##(filters)")){const n=t.slice(11).trim();try{const r=JSON.parse(n);if(Array.isArray(r)){const a=[];for(const o of r)if(typeof o=="string"){const s=o.indexOf(".");s>0&&s<o.length-1&&a.push({source:o.substring(0,s),dimension:o.substring(s+1)})}if(a.length>0)return{filters:a}}}catch(r){console.error(`Failed to parse "${t}" annotation:`,r)}}return null}function s2(e){if(e.startsWith("#(filter)")){const t=e.slice(9).trim();try{const n=JSON.parse(t);if(n.type)return n}catch(n){console.error(`Failed to parse "${e}" annotation:`,n)}}return null}function AH(e){const t=e.match(/^#\s*label\s*=\s*"([^"]+)"/);return t?t[1]:null}function i2(e){const t=new Map;let n="";for(const r of e)if(r.type==="code"){if(!n&&r.text){const a=r.text.match(/import\s+(?:\{[^}]*\}\s+from\s+)?['"]([^'"]+)['"]/);a&&(n=a[1])}if(r.newSources&&r.newSources.length>0)for(const a of r.newSources)try{const o=JSON.parse(a);o.name&&t.set(o.name,o)}catch(o){console.error("Failed to parse SourceInfo:",o)}}return{sourceInfoMap:t,modelPath:n}}function l2(e,t,n){const r=[];for(const{source:a,dimension:o}of t){const s=e.get(a);if(!s){console.warn(`Source "${a}" not found in notebook sources`),r.push({source:a,model:n,dimensionName:o,filterType:"Star"});continue}const i=s.schema?.fields;if(!i){r.push({source:a,model:n,dimensionName:o,filterType:"Star"});continue}const l=i.find(d=>d.name===o);if(!l){console.warn(`Dimension "${o}" not found in source "${a}"`),r.push({source:a,model:n,dimensionName:o,filterType:"Star"});continue}let u="Star",c;if("annotations"in l&&l.annotations){for(const d of l.annotations)if(d.value){const m=s2(d.value);m&&(u=m.type);const f=AH(d.value);f&&(c=f)}}r.push({source:a,model:n,dimensionName:o,filterType:u,label:c})}return r}function DH(e,t,n){return e.length===0?"":e.map(a=>{const{dimensionName:o,source:s,matchType:i,value:l,value2:u}=a,d=s&&s!==n?`\`${s}\`.\`${o}\``:`\`${o}\``,m=l instanceof Date,f=(h,b=!1)=>h==null?"null":b&&h instanceof Date?`@${h.getFullYear()}-${String(h.getMonth()+1).padStart(2,"0")}-${String(h.getDate()).padStart(2,"0")}`:typeof h=="string"?`'${h.replace(/'/g,"\\'")}'`:typeof h=="boolean"?h?"true":"false":String(h);switch(i){case"Equals":case"Semantic Search":return Array.isArray(l)&&l.length>0?`(${l.map(b=>`${d} = ${f(b,m)}`).join(" or ")})`:`${d} = ${f(l,m)}`;case"Contains":return typeof l=="string"?`${d} ~ f'%${l.replace(/'/g,"\\'")}%'`:`${d} = ${f(l)}`;case"After":case"Greater Than":return`${d} > ${f(l,m)}`;case"Before":case"Less Than":return`${d} < ${f(l,m)}`;case"Between":return u!==void 0?`${d} >= ${f(l,m)} and ${d} <= ${f(u,m)}`:`${d} >= ${f(l,m)}`;default:return""}}).filter(a=>a.length>0).join(" and ")}function PH(e){const t=e.match(/run\s*:\s*(\w+)\s*->/);if(t)return t[1];const n=e.match(/^\s*(\w+)\s*->/m);return n?n[1]:null}function RH(e,t){return`${e.trimEnd()} + {where: ${t}}`}const MH=nt(p.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2M8 17c-.55 0-1-.45-1-1v-3c0-.55.45-1 1-1s1 .45 1 1v3c0 .55-.45 1-1 1m4 0c-.55 0-1-.45-1-1v-1c0-.55.45-1 1-1s1 .45 1 1v1c0 .55-.45 1-1 1m0-5c-.55 0-1-.45-1-1s.45-1 1-1 1 .45 1 1-.45 1-1 1m4 5c-.55 0-1-.45-1-1V8c0-.55.45-1 1-1s1 .45 1 1v8c0 .55-.45 1-1 1"})),NH=nt(p.jsx("path",{d:"M5 13h11.17l-4.88 4.88c-.39.39-.39 1.03 0 1.42s1.02.39 1.41 0l6.59-6.59c.39-.39.39-1.02 0-1.41l-6.58-6.6a.996.996 0 0 0-1.41 0c-.39.39-.39 1.02 0 1.41L16.17 11H5c-.55 0-1 .45-1 1s.45 1 1 1"})),s0=nt(p.jsx("path",{d:"m19.46 8 .79-1.75L22 5.46c.39-.18.39-.73 0-.91l-1.75-.79L19.46 2c-.18-.39-.73-.39-.91 0l-.79 1.75-1.76.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.74.39.92 0M11.5 9.5 9.91 6c-.35-.78-1.47-.78-1.82 0L6.5 9.5 3 11.09c-.78.36-.78 1.47 0 1.82l3.5 1.59L8.09 18c.36.78 1.47.78 1.82 0l1.59-3.5 3.5-1.59c.78-.36.78-1.47 0-1.82zm7.04 6.5-.79 1.75-1.75.79c-.39.18-.39.73 0 .91l1.75.79.79 1.76c.18.39.73.39.91 0l.79-1.75 1.76-.79c.39-.18.39-.73 0-.91l-1.75-.79-.79-1.76c-.18-.39-.74-.39-.92 0"})),OH=nt(p.jsx("path",{d:"M8.7 15.9 4.8 12l3.9-3.9c.39-.39.39-1.01 0-1.4a.984.984 0 0 0-1.4 0l-4.59 4.59c-.39.39-.39 1.02 0 1.41l4.59 4.6c.39.39 1.01.39 1.4 0s.39-1.01 0-1.4m6.6 0 3.9-3.9-3.9-3.9a.984.984 0 0 1 0-1.4c.39-.39 1.01-.39 1.4 0l4.59 4.59c.39.39.39 1.02 0 1.41l-4.59 4.6c-.39.39-1.01.39-1.4 0a.984.984 0 0 1 0-1.4"})),LH=nt(p.jsx("path",{d:"M12 10.9c-.61 0-1.1.49-1.1 1.1s.49 1.1 1.1 1.1 1.1-.49 1.1-1.1-.49-1.1-1.1-1.1M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m2.19 12.19L6 18l3.81-8.19L18 6z"})),FH=nt([p.jsx("path",{d:"M13 8.57c-.79 0-1.43.64-1.43 1.43s.64 1.43 1.43 1.43 1.43-.64 1.43-1.43-.64-1.43-1.43-1.43"},"0"),p.jsx("path",{d:"M13.21 3c-3.84-.11-7 2.87-7.19 6.64L4.1 12.2c-.25.33-.01.8.4.8H6v3c0 1.1.9 2 2 2h1v2c0 .55.45 1 1 1h5c.55 0 1-.45 1-1v-3.68c2.44-1.16 4.1-3.68 4-6.58-.14-3.62-3.18-6.63-6.79-6.74M16 10c0 .13-.01.26-.02.39l.83.66c.08.06.1.16.05.25l-.8 1.39c-.05.09-.16.12-.24.09l-.99-.4c-.21.16-.43.29-.67.39L14 13.83c-.01.1-.1.17-.2.17h-1.6c-.1 0-.18-.07-.2-.17l-.15-1.06c-.25-.1-.47-.23-.68-.39l-.99.4c-.09.03-.2 0-.25-.09l-.8-1.39c-.05-.08-.03-.19.05-.25l.84-.66c-.01-.13-.02-.26-.02-.39s.02-.27.04-.39l-.85-.66c-.08-.06-.1-.16-.05-.26l.8-1.38c.05-.09.15-.12.24-.09l1 .4c.2-.15.43-.29.67-.39L12 6.17c.02-.1.1-.17.2-.17h1.6c.1 0 .18.07.2.17l.15 1.06c.24.1.46.23.67.39l1-.4c.09-.03.2 0 .24.09l.8 1.38c.05.09.03.2-.05.26l-.85.66c.03.12.04.25.04.39"},"1")]),i0=nt(p.jsx("path",{d:"M4 20h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4zM2 6c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2m4 1H4V5h2zm-2 7h16c1.1 0 2-.9 2-2s-.9-2-2-2H4c-1.1 0-2 .9-2 2s.9 2 2 2m0-3h2v2H4z"})),u2=e=>{if(!e)return"Explore semantic models, run queries, and build dashboards";const t=e.replace(/^#+\s+/gm,"").replace(/\*\*(.*?)\*\*/g,"$1").replace(/\*(.*?)\*/g,"$1").replace(/\[([^\]]+)\]\([^)]+\)/g,"$1").replace(/`([^`]+)`/g,"$1").trim(),r=t.split(/\n\s*\n/)[1]||t;if(r.length<=120)return r;const a=r.substring(0,120).split(" ");return a.pop(),a.join(" ")+"..."},c2=(e,t)=>{const n=(e.readme||void 0)?.split(`
214
- `)??[];return n.length===0&&(n.push(`# ${e.name}`),n.push("")),(e.readme?.length??0)>0&&t?n.splice(2,1,t):t&&n.push(t),n.join(`
215
- `)};function $H(e){return Fe("MuiDialogContentText",e)}Re("MuiDialogContentText",["root"]);const BH=e=>{const{classes:t}=e,r=Le({root:["root"]},$H,t);return{...t,...r}},jH=oe(yt,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiDialogContentText",slot:"Root"})({}),Wo=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogContentText"}),{children:a,className:o,...s}=r,i=BH(s);return p.jsx(jH,{component:"p",variant:"body1",color:"textSecondary",ref:n,ownerState:s,className:De(i.root,o),...r,classes:i})}),HH=e=>{const{classes:t}=e;return Le({root:["root"]},iH,t)},UH=oe(yt,{name:"MuiDialogTitle",slot:"Root"})({padding:"16px 24px",flex:"0 0 auto"}),Wr=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiDialogTitle"}),{className:a,id:o,...s}=r,i=r,l=HH(i),{titleId:u=o}=w.useContext(n2);return p.jsx(UH,{component:"h2",className:De(l.root,a),ownerState:i,ref:n,variant:"h6",id:o??u,...s})});function zH(e={}){const{autoHideDuration:t=null,disableWindowBlurListener:n=!1,onClose:r,open:a,resumeHideDuration:o}=e,s=wu();w.useEffect(()=>{if(!a)return;function x(C){C.defaultPrevented||C.key==="Escape"&&r?.(C,"escapeKeyDown")}return document.addEventListener("keydown",x),()=>{document.removeEventListener("keydown",x)}},[a,r]);const i=Ae((x,C)=>{r?.(x,C)}),l=Ae(x=>{!r||x==null||s.start(x,()=>{i(null,"timeout")})});w.useEffect(()=>(a&&l(t),s.clear),[a,t,l,s]);const u=x=>{r?.(x,"clickaway")},c=s.clear,d=w.useCallback(()=>{t!=null&&l(o??t*.5)},[t,o,l]),m=x=>C=>{const E=x.onBlur;E?.(C),d()},f=x=>C=>{const E=x.onFocus;E?.(C),c()},h=x=>C=>{const E=x.onMouseEnter;E?.(C),c()},b=x=>C=>{const E=x.onMouseLeave;E?.(C),d()};return w.useEffect(()=>{if(!n&&a)return window.addEventListener("focus",d),window.addEventListener("blur",c),()=>{window.removeEventListener("focus",d),window.removeEventListener("blur",c)}},[n,a,d,c]),{getRootProps:(x={})=>{const C={...dn(e),...dn(x)};return{role:"presentation",...x,...C,onBlur:m(C),onFocus:f(C),onMouseEnter:h(C),onMouseLeave:b(C)}},onClickAway:u}}function l0(e){return e.substring(2).toLowerCase()}function VH(e,t){return t.documentElement.clientWidth<e.clientX||t.documentElement.clientHeight<e.clientY}function WH(e){const{children:t,disableReactTree:n=!1,mouseEvent:r="onClick",onClickAway:a,touchEvent:o="onTouchEnd"}=e,s=w.useRef(!1),i=w.useRef(null),l=w.useRef(!1),u=w.useRef(!1);w.useEffect(()=>(setTimeout(()=>{l.current=!0},0),()=>{l.current=!1}),[]);const c=ot(zo(t),i),d=Ae(h=>{const b=u.current;u.current=!1;const g=Ut(i.current);if(!l.current||!i.current||"clientX"in h&&VH(h,g))return;if(s.current){s.current=!1;return}let x;h.composedPath?x=h.composedPath().includes(i.current):x=!g.documentElement.contains(h.target)||i.current.contains(h.target),!x&&(n||!b)&&a(h)}),m=h=>b=>{u.current=!0;const g=t.props[h];g&&g(b)},f={ref:c};return o!==!1&&(f[o]=m(o)),w.useEffect(()=>{if(o!==!1){const h=l0(o),b=Ut(i.current),g=()=>{s.current=!0};return b.addEventListener(h,d),b.addEventListener("touchmove",g),()=>{b.removeEventListener(h,d),b.removeEventListener("touchmove",g)}}},[d,o]),r!==!1&&(f[r]=m(r)),w.useEffect(()=>{if(r!==!1){const h=l0(r),b=Ut(i.current);return b.addEventListener(h,d),()=>{b.removeEventListener(h,d)}}},[d,r]),w.cloneElement(t,f)}function qH(e){return Fe("MuiSnackbarContent",e)}Re("MuiSnackbarContent",["root","message","action"]);const YH=e=>{const{classes:t}=e;return Le({root:["root"],action:["action"],message:["message"]},qH,t)},GH=oe(za,{name:"MuiSnackbarContent",slot:"Root"})(tt(({theme:e})=>{const t=e.palette.mode==="light"?.8:.98;return{...e.typography.body2,color:e.vars?e.vars.palette.SnackbarContent.color:e.palette.getContrastText(Vc(e.palette.background.default,t)),backgroundColor:e.vars?e.vars.palette.SnackbarContent.bg:Vc(e.palette.background.default,t),display:"flex",alignItems:"center",flexWrap:"wrap",padding:"6px 16px",flexGrow:1,[e.breakpoints.up("sm")]:{flexGrow:"initial",minWidth:288}}})),KH=oe("div",{name:"MuiSnackbarContent",slot:"Message"})({padding:"8px 0"}),QH=oe("div",{name:"MuiSnackbarContent",slot:"Action"})({display:"flex",alignItems:"center",marginLeft:"auto",paddingLeft:16,marginRight:-8}),XH=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSnackbarContent"}),{action:a,className:o,message:s,role:i="alert",...l}=r,u=r,c=YH(u);return p.jsxs(GH,{role:i,elevation:6,className:De(c.root,o),ownerState:u,ref:n,...l,children:[p.jsx(KH,{className:c.message,ownerState:u,children:s}),a?p.jsx(QH,{className:c.action,ownerState:u,children:a}):null]})});function ZH(e){return Fe("MuiSnackbar",e)}Re("MuiSnackbar",["root","anchorOriginTopCenter","anchorOriginBottomCenter","anchorOriginTopRight","anchorOriginBottomRight","anchorOriginTopLeft","anchorOriginBottomLeft"]);const JH=e=>{const{classes:t,anchorOrigin:n}=e,r={root:["root",`anchorOrigin${Se(n.vertical)}${Se(n.horizontal)}`]};return Le(r,ZH,t)},eU=oe("div",{name:"MuiSnackbar",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,t[`anchorOrigin${Se(n.anchorOrigin.vertical)}${Se(n.anchorOrigin.horizontal)}`]]}})(tt(({theme:e})=>({zIndex:(e.vars||e).zIndex.snackbar,position:"fixed",display:"flex",left:8,right:8,justifyContent:"center",alignItems:"center",variants:[{props:({ownerState:t})=>t.anchorOrigin.vertical==="top",style:{top:8,[e.breakpoints.up("sm")]:{top:24}}},{props:({ownerState:t})=>t.anchorOrigin.vertical!=="top",style:{bottom:8,[e.breakpoints.up("sm")]:{bottom:24}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="left",style:{justifyContent:"flex-start",[e.breakpoints.up("sm")]:{left:24,right:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="right",style:{justifyContent:"flex-end",[e.breakpoints.up("sm")]:{right:24,left:"auto"}}},{props:({ownerState:t})=>t.anchorOrigin.horizontal==="center",style:{[e.breakpoints.up("sm")]:{left:"50%",right:"auto",transform:"translateX(-50%)"}}}]}))),tU=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiSnackbar"}),a=oa(),o={enter:a.transitions.duration.enteringScreen,exit:a.transitions.duration.leavingScreen},{action:s,anchorOrigin:{vertical:i,horizontal:l}={vertical:"bottom",horizontal:"left"},autoHideDuration:u=null,children:c,className:d,ClickAwayListenerProps:m,ContentProps:f,disableWindowBlurListener:h=!1,message:b,onBlur:g,onClose:x,onFocus:C,onMouseEnter:E,onMouseLeave:k,open:T,resumeHideDuration:S,slots:O={},slotProps:M={},TransitionComponent:$,transitionDuration:P=o,TransitionProps:{onEnter:L,onExited:v,...N}={},...I}=r,A={...r,anchorOrigin:{vertical:i,horizontal:l},autoHideDuration:u,disableWindowBlurListener:h,TransitionComponent:$,transitionDuration:P},R=JH(A),{getRootProps:W,onClickAway:H}=zH({...A}),[B,_]=w.useState(!0),V=ee=>{_(!0),v&&v(ee)},J=(ee,ne)=>{_(!1),L&&L(ee,ne)},F={slots:{transition:$,...O},slotProps:{content:f,clickAwayListener:m,transition:N,...M}},[de,Z]=ct("root",{ref:n,className:[R.root,d],elementType:eU,getSlotProps:W,externalForwardedProps:{...F,...I},ownerState:A}),[Y,{ownerState:te,...X}]=ct("clickAwayListener",{elementType:WH,externalForwardedProps:F,getSlotProps:ee=>({onClickAway:(...ne)=>{const xe=ne[0];ee.onClickAway?.(...ne),!xe?.defaultMuiPrevented&&H(...ne)}}),ownerState:A}),[re,Q]=ct("content",{elementType:XH,shouldForwardComponentProp:!0,externalForwardedProps:F,additionalProps:{message:b,action:s},ownerState:A}),[G,se]=ct("transition",{elementType:Xs,externalForwardedProps:F,getSlotProps:ee=>({onEnter:(...ne)=>{ee.onEnter?.(...ne),J(...ne)},onExited:(...ne)=>{ee.onExited?.(...ne),V(...ne)}}),additionalProps:{appear:!0,in:T,timeout:P,direction:i==="top"?"down":"up"},ownerState:A});return!T&&B?null:p.jsx(Y,{...X,...O.clickAwayListener&&{ownerState:te},children:p.jsx(de,{...Z,children:p.jsx(G,{...se,children:c||p.jsx(re,{...Q})})})})});function u0(){const[e,t]=q.useState(!1),{apiClients:n}=et.useServer(),[r,a]=q.useState(""),o=()=>{t(!0)},s=()=>{t(!1)},i=Hr.useQueryClient(),l=br({async mutationFn(c){return n.projects.createProject({name:c.name,readme:c2({name:c.name,readme:""},c.description)})},onSuccess(){s(),i.invalidateQueries({queryKey:["projects"]}),a("Project created successfully")},onError(c){a(c instanceof Error?c.message:"An unknown error occurred")}}),u=async c=>{c.preventDefault();const d=new FormData(c.currentTarget),m=d.get("name")?.toString(),f=d.get("description")?.toString();if(!m)throw new Error("Name is required");l.mutate({name:m,description:f})};return p.jsxs(q.Fragment,{children:[p.jsx(wt,{variant:"contained",onClick:o,startIcon:p.jsx(Pn.AddCircleRounded,{}),sx:{mt:2,color:"white"},children:"Create New Project"}),p.jsxs(wr,{open:e,onClose:s,children:[p.jsx(Wr,{children:"Create New Project"}),p.jsxs(Sr,{children:[p.jsx(Wo,{children:"Add a new project to start exploring semantic models and analyzing data."}),p.jsxs("form",{onSubmit:u,id:"project-form",children:[p.jsx(Qe,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",type:"text",fullWidth:!0,variant:"standard"}),p.jsx(Qe,{margin:"dense",id:"description",name:"description",label:"Project Description",placeholder:"Explore semantic models, run queries, and build dashboards",type:"text",fullWidth:!0,variant:"standard"})]})]}),p.jsxs(kr,{children:[p.jsx(wt,{disabled:l.isPending,onClick:s,children:"Cancel"}),p.jsx(wt,{type:"submit",form:"project-form",loading:l.isPending,children:"Create Project"})]})]}),p.jsx(tU,{open:r!=="",autoHideDuration:6e3,onClose:()=>a(""),message:r})]})}function nU({project:e,onCloseDialog:t}){const[n,r]=q.useState(!1),{apiClients:a}=et.useServer(),o=Hr.useQueryClient(),[s,i]=q.useState(""),l=()=>{r(!0)},u=()=>{r(!1),t()},c=br({mutationFn:()=>a.projects.deleteProject(e.name),onSuccess(){u(),o.invalidateQueries({queryKey:["projects"]}),i("Project deleted successfully")},onError(d){i(d instanceof Error?d.message:"An unknown error occurred")}});return p.jsxs(q.Fragment,{children:[p.jsxs(D.MenuItem,{onClick:l,children:[p.jsx(D.ListItemIcon,{children:p.jsx(Pn.Delete,{fontSize:"small"})}),p.jsx(D.ListItemText,{children:"Delete"})]}),p.jsxs(wr,{onClose:u,"aria-labelledby":"customized-dialog-title",open:n,children:[p.jsx(Wr,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Project"}),p.jsx(Mn,{"aria-label":"close",onClick:u,sx:d=>({position:"absolute",right:8,top:8,color:d.palette.grey[500]}),children:p.jsx(aa,{})}),p.jsx(Sr,{dividers:!0,children:p.jsxs(yt,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),p.jsxs(kr,{children:[p.jsx(wt,{variant:"outlined",onClick:u,style:{borderColor:"#14b3cb",color:"#14b3cb"},children:"Cancel"}),p.jsx(wt,{loading:c.isPending,variant:"contained",autoFocus:!0,onClick:()=>c.mutate(),color:"error",children:"Delete"})]}),p.jsx(D.Snackbar,{open:s!=="",autoHideDuration:6e3,onClose:()=>i(""),message:s})]})]})}function rU({project:e,onCloseDialog:t}){const[n,r]=q.useState(!1),{apiClients:a}=et.useServer(),o=Hr.useQueryClient(),[s,i]=q.useState(""),l=()=>{r(!0)},u=()=>{r(!1),t()},c=br({async mutationFn(m){return a.projects.updateProject(e.name,{name:e.name,readme:c2({name:e.name,readme:e.readme},m.description)})},onSuccess(){u(),o.invalidateQueries({queryKey:["projects"]}),i("Project updated successfully")},onError(m){i(m instanceof Error?m.message:"An unknown error occurred")}}),d=m=>{m.preventDefault();const h=new FormData(m.currentTarget).get("description")?.toString();c.mutate({description:h})};return p.jsxs(q.Fragment,{children:[p.jsxs(D.MenuItem,{onClick:l,children:[p.jsx(D.ListItemIcon,{children:p.jsx(Pn.Edit,{fontSize:"small"})}),p.jsx(D.ListItemText,{children:"Edit"})]}),p.jsxs(wr,{open:n,onClose:u,children:[p.jsx(Wr,{children:"Edit Project"}),p.jsxs(Sr,{children:[p.jsx(Wo,{children:"Add a new project to start exploring semantic models and analyzing data."}),p.jsxs("form",{onSubmit:d,id:"project-form",children:[p.jsx(Qe,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Project Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),p.jsx(Qe,{margin:"dense",id:"description",name:"description",label:"Project Description",type:"text",fullWidth:!0,variant:"standard",defaultValue:u2(e.readme)})]})]}),p.jsxs(kr,{children:[p.jsx(wt,{disabled:c.isPending,onClick:u,children:"Cancel"}),p.jsx(wt,{type:"submit",form:"project-form",loading:c.isPending,children:"Save Changes"})]})]}),p.jsx(D.Snackbar,{open:s!=="",autoHideDuration:6e3,onClose:()=>i(""),message:s})]})}function aU({onClickProject:e}){const{apiClients:t,mutable:n}=et.useServer(),{data:r,isSuccess:a,isError:o,error:s}=Jt({queryKey:["projects"],queryFn:()=>t.projects.listProjects()});return o?p.jsx(nn,{error:s,context:"Projects List"}):a?p.jsxs(D.Container,{maxWidth:"lg",sx:{py:4},children:[p.jsxs(D.Box,{sx:{textAlign:"center",mb:6},children:[p.jsxs(D.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[p.jsx(s0,{sx:{fontSize:32,color:"primary.main"}}),p.jsx(D.Typography,{variant:"h3",component:"h1",fontWeight:700,children:"Publisher"})]}),p.jsx(D.Typography,{variant:"h5",color:"text.secondary",sx:{mb:3,maxWidth:600,mx:"auto"},children:"The open-source semantic model server for the Malloy data language"}),p.jsx(D.Typography,{variant:"body1",color:"text.secondary",sx:{maxWidth:800,mx:"auto"},children:"Define semantic models once — and use them everywhere. Publisher serves Malloy models through clean APIs, enabling consistent, interpretable, and AI-ready data access for tools, applications, and agents."})]}),p.jsxs(D.Grid,{container:!0,spacing:3,sx:{mb:6},children:[p.jsx(D.Grid,{size:{xs:12,md:4},children:p.jsx(D.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#ad-hoc-data-analysis","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:p.jsxs(D.CardContent,{sx:{p:3},children:[p.jsxs(D.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[p.jsx(MH,{sx:{color:"info.main",fontSize:28}}),p.jsx(D.Typography,{variant:"h6",fontWeight:600,children:"Ad Hoc Analysis"})]}),p.jsx(D.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Use Explorer, a visual query builder that allows analysts to browse semantic sources, build queries, and run nested logic — all without writing code."}),p.jsx(D.Chip,{label:"No-code",size:"small",color:"primary",variant:"outlined"})]})})}),p.jsx(D.Grid,{size:{xs:12,md:4},children:p.jsx(D.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#notebook-based-dashboards","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:p.jsxs(D.CardContent,{sx:{p:3},children:[p.jsxs(D.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[p.jsx(OH,{sx:{color:"warning.main",fontSize:28}}),p.jsx(D.Typography,{variant:"h6",fontWeight:600,children:"Notebook Dashboards"})]}),p.jsx(D.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Create shareable, code-first dashboards using Malloy notebooks. Include text, charts, and reusable views — all versioned alongside your models."}),p.jsx(D.Chip,{label:"Versioned",size:"small",color:"warning",variant:"outlined"})]})})}),p.jsx(D.Grid,{size:{xs:12,md:4},children:p.jsx(D.Card,{variant:"outlined",onClick:()=>{window.open("https://github.com/malloydata/publisher/blob/main/README.md#mcp-based-ai-data-agents","_blank")},sx:{height:"100%",cursor:"pointer",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2}},children:p.jsxs(D.CardContent,{sx:{p:3},children:[p.jsxs(D.Stack,{direction:"row",alignItems:"center",spacing:1,sx:{mb:2},children:[p.jsx(FH,{sx:{color:"success.main",fontSize:28}}),p.jsx(D.Typography,{variant:"h6",fontWeight:600,children:"AI Data Agents"})]}),p.jsx(D.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2},children:"Expose your semantic models via the Model Context Protocol (MCP), enabling AI agents to discover sources and ask well-formed questions."}),p.jsx(D.Chip,{label:"AI-Ready",size:"small",color:"success",variant:"outlined"})]})})})]}),p.jsx(D.Divider,{sx:{my:4}}),r.data.length>0?p.jsxs(p.Fragment,{children:[p.jsxs(D.Box,{sx:{textAlign:"center",mb:4},children:[p.jsxs(D.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[p.jsx(i0,{sx:{color:"primary.main",fontSize:24}}),p.jsx(D.Typography,{variant:"h4",fontWeight:600,children:"Select a Project"})]}),p.jsx(D.Typography,{variant:"body1",color:"text.secondary",children:"Choose a project to explore its semantic models and start analyzing your data"}),n&&p.jsx(u0,{})]}),p.jsx(D.Grid,{container:!0,spacing:3,justifyContent:"center",children:r.data.map(i=>p.jsx(D.Grid,{size:{xs:12,sm:6,md:4},children:p.jsx(oU,{project:i,onClickProject:e})},i.name))})]}):p.jsxs(D.Box,{sx:{textAlign:"center",mb:4},children:[p.jsxs(D.Stack,{direction:"row",justifyContent:"center",alignItems:"center",spacing:1,sx:{mb:2},children:[p.jsx(i0,{sx:{color:"primary.main",fontSize:24}}),p.jsx(D.Typography,{variant:"h4",fontWeight:600,children:"Get Started"})]}),p.jsx(D.Typography,{variant:"body1",color:"text.secondary",sx:{mb:3},children:"No projects found. Create your first Malloy project to start exploring semantic models and building data experiences."}),n?p.jsx(u0,{}):p.jsx(D.Button,{variant:"contained",size:"large",color:"primary",startIcon:p.jsx(s0,{}),href:"https://github.com/malloydata/publisher/blob/main/README.md#server-configuration",target:"_blank",rel:"noopener noreferrer",children:"Learn How to Create Models"})]}),p.jsx(D.Box,{sx:{textAlign:"center",mt:6,pt:4,borderTop:1,borderColor:"divider"},children:p.jsxs(D.Typography,{variant:"body2",color:"text.secondary",children:["Publisher is built on fully open infrastructure and designed for the AI era. Join the"," ",p.jsx("a",{href:"https://join.slack.com/t/malloy-community/shared_invite/zt-1kgfwgi5g-CrsdaRqs81QY67QW0~t_uw",target:"_blank",rel:"noopener noreferrer",style:{color:"primary.main",textDecoration:"underline"},children:"Malloy Slack community"})," ","to ask questions, share ideas, and contribute to the future of data modeling."]})})]}):p.jsx(tn,{text:"Loading projects..."})}function oU({project:e,onClickProject:t}){const{mutable:n}=et.useServer(),[r,a]=q.useState(null),o=!!r,s=l=>{a(l.currentTarget)},i=()=>{a(null)};return p.jsx("div",{children:p.jsxs(D.Card,{variant:"outlined",sx:{height:"100%",transition:"all 0.2s ease","&:hover":{transform:"translateY(-2px)",boxShadow:2,borderColor:"primary.main"}},children:[n&&p.jsxs(p.Fragment,{children:[p.jsx(D.IconButton,{"aria-controls":o?"project-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,onClick:s,sx:{position:"absolute",top:8,right:8},children:p.jsx(Pn.MoreVert,{fontSize:"small"})}),p.jsxs(D.Menu,{id:"project-menu","aria-haspopup":"true","aria-expanded":o?"true":void 0,open:o,anchorEl:r,onClose:i,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},children:[p.jsx(rU,{project:e,onCloseDialog:i}),p.jsx(nU,{project:e,onCloseDialog:i})]})]}),p.jsxs(D.CardContent,{sx:{p:3,textAlign:"center"},children:[p.jsx(LH,{sx:{fontSize:48,color:"primary.main",mb:2}}),p.jsx(D.Typography,{variant:"h6",fontWeight:600,gutterBottom:!0,children:e.name}),p.jsx(D.Typography,{variant:"body2",color:"text.secondary",sx:{mb:2,minHeight:"60px"},children:u2(e.readme)}),p.jsx(D.Button,{variant:"contained",color:"secondary",endIcon:p.jsx(NH,{}),fullWidth:!0,onClick:l=>t(`/${e.name}/`,l),children:"Open Project"})]})]})})}const Do=nt(p.jsx("path",{d:"M15.5 14h-.79l-.28-.27C15.41 12.59 16 11.11 16 9.5 16 5.91 13.09 3 9.5 3S3 5.91 3 9.5 5.91 16 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14"})),sU=nt(p.jsx("path",{d:"M8 5v14l11-7z"}));function d2({open:e,onClose:t,result:n,title:r="Results"}){return p.jsxs(D.Dialog,{open:e,onClose:t,maxWidth:!1,fullWidth:!0,sx:{"& .MuiDialog-paper":{width:"95vw",height:"95vh",maxWidth:"none"}},children:[p.jsxs(D.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[r,p.jsx(D.IconButton,{onClick:t,sx:{color:"#666666"},children:p.jsx(aa,{})})]}),p.jsx(D.DialogContent,{sx:{height:"calc(95vh - 120px)",overflow:"auto",padding:"0 16px"},children:p.jsx(Uo,{result:n,maxHeight:800,maxResultSize:1e6})})]})}function iU({queryName:e,annotations:t,resourceUri:n,runOnDemand:r=!1,maxResultSize:a=0}){const[o,s]=q.useState(),[i,l]=q.useState(!1),[u,c]=q.useState(!1),{packageName:d,projectName:m,versionId:f,modelPath:h}=vt(n),{apiClients:b}=et.useServer(),{data:g,isSuccess:x,isLoading:C}=Jt({queryKey:["namedQueryResult",n,e],queryFn:()=>b.models.executeQueryModel(m,d,h,{query:void 0,sourceName:void 0,queryName:e,versionId:f}),enabled:r?u:!0});return q.useEffect(()=>{if(t&&t.length>0){const E=t.map(k=>`// ${k}`).join(`
216
- `);Hl(E,"typescript").then(k=>{s(k)})}},[t]),p.jsxs(Qc,{children:[o&&p.jsx(D.Box,{sx:{marginBottom:"16px"},children:p.jsx(D.Typography,{fontSize:"12px",sx:{fontSize:"12px","& .line":{textWrap:"wrap"}},children:p.jsx("div",{className:"content",dangerouslySetInnerHTML:{__html:o}})})}),p.jsxs(D.Box,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",marginBottom:"8px"},children:[p.jsx(D.Typography,{variant:"body2",sx:{fontSize:"15px",fontWeight:"600",color:"#495057",padding:"8px 16px",backgroundColor:"#f8f9fa",borderRadius:"6px",border:"1px solid #e9ecef"},children:e}),p.jsx(D.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>l(!0),children:p.jsx(Do,{sx:{fontSize:"18px",color:"#666666"}})})]}),p.jsxs(Gi,{sx:{position:"relative"},children:[r&&!u&&p.jsxs(D.Box,{sx:{padding:"40px 20px",textAlign:"center",display:"flex",flexDirection:"column",alignItems:"center",gap:"16px"},children:[p.jsx(D.Typography,{variant:"body2",color:"text.secondary",children:"Click Run to execute the query"}),p.jsx(D.Button,{variant:"contained",startIcon:p.jsx(sU,{}),onClick:()=>c(!0),sx:{backgroundColor:"#1976d2","&:hover":{backgroundColor:"#1565c0"},textTransform:"none",fontSize:"14px",fontWeight:600,padding:"8px 24px"},children:"Run Query"})]}),(!r||u)&&C&&p.jsx(D.Box,{sx:{padding:"20px",textAlign:"center"},children:p.jsx(D.Typography,{children:"Loading results..."})}),(!r||u)&&x&&g?.data?.result&&p.jsx(Uo,{result:g.data.result,maxHeight:600,maxResultSize:a})]}),p.jsx(d2,{open:i,onClose:()=>l(!1),result:g?.data?.result||"",title:`Query: ${e}`})]})}function df(e,t=!0){const{modelPath:n,projectName:r,packageName:a,versionId:o}=vt(e),{apiClients:s}=et.useServer();return Jt({queryKey:["package",r,a,n,o],queryFn:async()=>(await s.models.getModel(r,a,n,o)).data,enabled:t})}function pf({data:e,onChange:t,existingQuery:n,initialSelectedSourceIndex:r=0,onSourceChange:a,resourceUri:o}){const[s,i]=q.useState(r);q.useEffect(()=>{i(r)},[r]);const{data:l,isError:u,isLoading:c,error:d}=df(o,!e),{modelPath:m}=vt(o),f=e||l;if(c&&!e)return p.jsx(tn,{text:"Fetching Model..."});if(u&&!e)return console.log("error",d),p.jsx(nn,{error:d,context:`ModelExplorer > ${m}`});if(!f)return p.jsx(tn,{text:"Loading..."});const h=(f?.sourceInfos||[]).map((g,x)=>{try{return JSON.parse(g)?.name||`Source ${x+1}`}catch{return`Source ${x+1}`}}),b=h[s]||"";return p.jsxs(Cl,{variant:"outlined",children:[p.jsx(F0,{children:p.jsx(D.Stack,{sx:{flexDirection:"row"},children:p.jsx(Ld,{size:"small",id:"size-small-standard",disablePortal:!0,options:h,value:b,onChange:(g,x)=>{if(!x)return;const C=h.indexOf(x);C>=0&&(i(C),a?.(C))},renderInput:g=>p.jsx(Qe,{...g}),style:{width:350,marginTop:"3px",marginLeft:"6px",marginBottom:"8px"}})})}),p.jsx(Qd,{children:p.jsxs(D.Stack,{spacing:2,component:"section",children:[Array.isArray(f.sourceInfos)&&f.sourceInfos.length>0&&p.jsx(Np,{sourceAndPaths:f.sourceInfos.map(g=>({sourceInfo:JSON.parse(g),modelPath:m})),selectedSourceIndex:s,existingQuery:n,onQueryChange:t,resourceUri:o}),p.jsx(D.Box,{height:"5px"})]})})]})}function ff({open:e,onClose:t,resourceUri:n,data:r,title:a="Data Sources",hasValidImport:o=!0,existingQuery:s,initialSelectedSourceIndex:i,onChange:l,onSourceChange:u}){return p.jsxs(D.Dialog,{open:e,onClose:t,fullScreen:!0,children:[p.jsxs(D.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[a,p.jsx(D.IconButton,{onClick:t,sx:{color:"#666666"},children:p.jsx(aa,{})})]}),p.jsx(D.DialogContent,{children:o?p.jsx(pf,{resourceUri:n,data:r,existingQuery:s,initialSelectedSourceIndex:i,onChange:l,onSourceChange:u}):p.jsx("div",{children:"No valid import statement found in cell"})})]})}function lU({onChange:e,resourceUri:t,runOnDemand:n=!1,maxResultSize:r=0}){const{modelPath:a}=vt(t),{data:o,isError:s,isLoading:i,error:l}=df(t),[u,c]=q.useState(!1),[d,m]=q.useState(),[f,h]=q.useState(0),[b,g]=q.useState("");if(i)return p.jsx(tn,{text:"Fetching Model..."});if(s)return console.log("error",l),p.jsx(nn,{error:l,context:`Model > ${a}`});const x=k=>{m(k),e&&e(k)},C=k=>{h(k)},E=()=>{const k=window.location.href;navigator.clipboard.writeText(k).then(()=>g("URL copied to clipboard!")).catch(()=>g("Failed to copy URL"))};return p.jsxs(p.Fragment,{children:[p.jsxs(D.Box,{sx:{position:"relative",maxWidth:"1200px",margin:"0 auto",paddingTop:"24px"},children:[Array.isArray(o?.sourceInfos)&&o.sourceInfos.length>0&&p.jsxs(D.Stack,{spacing:2,component:"section",children:[p.jsxs(D.Box,{sx:{padding:"0 0 16px 0",display:"flex",alignItems:"center",justifyContent:"space-between"},children:[p.jsx(D.Typography,{variant:"h1",sx:{fontSize:"28px",fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"0",paddingLeft:"0"},children:"Sources"}),p.jsx(D.Tooltip,{title:"Click to copy link",children:p.jsx(Xd,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer"},onClick:E})})]}),p.jsx(pf,{data:o,onChange:x,onSourceChange:C,existingQuery:d,initialSelectedSourceIndex:f,resourceUri:t}),p.jsx(D.IconButton,{sx:{position:"absolute",top:"90px",right:"4px",backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",zIndex:2},onClick:()=>c(!0),children:p.jsx(Do,{sx:{fontSize:"18px",color:"#666666",marginBottom:"5px"}})})]}),o?.queries?.length>0&&p.jsxs(D.Stack,{spacing:2,component:"section",sx:{marginTop:"24px"},children:[p.jsx(D.Box,{sx:{padding:"0 0 16px 0"},children:p.jsx(D.Typography,{variant:"h2",sx:{fontSize:"24px",fontWeight:"600",color:"#1a1a1a",marginBottom:"0",marginTop:"8px",paddingLeft:"0"},children:"Named Queries"})}),o.queries.map(k=>p.jsx(iU,{queryName:k.name,annotations:k.annotations,resourceUri:t,runOnDemand:n,maxResultSize:r},k.name))]}),p.jsx(ff,{open:u,onClose:()=>c(!1),resourceUri:t,data:o,title:`Model: ${a.split("/").pop()}`,existingQuery:d,initialSelectedSourceIndex:f,onChange:x,onSourceChange:C})]}),p.jsx(D.Snackbar,{open:b!=="",autoHideDuration:6e3,onClose:()=>g(""),message:b})]})}function p2(e,t){return`${e}:${t}`}function jr(e){return p2(e.source,e.filterName??e.dimensionName)}function f2(e){return e.replace(/'/g,"\\'").replace(/\\/g,"\\\\")}function lr(e,t=!1){return e==null?"null":t?e instanceof Date?`@${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:`@${e}`:typeof e=="string"?`'${f2(e)}'`:typeof e=="number"?String(e):typeof e=="boolean"?e?"true":"false":String(e)}function uU(e){const{dimensionName:t,matchType:n,value:r,value2:a}=e,o=`\`${t}\``,s=r instanceof Date;switch(n){case"Equals":case"Semantic Search":return Array.isArray(r)&&r.length>0?`(${r.map(l=>`${o} = ${lr(l,s)}`).join(" or ")})`:Array.isArray(r)?"":`${o} = ${lr(r,s)}`;case"Contains":return typeof r=="string"?`${o} ~ f'%${f2(r)}%'`:Array.isArray(r)?"":`${o} = ${lr(r)}`;case"After":return Array.isArray(r)?"":`${o} > ${lr(r,s)}`;case"Before":return Array.isArray(r)?"":`${o} < ${lr(r,s)}`;case"Greater Than":return Array.isArray(r)?"":`${o} > ${lr(r)}`;case"Less Than":return Array.isArray(r)?"":`${o} < ${lr(r)}`;case"Between":return Array.isArray(r)?"":a!==void 0?`${o} >= ${lr(r,s)} and ${o} <= ${lr(a,s)}`:`${o} >= ${lr(r,s)}`;default:return""}}function cU(e){const t=new Map;for(const n of e){const r=`${n.source}|${n.model}`,a=t.get(r)||[];a.push(n),t.set(r,a)}return t}function dU(e,t,n,r){const a=t.filter(u=>(u.filterType==="Star"||u.filterType==="MinMax"||u.filterType==="DateMinMax")&&!u.values);if(a.length===0)return"";const s=[...new Set(a.map(u=>u.dimensionName))].map(u=>`\`${u}\``).join(", "),i=r?.filter(u=>u.source===e)||[],l=i.length>0?i.map(u=>uU(u)).filter(u=>u.length>0).join(" and "):"";return`
217
- run: ${e} -> {
218
- ${l?`where: ${l}`:""}
219
- index: ${s}
220
- } -> {
221
- select: *
222
- order_by: weight desc
223
-
224
- limit: ${n}
225
- }
226
- `}function pU(e,t){const n=new Map;for(const c of t){const d=jr(c);n.set(d,[])}const r=JSON.parse(e),a=r.schema.fields,o=new Map;a.forEach((c,d)=>{o.set(c.name,d)});const s=c=>{if(!c)return null;switch(c.kind){case"string_cell":return c.string_value??null;case"number_cell":return c.number_value??null;case"boolean_cell":return c.boolean_value??null;case"null_cell":return null;default:return console.log("Unknown cell kind: "+c.kind),null}},l=(r.data?.array_value||[]).map(c=>{const d={};return c.kind==="record_cell"&&c.record_value&&c.record_value.forEach((m,f)=>{const h=a[f]?.name;if(h){const b=s(m);h==="fieldName"&&typeof b=="string"?d.fieldName=b:h==="fieldPath"&&typeof b=="string"?d.fieldPath=b:h==="fieldType"&&typeof b=="string"?d.fieldType=b:h==="fieldValue"&&typeof b=="string"?d.fieldValue=b:h==="weight"&&typeof b=="number"&&(d.weight=b)}}),d}),u=l.length===0||l.every(c=>!c.fieldName);for(const c of t){if(c.filterType==="NONE"||c.filterType==="Retrieval")continue;const d=l.filter(f=>{const h=f.fieldName||"",b=f.fieldPath||"";if(h===c.dimensionName||b===c.dimensionName||h.toLowerCase()===c.dimensionName.toLowerCase()||b.toLowerCase()===c.dimensionName.toLowerCase())return!0;const g=b.split(".").pop()||"";return g===c.dimensionName||g.toLowerCase()===c.dimensionName.toLowerCase()});if(d.length===0)continue;const m=jr(c);if(c.filterType==="Star"){const f=d.filter(h=>h.fieldType==="string").map(h=>({value:h.fieldValue??"",count:h.weight})).sort((h,b)=>(b.count??0)-(h.count??0));n.set(m,f)}else if(c.filterType==="MinMax"){console.log("MinMax dimensionEntries: "+JSON.stringify(d,null,2)),console.log("All MinMax dimension entries fieldTypes:",d.map(h=>h.fieldType));const f=d.find(h=>h.fieldType==="number");if(console.log("numericEntry: "+JSON.stringify(f,null,2)),f?.fieldValue){const h=f.fieldValue,b=h.split(" to ");if(console.log("rangeParts: "+b),b.length===2){const g=[{value:parseFloat(b[0])},{value:parseFloat(b[1])}];n.set(m,g)}else console.warn(`Could not parse numeric range for ${c.dimensionName}: ${h}`)}else console.warn(`No numeric entry found for ${c.dimensionName}. Available entries:`,d)}else if(c.filterType==="DateMinMax"){const f=d.find(h=>h.fieldType==="date"||h.fieldType==="timestamp"||h.fieldType==="string");if(console.log("dateEntry: "+JSON.stringify(f,null,2)),console.log("All date dimension entries fieldTypes:",d.map(h=>h.fieldType)),f?.fieldValue){const h=f.fieldValue,b=h.split(" to ");if(console.log("date rangeParts: "+b),b.length===2){const g=[{value:new Date(b[0].trim())},{value:new Date(b[1].trim())}];n.set(m,g)}else console.warn(`Could not parse date range for ${c.dimensionName}: ${h}`)}else console.warn(`No date entry found for ${c.dimensionName}. Available entries:`,d)}}return{values:n,noRowsMatchedFilter:u}}function mf(e){const{project:t,package:n,dimensionSpecs:r,versionId:a,enabled:o=!0,indexLimit:s=1e4,activeFilters:i=[]}=e,l=q.useMemo(()=>cU(r),[r]),u=q.useMemo(()=>{const b=[];for(const[g,x]of l){const[C,E]=g.split("|"),k=dU(C,x,s,i);k?b.push({key:g,source:C,model:E,query:k,specs:x}):console.log("No query for source: ",C,"model: ",E)}return b},[l,s,i]),c=q.useMemo(()=>o&&u.length>0&&r.some(b=>b.filterType==="Star"||b.filterType==="MinMax"||b.filterType==="DateMinMax"),[o,u,r]),{apiClients:d}=et.useServer(),m=Jt({queryKey:["dimensionalFilter",t,n,r,a,i],queryFn:async()=>{if(!c){const C=new Map;for(const E of r){const k=jr(E);C.set(k,[])}return{values:C,noRowsMatchedFilter:!1}}const b=await Promise.all(u.map(async C=>{const E=await d.models.executeQueryModel(t,n,C.model,{query:C.query,versionId:a,bypassFilters:!0});return{config:C,result:pU(E.data.result,C.specs)}})),g=new Map;let x=!1;for(const{result:C}of b){for(const[E,k]of C.values)g.set(E,k);C.noRowsMatchedFilter&&(x=!0)}return{values:g,noRowsMatchedFilter:x}},enabled:c,staleTime:300*1e3,placeholderData:b=>b}),f=m.data?.values;return{data:q.useMemo(()=>{const b=new Map;for(const g of r){const x=jr(g);g.values?b.set(x,g.values.map(C=>({value:C}))):b.set(x,[])}if(f)for(const[g,x]of f)x.length>0&&b.set(g,x);return b},[r,f]),noRowsMatchedFilter:m.data?.noRowsMatchedFilter??!1,isLoading:c?m.isPending:!1,isError:c?m.isError:!1,error:c?m.error:null,refetch:m.refetch}}function m2(e){return e.replace(/'/g,"\\'").replace(/\\/g,"\\\\")}function ur(e,t=!1){return e==null?"null":t?e instanceof Date?`@${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:`@${e}`:typeof e=="string"?`'${m2(e)}'`:typeof e=="number"?String(e):typeof e=="boolean"?e?"true":"false":String(e)}function fU(e){const{dimensionName:t,matchType:n,value:r,value2:a}=e,o=`\`${t}\``,s=r instanceof Date;switch(n){case"Equals":case"Semantic Search":return Array.isArray(r)&&r.length>0?`(${r.map(l=>`${o} = ${ur(l,s)}`).join(" or ")})`:Array.isArray(r)?"":`${o} = ${ur(r,s)}`;case"Contains":return typeof r=="string"?`${o} ~ f'%${m2(r)}%'`:Array.isArray(r)?"":`${o} = ${ur(r)}`;case"After":return Array.isArray(r)?"":`${o} > ${ur(r,s)}`;case"Before":return Array.isArray(r)?"":`${o} < ${ur(r,s)}`;case"Greater Than":return Array.isArray(r)?"":`${o} > ${ur(r)}`;case"Less Than":return Array.isArray(r)?"":`${o} < ${ur(r)}`;case"Between":return Array.isArray(r)?"":a!==void 0?`${o} >= ${ur(r,s)} and ${o} <= ${ur(a,s)}`:`${o} >= ${ur(r,s)}`;default:return""}}function hf(e){const{dimensionSpecs:t}=e,[n,r]=q.useState(()=>{const u=new Map;return t.forEach(c=>{const d=jr(c);u.set(d,{spec:c,selection:null})}),u});q.useEffect(()=>{r(u=>{const c=new Map;return t.forEach(d=>{const m=jr(d),f=u.get(m);c.set(m,{spec:d,selection:f?.selection??null})}),c})},[t]);const a=q.useCallback((u,c)=>{r(d=>{const m=new Map(d),f=m.get(u);return f&&m.set(u,{...f,selection:c}),m})},[]),o=q.useCallback(u=>{a(u,null)},[a]),s=q.useCallback(()=>{r(u=>{const c=new Map(u);return c.forEach((d,m)=>{c.set(m,{...d,selection:null})}),c})},[]),i=q.useCallback(()=>{const u=[];return n.forEach(c=>{c.selection&&u.push(c.selection)}),u},[n]),l=q.useCallback(()=>{const u=i();if(u.length===0)return"";const c=u.map(d=>fU(d)).filter(d=>d.length>0);return c.length===0?"":`where ${c.join(" and ")}`},[i]);return{filterStates:n,updateFilter:a,clearFilter:o,clearAllFilters:s,getActiveFilters:i,generateWhereClause:l}}const mU=nt(p.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"}));function gf(e){const{projectName:t,packageName:n}=vt(e.resourceUri);if(!t||!n)throw new Error("Project and Package name must be provided for query embedding.");return JSON.stringify({...e})}function hU({embeddedQueryResult:e}){const{query:t,sourceName:n,queryName:r,resourceUri:a,height:o}=JSON.parse(e),{modelPath:s}=vt(a);if(!s||!t&&(!r||!n)||typeof s!="string")throw new Error("Invalid embedded query result: "+e);return p.jsx(h2,{query:t,sourceName:n,queryName:r,resourceUri:a,height:o})}function h2({query:e,sourceName:t,queryName:n,resourceUri:r,height:a=400}){const{modelPath:o,projectName:s,packageName:i,versionId:l}=vt(r),{apiClients:u}=et.useServer();if(!s||!i)throw new Error("No project or package name provided. A resource URI must be provided.");const{data:c,isSuccess:d,isError:m,error:f}=Jt({queryKey:[r,e,t,n],queryFn:()=>u.models.executeQueryModel(s,i,o,{query:e,sourceName:t,queryName:n,versionId:l})});return p.jsxs(p.Fragment,{children:[!d&&!m&&p.jsx(tn,{text:"Fetching Query Results..."}),d&&p.jsx(q.Suspense,{fallback:p.jsx("div",{children:"Loading..."}),children:p.jsx(Uo,{result:c.data.result,maxHeight:a})}),m&&p.jsx(nn,{context:`${s} > ${i} > ${o}`,error:f})]})}function gU({cell:e,hideCodeCellIcon:t,hideEmbeddingIcon:n,resourceUri:r,index:a,maxResultSize:o,isExecuting:s}){const[i,l]=q.useState(!1),[u,c]=q.useState(!1),[d,m]=q.useState(!1),[f,h]=q.useState(),[b,g]=q.useState(),[x,C]=q.useState(!1),[E,k]=q.useState(""),T=/import\s*\{([^}]+)\}\s*from\s*['"`][^'"`]+['"`]/,S=/import\s*(?:\{[^}]*\}\s*from\s*)?['"`]([^'"`]+)['"`]/,O=N=>N.split(`
227
- `).filter(I=>!I.trimStart().startsWith("##")).join(`
228
- `),M=!!e.text&&(T.test(e.text)||S.test(e.text)),$=()=>{if(!e.newSources||e.newSources.length===0)return 0;let N=[],I="";if(e.text){const A=e.text.match(T);A&&(N=A[1].split(",").map(W=>W.trim()));const R=e.text.match(S);R&&(I=R[1].trim())}for(let A=0;A<e.newSources.length;A++)try{const R=JSON.parse(e.newSources[A]);if(N.length>0&&N.includes(R.name)||I&&I===R.path)return A}catch{continue}return 0},P=e.newSources&&e.newSources.length>0?{sourceInfos:e.newSources,resource:r}:void 0,L=gf({query:e.text,resourceUri:r});q.useEffect(()=>{e.type==="code"&&Hl(O(e.text),"malloy").then(N=>{h(N)})},[e]),q.useEffect(()=>{Hl(L,"typescript").then(N=>{g(N)})},[L]);const v=()=>{const N=window.location.href;navigator.clipboard.writeText(N).then(()=>k("URL copied to clipboard!")).catch(()=>k("Failed to copy URL"))};return e.type==="markdown"&&p.jsx(Qc,{children:p.jsxs(D.Box,{sx:{"& h1, & h2, & h3, & h4, & h5, & h6":{fontWeight:"600",color:"#1a1a1a",marginBottom:"8px",marginTop:"16px"},"& h1":{fontSize:"28px"},"& h2":{fontSize:"24px"},"& h3":{fontSize:"20px"},"& p":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& ul, & ol":{color:"#333333",lineHeight:"1.7",marginBottom:"8px",fontSize:"16px"},"& li":{marginBottom:"4px"}},children:[a===0?p.jsxs(D.Stack,{direction:"row",alignItems:"flex-start",justifyContent:"space-between",children:[p.jsx(gl,{children:e.text}),p.jsx(D.Tooltip,{title:"Click to copy link",children:p.jsx(Xd,{sx:{fontSize:"24px",color:"#666666",cursor:"pointer",marginTop:"26px"},onClick:v})})]}):p.jsx(gl,{children:e.text}),p.jsx(D.Snackbar,{open:E!=="",autoHideDuration:6e3,onClose:()=>k(""),message:E})]})})||e.type==="code"&&p.jsxs(Qc,{children:[(!t||!n&&e.result||e.newSources&&e.newSources.length>0)&&p.jsx(D.Stack,{sx:{flexDirection:"column",gap:"8px",marginBottom:"2px"},children:e.newSources&&e.newSources.length>0&&p.jsx(Gi,{sx:{position:"relative",padding:"0"},children:p.jsxs(D.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",paddingLeft:"24px",paddingRight:"8px"},children:[f&&p.jsx("span",{dangerouslySetInnerHTML:{__html:f},style:{fontFamily:"monospace",fontSize:"14px",flex:1,marginRight:"8px"}}),M&&p.jsx(D.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px",flexShrink:0},onClick:()=>C(!0),children:p.jsx(Do,{sx:{fontSize:"18px",color:"#666666"}})})]})})}),p.jsx(ff,{open:x,onClose:()=>C(!1),title:"Data Sources",hasValidImport:M,resourceUri:r,data:P,initialSelectedSourceIndex:$()}),p.jsxs(D.Dialog,{open:i,onClose:()=>l(!1),maxWidth:"lg",fullWidth:!0,children:[p.jsxs(D.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Malloy Code",p.jsx(D.IconButton,{onClick:()=>l(!1),sx:{color:"#666666"},children:p.jsx(aa,{})})]}),p.jsx(D.DialogContent,{children:p.jsx(D.Box,{sx:{border:"1px solid #e0e0e0",borderRadius:"8px",padding:"16px",fontFamily:"monospace",fontSize:"14px",lineHeight:"1.5",overflow:"auto",maxHeight:"70vh",backgroundColor:"#ffffff"},children:p.jsx("pre",{className:"code-display",style:{margin:0},dangerouslySetInnerHTML:{__html:f}})})})]}),p.jsxs(D.Dialog,{open:u,onClose:()=>c(!1),maxWidth:"lg",fullWidth:!0,children:[p.jsxs(D.DialogTitle,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["Embeddable Code",p.jsx(D.IconButton,{onClick:()=>c(!1),sx:{color:"#666666"},children:p.jsx(aa,{})})]}),p.jsx(D.DialogContent,{children:p.jsxs(D.Stack,{sx:{flexDirection:"row",justifyContent:"space-between",alignItems:"flex-start"},children:[p.jsx(D.Typography,{component:"div",sx:{fontSize:"12px",fontFamily:"monospace","& .line":{textWrap:"wrap"},flex:1},dangerouslySetInnerHTML:{__html:b}}),p.jsx(D.Tooltip,{title:"Copy Embeddable Code",children:p.jsx(D.IconButton,{sx:{width:"24px",height:"24px",marginLeft:"8px",color:"#666666"},onClick:()=>{navigator.clipboard.writeText(L)},children:p.jsx(mU,{})})})]})})]}),p.jsx(d2,{open:d,onClose:()=>m(!1),result:e.result||"",title:"Results"}),s&&!e.result&&!M&&!(e.newSources&&e.newSources.length>0)&&p.jsx(Gi,{sx:{display:"flex",justifyContent:"center",alignItems:"center",minHeight:200},children:p.jsx(D.CircularProgress,{size:32})}),e.result&&p.jsxs(Gi,{sx:{position:"relative"},children:[p.jsx(D.Box,{sx:{paddingTop:"24px"},children:p.jsx(Uo,{result:e.result,maxHeight:700,maxResultSize:o})}),p.jsxs(D.Stack,{sx:{position:"absolute",top:"8px",right:"8px",flexDirection:"row",gap:"8px",alignItems:"center",zIndex:2},children:[!t&&p.jsx(D.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:N=>{N.stopPropagation(),l(!0)},children:p.jsx(B0,{sx:{fontSize:"18px",color:"#666666"}})}),p.jsx(D.IconButton,{sx:{backgroundColor:"rgba(255, 255, 255, 0.9)","&:hover":{backgroundColor:"rgba(255, 255, 255, 1)"},width:"32px",height:"32px"},onClick:()=>m(!0),children:p.jsx(Do,{sx:{fontSize:"18px",color:"#666666"}})})]})]})]})}const bU=4;function g2({resourceUri:e,maxResultSize:t=0,retrievalFn:n}){const{apiClients:r}=et.useServer(),{projectName:a,packageName:o,versionId:s,modelPath:i}=vt(e),{data:l,isSuccess:u,isError:c,error:d}=Jt({queryKey:[e],queryFn:async()=>(await r.notebooks.getNotebook(a,o,i,s)).data}),[m,f]=q.useState([]),[h,b]=q.useState(!1),[g,x]=q.useState(null),C=q.useMemo(()=>l?o2(l.annotations):null,[l]),E=q.useMemo(()=>l?.notebookCells?i2(l.notebookCells):null,[l]),k=q.useMemo(()=>E?.sourceInfoMap??new Map,[E]),T=E?.modelPath??null,S=q.useMemo(()=>{const H=new Map;if(!l?.sources)return H;for(const B of l.sources)if(B.name&&B.filters&&B.filters.length>0){const _=B.filters.filter(V=>!V.implicit);_.length>0&&H.set(B.name,_)}return H},[l]),O=S.size>0,M=q.useMemo(()=>{if(O&&T){const H=[];for(const[B,_]of S)for(const V of _??[]){if(!V.dimension||!V.type)continue;let J;const F=V.dimensionType;F==="boolean"?J="Boolean":F==="date"||F==="timestamp"||F==="timestamptz"?J="DateMinMax":F==="number"?J=V.type==="equal"||V.type==="in"?"Star":"MinMax":J={equal:"Star",in:"Star",like:"Star",greater_than:"MinMax",less_than:"MinMax"}[V.type]??"Star";const Z={equal:"Equals",in:"Equals",like:"Contains",greater_than:J==="DateMinMax"?"After":"Greater Than",less_than:J==="DateMinMax"?"Before":"Less Than"}[V.type],Y=V.name!==V.dimension?V.name:void 0;H.push({source:B,model:T,dimensionName:V.dimension,filterType:J,label:Y,filterName:V.name??V.dimension,defaultMatchType:Z,required:V.required??!1})}return H}return!C||k.size===0||!T?[]:l2(k,C.filters,T)},[O,S,C,k,T]),{filterStates:$,updateFilter:P,getActiveFilters:L}=hf({dimensionSpecs:M}),v=q.useMemo(()=>L(),[$,L]);q.useMemo(()=>{const H=new Map;for(const B of M){const _=jr(B);H.set(_,B.source)}return H},[M]);const{data:N}=mf({project:a,package:o,dimensionSpecs:M,versionId:s,enabled:M.length>0}),I=q.useCallback(H=>{if(H.length===0)return;const B=V=>V instanceof Date?V.toISOString().slice(0,10):String(V),_={};for(const V of H){const J=V.filterName??V.dimensionName,F=V.value;Array.isArray(F)?_[J]=F.map(B):F!=null&&(_[J]=B(F))}return Object.keys(_).length>0?JSON.stringify(_):void 0},[]),A=q.useCallback(async(H=[])=>{if(!u||!l?.notebookCells)return;f(_=>_.length===0?l.notebookCells.map(V=>({...V})):_.map(V=>({...V,result:void 0}))),b(!0),x(null);const B=O?I(H):void 0;try{const _=[];for(let J=0;J<l.notebookCells.length;J++){const F=l.notebookCells[J];if(F.type==="markdown")continue;const de=J,Z=async()=>{try{const te=(await r.notebooks.executeNotebookCell(a,o,i,de,s,B)).data,X=te.result,re=F.newSources||te.newSources;f(Q=>{const G=[...Q];return G[de]||(G[de]={...F}),G[de]={...G[de],result:X,newSources:re},G})}catch(Y){console.error(`Error executing cell ${de}:`,Y)}};_.push(Z)}const V=[];for(const J of _){const F=J().then(()=>{V.splice(V.indexOf(F),1)});V.push(F),V.length>=bU&&await Promise.race(V)}await Promise.all(V)}catch(_){console.error("Error executing notebook cells:",_),x(_)}finally{b(!1)}},[u,l,O,I,a,o,i,s,r.notebooks]);q.useEffect(()=>{!u||!l?.notebookCells||A([])},[u,l,A]);const R=q.useRef("");q.useEffect(()=>{const H=JSON.stringify(v.map(B=>({dim:B.dimensionName,type:B.matchType,val:B.value,val2:B.value2})));if(H!==R.current){if(R.current===""&&v.length===0){R.current=H;return}R.current=H,h||A(v)}},[v,h,A]);const W=q.useCallback(H=>B=>{P(H,B)},[P]);return M.some(H=>H.filterType==="Retrieval"),p.jsx(Iv,{children:p.jsx(Av,{children:p.jsxs(D.Stack,{spacing:3,component:"section",children:[M.length>0&&N&&p.jsxs(D.Paper,{elevation:0,sx:{p:3,backgroundColor:"#ffffff",border:"1px solid #f0f0f0",borderRadius:2,boxShadow:"0 1px 3px rgba(0, 0, 0, 0.04)",transition:"box-shadow 0.2s ease-in-out","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)"}},children:[p.jsx(D.Typography,{variant:"subtitle2",sx:{fontWeight:600,mb:2,color:"#333"},children:"Filters"}),p.jsx(D.Box,{sx:{display:"grid",gridTemplateColumns:"repeat(auto-fill, minmax(250px, 1fr))",gap:3},children:M.map(H=>{const B=jr(H),_=N.get(B)||[],V=$.get(B);return H.filterType==="Retrieval"&&!n?null:p.jsx(D.Box,{children:p.jsx(a2,{spec:H,values:_,selection:V?.selection,onChange:W(B),retrievalFn:n})},B)})})]}),!u&&!c&&p.jsx(tn,{text:"Fetching Notebook..."}),u&&(m.length>0?m:l?.notebookCells||[]).map((H,B)=>p.jsx(gU,{cell:H,index:B,resourceUri:e,maxResultSize:t,isExecuting:h},B)),c&&d.status===404&&p.jsxs(D.Typography,{variant:"body2",sx:{color:"#666666"},children:[p.jsx("code",{children:`${a} > ${o} > ${i}`})," ","not found."]}),c&&d.status!==404&&p.jsx(nn,{error:d,context:`${a} > ${o} > ${i}`}),g&&p.jsx(nn,{error:{message:g.message,status:500,name:"ExecutionError"},context:"Notebook Execution"})]})})})}const b2=nt(p.jsx("path",{d:"M12 2C6.48 2 2 6.48 2 12s4.48 10 10 10 10-4.48 10-10S17.52 2 12 2m1 15h-2v-2h2zm0-4h-2V7h2z"}));function yU({resourceUri:e}){const{apiClients:t}=et.useServer(),{projectName:n,packageName:r,versionId:a}=vt(e),{data:o,isSuccess:s,isError:i,error:l}=Jt({queryKey:["package",n,r,a],queryFn:()=>t.packages.getPackage(n,r,a,!1)});return p.jsx(sa,{children:p.jsxs(ia,{children:[p.jsx(Ba,{children:"Package Config"}),p.jsx(D.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:p.jsxs(D.List,{dense:!0,disablePadding:!0,children:[p.jsx(D.ListItem,{dense:!0,disablePadding:!0,children:p.jsx(D.ListItemText,{primary:"Name",primaryTypographyProps:{fontWeight:"500"},secondary:r})}),!s&&!i&&p.jsx(D.ListItem,{children:p.jsx(tn,{text:"Fetching Package Metadata..."})}),s&&(o.data&&p.jsx(D.ListItem,{dense:!0,disablePadding:!0,children:p.jsx(D.ListItemText,{primary:"Description",primaryTypographyProps:{fontWeight:"500"},secondary:o.data.description})})||p.jsxs(D.ListItem,{disablePadding:!0,dense:!0,sx:{mt:"20px"},children:[p.jsx(b2,{sx:{color:"grey.600",mr:"10px"}}),p.jsx(D.ListItemText,{primary:"No package manifest"})]})),i&&p.jsx(nn,{error:l,context:`${n} > ${r} > ${a}`})]})})]})})}const y2=nt(p.jsx("path",{d:"M6 19c0 1.1.9 2 2 2h8c1.1 0 2-.9 2-2V7H6zM19 4h-3.5l-1-1h-5l-1 1H5v2h14z"})),Or={postgres:[{label:"Host",name:"host",type:"text",required:!1},{label:"Port",name:"port",type:"number",required:!1},{label:"Database Name",name:"databaseName",type:"text",required:!1},{label:"User Name",name:"userName",type:"text",required:!1},{label:"Password",name:"password",type:"password",required:!1},{label:"Connection String",name:"connectionString",type:"text",required:!1}],bigquery:[{label:"Project ID",name:"defaultProjectId",type:"text",required:!1},{label:"Billing Project ID",name:"billingProjectId",type:"text",required:!1},{label:"Location",name:"location",type:"text",required:!1},{label:"Service Account Key JSON",name:"serviceAccountKeyJson",type:"text",required:!0},{label:"Maximum Bytes Billed",name:"maximumBytesBilled",type:"text",required:!1},{label:"Query Timeout Milliseconds",name:"queryTimeoutMilliseconds",type:"text",required:!1}],snowflake:[{label:"Account",name:"account",type:"text",required:!0},{label:"Username",name:"username",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!1},{label:"Role",name:"role",type:"text",required:!1},{label:"Warehouse",name:"warehouse",type:"text",required:!0},{label:"Database",name:"database",type:"text",required:!1},{label:"Schema",name:"schema",type:"text",required:!1},{label:"Response Timeout Milliseconds",name:"responseTimeoutMilliseconds",type:"text",required:!1},{label:"Private Key",name:"privateKey",type:"password",required:!1},{label:"Private Key Passphrase",name:"privateKeyPass",type:"password",required:!1}],trino:[{label:"Server",name:"server",type:"text",required:!0},{label:"Port",name:"port",type:"number",required:!1},{label:"Catalog",name:"catalog",type:"text",required:!1},{label:"Schema",name:"schema",type:"text",required:!1},{label:"User",name:"user",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!1},{label:"Peaka Key",name:"peakaKey",type:"password",required:!1}],mysql:[{label:"Host",name:"host",type:"text",required:!0},{label:"Port",name:"port",type:"number",required:!0},{label:"User",name:"user",type:"text",required:!0},{label:"Password",name:"password",type:"password",required:!0},{label:"Database",name:"database",type:"text",required:!0}],duckdb:[],motherduck:[{label:"Access Token",name:"accessToken",type:"text",required:!0},{label:"Database",name:"database",type:"text",required:!1}],ducklake:[]},fl={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",trino:"trinoConnection",mysql:"mysqlConnection",duckdb:"duckdbConnection",motherduck:"motherduckConnection",ducklake:"ducklakeConnection"},Hd={postgres:"postgresConnection",bigquery:"bigqueryConnection",snowflake:"snowflakeConnection",gcs:"gcsConnection",s3:"s3Connection",azure:"azureConnection"},Js=[{label:"Access Key ID",name:"accessKeyId",type:"text",required:!0},{label:"Secret Access Key",name:"secretAccessKey",type:"password",required:!0},{label:"Region",name:"region",type:"text",required:!1},{label:"Endpoint",name:"endpoint",type:"text",required:!1},{label:"Session Token",name:"sessionToken",type:"password",required:!1}],ei=[{label:"Key ID",name:"keyId",type:"text",required:!0},{label:"Secret",name:"secret",type:"password",required:!0}],xU=[{label:"Auth Type",name:"authType",type:"text",required:!0,selectOptions:[{label:"SAS Token",value:"sas_token"},{label:"Service Principal (SPN)",value:"service_principal"}]},{label:"SAS URL (e.g. https://account.blob.core.windows.net/container/file.parquet?sp=r&st=...)",name:"sasUrl",type:"text",required:!1,visibleWhen:{field:"authType",value:"sas_token"}},{label:"Tenant ID",name:"tenantId",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Client ID",name:"clientId",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Client Secret",name:"clientSecret",type:"password",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"Account Name",name:"accountName",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}},{label:"File URL (e.g. abfss://container/path/file.parquet)",name:"fileUrl",type:"text",required:!1,visibleWhen:{field:"authType",value:"service_principal"}}];function Ql(e){return e==="postgres"||e==="bigquery"||e==="snowflake"?Or[e]||[]:e==="s3"?Js:e==="gcs"?ei:e==="azure"?xU:[]}function CU({onSubmit:e,isSubmitting:t}){const[n,r]=q.useState(!1),[a,o]=q.useState("postgres"),[s,i]=q.useState([]),[l,u]=q.useState("postgres"),[c,d]=q.useState("s3"),m=()=>{r(!0)},f=()=>{r(!1),i([]),o("postgres"),u("postgres"),d("s3")},h=async C=>{C.preventDefault();const E=new FormData(C.currentTarget),k=E.get("name")?.toString(),T=E.get("type")?.toString(),S=Or[T];if(!k)throw new Error("Name is required");if(!T)throw new Error("Type is required");let O;if(T==="ducklake"){const M={};if(l==="postgres"){const L=Or.postgres,v={};if(L.forEach(N=>{const I=E.get(`ducklake_pg_${N.name}`)?.toString();I&&(v[N.name]=I)}),Object.keys(v).length===0)throw new Error("DuckLake requires catalog connection");M.postgresConnection=v}const $=E.get("ducklake_bucketUrl")?.toString();if(!$)throw new Error("DuckLake requires a bucket URL");const P={bucketUrl:$};if(c==="s3"){const L={};if(Js.forEach(v=>{const N=E.get(`ducklake_s3_${v.name}`)?.toString();N&&(L[v.name]=N)}),!L.accessKeyId)throw new Error("S3 Access Key ID is required");if(!L.secretAccessKey)throw new Error("S3 Secret Access Key is required");Object.keys(L).length>0&&(P.s3Connection=L)}else if(c==="gcs"){const L={};if(ei.forEach(v=>{const N=E.get(`ducklake_gcs_${v.name}`)?.toString();N&&(L[v.name]=N)}),!L.keyId)throw new Error("GCS Key ID is required");if(!L.secret)throw new Error("GCS Secret is required");Object.keys(L).length>0&&(P.gcsConnection=L)}O={name:k,type:T,ducklakeConnection:{catalog:M,storage:P}}}else if(T==="duckdb"){if(s.length===0)throw new Error("DuckDB connection must have at least one attached database");const M=s.map(($,P)=>{const L=$.dbType,v=E.get(`attachedDb_${P}_name`)?.toString();if(!v)throw new Error(`Attached database at index ${P} must have a name`);const N={name:v,type:L},I=Ql(L);if(I&&I.length>0){const A={};I.forEach(W=>{const H=E.get(`attachedDb_${P}_${W.name}`)?.toString();H&&(A[W.name]=H)});const R=Hd[L];R&&(N[R]=A)}return N});O={name:k,type:T,duckdbConnection:{attachedDatabases:M}}}else{const M={};if(S.forEach($=>{const P=E.get($.name)?.toString();P&&(M[$.name]=P)}),T==="postgres"){if(!!!M.connectionString?.trim()){const P=["host","port","databaseName","userName","password"];for(const L of P)if(!M[L])throw new Error(`${S.find(v=>v.name===L)?.label||L} is required`)}}else if(T==="bigquery"){if(!M.serviceAccountKeyJson)throw new Error("Service Account Key JSON is required")}else if(T==="snowflake"){if(!M.account)throw new Error("Account is required");if(!M.username)throw new Error("Username is required");if(!M.warehouse)throw new Error("Warehouse is required");if(!M.password&&!M.privateKey)throw new Error("Either password or private key is required")}else if(T==="trino"){if(!M.server)throw new Error("Server is required");if(!M.user)throw new Error("User is required");if(M.server.trim().startsWith("https://")&&!M.password&&!M.peakaKey)throw new Error("Password is required for HTTPS connections (or use Peaka Key)")}else if(T==="mysql"){const $=["host","port","database","user","password"];for(const P of $)if(!M[P])throw new Error(`${S.find(L=>L.name===P)?.label||P} is required`)}else if(T==="motherduck"&&!M.accessToken)throw new Error("Access Token is required");O={name:k,type:T,[fl[T]]:M}}await e(O),f()},b=()=>{i([...s,{name:"",dbType:"postgres"}])},g=C=>{i(s.filter((E,k)=>k!==C))},x=(C,E)=>{const k=[...s];k[C]={...k[C],dbType:E},i(k)};return p.jsxs(q.Fragment,{children:[p.jsx(wt,{variant:"outlined",onClick:m,children:"Add Connection"}),p.jsxs(wr,{open:n,onClose:f,children:[p.jsx(Wr,{children:"Create New Connection"}),p.jsxs(Sr,{children:[p.jsx(Wo,{children:"Add a new connection to query your data database using Malloy."}),p.jsxs("form",{onSubmit:h,id:"connection-form",children:[p.jsx(Qe,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Connection Name",type:"text",fullWidth:!0,variant:"standard"}),p.jsx(Qe,{margin:"dense",id:"type",name:"type",label:"Connection Type",fullWidth:!0,variant:"standard",value:a,select:!0,onChange:C=>o(C.target.value),children:Object.values(et.ConnectionTypeEnum).map(C=>p.jsx(on,{value:C,children:C},C))}),a==="ducklake"?p.jsxs(Dt,{sx:{mt:2},children:[p.jsxs(Dt,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[p.jsx(yt,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),p.jsx(Qe,{margin:"dense",id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,variant:"standard",value:l,select:!0,onChange:C=>u(C.target.value),children:p.jsx(on,{value:"postgres",children:"PostgreSQL"})}),l==="postgres"&&p.jsx(p.Fragment,{children:Or.postgres.map(C=>p.jsx(Qe,{margin:"dense",id:`ducklake_pg_${C.name}`,name:`ducklake_pg_${C.name}`,label:C.label,type:C.type,fullWidth:!0,variant:"standard"},`pg_${C.name}`))})]}),p.jsxs(Dt,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[p.jsx(yt,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),p.jsxs(Qe,{margin:"dense",id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,variant:"standard",value:c,select:!0,onChange:C=>d(C.target.value),children:[p.jsx(on,{value:"s3",children:"S3"}),p.jsx(on,{value:"gcs",children:"GCS"})]}),p.jsx(Qe,{margin:"dense",required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:c==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,variant:"standard"}),c==="s3"&&p.jsxs(p.Fragment,{children:[p.jsx(yt,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),Js.map(C=>p.jsx(Qe,{margin:"dense",id:`ducklake_s3_${C.name}`,name:`ducklake_s3_${C.name}`,label:C.label,type:C.type,fullWidth:!0,variant:"standard",required:C.required,placeholder:C.name==="region"?"us-east-1":void 0},`s3_${C.name}`))]}),c==="gcs"&&p.jsxs(p.Fragment,{children:[p.jsx(yt,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),ei.map(C=>p.jsx(Qe,{margin:"dense",id:`ducklake_gcs_${C.name}`,name:`ducklake_gcs_${C.name}`,label:C.label,type:C.type,fullWidth:!0,variant:"standard",required:C.required},`gcs_${C.name}`))]})]})]}):a==="duckdb"?p.jsxs(Dt,{sx:{mt:2},children:[p.jsxs(Dt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[p.jsx(yt,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),p.jsx(wt,{startIcon:p.jsx(Kd,{}),onClick:b,size:"small",variant:"outlined",children:"Add Database"})]}),s.length===0&&p.jsx(yt,{variant:"body2",color:"text.secondary",sx:{mb:2},children:'DuckDB connections require at least one attached database. Click "Add Database" to get started.'}),s.map((C,E)=>{const k=Ql(C.dbType);return p.jsxs(Dt,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[p.jsxs(Dt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[p.jsxs(yt,{variant:"subtitle2",children:["Database ",E+1]}),p.jsx(Mn,{onClick:()=>g(E),size:"small",color:"error",children:p.jsx(y2,{fontSize:"small"})})]}),p.jsx(Qe,{margin:"dense",required:!0,id:`attachedDb_${E}_name`,name:`attachedDb_${E}_name`,label:"Database Name",type:"text",fullWidth:!0,variant:"standard",defaultValue:C.name}),p.jsx(Qe,{margin:"dense",id:`attachedDb_${E}_type`,name:`attachedDb_${E}_type`,label:"Database Type",fullWidth:!0,variant:"standard",value:C.dbType,select:!0,onChange:T=>x(E,T.target.value),children:Object.values(et.AttachedDatabaseTypeEnum).map(T=>p.jsx(on,{value:T,children:T},T))}),k.filter(T=>T.visibleWhen?(C[T.visibleWhen.field]||k.find(O=>O.name===T.visibleWhen?.field)?.selectOptions?.[0]?.value)===T.visibleWhen.value:!0).map(T=>p.jsx(Qe,{margin:"dense",id:`attachedDb_${E}_${T.name}`,name:`attachedDb_${E}_${T.name}`,label:T.label,type:T.selectOptions?void 0:T.type,fullWidth:!0,variant:"standard",required:T.required,select:!!T.selectOptions,defaultValue:T.selectOptions?.[0]?.value,onChange:T.selectOptions?S=>{const O=[...s];O[E]={...O[E],[T.name]:S.target.value},i(O)}:void 0,children:T.selectOptions?.map(S=>p.jsx(on,{value:S.value,children:S.label},S.value))},T.name))]},E)})]}):Or[a].map(C=>p.jsx(Qe,{margin:"dense",id:C.name,name:C.name,label:C.label,type:C.type,fullWidth:!0,variant:"standard",required:C.required},C.name))]})]}),p.jsxs(kr,{children:[p.jsx(wt,{disabled:t,onClick:f,children:"Cancel"}),p.jsx(wt,{type:"submit",form:"connection-form",loading:t,children:"Create Connection"})]})]})]})}function EU({connection:e,onCloseDialog:t,isMutating:n,onDelete:r}){const[a,o]=q.useState(!1),[s,i]=q.useState(""),l=()=>{o(!0)},u=()=>{o(!1),t()};return p.jsxs(q.Fragment,{children:[p.jsx(Mn,{onClick:c=>{c.stopPropagation(),l()},children:p.jsx(Pn.Delete,{})}),p.jsxs(wr,{onClose:u,"aria-labelledby":"customized-dialog-title",open:a,children:[p.jsx(Wr,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Connection"}),p.jsx(Mn,{"aria-label":"close",onClick:u,sx:c=>({position:"absolute",right:8,top:8,color:c.palette.grey[500]}),children:p.jsx(aa,{})}),p.jsx(Sr,{dividers:!0,children:p.jsxs(yt,{gutterBottom:!0,children:['Are you sure you want to delete "',e.name,'"? This action cannot be undone.']})}),p.jsx(kr,{children:p.jsx(wt,{loading:n,variant:"contained",autoFocus:!0,onClick:()=>r(),color:"error",children:"Delete"})}),p.jsx(D.Snackbar,{open:s!=="",autoHideDuration:6e3,onClose:()=>i(""),message:s})]})]})}function c0(e){const t=e.duckdbConnection?.attachedDatabases;return!t||t.length===0?[]:t.map(n=>({name:n.name||"",dbType:n.type||"postgres"}))}function d0(e){const t=e.ducklakeConnection;return t&&t.storage?.gcsConnection?"gcs":"s3"}function vU({connection:e,onSubmit:t,isSubmitting:n}){const[r,a]=q.useState(!1),[o,s]=q.useState(e.type),[i,l]=q.useState(()=>c0(e)),[u,c]=q.useState("postgres"),[d,m]=q.useState(()=>d0(e)),f=()=>{l(c0(e)),s(e.type),c("postgres"),m(d0(e)),a(!0)},h=()=>{a(!1)},b=async T=>{T.preventDefault();const S=new FormData(T.currentTarget),O=S.get("name")?.toString(),M=S.get("type")?.toString(),$=Or[M];if(!O)throw new Error("Name is required");if(!M)throw new Error("Type is required");let P;if(M==="ducklake"){const L={};if(u==="postgres"){const I=Or.postgres,A={};if(I.forEach(R=>{const W=S.get(`ducklake_pg_${R.name}`)?.toString();W&&(A[R.name]=W)}),Object.keys(A).length===0)throw new Error("DuckLake requires catalog connection");L.postgresConnection=A}const v=S.get("ducklake_bucketUrl")?.toString();if(!v)throw new Error("DuckLake requires a bucket URL");const N={bucketUrl:v};if(d==="s3"){const I={};Js.forEach(R=>{const W=S.get(`ducklake_s3_${R.name}`)?.toString();W&&(I[R.name]=W)});const A=e.ducklakeConnection?.storage?.s3Connection;if(A&&(!I.accessKeyId&&A.accessKeyId&&(I.accessKeyId=A.accessKeyId),!I.secretAccessKey&&A.secretAccessKey&&(I.secretAccessKey=A.secretAccessKey)),!I.accessKeyId)throw new Error("S3 Access Key ID is required");if(!I.secretAccessKey)throw new Error("S3 Secret Access Key is required");Object.keys(I).length>0&&(N.s3Connection=I)}else if(d==="gcs"){const I={};ei.forEach(R=>{const W=S.get(`ducklake_gcs_${R.name}`)?.toString();W&&(I[R.name]=W)});const A=e.ducklakeConnection?.storage?.gcsConnection;if(A&&(!I.keyId&&A.keyId&&(I.keyId=A.keyId),!I.secret&&A.secret&&(I.secret=A.secret)),!I.keyId)throw new Error("GCS Key ID is required");if(!I.secret)throw new Error("GCS Secret is required");Object.keys(I).length>0&&(N.gcsConnection=I)}P={name:O,type:M,ducklakeConnection:{catalog:L,storage:N}}}else if(M==="duckdb"){if(i.length===0)throw new Error("DuckDB connection must have at least one attached database");const L=i.map((v,N)=>{const I=v.dbType,A=S.get(`attachedDb_${N}_name`)?.toString();if(!A)throw new Error(`Attached database at index ${N} must have a name`);const R={name:A,type:I},W=Ql(I);if(W&&W.length>0){const H={};W.forEach(_=>{const V=S.get(`attachedDb_${N}_${_.name}`)?.toString();V&&(H[_.name]=V)});const B=Hd[I];B&&(R[B]=H)}return R});P={name:O,type:M,duckdbConnection:{attachedDatabases:L}}}else{const L=e[fl[M]]||{},v={};if($.forEach(N=>{const I=S.get(N.name)?.toString(),A=L[N.name],R=N.type==="password"||N.name==="password"||N.name==="secretAccessKey"||N.name==="secret"||N.name==="accessToken"||N.name==="privateKey";I?v[N.name]=I:R&&A?v[N.name]=A:I!==void 0?v[N.name]=I:A&&(v[N.name]=A)}),M==="postgres"){if(!!!v.connectionString?.trim()){const I=["host","port","databaseName","userName","password"];for(const A of I)if(!v[A])throw new Error(`${$.find(R=>R.name===A)?.label||A} is required`)}}else if(M==="bigquery"){if(!v.serviceAccountKeyJson)throw new Error("Service Account Key JSON is required")}else if(M==="snowflake"){if(!v.account)throw new Error("Account is required");if(!v.username)throw new Error("Username is required");if(!v.warehouse)throw new Error("Warehouse is required");if(!v.password&&!v.privateKey)throw new Error("Either password or private key is required")}else if(M==="trino"){if(!v.server)throw new Error("Server is required");if(!v.user)throw new Error("User is required");if(v.server.trim().startsWith("https://")&&!v.password&&!v.peakaKey)throw new Error("Password is required for HTTPS connections (or use Peaka Key)")}else if(M==="mysql"){const N=["host","port","database","user","password"];for(const I of N)if(!v[I])throw new Error(`${$.find(A=>A.name===I)?.label||I} is required`)}else if(M==="motherduck"&&!v.accessToken)throw new Error("Access Token is required");P={name:O,type:M,[fl[M]]:v}}await t(P),h()},g=()=>{l([...i,{name:"",dbType:"postgres"}])},x=T=>{l(i.filter((S,O)=>O!==T))},C=(T,S)=>{const O=[...i];O[T]={...O[T],dbType:S},l(O)},E=(T,S)=>{const O=e.duckdbConnection?.attachedDatabases;if(!O||!O[T])return"";const M=O[T],$=Hd[M.type||""];return $&&M[$]?M[$][S]??"":""},k=T=>{const S=e.ducklakeConnection;if(!S)return"";if(T.startsWith("pg_")){const O=T.replace("pg_","");return S.catalog?.postgresConnection?.[O]??""}if(T==="bucketUrl")return S.storage?.bucketUrl??"";if(T.startsWith("s3_")){const O=T.replace("s3_","");return S.storage?.s3Connection?.[O]??""}if(T.startsWith("gcs_")){const O=T.replace("gcs_","");return S.storage?.gcsConnection?.[O]??""}return""};return p.jsxs(q.Fragment,{children:[p.jsx(Mn,{onClick:T=>{T.preventDefault(),T.stopPropagation(),f()},children:p.jsx(Pn.Edit,{})}),p.jsxs(wr,{open:r,onClose:h,children:[p.jsx(Wr,{onClick:T=>{T.stopPropagation()},children:"Edit Connection"}),p.jsxs(Sr,{onClick:T=>{T.stopPropagation()},children:[p.jsx(Wo,{children:"Edit a connection to query your data database using Malloy."}),p.jsxs("form",{onSubmit:b,id:"connection-form",children:[p.jsx(Qe,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Connection Name",type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),p.jsx(Qe,{margin:"dense",id:"type",name:"type",label:"Connection Type",fullWidth:!0,variant:"standard",value:o,select:!0,onChange:T=>s(T.target.value),children:Object.values(et.ConnectionTypeEnum).map(T=>p.jsx(on,{value:T,children:T},T))}),o==="ducklake"?p.jsxs(Dt,{sx:{mt:2},children:[p.jsxs(Dt,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[p.jsx(yt,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Catalog"}),p.jsx(Qe,{margin:"dense",id:"ducklake_catalogType",label:"Catalog Type",fullWidth:!0,variant:"standard",value:u,select:!0,onChange:T=>c(T.target.value),children:p.jsx(on,{value:"postgres",children:"PostgreSQL"})}),u==="postgres"&&p.jsx(p.Fragment,{children:Or.postgres.map(T=>p.jsx(Qe,{margin:"dense",id:`ducklake_pg_${T.name}`,name:`ducklake_pg_${T.name}`,label:T.label,type:T.type,fullWidth:!0,variant:"standard",defaultValue:k(`pg_${T.name}`)},`pg_${T.name}`))})]}),p.jsxs(Dt,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[p.jsx(yt,{variant:"subtitle2",sx:{mb:2},fontWeight:500,children:"Storage"}),p.jsxs(Qe,{margin:"dense",id:"ducklake_storageType",label:"Storage Type",fullWidth:!0,variant:"standard",value:d,select:!0,onChange:T=>m(T.target.value),children:[p.jsx(on,{value:"s3",children:"S3"}),p.jsx(on,{value:"gcs",children:"GCS"})]}),p.jsx(Qe,{margin:"dense",required:!0,id:"ducklake_bucketUrl",name:"ducklake_bucketUrl",label:d==="s3"?"Bucket URL (e.g. s3://my-bucket/path)":"Bucket URL (e.g. gs://my-bucket/path)",type:"text",fullWidth:!0,variant:"standard",defaultValue:k("bucketUrl")}),d==="s3"&&p.jsxs(p.Fragment,{children:[p.jsx(yt,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"S3 Credentials"}),Js.map(T=>p.jsx(Qe,{margin:"dense",id:`ducklake_s3_${T.name}`,name:`ducklake_s3_${T.name}`,label:T.label,type:T.type,fullWidth:!0,variant:"standard",required:T.required&&T.name!=="secretAccessKey",defaultValue:k(`s3_${T.name}`),placeholder:T.name==="region"?"us-east-1":T.name==="secretAccessKey"?"Leave empty to keep existing":void 0},`s3_${T.name}`))]}),d==="gcs"&&p.jsxs(p.Fragment,{children:[p.jsx(yt,{variant:"caption",sx:{mt:2,mb:1,display:"block"},color:"text.secondary",children:"GCS Credentials"}),ei.map(T=>p.jsx(Qe,{margin:"dense",id:`ducklake_gcs_${T.name}`,name:`ducklake_gcs_${T.name}`,label:T.label,type:T.type,fullWidth:!0,variant:"standard",required:T.required&&T.name!=="secret",defaultValue:k(`gcs_${T.name}`),placeholder:T.name==="secret"?"Leave empty to keep existing":void 0},`gcs_${T.name}`))]})]})]}):o==="duckdb"?p.jsxs(Dt,{sx:{mt:2},children:[p.jsxs(Dt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[p.jsx(yt,{variant:"subtitle1",fontWeight:500,children:"Attached Databases"}),p.jsx(wt,{startIcon:p.jsx(Kd,{}),onClick:g,size:"small",variant:"outlined",children:"Add Database"})]}),i.length===0&&p.jsx(yt,{variant:"body2",color:"text.secondary",sx:{mb:2},children:'DuckDB connections require at least one attached database. Click "Add Database" to get started.'}),i.map((T,S)=>{const O=Ql(T.dbType);return p.jsxs(Dt,{sx:{mb:3,p:2,border:"1px solid",borderColor:"divider",borderRadius:1},children:[p.jsxs(Dt,{sx:{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2},children:[p.jsxs(yt,{variant:"subtitle2",children:["Database ",S+1]}),p.jsx(Mn,{onClick:()=>x(S),size:"small",color:"error",children:p.jsx(y2,{fontSize:"small"})})]}),p.jsx(Qe,{margin:"dense",required:!0,id:`attachedDb_${S}_name`,name:`attachedDb_${S}_name`,label:"Database Name",type:"text",fullWidth:!0,variant:"standard",defaultValue:T.name}),p.jsx(Qe,{margin:"dense",id:`attachedDb_${S}_type`,name:`attachedDb_${S}_type`,label:"Database Type",fullWidth:!0,variant:"standard",value:T.dbType,select:!0,onChange:M=>C(S,M.target.value),children:Object.values(et.AttachedDatabaseTypeEnum).map(M=>p.jsx(on,{value:M,children:M},M))}),O.filter(M=>M.visibleWhen?(T[M.visibleWhen.field]||E(S,M.visibleWhen.field)||O.find(P=>P.name===M.visibleWhen?.field)?.selectOptions?.[0]?.value)===M.visibleWhen.value:!0).map(M=>p.jsx(Qe,{margin:"dense",id:`attachedDb_${S}_${M.name}`,name:`attachedDb_${S}_${M.name}`,label:M.label,type:M.selectOptions?void 0:M.type,fullWidth:!0,variant:"standard",required:M.required,select:!!M.selectOptions,defaultValue:E(S,M.name)||M.selectOptions?.[0]?.value,onChange:M.selectOptions?$=>{const P=[...i];P[S]={...P[S],[M.name]:$.target.value},l(P)}:void 0,children:M.selectOptions?.map($=>p.jsx(on,{value:$.value,children:$.label},$.value))},M.name))]},S)})]}):Or[o].map(T=>{const S=e?.[fl[o]??""]?.[T.name??""]??"",O=T.type==="password"||T.name==="password"||T.name==="secretAccessKey"||T.name==="secret"||T.name==="accessToken"||T.name==="privateKey";return p.jsx(Qe,{margin:"dense",id:T.name,name:T.name,label:T.label,type:T.type,fullWidth:!0,variant:"standard",required:T.required&&!O&&!S,defaultValue:S,placeholder:O&&S?"Leave empty to keep existing":void 0},T.name)})]})]}),p.jsxs(kr,{onClick:T=>{T.stopPropagation()},children:[p.jsx(wt,{disabled:n,onClick:h,children:"Cancel"}),p.jsx(wt,{type:"submit",form:"connection-form",loading:n,children:"Edit Connection"})]})]})]})}function p0(e,t){return!e||e.type!=="duckdb"?!1:(e.duckdbConnection?.attachedDatabases||[]).some(r=>r.type==="azure"&&r.name===t)}function TU(e){return e.startsWith("gs://")||e.startsWith("s3://")||e.startsWith("https://")||e.startsWith("abfss://")||e.startsWith("az://")}function x2({connectionName:e,resourceUri:t,schema:n,connection:r}){const{apiClients:a}=et.useServer(),{projectName:o}=vt(t),[s,i]=q.useState(null),[l,u]=q.useState(n||null),[c,d]=q.useState(!1),{data:m,isError:f,isLoading:h,error:b}=Jt({queryKey:["schemas",o,e],queryFn:()=>a.connections.listSchemas(o,e)}),g=m?.data||[];return p.jsxs(D.Grid,{container:!0,spacing:1,children:[!n&&p.jsx(D.Grid,{size:{xs:12,md:4},children:p.jsxs(D.Paper,{sx:{p:1,m:0},children:[p.jsxs(D.Box,{sx:{display:"flex",alignItems:"center",justifyContent:"space-between",mb:0},children:[p.jsx(D.Typography,{variant:"overline",fontWeight:"bold",children:"Table Paths"}),p.jsx(D.FormControlLabel,{control:p.jsx(D.Switch,{checked:c,onChange:x=>d(x.target.checked)}),label:"Hidden Schemas"})]}),p.jsx(D.Divider,{sx:{mt:"2px"}}),p.jsxs(D.Box,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[h&&p.jsx(tn,{text:"Loading schemas..."}),f&&p.jsx(nn,{error:b,context:`${o} > ${e} > Schemas`}),!h&&!f&&g.length===0&&p.jsx(D.Typography,{variant:"body2",children:"No Schemas"}),!h&&!f&&g.length>0&&p.jsx(D.List,{dense:!0,disablePadding:!0,children:g.map(x=>{const C=x.name;if(x.isHidden&&!c)return null;const k=l===C;return p.jsx(D.ListItemButton,{selected:k,onClick:()=>{u(C),i(null)},children:p.jsx(D.ListItemText,{primary:C})},C)})})]})]})}),p.jsx(D.Grid,{size:{xs:12,md:n?6:4},children:l&&p.jsx(D.Paper,{sx:{p:1,m:0},children:p.jsx(wU,{connectionName:e,schemaName:l,onTableSelect:x=>{i(x)},resourceUri:t,connection:r})})}),p.jsx(D.Grid,{size:{xs:12,md:n?6:4},children:l&&s&&p.jsx(kU,{projectName:o,connectionName:e,schemaName:l,tableResource:s})})]})}function kU({projectName:e,connectionName:t,schemaName:n,tableResource:r}){const{apiClients:a}=et.useServer(),{data:o,isLoading:s,isError:i,error:l}=Jt({queryKey:["connectionTableDetail",e,t,n,r],queryFn:()=>a.connections.getTable(e,t,n,r),enabled:!!n&&!!r}),u={resource:o?.data?.resource??r,columns:o?.data?.columns??[]};return p.jsxs(D.Paper,{sx:{p:1,m:0},children:[i&&p.jsx(nn,{error:l,context:`${e} > ${t} > ${n} > ${r}`}),!i&&p.jsx(SU,{table:u,loading:s})]})}function SU({table:e,loading:t}){return t?p.jsx(tn,{text:"Loading columns..."}):p.jsxs(p.Fragment,{children:[p.jsxs(D.Typography,{variant:"overline",fontWeight:"bold",sx:{display:"block",wordBreak:"break-all"},children:[e.resource.includes("://")||/\.(parquet|csv|json|tsv|ndjson)$/i.test(e.resource)?"File":"Table",": ",e.resource]}),p.jsx(D.Divider,{}),p.jsx(D.Box,{sx:{mt:"10px",maxHeight:"600px",overflowY:"auto"},children:p.jsx(D.TableContainer,{children:p.jsxs(D.Table,{size:"small",sx:{"& .MuiTableCell-root":{padding:"10px"}},children:[p.jsx(D.TableHead,{children:p.jsxs(D.TableRow,{children:[p.jsx(D.TableCell,{children:"NAME"}),p.jsx(D.TableCell,{children:"TYPE"})]})}),p.jsx(D.TableBody,{children:e.columns?.sort((n,r)=>n.name.localeCompare(r.name))?.map(n=>p.jsxs(D.TableRow,{children:[p.jsx(D.TableCell,{children:n.name}),p.jsx(D.TableCell,{children:n.type})]},n.name))})]})})})]})}function wU({connectionName:e,schemaName:t,onTableSelect:n,resourceUri:r,connection:a}){const{projectName:o}=vt(r),{apiClients:s}=et.useServer(),[i,l]=q.useState(""),{data:u,isSuccess:c,isError:d,error:m,isLoading:f}=Jt({queryKey:["tablesInSchema",o,e,t],queryFn:()=>s.connections.listTables(o,e,t)}),h=p0(a,t),b=x=>h?x:x.split(".").pop()||x,g=c&&u?.data?u.data.filter(x=>b(x.resource).toLowerCase().includes(i.toLowerCase())).sort((x,C)=>b(x.resource).localeCompare(b(C.resource))):[];return p.jsxs(p.Fragment,{children:[p.jsx(D.Typography,{variant:"overline",fontWeight:"bold",children:TU(t)||p0(a,t)?`Files in ${t}`:`Tables in ${t}`}),p.jsx(D.Divider,{}),p.jsx(D.Box,{sx:{mt:1,mb:1},children:p.jsx(D.TextField,{size:"small",fullWidth:!0,placeholder:"Search tables...",value:i,onChange:x=>l(x.target.value),variant:"outlined"})}),p.jsx(D.Divider,{}),p.jsxs(D.Box,{sx:{mt:"2px",maxHeight:"600px",overflowY:"auto"},children:[f&&p.jsx(tn,{text:"Fetching Tables..."}),d&&p.jsx(nn,{error:m,context:`${o} > ${e} > ${t}`}),c&&g.length===0&&p.jsx(D.Typography,{variant:"body2",children:"No Tables"}),c&&u?.data&&u.data.length>0&&p.jsx(D.List,{dense:!0,disablePadding:!0,children:g.map(x=>{let C=b(x.resource);return!h&&x.resource.includes("://")&&(C=x.resource.split("/").pop()||x.resource),p.jsx(D.ListItemButton,{onClick:()=>n(x.resource),children:p.jsx(D.ListItemText,{primary:C,secondary:x.columns.length>0?`${x.columns.length} columns`:void 0})},x.resource)})})]})]})}function _U({connection:e,onClick:t,onEdit:n,onDelete:r,isMutating:a,mutable:o,isAdding:s}){return p.jsxs(D.TableRow,{sx:{"&:hover":{backgroundColor:s?void 0:"action.hover"}},children:[p.jsx(D.TableCell,{sx:{cursor:s?"default":"pointer",flexGrow:1,opacity:s?.5:1},onClick:s?void 0:t,children:p.jsxs(D.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx(D.Typography,{variant:"body2",children:e.name}),p.jsx(Do,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),p.jsx(D.TableCell,{sx:{minWidth:"120px"},children:p.jsx(D.Typography,{variant:"body2",children:e.type})}),o&&p.jsxs(D.TableCell,{sx:{minWidth:"120px"},children:[p.jsx(vU,{connection:e,onSubmit:n,isSubmitting:a}),p.jsx(EU,{connection:e,onCloseDialog:()=>{},isMutating:a,onDelete:()=>r(e)})]})]},e.name)}function IU({resourceUri:e}){const{apiClients:t,mutable:n}=et.useServer(),r=Hr.useQueryClient(),{projectName:a}=vt(e),[o,s]=q.useState(""),[i,l]=q.useState(null),u=bi({projectName:a,connectionName:i}),{data:c,isSuccess:d,isError:m,error:f}=Jt({queryKey:["connections",a],queryFn:()=>t.connections.listConnections(a)}),h=E=>{l(E)},b=()=>{l(null)},g=br({mutationFn:E=>t.projects.updateProject(a,{name:a,connections:[...c.data,E]}),onSuccess(){s("Connection added successfully"),r.invalidateQueries({queryKey:["connections",a]})},onError(E){s(E.message)}}),x=br({mutationFn:E=>t.projects.updateProject(a,{name:a,connections:c.data.map(k=>k.name===E.name?E:k)}),onSuccess(E,k){s(`Connection ${k.name} updated successfully`),r.invalidateQueries({queryKey:["connections",a]})},onError(E){s(E.message)}}),C=br({mutationFn:E=>t.projects.updateProject(a,{name:a,connections:c.data.filter(k=>k.name!==E.name)}),onSuccess(E,k){s(`Connection ${k.name} deleted successfully`),r.invalidateQueries({queryKey:["connections",a]})},onError(E){s(E.message)}});return p.jsxs(p.Fragment,{children:[p.jsx(sa,{children:p.jsxs(ia,{children:[p.jsx(Ba,{children:"Database Connections"}),p.jsxs(D.Box,{sx:{mb:1,maxHeight:"200px",overflowY:"auto"},children:[!d&&!m&&p.jsx(D.Typography,{variant:"body2",sx:{m:"auto"},children:"Fetching Connections..."}),d&&c.data.length>0&&p.jsx(D.Table,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableRow-root":{display:"flex",width:"100%"},"& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0",display:"flex",alignItems:"center"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:p.jsxs(D.TableBody,{children:[p.jsxs(D.TableRow,{children:[p.jsx(D.TableCell,{sx:{flexGrow:1},children:p.jsx(D.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Connection Name"})}),p.jsx(D.TableCell,{sx:{minWidth:"120px"},children:p.jsx(D.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Type"})}),n&&p.jsx(D.TableCell,{sx:{minWidth:"120px"},children:p.jsx(D.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",sx:{mx:"auto"},children:"Actions"})})]}),c.data.map(E=>p.jsx(_U,{connection:E,onClick:()=>h(E.name),onEdit:k=>x.mutateAsync(k),onDelete:k=>{E.resource?s("Cannot delete this connection"):C.mutateAsync(k)},isMutating:g.isPending||x.isPending||C.isPending,mutable:n,isAdding:g.isPending},E.name))]})}),d&&c.data.length===0&&p.jsx(D.Typography,{variant:"body2",children:"No Connections"}),m&&p.jsx(nn,{error:f,context:`${a} > Connections`})]}),n&&p.jsx(D.Box,{sx:{display:"flex",justifyContent:"flex-end"},children:p.jsx(CU,{onSubmit:E=>g.mutateAsync(E),isSubmitting:g.isPending})})]})}),p.jsx(D.Snackbar,{open:o!=="",autoHideDuration:6e3,onClose:()=>s(""),message:o}),p.jsxs(D.Dialog,{open:i!==null,onClose:b,maxWidth:"lg",fullWidth:!0,children:[p.jsxs(D.DialogTitle,{children:["Connection Explorer: ",i,p.jsx(D.IconButton,{"aria-label":"close",onClick:b,sx:{position:"absolute",right:8,top:8},children:p.jsx(D.Box,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),p.jsx(D.DialogContent,{children:i&&p.jsx(x2,{resourceUri:u,connectionName:i,connection:c?.data?.find(E=>E.name===i)})})]})]})}function AU({resourceUri:e}){const{apiClients:t}=et.useServer(),{projectName:n,packageName:r,versionId:a}=vt(e),[o,s]=q.useState(!1),[i,l]=q.useState(null),u=g=>{l(g),s(!0)},c=()=>{s(!1),l(null)},{data:d,isError:m,error:f,isSuccess:h}=Jt({queryKey:["databases",n,r,a],queryFn:()=>t.databases.listDatabases(n,r,a)}),b=g=>g>=1024*1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} T`:g>=1024*1024*1024?`${(g/(1024*1024*1024)).toFixed(2)} G`:g>=1024*1024?`${(g/(1024*1024)).toFixed(2)} M`:`${(g/1024).toFixed(2)} K`;return p.jsxs(p.Fragment,{children:[p.jsx(sa,{children:p.jsxs(ia,{children:[p.jsx(Ba,{children:"Embedded Databases"}),p.jsxs(D.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!h&&!m&&p.jsx(tn,{text:"Fetching Databases..."}),m&&p.jsx(nn,{error:f,context:`${n} > ${r} > Databases`}),h&&d.data.length>0&&p.jsx(D.Table,{size:"small",sx:{borderCollapse:"collapse","& .MuiTableCell-root":{borderBottom:"1px solid #e0e0e0"},"& .MuiTableRow-root:last-child .MuiTableCell-root":{borderBottom:"none"}},children:p.jsxs(D.TableBody,{children:[p.jsxs(D.TableRow,{children:[p.jsx(D.TableCell,{children:p.jsx(D.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Name"})}),p.jsx(D.TableCell,{align:"right",children:p.jsx(D.Typography,{variant:"body2",fontWeight:"500",color:"text.secondary",children:"Rows"})})]}),d.data.map(g=>p.jsxs(D.TableRow,{onClick:()=>u(g),sx:{cursor:"pointer","&:hover":{backgroundColor:"action.hover"}},children:[p.jsx(D.TableCell,{component:"th",scope:"row",children:p.jsxs(D.Box,{sx:{display:"flex",alignItems:"center",gap:1},children:[p.jsx(D.Typography,{variant:"body2",children:g.path}),p.jsx(Do,{sx:{fontSize:"1rem",color:"action.active",opacity:.7}})]})}),p.jsx(D.TableCell,{align:"right",children:p.jsx(D.Typography,{variant:"body2",children:b(g.info.rowCount)})})]},g.path))]})}),h&&d.data.length===0&&p.jsx(D.Typography,{variant:"body2",sx:{m:"auto"},children:"No databases found"})]})]})}),p.jsxs(D.Dialog,{open:o,onClose:c,maxWidth:"sm",fullWidth:!0,children:[p.jsxs(D.DialogTitle,{children:[i?.path,p.jsx(D.IconButton,{"aria-label":"close",onClick:c,sx:{position:"absolute",right:8,top:8},children:p.jsx(D.Box,{sx:{width:24,height:24,display:"flex",alignItems:"center",justifyContent:"center"},children:"X"})})]}),p.jsx(D.DialogContent,{children:i?.info?.columns&&p.jsx(D.TableContainer,{children:p.jsxs(D.Table,{size:"small",children:[p.jsx(D.TableHead,{children:p.jsxs(D.TableRow,{children:[p.jsx(D.TableCell,{children:"Column"}),p.jsx(D.TableCell,{children:"Type"})]})}),p.jsx(D.TableBody,{children:i.info.columns.map(g=>p.jsxs(D.TableRow,{children:[p.jsx(D.TableCell,{component:"th",scope:"row",children:g.name}),p.jsx(D.TableCell,{children:g.type})]},g.name))})]})})})]})]})}function DU(e){return Fe("MuiCollapse",e)}Re("MuiCollapse",["root","horizontal","vertical","entered","hidden","wrapper","wrapperInner"]);const PU=e=>{const{orientation:t,classes:n}=e,r={root:["root",`${t}`],entered:["entered"],hidden:["hidden"],wrapper:["wrapper",`${t}`],wrapperInner:["wrapperInner",`${t}`]};return Le(r,DU,n)},RU=oe("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]}})(tt(({theme:e})=>({height:0,overflow:"hidden",transition:e.transitions.create("height"),variants:[{props:{orientation:"horizontal"},style:{height:"auto",width:0,transition:e.transitions.create("width")}},{props:{state:"entered"},style:{height:"auto",overflow:"visible"}},{props:{state:"entered",orientation:"horizontal"},style:{width:"auto"}},{props:({ownerState:t})=>t.state==="exited"&&!t.in&&t.collapsedSize==="0px",style:{visibility:"hidden"}}]}))),MU=oe("div",{name:"MuiCollapse",slot:"Wrapper"})({display:"flex",width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),NU=oe("div",{name:"MuiCollapse",slot:"WrapperInner"})({width:"100%",variants:[{props:{orientation:"horizontal"},style:{width:"auto",height:"100%"}}]}),ti=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiCollapse"}),{addEndListener:a,children:o,className:s,collapsedSize:i="0px",component:l,easing:u,in:c,onEnter:d,onEntered:m,onEntering:f,onExit:h,onExited:b,onExiting:g,orientation:x="vertical",style:C,timeout:E=I0.standard,TransitionComponent:k=Zn,...T}=r,S={...r,orientation:x,collapsedSize:i},O=PU(S),M=oa(),$=wu(),P=w.useRef(null),L=w.useRef(),v=typeof i=="number"?`${i}px`:i,N=x==="horizontal",I=N?"width":"height",A=w.useRef(null),R=ot(n,A),W=Y=>te=>{if(Y){const X=A.current;te===void 0?Y(X):Y(X,te)}},H=()=>P.current?P.current[N?"clientWidth":"clientHeight"]:0,B=W((Y,te)=>{P.current&&N&&(P.current.style.position="absolute"),Y.style[I]=v,d&&d(Y,te)}),_=W((Y,te)=>{const X=H();P.current&&N&&(P.current.style.position="");const{duration:re,easing:Q}=Ao({style:C,timeout:E,easing:u},{mode:"enter"});if(E==="auto"){const G=M.transitions.getAutoHeightDuration(X);Y.style.transitionDuration=`${G}ms`,L.current=G}else Y.style.transitionDuration=typeof re=="string"?re:`${re}ms`;Y.style[I]=`${X}px`,Y.style.transitionTimingFunction=Q,f&&f(Y,te)}),V=W((Y,te)=>{Y.style[I]="auto",m&&m(Y,te)}),J=W(Y=>{Y.style[I]=`${H()}px`,h&&h(Y)}),F=W(b),de=W(Y=>{const te=H(),{duration:X,easing:re}=Ao({style:C,timeout:E,easing:u},{mode:"exit"});if(E==="auto"){const Q=M.transitions.getAutoHeightDuration(te);Y.style.transitionDuration=`${Q}ms`,L.current=Q}else Y.style.transitionDuration=typeof X=="string"?X:`${X}ms`;Y.style[I]=v,Y.style.transitionTimingFunction=re,g&&g(Y)}),Z=Y=>{E==="auto"&&$.start(L.current||0,Y),a&&a(A.current,Y)};return p.jsx(k,{in:c,onEnter:B,onEntered:V,onEntering:_,onExit:J,onExited:F,onExiting:de,addEndListener:Z,nodeRef:A,timeout:E==="auto"?null:E,...T,children:(Y,{ownerState:te,...X})=>p.jsx(RU,{as:l,className:De(O.root,s,{entered:O.entered,exited:!c&&v==="0px"&&O.hidden}[Y]),style:{[N?"minWidth":"minHeight"]:v,...C},ref:R,ownerState:{...S,state:Y},...X,children:p.jsx(MU,{ownerState:{...S,state:Y},className:O.wrapper,ref:P,children:p.jsx(NU,{ownerState:{...S,state:Y},className:O.wrapperInner,children:o})})})})});ti&&(ti.muiSupportAuto=!0);function OU(e){return Fe("PrivateSwitchBase",e)}Re("PrivateSwitchBase",["root","checked","disabled","input","edgeStart","edgeEnd"]);const LU=e=>{const{classes:t,checked:n,disabled:r,edge:a}=e,o={root:["root",n&&"checked",r&&"disabled",a&&`edge${Se(a)}`],input:["input"]};return Le(o,OU,t)},FU=oe(La,{name:"MuiSwitchBase"})({padding:9,borderRadius:"50%",variants:[{props:{edge:"start",size:"small"},style:{marginLeft:-3}},{props:({edge:e,ownerState:t})=>e==="start"&&t.size!=="small",style:{marginLeft:-12}},{props:{edge:"end",size:"small"},style:{marginRight:-3}},{props:({edge:e,ownerState:t})=>e==="end"&&t.size!=="small",style:{marginRight:-12}}]}),$U=oe("input",{name:"MuiSwitchBase",shouldForwardProp:gn})({cursor:"inherit",position:"absolute",opacity:0,width:"100%",height:"100%",top:0,left:0,margin:0,padding:0,zIndex:1}),BU=w.forwardRef(function(t,n){const{autoFocus:r,checked:a,checkedIcon:o,defaultChecked:s,disabled:i,disableFocusRipple:l=!1,edge:u=!1,icon:c,id:d,inputProps:m,inputRef:f,name:h,onBlur:b,onChange:g,onFocus:x,readOnly:C,required:E=!1,tabIndex:k,type:T,value:S,slots:O={},slotProps:M={},...$}=t,[P,L]=An({controlled:a,default:!!s,name:"SwitchBase",state:"checked"}),v=Jn(),N=Z=>{x&&x(Z),v&&v.onFocus&&v.onFocus(Z)},I=Z=>{b&&b(Z),v&&v.onBlur&&v.onBlur(Z)},A=Z=>{if(Z.nativeEvent.defaultPrevented)return;const Y=Z.target.checked;L(Y),g&&g(Z,Y)};let R=i;v&&typeof R>"u"&&(R=v.disabled);const W=T==="checkbox"||T==="radio",H={...t,checked:P,disabled:R,disableFocusRipple:l,edge:u},B=LU(H),_={slots:O,slotProps:{input:m,...M}},[V,J]=ct("root",{ref:n,elementType:FU,className:B.root,shouldForwardComponentProp:!0,externalForwardedProps:{..._,component:"span",...$},getSlotProps:Z=>({...Z,onFocus:Y=>{Z.onFocus?.(Y),N(Y)},onBlur:Y=>{Z.onBlur?.(Y),I(Y)}}),ownerState:H,additionalProps:{centerRipple:!0,focusRipple:!l,disabled:R,role:void 0,tabIndex:null}}),[F,de]=ct("input",{ref:f,elementType:$U,className:B.input,externalForwardedProps:_,getSlotProps:Z=>({...Z,onChange:Y=>{Z.onChange?.(Y),A(Y)}}),ownerState:H,additionalProps:{autoFocus:r,checked:a,defaultChecked:s,disabled:R,id:W?d:void 0,name:h,readOnly:C,required:E,tabIndex:k,type:T,...T==="checkbox"&&S===void 0?{}:{value:S}}});return p.jsxs(V,{...J,children:[p.jsx(F,{...de}),P?o:c]})}),jU=nt(p.jsx("path",{d:"M19 5v14H5V5h14m0-2H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2z"})),HU=nt(p.jsx("path",{d:"M19 3H5c-1.11 0-2 .9-2 2v14c0 1.1.89 2 2 2h14c1.11 0 2-.9 2-2V5c0-1.1-.89-2-2-2zm-9 14l-5-5 1.41-1.41L10 14.17l7.59-7.59L19 8l-9 9z"})),UU=nt(p.jsx("path",{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-2 10H7v-2h10v2z"}));function zU(e){return Fe("MuiCheckbox",e)}const Hc=Re("MuiCheckbox",["root","checked","disabled","indeterminate","colorPrimary","colorSecondary","sizeSmall","sizeMedium"]),VU=e=>{const{classes:t,indeterminate:n,color:r,size:a}=e,o={root:["root",n&&"indeterminate",`color${Se(r)}`,`size${Se(a)}`]},s=Le(o,zU,t);return{...t,...s}},WU=oe(BU,{shouldForwardProp:e=>gn(e)||e==="classes",name:"MuiCheckbox",slot:"Root",overridesResolver:(e,t)=>{const{ownerState:n}=e;return[t.root,n.indeterminate&&t.indeterminate,t[`size${Se(n.size)}`],n.color!=="default"&&t[`color${Se(n.color)}`]]}})(tt(({theme:e})=>({color:(e.vars||e).palette.text.secondary,variants:[{props:{color:"default",disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette.action.active,(e.vars||e).palette.action.hoverOpacity)}}},...Object.entries(e.palette).filter(mn()).map(([t])=>({props:{color:t,disableRipple:!1},style:{"&:hover":{backgroundColor:e.alpha((e.vars||e).palette[t].main,(e.vars||e).palette.action.hoverOpacity)}}})),...Object.entries(e.palette).filter(mn()).map(([t])=>({props:{color:t},style:{[`&.${Hc.checked}, &.${Hc.indeterminate}`]:{color:(e.vars||e).palette[t].main},[`&.${Hc.disabled}`]:{color:(e.vars||e).palette.action.disabled}}})),{props:{disableRipple:!1},style:{"&:hover":{"@media (hover: none)":{backgroundColor:"transparent"}}}}]}))),qU=p.jsx(HU,{}),YU=p.jsx(jU,{}),GU=p.jsx(UU,{}),C2=w.forwardRef(function(t,n){const r=Xe({props:t,name:"MuiCheckbox"}),{checkedIcon:a=qU,color:o="primary",icon:s=YU,indeterminate:i=!1,indeterminateIcon:l=GU,inputProps:u,size:c="medium",disableRipple:d=!1,className:m,slots:f={},slotProps:h={},...b}=r,g=i?l:s,x=i?l:a,C={...r,disableRipple:d,color:o,indeterminate:i,size:c},E=VU(C),k=h.input??u,[T,S]=ct("root",{ref:n,elementType:WU,className:De(E.root,m),shouldForwardComponentProp:!0,externalForwardedProps:{slots:f,slotProps:h,...b},ownerState:C,additionalProps:{type:"checkbox",icon:w.cloneElement(g,{fontSize:g.props.fontSize??c}),checkedIcon:w.cloneElement(x,{fontSize:x.props.fontSize??c}),disableRipple:d,slots:f,slotProps:{input:L0(typeof k=="function"?k(C):k,{"data-indeterminate":i})}}});return p.jsx(T,{...S,classes:E})});function E2(e){return _t}const v2=w.createContext(null);function KU(e){const{value:t,children:n}=e;return p.jsx(v2.Provider,{value:t,children:t.wrapRoot({children:n,instance:t.instance})})}const Wa=()=>{const e=w.useContext(v2);if(e==null)throw new Error(["MUI X: Could not find the Tree View context.","It looks like you rendered your component outside of a SimpleTreeView or RichTreeView parent component.","This can also happen if you are bundling multiple versions of the Tree View."].join(`
229
- `));return e},QU=({props:e})=>{const{instance:t}=Wa(),{label:n,itemId:r}=e,[a,o]=w.useState(n),s=t.isItemBeingEdited(r);return w.useEffect(()=>{s||o(n)},[s,n]),{propsEnhancers:{labelInput:({externalEventHandlers:i,interactions:l})=>t.isItemEditable(r)?{value:a??"","data-element":"labelInput",onChange:f=>{i.onChange?.(f),o(f.target.value)},onKeyDown:f=>{if(i.onKeyDown?.(f),f.defaultMuiPrevented)return;const h=f.target;f.key==="Enter"&&h.value?l.handleSaveItemLabel(f,h.value):f.key==="Escape"&&l.handleCancelItemLabelEditing(f)},onBlur:f=>{i.onBlur?.(f),!f.defaultMuiPrevented&&f.target.value&&l.handleSaveItemLabel(f,f.target.value)},autoFocus:!0,type:"text"}:{}}}},Wn=({instance:e,state:t,setState:n,params:r})=>{const a=w.useRef(t.editedItemId),o=d=>a.current===d,s=d=>{n(m=>U({},m,{editedItemId:d})),a.current=d},i=d=>d===t.editedItemId,l=!!r.isItemEditable,u=d=>{if(d==null||!l)return!1;const m=e.getItem(d);return m?typeof r.isItemEditable=="function"?r.isItemEditable(m):!!r.isItemEditable:!1},c=(d,m)=>{if(!m)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","The label of an item cannot be empty.",d].join(`
230
- `));n(f=>{const h=f.items.itemMetaMap[d];return h.label!==m?U({},f,{items:U({},f.items,{itemMetaMap:U({},f.items.itemMetaMap,{[d]:U({},h,{label:m})})})}):f}),r.onItemLabelChange&&r.onItemLabelChange(d,m)};return{instance:{setEditedItemId:s,isItemBeingEdited:i,updateItemLabel:c,isItemEditable:u,isTreeViewEditable:l,isItemBeingEditedRef:o},publicAPI:{updateItemLabel:c}}};Wn.itemPlugin=QU;Wn.getDefaultizedParams=({params:e,experimentalFeatures:t})=>{const n=t?.labelEditing;return U({},e,{isItemEditable:n?e.isItemEditable??!1:!1})};Wn.getInitialState=()=>({editedItemId:null});Wn.params={onItemLabelChange:!0,isItemEditable:!0};const Pa=(e,t)=>e.getAvailablePlugins().has(t),T2=e=>Array.isArray(e)?e.length>0&&e.some(T2):!!e,XU=({itemId:e,children:t})=>{const{instance:n,selection:{multiSelect:r},publicAPI:a}=Wa(),o={expandable:T2(t),expanded:n.isItemExpanded(e),focused:n.isItemFocused(e),selected:n.isItemSelected(e),disabled:n.isItemDisabled(e),editing:n?.isItemBeingEdited?n?.isItemBeingEdited(e):!1,editable:n.isItemEditable?n.isItemEditable(e):!1},s=f=>{if(o.disabled)return;o.focused||n.focusItem(f,e);const h=r&&(f.shiftKey||f.ctrlKey||f.metaKey);o.expandable&&!(h&&n.isItemExpanded(e))&&n.toggleItemExpansion(f,e)},i=f=>{if(o.disabled)return;!o.focused&&!o.editing&&n.focusItem(f,e),r&&(f.shiftKey||f.ctrlKey||f.metaKey)?f.shiftKey?n.expandSelectionRange(f,e):n.selectItem({event:f,itemId:e,keepExistingSelection:!0}):n.selectItem({event:f,itemId:e,shouldBeSelected:!0})},l=f=>{const h=f.nativeEvent.shiftKey;r&&h?n.expandSelectionRange(f,e):n.selectItem({event:f,itemId:e,keepExistingSelection:r,shouldBeSelected:f.target.checked})},u=()=>{Pa(n,Wn)&&n.isItemEditable(e)&&(n.isItemBeingEdited(e)?n.setEditedItemId(null):n.setEditedItemId(e))};return{interactions:{handleExpansion:s,handleSelection:i,handleCheckboxSelection:l,toggleItemEditing:u,handleSaveItemLabel:(f,h)=>{Pa(n,Wn)&&n.isItemBeingEditedRef(e)&&(n.updateItemLabel(e,h),u(),n.focusItem(f,e))},handleCancelItemLabelEditing:f=>{Pa(n,Wn)&&n.isItemBeingEditedRef(e)&&(u(),n.focusItem(f,e))}},status:o,publicAPI:a}},bf=w.createContext(()=>-1),k2=(e,t)=>{let n=t.length-1;for(;n>=0&&!e.isItemNavigable(t[n]);)n-=1;if(n!==-1)return t[n]},S2=(e,t)=>{const n=e.getItemMeta(t),r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(t);if(a===0)return n.parentId;let o=a-1;for(;!e.isItemNavigable(r[o])&&o>=0;)o-=1;if(o===-1)return n.parentId==null?null:S2(e,n.parentId);let s=r[o],i=k2(e,e.getItemOrderedChildrenIds(s));for(;e.isItemExpanded(s)&&i!=null;)s=i,i=e.getItemOrderedChildrenIds(s).find(e.isItemNavigable);return s},ml=(e,t)=>{if(e.isItemExpanded(t)){const r=e.getItemOrderedChildrenIds(t).find(e.isItemNavigable);if(r!=null)return r}let n=e.getItemMeta(t);for(;n!=null;){const r=e.getItemOrderedChildrenIds(n.parentId),a=e.getItemIndex(n.id);if(a<r.length-1){let o=a+1;for(;!e.isItemNavigable(r[o])&&o<r.length-1;)o+=1;if(e.isItemNavigable(r[o]))return r[o]}n=e.getItemMeta(n.parentId)}return null},w2=e=>{let t=null;for(;t==null||e.isItemExpanded(t);){const n=e.getItemOrderedChildrenIds(t),r=k2(e,n);if(r==null)return t;t=r}return t},ni=e=>e.getItemOrderedChildrenIds(null).find(e.isItemNavigable),_2=(e,t,n)=>{if(t===n)return[t,n];const r=e.getItemMeta(t),a=e.getItemMeta(n);if(r.parentId===a.id||a.parentId===r.id)return a.parentId===r.id?[r.id,a.id]:[a.id,r.id];const o=[r.id],s=[a.id];let i=r.parentId,l=a.parentId,u=s.indexOf(i)!==-1,c=o.indexOf(l)!==-1,d=!0,m=!0;for(;!c&&!u;)d&&(o.push(i),u=s.indexOf(i)!==-1,d=i!==null,!u&&d&&(i=e.getItemMeta(i).parentId)),m&&!u&&(s.push(l),c=o.indexOf(l)!==-1,m=l!==null,!c&&m&&(l=e.getItemMeta(l).parentId));const f=u?i:l,h=e.getItemOrderedChildrenIds(f),b=o[o.indexOf(f)-1],g=s[s.indexOf(f)-1];return h.indexOf(b)<h.indexOf(g)?[t,n]:[n,t]},ZU=(e,t,n)=>{const r=l=>{if(e.isItemExpandable(l)&&e.isItemExpanded(l))return e.getItemOrderedChildrenIds(l)[0];let u=e.getItemMeta(l);for(;u!=null;){const c=e.getItemOrderedChildrenIds(u.parentId),d=e.getItemIndex(u.id);if(d<c.length-1)return c[d+1];u=e.getItemMeta(u.parentId)}throw new Error("Invalid range")},[a,o]=_2(e,t,n),s=[a];let i=a;for(;i!==o;)i=r(i),e.isItemDisabled(i)||s.push(i);return s},JU=e=>{let t=ni(e);const n=[];for(;t!=null;)n.push(t),t=ml(e,t);return n},ri=(e,t)=>t!==e.closest('*[role="treeitem"]');let f0=0;const ez=()=>(f0+=1,`mui-tree-view-${f0}`),yf=({id:e,treeId:t="",itemId:n})=>e??`${t}-${n}`,tz=e=>{const{runItemPlugins:t,items:{onItemClick:n,disabledItemsFocusable:r,indentationAtItemLevel:a},selection:{disableSelection:o,checkboxSelection:s},expansion:{expansionTrigger:i},treeId:l,instance:u,publicAPI:c}=Wa(),d=w.useContext(bf),{id:m,itemId:f,label:h,children:b,rootRef:g}=e,{rootRef:x,contentRef:C,propsEnhancers:E}=t(e),{interactions:k,status:T}=XU({itemId:f,children:b}),S=w.useRef(null),O=w.useRef(null),M=ot(g,x,S),$=ot(C,O),P=w.useRef(null),L=yf({itemId:f,treeId:l,id:m}),v=u.canItemBeTabbed(f)?0:-1,N={rootRefObject:S,contentRefObject:O,interactions:k},I=Q=>G=>{if(Q.onFocus?.(G),G.defaultMuiPrevented)return;const se=!T.disabled||r;!T.focused&&se&&G.currentTarget===G.target&&u.focusItem(G,f)},A=Q=>G=>{if(Q.onBlur?.(G),G.defaultMuiPrevented)return;const se=u.getItemDOMElement(f);T.editing||G.relatedTarget&&ri(G.relatedTarget,se)&&(G.target&&G.target?.dataset?.element==="labelInput"&&ri(G.target,se)||G.relatedTarget?.dataset?.element==="labelInput")||u.removeFocusedItem()},R=Q=>G=>{Q.onKeyDown?.(G),!(G.defaultMuiPrevented||G.target?.dataset?.element==="labelInput")&&u.handleItemKeyDown(G,f)},W=Q=>G=>{Q.onDoubleClick?.(G),!G.defaultMuiPrevented&&k.toggleItemEditing()},H=Q=>G=>{Q.onClick?.(G),n?.(G,f),!(G.defaultMuiPrevented||P.current?.contains(G.target))&&(i==="content"&&k.handleExpansion(G),s||k.handleSelection(G))},B=Q=>G=>{Q.onMouseDown?.(G),!G.defaultMuiPrevented&&(G.shiftKey||G.ctrlKey||G.metaKey||T.disabled)&&G.preventDefault()},_=Q=>G=>{Q.onChange?.(G),!G.defaultMuiPrevented&&(o||T.disabled||k.handleCheckboxSelection(G))},V=Q=>G=>{Q.onClick?.(G),!G.defaultMuiPrevented&&i==="iconContainer"&&k.handleExpansion(G)};return{getRootProps:(Q={})=>{const G=U({},dn(e),dn(Q));let se;T.selected?se=!0:o||T.disabled?se=void 0:se=!1;const ee=U({},G,{ref:M,role:"treeitem",tabIndex:v,id:L,"aria-expanded":T.expandable?T.expanded:void 0,"aria-selected":se,"aria-disabled":T.disabled||void 0},Q,{onFocus:I(G),onBlur:A(G),onKeyDown:R(G)});a&&(ee.style={"--TreeView-itemDepth":typeof d=="function"?d(f):d});const ne=E.root?.(U({},N,{externalEventHandlers:G}))??{};return U({},ee,ne)},getContentProps:(Q={})=>{const G=dn(Q),se=U({},G,Q,{ref:$,onClick:H(G),onMouseDown:B(G),status:T});a&&(se.indentationAtItemLevel=!0);const ee=E.content?.(U({},N,{externalEventHandlers:G}))??{};return U({},se,ee)},getGroupTransitionProps:(Q={})=>{const G=dn(Q),se=U({},G,{unmountOnExit:!0,component:"ul",role:"group",in:T.expanded,children:b},Q);return a&&(se.indentationAtItemLevel=!0),se},getIconContainerProps:(Q={})=>{const G=dn(Q);return U({},G,Q,{onClick:V(G)})},getCheckboxProps:(Q={})=>{const G=dn(Q);return U({},G,{visible:s,ref:P,checked:T.selected,disabled:o||T.disabled,tabIndex:-1},Q,{onChange:_(G)})},getLabelProps:(Q={})=>{const G=U({},dn(Q)),se=U({},G,{children:h},Q,{onDoubleClick:W(G)});return u.isTreeViewEditable&&(se.editable=T.editable),se},getLabelInputProps:(Q={})=>{const G=dn(Q),se=E.labelInput?.({rootRefObject:S,contentRefObject:O,externalEventHandlers:G,interactions:k})??{};return U({},Q,se)},getDragAndDropOverlayProps:(Q={})=>{const G=dn(Q),se=E.dragAndDropOverlay?.(U({},N,{externalEventHandlers:G}))??{};return U({},Q,se)},rootRef:M,status:T,publicAPI:c}},nz=tz;function I2(e){const{instance:t,items:{onItemClick:n},selection:{multiSelect:r,checkboxSelection:a,disableSelection:o},expansion:{expansionTrigger:s}}=Wa(),i=t.isItemExpandable(e),l=t.isItemExpanded(e),u=t.isItemFocused(e),c=t.isItemSelected(e),d=t.isItemDisabled(e),m=t?.isItemBeingEdited?t?.isItemBeingEdited(e):!1,f=t.isItemEditable?t.isItemEditable(e):!1,h=T=>{if(!d){u||t.focusItem(T,e);const S=r&&(T.shiftKey||T.ctrlKey||T.metaKey);i&&!(S&&t.isItemExpanded(e))&&t.toggleItemExpansion(T,e)}},b=T=>{d||(!u&&!m&&t.focusItem(T,e),r&&(T.shiftKey||T.ctrlKey||T.metaKey)?T.shiftKey?t.expandSelectionRange(T,e):t.selectItem({event:T,itemId:e,keepExistingSelection:!0}):t.selectItem({event:T,itemId:e,shouldBeSelected:!0}))},g=T=>{if(o||d)return;const S=T.nativeEvent.shiftKey;r&&S?t.expandSelectionRange(T,e):t.selectItem({event:T,itemId:e,keepExistingSelection:r,shouldBeSelected:T.target.checked})},x=T=>{(T.shiftKey||T.ctrlKey||T.metaKey||d)&&T.preventDefault()},C=()=>{Pa(t,Wn)&&t.isItemEditable(e)&&(t.isItemBeingEdited(e)?t.setEditedItemId(null):t.setEditedItemId(e))};return{disabled:d,expanded:l,selected:c,focused:u,editable:f,editing:m,disableSelection:o,checkboxSelection:a,handleExpansion:h,handleSelection:b,handleCheckboxSelection:g,handleContentClick:n,preventSelection:x,expansionTrigger:s,toggleItemEditing:C,handleSaveItemLabel:(T,S)=>{Pa(t,Wn)&&t.isItemBeingEditedRef(e)&&(t.updateItemLabel(e,S),C(),t.focusItem(T,e))},handleCancelItemLabelEditing:T=>{Pa(t,Wn)&&t.isItemBeingEditedRef(e)&&(C(),t.focusItem(T,e))}}}const rz=oe("div",{name:"MuiTreeItem2DragAndDropOverlay",slot:"Root",overridesResolver:(e,t)=>t.root,shouldForwardProp:e=>dt.shouldForwardProp(e)&&e!=="action"})(({theme:e})=>({position:"absolute",left:0,display:"flex",top:0,bottom:0,right:0,pointerEvents:"none",variants:[{props:{action:"make-child"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderRadius:e.shape.borderRadius,backgroundColor:e.vars?`rgba(${e.vars.palette.primary.darkChannel} / ${e.vars.palette.action.focusOpacity})`:dt.alpha(e.palette.primary.dark,e.palette.action.focusOpacity)}},{props:{action:"reorder-above"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderTop:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"reorder-below"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * var(--TreeView-itemDepth))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}},{props:{action:"move-to-parent"},style:{marginLeft:"calc(var(--TreeView-indentMultiplier) * calc(var(--TreeView-itemDepth) - 1))",borderBottom:`1px solid ${(e.vars||e).palette.action.active}`}}]}));function az(e){return e.action==null?null:p.jsx(rz,U({},e))}const oz=oe("input",{name:"MuiTreeItem2",slot:"LabelInput",overridesResolver:(e,t)=>t.labelInput})(({theme:e})=>U({},e.typography.body1,{width:"100%",backgroundColor:e.palette.background.paper,borderRadius:e.shape.borderRadius,border:"none",padding:"0 2px",boxSizing:"border-box","&:focus":{outline:`1px solid ${e.palette.primary.main}`}})),sz=["classes","className","displayIcon","expansionIcon","icon","label","itemId","onClick","onMouseDown","dragAndDropOverlayProps","labelInputProps"],A2=w.forwardRef(function(t,n){const{classes:r,className:a,displayIcon:o,expansionIcon:s,icon:i,label:l,itemId:u,onClick:c,onMouseDown:d,dragAndDropOverlayProps:m,labelInputProps:f}=t,h=je(t,sz),{disabled:b,expanded:g,selected:x,focused:C,editing:E,editable:k,disableSelection:T,checkboxSelection:S,handleExpansion:O,handleSelection:M,handleCheckboxSelection:$,handleContentClick:P,preventSelection:L,expansionTrigger:v,toggleItemEditing:N}=I2(u),I=i||s||o,A=w.useRef(null),R=B=>{L(B),d&&d(B)},W=B=>{P?.(B,u),!A.current?.contains(B.target)&&(v==="content"&&O(B),S||M(B),c&&c(B))},H=B=>{B.defaultMuiPrevented||N()};return p.jsxs("div",U({},h,{className:De(r.root,a,g&&r.expanded,x&&r.selected,C&&r.focused,b&&r.disabled,E&&r.editing,k&&r.editable),onClick:W,onMouseDown:R,ref:n,children:[p.jsx("div",{className:r.iconContainer,children:I}),S&&p.jsx(C2,{className:r.checkbox,checked:x,onChange:$,disabled:b||T,ref:A,tabIndex:-1}),E?p.jsx(oz,U({},f,{className:r.labelInput})):p.jsx("div",U({className:r.label},k&&{onDoubleClick:H},{children:l})),m&&p.jsx(az,U({},m))]}))});function iz(e){return Fe("MuiTreeItem",e)}const Rr=Re("MuiTreeItem",["root","groupTransition","content","expanded","selected","focused","disabled","iconContainer","label","checkbox","labelInput","editable","editing","dragAndDropOverlay"]),D2=nt(p.jsx("path",{d:"M10 6 8.59 7.41 13.17 12l-4.58 4.59L10 18l6-6z"})),P2=nt(p.jsx("path",{d:"M16.59 8.59 12 13.17 7.41 8.59 6 10l6 6 6-6z"}));function xf(e){const{children:t,itemId:n}=e,{wrapItem:r,instance:a}=Wa();return r({children:t,itemId:n,instance:a})}xf.propTypes={children:ce.node,itemId:ce.string.isRequired};const lz=["children","className","slots","slotProps","ContentComponent","ContentProps","itemId","id","label","onClick","onMouseDown","onFocus","onBlur","onKeyDown"],uz=["ownerState"],cz=["ownerState"],dz=["ownerState"],pz=E2(),fz=e=>{const{classes:t}=e;return Le({root:["root"],content:["content"],expanded:["expanded"],selected:["selected"],focused:["focused"],disabled:["disabled"],iconContainer:["iconContainer"],checkbox:["checkbox"],label:["label"],labelInput:["labelInput"],editing:["editing"],editable:["editable"],groupTransition:["groupTransition"]},iz,t)},mz=oe("li",{name:"MuiTreeItem",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),hz=oe(A2,{name:"MuiTreeItem",slot:"Content",overridesResolver:(e,t)=>[t.content,t.iconContainer&&{[`& .${Rr.iconContainer}`]:t.iconContainer},t.label&&{[`& .${Rr.label}`]:t.label}],shouldForwardProp:e=>na(e)&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},[`&.${Rr.disabled}`]:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"},[`&.${Rr.focused}`]:{backgroundColor:(e.vars||e).palette.action.focus},[`&.${Rr.selected}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dt.alpha(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}))`:dt.alpha(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})`:dt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}},[`&.${Rr.focused}`]:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}},[`& .${Rr.iconContainer}`]:{width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}},[`& .${Rr.label}`]:U({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative"},e.typography.body1),[`& .${Rr.checkbox}`]:{padding:0},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}}]})),gz=oe(ti,{name:"MuiTreeItem",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>na(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]}),bz=w.forwardRef(function(t,n){const{icons:r,runItemPlugins:a,items:{disabledItemsFocusable:o,indentationAtItemLevel:s},selection:{disableSelection:i},expansion:{expansionTrigger:l},treeId:u,instance:c}=Wa(),d=w.useContext(bf),m=pz({props:t,name:"MuiTreeItem"}),{children:f,className:h,slots:b,slotProps:g,ContentComponent:x=A2,ContentProps:C,itemId:E,id:k,label:T,onClick:S,onMouseDown:O,onBlur:M,onKeyDown:$}=m,P=je(m,lz),{expanded:L,focused:v,selected:N,disabled:I,editing:A,handleExpansion:R,handleCancelItemLabelEditing:W,handleSaveItemLabel:H}=I2(E),{contentRef:B,rootRef:_,propsEnhancers:V}=a(m),J=w.useRef(null),F=w.useRef(null),de=ot(n,_,J),Z=ot(C?.ref,B,F),Y={expandIcon:b?.expandIcon??r.slots.expandIcon??D2,collapseIcon:b?.collapseIcon??r.slots.collapseIcon??P2,endIcon:b?.endIcon??r.slots.endIcon,icon:b?.icon,groupTransition:b?.groupTransition},te=ve=>Array.isArray(ve)?ve.length>0&&ve.some(te):!!ve,X=te(f),re=U({},m,{expanded:L,focused:v,selected:N,disabled:I,indentationAtItemLevel:s}),Q=fz(re),G=Y.groupTransition??void 0,se=at({elementType:G,ownerState:{},externalSlotProps:g?.groupTransition,additionalProps:U({unmountOnExit:!0,in:L,component:"ul",role:"group"},s?{indentationAtItemLevel:!0}:{}),className:Q.groupTransition}),ee=ve=>{l==="iconContainer"&&R(ve)},ne=L?Y.collapseIcon:Y.expandIcon,xe=at({elementType:ne,ownerState:{},externalSlotProps:ve=>L?U({},zn(r.slotProps.collapseIcon,ve),zn(g?.collapseIcon,ve)):U({},zn(r.slotProps.expandIcon,ve),zn(g?.expandIcon,ve)),additionalProps:{onClick:ee}}),pe=je(xe,uz),be=X&&ne?p.jsx(ne,U({},pe)):null,le=X?void 0:Y.endIcon,Pe=at({elementType:le,ownerState:{},externalSlotProps:ve=>X?{}:U({},zn(r.slotProps.endIcon,ve),zn(g?.endIcon,ve))}),Te=je(Pe,cz),ze=le?p.jsx(le,U({},Te)):null,we=Y.icon,Tt=at({elementType:we,ownerState:{},externalSlotProps:g?.icon}),lt=je(Tt,dz),qe=we?p.jsx(we,U({},lt)):null;let ue;N?ue=!0:i||I?ue=void 0:ue=!1;function Ee(ve){!v&&(!I||o)&&ve.currentTarget===ve.target&&c.focusItem(ve,E)}function Me(ve){M?.(ve),!(A||ve.relatedTarget&&ri(ve.relatedTarget,J.current)&&(ve.target&&ve.target?.dataset?.element==="labelInput"&&ri(ve.target,J.current)||ve.relatedTarget?.dataset?.element==="labelInput"))&&c.removeFocusedItem()}const He=ve=>{$?.(ve),ve.target?.dataset?.element!=="labelInput"&&c.handleItemKeyDown(ve,E)},Be=yf({itemId:E,treeId:u,id:k}),Ne=c.canItemBeTabbed(E)?0:-1,Je={rootRefObject:J,contentRefObject:F,interactions:{handleSaveItemLabel:H,handleCancelItemLabelEditing:W}},gt=V.root?.(U({},Je,{externalEventHandlers:dn(P)}))??{},ft=V.content?.(U({},Je,{externalEventHandlers:dn(C)}))??{},ie=V.dragAndDropOverlay?.(U({},Je,{externalEventHandlers:{}}))??{},ye=V.labelInput?.(U({},Je,{externalEventHandlers:{}}))??{};return p.jsx(xf,{itemId:E,children:p.jsxs(mz,U({className:De(Q.root,h),role:"treeitem","aria-expanded":X?L:void 0,"aria-selected":ue,"aria-disabled":I||void 0,id:Be,tabIndex:Ne},P,{ownerState:re,onFocus:Ee,onBlur:Me,onKeyDown:He,ref:de,style:s?U({},P.style,{"--TreeView-itemDepth":typeof d=="function"?d(E):d}):P.style},gt,{children:[p.jsx(hz,U({as:x,classes:{root:Q.content,expanded:Q.expanded,selected:Q.selected,focused:Q.focused,disabled:Q.disabled,editable:Q.editable,editing:Q.editing,iconContainer:Q.iconContainer,label:Q.label,labelInput:Q.labelInput,checkbox:Q.checkbox},label:T,itemId:E,onClick:S,onMouseDown:O,icon:qe,expansionIcon:be,displayIcon:ze,ownerState:re},C,ft,ie.action==null?{}:{dragAndDropOverlayProps:ie},ye.value==null?{}:{labelInputProps:ye},{ref:Z})),f&&p.jsx(gz,U({as:G},se,{children:f}))]}))})});function yz(e){const{slots:t,slotProps:n,status:r}=e,a=Wa(),o=U({},a.icons.slots,{expandIcon:a.icons.slots.expandIcon??D2,collapseIcon:a.icons.slots.collapseIcon??P2}),s=a.icons.slotProps;let i;t?.icon?i="icon":r.expandable?r.expanded?i="collapseIcon":i="expandIcon":i="endIcon";const l=t?.[i]??o[i],u=at({elementType:l,externalSlotProps:c=>U({},zn(s[i],c),zn(n?.[i],c)),ownerState:{}});return l?p.jsx(l,U({},u)):null}const xz=["visible"],Cz=oe("li",{name:"MuiTreeItem2",slot:"Root",overridesResolver:(e,t)=>t.root})({listStyle:"none",margin:0,padding:0,outline:0}),Ez=oe("div",{name:"MuiTreeItem2",slot:"Content",overridesResolver:(e,t)=>t.content,shouldForwardProp:e=>na(e)&&e!=="status"&&e!=="indentationAtItemLevel"})(({theme:e})=>({padding:e.spacing(.5,1),borderRadius:e.shape.borderRadius,width:"100%",boxSizing:"border-box",position:"relative",display:"flex",alignItems:"center",gap:e.spacing(1),cursor:"pointer",WebkitTapHighlightColor:"transparent","&:hover":{backgroundColor:(e.vars||e).palette.action.hover,"@media (hover: none)":{backgroundColor:"transparent"}},variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:`calc(${e.spacing(1)} + var(--TreeView-itemChildrenIndentation) * var(--TreeView-itemDepth))`}},{props:({status:t})=>t.disabled,style:{opacity:(e.vars||e).palette.action.disabledOpacity,backgroundColor:"transparent"}},{props:({status:t})=>t.focused,style:{backgroundColor:(e.vars||e).palette.action.focus}},{props:({status:t})=>t.selected,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / ${e.vars.palette.action.selectedOpacity})`:dt.alpha(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}))`:dt.alpha(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})`:dt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity)}}}},{props:({status:t})=>t.selected&&t.focused,style:{backgroundColor:e.vars?`rgba(${e.vars.palette.primary.mainChannel} / calc(${e.vars.palette.action.selectedOpacity} + ${e.vars.palette.action.focusOpacity}))`:dt.alpha(e.palette.primary.main,e.palette.action.selectedOpacity+e.palette.action.focusOpacity)}}]})),vz=oe("div",{name:"MuiTreeItem2",slot:"Label",overridesResolver:(e,t)=>t.label,shouldForwardProp:e=>na(e)&&e!=="editable"})(({theme:e})=>U({width:"100%",boxSizing:"border-box",minWidth:0,position:"relative",overflow:"hidden"},e.typography.body1,{variants:[{props:({editable:t})=>t,style:{paddingLeft:"2px"}}]})),Tz=oe("div",{name:"MuiTreeItem2",slot:"IconContainer",overridesResolver:(e,t)=>t.iconContainer})({width:16,display:"flex",flexShrink:0,justifyContent:"center","& svg":{fontSize:18}});oe(ti,{name:"MuiTreeItem2",slot:"GroupTransition",overridesResolver:(e,t)=>t.groupTransition,shouldForwardProp:e=>na(e)&&e!=="indentationAtItemLevel"})({margin:0,padding:0,paddingLeft:"var(--TreeView-itemChildrenIndentation)",variants:[{props:{indentationAtItemLevel:!0},style:{paddingLeft:0}}]});oe(w.forwardRef((e,t)=>{const{visible:n}=e,r=je(e,xz);return n?p.jsx(C2,U({},r,{ref:t})):null}),{name:"MuiTreeItem2",slot:"Checkbox",overridesResolver:(e,t)=>t.checkbox})({padding:0});function kz(e){return Fe("MuiRichTreeView",e)}Re("MuiRichTreeView",["root"]);const Sz=(e,t)=>{const n=w.useRef({}),[r,a]=w.useState(()=>{const s={};return e.forEach(i=>{i.models&&Object.entries(i.models).forEach(([l,u])=>{n.current[l]={isControlled:t[l]!==void 0,getDefaultValue:u.getDefaultValue},s[l]=u.getDefaultValue(t)})}),s});return Object.fromEntries(Object.entries(n.current).map(([s,i])=>{const l=t[s]??r[s];return[s,{value:l,setControlledValue:u=>{i.isControlled||a(c=>U({},c,{[s]:u}))}}]}))};class wz{constructor(){this.maxListeners=20,this.warnOnce=!1,this.events={}}on(t,n,r={}){let a=this.events[t];a||(a={highPriority:new Map,regular:new Map},this.events[t]=a),r.isFirst?a.highPriority.set(n,!0):a.regular.set(n,!0)}removeListener(t,n){this.events[t]&&(this.events[t].regular.delete(n),this.events[t].highPriority.delete(n))}removeAllListeners(){this.events={}}emit(t,...n){const r=this.events[t];if(!r)return;const a=Array.from(r.highPriority.keys()),o=Array.from(r.regular.keys());for(let s=a.length-1;s>=0;s-=1){const i=a[s];r.highPriority.has(i)&&i.apply(this,n)}for(let s=0;s<o.length;s+=1){const i=o[s];r.regular.has(i)&&i.apply(this,n)}}once(t,n){const r=this;this.on(t,function a(...o){r.removeListener(t,a),n.apply(r,o)})}}const _z=e=>e.isPropagationStopped!==void 0,R2=()=>{const[e]=w.useState(()=>new wz),t=w.useCallback((...r)=>{const[a,o,s={}]=r;s.defaultMuiPrevented=!1,!(_z(s)&&s.isPropagationStopped())&&e.emit(a,o,s)},[e]),n=w.useCallback((r,a)=>(e.on(r,a),()=>{e.removeListener(r,a)}),[e]);return{instance:{$$publishEvent:t,$$subscribeEvent:n}}};R2.params={};const M2=({plugins:e})=>{const t=new Set(e);return{instance:{getAvailablePlugins:()=>t}}};M2.params={};const Cf=({params:e,state:t,setState:n})=>{w.useEffect(()=>{n(a=>a.id.treeId===e.id&&a.id.treeId!==void 0?a:U({},a,{id:U({},a.id,{treeId:e.id??ez()})}))},[n,e.id]);const r=e.id??t.id.treeId;return{getRootProps:()=>({id:r}),contextValue:{treeId:r}}};Cf.params={id:!0};Cf.getInitialState=({id:e})=>({id:{treeId:e??void 0}});const Iz=[R2,M2,Cf],Az=["slots","slotProps","apiRef","experimentalFeatures"],Dz=e=>{let{props:{slots:t,slotProps:n,apiRef:r,experimentalFeatures:a},plugins:o}=e,s=je(e.props,Az);const i={};o.forEach(m=>{Object.assign(i,m.params)});const l={},u={};Object.keys(s).forEach(m=>{const f=s[m];i[m]?l[m]=f:u[m]=f});const c=a??{},d=o.reduce((m,f)=>f.getDefaultizedParams?f.getDefaultizedParams({params:m,experimentalFeatures:c}):m,l);return{apiRef:r,forwardedProps:u,pluginParams:d,slots:t??{},slotProps:n??{},experimentalFeatures:c}},Pz=({plugins:e,instance:t,publicAPI:n,rootRef:r})=>({runItemPlugins:i=>{let l=null,u=null;const c=[],d={};e.forEach(h=>{if(!h.itemPlugin)return;const b=h.itemPlugin({props:i,rootRef:l,contentRef:u});b?.rootRef&&(l=b.rootRef),b?.contentRef&&(u=b.contentRef),b?.propsEnhancers&&(c.push(b.propsEnhancers),Object.keys(b.propsEnhancers).forEach(g=>{d[g]=!0}))});const m=h=>b=>{const g={};return c.forEach(x=>{const C=x[h];C!=null&&Object.assign(g,C(b))}),g},f=Object.fromEntries(Object.keys(d).map(h=>[h,m(h)]));return{contentRef:u,rootRef:l,propsEnhancers:f}},wrapItem:({itemId:i,children:l})=>{let u=l;for(let c=e.length-1;c>=0;c-=1){const d=e[c];d.wrapItem&&(u=d.wrapItem({itemId:i,children:u,instance:t}))}return u},wrapRoot:({children:i})=>{let l=i;for(let u=e.length-1;u>=0;u-=1){const c=e[u];c.wrapRoot&&(l=c.wrapRoot({children:l,instance:t}))}return l},instance:t,rootRef:r,publicAPI:n});function Rz(e){const t=w.useRef({});return e?(e.current==null&&(e.current={}),e.current):t.current}const Mz=({plugins:e,rootRef:t,props:n})=>{const r=[...Iz,...e],{pluginParams:a,forwardedProps:o,apiRef:s,experimentalFeatures:i,slots:l,slotProps:u}=Dz({plugins:r,props:n}),c=Sz(r,a),m=w.useRef({}).current,f=Rz(s),h=w.useRef(null),b=ot(h,t),g=Pz({plugins:r,instance:m,publicAPI:f,rootRef:h}),[x,C]=w.useState(()=>{const S={};return r.forEach(O=>{O.getInitialState&&Object.assign(S,O.getInitialState(a))}),S}),E=[],k=S=>{const O=S({instance:m,params:a,slots:l,slotProps:u,experimentalFeatures:i,state:x,setState:C,rootRef:h,models:c,plugins:r});O.getRootProps&&E.push(O.getRootProps),O.publicAPI&&Object.assign(f,O.publicAPI),O.instance&&Object.assign(m,O.instance),O.contextValue&&Object.assign(g,O.contextValue)};return r.forEach(k),{getRootProps:(S={})=>{const O=U({role:"tree"},o,S,{ref:b});return E.forEach(M=>{Object.assign(O,M(S))}),O},rootRef:b,contextValue:g,instance:m}},Nz=(e,t,n)=>{e.$$publishEvent(t,n)},lo="__TREE_VIEW_ROOT_PARENT_ID__",Oz=e=>{const t={};return e.forEach((n,r)=>{t[n]=r}),t},Lz=["children"],N2=({items:e,isItemDisabled:t,getItemLabel:n,getItemId:r})=>{const a={},o={},s={[lo]:[]},i=(u,c,d)=>{const m=r?r(u):u.id;if(m==null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.","An item was provided without id in the `items` prop:",JSON.stringify(u)].join(`
231
- `));if(a[m]!=null)throw new Error(["MUI X: The Tree View component requires all items to have a unique `id` property.","Alternatively, you can use the `getItemId` prop to specify a custom id for each item.",`Two items were provided with the same id in the \`items\` prop: "${m}"`].join(`
232
- `));const f=n?n(u):u.label;if(f==null)throw new Error(["MUI X: The Tree View component requires all items to have a `label` property.","Alternatively, you can use the `getItemLabel` prop to specify a custom label for each item.","An item was provided without label in the `items` prop:",JSON.stringify(u)].join(`
233
- `));a[m]={id:m,label:f,parentId:d,idAttribute:void 0,expandable:!!u.children?.length,disabled:t?t(u):!1,depth:c},o[m]=u;const h=d??lo;s[h]||(s[h]=[]),s[h].push(m),u.children?.forEach(b=>i(b,c+1,m))};e.forEach(u=>i(u,0,null));const l={};return Object.keys(s).forEach(u=>{l[u]=Oz(s[u])}),{itemMetaMap:a,itemMap:o,itemOrderedChildrenIds:s,itemChildrenIndexes:l}},Ti=({instance:e,params:t,state:n,setState:r,experimentalFeatures:a})=>{const o=w.useCallback(x=>n.items.itemMetaMap[x],[n.items.itemMetaMap]),s=w.useCallback(x=>n.items.itemMap[x],[n.items.itemMap]),i=w.useCallback(()=>{const x=C=>{const E=n.items.itemMap[C],k=je(E,Lz),T=n.items.itemOrderedChildrenIds[C];return T&&(k.children=T.map(x)),k};return n.items.itemOrderedChildrenIds[lo].map(x)},[n.items.itemMap,n.items.itemOrderedChildrenIds]),l=w.useCallback(x=>{if(x==null)return!1;let C=e.getItemMeta(x);if(!C)return!1;if(C.disabled)return!0;for(;C.parentId!=null;)if(C=e.getItemMeta(C.parentId),C.disabled)return!0;return!1},[e]),u=w.useCallback(x=>{const C=e.getItemMeta(x).parentId??lo;return n.items.itemChildrenIndexes[C][x]},[e,n.items.itemChildrenIndexes]),c=w.useCallback(x=>n.items.itemOrderedChildrenIds[x??lo]??[],[n.items.itemOrderedChildrenIds]),d=x=>{const C=e.getItemMeta(x);return C==null?null:document.getElementById(yf({treeId:n.id.treeId,itemId:x,id:C.idAttribute}))},m=x=>t.disabledItemsFocusable?!0:!e.isItemDisabled(x),f=w.useRef(!1),h=w.useCallback(()=>{f.current=!0},[]),b=w.useCallback(()=>f.current,[]);return w.useEffect(()=>{e.areItemUpdatesPrevented()||r(x=>{const C=N2({items:t.items,isItemDisabled:t.isItemDisabled,getItemId:t.getItemId,getItemLabel:t.getItemLabel});return Object.values(x.items.itemMetaMap).forEach(E=>{C.itemMetaMap[E.id]||Nz(e,"removeItem",{id:E.id})}),U({},x,{items:C})})},[e,r,t.items,t.isItemDisabled,t.getItemId,t.getItemLabel]),{getRootProps:()=>({style:{"--TreeView-itemChildrenIndentation":typeof t.itemChildrenIndentation=="number"?`${t.itemChildrenIndentation}px`:t.itemChildrenIndentation}}),publicAPI:{getItem:s,getItemDOMElement:d,getItemTree:i,getItemOrderedChildrenIds:c},instance:{getItemMeta:o,getItem:s,getItemTree:i,getItemsToRender:()=>{const x=C=>{const E=n.items.itemMetaMap[C];return{label:E.label,itemId:E.id,id:E.idAttribute,children:n.items.itemOrderedChildrenIds[C]?.map(x)}};return n.items.itemOrderedChildrenIds[lo].map(x)},getItemIndex:u,getItemDOMElement:d,getItemOrderedChildrenIds:c,isItemDisabled:l,isItemNavigable:m,preventItemUpdates:h,areItemUpdatesPrevented:b},contextValue:{items:{onItemClick:t.onItemClick,disabledItemsFocusable:t.disabledItemsFocusable,indentationAtItemLevel:a.indentationAtItemLevel??!1}}}};Ti.getInitialState=e=>({items:N2({items:e.items,isItemDisabled:e.isItemDisabled,getItemId:e.getItemId,getItemLabel:e.getItemLabel})});Ti.getDefaultizedParams=({params:e})=>U({},e,{disabledItemsFocusable:e.disabledItemsFocusable??!1,itemChildrenIndentation:e.itemChildrenIndentation??"12px"});Ti.wrapRoot=({children:e,instance:t})=>p.jsx(bf.Provider,{value:n=>t.getItemMeta(n)?.depth??0,children:e});Ti.params={disabledItemsFocusable:!0,items:!0,isItemDisabled:!0,getItemLabel:!0,getItemId:!0,onItemClick:!0,itemChildrenIndentation:!0};const Fu=({instance:e,params:t,models:n})=>{const r=w.useMemo(()=>{const d=new Map;return n.expandedItems.value.forEach(m=>{d.set(m,!0)}),d},[n.expandedItems.value]),a=(d,m)=>{t.onExpandedItemsChange?.(d,m),n.expandedItems.setControlledValue(m)},o=w.useCallback(d=>r.has(d),[r]),s=w.useCallback(d=>!!e.getItemMeta(d)?.expandable,[e]),i=Ae((d,m)=>{const f=e.isItemExpanded(m);e.setItemExpansion(d,m,!f)}),l=Ae((d,m,f)=>{if(e.isItemExpanded(m)===f)return;let b;f?b=[m].concat(n.expandedItems.value):b=n.expandedItems.value.filter(g=>g!==m),t.onItemExpansionToggle&&t.onItemExpansionToggle(d,m,f),a(d,b)}),u=(d,m)=>{const f=e.getItemMeta(m),b=e.getItemOrderedChildrenIds(f.parentId).filter(x=>e.isItemExpandable(x)&&!e.isItemExpanded(x)),g=n.expandedItems.value.concat(b);b.length>0&&(t.onItemExpansionToggle&&b.forEach(x=>{t.onItemExpansionToggle(d,x,!0)}),a(d,g))},c=w.useMemo(()=>t.expansionTrigger?t.expansionTrigger:e.isTreeViewEditable?"iconContainer":"content",[t.expansionTrigger,e.isTreeViewEditable]);return{publicAPI:{setItemExpansion:l},instance:{isItemExpanded:o,isItemExpandable:s,setItemExpansion:l,toggleItemExpansion:i,expandAllSiblings:u},contextValue:{expansion:{expansionTrigger:c}}}};Fu.models={expandedItems:{getDefaultValue:e=>e.defaultExpandedItems}};const Fz=[];Fu.getDefaultizedParams=({params:e})=>U({},e,{defaultExpandedItems:e.defaultExpandedItems??Fz});Fu.params={expandedItems:!0,defaultExpandedItems:!0,onExpandedItemsChange:!0,onItemExpansionToggle:!0,expansionTrigger:!0};const hl=e=>Array.isArray(e)?e:e!=null?[e]:[],Uc=e=>{const t={};return e.forEach(n=>{t[n]=!0}),t},$u=({instance:e,params:t,models:n})=>{const r=w.useRef(null),a=w.useRef({}),o=w.useMemo(()=>{const b=new Map;return Array.isArray(n.selectedItems.value)?n.selectedItems.value.forEach(g=>{b.set(g,!0)}):n.selectedItems.value!=null&&b.set(n.selectedItems.value,!0),b},[n.selectedItems.value]),s=(b,g)=>{if(t.onItemSelectionToggle)if(t.multiSelect){const x=g.filter(E=>!e.isItemSelected(E)),C=n.selectedItems.value.filter(E=>!g.includes(E));x.forEach(E=>{t.onItemSelectionToggle(b,E,!0)}),C.forEach(E=>{t.onItemSelectionToggle(b,E,!1)})}else g!==n.selectedItems.value&&(n.selectedItems.value!=null&&t.onItemSelectionToggle(b,n.selectedItems.value,!1),g!=null&&t.onItemSelectionToggle(b,g,!0));t.onSelectedItemsChange&&t.onSelectedItemsChange(b,g),n.selectedItems.setControlledValue(g)},i=b=>o.has(b),l=({event:b,itemId:g,keepExistingSelection:x=!1,shouldBeSelected:C})=>{if(t.disableSelection)return;let E;if(x){const k=hl(n.selectedItems.value),T=e.isItemSelected(g);T&&(C===!1||C==null)?E=k.filter(S=>S!==g):!T&&(C===!0||C==null)?E=[g].concat(k):E=k}else C===!1||C==null&&e.isItemSelected(g)?E=t.multiSelect?[]:null:E=t.multiSelect?[g]:g;s(b,E),r.current=g,a.current={}},u=(b,[g,x])=>{if(t.disableSelection||!t.multiSelect)return;let C=hl(n.selectedItems.value).slice();Object.keys(a.current).length>0&&(C=C.filter(S=>!a.current[S]));const E=Uc(C),k=ZU(e,g,x),T=k.filter(S=>!E[S]);C=C.concat(T),s(b,C),a.current=Uc(k)};return{getRootProps:()=>({"aria-multiselectable":t.multiSelect}),publicAPI:{selectItem:l},instance:{isItemSelected:i,selectItem:l,selectAllNavigableItems:b=>{if(t.disableSelection||!t.multiSelect)return;const g=JU(e);s(b,g),a.current=Uc(g)},expandSelectionRange:(b,g)=>{if(r.current!=null){const[x,C]=_2(e,g,r.current);u(b,[x,C])}},selectRangeFromStartToItem:(b,g)=>{u(b,[ni(e),g])},selectRangeFromItemToEnd:(b,g)=>{u(b,[g,w2(e)])},selectItemFromArrowNavigation:(b,g,x)=>{if(t.disableSelection||!t.multiSelect)return;let C=hl(n.selectedItems.value).slice();Object.keys(a.current).length===0?(C.push(x),a.current={[g]:!0,[x]:!0}):(a.current[g]||(a.current={}),a.current[x]?(C=C.filter(E=>E!==g),delete a.current[g]):(C.push(x),a.current[x]=!0)),s(b,C)}},contextValue:{selection:{multiSelect:t.multiSelect,checkboxSelection:t.checkboxSelection,disableSelection:t.disableSelection}}}};$u.models={selectedItems:{getDefaultValue:e=>e.defaultSelectedItems}};const $z=[];$u.getDefaultizedParams=({params:e})=>U({},e,{disableSelection:e.disableSelection??!1,multiSelect:e.multiSelect??!1,checkboxSelection:e.checkboxSelection??!1,defaultSelectedItems:e.defaultSelectedItems??(e.multiSelect?$z:null)});$u.params={disableSelection:!0,multiSelect:!0,checkboxSelection:!0,defaultSelectedItems:!0,selectedItems:!0,onSelectedItemsChange:!0,onItemSelectionToggle:!0};const m0=1e3;class Bz{constructor(t=m0){this.timeouts=new Map,this.cleanupTimeout=m0,this.cleanupTimeout=t}register(t,n,r){this.timeouts||(this.timeouts=new Map);const a=setTimeout(()=>{typeof n=="function"&&n(),this.timeouts.delete(r.cleanupToken)},this.cleanupTimeout);this.timeouts.set(r.cleanupToken,a)}unregister(t){const n=this.timeouts.get(t.cleanupToken);n&&(this.timeouts.delete(t.cleanupToken),clearTimeout(n))}reset(){this.timeouts&&(this.timeouts.forEach((t,n)=>{this.unregister({cleanupToken:n})}),this.timeouts=void 0)}}class jz{constructor(){this.registry=new FinalizationRegistry(t=>{typeof t=="function"&&t()})}register(t,n,r){this.registry.register(t,n,r)}unregister(t){this.registry.unregister(t)}reset(){}}class Hz{}function Uz(e){let t=0;return function(r,a,o){e.registry===null&&(e.registry=typeof FinalizationRegistry<"u"?new jz:new Bz);const[s]=w.useState(new Hz),i=w.useRef(null),l=w.useRef(void 0);l.current=o;const u=w.useRef(null);if(!i.current&&l.current){const c=(d,m)=>{m.defaultMuiPrevented||l.current?.(d,m)};i.current=r.$$subscribeEvent(a,c),t+=1,u.current={cleanupToken:t},e.registry.register(s,()=>{i.current?.(),i.current=null,u.current=null},u.current)}else!l.current&&i.current&&(i.current(),i.current=null,u.current&&(e.registry.unregister(u.current),u.current=null));w.useEffect(()=>{if(!i.current&&l.current){const c=(d,m)=>{m.defaultMuiPrevented||l.current?.(d,m)};i.current=r.$$subscribeEvent(a,c)}return u.current&&e.registry&&(e.registry.unregister(u.current),u.current=null),()=>{i.current?.(),i.current=null}},[r,a])}}const zz={registry:null},Vz=Uz(zz),O2=(e=document)=>{const t=e.activeElement;return t?t.shadowRoot?O2(t.shadowRoot):t:null},Wz=(e,t)=>{let n=hl(t).find(r=>{if(!e.isItemNavigable(r))return!1;const a=e.getItemMeta(r);return a&&(a.parentId==null||e.isItemExpanded(a.parentId))});return n==null&&(n=ni(e)),n},Ef=({instance:e,params:t,state:n,setState:r,models:a,rootRef:o})=>{const s=Wz(e,a.selectedItems.value),i=Ae(g=>{const x=typeof g=="function"?g(n.focusedItemId):g;n.focusedItemId!==x&&r(C=>U({},C,{focusedItemId:x}))}),l=w.useCallback(()=>!!o.current&&o.current.contains(O2(Ut(o.current))),[o]),u=w.useCallback(g=>n.focusedItemId===g&&l(),[n.focusedItemId,l]),c=g=>{const x=e.getItemMeta(g);return x&&(x.parentId==null||e.isItemExpanded(x.parentId))},d=(g,x)=>{const C=e.getItemDOMElement(x);C&&C.focus(),i(x),t.onItemFocus&&t.onItemFocus(g,x)},m=Ae((g,x)=>{c(x)&&d(g,x)}),f=Ae(()=>{if(n.focusedItemId==null)return;if(e.getItemMeta(n.focusedItemId)){const x=e.getItemDOMElement(n.focusedItemId);x&&x.blur()}i(null)}),h=g=>g===s;Vz(e,"removeItem",({id:g})=>{n.focusedItemId===g&&d(null,s)});const b=g=>x=>{g.onFocus?.(x),!x.defaultMuiPrevented&&x.target===x.currentTarget&&d(x,s)};return{getRootProps:g=>({onFocus:b(g)}),publicAPI:{focusItem:m},instance:{isItemFocused:u,canItemBeTabbed:h,focusItem:m,removeFocusedItem:f}}};Ef.getInitialState=()=>({focusedItemId:null});Ef.params={onItemFocus:!0};function qz(e){return!!e&&e.length===1&&!!e.match(/\S/)}const L2=({instance:e,params:t,state:n})=>{const r=Qn(),a=w.useRef({}),o=Ae(c=>{a.current=c(a.current)});w.useEffect(()=>{if(e.areItemUpdatesPrevented())return;const c={},d=m=>{c[m.id]=m.label.substring(0,1).toLowerCase()};Object.values(n.items.itemMetaMap).forEach(d),a.current=c},[n.items.itemMetaMap,t.getItemId,e]);const s=(c,d)=>{const m=d.toLowerCase(),f=x=>{const C=ml(e,x);return C===null?ni(e):C};let h=null,b=f(c);const g={};for(;h==null&&!g[b];)a.current[b]===m?h=b:(g[b]=!0,b=f(b));return h},i=c=>!t.disableSelection&&!e.isItemDisabled(c),l=c=>!e.isItemDisabled(c)&&e.isItemExpandable(c);return{instance:{updateFirstCharMap:o,handleItemKeyDown:(c,d)=>{if(c.defaultMuiPrevented||c.altKey||ri(c.target,c.currentTarget))return;const m=c.ctrlKey||c.metaKey,f=c.key;switch(!0){case(f===" "&&i(d)):{c.preventDefault(),t.multiSelect&&c.shiftKey?e.expandSelectionRange(c,d):e.selectItem({event:c,itemId:d,keepExistingSelection:t.multiSelect,shouldBeSelected:t.multiSelect?void 0:!0});break}case f==="Enter":{Pa(e,Wn)&&e.isItemEditable(d)&&!e.isItemBeingEdited(d)?e.setEditedItemId(d):l(d)?(e.toggleItemExpansion(c,d),c.preventDefault()):i(d)&&(t.multiSelect?(c.preventDefault(),e.selectItem({event:c,itemId:d,keepExistingSelection:!0})):e.isItemSelected(d)||(e.selectItem({event:c,itemId:d}),c.preventDefault()));break}case f==="ArrowDown":{const h=ml(e,d);h&&(c.preventDefault(),e.focusItem(c,h),t.multiSelect&&c.shiftKey&&i(h)&&e.selectItemFromArrowNavigation(c,d,h));break}case f==="ArrowUp":{const h=S2(e,d);h&&(c.preventDefault(),e.focusItem(c,h),t.multiSelect&&c.shiftKey&&i(h)&&e.selectItemFromArrowNavigation(c,d,h));break}case(f==="ArrowRight"&&!r||f==="ArrowLeft"&&r):{if(m)return;if(e.isItemExpanded(d)){const h=ml(e,d);h&&(e.focusItem(c,h),c.preventDefault())}else l(d)&&(e.toggleItemExpansion(c,d),c.preventDefault());break}case(f==="ArrowLeft"&&!r||f==="ArrowRight"&&r):{if(m)return;if(l(d)&&e.isItemExpanded(d))e.toggleItemExpansion(c,d),c.preventDefault();else{const h=e.getItemMeta(d).parentId;h&&(e.focusItem(c,h),c.preventDefault())}break}case f==="Home":{i(d)&&t.multiSelect&&m&&c.shiftKey?e.selectRangeFromStartToItem(c,d):e.focusItem(c,ni(e)),c.preventDefault();break}case f==="End":{i(d)&&t.multiSelect&&m&&c.shiftKey?e.selectRangeFromItemToEnd(c,d):e.focusItem(c,w2(e)),c.preventDefault();break}case f==="*":{e.expandAllSiblings(c,d),c.preventDefault();break}case(String.fromCharCode(c.keyCode)==="A"&&m&&t.multiSelect&&!t.disableSelection):{e.selectAllNavigableItems(c),c.preventDefault();break}case(!m&&!c.shiftKey&&qz(f)):{const h=s(d,f);h!=null&&(e.focusItem(c,h),c.preventDefault());break}}}}}};L2.params={};const F2=({slots:e,slotProps:t})=>({contextValue:{icons:{slots:{collapseIcon:e.collapseIcon,expandIcon:e.expandIcon,endIcon:e.endIcon},slotProps:{collapseIcon:t.collapseIcon,expandIcon:t.expandIcon,endIcon:t.endIcon}}}});F2.params={};const Yz=[Ti,Fu,$u,Ef,L2,F2,Wn],Gz=["ownerState"];function Kz({slots:e,slotProps:t,label:n,id:r,itemId:a,itemsToRender:o}){const s=e?.item??bz,i=at({elementType:s,externalSlotProps:t?.item,additionalProps:{itemId:a,id:r,label:n},ownerState:{itemId:a,label:n}}),l=je(i,Gz),u=w.useMemo(()=>o?p.jsx($2,{itemsToRender:o,slots:e,slotProps:t}):null,[o,e,t]);return p.jsx(s,U({},l,{children:u}))}function $2(e){const{itemsToRender:t,slots:n,slotProps:r}=e;return p.jsx(w.Fragment,{children:t.map(a=>p.jsx(Kz,{slots:n,slotProps:r,label:a.label,id:a.id,itemId:a.itemId,itemsToRender:a.children},a.itemId))})}const Qz=E2(),Xz=e=>{const{classes:t}=e;return Le({root:["root"]},kz,t)},Zz=oe("ul",{name:"MuiRichTreeView",slot:"Root",overridesResolver:(e,t)=>t.root})({padding:0,margin:0,listStyle:"none",outline:0,position:"relative"}),Jz=w.forwardRef(function(t,n){const r=Qz({props:t,name:"MuiRichTreeView"}),{getRootProps:a,contextValue:o,instance:s}=Mz({plugins:Yz,rootRef:n,props:r}),{slots:i,slotProps:l}=r,u=Xz(r),c=i?.root??Zz,d=at({elementType:c,externalSlotProps:l?.root,className:u.root,getSlotProps:a,ownerState:r});return p.jsx(KU,{value:o,children:p.jsx(c,U({},d,{children:p.jsx($2,{slots:i,slotProps:l,itemsToRender:s.getItemsToRender()})}))})}),eV=nt(p.jsx("path",{d:"m9.17 6 2 2H20v10H4V6zM10 4H4c-1.1 0-1.99.9-1.99 2L2 18c0 1.1.9 2 2 2h16c1.1 0 2-.9 2-2V8c0-1.1-.9-2-2-2h-8z"})),tV=nt([p.jsx("path",{d:"M19 5v14H5V5zm0-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-2"},"0"),p.jsx("path",{d:"M14 17H7v-2h7zm3-4H7v-2h10zm0-4H7V7h10z"},"1")]),nV=nt(p.jsx("path",{d:"M19 15v4H5v-4zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1v-6c0-.55-.45-1-1-1M7 18.5c-.82 0-1.5-.67-1.5-1.5s.68-1.5 1.5-1.5 1.5.67 1.5 1.5-.67 1.5-1.5 1.5M19 5v4H5V5zm1-2H4c-.55 0-1 .45-1 1v6c0 .55.45 1 1 1h16c.55 0 1-.45 1-1V4c0-.55-.45-1-1-1M7 8.5c-.82 0-1.5-.67-1.5-1.5S6.18 5.5 7 5.5s1.5.68 1.5 1.5S7.83 8.5 7 8.5"})),rV=nt(p.jsx("path",{d:"M15 4v2h3v12h-3v2h5V4zM4 20h5v-2H6V6h3V4H4z"}));function B2({items:e,defaultExpandedItems:t,onClickTreeNode:n}){return p.jsx(Jz,{items:lV(e,n),defaultExpandedItems:t,slots:{item:iV}})}const aV=h0.animated(ti);function oV(e){const t=h0.useSpring({to:{opacity:e.in?1:0,transform:`translate3d(0,${e.in?0:20}px,0)`}});return p.jsx(aV,{style:t,...e})}function sV({item:e,...t}){const n=p.jsxs(vz,{...t,sx:{display:"flex",alignItems:"center",color:e.error?"error.main":"grey.600"},children:[e.fileType==="directory"&&p.jsx(eV,{})||e.fileType==="notebook"&&p.jsx(tV,{})||e.fileType==="model"&&p.jsx(rV,{})||e.fileType=="database"&&p.jsx(nV,{})||p.jsx(b2,{}),p.jsx(D.Typography,{variant:"body2",sx:{marginLeft:"5px"},color:e.error?"error.main":e.link?"primary.main":"grey.600",children:e.label})]});return e.error?p.jsx(D.Tooltip,{title:e.error,placement:"right",children:n}):n}const iV=w.forwardRef(function(t,n){const{id:r,itemId:a,label:o,children:s,disabled:i,...l}=t,{getRootProps:u,getContentProps:c,getLabelProps:d,getIconContainerProps:m,getGroupTransitionProps:f,status:h,publicAPI:b}=nz({id:r,itemId:a,children:s,label:o,disabled:i,rootRef:n}),g=b.getItem(a);return h.selected=!1,h.focused=!1,p.jsx(xf,{itemId:a,children:p.jsxs(Cz,{...u(l),children:[p.jsxs(Ez,{...c(),...g.link&&{onClick:x=>g.link(x)},sx:{pointerEvents:!g.selectable&&"none"},children:[p.jsx(Tz,{...m(),children:p.jsx(yz,{status:h})}),p.jsx(sV,{...d({item:g})})]}),s&&p.jsx(oV,{...f()})]})})});function lV(e,t){const n=new Map;return e.map(r=>{let a=n;const o=r.path.split("/");o.forEach((s,i)=>{i===o.length-1?a.set(s,r):(a.has(s)||a.set(s,new Map),a=a.get(s))})}),j2(n,"",t)}function j2(e,t,n){const r=[];return e.forEach((a,o)=>{const s=o.endsWith(".malloy")&&"model"||o.endsWith(".malloynb")&&"notebook"||o.endsWith(".parquet")&&"database"||"unknown";if(s!=="unknown"){const i=a;r.push({id:t+o,label:o,fileType:s,link:s==="model"||s==="notebook"?l=>n(t+o,l):void 0,selectable:s==="model"||s==="notebook",error:"error"in i?i.error:void 0})}else{const i=t+o+"/";r.push({id:i,label:o,fileType:"directory",selectable:!0,link:void 0,children:j2(a,i,n)})}}),r}const uV=["notebooks/","models/"];function H2({onClickModelFile:e,resourceUri:t}){const{projectName:n,packageName:r,versionId:a}=vt(t),{apiClients:o}=et.useServer(),{data:s,isError:i,error:l,isSuccess:u}=Jt({queryKey:["models",n,r,a],queryFn:()=>o.models.listModels(n,r,a)});return p.jsx(sa,{children:p.jsxs(ia,{children:[p.jsx(Ba,{children:"Semantic Models"}),p.jsxs(D.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!u&&!i&&p.jsx(tn,{text:"Fetching Models..."}),i&&p.jsx(nn,{error:l,context:`${n} > ${r} > Models`}),u&&s.data.length>0&&p.jsx(B2,{items:s.data.sort((c,d)=>c.path.localeCompare(d.path)),onClickTreeNode:e,defaultExpandedItems:uV}),u&&s.data.length===0&&p.jsx(D.Typography,{variant:"body2",children:"No models found"})]})]})})}const cV=["notebooks/"];function dV({onClickNotebookFile:e,resourceUri:t}){const{apiClients:n}=et.useServer(),{projectName:r,packageName:a,versionId:o}=vt(t),{data:s,isError:i,error:l,isSuccess:u}=Jt({queryKey:["notebooks",r,a,o],queryFn:()=>n.notebooks.listNotebooks(r,a,o)});return p.jsx(sa,{children:p.jsxs(ia,{children:[p.jsx(Ba,{children:"Notebooks"}),p.jsxs(D.Box,{sx:{maxHeight:"200px",overflowY:"auto"},children:[!u&&!i&&p.jsx(tn,{text:"Fetching Notebooks..."}),i&&p.jsx(nn,{error:l,context:`${r} > ${a} > Notebooks`}),u&&s.data.length>0&&p.jsx(B2,{items:s.data.sort((c,d)=>c.path.localeCompare(d.path)),defaultExpandedItems:cV,onClickTreeNode:e}),u&&s.data.length===0&&p.jsx(D.Typography,{variant:"body2",children:"No notebooks found"})]})]})})}const pV="README.malloynb";function fV({onClickPackageFile:e,resourceUri:t,retrievalFn:n}){e||(e=a=>{window.location.href=a});const r=bi({...vt(t),modelPath:pV});return p.jsx(p.Fragment,{children:p.jsxs(D.Grid,{container:!0,spacing:3,columns:12,children:[p.jsx(D.Grid,{size:{xs:12,md:4},children:p.jsx(yU,{resourceUri:t})}),p.jsx(D.Grid,{size:{xs:12,md:4},children:p.jsx(dV,{onClickNotebookFile:e,resourceUri:t})}),p.jsx(D.Grid,{size:{xs:12,md:4},children:p.jsx(H2,{onClickModelFile:e,resourceUri:t})}),p.jsx(D.Grid,{size:{xs:12,md:6},children:p.jsx(AU,{resourceUri:t})}),p.jsx(D.Grid,{size:{xs:12,md:6},children:p.jsx(IU,{resourceUri:t})}),p.jsx(D.Grid,{size:{xs:12,md:12},children:p.jsx(sa,{children:p.jsxs(ia,{children:[p.jsx(Ba,{children:"README"}),p.jsx(D.Box,{sx:{mt:1},children:p.jsx(g2,{resourceUri:r,retrievalFn:n})})]})})})]})})}function mV({resourceUri:e}){const{projectName:t}=vt(e),{apiClients:n}=et.useServer(),[r,a]=q.useState(!1),o=90,{data:s,isSuccess:i,isError:l,error:u}=Jt({queryKey:["about",t],queryFn:()=>n.projects.getProject(t,!1)}),c=s?.data?.readme||"",d=c.split(/\s+/),m=d.length>o,f=d.slice(0,o).join(" ");return p.jsxs(p.Fragment,{children:[!i&&!l&&p.jsx(tn,{text:"Fetching About..."}),i&&c&&p.jsx(sa,{children:p.jsxs(ia,{children:[p.jsx(Ba,{children:"Readme"}),p.jsxs(D.Box,{sx:{mt:1,fontSize:"0.875rem",lineHeight:1.6},children:[p.jsx(gl,{options:{overrides:{h1:{component:"p",props:{style:{fontSize:"inherit",fontWeight:"italic"}}},h2:{component:"p",props:{style:{fontSize:"inherit",fontWeight:"italic"}}},h3:{component:"p",props:{style:{fontSize:"inherit",fontWeight:"italic"}}}}},children:r||!m?c:f}),m&&p.jsxs(D.Box,{sx:{mt:1},children:[" ",p.jsx(D.Button,{variant:"text",size:"small",onClick:()=>a(!r),children:r?"Read less":"Read more"})]})]})]})}),l&&p.jsx(nn,{error:u,context:`${t} > About`})]})}function hV({resourceUri:e}){const[t,n]=q.useState(!1),{apiClients:r}=et.useServer(),a=Hr.useQueryClient(),[o,s]=q.useState(""),i=()=>{n(!0)},l=()=>{n(!1)},{projectName:u}=vt(e),c=br({async mutationFn(m){return r.packages.createPackage(u,{name:m.name,description:m.description,location:m.location})},onSuccess(){l(),s("Package created successfully"),a.invalidateQueries({queryKey:["packages",u]})},onError(m){s(m instanceof Error?m.message:"An unknown error occurred")}}),d=m=>{m.preventDefault();const f=new FormData(m.currentTarget),h=f.get("name")?.toString(),b=f.get("description")?.toString(),g=f.get("location")?.toString();c.mutate({name:h,description:b,location:g})};return p.jsxs(q.Fragment,{children:[p.jsx(wt,{onClick:i,variant:"contained",color:"primary",startIcon:p.jsx(Pn.Add,{}),sx:{color:"white"},children:"Add Package"}),p.jsxs(wr,{open:t,onClose:l,children:[p.jsx(Wr,{children:"Create New Package"}),p.jsxs(Sr,{children:[p.jsxs(Wo,{children:["Create a new malloy package to start exploring your data.",p.jsx("br",{}),p.jsx("br",{}),"The location can be a GitHub/S3/GCP URL containing a package (Zipped or unzipped), or an absolute path to a directory that the publisher server has access to.",p.jsx("br",{}),p.jsx("br",{}),"Make sure to conform the"," ",p.jsx("a",{href:"https://github.com/malloydata/publisher/blob/main/README.md#architecture-overview",target:"_blank",rel:"noopener noreferrer",children:"Malloy Package Format"}),"."]}),p.jsxs("form",{onSubmit:d,id:"package-form",children:[p.jsx(Qe,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Package Name",type:"text",fullWidth:!0,variant:"standard"}),p.jsx(Qe,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,variant:"standard"}),p.jsx(Qe,{id:"location",name:"location",label:"Location",type:"text",placeholder:"E.g. s3://my-bucket/my-package.zip",fullWidth:!0,variant:"standard"})]})]}),p.jsxs(kr,{children:[p.jsx(wt,{disabled:c.isPending,onClick:l,children:"Cancel"}),p.jsx(wt,{type:"submit",form:"package-form",loading:c.isPending,children:"Save Changes"})]})]}),p.jsx(D.Snackbar,{open:o!=="",autoHideDuration:6e3,onClose:()=>s(""),message:o})]})}function gV({resourceUri:e,onCloseDialog:t}){const[n,r]=q.useState(!1),{apiClients:a}=et.useServer(),o=Hr.useQueryClient(),[s,i]=q.useState(""),l=()=>{r(!0)},u=()=>{r(!1),t()},{projectName:c,packageName:d}=vt(e),m=br({mutationFn:()=>a.packages.deletePackage(c,d),onSuccess(){u(),o.invalidateQueries({queryKey:["packages"]}),i("Package deleted successfully")},onError(f){i(f instanceof Error?f.message:"An unknown error occurred")}});return p.jsxs(q.Fragment,{children:[p.jsxs(D.MenuItem,{onClick:l,children:[p.jsx(D.ListItemIcon,{children:p.jsx(Pn.Delete,{fontSize:"small"})}),p.jsx(D.ListItemText,{children:"Delete"})]}),p.jsxs(wr,{onClose:u,"aria-labelledby":"customized-dialog-title",open:n,children:[p.jsx(Wr,{sx:{m:0,p:2},id:"customized-dialog-title",children:"Delete Package"}),p.jsx(Mn,{"aria-label":"close",onClick:u,sx:f=>({position:"absolute",right:8,top:8,color:f.palette.grey[500]}),children:p.jsx(aa,{})}),p.jsx(Sr,{dividers:!0,children:p.jsxs(yt,{gutterBottom:!0,children:['Are you sure you want to delete "',d,'"? This action cannot be undone.']})}),p.jsxs(kr,{children:[p.jsx(wt,{variant:"outlined",onClick:u,style:{borderColor:"#14b3cb",color:"#14b3cb"},children:"Cancel"}),p.jsx(wt,{variant:"contained",autoFocus:!0,onClick:()=>m.mutate(),color:"error",loading:m.isPending,children:"Delete"})]}),p.jsx(D.Snackbar,{open:s!=="",autoHideDuration:6e3,onClose:()=>i(""),message:s})]})]})}function bV({package:e,resourceUri:t,onCloseDialog:n}){const[r,a]=q.useState(!1),{apiClients:o}=et.useServer(),s=Hr.useQueryClient(),[i,l]=q.useState(""),u=()=>{a(!0)},c=()=>{a(!1),n()},{packageName:d,projectName:m}=vt(t),f=br({async mutationFn(b){return o.packages.updatePackage(m,d,{name:d,description:b.description})},onSuccess(){c(),l("Package updated successfully"),s.invalidateQueries({queryKey:["packages",m]})},onError(b){l(b instanceof Error?b.message:"An unknown error occurred")}}),h=b=>{b.preventDefault();const x=new FormData(b.currentTarget).get("description")?.toString();f.mutate({description:x})};return p.jsxs(q.Fragment,{children:[p.jsxs(D.MenuItem,{onClick:u,children:[p.jsx(D.ListItemIcon,{children:p.jsx(Pn.Edit,{fontSize:"small"})}),p.jsx(D.ListItemText,{children:"Edit"})]}),p.jsxs(wr,{open:r,onClose:c,children:[p.jsx(Wr,{children:"Edit Package"}),p.jsxs(Sr,{children:[p.jsxs(Wo,{children:['Update the details for "',e.name,'".']}),p.jsxs("form",{onSubmit:h,id:"package-form",children:[p.jsx(Qe,{autoFocus:!0,required:!0,margin:"dense",id:"name",name:"name",label:"Package Name",disabled:!0,type:"text",fullWidth:!0,variant:"standard",defaultValue:e.name}),p.jsx(Qe,{id:"description",name:"description",label:"Description",multiline:!0,fullWidth:!0,rows:4,defaultValue:e.description,variant:"standard"})]})]}),p.jsxs(kr,{children:[p.jsx(wt,{disabled:f.isPending,onClick:c,children:"Cancel"}),p.jsx(wt,{type:"submit",form:"package-form",loading:f.isPending,children:"Save Changes"})]})]}),p.jsx(D.Snackbar,{open:i!=="",autoHideDuration:6e3,onClose:()=>l(""),message:i})]})}const yV=({package:e,resourceUri:t})=>{const{mutable:n}=et.useServer(),[r,a]=q.useState(null),o=!!r,s=l=>{a(l.currentTarget)},i=()=>{a(null)};return p.jsx(p.Fragment,{children:n&&p.jsxs(p.Fragment,{children:[p.jsx(D.IconButton,{onClick:l=>{l.stopPropagation(),s(l)},"aria-controls":o?"package-menu":void 0,"aria-haspopup":"true","aria-expanded":o?"true":void 0,children:p.jsx(Pn.MoreVert,{fontSize:"small"})}),p.jsxs(D.Menu,{id:"package-menu","aria-haspopup":"true","aria-expanded":o?"true":void 0,open:o,anchorEl:r,onClose:i,disableRestoreFocus:!0,anchorOrigin:{vertical:"top",horizontal:"left"},transformOrigin:{vertical:"top",horizontal:"right"},onClick:l=>{l.stopPropagation()},children:[p.jsx(bV,{package:e,resourceUri:t,onCloseDialog:i}),p.jsx(gV,{resourceUri:t,onCloseDialog:i})]})]})})};function U2({onSelectPackage:e,resourceUri:t}){const{apiClients:n}=et.useServer(),{projectName:r}=vt(t),{data:a,isSuccess:o,isError:s,error:i}=Jt({queryKey:["packages",r],queryFn:()=>n.packages.listPackages(r)});return p.jsxs(p.Fragment,{children:[!o&&!s&&p.jsx(tn,{text:"Fetching Packages..."}),o&&p.jsx(D.Grid,{container:!0,spacing:3,columns:12,children:a.data.sort((l,u)=>l.name.localeCompare(u.name)).map(l=>{const u=bi({projectName:r,packageName:l.name});return p.jsx(D.Grid,{size:{xs:12,sm:12,md:12,lg:4},children:p.jsx(sa,{sx:{cursor:"pointer",transition:"all 0.2s ease-in-out",paddingTop:"8px","&:hover":{boxShadow:"0 2px 6px rgba(0, 0, 0, 0.08)",transform:"translateY(-1px)"}},onClick:c=>{e(l.name,c)},children:p.jsxs(ia,{children:[p.jsxs(D.Box,{display:"flex",alignItems:"center",justifyContent:"space-between",sx:{marginBottom:"8px"},children:[p.jsx(D.Typography,{variant:"overline",sx:{fontSize:"12px",fontWeight:"600",color:"primary.main",textTransform:"uppercase",letterSpacing:"0.5px"},children:l.name}),p.jsx(yV,{package:l,resourceUri:u})]}),p.jsx(D.Divider,{sx:{mb:2}}),p.jsx(D.Box,{sx:{maxHeight:"120px",overflowY:"auto",mt:2},children:p.jsx(D.Typography,{variant:"body2",children:l.description})})]})})},l.name)})}),s&&p.jsx(nn,{error:i,context:`${r} > Packages`})]})}function xV({onSelectPackage:e,resourceUri:t}){const{mutable:n}=et.useServer(),{projectName:r}=vt(t);return q.useEffect(()=>{window.scrollTo({top:0,behavior:"auto"})},[]),p.jsx(p.Fragment,{children:p.jsxs(Pv,{children:[p.jsxs(D.Box,{display:"flex",justifyContent:"space-between",alignItems:"center",mb:2,children:[p.jsxs(D.Typography,{variant:"h6",children:[r," packages"]}),n&&p.jsx(hV,{resourceUri:t})]}),p.jsxs(D.Grid,{container:!0,spacing:3,columns:12,children:[p.jsx(D.Grid,{size:{xs:12,md:12},children:p.jsx(U2,{onSelectPackage:e,resourceUri:t})}),p.jsx(D.Grid,{size:{xs:12,md:12},children:p.jsx(mV,{resourceUri:t})})]})]})})}const CV=async e=>{if(typeof window>"u")throw new Error("MalloyRenderer can only be used in browser environment");const{MalloyRenderer:t}=await import("@malloydata/render");return new t({onClick:e,onError:r=>{console.error("Error rendering visualization:",typeof r,r)}}).createViz()};function EV({result:e,height:t,onDrill:n,onSizeChange:r}){const a=q.useRef(null),o=q.useRef(!1);return q.useLayoutEffect(()=>{if(!a.current||!e)return;let s=!0;const i=a.current;for(;i.firstChild;)i.removeChild(i.firstChild);o.current=!1;let l=null,u=null;const c=()=>{if(o.current||!s||!i.firstElementChild)return;const m=i.firstElementChild.firstElementChild;if(!m)return;const f=m.firstElementChild;let h=m.scrollHeight||m.offsetHeight||0;f&&m.classList.contains("malloy-dashboard")&&(h=f.scrollHeight||f.offsetHeight||0),h>0&&(o.current=!0,r&&r(h))};return CV(n).then(d=>{if(s){l=new MutationObserver(()=>{u&&clearTimeout(u),u=setTimeout(()=>{c(),l?.disconnect()},100)}),l.observe(i,{childList:!0,subtree:!0,attributes:!0});try{d.setResult(JSON.parse(e)),d.render(i)}catch(m){console.error("Error rendering visualization:",m),l?.disconnect()}}}).catch(d=>{console.error("Failed to create renderer:",d)}),()=>{s=!1,l?.disconnect(),u&&clearTimeout(u)}},[e,n,r]),p.jsx("div",{ref:a,style:{width:"100%",height:t?`${t}px`:"400px"}})}function z2(e){return typeof window>"u"?p.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading..."}):p.jsx(q.Suspense,{fallback:p.jsx("div",{style:{width:"100%",height:e.height?`${e.height}px`:"100%",display:"flex",alignItems:"center",justifyContent:"center",color:"#666"},children:"Loading visualization..."}),children:p.jsx(EV,{...e})})}const vV=Object.freeze(Object.defineProperty({__proto__:null,default:z2},Symbol.toStringTag,{value:"Module"}));function V2(e){return e.replace(/'/g,"\\'").replace(/\\/g,"\\\\")}function cr(e,t=!1){return e==null?"null":t?e instanceof Date?`@${e.getFullYear()}-${String(e.getMonth()+1).padStart(2,"0")}-${String(e.getDate()).padStart(2,"0")}`:`@${e}`:typeof e=="string"?`'${V2(e)}'`:typeof e=="number"?String(e):typeof e=="boolean"?e?"true":"false":String(e)}function TV(e){const{dimensionName:t,matchType:n,value:r,value2:a}=e,o=`\`${t}\``,s=r instanceof Date;switch(n){case"Equals":case"Semantic Search":return Array.isArray(r)&&r.length>0?`(${r.map(l=>`${o} = ${cr(l,s)}`).join(" or ")})`:Array.isArray(r)?"":`${o} = ${cr(r,s)}`;case"Contains":return typeof r=="string"?`${o} ~ f'%${V2(r)}%'`:Array.isArray(r)?"":`${o} = ${cr(r)}`;case"After":return Array.isArray(r)?"":`${o} > ${cr(r,s)}`;case"Before":return Array.isArray(r)?"":`${o} < ${cr(r,s)}`;case"Greater Than":return Array.isArray(r)?"":`${o} > ${cr(r)}`;case"Less Than":return Array.isArray(r)?"":`${o} < ${cr(r)}`;case"Between":return Array.isArray(r)?"":a!==void 0?`${o} >= ${cr(r,s)} and ${o} <= ${cr(a,s)}`:`${o} >= ${cr(r,s)}`;default:return""}}function kV(e){if(e.length===0)return"";const t=e.map(n=>TV(n)).filter(n=>n.length>0);return t.length===0?"":t.join(" and ")}function SV(e,t,n,r=1e3){const a=kV(t),s=n&&n.length>0?`group_by: ${n.map(i=>`\`${i}\``).join(", ")}`:"select: *";return a?`
234
- run: ${e} -> {
235
- where: ${a}
236
- ${s}
237
- limit: ${r}
238
- }
239
- `:`
240
- run: ${e} -> {
241
- ${s}
242
- limit: ${r}
243
- }
244
- `}function W2(e){const{project:t,package:n,model:r,source:a,filterSelections:o,fields:s,limit:i=1e3}=e,[l,u]=q.useState(null),c=q.useMemo(()=>SV(a,o,s,i),[a,o,s,i]),d=q.useMemo(()=>bi({projectName:t,packageName:n,modelPath:r}),[t,n,r]),m=o.length>0,f=q.useCallback(()=>{if(!m){u(null);return}const h=gf({resourceUri:d,query:c});u(h)},[m,d,c]);return{embeddedQueryResult:l,queryString:c,resourceUri:d,executeQuery:f,canExecute:m}}function wV(e,t=5e3){const n=e.dimensionSpecs[0]?.source??"",r=e.dimensionSpecs[0]?.model??"",{filterStates:a,updateFilter:o,clearAllFilters:s,getActiveFilters:i}=hf({dimensionSpecs:e.dimensionSpecs}),l=q.useMemo(()=>i(),[a,i]),{data:u,noRowsMatchedFilter:c,isLoading:d,isError:m,error:f,refetch:h}=mf({project:e.project,package:e.package,indexLimit:e.indexLimit,dimensionSpecs:e.dimensionSpecs,versionId:e.versionId,activeFilters:l}),b=d&&!u,{embeddedQueryResult:g,queryString:x,executeQuery:C,canExecute:E}=W2({project:e.project,package:e.package,model:r,source:n,filterSelections:l,limit:t,fields:e.selectFields});return{filterStates:a,updateFilter:o,clearAllFilters:s,activeFilters:l,data:u,noRowsMatchedFilter:c,isLoading:d,isInitialLoading:b,isError:m,error:f,refetch:h,embeddedQueryResult:g,queryString:x,executeQuery:C,canExecute:E}}function _V({modelPath:e,query:t,sourceName:n,queryName:r,enabled:a=!0,resourceUri:o}){const{projectName:s,packageName:i,versionId:l}=vt(o),{apiClients:u}=et.useServer(),{data:c,isSuccess:d,isError:m,error:f,isLoading:h}=Jt({queryKey:["rawQueryData",s,i,e,l,t,n,r],queryFn:()=>u.models.executeQueryModel(s,i,e,{query:t,sourceName:n,queryName:r,versionId:l}),enabled:a});return{data:d&&c?.data?.result?(()=>{try{return JSON.parse(c.data.result).data?.array_value||[]}catch(g){return console.error("Failed to parse query result:",g),[]}})():[],isSuccess:d,isError:m,error:f,isLoading:h}}Z2.defaults.baseURL="IfYouAreSeeingThis_baseURL_IsNotSet";exports.ServerProvider=et.ServerProvider;exports.useServer=et.useServer;exports.AnalyzePackageButton=lM;exports.BrowserWorkbookStorage=iM;exports.ConnectionExplorer=x2;exports.DimensionFilter=a2;exports.EmbeddedQueryResult=hU;exports.Home=aU;exports.Loading=tn;exports.Model=lU;exports.ModelExplorer=pf;exports.ModelExplorerDialog=ff;exports.Models=H2;exports.Notebook=g2;exports.Package=fV;exports.Packages=U2;exports.Project=xV;exports.QueryResult=h2;exports.RenderedResult=z2;exports.ResultContainer=Uo;exports.SourceExplorerComponent=$y;exports.SourcesExplorer=Np;exports.Workbook=oM;exports.WorkbookList=Hy;exports.WorkbookManager=co;exports.WorkbookStorageProvider=nM;exports.createEmbeddedQueryResult=gf;exports.encodeResourceUri=bi;exports.extractDimensionSpecs=l2;exports.extractSourceFromQuery=PH;exports.generateFilterClause=DH;exports.getDimensionKey=jr;exports.getJoinedSources=IH;exports.injectWhereClause=RH;exports.makeDimensionKey=p2;exports.parseAllSourceInfos=i2;exports.parseDimensionFilterAnnotation=s2;exports.parseNotebookFilterAnnotation=o2;exports.parseResourceUri=vt;exports.useDimensionFilters=hf;exports.useDimensionFiltersFromSpec=wV;exports.useDimensionFiltersQuery=W2;exports.useDimensionalFilterRangeData=mf;exports.useModelData=df;exports.useRawQueryData=_V;exports.useRouterClickHandler=jy;
1
+ "use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const e=require("./index-BOLBP6_i.cjs.js"),o=require("./ServerProvider-lOQXDlqB.cjs.js");exports.AnalyzePackageButton=e.AnalyzePackageButton;exports.BrowserWorkbookStorage=e.BrowserWorkbookStorage;exports.ConnectionExplorer=e.ConnectionExplorer;exports.DimensionFilter=e.DimensionFilter;exports.EmbeddedQueryResult=e.EmbeddedQueryResult;exports.Home=e.Home;exports.Loading=e.Loading;exports.Model=e.Model;exports.ModelExplorer=e.ModelExplorer;exports.ModelExplorerDialog=e.ModelExplorerDialog;exports.Models=e.Models;exports.Notebook=e.Notebook;exports.Package=e.Package;exports.Packages=e.Packages;exports.Project=e.Project;exports.QueryResult=e.QueryResult;exports.RenderedResult=e.RenderedResult;exports.ResultContainer=e.ResultContainer;exports.SourceExplorerComponent=e.SourceExplorerComponent;exports.SourcesExplorer=e.SourcesExplorer;exports.Workbook=e.Workbook;exports.WorkbookList=e.WorkbookList;exports.WorkbookManager=e.WorkbookManager;exports.WorkbookStorageProvider=e.WorkbookStorageProvider;exports.createEmbeddedQueryResult=e.createEmbeddedQueryResult;exports.encodeResourceUri=e.encodeResourceUri;exports.extractDimensionSpecs=e.extractDimensionSpecs;exports.extractSourceFromQuery=e.extractSourceFromQuery;exports.generateFilterClause=e.generateFilterClause;exports.getDimensionKey=e.getDimensionKey;exports.getJoinedSources=e.getJoinedSources;exports.injectWhereClause=e.injectWhereClause;exports.makeDimensionKey=e.makeDimensionKey;exports.parseAllSourceInfos=e.parseAllSourceInfos;exports.parseDimensionFilterAnnotation=e.parseDimensionFilterAnnotation;exports.parseNotebookFilterAnnotation=e.parseNotebookFilterAnnotation;exports.parseResourceUri=e.parseResourceUri;exports.useDimensionFilters=e.useDimensionFilters;exports.useDimensionFiltersFromSpec=e.useDimensionFiltersFromSpec;exports.useDimensionFiltersQuery=e.useDimensionFiltersQuery;exports.useDimensionalFilterRangeData=e.useDimensionalFilterRangeData;exports.useModelData=e.useModelData;exports.useRawQueryData=e.useRawQueryData;exports.useRouterClickHandler=e.useRouterClickHandler;exports.ServerProvider=o.ServerProvider;exports.useServer=o.useServer;