@nuxt/devtools 0.3.0 → 0.3.1
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/chunks/module-main.mjs +1 -1
- package/dist/chunks/plugin-metrics.mjs +2 -0
- package/dist/chunks/vscode.mjs +1 -1
- package/dist/cli.mjs +1 -1
- package/dist/client/200.html +2 -2
- package/dist/client/404.html +2 -2
- package/dist/client/__inspecting/index.html +2 -2
- package/dist/client/_nuxt/{Badge.0f8d5f6f.js → Badge.ec308af3.js} +1 -1
- package/dist/client/_nuxt/{DrawerRight.vue.6b933252.js → DrawerRight.vue.a85afa62.js} +1 -1
- package/dist/client/_nuxt/{DurationDisplay.vue.5c57289e.js → DurationDisplay.vue.9b5b62d4.js} +1 -1
- package/dist/client/_nuxt/{FilepathItem.vue.e8c3a52c.js → FilepathItem.vue.178a1de3.js} +1 -1
- package/dist/client/_nuxt/{LaunchPage.vue.87f21877.js → LaunchPage.vue.a0bbd67e.js} +1 -1
- package/dist/client/_nuxt/{NCheckbox.vue.4b9ea1cc.js → NCheckbox.vue.4a02f339.js} +1 -1
- package/dist/client/_nuxt/{NCodeBlock.vue.431c1fae.js → NCodeBlock.vue.593cb41f.js} +1 -1
- package/dist/client/_nuxt/{NIconButton.vue.9bdc7adc.js → NIconButton.vue.a83f99ea.js} +1 -1
- package/dist/client/_nuxt/{NIconTitle.vue.f40c1405.js → NIconTitle.vue.ce90e41b.js} +1 -1
- package/dist/client/_nuxt/{NMarkdown.vue.725d1f67.js → NMarkdown.vue.11f68fad.js} +1 -1
- package/dist/client/_nuxt/{NSectionBlock.aae79980.js → NSectionBlock.c955e75e.js} +1 -1
- package/dist/client/_nuxt/{NSelect.vue.b136ef78.js → NSelect.vue.e19311d6.js} +1 -1
- package/dist/client/_nuxt/{NSwitch.vue.73a2b8d5.js → NSwitch.vue.76c93e66.js} +1 -1
- package/dist/client/_nuxt/{NTextInput.vue.543d16d0.js → NTextInput.vue.d770ca6c.js} +1 -1
- package/dist/client/_nuxt/{NTip.vue.130b714b.js → NTip.vue.ac67cde4.js} +1 -1
- package/dist/client/_nuxt/{NpmVersionCheck.vue.b49a7a81.js → NpmVersionCheck.vue.0eab98c7.js} +1 -1
- package/dist/client/_nuxt/{NuxtLogo.18339464.js → NuxtLogo.38adb408.js} +1 -1
- package/dist/client/_nuxt/{PanelLeftRight.vue.b026a23a.js → PanelLeftRight.vue.90cdedcf.js} +1 -1
- package/dist/client/_nuxt/{StateEditor.vue.dae03388.js → StateEditor.vue.c57dfe46.js} +1 -1
- package/dist/client/_nuxt/{TabIcon.vue.d87fc756.js → TabIcon.vue.8236980c.js} +1 -1
- package/dist/client/_nuxt/{__inspecting.9a5a53c2.js → __inspecting.143a746c.js} +1 -1
- package/dist/client/_nuxt/{assets.a9e5a6b0.js → assets.d6a1ab2b.js} +1 -1
- package/dist/client/_nuxt/{components.70b3c3a4.js → components.1b7f02b2.js} +1 -1
- package/dist/client/_nuxt/{context.c8f67be1.js → context.fe69916a.js} +1 -1
- package/dist/client/_nuxt/{custom-_name_.54344ca3.js → custom-_name_.02ebd30e.js} +1 -1
- package/dist/client/_nuxt/{default.a8c4c373.js → default.e6b60844.js} +1 -1
- package/dist/client/_nuxt/editor.e10c09a2.js +1 -0
- package/dist/client/_nuxt/{entry.91db41b9.js → entry.216b69f8.js} +2 -2
- package/dist/client/_nuxt/{error-404.6d04f9a0.js → error-404.51bdc645.js} +1 -1
- package/dist/client/_nuxt/{error-500.44287dc0.js → error-500.15ac1dfe.js} +1 -1
- package/dist/client/_nuxt/{error-component.a0e84e89.js → error-component.0a7a48e4.js} +2 -2
- package/dist/client/_nuxt/{hooks.784bc58b.js → hooks.aa487478.js} +1 -1
- package/dist/client/_nuxt/{imports.2e67f433.js → imports.01c0f8be.js} +1 -1
- package/dist/client/_nuxt/{index.4213289c.js → index.517491fb.js} +1 -1
- package/dist/client/_nuxt/layouts.e447e192.js +1 -0
- package/dist/client/_nuxt/{middleware.c0b48cbf.js → middleware.e73473f1.js} +1 -1
- package/dist/client/_nuxt/{modules.b85b1f76.js → modules.304ea21e.js} +1 -1
- package/dist/client/_nuxt/{none.d95ed4cd.js → none.3e2499ec.js} +1 -1
- package/dist/client/_nuxt/{overview.c2dfff9d.js → overview.b79bf694.js} +1 -1
- package/dist/client/_nuxt/{pages.c8f066b4.js → pages.fafa9fe0.js} +1 -1
- package/dist/client/_nuxt/{payload.299d8527.js → payload.ee430f3a.js} +1 -1
- package/dist/client/_nuxt/{plugins.4b3cd1e3.js → plugins.5095ec46.js} +1 -1
- package/dist/client/_nuxt/{runtime-configs.0f55338b.js → runtime-configs.b20fbeb6.js} +1 -1
- package/dist/client/_nuxt/{server-routes.e48a8508.js → server-routes.7352d340.js} +1 -1
- package/dist/client/_nuxt/{settings.b70bc182.js → settings.b6d3cae9.js} +1 -1
- package/dist/client/_nuxt/{storage.adf41f3f.js → storage.2e73159a.js} +1 -1
- package/dist/client/_nuxt/{terminals.2f58f3e7.js → terminals.65080a19.js} +1 -1
- package/dist/client/_nuxt/{unocss-runtime.f654b492.js → unocss-runtime.5708ce83.js} +1 -1
- package/dist/client/_nuxt/{virtual-files.dbe38c70.js → virtual-files.9eb05502.js} +1 -1
- package/dist/client/index.html +2 -2
- package/dist/client/modules/assets/index.html +2 -2
- package/dist/client/modules/components/index.html +2 -2
- package/dist/client/modules/hooks/index.html +2 -2
- package/dist/client/modules/imports/index.html +2 -2
- package/dist/client/modules/layouts/index.html +2 -2
- package/dist/client/modules/middleware/index.html +2 -2
- package/dist/client/modules/modules/index.html +2 -2
- package/dist/client/modules/overview/index.html +2 -2
- package/dist/client/modules/pages/index.html +2 -2
- package/dist/client/modules/payload/index.html +2 -2
- package/dist/client/modules/plugins/index.html +2 -2
- package/dist/client/modules/runtime-configs/index.html +2 -2
- package/dist/client/modules/server-routes/index.html +2 -2
- package/dist/client/modules/storage/index.html +2 -2
- package/dist/client/modules/terminals/index.html +2 -2
- package/dist/client/modules/virtual-files/index.html +2 -2
- package/dist/client/settings/index.html +2 -2
- package/dist/module.json +1 -1
- package/dist/shared/{devtools.30090c6e.mjs → devtools.696fb428.mjs} +1 -1
- package/package.json +3 -3
- package/dist/client/_nuxt/editor.e302ec86.js +0 -1
- package/dist/client/_nuxt/layouts.3ece608d.js +0 -1
|
@@ -8,7 +8,7 @@ function _4(e,t){const r=Object.create(null),n=e.split(",");for(let i=0;i<n.leng
|
|
|
8
8
|
`)}findNextMatchSync(w,S,k){const x=this.scanner.findNextMatchSync(w,S,k);return x?{ruleId:this.rules[x.index],captureIndices:x.captureIndices}:null}}o.CompiledRule=_},583:(i,o,s)=>{Object.defineProperty(o,"__esModule",{value:!0}),o.ThemeTrieElement=o.ThemeTrieElementRule=o.ColorMap=o.fontStyleToString=o.ParsedThemeRule=o.parseTheme=o.StyleAttributes=o.ScopeStack=o.Theme=void 0;const a=s(878);class l{constructor(y,b,_){this._colorMap=y,this._defaults=b,this._root=_,this._cachedMatchRoot=new a.CachedFn($=>this._root.match($))}static createFromRawTheme(y,b){return this.createFromParsedTheme(h(y),b)}static createFromParsedTheme(y,b){return function(_,$){_.sort((j,A)=>{let T=a.strcmp(j.scope,A.scope);return T!==0?T:(T=a.strArrCmp(j.parentScopes,A.parentScopes),T!==0?T:j.index-A.index)});let w=0,S="#000000",k="#ffffff";for(;_.length>=1&&_[0].scope==="";){let j=_.shift();j.fontStyle!==-1&&(w=j.fontStyle),j.foreground!==null&&(S=j.foreground),j.background!==null&&(k=j.background)}let x=new v($),C=new f(w,x.getId(S),x.getId(k)),E=new p(new g(0,null,-1,0,0),[]);for(let j=0,A=_.length;j<A;j++){let T=_[j];E.insert(0,T.scope,T.parentScopes,T.fontStyle,x.getId(T.foreground),x.getId(T.background))}return new l(x,C,E)}(y,b)}getColorMap(){return this._colorMap.getColorMap()}getDefaults(){return this._defaults}match(y){if(y===null)return this._defaults;const b=y.scopeName,_=this._cachedMatchRoot.get(b).find($=>function(w,S){if(S===null)return!0;let k=0,x=S[k];for(;w;){if(u(w.scopeName,x)){if(k++,k===S.length)return!0;x=S[k]}w=w.parent}return!1}(y.parent,$.parentScopes));return _?new f(_.fontStyle,_.foreground,_.background):null}}o.Theme=l;class c{constructor(y,b){this.parent=y,this.scopeName=b}static from(...y){let b=null;for(let _=0;_<y.length;_++)b=new c(b,y[_]);return b}push(y){return new c(this,y)}getSegments(){let y=this;const b=[];for(;y;)b.push(y.scopeName),y=y.parent;return b.reverse(),b}toString(){return this.getSegments().join(" ")}}function u(m,y){return y===m||m.startsWith(y)&&m[y.length]==="."}o.ScopeStack=c;class f{constructor(y,b,_){this.fontStyle=y,this.foregroundId=b,this.backgroundId=_}}function h(m){if(!m)return[];if(!m.settings||!Array.isArray(m.settings))return[];let y=m.settings,b=[],_=0;for(let $=0,w=y.length;$<w;$++){let S,k=y[$];if(!k.settings)continue;if(typeof k.scope=="string"){let j=k.scope;j=j.replace(/^[,]+/,""),j=j.replace(/[,]+$/,""),S=j.split(",")}else S=Array.isArray(k.scope)?k.scope:[""];let x=-1;if(typeof k.settings.fontStyle=="string"){x=0;let j=k.settings.fontStyle.split(" ");for(let A=0,T=j.length;A<T;A++)switch(j[A]){case"italic":x|=1;break;case"bold":x|=2;break;case"underline":x|=4;break;case"strikethrough":x|=8}}let C=null;typeof k.settings.foreground=="string"&&a.isValidHexColor(k.settings.foreground)&&(C=k.settings.foreground);let E=null;typeof k.settings.background=="string"&&a.isValidHexColor(k.settings.background)&&(E=k.settings.background);for(let j=0,A=S.length;j<A;j++){let T=S[j].trim().split(" "),L=T[T.length-1],V=null;T.length>1&&(V=T.slice(0,T.length-1),V.reverse()),b[_++]=new d(L,V,$,x,C,E)}}return b}o.StyleAttributes=f,o.parseTheme=h;class d{constructor(y,b,_,$,w,S){this.scope=y,this.parentScopes=b,this.index=_,this.fontStyle=$,this.foreground=w,this.background=S}}o.ParsedThemeRule=d,o.fontStyleToString=function(m){if(m===-1)return"not set";let y="";return 1&m&&(y+="italic "),2&m&&(y+="bold "),4&m&&(y+="underline "),8&m&&(y+="strikethrough "),y===""&&(y="none"),y.trim()};class v{constructor(y){if(this._lastColorId=0,this._id2color=[],this._color2id=Object.create(null),Array.isArray(y)){this._isFrozen=!0;for(let b=0,_=y.length;b<_;b++)this._color2id[y[b]]=b,this._id2color[b]=y[b]}else this._isFrozen=!1}getId(y){if(y===null)return 0;y=y.toUpperCase();let b=this._color2id[y];if(b)return b;if(this._isFrozen)throw new Error(`Missing color in color map - ${y}`);return b=++this._lastColorId,this._color2id[y]=b,this._id2color[b]=y,b}getColorMap(){return this._id2color.slice(0)}}o.ColorMap=v;class g{constructor(y,b,_,$,w){this.scopeDepth=y,this.parentScopes=b,this.fontStyle=_,this.foreground=$,this.background=w}clone(){return new g(this.scopeDepth,this.parentScopes,this.fontStyle,this.foreground,this.background)}static cloneArr(y){let b=[];for(let _=0,$=y.length;_<$;_++)b[_]=y[_].clone();return b}acceptOverwrite(y,b,_,$){this.scopeDepth>y?console.log("how did this happen?"):this.scopeDepth=y,b!==-1&&(this.fontStyle=b),_!==0&&(this.foreground=_),$!==0&&(this.background=$)}}o.ThemeTrieElementRule=g;class p{constructor(y,b=[],_={}){this._mainRule=y,this._children=_,this._rulesWithParentScopes=b}static _sortBySpecificity(y){return y.length===1||y.sort(this._cmpBySpecificity),y}static _cmpBySpecificity(y,b){if(y.scopeDepth===b.scopeDepth){const _=y.parentScopes,$=b.parentScopes;let w=_===null?0:_.length,S=$===null?0:$.length;if(w===S)for(let k=0;k<w;k++){const x=_[k].length,C=$[k].length;if(x!==C)return C-x}return S-w}return b.scopeDepth-y.scopeDepth}match(y){if(y==="")return p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes));let b,_,$=y.indexOf(".");return $===-1?(b=y,_=""):(b=y.substring(0,$),_=y.substring($+1)),this._children.hasOwnProperty(b)?this._children[b].match(_):p._sortBySpecificity([].concat(this._mainRule).concat(this._rulesWithParentScopes))}insert(y,b,_,$,w,S){if(b==="")return void this._doInsertHere(y,_,$,w,S);let k,x,C,E=b.indexOf(".");E===-1?(k=b,x=""):(k=b.substring(0,E),x=b.substring(E+1)),this._children.hasOwnProperty(k)?C=this._children[k]:(C=new p(this._mainRule.clone(),g.cloneArr(this._rulesWithParentScopes)),this._children[k]=C),C.insert(y+1,x,_,$,w,S)}_doInsertHere(y,b,_,$,w){if(b!==null){for(let S=0,k=this._rulesWithParentScopes.length;S<k;S++){let x=this._rulesWithParentScopes[S];if(a.strArrCmp(x.parentScopes,b)===0)return void x.acceptOverwrite(y,_,$,w)}_===-1&&(_=this._mainRule.fontStyle),$===0&&($=this._mainRule.foreground),w===0&&(w=this._mainRule.background),this._rulesWithParentScopes.push(new g(y,b,_,$,w))}else this._mainRule.acceptOverwrite(y,_,$,w)}}o.ThemeTrieElement=p},878:(i,o)=>{function s(c){return Array.isArray(c)?function(u){let f=[];for(let h=0,d=u.length;h<d;h++)f[h]=s(u[h]);return f}(c):typeof c=="object"?function(u){let f={};for(let h in u)f[h]=s(u[h]);return f}(c):c}Object.defineProperty(o,"__esModule",{value:!0}),o.performanceNow=o.CachedFn=o.escapeRegExpCharacters=o.isValidHexColor=o.strArrCmp=o.strcmp=o.RegexSource=o.basename=o.mergeObjects=o.clone=void 0,o.clone=function(c){return s(c)},o.mergeObjects=function(c,...u){return u.forEach(f=>{for(let h in f)c[h]=f[h]}),c},o.basename=function c(u){const f=~u.lastIndexOf("/")||~u.lastIndexOf("\\");return f===0?u:~f==u.length-1?c(u.substring(0,u.length-1)):u.substr(1+~f)};let a=/\$(\d+)|\${(\d+):\/(downcase|upcase)}/g;function l(c,u){return c<u?-1:c>u?1:0}o.RegexSource=class{static hasCaptures(c){return c!==null&&(a.lastIndex=0,a.test(c))}static replaceCaptures(c,u,f){return c.replace(a,(h,d,v,g)=>{let p=f[parseInt(d||v,10)];if(!p)return h;{let m=u.substring(p.start,p.end);for(;m[0]===".";)m=m.substring(1);switch(g){case"downcase":return m.toLowerCase();case"upcase":return m.toUpperCase();default:return m}}})}},o.strcmp=l,o.strArrCmp=function(c,u){if(c===null&&u===null)return 0;if(!c)return-1;if(!u)return 1;let f=c.length,h=u.length;if(f===h){for(let d=0;d<f;d++){let v=l(c[d],u[d]);if(v!==0)return v}return 0}return f-h},o.isValidHexColor=function(c){return!!(/^#[0-9a-f]{6}$/i.test(c)||/^#[0-9a-f]{8}$/i.test(c)||/^#[0-9a-f]{3}$/i.test(c)||/^#[0-9a-f]{4}$/i.test(c))},o.escapeRegExpCharacters=function(c){return c.replace(/[\-\\\{\}\*\+\?\|\^\$\.\,\[\]\(\)\#\s]/g,"\\$&")},o.CachedFn=class{constructor(c){this.fn=c,this.cache=new Map}get(c){if(this.cache.has(c))return this.cache.get(c);const u=this.fn(c);return this.cache.set(c,u),u}},o.performanceNow=typeof performance>"u"?function(){return Date.now()}:function(){return performance.now()}}},n={};return function i(o){var s=n[o];if(s!==void 0)return s.exports;var a=n[o]={exports:{}};return r[o].call(a.exports,a,a.exports,i),a.exports}(787)})()})})(NSe);const AS=[{id:"abap",scopeName:"source.abap",path:"abap.tmLanguage.json",samplePath:"abap.sample"},{id:"actionscript-3",scopeName:"source.actionscript.3",path:"actionscript-3.tmLanguage.json",samplePath:"actionscript-3.sample"},{id:"ada",scopeName:"source.ada",path:"ada.tmLanguage.json",samplePath:"ada.sample"},{id:"apache",scopeName:"source.apacheconf",path:"apache.tmLanguage.json"},{id:"apex",scopeName:"source.apex",path:"apex.tmLanguage.json",samplePath:"apex.sample"},{id:"apl",scopeName:"source.apl",path:"apl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","json"]},{id:"applescript",scopeName:"source.applescript",path:"applescript.tmLanguage.json",samplePath:"applescript.sample"},{id:"asm",scopeName:"source.asm.x86_64",path:"asm.tmLanguage.json",samplePath:"asm.sample"},{id:"astro",scopeName:"source.astro",path:"astro.tmLanguage.json",samplePath:"astro.sample",embeddedLangs:["json","javascript","typescript","tsx","css","less","sass","scss","stylus"]},{id:"awk",scopeName:"source.awk",path:"awk.tmLanguage.json",samplePath:"awk.sample"},{id:"ballerina",scopeName:"source.ballerina",path:"ballerina.tmLanguage.json",samplePath:"ballerina.sample"},{id:"bat",scopeName:"source.batchfile",path:"bat.tmLanguage.json",samplePath:"bat.sample",aliases:["batch"]},{id:"berry",scopeName:"source.berry",path:"berry.tmLanguage.json",samplePath:"berry.sample",aliases:["be"]},{id:"bibtex",scopeName:"text.bibtex",path:"bibtex.tmLanguage.json"},{id:"bicep",scopeName:"source.bicep",path:"bicep.tmLanguage.json",samplePath:"bicep.sample"},{id:"blade",scopeName:"text.html.php.blade",path:"blade.tmLanguage.json",samplePath:"blade.sample",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"c",scopeName:"source.c",path:"c.tmLanguage.json",samplePath:"c.sample"},{id:"cadence",scopeName:"source.cadence",path:"cadence.tmLanguage.json",samplePath:"cadence.sample",aliases:["cdc"]},{id:"clarity",scopeName:"source.clar",path:"clarity.tmLanguage.json",samplePath:"clarity.sample"},{id:"clojure",scopeName:"source.clojure",path:"clojure.tmLanguage.json",samplePath:"clojure.sample",aliases:["clj"]},{id:"cmake",scopeName:"source.cmake",path:"cmake.tmLanguage.json",samplePath:"cmake.sample"},{id:"cobol",scopeName:"source.cobol",path:"cobol.tmLanguage.json",samplePath:"cobol.sample",embeddedLangs:["sql","html","java"]},{id:"codeql",scopeName:"source.ql",path:"codeql.tmLanguage.json",samplePath:"codeql.sample",aliases:["ql"],embeddedLangs:["markdown"]},{id:"coffee",scopeName:"source.coffee",path:"coffee.tmLanguage.json",samplePath:"coffee.sample",embeddedLangs:["javascript"]},{id:"cpp",scopeName:"source.cpp",path:"cpp.tmLanguage.json",samplePath:"cpp.sample",embeddedLangs:["glsl","sql"]},{id:"crystal",scopeName:"source.crystal",path:"crystal.tmLanguage.json",samplePath:"crystal.sample",embeddedLangs:["html","sql","css","c","javascript","shellscript"]},{id:"csharp",scopeName:"source.cs",path:"csharp.tmLanguage.json",samplePath:"csharp.sample",aliases:["c#","cs"]},{id:"css",scopeName:"source.css",path:"css.tmLanguage.json",samplePath:"css.sample"},{id:"cue",scopeName:"source.cue",path:"cue.tmLanguage.json",samplePath:"cue.sample"},{id:"d",scopeName:"source.d",path:"d.tmLanguage.json",samplePath:"d.sample"},{id:"dart",scopeName:"source.dart",path:"dart.tmLanguage.json",samplePath:"dart.sample"},{id:"diff",scopeName:"source.diff",path:"diff.tmLanguage.json",samplePath:"diff.sample"},{id:"docker",scopeName:"source.dockerfile",path:"docker.tmLanguage.json",samplePath:"docker.sample"},{id:"dream-maker",scopeName:"source.dm",path:"dream-maker.tmLanguage.json"},{id:"elixir",scopeName:"source.elixir",path:"elixir.tmLanguage.json",samplePath:"elixir.sample",embeddedLangs:["html"]},{id:"elm",scopeName:"source.elm",path:"elm.tmLanguage.json",samplePath:"elm.sample",embeddedLangs:["glsl"]},{id:"erb",scopeName:"text.html.erb",path:"erb.tmLanguage.json",samplePath:"erb.sample",embeddedLangs:["html","ruby"]},{id:"erlang",scopeName:"source.erlang",path:"erlang.tmLanguage.json",samplePath:"erlang.sample",aliases:["erl"]},{id:"fish",scopeName:"source.fish",path:"fish.tmLanguage.json",samplePath:"fish.sample"},{id:"fsharp",scopeName:"source.fsharp",path:"fsharp.tmLanguage.json",samplePath:"fsharp.sample",aliases:["f#","fs"],embeddedLangs:["markdown"]},{id:"gherkin",scopeName:"text.gherkin.feature",path:"gherkin.tmLanguage.json"},{id:"git-commit",scopeName:"text.git-commit",path:"git-commit.tmLanguage.json",embeddedLangs:["diff"]},{id:"git-rebase",scopeName:"text.git-rebase",path:"git-rebase.tmLanguage.json",embeddedLangs:["shellscript"]},{id:"glsl",scopeName:"source.glsl",path:"glsl.tmLanguage.json",samplePath:"glsl.sample",embeddedLangs:["c"]},{id:"gnuplot",scopeName:"source.gnuplot",path:"gnuplot.tmLanguage.json"},{id:"go",scopeName:"source.go",path:"go.tmLanguage.json",samplePath:"go.sample"},{id:"graphql",scopeName:"source.graphql",path:"graphql.tmLanguage.json",embeddedLangs:["javascript","typescript","jsx","tsx"]},{id:"groovy",scopeName:"source.groovy",path:"groovy.tmLanguage.json"},{id:"hack",scopeName:"source.hack",path:"hack.tmLanguage.json",embeddedLangs:["html","sql"]},{id:"haml",scopeName:"text.haml",path:"haml.tmLanguage.json",embeddedLangs:["ruby","javascript","sass","coffee","markdown","css"]},{id:"handlebars",scopeName:"text.html.handlebars",path:"handlebars.tmLanguage.json",aliases:["hbs"],embeddedLangs:["html","css","javascript","yaml"]},{id:"haskell",scopeName:"source.haskell",path:"haskell.tmLanguage.json",aliases:["hs"]},{id:"hcl",scopeName:"source.hcl",path:"hcl.tmLanguage.json",samplePath:"hcl.sample"},{id:"hlsl",scopeName:"source.hlsl",path:"hlsl.tmLanguage.json"},{id:"html",scopeName:"text.html.basic",path:"html.tmLanguage.json",samplePath:"html.sample",embeddedLangs:["javascript","css"]},{id:"imba",scopeName:"source.imba",path:"imba.tmLanguage.json",samplePath:"imba.sample"},{id:"ini",scopeName:"source.ini",path:"ini.tmLanguage.json"},{id:"java",scopeName:"source.java",path:"java.tmLanguage.json",samplePath:"java.sample"},{id:"javascript",scopeName:"source.js",path:"javascript.tmLanguage.json",samplePath:"javascript.sample",aliases:["js"]},{id:"jinja-html",scopeName:"text.html.jinja",path:"jinja-html.tmLanguage.json",embeddedLangs:["html"]},{id:"json",scopeName:"source.json",path:"json.tmLanguage.json"},{id:"json5",scopeName:"source.json5",path:"json5.tmLanguage.json",samplePath:"json5.sample"},{id:"jsonc",scopeName:"source.json.comments",path:"jsonc.tmLanguage.json"},{id:"jsonnet",scopeName:"source.jsonnet",path:"jsonnet.tmLanguage.json"},{id:"jssm",scopeName:"source.jssm",path:"jssm.tmLanguage.json",samplePath:"jssm.sample",aliases:["fsl"]},{id:"jsx",scopeName:"source.js.jsx",path:"jsx.tmLanguage.json"},{id:"julia",scopeName:"source.julia",path:"julia.tmLanguage.json",embeddedLangs:["cpp","python","javascript","r","sql"]},{id:"kotlin",scopeName:"source.kotlin",path:"kotlin.tmLanguage.json"},{id:"latex",scopeName:"text.tex.latex",path:"latex.tmLanguage.json",embeddedLangs:["tex","css","haskell","html","xml","java","lua","julia","ruby","javascript","typescript","python","yaml","rust","scala","gnuplot"]},{id:"less",scopeName:"source.css.less",path:"less.tmLanguage.json",embeddedLangs:["css"]},{id:"liquid",scopeName:"text.html.liquid",path:"liquid.tmLanguage.json",samplePath:"liquid.sample",embeddedLangs:["html","css","json","javascript"]},{id:"lisp",scopeName:"source.lisp",path:"lisp.tmLanguage.json"},{id:"logo",scopeName:"source.logo",path:"logo.tmLanguage.json"},{id:"lua",scopeName:"source.lua",path:"lua.tmLanguage.json",embeddedLangs:["c"]},{id:"make",scopeName:"source.makefile",path:"make.tmLanguage.json",aliases:["makefile"]},{id:"markdown",scopeName:"text.html.markdown",path:"markdown.tmLanguage.json",aliases:["md"],embeddedLangs:["css","html","ini","java","lua","make","perl","r","ruby","php","sql","vb","xml","xsl","yaml","bat","clojure","coffee","c","cpp","diff","docker","git-commit","git-rebase","go","groovy","pug","javascript","json","jsonc","less","objective-c","swift","scss","raku","powershell","python","julia","rust","scala","shellscript","typescript","tsx","csharp","fsharp","dart","handlebars","erlang","elixir","latex","bibtex"]},{id:"marko",scopeName:"text.marko",path:"marko.tmLanguage.json",embeddedLangs:["css","less","scss","typescript"]},{id:"matlab",scopeName:"source.matlab",path:"matlab.tmLanguage.json"},{id:"mdx",scopeName:"text.html.markdown.jsx",path:"mdx.tmLanguage.json",embeddedLangs:["jsx","markdown"]},{id:"mermaid",scopeName:"source.mermaid",path:"mermaid.tmLanguage.json"},{id:"nginx",scopeName:"source.nginx",path:"nginx.tmLanguage.json",embeddedLangs:["lua"]},{id:"nim",scopeName:"source.nim",path:"nim.tmLanguage.json",embeddedLangs:["c","html","xml","javascript","css","glsl","markdown"]},{id:"nix",scopeName:"source.nix",path:"nix.tmLanguage.json"},{id:"objective-c",scopeName:"source.objc",path:"objective-c.tmLanguage.json",aliases:["objc"]},{id:"objective-cpp",scopeName:"source.objcpp",path:"objective-cpp.tmLanguage.json"},{id:"ocaml",scopeName:"source.ocaml",path:"ocaml.tmLanguage.json"},{id:"pascal",scopeName:"source.pascal",path:"pascal.tmLanguage.json"},{id:"perl",scopeName:"source.perl",path:"perl.tmLanguage.json",embeddedLangs:["html","xml","css","javascript","sql"]},{id:"php",scopeName:"source.php",path:"php.tmLanguage.json",embeddedLangs:["html","xml","sql","javascript","json","css"]},{id:"plsql",scopeName:"source.plsql.oracle",path:"plsql.tmLanguage.json"},{id:"postcss",scopeName:"source.css.postcss",path:"postcss.tmLanguage.json"},{id:"powershell",scopeName:"source.powershell",path:"powershell.tmLanguage.json",aliases:["ps","ps1"]},{id:"prisma",scopeName:"source.prisma",path:"prisma.tmLanguage.json",samplePath:"prisma.sample"},{id:"prolog",scopeName:"source.prolog",path:"prolog.tmLanguage.json"},{id:"proto",scopeName:"source.proto",path:"proto.tmLanguage.json",samplePath:"proto.sample"},{id:"pug",scopeName:"text.pug",path:"pug.tmLanguage.json",aliases:["jade"],embeddedLangs:["javascript","css","sass","scss","stylus","coffee","html"]},{id:"puppet",scopeName:"source.puppet",path:"puppet.tmLanguage.json"},{id:"purescript",scopeName:"source.purescript",path:"purescript.tmLanguage.json"},{id:"python",scopeName:"source.python",path:"python.tmLanguage.json",samplePath:"python.sample",aliases:["py"]},{id:"r",scopeName:"source.r",path:"r.tmLanguage.json"},{id:"raku",scopeName:"source.perl.6",path:"raku.tmLanguage.json",aliases:["perl6"]},{id:"razor",scopeName:"text.aspnetcorerazor",path:"razor.tmLanguage.json",embeddedLangs:["html","csharp"]},{id:"rel",scopeName:"source.rel",path:"rel.tmLanguage.json",samplePath:"rel.sample"},{id:"riscv",scopeName:"source.riscv",path:"riscv.tmLanguage.json"},{id:"rst",scopeName:"source.rst",path:"rst.tmLanguage.json",embeddedLangs:["cpp","python","javascript","shellscript","yaml","cmake","ruby"]},{id:"ruby",scopeName:"source.ruby",path:"ruby.tmLanguage.json",samplePath:"ruby.sample",aliases:["rb"],embeddedLangs:["html","xml","sql","css","c","javascript","shellscript","lua"]},{id:"rust",scopeName:"source.rust",path:"rust.tmLanguage.json",aliases:["rs"]},{id:"sas",scopeName:"source.sas",path:"sas.tmLanguage.json",embeddedLangs:["sql"]},{id:"sass",scopeName:"source.sass",path:"sass.tmLanguage.json"},{id:"scala",scopeName:"source.scala",path:"scala.tmLanguage.json"},{id:"scheme",scopeName:"source.scheme",path:"scheme.tmLanguage.json"},{id:"scss",scopeName:"source.css.scss",path:"scss.tmLanguage.json",embeddedLangs:["css"]},{id:"shaderlab",scopeName:"source.shaderlab",path:"shaderlab.tmLanguage.json",aliases:["shader"],embeddedLangs:["hlsl"]},{id:"shellscript",scopeName:"source.shell",path:"shellscript.tmLanguage.json",aliases:["shell","bash","sh","zsh"]},{id:"smalltalk",scopeName:"source.smalltalk",path:"smalltalk.tmLanguage.json"},{id:"solidity",scopeName:"source.solidity",path:"solidity.tmLanguage.json"},{id:"sparql",scopeName:"source.sparql",path:"sparql.tmLanguage.json",samplePath:"sparql.sample",embeddedLangs:["turtle"]},{id:"sql",scopeName:"source.sql",path:"sql.tmLanguage.json"},{id:"ssh-config",scopeName:"source.ssh-config",path:"ssh-config.tmLanguage.json"},{id:"stata",scopeName:"source.stata",path:"stata.tmLanguage.json",samplePath:"stata.sample",embeddedLangs:["sql"]},{id:"stylus",scopeName:"source.stylus",path:"stylus.tmLanguage.json",aliases:["styl"]},{id:"svelte",scopeName:"source.svelte",path:"svelte.tmLanguage.json",embeddedLangs:["javascript","typescript","coffee","stylus","sass","css","scss","less","postcss","pug","markdown"]},{id:"swift",scopeName:"source.swift",path:"swift.tmLanguage.json"},{id:"system-verilog",scopeName:"source.systemverilog",path:"system-verilog.tmLanguage.json"},{id:"tasl",scopeName:"source.tasl",path:"tasl.tmLanguage.json",samplePath:"tasl.sample"},{id:"tcl",scopeName:"source.tcl",path:"tcl.tmLanguage.json"},{id:"tex",scopeName:"text.tex",path:"tex.tmLanguage.json",embeddedLangs:["r"]},{id:"toml",scopeName:"source.toml",path:"toml.tmLanguage.json"},{id:"tsx",scopeName:"source.tsx",path:"tsx.tmLanguage.json",samplePath:"tsx.sample"},{id:"turtle",scopeName:"source.turtle",path:"turtle.tmLanguage.json",samplePath:"turtle.sample"},{id:"twig",scopeName:"text.html.twig",path:"twig.tmLanguage.json",embeddedLangs:["css","javascript","php","python","ruby"]},{id:"typescript",scopeName:"source.ts",path:"typescript.tmLanguage.json",aliases:["ts"]},{id:"v",scopeName:"source.v",path:"v.tmLanguage.json",samplePath:"v.sample"},{id:"vb",scopeName:"source.asp.vb.net",path:"vb.tmLanguage.json",aliases:["cmd"]},{id:"verilog",scopeName:"source.verilog",path:"verilog.tmLanguage.json"},{id:"vhdl",scopeName:"source.vhdl",path:"vhdl.tmLanguage.json"},{id:"viml",scopeName:"source.viml",path:"viml.tmLanguage.json",aliases:["vim","vimscript"]},{id:"vue-html",scopeName:"text.html.vue-html",path:"vue-html.tmLanguage.json",embeddedLangs:["vue","javascript"]},{id:"vue",scopeName:"source.vue",path:"vue.tmLanguage.json",embeddedLangs:["html","markdown","pug","stylus","sass","css","scss","less","javascript","typescript","jsx","tsx","json","jsonc","yaml","toml","graphql"]},{id:"wasm",scopeName:"source.wat",path:"wasm.tmLanguage.json"},{id:"wenyan",scopeName:"source.wenyan",path:"wenyan.tmLanguage.json",aliases:["文言"]},{id:"xml",scopeName:"text.xml",path:"xml.tmLanguage.json",embeddedLangs:["java"]},{id:"xsl",scopeName:"text.xml.xsl",path:"xsl.tmLanguage.json",embeddedLangs:["xml"]},{id:"yaml",scopeName:"source.yaml",path:"yaml.tmLanguage.json"},{id:"zenscript",scopeName:"source.zenscript",path:"zenscript.tmLanguage.json",samplePath:"zenscript.sample"}];var v$=(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))(v$||{});class cs{static toBinaryStr(t){let r=t.toString(2);for(;r.length<32;)r="0"+r;return r}static printMetadata(t){let r=cs.getLanguageId(t),n=cs.getTokenType(t),i=cs.getFontStyle(t),o=cs.getForeground(t),s=cs.getBackground(t);console.log({languageId:r,tokenType:n,fontStyle:i,foreground:o,background:s})}static getLanguageId(t){return(t&255)>>>0}static getTokenType(t){return(t&768)>>>8}static getFontStyle(t){return(t&14336)>>>11}static getForeground(t){return(t&8372224)>>>15}static getBackground(t){return(t&4286578688)>>>24}static containsBalancedBrackets(t){return(t&1024)!==0}static set(t,r,n,i,o,s){let a=cs.getLanguageId(t),l=cs.getTokenType(t),c=cs.getFontStyle(t),u=cs.getForeground(t),f=cs.getBackground(t),h=cs.containsBalancedBrackets(t)?1:0;return r!==0&&(a=r),n!==0&&(l=n===8?0:n),i!==-1&&(c=i),o!==0&&(u=o),s!==0&&(f=s),(a<<0|l<<8|c<<11|h<<10|u<<15|f<<24)>>>0}}function BSe(e){return e.endsWith("/")||e.endsWith("\\")?e.slice(0,-1):e}function FSe(e){return e.startsWith("./")?e.slice(2):e}function sse(e){const t=e.split(/[\/\\]/g);return t.slice(0,t.length-1)}function ase(...e){return e.map(BSe).map(FSe).join("/")}function zSe(e,t){const r=new Map;for(const n of e){const i=t(n);r.has(i)?r.get(i).push(n):r.set(i,[n])}return r}function HSe(e,t=!1){const r=e.length;let n=0,i="",o=0,s=16,a=0,l=0,c=0,u=0,f=0;function h(b,_){let $=0,w=0;for(;$<b||!_;){let S=e.charCodeAt(n);if(S>=48&&S<=57)w=w*16+S-48;else if(S>=65&&S<=70)w=w*16+S-65+10;else if(S>=97&&S<=102)w=w*16+S-97+10;else break;n++,$++}return $<b&&(w=-1),w}function d(b){n=b,i="",o=0,s=16,f=0}function v(){let b=n;if(e.charCodeAt(n)===48)n++;else for(n++;n<e.length&&bv(e.charCodeAt(n));)n++;if(n<e.length&&e.charCodeAt(n)===46)if(n++,n<e.length&&bv(e.charCodeAt(n)))for(n++;n<e.length&&bv(e.charCodeAt(n));)n++;else return f=3,e.substring(b,n);let _=n;if(n<e.length&&(e.charCodeAt(n)===69||e.charCodeAt(n)===101))if(n++,(n<e.length&&e.charCodeAt(n)===43||e.charCodeAt(n)===45)&&n++,n<e.length&&bv(e.charCodeAt(n))){for(n++;n<e.length&&bv(e.charCodeAt(n));)n++;_=n}else f=3;return e.substring(b,_)}function g(){let b="",_=n;for(;;){if(n>=r){b+=e.substring(_,n),f=2;break}const $=e.charCodeAt(n);if($===34){b+=e.substring(_,n),n++;break}if($===92){if(b+=e.substring(_,n),n++,n>=r){f=2;break}switch(e.charCodeAt(n++)){case 34:b+='"';break;case 92:b+="\\";break;case 47:b+="/";break;case 98:b+="\b";break;case 102:b+="\f";break;case 110:b+=`
|
|
9
9
|
`;break;case 114:b+="\r";break;case 116:b+=" ";break;case 117:const S=h(4,!0);S>=0?b+=String.fromCharCode(S):f=4;break;default:f=5}_=n;continue}if($>=0&&$<=31)if(Km($)){b+=e.substring(_,n),f=2;break}else f=6;n++}return b}function p(){if(i="",f=0,o=n,l=a,u=c,n>=r)return o=r,s=17;let b=e.charCodeAt(n);if(eE(b)){do n++,i+=String.fromCharCode(b),b=e.charCodeAt(n);while(eE(b));return s=15}if(Km(b))return n++,i+=String.fromCharCode(b),b===13&&e.charCodeAt(n)===10&&(n++,i+=`
|
|
10
10
|
`),a++,c=n,s=14;switch(b){case 123:return n++,s=1;case 125:return n++,s=2;case 91:return n++,s=3;case 93:return n++,s=4;case 58:return n++,s=6;case 44:return n++,s=5;case 34:return n++,i=g(),s=10;case 47:const _=n-1;if(e.charCodeAt(n+1)===47){for(n+=2;n<r&&!Km(e.charCodeAt(n));)n++;return i=e.substring(_,n),s=12}if(e.charCodeAt(n+1)===42){n+=2;const $=r-1;let w=!1;for(;n<$;){const S=e.charCodeAt(n);if(S===42&&e.charCodeAt(n+1)===47){n+=2,w=!0;break}n++,Km(S)&&(S===13&&e.charCodeAt(n)===10&&n++,a++,c=n)}return w||(n++,f=1),i=e.substring(_,n),s=13}return i+=String.fromCharCode(b),n++,s=16;case 45:if(i+=String.fromCharCode(b),n++,n===r||!bv(e.charCodeAt(n)))return s=16;case 48:case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return i+=v(),s=11;default:for(;n<r&&m(b);)n++,b=e.charCodeAt(n);if(o!==n){switch(i=e.substring(o,n),i){case"true":return s=8;case"false":return s=9;case"null":return s=7}return s=16}return i+=String.fromCharCode(b),n++,s=16}}function m(b){if(eE(b)||Km(b))return!1;switch(b){case 125:case 93:case 123:case 91:case 34:case 58:case 44:case 47:return!1}return!0}function y(){let b;do b=p();while(b>=12&&b<=15);return b}return{setPosition:d,getPosition:()=>n,scan:t?y:p,getToken:()=>s,getTokenValue:()=>i,getTokenOffset:()=>o,getTokenLength:()=>n-o,getTokenStartLine:()=>l,getTokenStartCharacter:()=>o-u,getTokenError:()=>f}}function eE(e){return e===32||e===9}function Km(e){return e===10||e===13}function bv(e){return e>=48&&e<=57}var VN;(function(e){e[e.lineFeed=10]="lineFeed",e[e.carriageReturn=13]="carriageReturn",e[e.space=32]="space",e[e._0=48]="_0",e[e._1=49]="_1",e[e._2=50]="_2",e[e._3=51]="_3",e[e._4=52]="_4",e[e._5=53]="_5",e[e._6=54]="_6",e[e._7=55]="_7",e[e._8=56]="_8",e[e._9=57]="_9",e[e.a=97]="a",e[e.b=98]="b",e[e.c=99]="c",e[e.d=100]="d",e[e.e=101]="e",e[e.f=102]="f",e[e.g=103]="g",e[e.h=104]="h",e[e.i=105]="i",e[e.j=106]="j",e[e.k=107]="k",e[e.l=108]="l",e[e.m=109]="m",e[e.n=110]="n",e[e.o=111]="o",e[e.p=112]="p",e[e.q=113]="q",e[e.r=114]="r",e[e.s=115]="s",e[e.t=116]="t",e[e.u=117]="u",e[e.v=118]="v",e[e.w=119]="w",e[e.x=120]="x",e[e.y=121]="y",e[e.z=122]="z",e[e.A=65]="A",e[e.B=66]="B",e[e.C=67]="C",e[e.D=68]="D",e[e.E=69]="E",e[e.F=70]="F",e[e.G=71]="G",e[e.H=72]="H",e[e.I=73]="I",e[e.J=74]="J",e[e.K=75]="K",e[e.L=76]="L",e[e.M=77]="M",e[e.N=78]="N",e[e.O=79]="O",e[e.P=80]="P",e[e.Q=81]="Q",e[e.R=82]="R",e[e.S=83]="S",e[e.T=84]="T",e[e.U=85]="U",e[e.V=86]="V",e[e.W=87]="W",e[e.X=88]="X",e[e.Y=89]="Y",e[e.Z=90]="Z",e[e.asterisk=42]="asterisk",e[e.backslash=92]="backslash",e[e.closeBrace=125]="closeBrace",e[e.closeBracket=93]="closeBracket",e[e.colon=58]="colon",e[e.comma=44]="comma",e[e.dot=46]="dot",e[e.doubleQuote=34]="doubleQuote",e[e.minus=45]="minus",e[e.openBrace=123]="openBrace",e[e.openBracket=91]="openBracket",e[e.plus=43]="plus",e[e.slash=47]="slash",e[e.formFeed=12]="formFeed",e[e.tab=9]="tab"})(VN||(VN={}));var wk;(function(e){e.DEFAULT={allowTrailingComma:!1}})(wk||(wk={}));function WSe(e,t=[],r=wk.DEFAULT){let n=null,i=[];const o=[];function s(l){Array.isArray(i)?i.push(l):n!==null&&(i[n]=l)}return USe(e,{onObjectBegin:()=>{const l={};s(l),o.push(i),i=l,n=null},onObjectProperty:l=>{n=l},onObjectEnd:()=>{i=o.pop()},onArrayBegin:()=>{const l=[];s(l),o.push(i),i=l,n=null},onArrayEnd:()=>{i=o.pop()},onLiteralValue:s,onError:(l,c,u)=>{t.push({error:l,offset:c,length:u})}},r),i[0]}function USe(e,t,r=wk.DEFAULT){const n=HSe(e,!1),i=[];function o(j){return j?()=>j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function s(j){return j?()=>j(n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>i.slice()):()=>!0}function a(j){return j?A=>j(A,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter()):()=>!0}function l(j){return j?A=>j(A,n.getTokenOffset(),n.getTokenLength(),n.getTokenStartLine(),n.getTokenStartCharacter(),()=>i.slice()):()=>!0}const c=s(t.onObjectBegin),u=l(t.onObjectProperty),f=o(t.onObjectEnd),h=s(t.onArrayBegin),d=o(t.onArrayEnd),v=l(t.onLiteralValue),g=a(t.onSeparator),p=o(t.onComment),m=a(t.onError),y=r&&r.disallowComments,b=r&&r.allowTrailingComma;function _(){for(;;){const j=n.scan();switch(n.getTokenError()){case 4:$(14);break;case 5:$(15);break;case 3:$(13);break;case 1:y||$(11);break;case 2:$(12);break;case 6:$(16);break}switch(j){case 12:case 13:y?$(10):p();break;case 16:$(1);break;case 15:case 14:break;default:return j}}}function $(j,A=[],T=[]){if(m(j),A.length+T.length>0){let L=n.getToken();for(;L!==17;){if(A.indexOf(L)!==-1){_();break}else if(T.indexOf(L)!==-1)break;L=_()}}}function w(j){const A=n.getTokenValue();return j?v(A):(u(A),i.push(A)),_(),!0}function S(){switch(n.getToken()){case 11:const j=n.getTokenValue();let A=Number(j);isNaN(A)&&($(2),A=0),v(A);break;case 7:v(null);break;case 8:v(!0);break;case 9:v(!1);break;default:return!1}return _(),!0}function k(){return n.getToken()!==10?($(3,[],[2,5]),!1):(w(!1),n.getToken()===6?(g(":"),_(),E()||$(4,[],[2,5])):$(5,[],[2,5]),i.pop(),!0)}function x(){c(),_();let j=!1;for(;n.getToken()!==2&&n.getToken()!==17;){if(n.getToken()===5){if(j||$(4,[],[]),g(","),_(),n.getToken()===2&&b)break}else j&&$(6,[],[]);k()||$(4,[],[2,5]),j=!0}return f(),n.getToken()!==2?$(7,[2],[]):_(),!0}function C(){h(),_();let j=!0,A=!1;for(;n.getToken()!==4&&n.getToken()!==17;){if(n.getToken()===5){if(A||$(4,[],[]),g(","),_(),n.getToken()===4&&b)break}else A&&$(6,[],[]);j?(i.push(0),j=!1):i[i.length-1]++,E()||$(4,[],[4,5]),A=!0}return d(),j||i.pop(),n.getToken()!==4?$(8,[4],[]):_(),!0}function E(){switch(n.getToken()){case 3:return C();case 1:return x();case 10:return w(!0);default:return S()}}return _(),n.getToken()===17?r.allowEmptyContent?!0:($(4,[],[]),!1):E()?(n.getToken()!==17&&$(9,[],[]),!0):($(4,[],[]),!1)}var qN;(function(e){e[e.None=0]="None",e[e.UnexpectedEndOfComment=1]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=2]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=3]="UnexpectedEndOfNumber",e[e.InvalidUnicode=4]="InvalidUnicode",e[e.InvalidEscapeCharacter=5]="InvalidEscapeCharacter",e[e.InvalidCharacter=6]="InvalidCharacter"})(qN||(qN={}));var KN;(function(e){e[e.OpenBraceToken=1]="OpenBraceToken",e[e.CloseBraceToken=2]="CloseBraceToken",e[e.OpenBracketToken=3]="OpenBracketToken",e[e.CloseBracketToken=4]="CloseBracketToken",e[e.CommaToken=5]="CommaToken",e[e.ColonToken=6]="ColonToken",e[e.NullKeyword=7]="NullKeyword",e[e.TrueKeyword=8]="TrueKeyword",e[e.FalseKeyword=9]="FalseKeyword",e[e.StringLiteral=10]="StringLiteral",e[e.NumericLiteral=11]="NumericLiteral",e[e.LineCommentTrivia=12]="LineCommentTrivia",e[e.BlockCommentTrivia=13]="BlockCommentTrivia",e[e.LineBreakTrivia=14]="LineBreakTrivia",e[e.Trivia=15]="Trivia",e[e.Unknown=16]="Unknown",e[e.EOF=17]="EOF"})(KN||(KN={}));const VSe=WSe;var GN;(function(e){e[e.InvalidSymbol=1]="InvalidSymbol",e[e.InvalidNumberFormat=2]="InvalidNumberFormat",e[e.PropertyNameExpected=3]="PropertyNameExpected",e[e.ValueExpected=4]="ValueExpected",e[e.ColonExpected=5]="ColonExpected",e[e.CommaExpected=6]="CommaExpected",e[e.CloseBraceExpected=7]="CloseBraceExpected",e[e.CloseBracketExpected=8]="CloseBracketExpected",e[e.EndOfFileExpected=9]="EndOfFileExpected",e[e.InvalidCommentToken=10]="InvalidCommentToken",e[e.UnexpectedEndOfComment=11]="UnexpectedEndOfComment",e[e.UnexpectedEndOfString=12]="UnexpectedEndOfString",e[e.UnexpectedEndOfNumber=13]="UnexpectedEndOfNumber",e[e.InvalidUnicode=14]="InvalidUnicode",e[e.InvalidEscapeCharacter=15]="InvalidEscapeCharacter",e[e.InvalidCharacter=16]="InvalidCharacter"})(GN||(GN={}));"process"in globalThis&&typeof process<"u"&&typeof process.release<"u"&&process.release.name;let lse="";const qSe="dist/";function KSe(e){lse=e.endsWith("/")?e:e+"/"}let tE=null;async function GSe(e){if(!tE){let t;t=z0.loadWASM({data:await(globalThis.__shiki_fetch__||globalThis.fetch)(cse(ase(...sse(e),"onig.wasm")))}),tE=t.then(()=>({createOnigScanner(r){return z0.createOnigScanner(r)},createOnigString(r){return z0.createOnigString(r)}}))}return tE}function cse(e){return`${lse}${e}`}async function JSe(e){const t=cse(e);return await(globalThis.__shiki_fetch__||globalThis.fetch)(t).then(r=>r.text())}async function use(e){const t=[],r=VSe(await JSe(e),t,{allowTrailingComma:!0});if(t.length)throw t[0];return r}async function fse(e){let t=await use(e);const r=hse(t);if(r.include){const n=await fse(ase(...sse(e),r.include));n.settings&&(r.settings=n.settings.concat(r.settings)),n.bg&&!r.bg&&(r.bg=n.bg),n.colors&&(r.colors={...n.colors,...r.colors}),delete r.include}return r}async function YSe(e){return await use(e)}function XSe(e){e.settings||(e.settings=[]),!(e.settings[0]&&e.settings[0].settings&&!e.settings[0].scope)&&e.settings.unshift({settings:{foreground:e.fg,background:e.bg}})}function hse(e){const t=e.type||"dark",r={name:e.name,type:t,...e,...QSe(e)};return e.include&&(r.include=e.include),e.tokenColors&&(r.settings=e.tokenColors,delete r.tokenColors),XSe(r),r}const JN={light:"#333333",dark:"#bbbbbb"},YN={light:"#fffffe",dark:"#1e1e1e"};function QSe(e){let t,r,n=e.settings?e.settings:e.tokenColors;const i=n?n.find(o=>!o.name&&!o.scope):void 0;return i?.settings?.foreground&&(t=i.settings.foreground),i?.settings?.background&&(r=i.settings.background),!t&&e?.colors?.["editor.foreground"]&&(t=e.colors["editor.foreground"]),!r&&e?.colors?.["editor.background"]&&(r=e.colors["editor.background"]),t||(t=e.type==="light"?JN.light:JN.dark),r||(r=e.type==="light"?YN.light:YN.dark),{fg:t,bg:r}}class ZSe{constructor(t,r){this.languagesPath="languages/",this.languageMap={},this.scopeToLangMap={},this._onigLibPromise=t,this._onigLibName=r}get onigLib(){return this._onigLibPromise}getOnigLibName(){return this._onigLibName}getLangRegistration(t){return this.languageMap[t]}async loadGrammar(t){const r=this.scopeToLangMap[t];if(!r)return null;if(r.grammar)return r.grammar;const n=await YSe(AS.includes(r)?`${this.languagesPath}${r.path}`:r.path);return r.grammar=n,n}addLanguage(t){this.languageMap[t.id]=t,t.aliases&&t.aliases.forEach(r=>{this.languageMap[r]=t}),this.scopeToLangMap[t.scopeName]=t}}function e2e(e,t,r,n,i){let o=r.split(/\r\n|\r|\n/),s=_k.INITIAL,a=[],l=[];for(let c=0,u=o.length;c<u;c++){let f=o[c];if(f===""){a=[],l.push([]);continue}let h,d,v;i.includeExplanation&&(h=n.tokenizeLine(f,s),d=h.tokens,v=0);let g=n.tokenizeLine2(f,s),p=g.tokens.length/2;for(let m=0;m<p;m++){let y=g.tokens[2*m],b=m+1<p?g.tokens[2*m+2]:f.length;if(y===b)continue;let _=g.tokens[2*m+1],$=cs.getForeground(_),w=t[$],S=cs.getFontStyle(_),k=[];if(i.includeExplanation){let x=0;for(;y+x<b;){let C=d[v],E=f.substring(C.startIndex,C.endIndex);x+=E.length,k.push({content:E,scopes:t2e(e,C.scopes)}),v++}}a.push({content:f.substring(y,b),color:w,fontStyle:S,explanation:k})}l.push(a),a=[],s=g.ruleStack}return l}function t2e(e,t){let r=[];for(let n=0,i=t.length;n<i;n++){let o=t.slice(0,n),s=t[n];r[n]={scopeName:s,themeMatches:n2e(e,s,o)}}return r}function XN(e,t){let r=e+".";return e===t||t.substring(0,r.length)===r}function r2e(e,t,r,n){if(!XN(e,r))return!1;let i=t.length-1,o=n.length-1;for(;i>=0&&o>=0;)XN(t[i],n[o])&&i--,o--;return i===-1}function n2e(e,t,r){let n=[],i=0;for(let o=0,s=e.settings.length;o<s;o++){let a=e.settings[o],l;if(typeof a.scope=="string")l=a.scope.split(/,/).map(c=>c.trim());else if(Array.isArray(a.scope))l=a.scope;else continue;for(let c=0,u=l.length;c<u;c++){let h=l[c].split(/ /),d=h[h.length-1],v=h.slice(0,h.length-1);r2e(d,v,t,r)&&(n[i++]=a,c=u)}}return n}const i2e={pre({className:e,style:t,children:r}){return`<pre class="${e}" style="${t}">${r}</pre>`},code({children:e}){return`<code>${e}</code>`},line({className:e,children:t}){return`<span class="${e}">${t}</span>`},token({style:e,children:t}){return`<span style="${e}">${t}</span>`}};function o2e(e,t={}){const r=t.bg||"#fff",n=zSe(t.lineOptions??[],s=>s.line),i=t.elements||{};function o(s="",a={},l){const c=i[s]||i2e[s];return c?(l=l.filter(Boolean),c({...a,children:s==="code"?l.join(`
|
|
11
|
-
`):l.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map((s,a)=>{const l=a+1,c=n.get(l)??[],u=l2e(c).join(" ");return o("line",{className:u,lines:e,line:s,index:a},s.map((f,h)=>{const d=[`color: ${f.color||t.fg}`];return f.fontStyle&v$.Italic&&d.push("font-style: italic"),f.fontStyle&v$.Bold&&d.push("font-weight: bold"),f.fontStyle&v$.Underline&&d.push("text-decoration: underline"),o("token",{style:d.join("; "),tokens:s,token:f,index:h},[a2e(f.content)])}))}))])}const s2e={"&":"&","<":"<",">":">",'"':""","'":"'"};function a2e(e){return e.replace(/[&<>"']/g,t=>s2e[t])}function l2e(e){const t=new Set(["line"]);for(const r of e)for(const n of r.classes??[])t.add(n);return Array.from(t)}class c2e extends _k.Registry{constructor(t){super(t),this._resolver=t,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=AS.reduce((r,n)=>(r[n.id]=n,r),{})}getTheme(t){return typeof t=="string"?this._resolvedThemes[t]:t}async loadTheme(t){return typeof t=="string"?(this._resolvedThemes[t]||(this._resolvedThemes[t]=await fse(`${this.themesPath}${t}.json`)),this._resolvedThemes[t]):(t=hse(t),t.name&&(this._resolvedThemes[t.name]=t),t)}async loadThemes(t){return await Promise.all(t.map(r=>this.loadTheme(r)))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(t){return this._resolvedGrammars[t]}async loadLanguage(t){const n={embeddedLanguages:t.embeddedLangs?.reduce(async(o,s,a)=>{if(!this.getLoadedLanguages().includes(s)&&this._resolver.getLangRegistration(s))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(s).scopeName),o[this._resolver.getLangRegistration(s).scopeName]=a+2,o},{}),balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]},i=await this.loadGrammarWithConfiguration(t.scopeName,1,n);this._resolvedGrammars[t.id]=i,t.aliases&&t.aliases.forEach(o=>{this._resolvedGrammars[o]=i})}async loadLanguages(t){for(const n of t)this.resolveEmbeddedLanguages(n);const r=Array.from(this._langGraph.values());for(const n of r)this._resolver.addLanguage(n);for(const n of r)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(t){if(this._langGraph.has(t.id)||this._langGraph.set(t.id,t),t.embeddedLangs)for(const r of t.embeddedLangs)this._langGraph.set(r,this._langMap[r])}}function dse(e){return typeof e=="string"?AS.find(t=>t.id===e||t.aliases?.includes(e)):e}function u2e(e){let t=AS,r=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":qSe;return e.langs&&(t=e.langs.map(dse)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:t,_themes:r,_wasmPath:n}}async function f2e(e){const{_languages:t,_themes:r,_wasmPath:n}=u2e(e),i=new ZSe(GSe(n),"vscode-oniguruma"),o=new c2e(i);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const a=(await o.loadThemes(r))[0];let l;await o.loadLanguages(t);let c={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};function u(w){c=w}function f(w,S){w.bg=c[w.bg]||w.bg,w.fg=c[w.fg]||w.fg,S.forEach((k,x)=>{S[x]=c[k]||k})}function h(w){const S=w?o.getTheme(w):a;if(!S)throw Error(`No theme registration for ${w}`);(!l||l.name!==S.name)&&(o.setTheme(S),l=S);const k=o.getColorMap();return S.type==="css"&&f(S,k),{_theme:S,_colorMap:k}}function d(w){const S=o.getGrammar(w);if(!S)throw Error(`No language registration for ${w}`);return{_grammar:S}}function v(w,S="text",k,x={includeExplanation:!0}){if(h2e(S))return[...w.split(/\r\n|\r|\n/).map(T=>[{content:T}])];const{_grammar:C}=d(S),{_theme:E,_colorMap:j}=h(k);return e2e(E,j,w,C,x)}function g(w,S="text",k){let x;typeof S=="object"?x=S:x={lang:S,theme:k};const C=v(w,x.lang,x.theme,{includeExplanation:!1}),{_theme:E}=h(x.theme);return o2e(C,{fg:E.fg,bg:E.bg,lineOptions:x?.lineOptions,themeName:E.name})}async function p(w){await o.loadTheme(w)}async function m(w){const S=dse(w);i.addLanguage(S),await o.loadLanguage(S)}function y(){return o.getLoadedThemes()}function b(){return o.getLoadedLanguages()}function _(w){const{_theme:S}=h(w);return S.bg}function $(w){const{_theme:S}=h(w);return S.fg}return{codeToThemedTokens:v,codeToHtml:g,getTheme:w=>h(w)._theme,loadTheme:p,loadLanguage:m,getBackgroundColor:_,getForegroundColor:$,getLoadedThemes:y,getLoadedLanguages:b,setColorReplacements:u}}function h2e(e){return!e||["plaintext","txt","text"].includes(e)}const d2e="0.2.0";KSe(`https://cdn.jsdelivr.net/npm/shiki-es@${d2e}/dist/assets/`);const $_=er();let QN=null;function v2e(e,t){const r=ise();!QN&&!$_.value&&(QN=f2e({themes:["vitesse-dark","vitesse-light"],langs:["css","javascript","typescript","html","vue","vue-html","bash"]}).then(i=>{$_.value=i}));const n=$_.value?.getLoadedLanguages().includes(t);return n?{code:$_.value.codeToHtml(e,{lang:t,theme:r.value==="dark"?"vitesse-dark":"vitesse-light"}),supported:!0}:{code:e,supported:n}}const p2e=6e4,vse=e=>e,g2e=vse;function m2e(e,t){const{post:r,on:n,eventNames:i=[],serialize:o=vse,deserialize:s=g2e,resolver:a,timeout:l=p2e}=t,c=new Map;let u;const f=new Proxy({},{get(h,d){if(d==="$functions")return e;const v=(...p)=>{r(o({m:d,a:p,t:"q"}))};if(i.includes(d))return v.asEvent=v,v;const g=async(...p)=>(await u,new Promise((m,y)=>{const b=b2e();c.set(b,{resolve:m,reject:y}),r(o({m:d,a:p,i:b,t:"q"})),l>=0&&setTimeout(()=>{y(new Error(`[birpc] timeout on calling "${d}"`)),c.delete(b)},l)}));return g.asEvent=v,g}});return u=n(async(h,...d)=>{const v=s(h);if(v.t==="q"){const{m:g,a:p}=v;let m,y;const b=a?a(g,e[g]):e[g];if(!b)y=new Error(`[birpc] function "${g}" not found`);else try{m=await b.apply(f,p)}catch(_){y=_}v.i&&(y&&t.onError&&t.onError(y,g,p),r(o({t:"s",i:v.i,r:m,e:y}),...d))}else{const{i:g,r:p,e:m}=v,y=c.get(g);y&&(m?y.reject(m):y.resolve(p)),c.delete(g)}}),f}const y2e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function b2e(e=21){let t="",r=e;for(;r--;)t+=y2e[Math.random()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:_2e,stringify:w2e}=JSON,{keys:$2e}=Object,jy=String,pse="string",ZN={},$k="object",gse=(e,t)=>t,k2e=e=>e instanceof jy?jy(e):e,x2e=(e,t)=>typeof t===pse?new jy(t):t,mse=(e,t,r,n)=>{const i=[];for(let o=$2e(r),{length:s}=o,a=0;a<s;a++){const l=o[a],c=r[l];if(c instanceof jy){const u=e[c];typeof u===$k&&!t.has(u)?(t.add(u),r[l]=ZN,i.push({k:l,a:[e,t,u,n]})):r[l]=n.call(r,l,u)}else r[l]!==ZN&&(r[l]=n.call(r,l,c))}for(let{length:o}=i,s=0;s<o;s++){const{k:a,a:l}=i[s];r[a]=n.call(r,a,mse.apply(null,l))}return r},eB=(e,t,r)=>{const n=jy(t.push(r)-1);return e.set(r,n),n},S2e=(e,t)=>{const r=_2e(e,x2e).map(k2e),n=r[0],i=t||gse,o=typeof n===$k&&n?mse(r,new Set,n,i):n;return i.call({"":o},"",o)},C2e=(e,t,r)=>{const n=t&&typeof t===$k?(u,f)=>u===""||-1<t.indexOf(u)?f:void 0:t||gse,i=new Map,o=[],s=[];let a=+eB(i,o,n.call({"":e},"",e)),l=!a;for(;a<o.length;)l=!0,s[a]=w2e(o[a++],c,r);return"["+s.join(",")+"]";function c(u,f){if(l)return l=!l,f;const h=n.call(this,u,f);switch(typeof h){case $k:if(h===null)return h;case pse:return i.get(h)||eB(i,o,h)}return h}},E2e=2e3,H0=er(!0),kk=er();let yse=$se(),bse=()=>{};const _se={},wse=new Map,Ss=m2e(_se,{post:async e=>{(await yse).send(e)},on:e=>{bse=e},serialize:C2e,deserialize:S2e,resolver(e,t){if(t)return t;if(!e.includes(":"))return;const[r,n]=e.split(":");return wse.get(r)?.[n]},onError(e,t){console.error(`[nuxt-devtools] RPC error on executing "${t}":`,e)}});async function $se(){const e=new URL("ws://host/__nuxt_devtools__/entry");e.protocol=location.protocol==="https:"?"wss:":"ws:",e.host=location.host;const t=new WebSocket(e.toString());return t.addEventListener("message",r=>bse(String(r.data))),t.addEventListener("error",r=>{console.error(r),kk.value=r}),t.addEventListener("close",()=>{console.log("[nuxt-devtools] WebSocket closed, reconnecting..."),H0.value=!0,setTimeout(async()=>{yse=$se()},E2e)}),H0.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(r=>t.addEventListener("open",r)),console.log("[nuxt-devtools] WebSocket connected."),H0.value=!1,kk.value=null,t}function sh(){return Fg("devtools-client")}function Lzt(){const e=sh();return Wr(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function j2e(){const e=sh();return Wr(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function O2e(){return Fg("devtools-component-inspector-data")}const kse=er(!1);setTimeout(()=>{kse.value=!0},2e3);const Nzt=Wr(()=>kse.value&&!sh().value);function T2e(){const e=sh(),t=ise();return Wr(()=>({host:e.value,devtools:{rpc:Ss,colorMode:t.value,renderCodeHighlight(r,n){return v2e(r,n)},renderMarkdown(r){return DSe(r)},extendClientRpc(r,n){return wse.set(r,n),new Proxy({},{get(i,o){if(typeof o=="string")return Ss[`${r}:${o}`]}})}}}))}function P2e(e=""){return!e||!e.includes("\\")?e:e.replace(/\\/g,"/")}const A2e=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function R2e(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const tB=function(...e){e=e.map(n=>P2e(n));let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:R2e();!i||i.length===0||(t=`${i}/${t}`,r=rB(i))}return t=I2e(t,!r),r&&!rB(t)?`/${t}`:t.length>0?t:"."};function I2e(e,t){let r="",n=0,i=-1,o=0,s=null;for(let a=0;a<=e.length;++a){if(a<e.length)s=e[a];else{if(s==="/")break;s="/"}if(s==="/"){if(!(i===a-1||o===1))if(o===2){if(r.length<2||n!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=a,o=0;continue}else if(r.length>0){r="",n=0,i=a,o=0;continue}}t&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${e.slice(i+1,a)}`:r=e.slice(i+1,a),n=a-i-1;i=a,o=0}else s==="."&&o!==-1?++o:o=-1}return r}const rB=function(e){return A2e.test(e)},M2e=function(e,t){const r=tB(e).split("/"),n=tB(t).split("/"),i=[...r];for(const o of i){if(n[0]!==o)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")};function Bzt(e){return!!e.match(/[/\\]node_modules[/\\]/)||X4(e)}function X4(e){return e[0]==="#"||!!e.match(/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/)}function D2e(e){if(X4(e))return e;const t=e.replace(/\\/g,"/").match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t.startsWith("@")?t.split("/").slice(0,2).join("/"):t.split("/")[0]}function L2e(e){const t=e.match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t}function Fzt(e){if(e)return["nuxt","#app","#head","vue"].includes(e)}function zzt(e,t){if(e=e.replace(/\\/g,"/"),X4(e))return{moduleName:e,path:e};const r=D2e(e),n=L2e(e);if(r&&n)return{moduleName:r,path:n};try{let i=M2e(t,e);return!i.startsWith("./")&&!i.startsWith("../")&&(i=`./${i}`),i.startsWith("./.nuxt/")&&(i=`#build${i.slice(7)}`),{path:i}}catch{return{path:e}}}function Hzt(e){return e.split(/(:\w+[\?\*]?)/).filter(Boolean)}function Ac(e,t,r){const n=Jn();return n.payload.unique||(n.payload.unique={}),n.payload.unique[e]||(n.payload.unique[e]=wSe(e,t,r)),n.payload.unique[e].data}function Wzt(){return typeof navigator<"u"&&navigator.platform.toLowerCase().includes("mac")}var nB;const Sd=typeof window<"u",N2e=e=>typeof e<"u",Q4=e=>typeof e=="function",B2e=e=>typeof e=="string",Z4=()=>{},F2e=Sd&&((nB=window?.navigator)==null?void 0:nB.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ms(e){return typeof e=="function"?e():pn(e)}function z2e(e,t){function r(...n){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(o)})}return r}const xse=e=>e();function H2e(e=xse){const t=er(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Dg(t),pause:r,resume:n,eventFilter:i}}function iB(e,t=!1,r="Timeout"){return new Promise((n,i)=>{setTimeout(t?()=>i(r):n,e)})}function W2e(e){return e}function zf(e){return gie()?(Kbe(e),!0):!1}var U2e=Object.defineProperty,V2e=Object.defineProperties,q2e=Object.getOwnPropertyDescriptors,oB=Object.getOwnPropertySymbols,K2e=Object.prototype.hasOwnProperty,G2e=Object.prototype.propertyIsEnumerable,sB=(e,t,r)=>t in e?U2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J2e=(e,t)=>{for(var r in t||(t={}))K2e.call(t,r)&&sB(e,r,t[r]);if(oB)for(var r of oB(t))G2e.call(t,r)&&sB(e,r,t[r]);return e},Y2e=(e,t)=>V2e(e,q2e(t));function X2e(e){if(!Xn(e))return C_e(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const r in e.value)t[r]=S_e(()=>({get(){return e.value[r]},set(n){if(Array.isArray(e.value)){const i=[...e.value];i[r]=n,e.value=i}else{const i=Y2e(J2e({},e.value),{[r]:n});Object.setPrototypeOf(i,e.value),e.value=i}}}));return t}function e5(e,t=!0){Ml()?oh(e):t?e():Eu(e)}function pP(e,t=!1){function r(f,{flush:h="sync",deep:d=!1,timeout:v,throwOnTimeout:g}={}){let p=null;const y=[new Promise(b=>{p=zn(e,_=>{f(_)!==t&&(p?.(),b(_))},{flush:h,deep:d,immediate:!0})})];return v!=null&&y.push(iB(v,g).then(()=>ms(e)).finally(()=>p?.())),Promise.race(y)}function n(f,h){if(!Xn(f))return r(_=>_===f,h);const{flush:d="sync",deep:v=!1,timeout:g,throwOnTimeout:p}=h??{};let m=null;const b=[new Promise(_=>{m=zn([e,f],([$,w])=>{t!==($===w)&&(m?.(),_($))},{flush:d,deep:v,immediate:!0})})];return g!=null&&b.push(iB(g,p).then(()=>ms(e)).finally(()=>(m?.(),ms(e)))),Promise.race(b)}function i(f){return r(h=>Boolean(h),f)}function o(f){return n(null,f)}function s(f){return n(void 0,f)}function a(f){return r(Number.isNaN,f)}function l(f,h){return r(d=>{const v=Array.from(d);return v.includes(f)||v.includes(ms(f))},h)}function c(f){return u(1,f)}function u(f=1,h){let d=-1;return r(()=>(d+=1,d>=f),h)}return Array.isArray(ms(e))?{toMatch:r,toContains:l,changed:c,changedTimes:u,get not(){return pP(e,!t)}}:{toMatch:r,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:a,toBeUndefined:s,changed:c,changedTimes:u,get not(){return pP(e,!t)}}}function Uzt(e){return pP(e)}function Q2e(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:i=!1}=r;let o=null;const s=er(!1);function a(){o&&(clearInterval(o),o=null)}function l(){s.value=!1,a()}function c(){const u=ms(t);u<=0||(s.value=!0,i&&e(),a(),o=setInterval(e,u))}if(n&&Sd&&c(),Xn(t)||Q4(t)){const u=zn(t,()=>{s.value&&Sd&&c()});zf(u)}return zf(l),{isActive:s,pause:l,resume:c}}function Z2e(e,t,r={}){const{immediate:n=!0}=r,i=er(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function a(){i.value=!1,s()}function l(...c){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...c)},ms(t))}return n&&(i.value=!0,Sd&&l()),zf(a),{isPending:Dg(i),start:l,stop:a}}function Vzt(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=Xn(e),o=er(e);function s(a){if(arguments.length)return o.value=a,o.value;{const l=ms(r);return o.value=o.value===l?ms(n):l,o.value}}return i?s:[o,s]}var aB=Object.getOwnPropertySymbols,eCe=Object.prototype.hasOwnProperty,tCe=Object.prototype.propertyIsEnumerable,rCe=(e,t)=>{var r={};for(var n in e)eCe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&aB)for(var n of aB(e))t.indexOf(n)<0&&tCe.call(e,n)&&(r[n]=e[n]);return r};function nCe(e,t,r={}){const n=r,{eventFilter:i=xse}=n,o=rCe(n,["eventFilter"]);return zn(e,z2e(i,t),o)}var iCe=Object.defineProperty,oCe=Object.defineProperties,sCe=Object.getOwnPropertyDescriptors,xk=Object.getOwnPropertySymbols,Sse=Object.prototype.hasOwnProperty,Cse=Object.prototype.propertyIsEnumerable,lB=(e,t,r)=>t in e?iCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aCe=(e,t)=>{for(var r in t||(t={}))Sse.call(t,r)&&lB(e,r,t[r]);if(xk)for(var r of xk(t))Cse.call(t,r)&&lB(e,r,t[r]);return e},lCe=(e,t)=>oCe(e,sCe(t)),cCe=(e,t)=>{var r={};for(var n in e)Sse.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xk)for(var n of xk(e))t.indexOf(n)<0&&Cse.call(e,n)&&(r[n]=e[n]);return r};function uCe(e,t,r={}){const n=r,{eventFilter:i}=n,o=cCe(n,["eventFilter"]),{eventFilter:s,pause:a,resume:l,isActive:c}=H2e(i);return{stop:nCe(e,t,lCe(aCe({},o),{eventFilter:s})),pause:a,resume:l,isActive:c}}function qzt(e,t,r){let n;Xn(r)?n={evaluating:r}:n=r||{};const{lazy:i=!1,evaluating:o=void 0,shallow:s=!1,onError:a=Z4}=n,l=er(!i),c=s?Hp(t):er(t);let u=0;return uk(async f=>{if(!l.value)return;u++;const h=u;let d=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const v=await e(g=>{f(()=>{o&&(o.value=!1),d||g()})});h===u&&(c.value=v)}catch(v){a(v)}finally{o&&h===u&&(o.value=!1),d=!0}}),i?Wr(()=>(l.value=!0,c.value)):c}function pa(e){var t;const r=ms(e);return(t=r?.$el)!=null?t:r}const pu=Sd?window:void 0,fCe=Sd?window.document:void 0,hCe=Sd?window.navigator:void 0;function eu(...e){let t,r,n,i;if(B2e(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=pu):[t,r,n,i]=e,!t)return Z4;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},a=(u,f,h,d)=>(u.addEventListener(f,h,d),()=>u.removeEventListener(f,h,d)),l=zn(()=>[pa(t),ms(i)],([u,f])=>{s(),u&&o.push(...r.flatMap(h=>n.map(d=>a(u,h,d,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return zf(c),c}let cB=!1;function Kzt(e,t,r={}){const{window:n=pu,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;F2e&&!cB&&(cB=!0,Array.from(n.document.body.children).forEach(h=>h.addEventListener("click",Z4)));let a=!0;const l=h=>i.some(d=>{if(typeof d=="string")return Array.from(n.document.querySelectorAll(d)).some(v=>v===h.target||h.composedPath().includes(v));{const v=pa(d);return v&&(h.target===v||h.composedPath().includes(v))}}),u=[eu(n,"click",h=>{const d=pa(e);if(!(!d||d===h.target||h.composedPath().includes(d))){if(h.detail===0&&(a=!l(h)),!a){a=!0;return}t(h)}},{passive:!0,capture:o}),eu(n,"pointerdown",h=>{const d=pa(e);d&&(a=!h.composedPath().includes(d)&&!l(h))},{passive:!0}),s&&eu(n,"blur",h=>{var d;const v=pa(e);((d=n.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!v?.contains(n.document.activeElement)&&t(h)})].filter(Boolean);return()=>u.forEach(h=>h())}var dCe=Object.defineProperty,vCe=Object.defineProperties,pCe=Object.getOwnPropertyDescriptors,uB=Object.getOwnPropertySymbols,gCe=Object.prototype.hasOwnProperty,mCe=Object.prototype.propertyIsEnumerable,fB=(e,t,r)=>t in e?dCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yCe=(e,t)=>{for(var r in t||(t={}))gCe.call(t,r)&&fB(e,r,t[r]);if(uB)for(var r of uB(t))mCe.call(t,r)&&fB(e,r,t[r]);return e},bCe=(e,t)=>vCe(e,pCe(t));const _Ce=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function wCe(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:i=pu,eventName:o="keydown",passive:s=!1}=n,a=_Ce(t);return eu(i,o,c=>{a(c)&&r(c)},s)}function Gzt(e,t,r={}){return wCe(e,t,bCe(yCe({},r),{eventName:"keydown"}))}function Ese(e,t=!1){const r=er(),n=()=>r.value=Boolean(e());return n(),e5(n,t),r}function Jzt(e={}){const{navigator:t=hCe,read:r=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=e,s=["copy","cut"],a=Ese(()=>t&&"clipboard"in t),l=Wr(()=>a.value||o),c=er(""),u=er(!1),f=Z2e(()=>u.value=!1,i);function h(){a.value?t.clipboard.readText().then(p=>{c.value=p}):c.value=g()}if(l.value&&r)for(const p of s)eu(p,h);async function d(p=ms(n)){l.value&&p!=null&&(a.value?await t.clipboard.writeText(p):v(p),c.value=p,u.value=!0,f.start())}function v(p){const m=document.createElement("textarea");m.value=p??"",m.style.position="absolute",m.style.opacity="0",document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function g(){var p,m,y;return(y=(m=(p=document?.getSelection)==null?void 0:p.call(document))==null?void 0:m.toString())!=null?y:""}return{isSupported:l,text:c,copied:u,copy:d}}function $Ce(e){return JSON.parse(JSON.stringify(e))}const gP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mP="__vueuse_ssr_handlers__";gP[mP]=gP[mP]||{};const kCe=gP[mP];function xCe(e,t){return kCe[e]||t}function SCe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var CCe=Object.defineProperty,hB=Object.getOwnPropertySymbols,ECe=Object.prototype.hasOwnProperty,jCe=Object.prototype.propertyIsEnumerable,dB=(e,t,r)=>t in e?CCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vB=(e,t)=>{for(var r in t||(t={}))ECe.call(t,r)&&dB(e,r,t[r]);if(hB)for(var r of hB(t))jCe.call(t,r)&&dB(e,r,t[r]);return e};const OCe={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},pB="vueuse-storage";function TCe(e,t,r,n={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=pu,eventFilter:h,onError:d=k=>{console.error(k)}}=n,v=(u?Hp:er)(t);if(!r)try{r=xCe("getDefaultStorage",()=>{var k;return(k=pu)==null?void 0:k.localStorage})()}catch(k){d(k)}if(!r)return v;const g=ms(t),p=SCe(g),m=(i=n.serializer)!=null?i:OCe[p],{pause:y,resume:b}=uCe(v,()=>_(v.value),{flush:o,deep:s,eventFilter:h});return f&&a&&(eu(f,"storage",S),eu(f,pB,w)),S(),v;function _(k){try{if(k==null)r.removeItem(e);else{const x=m.write(k),C=r.getItem(e);C!==x&&(r.setItem(e,x),f&&f.dispatchEvent(new CustomEvent(pB,{detail:{key:e,oldValue:C,newValue:x,storageArea:r}})))}}catch(x){d(x)}}function $(k){const x=k?k.newValue:r.getItem(e);if(x==null)return l&&g!==null&&r.setItem(e,m.write(g)),g;if(!k&&c){const C=m.read(x);return Q4(c)?c(C,g):p==="object"&&!Array.isArray(C)?vB(vB({},g),C):C}else return typeof x!="string"?x:m.read(x)}function w(k){S(k.detail)}function S(k){if(!(k&&k.storageArea!==r)){if(k&&k.key==null){v.value=g;return}if(!(k&&k.key!==e)){y();try{v.value=$(k)}catch(x){d(x)}finally{k?Eu(b):b()}}}}}var gB=Object.getOwnPropertySymbols,PCe=Object.prototype.hasOwnProperty,ACe=Object.prototype.propertyIsEnumerable,RCe=(e,t)=>{var r={};for(var n in e)PCe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gB)for(var n of gB(e))t.indexOf(n)<0&&ACe.call(e,n)&&(r[n]=e[n]);return r};function jse(e,t,r={}){const n=r,{window:i=pu}=n,o=RCe(n,["window"]);let s;const a=Ese(()=>i&&"ResizeObserver"in i),l=()=>{s&&(s.disconnect(),s=void 0)},c=zn(()=>pa(e),f=>{l(),a.value&&i&&f&&(s=new ResizeObserver(t),s.observe(f,o))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return zf(u),{isSupported:a,stop:u}}function Yzt(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:i=!0,immediate:o=!0}=t,s=er(0),a=er(0),l=er(0),c=er(0),u=er(0),f=er(0),h=er(0),d=er(0);function v(){const g=pa(e);if(!g){r&&(s.value=0,a.value=0,l.value=0,c.value=0,u.value=0,f.value=0,h.value=0,d.value=0);return}const p=g.getBoundingClientRect();s.value=p.height,a.value=p.bottom,l.value=p.left,c.value=p.right,u.value=p.top,f.value=p.width,h.value=p.x,d.value=p.y}return jse(e,v),zn(()=>pa(e),g=>!g&&v()),i&&eu("scroll",v,{capture:!0,passive:!0}),n&&eu("resize",v,{passive:!0}),e5(()=>{o&&v()}),{height:s,bottom:a,left:l,right:c,top:u,width:f,x:h,y:d,update:v}}function ICe(e,t={}){const{immediate:r=!0,window:n=pu}=t,i=er(!1);let o=0,s=null;function a(u){if(!i.value||!n)return;const f=u-o;e({delta:f,timestamp:u}),o=u,s=n.requestAnimationFrame(a)}function l(){!i.value&&n&&(i.value=!0,s=n.requestAnimationFrame(a))}function c(){i.value=!1,s!=null&&n&&(n.cancelAnimationFrame(s),s=null)}return r&&l(),zf(c),{isActive:Dg(i),pause:c,resume:l}}function Xzt(e,t={width:0,height:0},r={}){const{window:n=pu,box:i="content-box"}=r,o=Wr(()=>{var l,c;return(c=(l=pa(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),s=er(t.width),a=er(t.height);return jse(e,([l])=>{const c=i==="border-box"?l.borderBoxSize:i==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(n&&o.value){const u=pa(e);if(u){const f=n.getComputedStyle(u);s.value=parseFloat(f.width),a.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:h})=>f+h,0),a.value=u.reduce((f,{blockSize:h})=>f+h,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},r),zn(()=>pa(e),l=>{s.value=l?t.width:0,a.value=l?t.height:0}),{width:s,height:a}}function RS(e,t,r={}){const{window:n=pu}=r;return TCe(e,t,n?.localStorage,r)}var MCe=Object.defineProperty,mB=Object.getOwnPropertySymbols,DCe=Object.prototype.hasOwnProperty,LCe=Object.prototype.propertyIsEnumerable,yB=(e,t,r)=>t in e?MCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NCe=(e,t)=>{for(var r in t||(t={}))DCe.call(t,r)&&yB(e,r,t[r]);if(mB)for(var r of mB(t))LCe.call(t,r)&&yB(e,r,t[r]);return e};function BCe(e={}){const{controls:t=!1,interval:r="requestAnimationFrame"}=e,n=er(new Date),i=()=>n.value=new Date,o=r==="requestAnimationFrame"?ICe(i,{immediate:!0}):Q2e(i,r,{immediate:!0});return t?NCe({now:n},o):n}var bB;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(bB||(bB={}));let FCe=0;function Qzt(e,t={}){const r=er(!1),{document:n=fCe,immediate:i=!0,manual:o=!1,id:s=`vueuse_styletag_${++FCe}`}=t,a=er(e);let l=()=>{};const c=()=>{if(!n)return;const f=n.getElementById(s)||n.createElement("style");f.isConnected||(f.type="text/css",f.id=s,t.media&&(f.media=t.media),n.head.appendChild(f)),!r.value&&(l=zn(a,h=>{f.textContent=h},{immediate:!0}),r.value=!0)},u=()=>{!n||!r.value||(l(),n.head.removeChild(n.getElementById(s)),r.value=!1)};return i&&!o&&e5(c),o||zf(u),{id:s,css:a,unload:u,load:c,isLoaded:Dg(r)}}var zCe=Object.defineProperty,Sk=Object.getOwnPropertySymbols,Ose=Object.prototype.hasOwnProperty,Tse=Object.prototype.propertyIsEnumerable,_B=(e,t,r)=>t in e?zCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HCe=(e,t)=>{for(var r in t||(t={}))Ose.call(t,r)&&_B(e,r,t[r]);if(Sk)for(var r of Sk(t))Tse.call(t,r)&&_B(e,r,t[r]);return e},WCe=(e,t)=>{var r={};for(var n in e)Ose.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sk)for(var n of Sk(e))t.indexOf(n)<0&&Tse.call(e,n)&&(r[n]=e[n]);return r};const UCe=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:1/0,value:31536e6,name:"year"}],VCe={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""},qCe=e=>e.toISOString().slice(0,10);function Zzt(e,t={}){const{controls:r=!1,updateInterval:n=3e4}=t,i=BCe({interval:n,controls:!0}),{now:o}=i,s=WCe(i,["now"]),a=Wr(()=>KCe(new Date(ms(e)),t,pn(o.value)));return r?HCe({timeAgo:a},s):a}function KCe(e,t={},r=Date.now()){var n;const{max:i,messages:o=VCe,fullDateFormatter:s=qCe,units:a=UCe,showSecond:l=!1,rounding:c="round"}=t,u=typeof c=="number"?p=>+p.toFixed(c):Math[c],f=+r-+e,h=Math.abs(f);function d(p,m){return u(Math.abs(p)/m.value)}function v(p,m){const y=d(p,m),b=p>0,_=g(m.name,y,b);return g(b?"past":"future",_,b)}function g(p,m,y){const b=o[p];return typeof b=="function"?b(m,y):b.replace("{0}",m.toString())}if(h<6e4&&!l)return o.justNow;if(typeof i=="number"&&h>i)return s(new Date(e));if(typeof i=="string"){const p=(n=a.find(m=>m.name===i))==null?void 0:n.max;if(p&&h>p)return s(new Date(e))}for(const[p,m]of a.entries()){if(d(f,m)<=0&&a[p-1])return v(f,a[p-1]);if(h<m.max)return v(f,m)}return o.invalid}var GCe=Object.defineProperty,wB=Object.getOwnPropertySymbols,JCe=Object.prototype.hasOwnProperty,YCe=Object.prototype.propertyIsEnumerable,$B=(e,t,r)=>t in e?GCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XCe=(e,t)=>{for(var r in t||(t={}))JCe.call(t,r)&&$B(e,r,t[r]);if(wB)for(var r of wB(t))YCe.call(t,r)&&$B(e,r,t[r]);return e};const QCe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};XCe({linear:W2e},QCe);function ZCe(e,t,r,n={}){var i,o,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f}=n,h=Ml(),d=r||h?.emit||((i=h?.$emit)==null?void 0:i.bind(h))||((s=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(h?.proxy));let v=c;t||(t="modelValue"),v=c||v||`update:${t.toString()}`;const g=m=>a?Q4(a)?a(m):$Ce(m):m,p=()=>N2e(e[t])?g(e[t]):f;if(l){const m=p(),y=er(m);return zn(()=>e[t],b=>y.value=g(b)),zn(y,b=>{(b!==e[t]||u)&&d(v,b)},{deep:u}),y}else return Wr({get(){return p()},set(m){d(v,m)}})}const eEe=RS("nuxt-devtools-first-visit",!0),tEe=RS("nuxt-devtools-settings",{componentsView:"list",componentsGraphShowNodeModules:!1,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,interactionCloseOnOutsideClick:!1,showExperimentalFeatures:!1,scale:1,hiddenTabs:[]},{mergeDefaults:!0}),rEe=X2e(tEe),nEe=RS("nuxt-devtools-frame-state",{},{listenToStorageChanges:!1}),iEe=RS("nuxt-devtools-panels-state",{},{listenToStorageChanges:!1});function Pse(){return rEe}function eHt(){return nEe}function tHt(){return iEe}function oEe(e,t,r=!1){return t.reduce((n,i)=>(i in e&&(!r||e[i]!==void 0)&&(n[i]=e[i]),n),{})}let k_;async function rHt(){return k_||(k_=await joe("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json"),k_)}function nHt(){const e=sh(),t=Ac("getComponents",()=>Ss.getComponents()),r=Wr(()=>Object.entries(e.value?.nuxt?.vueApp._context.components||{}).map(([n])=>({pascalName:n,global:!0})).filter(n=>!/^Lazy[A-Z]/.test(n.pascalName)).filter(n=>!(t.value||[]).find(i=>i.pascalName===n.pascalName)));return Wr(()=>[...r.value,...t.value||[]].sort((n,i)=>n.pascalName.localeCompare(i.pascalName)))}function sEe(){return Ac("getServerPages",()=>Ss.getServerPages())}function iHt(){return Ac("getComponentsRelationships",()=>Ss.getComponentsRelationships())}function oHt(){return Ac("getServerHooks",()=>Ss.getServerHooks(),{default:()=>[]})}function sHt(){return Ac("getServerLayouts",()=>Ss.getServerLayouts())}function aHt(){return Ac("getAutoImports",()=>Ss.getAutoImports())}function lHt(){return Ac("getStaticAssets",()=>Ss.getStaticAssets())}function cHt(){return Ac("getServerConfig",()=>Ss.getServerConfig())}function aEe(){return Ac("getCustomTabs",()=>Ss.getCustomTabs())}function lEe(){return Ac("getTerminals",()=>Ss.getTerminals())}function uHt(){const e=Ia(),t=aEe(),r=Pse(),n=Wr(()=>e.getRoutes().filter(s=>s.path.startsWith("/modules/")&&s.meta.title&&!s.meta.wip).filter(s=>!s.meta.experimental||s.meta.experimental&&r.showExperimentalFeatures.value).sort((s,a)=>(s.meta.order||100)-(a.meta.order||100)).map(s=>({name:s.name,path:s.path,...s.meta}))),i=Wr(()=>(t.value||[]).filter(s=>s.name.startsWith("builtin-"))),o=Wr(()=>(t.value||[]).filter(s=>!s.name.startsWith("builtin-")));return{custom:o,builtin:Wr(()=>[...n.value,...i.value]),all:Wr(()=>[...n.value,...i.value,...o.value])}}function fHt(){const e=j2e(),t=sEe();return Wr(()=>(e.value?.getRoutes()||[]).map(r=>oEe(r,["path","name","meta","props","children"])).map(r=>({...t.value?.find(n=>n.name&&n.name===r.name),...r})))}function cEe(){return Fg("devtools:restart-dialogs",()=>[])}const Gm={icon:"carbon-terminal",title:"Terminals",shouldShow(){return lEe().value?.length}},Jm={icon:"i-carbon-border-none",title:"Virtual Files"},kB=[{name:Pm?.name??"__inspecting",path:Pm?.path??"/__inspecting",meta:Pm||{},alias:Pm?.alias||[],redirect:Pm?.redirect||void 0,component:()=>In(()=>import("./__inspecting.9a5a53c2.js"),[],import.meta.url).then(e=>e.default||e)},{name:Am?.name??"index",path:Am?.path??"/",meta:Am||{},alias:Am?.alias||[],redirect:Am?.redirect||void 0,component:()=>In(()=>import("./index.4213289c.js"),["./index.4213289c.js","./NuxtLogo.18339464.js","./Badge.0f8d5f6f.js"],import.meta.url).then(e=>e.default||e)},{name:Rm?.name??"modules-assets",path:Rm?.path??"/modules/assets",meta:Rm||{},alias:Rm?.alias||[],redirect:Rm?.redirect||void 0,component:()=>In(()=>import("./assets.a9e5a6b0.js"),["./assets.a9e5a6b0.js","./NTextInput.vue.543d16d0.js","./index.c769634a.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js","./FilepathItem.vue.e8c3a52c.js","./editor.e302ec86.js","./context.c8f67be1.js","./NIconButton.vue.9bdc7adc.js","./NCodeBlock.vue.431c1fae.js","./DrawerRight.vue.6b933252.js","./fuse.esm.88e2763d.js"],import.meta.url).then(e=>e.default||e)},{name:Im?.name??"modules-components",path:Im?.path??"/modules/components",meta:Im||{},alias:Im?.alias||[],redirect:Im?.redirect||void 0,component:()=>In(()=>import("./components.70b3c3a4.js"),["./components.70b3c3a4.js","./NCheckbox.vue.4b9ea1cc.js","./NIconButton.vue.9bdc7adc.js","./Badge.0f8d5f6f.js","./FilepathItem.vue.e8c3a52c.js","./editor.e302ec86.js","./context.c8f67be1.js","./DrawerRight.vue.6b933252.js","./NTextInput.vue.543d16d0.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js","./fuse.esm.88e2763d.js"],import.meta.url).then(e=>e.default||e)},{name:"modules-custom-name",path:"/modules/custom-:name",meta:{},alias:[],redirect:void 0,component:()=>In(()=>import("./custom-_name_.54344ca3.js"),["./custom-_name_.54344ca3.js","./LaunchPage.vue.87f21877.js","./TabIcon.vue.d87fc756.js","./NMarkdown.vue.725d1f67.js"],import.meta.url).then(e=>e.default||e)},{name:Mm?.name??"modules-hooks",path:Mm?.path??"/modules/hooks",meta:Mm||{},alias:Mm?.alias||[],redirect:Mm?.redirect||void 0,component:()=>In(()=>import("./hooks.784bc58b.js"),["./hooks.784bc58b.js","./DurationDisplay.vue.5c57289e.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js"],import.meta.url).then(e=>e.default||e)},{name:Dm?.name??"modules-imports",path:Dm?.path??"/modules/imports",meta:Dm||{},alias:Dm?.alias||[],redirect:Dm?.redirect||void 0,component:()=>In(()=>import("./imports.2e67f433.js"),["./imports.2e67f433.js","./NTextInput.vue.543d16d0.js","./NSwitch.vue.73a2b8d5.js","./FilepathItem.vue.e8c3a52c.js","./editor.e302ec86.js","./context.c8f67be1.js","./NMarkdown.vue.725d1f67.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js","./fuse.esm.88e2763d.js"],import.meta.url).then(e=>e.default||e)},{name:Lm?.name??"modules-layouts",path:Lm?.path??"/modules/layouts",meta:Lm||{},alias:Lm?.alias||[],redirect:Lm?.redirect||void 0,component:()=>In(()=>import("./layouts.3ece608d.js"),[],import.meta.url).then(e=>e.default||e)},{name:Nm?.name??"modules-middleware",path:Nm?.path??"/modules/middleware",meta:Nm||{},alias:Nm?.alias||[],redirect:Nm?.redirect||void 0,component:()=>In(()=>import("./middleware.c0b48cbf.js"),[],import.meta.url).then(e=>e.default||e)},{name:Bm?.name??"modules-modules",path:Bm?.path??"/modules/modules",meta:Bm||{},alias:Bm?.alias||[],redirect:Bm?.redirect||void 0,component:()=>In(()=>import("./modules.b85b1f76.js"),["./modules.b85b1f76.js","./FilepathItem.vue.e8c3a52c.js","./editor.e302ec86.js","./context.c8f67be1.js","./NpmVersionCheck.vue.b49a7a81.js","./Badge.0f8d5f6f.js","./NCodeBlock.vue.431c1fae.js","./NCheckbox.vue.4b9ea1cc.js","./NTip.vue.130b714b.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js"],import.meta.url).then(e=>e.default||e)},{name:Fm?.name??"modules-overview",path:Fm?.path??"/modules/overview",meta:Fm||{},alias:Fm?.alias||[],redirect:Fm?.redirect||void 0,component:()=>In(()=>import("./overview.c2dfff9d.js"),["./overview.c2dfff9d.js","./NuxtLogo.18339464.js","./Badge.0f8d5f6f.js","./NpmVersionCheck.vue.b49a7a81.js","./NCodeBlock.vue.431c1fae.js","./NCheckbox.vue.4b9ea1cc.js","./NTip.vue.130b714b.js"],import.meta.url).then(e=>e.default||e)},{name:zm?.name??"modules-pages",path:zm?.path??"/modules/pages",meta:zm||{},alias:zm?.alias||[],redirect:zm?.redirect||void 0,component:()=>In(()=>import("./pages.c8f066b4.js"),["./pages.c8f066b4.js","./NTextInput.vue.543d16d0.js","./Badge.0f8d5f6f.js","./editor.e302ec86.js","./context.c8f67be1.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js","./LaunchPage.vue.87f21877.js","./TabIcon.vue.d87fc756.js","./NMarkdown.vue.725d1f67.js"],import.meta.url).then(e=>e.default||e)},{name:Hm?.name??"modules-payload",path:Hm?.path??"/modules/payload",meta:Hm||{},alias:Hm?.alias||[],redirect:Hm?.redirect||void 0,component:()=>In(()=>import("./payload.299d8527.js"),["./payload.299d8527.js","./StateEditor.vue.dae03388.js","./NIconButton.vue.9bdc7adc.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js"],import.meta.url).then(e=>e.default||e)},{name:Wm?.name??"modules-plugins",path:Wm?.path??"/modules/plugins",meta:Wm||{},alias:Wm?.alias||[],redirect:Wm?.redirect||void 0,component:()=>In(()=>import("./plugins.4b3cd1e3.js"),["./plugins.4b3cd1e3.js","./NTip.vue.130b714b.js","./FilepathItem.vue.e8c3a52c.js","./editor.e302ec86.js","./context.c8f67be1.js","./Badge.0f8d5f6f.js","./DurationDisplay.vue.5c57289e.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js"],import.meta.url).then(e=>e.default||e)},{name:Um?.name??"modules-runtime-configs",path:Um?.path??"/modules/runtime-configs",meta:Um||{},alias:Um?.alias||[],redirect:Um?.redirect||void 0,component:()=>In(()=>import("./runtime-configs.0f55338b.js"),["./runtime-configs.0f55338b.js","./StateEditor.vue.dae03388.js","./NIconButton.vue.9bdc7adc.js","./NSectionBlock.aae79980.js","./NIconTitle.vue.f40c1405.js"],import.meta.url).then(e=>e.default||e)},{name:Vm?.name??"modules-server-routes",path:Vm?.path??"/modules/server-routes",meta:Vm||{},alias:Vm?.alias||[],redirect:Vm?.redirect||void 0,component:()=>In(()=>import("./server-routes.e48a8508.js"),[],import.meta.url).then(e=>e.default||e)},{name:qm?.name??"modules-storage",path:qm?.path??"/modules/storage",meta:qm||{},alias:qm?.alias||[],redirect:qm?.redirect||void 0,component:()=>In(()=>import("./storage.adf41f3f.js"),["./storage.adf41f3f.js","./NIconButton.vue.9bdc7adc.js","./NSelect.vue.b136ef78.js","./NTextInput.vue.543d16d0.js","./PanelLeftRight.vue.b026a23a.js"],import.meta.url).then(e=>e.default||e)},{name:Gm?.name??"modules-terminals",path:Gm?.path??"/modules/terminals",meta:Gm||{},alias:Gm?.alias||[],redirect:Gm?.redirect||void 0,component:()=>In(()=>import("./terminals.2f58f3e7.js"),["./terminals.2f58f3e7.js","./NIconButton.vue.9bdc7adc.js","./terminals.4329aeb9.css"],import.meta.url).then(e=>e.default||e)},{name:Jm?.name??"modules-virtual-files",path:Jm?.path??"/modules/virtual-files",meta:Jm||{},alias:Jm?.alias||[],redirect:Jm?.redirect||void 0,component:()=>In(()=>import("./virtual-files.dbe38c70.js"),["./virtual-files.dbe38c70.js","./NTextInput.vue.543d16d0.js","./NCodeBlock.vue.431c1fae.js","./PanelLeftRight.vue.b026a23a.js","./index.c769634a.js","./fuse.esm.88e2763d.js","./virtual-files.a8748389.css"],import.meta.url).then(e=>e.default||e)},{name:"settings",path:"/settings",meta:{},alias:[],redirect:void 0,component:()=>In(()=>import("./settings.b70bc182.js"),["./settings.b70bc182.js","./NIconTitle.vue.f40c1405.js","./NSelect.vue.b136ef78.js","./NCheckbox.vue.4b9ea1cc.js","./TabIcon.vue.d87fc756.js","./NSwitch.vue.73a2b8d5.js"],import.meta.url).then(e=>e.default||e)}],uEe={scrollBehavior(e,t,r){const n=Jn();let i=r||void 0;if(!i&&t&&e&&e.meta.scrollToTop!==!1&&fEe(t,e)&&(i={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:xB(e.hash)}}const o=a=>!!(a.meta.pageTransition??oP),s=o(t)&&o(e)?"page:transition:finish":"page:finish";return new Promise(a=>{n.hooks.hookOnce(s,async()=>{await Eu(),e.hash&&(i={el:e.hash,top:xB(e.hash)}),a(i)})})}};function xB(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function fEe(e,t){const r=e.matched[0]===t.matched[0];return!!(!r||r&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const hEe={},Ym={...hEe,...uEe},dEe=tse(async e=>{let t,r;if(!e.meta?.validate)return;const n=Jn(),i=Ia();if(([t,r]=iP(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t)===!0)return;const s=bk({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=i.beforeResolve(l=>{if(a(),l===e){const c=i.afterEach(async()=>{c(),await Vc(n,Kv,[s]),window.history.pushState({},"",e.fullPath)});return!1}})}),vEe=tse(e=>{if(e.path==="/"&&!eEe.value)return rse("/modules/overview")}),pEe=[dEe,vEe],yP={};function gEe(e,t){const{pathname:r,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){const a=i.includes(e.slice(o))?e.slice(o).length:1;let l=i.slice(a);return l[0]!=="/"&&(l="/"+l),mN(l,"")}return mN(r,e)+n+i}const mEe=Dl(async e=>{let t,r,n=V4().app.baseURL;Ym.hashMode&&!n.includes("#")&&(n+="#");const i=Ym.history?.(n)??(Ym.hashMode?xxe(n):Woe(n)),o=Ym.routes?.(kB)??kB,s=gEe(n,window.location),a=aSe({...Ym,history:i,routes:o});e.vueApp.use(a);const l=Hp(a.currentRoute.value);a.afterEach((v,g)=>{l.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=Hp(a.resolve(s)),u=()=>{c.value=a.currentRoute.value};e.hook("page:finish",u),a.afterEach((v,g)=>{v.matched[0]?.components?.default===g.matched[0]?.components?.default&&u()});const f={};for(const v in c.value)f[v]=Wr(()=>c.value[v]);e._route=El(f),e._middleware=e._middleware||{global:[],named:{}};const h=PS();try{[t,r]=iP(()=>a.isReady()),await t,r()}catch(v){[t,r]=iP(()=>Vc(e,Kv,[v])),await t,r()}const d=Fg("_layout");return a.beforeEach(async(v,g)=>{v.meta=El(v.meta),e.isHydrating&&d.value&&!xd(v.meta.layout)&&(v.meta.layout=d.value),e._processingMiddleware=!0;const p=new Set([...pEe,...e._middleware.global]);for(const m of v.matched){const y=m.meta.middleware;if(y)if(Array.isArray(y))for(const b of y)p.add(b);else p.add(y)}for(const m of p){const y=typeof m=="string"?e._middleware.named[m]||await yP[m]?.().then(_=>_.default||_):m;if(!y)throw new Error(`Unknown route middleware: '${m}'.`);const b=await Vc(e,y,[v,g]);if(!e.payload.serverRendered&&e.isHydrating&&(b===!1||b instanceof Error)){const _=b||fP({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await Vc(e,Kv,[_]),!1}if(b||b===!1)return b}}),a.afterEach(async v=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await Vc(e,pSe),v.matched.length===0&&await Vc(e,Kv,[fP({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`})])}),e.hooks.hookOnce("app:created",async()=>{try{await a.replace({...a.resolve(s),name:void 0,force:!0})}catch(v){await Vc(e,Kv,[v])}}),{provide:{router:a}}}),Gv={default:()=>In(()=>import("./default.a8c4c373.js"),["./default.a8c4c373.js","./context.c8f67be1.js","./TabIcon.vue.d87fc756.js"],import.meta.url).then(e=>e.default||e),none:()=>In(()=>import("./none.d95ed4cd.js"),[],import.meta.url).then(e=>e.default||e)},yEe=Dl(()=>{const e=Jn(),t=Ia();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{const n=r?.meta?.layout;n&&typeof Gv[n]=="function"&&await Gv[n]()})}),e.hooks.hook("link:prefetch",r=>{if(Bg(r))return;const n=t.resolve(r);if(!n)return;const i=n?.meta?.layout;let o=Array.isArray(n?.meta?.middleware)?n?.meta?.middleware:[n?.meta?.middleware];o=o.filter(s=>typeof s=="string");for(const s of o)typeof yP[s]=="function"&&yP[s]();i&&typeof Gv[i]=="function"&&Gv[i]()})}),bEe="__NUXT_COLOR_MODE__",hHt="ColorScheme",_Ee="nuxt-color-mode",Fc=window[bEe],wEe=Dl(e=>{const t=Fg("color-mode",()=>El({preference:Fc.preference,value:Fc.value,unknown:!1,forced:!1})).value;Ia().afterEach(i=>{const o=i.meta.colorMode;o&&o!=="system"?(t.value=o,t.forced=!0):(o==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?Fc.getColorScheme():t.preference)});let r;function n(){r||!window.matchMedia||(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=Fc.getColorScheme())}))}zn(()=>t.preference,i=>{t.forced||(i==="system"?(t.value=Fc.getColorScheme(),n()):t.value=i,window.localStorage?.setItem(_Ee,i))},{immediate:!0}),zn(()=>t.value,(i,o)=>{Fc.removeColorScheme(o),Fc.addColorScheme(i)}),t.preference==="system"&&n(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=Fc.preference,t.value=Fc.value,t.unknown=!1)}),e.provide("colorMode",t)});const $Ee=Dl(()=>{}),kEe=Dl(e=>{const t=Ia(),r=V4(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:i})=>{n.add(i)}),t.onError((i,o)=>{if(n.has(i)){const a="href"in o&&o.href.startsWith("#")?r.app.baseURL+o.href:I1(r.app.baseURL,o.fullPath);jSe({path:a,persistState:!0})}})}),xEe=Dl(e=>{ESe()&&(e.hooks.hook("link:prefetch",async t=>{M1(t).protocol||await WN(t)}),Ia().beforeResolve(async(t,r)=>{if(t.path===r.path)return;const n=await WN(t.path);n&&Object.assign(e.static.data,n.data)}))});function Ou(e){return e.split("-")[0]}function wp(e){return e.split("-")[1]}function D1(e){return["top","bottom"].includes(Ou(e))?"x":"y"}function t5(e){return e==="y"?"height":"width"}function SB(e){let{reference:t,floating:r,placement:n}=e;const i=t.x+t.width/2-r.width/2,o=t.y+t.height/2-r.height/2;let s;switch(Ou(n)){case"top":s={x:i,y:t.y-r.height};break;case"bottom":s={x:i,y:t.y+t.height};break;case"right":s={x:t.x+t.width,y:o};break;case"left":s={x:t.x-r.width,y:o};break;default:s={x:t.x,y:t.y}}const a=D1(n),l=t5(a);switch(wp(n)){case"start":s[a]=s[a]-(t[l]/2-r[l]/2);break;case"end":s[a]=s[a]+(t[l]/2-r[l]/2);break}return s}const SEe=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r;let a=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:c}=SB({...a,placement:n}),u=n,f={};for(let h=0;h<o.length;h++){const{name:d,fn:v}=o[h],{x:g,y:p,data:m,reset:y}=await v({x:l,y:c,initialPlacement:n,placement:u,strategy:i,middlewareData:f,rects:a,platform:s,elements:{reference:e,floating:t}});if(l=g??l,c=p??c,f={...f,[d]:m??{}},y){typeof y=="object"&&(y.placement&&(u=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:l,y:c}=SB({...a,placement:u})),h=-1;continue}}return{x:l,y:c,placement:u,strategy:i,middlewareData:f}};function CEe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ase(e){return typeof e!="number"?CEe(e):{top:e,right:e,bottom:e,left:e}}function bP(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function IS(e,t){t===void 0&&(t={});const{x:r,y:n,platform:i,rects:o,elements:s,strategy:a}=e,{boundary:l="clippingParents",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=t,d=Ase(h),g=s[f?u==="floating"?"reference":"floating":u],p=await i.getClippingClientRect({element:await i.isElement(g)?g:g.contextElement||await i.getDocumentElement({element:s.floating}),boundary:l,rootBoundary:c}),m=bP(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u==="floating"?{...o.floating,x:r,y:n}:o.reference,offsetParent:await i.getOffsetParent({element:s.floating}),strategy:a}));return{top:p.top-m.top+d.top,bottom:m.bottom-p.bottom+d.bottom,left:p.left-m.left+d.left,right:m.right-p.right+d.right}}const EEe=Math.min,Dh=Math.max;function _P(e,t,r){return Dh(e,EEe(t,r))}const jEe=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e??{},{x:i,y:o,placement:s,rects:a,platform:l}=t;if(r==null)return{};const c=Ase(n),u={x:i,y:o},f=Ou(s),h=D1(f),d=t5(h),v=await l.getDimensions({element:r}),g=h==="y"?"top":"left",p=h==="y"?"bottom":"right",m=a.reference[d]+a.reference[h]-u[h]-a.floating[d],y=u[h]-a.reference[h],b=await l.getOffsetParent({element:r}),_=b?h==="y"?b.clientHeight||0:b.clientWidth||0:0,$=m/2-y/2,w=c[g],S=_-v[d]-c[p],k=_/2-v[d]/2+$,x=_P(w,k,S);return{data:{[h]:x,centerOffset:k-x}}}}),OEe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ck(e){return e.replace(/left|right|bottom|top/g,t=>OEe[t])}function Rse(e,t){const r=wp(e)==="start",n=D1(e),i=t5(n);let o=n==="x"?r?"right":"left":r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ck(o)),{main:o,cross:Ck(o)}}const TEe={start:"end",end:"start"};function wP(e){return e.replace(/start|end/g,t=>TEe[t])}const PEe=["top","right","bottom","left"],AEe=PEe.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function REe(e,t,r){return(e?[...r.filter(i=>wp(i)===e),...r.filter(i=>wp(i)!==e)]:r.filter(i=>Ou(i)===i)).filter(i=>e?wp(i)===e||(t?wP(i)!==i:!1):!0)}const IEe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i,o,s,a;const{x:l,y:c,rects:u,middlewareData:f,placement:h}=t,{alignment:d=null,allowedPlacements:v=AEe,autoAlignment:g=!0,...p}=e;if((r=f.autoPlacement)!=null&&r.skip)return{};const m=REe(d,g,v),y=await IS(t,p),b=(n=(i=f.autoPlacement)==null?void 0:i.index)!=null?n:0,_=m[b],{main:$,cross:w}=Rse(_,u);if(h!==_)return{x:l,y:c,reset:{placement:m[0]}};const S=[y[Ou(_)],y[$],y[w]],k=[...(o=(s=f.autoPlacement)==null?void 0:s.overflows)!=null?o:[],{placement:_,overflows:S}],x=m[b+1];if(x)return{data:{index:b+1,overflows:k},reset:{placement:x}};const C=k.slice().sort((j,A)=>j.overflows[0]-A.overflows[0]),E=(a=C.find(j=>{let{overflows:A}=j;return A.every(T=>T<=0)}))==null?void 0:a.placement;return{data:{skip:!0},reset:{placement:E??C[0].placement}}}}};function MEe(e){const t=Ck(e);return[wP(e),t,wP(t)]}const DEe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:a}=t;if((r=o.flip)!=null&&r.skip)return{};const{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",flipAlignment:h=!0,...d}=e,v=Ou(i),p=u||(v===a||!h?[Ck(a)]:MEe(a)),m=[a,...p],y=await IS(t,d),b=[];let _=((n=o.flip)==null?void 0:n.overflows)||[];if(l&&b.push(y[v]),c){const{main:k,cross:x}=Rse(i,s);b.push(y[k],y[x])}if(_=[..._,{placement:i,overflows:b}],!b.every(k=>k<=0)){var $,w;const k=(($=(w=o.flip)==null?void 0:w.index)!=null?$:0)+1,x=m[k];if(x)return{data:{index:k,overflows:_},reset:{placement:x}};let C="bottom";switch(f){case"bestFit":{var S;const E=(S=_.slice().sort((j,A)=>j.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0)-A.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0))[0])==null?void 0:S.placement;E&&(C=E);break}case"initialPlacement":C=a;break}return{data:{skip:!0},reset:{placement:C}}}return{}}}};function LEe(e){let{placement:t,rects:r,value:n}=e;const i=Ou(t),o=["left","top"].includes(i)?-1:1,s=typeof n=="function"?n({...r,placement:t}):n,{mainAxis:a,crossAxis:l}=typeof s=="number"?{mainAxis:s,crossAxis:0}:{mainAxis:0,crossAxis:0,...s};return D1(i)==="x"?{x:l,y:a*o}:{x:a*o,y:l}}const NEe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:r,y:n,placement:i,rects:o}=t,s=LEe({placement:i,rects:o,value:e});return{x:r+s.x,y:n+s.y,data:s}}}};function BEe(e){return e==="x"?"y":"x"}const FEe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:m,y}=p;return{x:m,y}}},...l}=e,c={x:r,y:n},u=await IS(t,l),f=D1(Ou(i)),h=BEe(f);let d=c[f],v=c[h];if(o){const p=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=d+u[p],b=d-u[m];d=_P(y,d,b)}if(s){const p=h==="y"?"top":"left",m=h==="y"?"bottom":"right",y=v+u[p],b=v-u[m];v=_P(y,v,b)}const g=a.fn({...t,[f]:d,[h]:v});return{...g,data:{x:g.x-r,y:g.y-n}}}}},zEe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r;const{placement:n,rects:i,middlewareData:o}=t,{apply:s,...a}=e;if((r=o.size)!=null&&r.skip)return{};const l=await IS(t,a),c=Ou(n),u=wp(n)==="end";let f,h;c==="top"||c==="bottom"?(f=c,h=u?"left":"right"):(h=c,f=u?"top":"bottom");const d=Dh(l.left,0),v=Dh(l.right,0),g=Dh(l.top,0),p=Dh(l.bottom,0),m={height:i.floating.height-(["left","right"].includes(n)?2*(g!==0||p!==0?g+p:Dh(l.top,l.bottom)):l[f]),width:i.floating.width-(["top","bottom"].includes(n)?2*(d!==0||v!==0?d+v:Dh(l.left,l.right)):l[h])};return s?.({...m,...i}),{data:{skip:!0},reset:{rects:!0}}}}};function r5(e){return e?.toString()==="[object Window]"}function ah(e){if(e==null)return window;if(!r5(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function MS(e){return ah(e).getComputedStyle(e)}function gu(e){return r5(e)?"":e?(e.nodeName||"").toLowerCase():""}function mu(e){return e instanceof ah(e).HTMLElement}function Ek(e){return e instanceof ah(e).Element}function HEe(e){return e instanceof ah(e).Node}function Ise(e){const t=ah(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function DS(e){const{overflow:t,overflowX:r,overflowY:n}=MS(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function WEe(e){return["table","td","th"].includes(gu(e))}function Mse(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),r=MS(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}const CB=Math.min,W0=Math.max,jk=Math.round;function Zp(e,t){t===void 0&&(t=!1);const r=e.getBoundingClientRect();let n=1,i=1;return t&&mu(e)&&(n=e.offsetWidth>0&&jk(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&jk(r.height)/e.offsetHeight||1),{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function lh(e){return((HEe(e)?e.ownerDocument:e.document)||window.document).documentElement}function LS(e){return r5(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Dse(e){return Zp(lh(e)).left+LS(e).scrollLeft}function UEe(e){const t=Zp(e);return jk(t.width)!==e.offsetWidth||jk(t.height)!==e.offsetHeight}function VEe(e,t,r){const n=mu(t),i=lh(t),o=Zp(e,n&&UEe(t));let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&r!=="fixed")if((gu(t)!=="body"||DS(i))&&(s=LS(t)),mu(t)){const l=Zp(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else i&&(a.x=Dse(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function NS(e){return gu(e)==="html"?e:e.assignedSlot||e.parentNode||(Ise(e)?e.host:null)||lh(e)}function EB(e){return!mu(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function qEe(e){let t=NS(e);for(;mu(t)&&!["html","body"].includes(gu(t));){if(Mse(t))return t;t=t.parentNode}return null}function $P(e){const t=ah(e);let r=EB(e);for(;r&&WEe(r)&&getComputedStyle(r).position==="static";)r=EB(r);return r&&(gu(r)==="html"||gu(r)==="body"&&getComputedStyle(r).position==="static"&&!Mse(r))?t:r||qEe(e)||t}function jB(e){return{width:e.offsetWidth,height:e.offsetHeight}}function KEe(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=mu(r),o=lh(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&n!=="fixed")&&((gu(r)!=="body"||DS(o))&&(s=LS(r)),mu(r))){const l=Zp(r,!0);a.x=l.x+r.clientLeft,a.y=l.y+r.clientTop}return{...t,x:t.x-s.scrollLeft+a.x,y:t.y-s.scrollTop+a.y}}function GEe(e){const t=ah(e),r=lh(e),n=t.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,a=0;return n&&(i=n.width,o=n.height,Math.abs(t.innerWidth/n.scale-n.width)<.01&&(s=n.offsetLeft,a=n.offsetTop)),{width:i,height:o,x:s,y:a}}function JEe(e){var t;const r=lh(e),n=LS(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=W0(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=W0(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-n.scrollLeft+Dse(e);const l=-n.scrollTop;return MS(i||r).direction==="rtl"&&(a+=W0(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function Lse(e){return["html","body","#document"].includes(gu(e))?e.ownerDocument.body:mu(e)&&DS(e)?e:Lse(NS(e))}function Ok(e,t){var r;t===void 0&&(t=[]);const n=Lse(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ah(n),s=i?[o].concat(o.visualViewport||[],DS(n)?n:[]):n,a=t.concat(s);return i?a:a.concat(Ok(NS(s)))}function YEe(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Ise(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function XEe(e){const t=Zp(e),r=t.top+e.clientTop,n=t.left+e.clientLeft;return{top:r,left:n,x:n,y:r,right:n+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function OB(e,t){return t==="viewport"?bP(GEe(e)):Ek(t)?XEe(t):bP(JEe(lh(e)))}function QEe(e){const t=Ok(NS(e)),n=["absolute","fixed"].includes(MS(e).position)&&mu(e)?$P(e):e;return Ek(n)?t.filter(i=>Ek(i)&&YEe(i,n)&&gu(i)!=="body"):[]}function ZEe(e){let{element:t,boundary:r,rootBoundary:n}=e;const o=[...r==="clippingParents"?QEe(t):[].concat(r),n],s=o[0],a=o.reduce((l,c)=>{const u=OB(t,c);return l.top=W0(u.top,l.top),l.right=CB(u.right,l.right),l.bottom=CB(u.bottom,l.bottom),l.left=W0(u.left,l.left),l},OB(t,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const eje={getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:VEe(t,$P(r),n),floating:{...jB(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>KEe(e),getOffsetParent:e=>{let{element:t}=e;return $P(t)},isElement:e=>Ek(e),getDocumentElement:e=>{let{element:t}=e;return lh(t)},getClippingClientRect:e=>ZEe(e),getDimensions:e=>{let{element:t}=e;return jB(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},tje=(e,t,r)=>SEe(e,t,{platform:eje,...r});var rje=Object.defineProperty,nje=Object.defineProperties,ije=Object.getOwnPropertyDescriptors,TB=Object.getOwnPropertySymbols,oje=Object.prototype.hasOwnProperty,sje=Object.prototype.propertyIsEnumerable,PB=(e,t,r)=>t in e?rje(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gc=(e,t)=>{for(var r in t||(t={}))oje.call(t,r)&&PB(e,r,t[r]);if(TB)for(var r of TB(t))sje.call(t,r)&&PB(e,r,t[r]);return e},L1=(e,t)=>nje(e,ije(t));function Nse(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?Nse(e[r],t[r]):e[r]=t[r])}const tu={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function eg(e,t){let r=tu.themes[e]||{},n;do n=r[t],typeof n>"u"?r.$extend?r=tu.themes[r.$extend]||{}:(r=null,n=tu[t]):r=null;while(r);return n}function aje(e){const t=[e];let r=tu.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=tu.themes[r.$extend]||{}):r=null;while(r);return t.map(n=>`v-popper--theme-${n}`)}function AB(e){const t=[e];let r=tu.themes[e]||{};do r.$extend?(t.push(r.$extend),r=tu.themes[r.$extend]||{}):r=null;while(r);return t}let Cd=!1;if(typeof window<"u"){Cd=!1;try{const e=Object.defineProperty({},"passive",{get(){Cd=!0}});window.addEventListener("test",null,e)}catch{}}let Bse=!1;typeof window<"u"&&typeof navigator<"u"&&(Bse=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Fse=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),RB={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},IB={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function MB(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function rE(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const sl=[];let jh=null;const DB={};function LB(e){let t=DB[e];return t||(t=DB[e]=[]),t}let kP=function(){};typeof window<"u"&&(kP=window.Element);function Jr(e){return function(t){return eg(t.theme,e)}}const nE="__floating-vue__popper";var zse=()=>ri({name:"VPopper",provide(){return{[nE]:{parentPopper:this}}},inject:{[nE]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Jr("disabled")},positioningDisabled:{type:Boolean,default:Jr("positioningDisabled")},placement:{type:String,default:Jr("placement"),validator:e=>Fse.includes(e)},delay:{type:[String,Number,Object],default:Jr("delay")},distance:{type:[Number,String],default:Jr("distance")},skidding:{type:[Number,String],default:Jr("skidding")},triggers:{type:Array,default:Jr("triggers")},showTriggers:{type:[Array,Function],default:Jr("showTriggers")},hideTriggers:{type:[Array,Function],default:Jr("hideTriggers")},popperTriggers:{type:Array,default:Jr("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Jr("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Jr("popperHideTriggers")},container:{type:[String,Object,kP,Boolean],default:Jr("container")},boundary:{type:[String,kP],default:Jr("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Jr("strategy")},autoHide:{type:[Boolean,Function],default:Jr("autoHide")},handleResize:{type:Boolean,default:Jr("handleResize")},instantMove:{type:Boolean,default:Jr("instantMove")},eagerMount:{type:Boolean,default:Jr("eagerMount")},popperClass:{type:[String,Array,Object],default:Jr("popperClass")},computeTransformOrigin:{type:Boolean,default:Jr("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Jr("autoMinSize")},autoSize:{type:[Boolean,String],default:Jr("autoSize")},autoMaxSize:{type:Boolean,default:Jr("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Jr("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Jr("preventOverflow")},overflowPadding:{type:[Number,String],default:Jr("overflowPadding")},arrowPadding:{type:[Number,String],default:Jr("arrowPadding")},arrowOverflow:{type:Boolean,default:Jr("arrowOverflow")},flip:{type:Boolean,default:Jr("flip")},shift:{type:Boolean,default:Jr("shift")},shiftCrossAxis:{type:Boolean,default:Jr("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Jr("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:L1(Gc({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[nE])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:Gc(Gc({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(r||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(r=>r.nodeType===r.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(NEe({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");if(r?t.middleware.push(IEe({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(FEe({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&t.middleware.push(DEe({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(jEe({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:o,middlewareData:s})=>{let a;const{centerOffset:l}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?a=Math.abs(l)>o.reference.width/2:a=Math.abs(l)>o.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:o,placement:s,middlewareData:a})=>{var l;if((l=a.autoSize)!=null&&l.skip)return{};let c,u;return s.startsWith("top")||s.startsWith("bottom")?c=o.reference.width:u=o.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(zEe({boundary:this.boundary,padding:this.overflowPadding,apply:({width:i,height:o})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await tje(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:Gc(Gc({},n.middlewareData.arrow),n.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),jh&&this.instantMove&&jh.instantMove&&jh!==this.parentPopper){jh.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(jh=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await rE(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ok(this.$_referenceNode),...Ok(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),n=r.parentNode.getBoundingClientRect(),i=t.x+t.width/2-(n.left+r.offsetLeft),o=t.y+t.height/2-(n.top+r.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<sl.length;r++)t=sl[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}sl.push(this),document.body.classList.add("v-popper--some-open");for(const t of AB(this.theme))LB(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await rE(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,MB(sl,this),sl.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of AB(this.theme)){const n=LB(r);MB(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}jh===this&&(jh=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=eg(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await rE(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,RB,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],RB,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,IB,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],IB,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(n=>n.addEventListener(t,r,Cd?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,n,i){let o=r;n!=null&&(o=typeof n=="function"?n(o):n),o.forEach(s=>{const a=t[s];a&&this.$_registerEventListeners(e,a,i)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:n,eventType:i,handler:o}=r;!e||e===i?n.forEach(s=>s.removeEventListener(i,o)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const n=r.getAttribute(e);n&&(r.removeAttribute(e),r.setAttribute(t,n))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const n=e[r];n==null?t.removeAttribute(r):t.setAttribute(r,n)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(U0>=e.left&&U0<=e.right&&V0>=e.top&&V0<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=U0-ef,n=V0-tf,o=t.left+t.width/2-ef+(t.top+t.height/2)-tf+t.width+t.height,s=ef+r*o,a=tf+n*o;return x_(ef,tf,s,a,t.left,t.top,t.left,t.bottom)||x_(ef,tf,s,a,t.left,t.top,t.right,t.top)||x_(ef,tf,s,a,t.right,t.top,t.right,t.bottom)||x_(ef,tf,s,a,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(Bse?(document.addEventListener("touchstart",NB,Cd?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",cje,Cd?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",NB,!0),window.addEventListener("click",lje,!0)),window.addEventListener("resize",hje));function NB(e){for(let t=0;t<sl.length;t++){const r=sl[t];try{const n=r.popperNode();r.$_mouseDownContains=n.contains(e.target)}catch{}}}function lje(e){Hse(e)}function cje(e){Hse(e,!0)}function Hse(e,t=!1){const r={};for(let n=sl.length-1;n>=0;n--){const i=sl[n];try{const o=i.$_containsGlobalTarget=uje(i,e);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!r[i.randomId]&&BB(i,o,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=i.parentPopper;for(;a;)r[a.randomId]=!0,a=a.parentPopper;return}let s=i.parentPopper;for(;s&&BB(s,s.$_containsGlobalTarget,e);){s.$_handleGlobalClose(e,t);s=s.parentPopper}}})}catch{}}}function uje(e,t){const r=e.popperNode();return e.$_mouseDownContains||r.contains(t.target)}function BB(e,t,r){return r.closeAllPopover||r.closePopover&&t||fje(e,r)&&!t}function fje(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function hje(e){for(let t=0;t<sl.length;t++)sl[t].$_computePosition(e)}let ef=0,tf=0,U0=0,V0=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ef=U0,tf=V0,U0=e.clientX,V0=e.clientY},Cd?{passive:!0}:void 0);function x_(e,t,r,n,i,o,s,a){const l=((s-i)*(t-o)-(a-o)*(e-i))/((a-o)*(r-e)-(s-i)*(n-t)),c=((r-e)*(t-o)-(n-t)*(e-i))/((a-o)*(r-e)-(s-i)*(n-t));return l>=0&&l<=1&&c>=0&&c<=1}var BS=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const dje={extends:zse()};function vje(e,t,r,n,i,o){return Hn(),_l("div",{ref:"reference",class:Cl(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Nf(e.$slots,"default",Rbe(hoe(e.slotData)))],2)}var pje=BS(dje,[["render",vje]]);function gje(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let p$;function xP(){xP.init||(xP.init=!0,p$=gje()!==-1)}var FS={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){xP(),Eu(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",p$&&this.$el.appendChild(e),e.data="about:blank",p$||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!p$&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const mje=L_e();M_e("data-v-b329ee4c");const yje={class:"resize-observer",tabindex:"-1"};D_e();const bje=mje((e,t,r,n,i,o)=>(Hn(),ws("div",yje)));FS.render=bje;FS.__scopeId="data-v-b329ee4c";FS.__file="src/components/ResizeObserver.vue";var Wse=(e="theme")=>({computed:{themeClass(){return aje(this[e])}}});const _je=ri({name:"VPopperContent",components:{ResizeObserver:FS},mixins:[Wse()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),wje=["id","aria-hidden","tabindex","data-popper-placement"],$je={ref:"inner",class:"v-popper__inner"},kje=Jo("div",{class:"v-popper__arrow-outer"},null,-1),xje=Jo("div",{class:"v-popper__arrow-inner"},null,-1),Sje=[kje,xje];function Cje(e,t,r,n,i,o){const s=Wp("ResizeObserver");return Hn(),_l("div",{id:e.popperId,ref:"popover",class:Cl(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:ad(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=h$e(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[Jo("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),Jo("div",{class:"v-popper__wrapper",style:ad(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Jo("div",$je,[e.mounted?(Hn(),_l(Do,{key:0},[Jo("div",null,[Nf(e.$slots,"default")]),e.handleResize?(Hn(),ws(s,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Gp("",!0)],64)):Gp("",!0)],512),Jo("div",{ref:"arrow",class:"v-popper__arrow-container",style:ad(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Sje,4)],4)],46,wje)}var Use=BS(_je,[["render",Cje]]),Vse={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const Eje=ri({name:"VPopperWrapper",components:{Popper:pje,PopperContent:Use},mixins:[Vse,Wse("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function jje(e,t,r,n,i,o){const s=Wp("PopperContent"),a=Wp("Popper");return Hn(),ws(a,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Cl([e.themeClass])},{default:_s(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,show:d,hide:v,handleResize:g,onResize:p,classes:m,result:y})=>[Nf(e.$slots,"default",{shown:c,show:d,hide:v}),Kr(s,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:m,result:y,onHide:v,onResize:p},{default:_s(()=>[Nf(e.$slots,"popper",{shown:c,hide:v})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var n5=BS(Eje,[["render",jje]]);const Oje=ri(L1(Gc({},n5),{name:"VDropdown",vPopperTheme:"dropdown"})),Tje=ri(L1(Gc({},n5),{name:"VMenu",vPopperTheme:"menu"})),Pje=ri(L1(Gc({},n5),{name:"VTooltip",vPopperTheme:"tooltip"})),Aje=ri({name:"VTooltipDirective",components:{Popper:zse(),PopperContent:Use},mixins:[Vse],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>eg(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>eg(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(n=>this.onResult(t,n)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Rje=["innerHTML"],Ije=["textContent"];function Mje(e,t,r,n,i,o){const s=Wp("PopperContent"),a=Wp("Popper");return Hn(),ws(a,ES({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:_s(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,hide:d,handleResize:v,onResize:g,classes:p,result:m})=>[Kr(s,{ref:"popperContent",class:Cl({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":v,classes:p,result:m,onHide:d,onResize:g},{default:_s(()=>[e.html?(Hn(),_l("div",{key:0,innerHTML:e.finalContent},null,8,Rje)):(Hn(),_l("div",{key:1,textContent:fie(e.finalContent)},null,8,Ije))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var Dje=BS(Aje,[["render",Mje]]);const qse="v-popper--has-tooltip";function Lje(e,t){let r=e.placement;if(!r&&t)for(const n of Fse)t[n]&&(r=n);return r||(r=eg(e.theme||"tooltip","placement")),r}function Kse(e,t,r){let n;const i=typeof t;return i==="string"?n={content:t}:t&&i==="object"?n=t:n={content:!1},n.placement=Lje(n,r),n.targetNodes=()=>[e],n.referenceNode=()=>e,n}let iE,Oy,Nje=0;function Bje(){if(iE)return;Oy=er([]),iE=boe({name:"VTooltipDirectiveApp",setup(){return{directives:Oy}},render(){return this.directives.map(t=>No(Dje,L1(Gc({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),iE.mount(e)}function Fje(e,t,r){Bje();const n=er(Kse(e,t,r)),i=er(!1),o={id:Nje++,options:n,shown:i};return Oy.value.push(o),e.classList&&e.classList.add(qse),e.$_popper={options:n,item:o,show(){i.value=!0},hide(){i.value=!1}}}function Gse(e){if(e.$_popper){const t=Oy.value.indexOf(e.$_popper.item);t!==-1&&Oy.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(qse)}function FB(e,{value:t,modifiers:r}){const n=Kse(e,t,r);if(!n.content||eg(n.theme||"tooltip","disabled"))Gse(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=n):i=Fje(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var zje={beforeMount:FB,updated:FB,beforeUnmount(e){Gse(e)}};function zB(e){e.addEventListener("click",Jse),e.addEventListener("touchstart",Yse,Cd?{passive:!0}:!1)}function HB(e){e.removeEventListener("click",Jse),e.removeEventListener("touchstart",Yse),e.removeEventListener("touchend",Xse),e.removeEventListener("touchcancel",Qse)}function Jse(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Yse(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Xse),t.addEventListener("touchcancel",Qse)}}function Xse(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],n=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-n.screenY)<20&&Math.abs(r.screenX-n.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Qse(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var Hje={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&zB(e)},updated(e,{value:t,oldValue:r,modifiers:n}){e.$_closePopoverModifiers=n,t!==r&&(typeof t>"u"||t?zB(e):HB(e))},beforeUnmount(e){HB(e)}};function Wje(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Nse(tu,t),e.directive("tooltip",zje),e.directive("close-popper",Hje),e.component("VTooltip",Pje),e.component("VDropdown",Oje),e.component("VMenu",Tje))}const Uje={version:"2.0.0-beta.20",install:Wje,options:tu},Vje=Dl(e=>{e.vueApp.use(Uje)}),qje=Dl(()=>{const e=sh(),t=O2e(),r=Ia();window.__NUXT_DEVTOOLS_VIEW__={setClient(n){e.value!==n&&(e.value=n,n.hooks.hook("host:update:reactivity",()=>{e.value&&(e.value={...e.value})}),n.hooks.hook("host:inspector:close",()=>{r.currentRoute.value.path==="/__inspecting"&&r.replace("/modules/components")}),n.hooks.hook("host:inspector:update",i=>{t.value=i}),n.hooks.hook("host:inspector:click",async(i,o,s,a)=>{const l=`./${o}:${s}:${a}`;await Ss.openInEditor(l)}),console.log("[nuxt-devtools] Client connected",n))}},r.afterEach(()=>{const n=r.currentRoute.value.path;n.includes("__")||e.value?.hooks.callHook("devtools:navigate",n)})}),Kje=[mke,ixe,sxe,mEe,yEe,wEe,$Ee,kEe,xEe,Vje,qje],Gje=ri({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"}},setup(e,{slots:t}){const r=Jje({duration:e.duration,throttle:e.throttle}),n=Jn();return n.hook("page:start",r.start),n.hook("page:finish",r.finish),Ng(r.clear),()=>No("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:r.isLoading.value?1:0,background:e.color||void 0,backgroundSize:`${100/r.progress.value*100}% auto`,transform:`scaleX(${r.progress.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});function Jje(e){const t=er(0),r=er(!1),n=Wr(()=>1e4/e.duration);let i=null,o=null;function s(){l(),t.value=0,e.throttle?o=setTimeout(()=>{r.value=!0,f()},e.throttle):(r.value=!0,f())}function a(){t.value=100,u()}function l(){clearInterval(i),clearTimeout(o),i=null,o=null}function c(h){t.value=Math.min(100,t.value+h)}function u(){l(),setTimeout(()=>{r.value=!1,setTimeout(()=>{t.value=0},400)},500)}function f(){i=setInterval(()=>{c(n.value)},100)}return{progress:t,isLoading:r,start:s,finish:a,clear:l}}const Yje=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>e.params[r.slice(1)]?.toString()||""),Xje=(e,t)=>{const r=e.route.matched.find(i=>i.components?.default===e.Component.type),n=t??r?.meta.key??(r&&Yje(e.route,r));return typeof n=="function"?n(e.route):n},Qje=(e,t)=>({default:()=>e?No(Q_e,e===!0?{}:e,t):t}),Zje=ri({name:"FragmentWrapper",setup(e,{slots:t}){return()=>t.default?.()}}),SP=(e,t,r)=>({default:()=>t?No(e,t===!0?{}:t,r):No(Zje,{},r)}),eOe=ri({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t}){const r=Jn();return()=>No(Qoe,{name:e.name,route:e.route,...t},{default:n=>{if(!n.Component)return;const i=Xje(n,e.pageKey),o=r.deferHydration(),s=!!(e.transition??n.route.meta.pageTransition??oP),a=s&&rOe([e.transition,n.route.meta.pageTransition,oP,{onAfterLeave:()=>{r.callHook("page:transition:finish",n.Component)}}].filter(Boolean));return SP(OS,s&&a,Qje(e.keepalive??n.route.meta.keepalive??rxe,No(Bie,{onPending:()=>r.callHook("page:start",n.Component),onResolve:()=>{Eu(()=>r.callHook("page:finish",n.Component).finally(o))}},{default:()=>No(nOe,{key:i,routeProps:n,pageKey:i,hasTransition:s})}))).default()}})}});function tOe(e){return Array.isArray(e)?e:e?[e]:[]}function rOe(e){const t=e.map(r=>({...r,onAfterLeave:tOe(r.onAfterLeave)}));return fSe(...t)}const nOe=ri({name:"RouteProvider",props:["routeProps","pageKey","hasTransition"],setup(e){const t=e.pageKey,r=e.routeProps.route,n={};for(const i in e.routeProps.route)n[i]=Wr(()=>t===e.pageKey?e.routeProps.route[i]:r[i]);return _p("_route",El(n)),()=>No(e.routeProps.Component)}}),iOe=ri({name:"LayoutLoader",inheritAttrs:!1,props:{name:String},async setup(e,t){const r=await Gv[e.name]().then(n=>n.default||n);return()=>No(r,t.attrs,t.slots)}}),oOe=ri({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const r=Ws("_route"),n=r===ese()?cSe():r,i=Wr(()=>pn(e.name)??n.meta.layout??"default");return()=>{const o=i.value&&i.value in Gv,s=n.meta.layoutTransition??txe;return SP(OS,o&&s,{default:()=>SP(iOe,o&&{key:i.value,name:i.value,...t.attrs},t.slots).default()}).default()}}}),Zse=ri({__name:"NIcon",props:{icon:null},setup(e){return(t,r)=>(Hn(),_l("div",{class:Cl(["n-icon",e.icon])},null,2))}}),eae=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},sOe={},aOe={key:0,border:"t base","left-0":"","right-0":"","bottom-0":"",fixed:"",p5:"","glass-effect":"","z-200":""},lOe={key:0,flex:"~ gap-2","items-center":"","text-rose":""},cOe={key:1,flex:"~ gap-2","items-center":"","text-yellow":"","animate-pulse":""};function uOe(e,t){const r=Zse;return("wsError"in e?e.wsError:pn(kk))||("wsConnecting"in e?e.wsConnecting:pn(H0))?(Hn(),_l("div",aOe,[("wsError"in e?e.wsError:pn(kk))?(Hn(),_l("div",lOe,[Kr(r,{icon:"i-carbon-wifi-off"}),Kp(" WebSocket disconnected ")])):("wsConnecting"in e?e.wsConnecting:pn(H0))?(Hn(),_l("div",cOe,[Kr(r,{icon:"i-carbon-circle-dash","animate-spin":""}),Kp(" Connecting to the server... ")])):Gp("",!0)])):Gp("",!0)}const fOe=eae(sOe,[["render",uOe]]);let Dv;const Xm=[];function hOe(e){return Xm.push(e),window.__NUXT_DEVTOOLS__&&Xm.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Xm.forEach(r=>r(t))},get(){return Dv.value},configurable:!0}),()=>{Xm.splice(Xm.indexOf(e),1)}}function dOe(){Dv||(Dv=Hp(),hOe(e));function e(t){Dv.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",()=>{$_e(Dv)})}return Dv}const dHt=dOe();/**
|
|
11
|
+
`):l.join("")})):""}return o("pre",{className:"shiki "+(t.themeName||""),style:`background-color: ${r}`},[t.langId?`<div class="language-id">${t.langId}</div>`:"",o("code",{},e.map((s,a)=>{const l=a+1,c=n.get(l)??[],u=l2e(c).join(" ");return o("line",{className:u,lines:e,line:s,index:a},s.map((f,h)=>{const d=[`color: ${f.color||t.fg}`];return f.fontStyle&v$.Italic&&d.push("font-style: italic"),f.fontStyle&v$.Bold&&d.push("font-weight: bold"),f.fontStyle&v$.Underline&&d.push("text-decoration: underline"),o("token",{style:d.join("; "),tokens:s,token:f,index:h},[a2e(f.content)])}))}))])}const s2e={"&":"&","<":"<",">":">",'"':""","'":"'"};function a2e(e){return e.replace(/[&<>"']/g,t=>s2e[t])}function l2e(e){const t=new Set(["line"]);for(const r of e)for(const n of r.classes??[])t.add(n);return Array.from(t)}class c2e extends _k.Registry{constructor(t){super(t),this._resolver=t,this.themesPath="themes/",this._resolvedThemes={},this._resolvedGrammars={},this._langGraph=new Map,this._langMap=AS.reduce((r,n)=>(r[n.id]=n,r),{})}getTheme(t){return typeof t=="string"?this._resolvedThemes[t]:t}async loadTheme(t){return typeof t=="string"?(this._resolvedThemes[t]||(this._resolvedThemes[t]=await fse(`${this.themesPath}${t}.json`)),this._resolvedThemes[t]):(t=hse(t),t.name&&(this._resolvedThemes[t.name]=t),t)}async loadThemes(t){return await Promise.all(t.map(r=>this.loadTheme(r)))}getLoadedThemes(){return Object.keys(this._resolvedThemes)}getGrammar(t){return this._resolvedGrammars[t]}async loadLanguage(t){const n={embeddedLanguages:t.embeddedLangs?.reduce(async(o,s,a)=>{if(!this.getLoadedLanguages().includes(s)&&this._resolver.getLangRegistration(s))return await this._resolver.loadGrammar(this._resolver.getLangRegistration(s).scopeName),o[this._resolver.getLangRegistration(s).scopeName]=a+2,o},{}),balancedBracketSelectors:t.balancedBracketSelectors||["*"],unbalancedBracketSelectors:t.unbalancedBracketSelectors||[]},i=await this.loadGrammarWithConfiguration(t.scopeName,1,n);this._resolvedGrammars[t.id]=i,t.aliases&&t.aliases.forEach(o=>{this._resolvedGrammars[o]=i})}async loadLanguages(t){for(const n of t)this.resolveEmbeddedLanguages(n);const r=Array.from(this._langGraph.values());for(const n of r)this._resolver.addLanguage(n);for(const n of r)await this.loadLanguage(n)}getLoadedLanguages(){return Object.keys(this._resolvedGrammars)}resolveEmbeddedLanguages(t){if(this._langGraph.has(t.id)||this._langGraph.set(t.id,t),t.embeddedLangs)for(const r of t.embeddedLangs)this._langGraph.set(r,this._langMap[r])}}function dse(e){return typeof e=="string"?AS.find(t=>t.id===e||t.aliases?.includes(e)):e}function u2e(e){let t=AS,r=e.themes||[],n=e.paths?.wasm?e.paths.wasm.endsWith("/")?e.paths.wasm:e.paths.wasm+"/":qSe;return e.langs&&(t=e.langs.map(dse)),e.theme&&r.unshift(e.theme),r.length||(r=["nord"]),{_languages:t,_themes:r,_wasmPath:n}}async function f2e(e){const{_languages:t,_themes:r,_wasmPath:n}=u2e(e),i=new ZSe(GSe(n),"vscode-oniguruma"),o=new c2e(i);e.paths?.themes&&(o.themesPath=e.paths.themes.endsWith("/")?e.paths.themes:e.paths.themes+"/"),e.paths?.languages&&(i.languagesPath=e.paths.languages.endsWith("/")?e.paths.languages:e.paths.languages+"/");const a=(await o.loadThemes(r))[0];let l;await o.loadLanguages(t);let c={"#000001":"var(--shiki-color-text)","#000002":"var(--shiki-color-background)","#000004":"var(--shiki-token-constant)","#000005":"var(--shiki-token-string)","#000006":"var(--shiki-token-comment)","#000007":"var(--shiki-token-keyword)","#000008":"var(--shiki-token-parameter)","#000009":"var(--shiki-token-function)","#000010":"var(--shiki-token-string-expression)","#000011":"var(--shiki-token-punctuation)","#000012":"var(--shiki-token-link)"};function u(w){c=w}function f(w,S){w.bg=c[w.bg]||w.bg,w.fg=c[w.fg]||w.fg,S.forEach((k,x)=>{S[x]=c[k]||k})}function h(w){const S=w?o.getTheme(w):a;if(!S)throw Error(`No theme registration for ${w}`);(!l||l.name!==S.name)&&(o.setTheme(S),l=S);const k=o.getColorMap();return S.type==="css"&&f(S,k),{_theme:S,_colorMap:k}}function d(w){const S=o.getGrammar(w);if(!S)throw Error(`No language registration for ${w}`);return{_grammar:S}}function v(w,S="text",k,x={includeExplanation:!0}){if(h2e(S))return[...w.split(/\r\n|\r|\n/).map(T=>[{content:T}])];const{_grammar:C}=d(S),{_theme:E,_colorMap:j}=h(k);return e2e(E,j,w,C,x)}function g(w,S="text",k){let x;typeof S=="object"?x=S:x={lang:S,theme:k};const C=v(w,x.lang,x.theme,{includeExplanation:!1}),{_theme:E}=h(x.theme);return o2e(C,{fg:E.fg,bg:E.bg,lineOptions:x?.lineOptions,themeName:E.name})}async function p(w){await o.loadTheme(w)}async function m(w){const S=dse(w);i.addLanguage(S),await o.loadLanguage(S)}function y(){return o.getLoadedThemes()}function b(){return o.getLoadedLanguages()}function _(w){const{_theme:S}=h(w);return S.bg}function $(w){const{_theme:S}=h(w);return S.fg}return{codeToThemedTokens:v,codeToHtml:g,getTheme:w=>h(w)._theme,loadTheme:p,loadLanguage:m,getBackgroundColor:_,getForegroundColor:$,getLoadedThemes:y,getLoadedLanguages:b,setColorReplacements:u}}function h2e(e){return!e||["plaintext","txt","text"].includes(e)}const d2e="0.2.0";KSe(`https://cdn.jsdelivr.net/npm/shiki-es@${d2e}/dist/assets/`);const $_=er();let QN=null;function v2e(e,t){const r=ise();!QN&&!$_.value&&(QN=f2e({themes:["vitesse-dark","vitesse-light"],langs:["css","javascript","typescript","html","vue","vue-html","bash"]}).then(i=>{$_.value=i}));const n=$_.value?.getLoadedLanguages().includes(t);return n?{code:$_.value.codeToHtml(e,{lang:t,theme:r.value==="dark"?"vitesse-dark":"vitesse-light"}),supported:!0}:{code:e,supported:n}}const p2e=6e4,vse=e=>e,g2e=vse;function m2e(e,t){const{post:r,on:n,eventNames:i=[],serialize:o=vse,deserialize:s=g2e,resolver:a,timeout:l=p2e}=t,c=new Map;let u;const f=new Proxy({},{get(h,d){if(d==="$functions")return e;const v=(...p)=>{r(o({m:d,a:p,t:"q"}))};if(i.includes(d))return v.asEvent=v,v;const g=async(...p)=>(await u,new Promise((m,y)=>{const b=b2e();c.set(b,{resolve:m,reject:y}),r(o({m:d,a:p,i:b,t:"q"})),l>=0&&setTimeout(()=>{y(new Error(`[birpc] timeout on calling "${d}"`)),c.delete(b)},l)}));return g.asEvent=v,g}});return u=n(async(h,...d)=>{const v=s(h);if(v.t==="q"){const{m:g,a:p}=v;let m,y;const b=a?a(g,e[g]):e[g];if(!b)y=new Error(`[birpc] function "${g}" not found`);else try{m=await b.apply(f,p)}catch(_){y=_}v.i&&(y&&t.onError&&t.onError(y,g,p),r(o({t:"s",i:v.i,r:m,e:y}),...d))}else{const{i:g,r:p,e:m}=v,y=c.get(g);y&&(m?y.reject(m):y.resolve(p)),c.delete(g)}}),f}const y2e="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict";function b2e(e=21){let t="",r=e;for(;r--;)t+=y2e[Math.random()*64|0];return t}/*! (c) 2020 Andrea Giammarchi */const{parse:_2e,stringify:w2e}=JSON,{keys:$2e}=Object,jy=String,pse="string",ZN={},$k="object",gse=(e,t)=>t,k2e=e=>e instanceof jy?jy(e):e,x2e=(e,t)=>typeof t===pse?new jy(t):t,mse=(e,t,r,n)=>{const i=[];for(let o=$2e(r),{length:s}=o,a=0;a<s;a++){const l=o[a],c=r[l];if(c instanceof jy){const u=e[c];typeof u===$k&&!t.has(u)?(t.add(u),r[l]=ZN,i.push({k:l,a:[e,t,u,n]})):r[l]=n.call(r,l,u)}else r[l]!==ZN&&(r[l]=n.call(r,l,c))}for(let{length:o}=i,s=0;s<o;s++){const{k:a,a:l}=i[s];r[a]=n.call(r,a,mse.apply(null,l))}return r},eB=(e,t,r)=>{const n=jy(t.push(r)-1);return e.set(r,n),n},S2e=(e,t)=>{const r=_2e(e,x2e).map(k2e),n=r[0],i=t||gse,o=typeof n===$k&&n?mse(r,new Set,n,i):n;return i.call({"":o},"",o)},C2e=(e,t,r)=>{const n=t&&typeof t===$k?(u,f)=>u===""||-1<t.indexOf(u)?f:void 0:t||gse,i=new Map,o=[],s=[];let a=+eB(i,o,n.call({"":e},"",e)),l=!a;for(;a<o.length;)l=!0,s[a]=w2e(o[a++],c,r);return"["+s.join(",")+"]";function c(u,f){if(l)return l=!l,f;const h=n.call(this,u,f);switch(typeof h){case $k:if(h===null)return h;case pse:return i.get(h)||eB(i,o,h)}return h}},E2e=2e3,H0=er(!0),kk=er();let yse=$se(),bse=()=>{};const _se={},wse=new Map,Ss=m2e(_se,{post:async e=>{(await yse).send(e)},on:e=>{bse=e},serialize:C2e,deserialize:S2e,resolver(e,t){if(t)return t;if(!e.includes(":"))return;const[r,n]=e.split(":");return wse.get(r)?.[n]},onError(e,t){console.error(`[nuxt-devtools] RPC error on executing "${t}":`,e)}});async function $se(){const e=new URL("ws://host/__nuxt_devtools__/entry");e.protocol=location.protocol==="https:"?"wss:":"ws:",e.host=location.host;const t=new WebSocket(e.toString());return t.addEventListener("message",r=>bse(String(r.data))),t.addEventListener("error",r=>{console.error(r),kk.value=r}),t.addEventListener("close",()=>{console.log("[nuxt-devtools] WebSocket closed, reconnecting..."),H0.value=!0,setTimeout(async()=>{yse=$se()},E2e)}),H0.value=!0,t.readyState!==WebSocket.OPEN&&await new Promise(r=>t.addEventListener("open",r)),console.log("[nuxt-devtools] WebSocket connected."),H0.value=!1,kk.value=null,t}function sh(){return Fg("devtools-client")}function Lzt(){const e=sh();return Wr(()=>e.value?.nuxt.vueApp.config.globalProperties?.$route)}function j2e(){const e=sh();return Wr(()=>e.value?.nuxt.vueApp.config.globalProperties?.$router)}function O2e(){return Fg("devtools-component-inspector-data")}const kse=er(!1);setTimeout(()=>{kse.value=!0},2e3);const Nzt=Wr(()=>kse.value&&!sh().value);function T2e(){const e=sh(),t=ise();return Wr(()=>({host:e.value,devtools:{rpc:Ss,colorMode:t.value,renderCodeHighlight(r,n){return v2e(r,n)},renderMarkdown(r){return DSe(r)},extendClientRpc(r,n){return wse.set(r,n),new Proxy({},{get(i,o){if(typeof o=="string")return Ss[`${r}:${o}`]}})}}}))}function P2e(e=""){return!e||!e.includes("\\")?e:e.replace(/\\/g,"/")}const A2e=/^[/\\](?![/\\])|^[/\\]{2}(?!\.)|^[A-Za-z]:[/\\]/;function R2e(){return typeof process<"u"?process.cwd().replace(/\\/g,"/"):"/"}const tB=function(...e){e=e.map(n=>P2e(n));let t="",r=!1;for(let n=e.length-1;n>=-1&&!r;n--){const i=n>=0?e[n]:R2e();!i||i.length===0||(t=`${i}/${t}`,r=rB(i))}return t=I2e(t,!r),r&&!rB(t)?`/${t}`:t.length>0?t:"."};function I2e(e,t){let r="",n=0,i=-1,o=0,s=null;for(let a=0;a<=e.length;++a){if(a<e.length)s=e[a];else{if(s==="/")break;s="/"}if(s==="/"){if(!(i===a-1||o===1))if(o===2){if(r.length<2||n!==2||r[r.length-1]!=="."||r[r.length-2]!=="."){if(r.length>2){const l=r.lastIndexOf("/");l===-1?(r="",n=0):(r=r.slice(0,l),n=r.length-1-r.lastIndexOf("/")),i=a,o=0;continue}else if(r.length>0){r="",n=0,i=a,o=0;continue}}t&&(r+=r.length>0?"/..":"..",n=2)}else r.length>0?r+=`/${e.slice(i+1,a)}`:r=e.slice(i+1,a),n=a-i-1;i=a,o=0}else s==="."&&o!==-1?++o:o=-1}return r}const rB=function(e){return A2e.test(e)},M2e=function(e,t){const r=tB(e).split("/"),n=tB(t).split("/"),i=[...r];for(const o of i){if(n[0]!==o)break;r.shift(),n.shift()}return[...r.map(()=>".."),...n].join("/")};function Bzt(e){return!!e.match(/[/\\]node_modules[/\\]/)||X4(e)}function X4(e){return e[0]==="#"||!!e.match(/^(@[a-z0-9-~][a-z0-9-._~]*\/)?[a-z0-9-~][a-z0-9-._~]*$/)}function D2e(e){if(X4(e))return e;const t=e.replace(/\\/g,"/").match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t.startsWith("@")?t.split("/").slice(0,2).join("/"):t.split("/")[0]}function L2e(e){const t=e.match(/.*\/node_modules\/(.*)$/)?.[1];if(t)return t}function Fzt(e){if(e)return["nuxt","#app","#head","vue"].includes(e)}function zzt(e,t){if(e=e.replace(/\\/g,"/"),X4(e))return{moduleName:e,path:e};const r=D2e(e),n=L2e(e);if(r&&n)return{moduleName:r,path:n};try{let i=M2e(t,e);return!i.startsWith("./")&&!i.startsWith("../")&&(i=`./${i}`),i.startsWith("./.nuxt/")&&(i=`#build${i.slice(7)}`),{path:i}}catch{return{path:e}}}function Hzt(e){return e.split(/(:\w+[\?\*]?)/).filter(Boolean)}function Ac(e,t,r){const n=Jn();return n.payload.unique||(n.payload.unique={}),n.payload.unique[e]||(n.payload.unique[e]=wSe(e,t,r)),n.payload.unique[e].data}function Wzt(){return typeof navigator<"u"&&navigator.platform.toLowerCase().includes("mac")}var nB;const Sd=typeof window<"u",N2e=e=>typeof e<"u",Q4=e=>typeof e=="function",B2e=e=>typeof e=="string",Z4=()=>{},F2e=Sd&&((nB=window?.navigator)==null?void 0:nB.userAgent)&&/iP(ad|hone|od)/.test(window.navigator.userAgent);function ms(e){return typeof e=="function"?e():pn(e)}function z2e(e,t){function r(...n){return new Promise((i,o)=>{Promise.resolve(e(()=>t.apply(this,n),{fn:t,thisArg:this,args:n})).then(i).catch(o)})}return r}const xse=e=>e();function H2e(e=xse){const t=er(!0);function r(){t.value=!1}function n(){t.value=!0}const i=(...o)=>{t.value&&e(...o)};return{isActive:Dg(t),pause:r,resume:n,eventFilter:i}}function iB(e,t=!1,r="Timeout"){return new Promise((n,i)=>{setTimeout(t?()=>i(r):n,e)})}function W2e(e){return e}function zf(e){return gie()?(Kbe(e),!0):!1}var U2e=Object.defineProperty,V2e=Object.defineProperties,q2e=Object.getOwnPropertyDescriptors,oB=Object.getOwnPropertySymbols,K2e=Object.prototype.hasOwnProperty,G2e=Object.prototype.propertyIsEnumerable,sB=(e,t,r)=>t in e?U2e(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,J2e=(e,t)=>{for(var r in t||(t={}))K2e.call(t,r)&&sB(e,r,t[r]);if(oB)for(var r of oB(t))G2e.call(t,r)&&sB(e,r,t[r]);return e},Y2e=(e,t)=>V2e(e,q2e(t));function X2e(e){if(!Xn(e))return C_e(e);const t=Array.isArray(e.value)?new Array(e.value.length):{};for(const r in e.value)t[r]=S_e(()=>({get(){return e.value[r]},set(n){if(Array.isArray(e.value)){const i=[...e.value];i[r]=n,e.value=i}else{const i=Y2e(J2e({},e.value),{[r]:n});Object.setPrototypeOf(i,e.value),e.value=i}}}));return t}function e5(e,t=!0){Ml()?oh(e):t?e():Eu(e)}function pP(e,t=!1){function r(f,{flush:h="sync",deep:d=!1,timeout:v,throwOnTimeout:g}={}){let p=null;const y=[new Promise(b=>{p=zn(e,_=>{f(_)!==t&&(p?.(),b(_))},{flush:h,deep:d,immediate:!0})})];return v!=null&&y.push(iB(v,g).then(()=>ms(e)).finally(()=>p?.())),Promise.race(y)}function n(f,h){if(!Xn(f))return r(_=>_===f,h);const{flush:d="sync",deep:v=!1,timeout:g,throwOnTimeout:p}=h??{};let m=null;const b=[new Promise(_=>{m=zn([e,f],([$,w])=>{t!==($===w)&&(m?.(),_($))},{flush:d,deep:v,immediate:!0})})];return g!=null&&b.push(iB(g,p).then(()=>ms(e)).finally(()=>(m?.(),ms(e)))),Promise.race(b)}function i(f){return r(h=>Boolean(h),f)}function o(f){return n(null,f)}function s(f){return n(void 0,f)}function a(f){return r(Number.isNaN,f)}function l(f,h){return r(d=>{const v=Array.from(d);return v.includes(f)||v.includes(ms(f))},h)}function c(f){return u(1,f)}function u(f=1,h){let d=-1;return r(()=>(d+=1,d>=f),h)}return Array.isArray(ms(e))?{toMatch:r,toContains:l,changed:c,changedTimes:u,get not(){return pP(e,!t)}}:{toMatch:r,toBe:n,toBeTruthy:i,toBeNull:o,toBeNaN:a,toBeUndefined:s,changed:c,changedTimes:u,get not(){return pP(e,!t)}}}function Uzt(e){return pP(e)}function Q2e(e,t=1e3,r={}){const{immediate:n=!0,immediateCallback:i=!1}=r;let o=null;const s=er(!1);function a(){o&&(clearInterval(o),o=null)}function l(){s.value=!1,a()}function c(){const u=ms(t);u<=0||(s.value=!0,i&&e(),a(),o=setInterval(e,u))}if(n&&Sd&&c(),Xn(t)||Q4(t)){const u=zn(t,()=>{s.value&&Sd&&c()});zf(u)}return zf(l),{isActive:s,pause:l,resume:c}}function Z2e(e,t,r={}){const{immediate:n=!0}=r,i=er(!1);let o=null;function s(){o&&(clearTimeout(o),o=null)}function a(){i.value=!1,s()}function l(...c){s(),i.value=!0,o=setTimeout(()=>{i.value=!1,o=null,e(...c)},ms(t))}return n&&(i.value=!0,Sd&&l()),zf(a),{isPending:Dg(i),start:l,stop:a}}function Vzt(e=!1,t={}){const{truthyValue:r=!0,falsyValue:n=!1}=t,i=Xn(e),o=er(e);function s(a){if(arguments.length)return o.value=a,o.value;{const l=ms(r);return o.value=o.value===l?ms(n):l,o.value}}return i?s:[o,s]}var aB=Object.getOwnPropertySymbols,eCe=Object.prototype.hasOwnProperty,tCe=Object.prototype.propertyIsEnumerable,rCe=(e,t)=>{var r={};for(var n in e)eCe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&aB)for(var n of aB(e))t.indexOf(n)<0&&tCe.call(e,n)&&(r[n]=e[n]);return r};function nCe(e,t,r={}){const n=r,{eventFilter:i=xse}=n,o=rCe(n,["eventFilter"]);return zn(e,z2e(i,t),o)}var iCe=Object.defineProperty,oCe=Object.defineProperties,sCe=Object.getOwnPropertyDescriptors,xk=Object.getOwnPropertySymbols,Sse=Object.prototype.hasOwnProperty,Cse=Object.prototype.propertyIsEnumerable,lB=(e,t,r)=>t in e?iCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,aCe=(e,t)=>{for(var r in t||(t={}))Sse.call(t,r)&&lB(e,r,t[r]);if(xk)for(var r of xk(t))Cse.call(t,r)&&lB(e,r,t[r]);return e},lCe=(e,t)=>oCe(e,sCe(t)),cCe=(e,t)=>{var r={};for(var n in e)Sse.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&xk)for(var n of xk(e))t.indexOf(n)<0&&Cse.call(e,n)&&(r[n]=e[n]);return r};function uCe(e,t,r={}){const n=r,{eventFilter:i}=n,o=cCe(n,["eventFilter"]),{eventFilter:s,pause:a,resume:l,isActive:c}=H2e(i);return{stop:nCe(e,t,lCe(aCe({},o),{eventFilter:s})),pause:a,resume:l,isActive:c}}function qzt(e,t,r){let n;Xn(r)?n={evaluating:r}:n=r||{};const{lazy:i=!1,evaluating:o=void 0,shallow:s=!1,onError:a=Z4}=n,l=er(!i),c=s?Hp(t):er(t);let u=0;return uk(async f=>{if(!l.value)return;u++;const h=u;let d=!1;o&&Promise.resolve().then(()=>{o.value=!0});try{const v=await e(g=>{f(()=>{o&&(o.value=!1),d||g()})});h===u&&(c.value=v)}catch(v){a(v)}finally{o&&h===u&&(o.value=!1),d=!0}}),i?Wr(()=>(l.value=!0,c.value)):c}function pa(e){var t;const r=ms(e);return(t=r?.$el)!=null?t:r}const pu=Sd?window:void 0,fCe=Sd?window.document:void 0,hCe=Sd?window.navigator:void 0;function eu(...e){let t,r,n,i;if(B2e(e[0])||Array.isArray(e[0])?([r,n,i]=e,t=pu):[t,r,n,i]=e,!t)return Z4;Array.isArray(r)||(r=[r]),Array.isArray(n)||(n=[n]);const o=[],s=()=>{o.forEach(u=>u()),o.length=0},a=(u,f,h,d)=>(u.addEventListener(f,h,d),()=>u.removeEventListener(f,h,d)),l=zn(()=>[pa(t),ms(i)],([u,f])=>{s(),u&&o.push(...r.flatMap(h=>n.map(d=>a(u,h,d,f))))},{immediate:!0,flush:"post"}),c=()=>{l(),s()};return zf(c),c}let cB=!1;function Kzt(e,t,r={}){const{window:n=pu,ignore:i=[],capture:o=!0,detectIframe:s=!1}=r;if(!n)return;F2e&&!cB&&(cB=!0,Array.from(n.document.body.children).forEach(h=>h.addEventListener("click",Z4)));let a=!0;const l=h=>i.some(d=>{if(typeof d=="string")return Array.from(n.document.querySelectorAll(d)).some(v=>v===h.target||h.composedPath().includes(v));{const v=pa(d);return v&&(h.target===v||h.composedPath().includes(v))}}),u=[eu(n,"click",h=>{const d=pa(e);if(!(!d||d===h.target||h.composedPath().includes(d))){if(h.detail===0&&(a=!l(h)),!a){a=!0;return}t(h)}},{passive:!0,capture:o}),eu(n,"pointerdown",h=>{const d=pa(e);d&&(a=!h.composedPath().includes(d)&&!l(h))},{passive:!0}),s&&eu(n,"blur",h=>{var d;const v=pa(e);((d=n.document.activeElement)==null?void 0:d.tagName)==="IFRAME"&&!v?.contains(n.document.activeElement)&&t(h)})].filter(Boolean);return()=>u.forEach(h=>h())}var dCe=Object.defineProperty,vCe=Object.defineProperties,pCe=Object.getOwnPropertyDescriptors,uB=Object.getOwnPropertySymbols,gCe=Object.prototype.hasOwnProperty,mCe=Object.prototype.propertyIsEnumerable,fB=(e,t,r)=>t in e?dCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,yCe=(e,t)=>{for(var r in t||(t={}))gCe.call(t,r)&&fB(e,r,t[r]);if(uB)for(var r of uB(t))mCe.call(t,r)&&fB(e,r,t[r]);return e},bCe=(e,t)=>vCe(e,pCe(t));const _Ce=e=>typeof e=="function"?e:typeof e=="string"?t=>t.key===e:Array.isArray(e)?t=>e.includes(t.key):()=>!0;function wCe(...e){let t,r,n={};e.length===3?(t=e[0],r=e[1],n=e[2]):e.length===2?typeof e[1]=="object"?(t=!0,r=e[0],n=e[1]):(t=e[0],r=e[1]):(t=!0,r=e[0]);const{target:i=pu,eventName:o="keydown",passive:s=!1}=n,a=_Ce(t);return eu(i,o,c=>{a(c)&&r(c)},s)}function Gzt(e,t,r={}){return wCe(e,t,bCe(yCe({},r),{eventName:"keydown"}))}function Ese(e,t=!1){const r=er(),n=()=>r.value=Boolean(e());return n(),e5(n,t),r}function Jzt(e={}){const{navigator:t=hCe,read:r=!1,source:n,copiedDuring:i=1500,legacy:o=!1}=e,s=["copy","cut"],a=Ese(()=>t&&"clipboard"in t),l=Wr(()=>a.value||o),c=er(""),u=er(!1),f=Z2e(()=>u.value=!1,i);function h(){a.value?t.clipboard.readText().then(p=>{c.value=p}):c.value=g()}if(l.value&&r)for(const p of s)eu(p,h);async function d(p=ms(n)){l.value&&p!=null&&(a.value?await t.clipboard.writeText(p):v(p),c.value=p,u.value=!0,f.start())}function v(p){const m=document.createElement("textarea");m.value=p??"",m.style.position="absolute",m.style.opacity="0",document.body.appendChild(m),m.select(),document.execCommand("copy"),m.remove()}function g(){var p,m,y;return(y=(m=(p=document?.getSelection)==null?void 0:p.call(document))==null?void 0:m.toString())!=null?y:""}return{isSupported:l,text:c,copied:u,copy:d}}function $Ce(e){return JSON.parse(JSON.stringify(e))}const gP=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{},mP="__vueuse_ssr_handlers__";gP[mP]=gP[mP]||{};const kCe=gP[mP];function xCe(e,t){return kCe[e]||t}function SCe(e){return e==null?"any":e instanceof Set?"set":e instanceof Map?"map":e instanceof Date?"date":typeof e=="boolean"?"boolean":typeof e=="string"?"string":typeof e=="object"?"object":Number.isNaN(e)?"any":"number"}var CCe=Object.defineProperty,hB=Object.getOwnPropertySymbols,ECe=Object.prototype.hasOwnProperty,jCe=Object.prototype.propertyIsEnumerable,dB=(e,t,r)=>t in e?CCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,vB=(e,t)=>{for(var r in t||(t={}))ECe.call(t,r)&&dB(e,r,t[r]);if(hB)for(var r of hB(t))jCe.call(t,r)&&dB(e,r,t[r]);return e};const OCe={boolean:{read:e=>e==="true",write:e=>String(e)},object:{read:e=>JSON.parse(e),write:e=>JSON.stringify(e)},number:{read:e=>Number.parseFloat(e),write:e=>String(e)},any:{read:e=>e,write:e=>String(e)},string:{read:e=>e,write:e=>String(e)},map:{read:e=>new Map(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e.entries()))},set:{read:e=>new Set(JSON.parse(e)),write:e=>JSON.stringify(Array.from(e))},date:{read:e=>new Date(e),write:e=>e.toISOString()}},pB="vueuse-storage";function TCe(e,t,r,n={}){var i;const{flush:o="pre",deep:s=!0,listenToStorageChanges:a=!0,writeDefaults:l=!0,mergeDefaults:c=!1,shallow:u,window:f=pu,eventFilter:h,onError:d=k=>{console.error(k)}}=n,v=(u?Hp:er)(t);if(!r)try{r=xCe("getDefaultStorage",()=>{var k;return(k=pu)==null?void 0:k.localStorage})()}catch(k){d(k)}if(!r)return v;const g=ms(t),p=SCe(g),m=(i=n.serializer)!=null?i:OCe[p],{pause:y,resume:b}=uCe(v,()=>_(v.value),{flush:o,deep:s,eventFilter:h});return f&&a&&(eu(f,"storage",S),eu(f,pB,w)),S(),v;function _(k){try{if(k==null)r.removeItem(e);else{const x=m.write(k),C=r.getItem(e);C!==x&&(r.setItem(e,x),f&&f.dispatchEvent(new CustomEvent(pB,{detail:{key:e,oldValue:C,newValue:x,storageArea:r}})))}}catch(x){d(x)}}function $(k){const x=k?k.newValue:r.getItem(e);if(x==null)return l&&g!==null&&r.setItem(e,m.write(g)),g;if(!k&&c){const C=m.read(x);return Q4(c)?c(C,g):p==="object"&&!Array.isArray(C)?vB(vB({},g),C):C}else return typeof x!="string"?x:m.read(x)}function w(k){S(k.detail)}function S(k){if(!(k&&k.storageArea!==r)){if(k&&k.key==null){v.value=g;return}if(!(k&&k.key!==e)){y();try{v.value=$(k)}catch(x){d(x)}finally{k?Eu(b):b()}}}}}var gB=Object.getOwnPropertySymbols,PCe=Object.prototype.hasOwnProperty,ACe=Object.prototype.propertyIsEnumerable,RCe=(e,t)=>{var r={};for(var n in e)PCe.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&gB)for(var n of gB(e))t.indexOf(n)<0&&ACe.call(e,n)&&(r[n]=e[n]);return r};function jse(e,t,r={}){const n=r,{window:i=pu}=n,o=RCe(n,["window"]);let s;const a=Ese(()=>i&&"ResizeObserver"in i),l=()=>{s&&(s.disconnect(),s=void 0)},c=zn(()=>pa(e),f=>{l(),a.value&&i&&f&&(s=new ResizeObserver(t),s.observe(f,o))},{immediate:!0,flush:"post"}),u=()=>{l(),c()};return zf(u),{isSupported:a,stop:u}}function Yzt(e,t={}){const{reset:r=!0,windowResize:n=!0,windowScroll:i=!0,immediate:o=!0}=t,s=er(0),a=er(0),l=er(0),c=er(0),u=er(0),f=er(0),h=er(0),d=er(0);function v(){const g=pa(e);if(!g){r&&(s.value=0,a.value=0,l.value=0,c.value=0,u.value=0,f.value=0,h.value=0,d.value=0);return}const p=g.getBoundingClientRect();s.value=p.height,a.value=p.bottom,l.value=p.left,c.value=p.right,u.value=p.top,f.value=p.width,h.value=p.x,d.value=p.y}return jse(e,v),zn(()=>pa(e),g=>!g&&v()),i&&eu("scroll",v,{capture:!0,passive:!0}),n&&eu("resize",v,{passive:!0}),e5(()=>{o&&v()}),{height:s,bottom:a,left:l,right:c,top:u,width:f,x:h,y:d,update:v}}function ICe(e,t={}){const{immediate:r=!0,window:n=pu}=t,i=er(!1);let o=0,s=null;function a(u){if(!i.value||!n)return;const f=u-o;e({delta:f,timestamp:u}),o=u,s=n.requestAnimationFrame(a)}function l(){!i.value&&n&&(i.value=!0,s=n.requestAnimationFrame(a))}function c(){i.value=!1,s!=null&&n&&(n.cancelAnimationFrame(s),s=null)}return r&&l(),zf(c),{isActive:Dg(i),pause:c,resume:l}}function Xzt(e,t={width:0,height:0},r={}){const{window:n=pu,box:i="content-box"}=r,o=Wr(()=>{var l,c;return(c=(l=pa(e))==null?void 0:l.namespaceURI)==null?void 0:c.includes("svg")}),s=er(t.width),a=er(t.height);return jse(e,([l])=>{const c=i==="border-box"?l.borderBoxSize:i==="content-box"?l.contentBoxSize:l.devicePixelContentBoxSize;if(n&&o.value){const u=pa(e);if(u){const f=n.getComputedStyle(u);s.value=parseFloat(f.width),a.value=parseFloat(f.height)}}else if(c){const u=Array.isArray(c)?c:[c];s.value=u.reduce((f,{inlineSize:h})=>f+h,0),a.value=u.reduce((f,{blockSize:h})=>f+h,0)}else s.value=l.contentRect.width,a.value=l.contentRect.height},r),zn(()=>pa(e),l=>{s.value=l?t.width:0,a.value=l?t.height:0}),{width:s,height:a}}function RS(e,t,r={}){const{window:n=pu}=r;return TCe(e,t,n?.localStorage,r)}var MCe=Object.defineProperty,mB=Object.getOwnPropertySymbols,DCe=Object.prototype.hasOwnProperty,LCe=Object.prototype.propertyIsEnumerable,yB=(e,t,r)=>t in e?MCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,NCe=(e,t)=>{for(var r in t||(t={}))DCe.call(t,r)&&yB(e,r,t[r]);if(mB)for(var r of mB(t))LCe.call(t,r)&&yB(e,r,t[r]);return e};function BCe(e={}){const{controls:t=!1,interval:r="requestAnimationFrame"}=e,n=er(new Date),i=()=>n.value=new Date,o=r==="requestAnimationFrame"?ICe(i,{immediate:!0}):Q2e(i,r,{immediate:!0});return t?NCe({now:n},o):n}var bB;(function(e){e.UP="UP",e.RIGHT="RIGHT",e.DOWN="DOWN",e.LEFT="LEFT",e.NONE="NONE"})(bB||(bB={}));let FCe=0;function Qzt(e,t={}){const r=er(!1),{document:n=fCe,immediate:i=!0,manual:o=!1,id:s=`vueuse_styletag_${++FCe}`}=t,a=er(e);let l=()=>{};const c=()=>{if(!n)return;const f=n.getElementById(s)||n.createElement("style");f.isConnected||(f.type="text/css",f.id=s,t.media&&(f.media=t.media),n.head.appendChild(f)),!r.value&&(l=zn(a,h=>{f.textContent=h},{immediate:!0}),r.value=!0)},u=()=>{!n||!r.value||(l(),n.head.removeChild(n.getElementById(s)),r.value=!1)};return i&&!o&&e5(c),o||zf(u),{id:s,css:a,unload:u,load:c,isLoaded:Dg(r)}}var zCe=Object.defineProperty,Sk=Object.getOwnPropertySymbols,Ose=Object.prototype.hasOwnProperty,Tse=Object.prototype.propertyIsEnumerable,_B=(e,t,r)=>t in e?zCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,HCe=(e,t)=>{for(var r in t||(t={}))Ose.call(t,r)&&_B(e,r,t[r]);if(Sk)for(var r of Sk(t))Tse.call(t,r)&&_B(e,r,t[r]);return e},WCe=(e,t)=>{var r={};for(var n in e)Ose.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(e!=null&&Sk)for(var n of Sk(e))t.indexOf(n)<0&&Tse.call(e,n)&&(r[n]=e[n]);return r};const UCe=[{max:6e4,value:1e3,name:"second"},{max:276e4,value:6e4,name:"minute"},{max:72e6,value:36e5,name:"hour"},{max:5184e5,value:864e5,name:"day"},{max:24192e5,value:6048e5,name:"week"},{max:28512e6,value:2592e6,name:"month"},{max:1/0,value:31536e6,name:"year"}],VCe={justNow:"just now",past:e=>e.match(/\d/)?`${e} ago`:e,future:e=>e.match(/\d/)?`in ${e}`:e,month:(e,t)=>e===1?t?"last month":"next month":`${e} month${e>1?"s":""}`,year:(e,t)=>e===1?t?"last year":"next year":`${e} year${e>1?"s":""}`,day:(e,t)=>e===1?t?"yesterday":"tomorrow":`${e} day${e>1?"s":""}`,week:(e,t)=>e===1?t?"last week":"next week":`${e} week${e>1?"s":""}`,hour:e=>`${e} hour${e>1?"s":""}`,minute:e=>`${e} minute${e>1?"s":""}`,second:e=>`${e} second${e>1?"s":""}`,invalid:""},qCe=e=>e.toISOString().slice(0,10);function Zzt(e,t={}){const{controls:r=!1,updateInterval:n=3e4}=t,i=BCe({interval:n,controls:!0}),{now:o}=i,s=WCe(i,["now"]),a=Wr(()=>KCe(new Date(ms(e)),t,pn(o.value)));return r?HCe({timeAgo:a},s):a}function KCe(e,t={},r=Date.now()){var n;const{max:i,messages:o=VCe,fullDateFormatter:s=qCe,units:a=UCe,showSecond:l=!1,rounding:c="round"}=t,u=typeof c=="number"?p=>+p.toFixed(c):Math[c],f=+r-+e,h=Math.abs(f);function d(p,m){return u(Math.abs(p)/m.value)}function v(p,m){const y=d(p,m),b=p>0,_=g(m.name,y,b);return g(b?"past":"future",_,b)}function g(p,m,y){const b=o[p];return typeof b=="function"?b(m,y):b.replace("{0}",m.toString())}if(h<6e4&&!l)return o.justNow;if(typeof i=="number"&&h>i)return s(new Date(e));if(typeof i=="string"){const p=(n=a.find(m=>m.name===i))==null?void 0:n.max;if(p&&h>p)return s(new Date(e))}for(const[p,m]of a.entries()){if(d(f,m)<=0&&a[p-1])return v(f,a[p-1]);if(h<m.max)return v(f,m)}return o.invalid}var GCe=Object.defineProperty,wB=Object.getOwnPropertySymbols,JCe=Object.prototype.hasOwnProperty,YCe=Object.prototype.propertyIsEnumerable,$B=(e,t,r)=>t in e?GCe(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,XCe=(e,t)=>{for(var r in t||(t={}))JCe.call(t,r)&&$B(e,r,t[r]);if(wB)for(var r of wB(t))YCe.call(t,r)&&$B(e,r,t[r]);return e};const QCe={easeInSine:[.12,0,.39,0],easeOutSine:[.61,1,.88,1],easeInOutSine:[.37,0,.63,1],easeInQuad:[.11,0,.5,0],easeOutQuad:[.5,1,.89,1],easeInOutQuad:[.45,0,.55,1],easeInCubic:[.32,0,.67,0],easeOutCubic:[.33,1,.68,1],easeInOutCubic:[.65,0,.35,1],easeInQuart:[.5,0,.75,0],easeOutQuart:[.25,1,.5,1],easeInOutQuart:[.76,0,.24,1],easeInQuint:[.64,0,.78,0],easeOutQuint:[.22,1,.36,1],easeInOutQuint:[.83,0,.17,1],easeInExpo:[.7,0,.84,0],easeOutExpo:[.16,1,.3,1],easeInOutExpo:[.87,0,.13,1],easeInCirc:[.55,0,1,.45],easeOutCirc:[0,.55,.45,1],easeInOutCirc:[.85,0,.15,1],easeInBack:[.36,0,.66,-.56],easeOutBack:[.34,1.56,.64,1],easeInOutBack:[.68,-.6,.32,1.6]};XCe({linear:W2e},QCe);function ZCe(e,t,r,n={}){var i,o,s;const{clone:a=!1,passive:l=!1,eventName:c,deep:u=!1,defaultValue:f}=n,h=Ml(),d=r||h?.emit||((i=h?.$emit)==null?void 0:i.bind(h))||((s=(o=h?.proxy)==null?void 0:o.$emit)==null?void 0:s.bind(h?.proxy));let v=c;t||(t="modelValue"),v=c||v||`update:${t.toString()}`;const g=m=>a?Q4(a)?a(m):$Ce(m):m,p=()=>N2e(e[t])?g(e[t]):f;if(l){const m=p(),y=er(m);return zn(()=>e[t],b=>y.value=g(b)),zn(y,b=>{(b!==e[t]||u)&&d(v,b)},{deep:u}),y}else return Wr({get(){return p()},set(m){d(v,m)}})}const eEe=RS("nuxt-devtools-first-visit",!0),tEe=RS("nuxt-devtools-settings",{componentsView:"list",componentsGraphShowNodeModules:!1,componentsGraphShowPages:!1,componentsGraphShowLayouts:!1,componentsGraphShowWorkspace:!0,interactionCloseOnOutsideClick:!1,showExperimentalFeatures:!1,scale:1,hiddenTabs:[]},{mergeDefaults:!0}),rEe=X2e(tEe),nEe=RS("nuxt-devtools-frame-state",{},{listenToStorageChanges:!1}),iEe=RS("nuxt-devtools-panels-state",{},{listenToStorageChanges:!1});function Pse(){return rEe}function eHt(){return nEe}function tHt(){return iEe}function oEe(e,t,r=!1){return t.reduce((n,i)=>(i in e&&(!r||e[i]!==void 0)&&(n[i]=e[i]),n),{})}let k_;async function rHt(){return k_||(k_=await joe("https://cdn.jsdelivr.net/npm/@nuxt/modules@latest/modules.json"),k_)}function nHt(){const e=sh(),t=Ac("getComponents",()=>Ss.getComponents()),r=Wr(()=>Object.entries(e.value?.nuxt?.vueApp._context.components||{}).map(([n])=>({pascalName:n,global:!0})).filter(n=>!/^Lazy[A-Z]/.test(n.pascalName)).filter(n=>!(t.value||[]).find(i=>i.pascalName===n.pascalName)));return Wr(()=>[...r.value,...t.value||[]].sort((n,i)=>n.pascalName.localeCompare(i.pascalName)))}function sEe(){return Ac("getServerPages",()=>Ss.getServerPages())}function iHt(){return Ac("getComponentsRelationships",()=>Ss.getComponentsRelationships())}function oHt(){return Ac("getServerHooks",()=>Ss.getServerHooks(),{default:()=>[]})}function sHt(){return Ac("getServerLayouts",()=>Ss.getServerLayouts())}function aHt(){return Ac("getAutoImports",()=>Ss.getAutoImports())}function lHt(){return Ac("getStaticAssets",()=>Ss.getStaticAssets())}function cHt(){return Ac("getServerConfig",()=>Ss.getServerConfig())}function aEe(){return Ac("getCustomTabs",()=>Ss.getCustomTabs())}function lEe(){return Ac("getTerminals",()=>Ss.getTerminals())}function uHt(){const e=Ia(),t=aEe(),r=Pse(),n=Wr(()=>e.getRoutes().filter(s=>s.path.startsWith("/modules/")&&s.meta.title&&!s.meta.wip).filter(s=>!s.meta.experimental||s.meta.experimental&&r.showExperimentalFeatures.value).sort((s,a)=>(s.meta.order||100)-(a.meta.order||100)).map(s=>({name:s.name,path:s.path,...s.meta}))),i=Wr(()=>(t.value||[]).filter(s=>s.name.startsWith("builtin-"))),o=Wr(()=>(t.value||[]).filter(s=>!s.name.startsWith("builtin-")));return{custom:o,builtin:Wr(()=>[...n.value,...i.value]),all:Wr(()=>[...n.value,...i.value,...o.value])}}function fHt(){const e=j2e(),t=sEe();return Wr(()=>(e.value?.getRoutes()||[]).map(r=>oEe(r,["path","name","meta","props","children"])).map(r=>({...t.value?.find(n=>n.name&&n.name===r.name),...r})))}function cEe(){return Fg("devtools:restart-dialogs",()=>[])}const Gm={icon:"carbon-terminal",title:"Terminals",shouldShow(){return lEe().value?.length}},Jm={icon:"i-carbon-border-none",title:"Virtual Files"},kB=[{name:Pm?.name??"__inspecting",path:Pm?.path??"/__inspecting",meta:Pm||{},alias:Pm?.alias||[],redirect:Pm?.redirect||void 0,component:()=>In(()=>import("./__inspecting.143a746c.js"),[],import.meta.url).then(e=>e.default||e)},{name:Am?.name??"index",path:Am?.path??"/",meta:Am||{},alias:Am?.alias||[],redirect:Am?.redirect||void 0,component:()=>In(()=>import("./index.517491fb.js"),["./index.517491fb.js","./NuxtLogo.38adb408.js","./Badge.ec308af3.js"],import.meta.url).then(e=>e.default||e)},{name:Rm?.name??"modules-assets",path:Rm?.path??"/modules/assets",meta:Rm||{},alias:Rm?.alias||[],redirect:Rm?.redirect||void 0,component:()=>In(()=>import("./assets.d6a1ab2b.js"),["./assets.d6a1ab2b.js","./NTextInput.vue.d770ca6c.js","./index.c769634a.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js","./FilepathItem.vue.178a1de3.js","./editor.e10c09a2.js","./context.fe69916a.js","./NIconButton.vue.a83f99ea.js","./NCodeBlock.vue.593cb41f.js","./DrawerRight.vue.a85afa62.js","./fuse.esm.88e2763d.js"],import.meta.url).then(e=>e.default||e)},{name:Im?.name??"modules-components",path:Im?.path??"/modules/components",meta:Im||{},alias:Im?.alias||[],redirect:Im?.redirect||void 0,component:()=>In(()=>import("./components.1b7f02b2.js"),["./components.1b7f02b2.js","./NCheckbox.vue.4a02f339.js","./NIconButton.vue.a83f99ea.js","./Badge.ec308af3.js","./FilepathItem.vue.178a1de3.js","./editor.e10c09a2.js","./context.fe69916a.js","./DrawerRight.vue.a85afa62.js","./NTextInput.vue.d770ca6c.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js","./fuse.esm.88e2763d.js"],import.meta.url).then(e=>e.default||e)},{name:"modules-custom-name",path:"/modules/custom-:name",meta:{},alias:[],redirect:void 0,component:()=>In(()=>import("./custom-_name_.02ebd30e.js"),["./custom-_name_.02ebd30e.js","./LaunchPage.vue.a0bbd67e.js","./TabIcon.vue.8236980c.js","./NMarkdown.vue.11f68fad.js"],import.meta.url).then(e=>e.default||e)},{name:Mm?.name??"modules-hooks",path:Mm?.path??"/modules/hooks",meta:Mm||{},alias:Mm?.alias||[],redirect:Mm?.redirect||void 0,component:()=>In(()=>import("./hooks.aa487478.js"),["./hooks.aa487478.js","./DurationDisplay.vue.9b5b62d4.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js"],import.meta.url).then(e=>e.default||e)},{name:Dm?.name??"modules-imports",path:Dm?.path??"/modules/imports",meta:Dm||{},alias:Dm?.alias||[],redirect:Dm?.redirect||void 0,component:()=>In(()=>import("./imports.01c0f8be.js"),["./imports.01c0f8be.js","./NTextInput.vue.d770ca6c.js","./NSwitch.vue.76c93e66.js","./FilepathItem.vue.178a1de3.js","./editor.e10c09a2.js","./context.fe69916a.js","./NMarkdown.vue.11f68fad.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js","./fuse.esm.88e2763d.js"],import.meta.url).then(e=>e.default||e)},{name:Lm?.name??"modules-layouts",path:Lm?.path??"/modules/layouts",meta:Lm||{},alias:Lm?.alias||[],redirect:Lm?.redirect||void 0,component:()=>In(()=>import("./layouts.e447e192.js"),[],import.meta.url).then(e=>e.default||e)},{name:Nm?.name??"modules-middleware",path:Nm?.path??"/modules/middleware",meta:Nm||{},alias:Nm?.alias||[],redirect:Nm?.redirect||void 0,component:()=>In(()=>import("./middleware.e73473f1.js"),[],import.meta.url).then(e=>e.default||e)},{name:Bm?.name??"modules-modules",path:Bm?.path??"/modules/modules",meta:Bm||{},alias:Bm?.alias||[],redirect:Bm?.redirect||void 0,component:()=>In(()=>import("./modules.304ea21e.js"),["./modules.304ea21e.js","./FilepathItem.vue.178a1de3.js","./editor.e10c09a2.js","./context.fe69916a.js","./NpmVersionCheck.vue.0eab98c7.js","./Badge.ec308af3.js","./NCodeBlock.vue.593cb41f.js","./NCheckbox.vue.4a02f339.js","./NTip.vue.ac67cde4.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js"],import.meta.url).then(e=>e.default||e)},{name:Fm?.name??"modules-overview",path:Fm?.path??"/modules/overview",meta:Fm||{},alias:Fm?.alias||[],redirect:Fm?.redirect||void 0,component:()=>In(()=>import("./overview.b79bf694.js"),["./overview.b79bf694.js","./NuxtLogo.38adb408.js","./Badge.ec308af3.js","./NpmVersionCheck.vue.0eab98c7.js","./NCodeBlock.vue.593cb41f.js","./NCheckbox.vue.4a02f339.js","./NTip.vue.ac67cde4.js"],import.meta.url).then(e=>e.default||e)},{name:zm?.name??"modules-pages",path:zm?.path??"/modules/pages",meta:zm||{},alias:zm?.alias||[],redirect:zm?.redirect||void 0,component:()=>In(()=>import("./pages.fafa9fe0.js"),["./pages.fafa9fe0.js","./NTextInput.vue.d770ca6c.js","./Badge.ec308af3.js","./editor.e10c09a2.js","./context.fe69916a.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js","./LaunchPage.vue.a0bbd67e.js","./TabIcon.vue.8236980c.js","./NMarkdown.vue.11f68fad.js"],import.meta.url).then(e=>e.default||e)},{name:Hm?.name??"modules-payload",path:Hm?.path??"/modules/payload",meta:Hm||{},alias:Hm?.alias||[],redirect:Hm?.redirect||void 0,component:()=>In(()=>import("./payload.ee430f3a.js"),["./payload.ee430f3a.js","./StateEditor.vue.c57dfe46.js","./NIconButton.vue.a83f99ea.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js"],import.meta.url).then(e=>e.default||e)},{name:Wm?.name??"modules-plugins",path:Wm?.path??"/modules/plugins",meta:Wm||{},alias:Wm?.alias||[],redirect:Wm?.redirect||void 0,component:()=>In(()=>import("./plugins.5095ec46.js"),["./plugins.5095ec46.js","./NTip.vue.ac67cde4.js","./FilepathItem.vue.178a1de3.js","./editor.e10c09a2.js","./context.fe69916a.js","./Badge.ec308af3.js","./DurationDisplay.vue.9b5b62d4.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js"],import.meta.url).then(e=>e.default||e)},{name:Um?.name??"modules-runtime-configs",path:Um?.path??"/modules/runtime-configs",meta:Um||{},alias:Um?.alias||[],redirect:Um?.redirect||void 0,component:()=>In(()=>import("./runtime-configs.b20fbeb6.js"),["./runtime-configs.b20fbeb6.js","./StateEditor.vue.c57dfe46.js","./NIconButton.vue.a83f99ea.js","./NSectionBlock.c955e75e.js","./NIconTitle.vue.ce90e41b.js"],import.meta.url).then(e=>e.default||e)},{name:Vm?.name??"modules-server-routes",path:Vm?.path??"/modules/server-routes",meta:Vm||{},alias:Vm?.alias||[],redirect:Vm?.redirect||void 0,component:()=>In(()=>import("./server-routes.7352d340.js"),[],import.meta.url).then(e=>e.default||e)},{name:qm?.name??"modules-storage",path:qm?.path??"/modules/storage",meta:qm||{},alias:qm?.alias||[],redirect:qm?.redirect||void 0,component:()=>In(()=>import("./storage.2e73159a.js"),["./storage.2e73159a.js","./NIconButton.vue.a83f99ea.js","./NSelect.vue.e19311d6.js","./NTextInput.vue.d770ca6c.js","./PanelLeftRight.vue.90cdedcf.js"],import.meta.url).then(e=>e.default||e)},{name:Gm?.name??"modules-terminals",path:Gm?.path??"/modules/terminals",meta:Gm||{},alias:Gm?.alias||[],redirect:Gm?.redirect||void 0,component:()=>In(()=>import("./terminals.65080a19.js"),["./terminals.65080a19.js","./NIconButton.vue.a83f99ea.js","./terminals.4329aeb9.css"],import.meta.url).then(e=>e.default||e)},{name:Jm?.name??"modules-virtual-files",path:Jm?.path??"/modules/virtual-files",meta:Jm||{},alias:Jm?.alias||[],redirect:Jm?.redirect||void 0,component:()=>In(()=>import("./virtual-files.9eb05502.js"),["./virtual-files.9eb05502.js","./NTextInput.vue.d770ca6c.js","./NCodeBlock.vue.593cb41f.js","./PanelLeftRight.vue.90cdedcf.js","./index.c769634a.js","./fuse.esm.88e2763d.js","./virtual-files.a8748389.css"],import.meta.url).then(e=>e.default||e)},{name:"settings",path:"/settings",meta:{},alias:[],redirect:void 0,component:()=>In(()=>import("./settings.b6d3cae9.js"),["./settings.b6d3cae9.js","./NIconTitle.vue.ce90e41b.js","./NSelect.vue.e19311d6.js","./NCheckbox.vue.4a02f339.js","./TabIcon.vue.8236980c.js","./NSwitch.vue.76c93e66.js"],import.meta.url).then(e=>e.default||e)}],uEe={scrollBehavior(e,t,r){const n=Jn();let i=r||void 0;if(!i&&t&&e&&e.meta.scrollToTop!==!1&&fEe(t,e)&&(i={left:0,top:0}),e.path===t.path){if(t.hash&&!e.hash)return{left:0,top:0};if(e.hash)return{el:e.hash,top:xB(e.hash)}}const o=a=>!!(a.meta.pageTransition??oP),s=o(t)&&o(e)?"page:transition:finish":"page:finish";return new Promise(a=>{n.hooks.hookOnce(s,async()=>{await Eu(),e.hash&&(i={el:e.hash,top:xB(e.hash)}),a(i)})})}};function xB(e){try{const t=document.querySelector(e);if(t)return parseFloat(getComputedStyle(t).scrollMarginTop)}catch{}return 0}function fEe(e,t){const r=e.matched[0]===t.matched[0];return!!(!r||r&&JSON.stringify(e.params)!==JSON.stringify(t.params))}const hEe={},Ym={...hEe,...uEe},dEe=tse(async e=>{let t,r;if(!e.meta?.validate)return;const n=Jn(),i=Ia();if(([t,r]=iP(()=>Promise.resolve(e.meta.validate(e))),t=await t,r(),t)===!0)return;const s=bk({statusCode:404,statusMessage:`Page Not Found: ${e.fullPath}`}),a=i.beforeResolve(l=>{if(a(),l===e){const c=i.afterEach(async()=>{c(),await Vc(n,Kv,[s]),window.history.pushState({},"",e.fullPath)});return!1}})}),vEe=tse(e=>{if(e.path==="/"&&!eEe.value)return rse("/modules/overview")}),pEe=[dEe,vEe],yP={};function gEe(e,t){const{pathname:r,search:n,hash:i}=t,o=e.indexOf("#");if(o>-1){const a=i.includes(e.slice(o))?e.slice(o).length:1;let l=i.slice(a);return l[0]!=="/"&&(l="/"+l),mN(l,"")}return mN(r,e)+n+i}const mEe=Dl(async e=>{let t,r,n=V4().app.baseURL;Ym.hashMode&&!n.includes("#")&&(n+="#");const i=Ym.history?.(n)??(Ym.hashMode?xxe(n):Woe(n)),o=Ym.routes?.(kB)??kB,s=gEe(n,window.location),a=aSe({...Ym,history:i,routes:o});e.vueApp.use(a);const l=Hp(a.currentRoute.value);a.afterEach((v,g)=>{l.value=g}),Object.defineProperty(e.vueApp.config.globalProperties,"previousRoute",{get:()=>l.value});const c=Hp(a.resolve(s)),u=()=>{c.value=a.currentRoute.value};e.hook("page:finish",u),a.afterEach((v,g)=>{v.matched[0]?.components?.default===g.matched[0]?.components?.default&&u()});const f={};for(const v in c.value)f[v]=Wr(()=>c.value[v]);e._route=El(f),e._middleware=e._middleware||{global:[],named:{}};const h=PS();try{[t,r]=iP(()=>a.isReady()),await t,r()}catch(v){[t,r]=iP(()=>Vc(e,Kv,[v])),await t,r()}const d=Fg("_layout");return a.beforeEach(async(v,g)=>{v.meta=El(v.meta),e.isHydrating&&d.value&&!xd(v.meta.layout)&&(v.meta.layout=d.value),e._processingMiddleware=!0;const p=new Set([...pEe,...e._middleware.global]);for(const m of v.matched){const y=m.meta.middleware;if(y)if(Array.isArray(y))for(const b of y)p.add(b);else p.add(y)}for(const m of p){const y=typeof m=="string"?e._middleware.named[m]||await yP[m]?.().then(_=>_.default||_):m;if(!y)throw new Error(`Unknown route middleware: '${m}'.`);const b=await Vc(e,y,[v,g]);if(!e.payload.serverRendered&&e.isHydrating&&(b===!1||b instanceof Error)){const _=b||fP({statusCode:404,statusMessage:`Page Not Found: ${s}`});return await Vc(e,Kv,[_]),!1}if(b||b===!1)return b}}),a.afterEach(async v=>{delete e._processingMiddleware,!e.isHydrating&&h.value&&await Vc(e,pSe),v.matched.length===0&&await Vc(e,Kv,[fP({statusCode:404,fatal:!1,statusMessage:`Page not found: ${v.fullPath}`})])}),e.hooks.hookOnce("app:created",async()=>{try{await a.replace({...a.resolve(s),name:void 0,force:!0})}catch(v){await Vc(e,Kv,[v])}}),{provide:{router:a}}}),Gv={default:()=>In(()=>import("./default.e6b60844.js"),["./default.e6b60844.js","./context.fe69916a.js","./TabIcon.vue.8236980c.js"],import.meta.url).then(e=>e.default||e),none:()=>In(()=>import("./none.3e2499ec.js"),[],import.meta.url).then(e=>e.default||e)},yEe=Dl(()=>{const e=Jn(),t=Ia();e.hooks.hook("app:mounted",()=>{t.beforeEach(async r=>{const n=r?.meta?.layout;n&&typeof Gv[n]=="function"&&await Gv[n]()})}),e.hooks.hook("link:prefetch",r=>{if(Bg(r))return;const n=t.resolve(r);if(!n)return;const i=n?.meta?.layout;let o=Array.isArray(n?.meta?.middleware)?n?.meta?.middleware:[n?.meta?.middleware];o=o.filter(s=>typeof s=="string");for(const s of o)typeof yP[s]=="function"&&yP[s]();i&&typeof Gv[i]=="function"&&Gv[i]()})}),bEe="__NUXT_COLOR_MODE__",hHt="ColorScheme",_Ee="nuxt-color-mode",Fc=window[bEe],wEe=Dl(e=>{const t=Fg("color-mode",()=>El({preference:Fc.preference,value:Fc.value,unknown:!1,forced:!1})).value;Ia().afterEach(i=>{const o=i.meta.colorMode;o&&o!=="system"?(t.value=o,t.forced=!0):(o==="system"&&console.warn("You cannot force the colorMode to system at the page level."),t.forced=!1,t.value=t.preference==="system"?Fc.getColorScheme():t.preference)});let r;function n(){r||!window.matchMedia||(r=window.matchMedia("(prefers-color-scheme: dark)"),r.addEventListener("change",()=>{!t.forced&&t.preference==="system"&&(t.value=Fc.getColorScheme())}))}zn(()=>t.preference,i=>{t.forced||(i==="system"?(t.value=Fc.getColorScheme(),n()):t.value=i,window.localStorage?.setItem(_Ee,i))},{immediate:!0}),zn(()=>t.value,(i,o)=>{Fc.removeColorScheme(o),Fc.addColorScheme(i)}),t.preference==="system"&&n(),e.hook("app:mounted",()=>{t.unknown&&(t.preference=Fc.preference,t.value=Fc.value,t.unknown=!1)}),e.provide("colorMode",t)});const $Ee=Dl(()=>{}),kEe=Dl(e=>{const t=Ia(),r=V4(),n=new Set;t.beforeEach(()=>{n.clear()}),e.hook("app:chunkError",({error:i})=>{n.add(i)}),t.onError((i,o)=>{if(n.has(i)){const a="href"in o&&o.href.startsWith("#")?r.app.baseURL+o.href:I1(r.app.baseURL,o.fullPath);jSe({path:a,persistState:!0})}})}),xEe=Dl(e=>{ESe()&&(e.hooks.hook("link:prefetch",async t=>{M1(t).protocol||await WN(t)}),Ia().beforeResolve(async(t,r)=>{if(t.path===r.path)return;const n=await WN(t.path);n&&Object.assign(e.static.data,n.data)}))});function Ou(e){return e.split("-")[0]}function wp(e){return e.split("-")[1]}function D1(e){return["top","bottom"].includes(Ou(e))?"x":"y"}function t5(e){return e==="y"?"height":"width"}function SB(e){let{reference:t,floating:r,placement:n}=e;const i=t.x+t.width/2-r.width/2,o=t.y+t.height/2-r.height/2;let s;switch(Ou(n)){case"top":s={x:i,y:t.y-r.height};break;case"bottom":s={x:i,y:t.y+t.height};break;case"right":s={x:t.x+t.width,y:o};break;case"left":s={x:t.x-r.width,y:o};break;default:s={x:t.x,y:t.y}}const a=D1(n),l=t5(a);switch(wp(n)){case"start":s[a]=s[a]-(t[l]/2-r[l]/2);break;case"end":s[a]=s[a]+(t[l]/2-r[l]/2);break}return s}const SEe=async(e,t,r)=>{const{placement:n="bottom",strategy:i="absolute",middleware:o=[],platform:s}=r;let a=await s.getElementRects({reference:e,floating:t,strategy:i}),{x:l,y:c}=SB({...a,placement:n}),u=n,f={};for(let h=0;h<o.length;h++){const{name:d,fn:v}=o[h],{x:g,y:p,data:m,reset:y}=await v({x:l,y:c,initialPlacement:n,placement:u,strategy:i,middlewareData:f,rects:a,platform:s,elements:{reference:e,floating:t}});if(l=g??l,c=p??c,f={...f,[d]:m??{}},y){typeof y=="object"&&(y.placement&&(u=y.placement),y.rects&&(a=y.rects===!0?await s.getElementRects({reference:e,floating:t,strategy:i}):y.rects),{x:l,y:c}=SB({...a,placement:u})),h=-1;continue}}return{x:l,y:c,placement:u,strategy:i,middlewareData:f}};function CEe(e){return{top:0,right:0,bottom:0,left:0,...e}}function Ase(e){return typeof e!="number"?CEe(e):{top:e,right:e,bottom:e,left:e}}function bP(e){return{...e,top:e.y,left:e.x,right:e.x+e.width,bottom:e.y+e.height}}async function IS(e,t){t===void 0&&(t={});const{x:r,y:n,platform:i,rects:o,elements:s,strategy:a}=e,{boundary:l="clippingParents",rootBoundary:c="viewport",elementContext:u="floating",altBoundary:f=!1,padding:h=0}=t,d=Ase(h),g=s[f?u==="floating"?"reference":"floating":u],p=await i.getClippingClientRect({element:await i.isElement(g)?g:g.contextElement||await i.getDocumentElement({element:s.floating}),boundary:l,rootBoundary:c}),m=bP(await i.convertOffsetParentRelativeRectToViewportRelativeRect({rect:u==="floating"?{...o.floating,x:r,y:n}:o.reference,offsetParent:await i.getOffsetParent({element:s.floating}),strategy:a}));return{top:p.top-m.top+d.top,bottom:m.bottom-p.bottom+d.bottom,left:p.left-m.left+d.left,right:m.right-p.right+d.right}}const EEe=Math.min,Dh=Math.max;function _P(e,t,r){return Dh(e,EEe(t,r))}const jEe=e=>({name:"arrow",options:e,async fn(t){const{element:r,padding:n=0}=e??{},{x:i,y:o,placement:s,rects:a,platform:l}=t;if(r==null)return{};const c=Ase(n),u={x:i,y:o},f=Ou(s),h=D1(f),d=t5(h),v=await l.getDimensions({element:r}),g=h==="y"?"top":"left",p=h==="y"?"bottom":"right",m=a.reference[d]+a.reference[h]-u[h]-a.floating[d],y=u[h]-a.reference[h],b=await l.getOffsetParent({element:r}),_=b?h==="y"?b.clientHeight||0:b.clientWidth||0:0,$=m/2-y/2,w=c[g],S=_-v[d]-c[p],k=_/2-v[d]/2+$,x=_P(w,k,S);return{data:{[h]:x,centerOffset:k-x}}}}),OEe={left:"right",right:"left",bottom:"top",top:"bottom"};function Ck(e){return e.replace(/left|right|bottom|top/g,t=>OEe[t])}function Rse(e,t){const r=wp(e)==="start",n=D1(e),i=t5(n);let o=n==="x"?r?"right":"left":r?"bottom":"top";return t.reference[i]>t.floating[i]&&(o=Ck(o)),{main:o,cross:Ck(o)}}const TEe={start:"end",end:"start"};function wP(e){return e.replace(/start|end/g,t=>TEe[t])}const PEe=["top","right","bottom","left"],AEe=PEe.reduce((e,t)=>e.concat(t,t+"-start",t+"-end"),[]);function REe(e,t,r){return(e?[...r.filter(i=>wp(i)===e),...r.filter(i=>wp(i)!==e)]:r.filter(i=>Ou(i)===i)).filter(i=>e?wp(i)===e||(t?wP(i)!==i:!1):!0)}const IEe=function(e){return e===void 0&&(e={}),{name:"autoPlacement",options:e,async fn(t){var r,n,i,o,s,a;const{x:l,y:c,rects:u,middlewareData:f,placement:h}=t,{alignment:d=null,allowedPlacements:v=AEe,autoAlignment:g=!0,...p}=e;if((r=f.autoPlacement)!=null&&r.skip)return{};const m=REe(d,g,v),y=await IS(t,p),b=(n=(i=f.autoPlacement)==null?void 0:i.index)!=null?n:0,_=m[b],{main:$,cross:w}=Rse(_,u);if(h!==_)return{x:l,y:c,reset:{placement:m[0]}};const S=[y[Ou(_)],y[$],y[w]],k=[...(o=(s=f.autoPlacement)==null?void 0:s.overflows)!=null?o:[],{placement:_,overflows:S}],x=m[b+1];if(x)return{data:{index:b+1,overflows:k},reset:{placement:x}};const C=k.slice().sort((j,A)=>j.overflows[0]-A.overflows[0]),E=(a=C.find(j=>{let{overflows:A}=j;return A.every(T=>T<=0)}))==null?void 0:a.placement;return{data:{skip:!0},reset:{placement:E??C[0].placement}}}}};function MEe(e){const t=Ck(e);return[wP(e),t,wP(t)]}const DEe=function(e){return e===void 0&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:i,middlewareData:o,rects:s,initialPlacement:a}=t;if((r=o.flip)!=null&&r.skip)return{};const{mainAxis:l=!0,crossAxis:c=!0,fallbackPlacements:u,fallbackStrategy:f="bestFit",flipAlignment:h=!0,...d}=e,v=Ou(i),p=u||(v===a||!h?[Ck(a)]:MEe(a)),m=[a,...p],y=await IS(t,d),b=[];let _=((n=o.flip)==null?void 0:n.overflows)||[];if(l&&b.push(y[v]),c){const{main:k,cross:x}=Rse(i,s);b.push(y[k],y[x])}if(_=[..._,{placement:i,overflows:b}],!b.every(k=>k<=0)){var $,w;const k=(($=(w=o.flip)==null?void 0:w.index)!=null?$:0)+1,x=m[k];if(x)return{data:{index:k,overflows:_},reset:{placement:x}};let C="bottom";switch(f){case"bestFit":{var S;const E=(S=_.slice().sort((j,A)=>j.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0)-A.overflows.filter(T=>T>0).reduce((T,L)=>T+L,0))[0])==null?void 0:S.placement;E&&(C=E);break}case"initialPlacement":C=a;break}return{data:{skip:!0},reset:{placement:C}}}return{}}}};function LEe(e){let{placement:t,rects:r,value:n}=e;const i=Ou(t),o=["left","top"].includes(i)?-1:1,s=typeof n=="function"?n({...r,placement:t}):n,{mainAxis:a,crossAxis:l}=typeof s=="number"?{mainAxis:s,crossAxis:0}:{mainAxis:0,crossAxis:0,...s};return D1(i)==="x"?{x:l,y:a*o}:{x:a*o,y:l}}const NEe=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(t){const{x:r,y:n,placement:i,rects:o}=t,s=LEe({placement:i,rects:o,value:e});return{x:r+s.x,y:n+s.y,data:s}}}};function BEe(e){return e==="x"?"y":"x"}const FEe=function(e){return e===void 0&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:i}=t,{mainAxis:o=!0,crossAxis:s=!1,limiter:a={fn:p=>{let{x:m,y}=p;return{x:m,y}}},...l}=e,c={x:r,y:n},u=await IS(t,l),f=D1(Ou(i)),h=BEe(f);let d=c[f],v=c[h];if(o){const p=f==="y"?"top":"left",m=f==="y"?"bottom":"right",y=d+u[p],b=d-u[m];d=_P(y,d,b)}if(s){const p=h==="y"?"top":"left",m=h==="y"?"bottom":"right",y=v+u[p],b=v-u[m];v=_P(y,v,b)}const g=a.fn({...t,[f]:d,[h]:v});return{...g,data:{x:g.x-r,y:g.y-n}}}}},zEe=function(e){return e===void 0&&(e={}),{name:"size",options:e,async fn(t){var r;const{placement:n,rects:i,middlewareData:o}=t,{apply:s,...a}=e;if((r=o.size)!=null&&r.skip)return{};const l=await IS(t,a),c=Ou(n),u=wp(n)==="end";let f,h;c==="top"||c==="bottom"?(f=c,h=u?"left":"right"):(h=c,f=u?"top":"bottom");const d=Dh(l.left,0),v=Dh(l.right,0),g=Dh(l.top,0),p=Dh(l.bottom,0),m={height:i.floating.height-(["left","right"].includes(n)?2*(g!==0||p!==0?g+p:Dh(l.top,l.bottom)):l[f]),width:i.floating.width-(["top","bottom"].includes(n)?2*(d!==0||v!==0?d+v:Dh(l.left,l.right)):l[h])};return s?.({...m,...i}),{data:{skip:!0},reset:{rects:!0}}}}};function r5(e){return e?.toString()==="[object Window]"}function ah(e){if(e==null)return window;if(!r5(e)){const t=e.ownerDocument;return t&&t.defaultView||window}return e}function MS(e){return ah(e).getComputedStyle(e)}function gu(e){return r5(e)?"":e?(e.nodeName||"").toLowerCase():""}function mu(e){return e instanceof ah(e).HTMLElement}function Ek(e){return e instanceof ah(e).Element}function HEe(e){return e instanceof ah(e).Node}function Ise(e){const t=ah(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function DS(e){const{overflow:t,overflowX:r,overflowY:n}=MS(e);return/auto|scroll|overlay|hidden/.test(t+n+r)}function WEe(e){return["table","td","th"].includes(gu(e))}function Mse(e){const t=navigator.userAgent.toLowerCase().includes("firefox"),r=MS(e);return r.transform!=="none"||r.perspective!=="none"||r.contain==="paint"||["transform","perspective"].includes(r.willChange)||t&&r.willChange==="filter"||t&&(r.filter?r.filter!=="none":!1)}const CB=Math.min,W0=Math.max,jk=Math.round;function Zp(e,t){t===void 0&&(t=!1);const r=e.getBoundingClientRect();let n=1,i=1;return t&&mu(e)&&(n=e.offsetWidth>0&&jk(r.width)/e.offsetWidth||1,i=e.offsetHeight>0&&jk(r.height)/e.offsetHeight||1),{width:r.width/n,height:r.height/i,top:r.top/i,right:r.right/n,bottom:r.bottom/i,left:r.left/n,x:r.left/n,y:r.top/i}}function lh(e){return((HEe(e)?e.ownerDocument:e.document)||window.document).documentElement}function LS(e){return r5(e)?{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}:{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function Dse(e){return Zp(lh(e)).left+LS(e).scrollLeft}function UEe(e){const t=Zp(e);return jk(t.width)!==e.offsetWidth||jk(t.height)!==e.offsetHeight}function VEe(e,t,r){const n=mu(t),i=lh(t),o=Zp(e,n&&UEe(t));let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if(n||!n&&r!=="fixed")if((gu(t)!=="body"||DS(i))&&(s=LS(t)),mu(t)){const l=Zp(t,!0);a.x=l.x+t.clientLeft,a.y=l.y+t.clientTop}else i&&(a.x=Dse(i));return{x:o.left+s.scrollLeft-a.x,y:o.top+s.scrollTop-a.y,width:o.width,height:o.height}}function NS(e){return gu(e)==="html"?e:e.assignedSlot||e.parentNode||(Ise(e)?e.host:null)||lh(e)}function EB(e){return!mu(e)||getComputedStyle(e).position==="fixed"?null:e.offsetParent}function qEe(e){let t=NS(e);for(;mu(t)&&!["html","body"].includes(gu(t));){if(Mse(t))return t;t=t.parentNode}return null}function $P(e){const t=ah(e);let r=EB(e);for(;r&&WEe(r)&&getComputedStyle(r).position==="static";)r=EB(r);return r&&(gu(r)==="html"||gu(r)==="body"&&getComputedStyle(r).position==="static"&&!Mse(r))?t:r||qEe(e)||t}function jB(e){return{width:e.offsetWidth,height:e.offsetHeight}}function KEe(e){let{rect:t,offsetParent:r,strategy:n}=e;const i=mu(r),o=lh(r);if(r===o)return t;let s={scrollLeft:0,scrollTop:0};const a={x:0,y:0};if((i||!i&&n!=="fixed")&&((gu(r)!=="body"||DS(o))&&(s=LS(r)),mu(r))){const l=Zp(r,!0);a.x=l.x+r.clientLeft,a.y=l.y+r.clientTop}return{...t,x:t.x-s.scrollLeft+a.x,y:t.y-s.scrollTop+a.y}}function GEe(e){const t=ah(e),r=lh(e),n=t.visualViewport;let i=r.clientWidth,o=r.clientHeight,s=0,a=0;return n&&(i=n.width,o=n.height,Math.abs(t.innerWidth/n.scale-n.width)<.01&&(s=n.offsetLeft,a=n.offsetTop)),{width:i,height:o,x:s,y:a}}function JEe(e){var t;const r=lh(e),n=LS(e),i=(t=e.ownerDocument)==null?void 0:t.body,o=W0(r.scrollWidth,r.clientWidth,i?i.scrollWidth:0,i?i.clientWidth:0),s=W0(r.scrollHeight,r.clientHeight,i?i.scrollHeight:0,i?i.clientHeight:0);let a=-n.scrollLeft+Dse(e);const l=-n.scrollTop;return MS(i||r).direction==="rtl"&&(a+=W0(r.clientWidth,i?i.clientWidth:0)-o),{width:o,height:s,x:a,y:l}}function Lse(e){return["html","body","#document"].includes(gu(e))?e.ownerDocument.body:mu(e)&&DS(e)?e:Lse(NS(e))}function Ok(e,t){var r;t===void 0&&(t=[]);const n=Lse(e),i=n===((r=e.ownerDocument)==null?void 0:r.body),o=ah(n),s=i?[o].concat(o.visualViewport||[],DS(n)?n:[]):n,a=t.concat(s);return i?a:a.concat(Ok(NS(s)))}function YEe(e,t){const r=t.getRootNode==null?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&Ise(r)){let n=t;do{if(n&&e===n)return!0;n=n.parentNode||n.host}while(n)}return!1}function XEe(e){const t=Zp(e),r=t.top+e.clientTop,n=t.left+e.clientLeft;return{top:r,left:n,x:n,y:r,right:n+e.clientWidth,bottom:r+e.clientHeight,width:e.clientWidth,height:e.clientHeight}}function OB(e,t){return t==="viewport"?bP(GEe(e)):Ek(t)?XEe(t):bP(JEe(lh(e)))}function QEe(e){const t=Ok(NS(e)),n=["absolute","fixed"].includes(MS(e).position)&&mu(e)?$P(e):e;return Ek(n)?t.filter(i=>Ek(i)&&YEe(i,n)&&gu(i)!=="body"):[]}function ZEe(e){let{element:t,boundary:r,rootBoundary:n}=e;const o=[...r==="clippingParents"?QEe(t):[].concat(r),n],s=o[0],a=o.reduce((l,c)=>{const u=OB(t,c);return l.top=W0(u.top,l.top),l.right=CB(u.right,l.right),l.bottom=CB(u.bottom,l.bottom),l.left=W0(u.left,l.left),l},OB(t,s));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}const eje={getElementRects:e=>{let{reference:t,floating:r,strategy:n}=e;return{reference:VEe(t,$P(r),n),floating:{...jB(r),x:0,y:0}}},convertOffsetParentRelativeRectToViewportRelativeRect:e=>KEe(e),getOffsetParent:e=>{let{element:t}=e;return $P(t)},isElement:e=>Ek(e),getDocumentElement:e=>{let{element:t}=e;return lh(t)},getClippingClientRect:e=>ZEe(e),getDimensions:e=>{let{element:t}=e;return jB(t)},getClientRects:e=>{let{element:t}=e;return t.getClientRects()}},tje=(e,t,r)=>SEe(e,t,{platform:eje,...r});var rje=Object.defineProperty,nje=Object.defineProperties,ije=Object.getOwnPropertyDescriptors,TB=Object.getOwnPropertySymbols,oje=Object.prototype.hasOwnProperty,sje=Object.prototype.propertyIsEnumerable,PB=(e,t,r)=>t in e?rje(e,t,{enumerable:!0,configurable:!0,writable:!0,value:r}):e[t]=r,Gc=(e,t)=>{for(var r in t||(t={}))oje.call(t,r)&&PB(e,r,t[r]);if(TB)for(var r of TB(t))sje.call(t,r)&&PB(e,r,t[r]);return e},L1=(e,t)=>nje(e,ije(t));function Nse(e,t){for(const r in t)Object.prototype.hasOwnProperty.call(t,r)&&(typeof t[r]=="object"&&e[r]?Nse(e[r],t[r]):e[r]=t[r])}const tu={disabled:!1,distance:5,skidding:0,container:"body",boundary:void 0,instantMove:!1,disposeTimeout:5e3,popperTriggers:[],strategy:"absolute",preventOverflow:!0,flip:!0,shift:!0,overflowPadding:0,arrowPadding:0,arrowOverflow:!0,themes:{tooltip:{placement:"top",triggers:["hover","focus","touch"],hideTriggers:e=>[...e,"click"],delay:{show:200,hide:0},handleResize:!1,html:!1,loadingContent:"..."},dropdown:{placement:"bottom",triggers:["click"],delay:0,handleResize:!0,autoHide:!0},menu:{$extend:"dropdown",triggers:["hover","focus"],popperTriggers:["hover","focus"],delay:{show:0,hide:400}}}};function eg(e,t){let r=tu.themes[e]||{},n;do n=r[t],typeof n>"u"?r.$extend?r=tu.themes[r.$extend]||{}:(r=null,n=tu[t]):r=null;while(r);return n}function aje(e){const t=[e];let r=tu.themes[e]||{};do r.$extend&&!r.$resetCss?(t.push(r.$extend),r=tu.themes[r.$extend]||{}):r=null;while(r);return t.map(n=>`v-popper--theme-${n}`)}function AB(e){const t=[e];let r=tu.themes[e]||{};do r.$extend?(t.push(r.$extend),r=tu.themes[r.$extend]||{}):r=null;while(r);return t}let Cd=!1;if(typeof window<"u"){Cd=!1;try{const e=Object.defineProperty({},"passive",{get(){Cd=!0}});window.addEventListener("test",null,e)}catch{}}let Bse=!1;typeof window<"u"&&typeof navigator<"u"&&(Bse=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream);const Fse=["auto","top","bottom","left","right"].reduce((e,t)=>e.concat([t,`${t}-start`,`${t}-end`]),[]),RB={hover:"mouseenter",focus:"focus",click:"click",touch:"touchstart"},IB={hover:"mouseleave",focus:"blur",click:"click",touch:"touchend"};function MB(e,t){const r=e.indexOf(t);r!==-1&&e.splice(r,1)}function rE(){return new Promise(e=>requestAnimationFrame(()=>{requestAnimationFrame(e)}))}const sl=[];let jh=null;const DB={};function LB(e){let t=DB[e];return t||(t=DB[e]=[]),t}let kP=function(){};typeof window<"u"&&(kP=window.Element);function Jr(e){return function(t){return eg(t.theme,e)}}const nE="__floating-vue__popper";var zse=()=>ri({name:"VPopper",provide(){return{[nE]:{parentPopper:this}}},inject:{[nE]:{default:null}},props:{theme:{type:String,required:!0},targetNodes:{type:Function,required:!0},referenceNode:{type:Function,default:null},popperNode:{type:Function,required:!0},shown:{type:Boolean,default:!1},showGroup:{type:String,default:null},ariaId:{default:null},disabled:{type:Boolean,default:Jr("disabled")},positioningDisabled:{type:Boolean,default:Jr("positioningDisabled")},placement:{type:String,default:Jr("placement"),validator:e=>Fse.includes(e)},delay:{type:[String,Number,Object],default:Jr("delay")},distance:{type:[Number,String],default:Jr("distance")},skidding:{type:[Number,String],default:Jr("skidding")},triggers:{type:Array,default:Jr("triggers")},showTriggers:{type:[Array,Function],default:Jr("showTriggers")},hideTriggers:{type:[Array,Function],default:Jr("hideTriggers")},popperTriggers:{type:Array,default:Jr("popperTriggers")},popperShowTriggers:{type:[Array,Function],default:Jr("popperShowTriggers")},popperHideTriggers:{type:[Array,Function],default:Jr("popperHideTriggers")},container:{type:[String,Object,kP,Boolean],default:Jr("container")},boundary:{type:[String,kP],default:Jr("boundary")},strategy:{type:String,validator:e=>["absolute","fixed"].includes(e),default:Jr("strategy")},autoHide:{type:[Boolean,Function],default:Jr("autoHide")},handleResize:{type:Boolean,default:Jr("handleResize")},instantMove:{type:Boolean,default:Jr("instantMove")},eagerMount:{type:Boolean,default:Jr("eagerMount")},popperClass:{type:[String,Array,Object],default:Jr("popperClass")},computeTransformOrigin:{type:Boolean,default:Jr("computeTransformOrigin")},autoMinSize:{type:Boolean,default:Jr("autoMinSize")},autoSize:{type:[Boolean,String],default:Jr("autoSize")},autoMaxSize:{type:Boolean,default:Jr("autoMaxSize")},autoBoundaryMaxSize:{type:Boolean,default:Jr("autoBoundaryMaxSize")},preventOverflow:{type:Boolean,default:Jr("preventOverflow")},overflowPadding:{type:[Number,String],default:Jr("overflowPadding")},arrowPadding:{type:[Number,String],default:Jr("arrowPadding")},arrowOverflow:{type:Boolean,default:Jr("arrowOverflow")},flip:{type:Boolean,default:Jr("flip")},shift:{type:Boolean,default:Jr("shift")},shiftCrossAxis:{type:Boolean,default:Jr("shiftCrossAxis")},noAutoFocus:{type:Boolean,default:Jr("noAutoFocus")}},emits:["show","hide","update:shown","apply-show","apply-hide","close-group","close-directive","auto-hide","resize","dispose"],data(){return{isShown:!1,isMounted:!1,skipTransition:!1,classes:{showFrom:!1,showTo:!1,hideFrom:!1,hideTo:!0},result:{x:0,y:0,placement:"",strategy:this.strategy,arrow:{x:0,y:0,centerOffset:0},transformOrigin:null},shownChildren:new Set,lastAutoHide:!0}},computed:{popperId(){return this.ariaId!=null?this.ariaId:this.randomId},shouldMountContent(){return this.eagerMount||this.isMounted},slotData(){return{popperId:this.popperId,isShown:this.isShown,shouldMountContent:this.shouldMountContent,skipTransition:this.skipTransition,autoHide:typeof this.autoHide=="function"?this.lastAutoHide:this.autoHide,show:this.show,hide:this.hide,handleResize:this.handleResize,onResize:this.onResize,classes:L1(Gc({},this.classes),{popperClass:this.popperClass}),result:this.positioningDisabled?null:this.result,attrs:this.$attrs}},parentPopper(){var e;return(e=this[nE])==null?void 0:e.parentPopper},hasPopperShowTriggerHover(){var e,t;return((e=this.popperTriggers)==null?void 0:e.includes("hover"))||((t=this.popperShowTriggers)==null?void 0:t.includes("hover"))}},watch:Gc(Gc({shown:"$_autoShowHide",disabled(e){e?this.dispose():this.init()},async container(){this.isShown&&(this.$_ensureTeleport(),await this.$_computePosition())}},["triggers","positioningDisabled"].reduce((e,t)=>(e[t]="$_refreshListeners",e),{})),["placement","distance","skidding","boundary","strategy","overflowPadding","arrowPadding","preventOverflow","shift","shiftCrossAxis","flip"].reduce((e,t)=>(e[t]="$_computePosition",e),{})),created(){this.$_isDisposed=!0,this.randomId=`popper_${[Math.random(),Date.now()].map(e=>e.toString(36).substring(2,10)).join("_")}`,this.autoMinSize&&console.warn('[floating-vue] `autoMinSize` option is deprecated. Use `autoSize="min"` instead.'),this.autoMaxSize&&console.warn("[floating-vue] `autoMaxSize` option is deprecated. Use `autoBoundaryMaxSize` instead.")},mounted(){this.init(),this.$_detachPopperNode()},activated(){this.$_autoShowHide()},deactivated(){this.hide()},beforeUnmount(){this.dispose()},methods:{show({event:e=null,skipDelay:t=!1,force:r=!1}={}){var n,i;(n=this.parentPopper)!=null&&n.lockedChild&&this.parentPopper.lockedChild!==this||(this.$_pendingHide=!1,(r||!this.disabled)&&(((i=this.parentPopper)==null?void 0:i.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_scheduleShow(e,t),this.$emit("show"),this.$_showFrameLocked=!0,requestAnimationFrame(()=>{this.$_showFrameLocked=!1})),this.$emit("update:shown",!0))},hide({event:e=null,skipDelay:t=!1}={}){var r;if(!this.$_hideInProgress){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}if(this.hasPopperShowTriggerHover&&this.$_isAimingPopper()){this.parentPopper&&(this.parentPopper.lockedChild=this,clearTimeout(this.parentPopper.lockedChildTimer),this.parentPopper.lockedChildTimer=setTimeout(()=>{this.parentPopper.lockedChild===this&&(this.parentPopper.lockedChild.hide({skipDelay:t}),this.parentPopper.lockedChild=null)},1e3));return}((r=this.parentPopper)==null?void 0:r.lockedChild)===this&&(this.parentPopper.lockedChild=null),this.$_pendingHide=!1,this.$_scheduleHide(e,t),this.$emit("hide"),this.$emit("update:shown",!1)}},init(){var e,t;this.$_isDisposed&&(this.$_isDisposed=!1,this.isMounted=!1,this.$_events=[],this.$_preventShow=!1,this.$_referenceNode=(t=(e=this.referenceNode)==null?void 0:e.call(this))!=null?t:this.$el,this.$_targetNodes=this.targetNodes().filter(r=>r.nodeType===r.ELEMENT_NODE),this.$_popperNode=this.popperNode(),this.$_innerNode=this.$_popperNode.querySelector(".v-popper__inner"),this.$_arrowNode=this.$_popperNode.querySelector(".v-popper__arrow-container"),this.$_swapTargetAttrs("title","data-original-title"),this.$_detachPopperNode(),this.triggers.length&&this.$_addEventListeners(),this.shown&&this.show())},dispose(){this.$_isDisposed||(this.$_isDisposed=!0,this.$_removeEventListeners(),this.hide({skipDelay:!0}),this.$_detachPopperNode(),this.isMounted=!1,this.isShown=!1,this.$_updateParentShownChildren(!1),this.$_swapTargetAttrs("data-original-title","title"),this.$emit("dispose"))},async onResize(){this.isShown&&(await this.$_computePosition(),this.$emit("resize"))},async $_computePosition(){var e;if(this.$_isDisposed||this.positioningDisabled)return;const t={strategy:this.strategy,middleware:[]};(this.distance||this.skidding)&&t.middleware.push(NEe({mainAxis:this.distance,crossAxis:this.skidding}));const r=this.placement.startsWith("auto");if(r?t.middleware.push(IEe({alignment:(e=this.placement.split("-")[1])!=null?e:""})):t.placement=this.placement,this.preventOverflow&&(this.shift&&t.middleware.push(FEe({padding:this.overflowPadding,boundary:this.boundary,crossAxis:this.shiftCrossAxis})),!r&&this.flip&&t.middleware.push(DEe({padding:this.overflowPadding,boundary:this.boundary}))),t.middleware.push(jEe({element:this.$_arrowNode,padding:this.arrowPadding})),this.arrowOverflow&&t.middleware.push({name:"arrowOverflow",fn:({placement:i,rects:o,middlewareData:s})=>{let a;const{centerOffset:l}=s.arrow;return i.startsWith("top")||i.startsWith("bottom")?a=Math.abs(l)>o.reference.width/2:a=Math.abs(l)>o.reference.height/2,{data:{overflow:a}}}}),this.autoMinSize||this.autoSize){const i=this.autoSize?this.autoSize:this.autoMinSize?"min":null;t.middleware.push({name:"autoSize",fn:({rects:o,placement:s,middlewareData:a})=>{var l;if((l=a.autoSize)!=null&&l.skip)return{};let c,u;return s.startsWith("top")||s.startsWith("bottom")?c=o.reference.width:u=o.reference.height,this.$_innerNode.style[i==="min"?"minWidth":i==="max"?"maxWidth":"width"]=c!=null?`${c}px`:null,this.$_innerNode.style[i==="min"?"minHeight":i==="max"?"maxHeight":"height"]=u!=null?`${u}px`:null,{data:{skip:!0},reset:{rects:!0}}}})}(this.autoMaxSize||this.autoBoundaryMaxSize)&&(this.$_innerNode.style.maxWidth=null,this.$_innerNode.style.maxHeight=null,t.middleware.push(zEe({boundary:this.boundary,padding:this.overflowPadding,apply:({width:i,height:o})=>{this.$_innerNode.style.maxWidth=i!=null?`${i}px`:null,this.$_innerNode.style.maxHeight=o!=null?`${o}px`:null}})));const n=await tje(this.$_referenceNode,this.$_popperNode,t);Object.assign(this.result,{x:n.x,y:n.y,placement:n.placement,strategy:n.strategy,arrow:Gc(Gc({},n.middlewareData.arrow),n.middlewareData.arrowOverflow)})},$_scheduleShow(e=null,t=!1){if(this.$_updateParentShownChildren(!0),this.$_hideInProgress=!1,clearTimeout(this.$_scheduleTimer),jh&&this.instantMove&&jh.instantMove&&jh!==this.parentPopper){jh.$_applyHide(!0),this.$_applyShow(!0);return}t?this.$_applyShow():this.$_scheduleTimer=setTimeout(this.$_applyShow.bind(this),this.$_computeDelay("show"))},$_scheduleHide(e=null,t=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0;return}this.$_updateParentShownChildren(!1),this.$_hideInProgress=!0,clearTimeout(this.$_scheduleTimer),this.isShown&&(jh=this),t?this.$_applyHide():this.$_scheduleTimer=setTimeout(this.$_applyHide.bind(this),this.$_computeDelay("hide"))},$_computeDelay(e){const t=this.delay;return parseInt(t&&t[e]||t||0)},async $_applyShow(e=!1){clearTimeout(this.$_disposeTimer),clearTimeout(this.$_scheduleTimer),this.skipTransition=e,!this.isShown&&(this.$_ensureTeleport(),await rE(),await this.$_computePosition(),await this.$_applyShowEffect(),this.positioningDisabled||this.$_registerEventListeners([...Ok(this.$_referenceNode),...Ok(this.$_popperNode)],"scroll",()=>{this.$_computePosition()}))},async $_applyShowEffect(){if(this.$_hideInProgress)return;if(this.computeTransformOrigin){const t=this.$_referenceNode.getBoundingClientRect(),r=this.$_popperNode.querySelector(".v-popper__wrapper"),n=r.parentNode.getBoundingClientRect(),i=t.x+t.width/2-(n.left+r.offsetLeft),o=t.y+t.height/2-(n.top+r.offsetTop);this.result.transformOrigin=`${i}px ${o}px`}this.isShown=!0,this.$_applyAttrsToTarget({"aria-describedby":this.popperId,"data-popper-shown":""});const e=this.showGroup;if(e){let t;for(let r=0;r<sl.length;r++)t=sl[r],t.showGroup!==e&&(t.hide(),t.$emit("close-group"))}sl.push(this),document.body.classList.add("v-popper--some-open");for(const t of AB(this.theme))LB(t).push(this),document.body.classList.add(`v-popper--some-open--${t}`);this.$emit("apply-show"),this.classes.showFrom=!0,this.classes.showTo=!1,this.classes.hideFrom=!1,this.classes.hideTo=!1,await rE(),this.classes.showFrom=!1,this.classes.showTo=!0,this.noAutoFocus||this.$_popperNode.focus()},async $_applyHide(e=!1){if(this.shownChildren.size>0){this.$_pendingHide=!0,this.$_hideInProgress=!1;return}if(clearTimeout(this.$_scheduleTimer),!this.isShown)return;this.skipTransition=e,MB(sl,this),sl.length===0&&document.body.classList.remove("v-popper--some-open");for(const r of AB(this.theme)){const n=LB(r);MB(n,this),n.length===0&&document.body.classList.remove(`v-popper--some-open--${r}`)}jh===this&&(jh=null),this.isShown=!1,this.$_applyAttrsToTarget({"aria-describedby":void 0,"data-popper-shown":void 0}),clearTimeout(this.$_disposeTimer);const t=eg(this.theme,"disposeTimeout");t!==null&&(this.$_disposeTimer=setTimeout(()=>{this.$_popperNode&&(this.$_detachPopperNode(),this.isMounted=!1)},t)),this.$_removeEventListeners("scroll"),this.$emit("apply-hide"),this.classes.showFrom=!1,this.classes.showTo=!1,this.classes.hideFrom=!0,this.classes.hideTo=!1,await rE(),this.classes.hideFrom=!1,this.classes.hideTo=!0},$_autoShowHide(){this.shown?this.show():this.hide()},$_ensureTeleport(){if(this.$_isDisposed)return;let e=this.container;if(typeof e=="string"?e=window.document.querySelector(e):e===!1&&(e=this.$_targetNodes[0].parentNode),!e)throw new Error("No container for popover: "+this.container);e.appendChild(this.$_popperNode),this.isMounted=!0},$_addEventListeners(){const e=r=>{this.isShown&&!this.$_hideInProgress||(r.usedByTooltip=!0,!this.$_preventShow&&this.show({event:r}))};this.$_registerTriggerListeners(this.$_targetNodes,RB,this.triggers,this.showTriggers,e),this.$_registerTriggerListeners([this.$_popperNode],RB,this.popperTriggers,this.popperShowTriggers,e);const t=r=>{r.usedByTooltip||this.hide({event:r})};this.$_registerTriggerListeners(this.$_targetNodes,IB,this.triggers,this.hideTriggers,t),this.$_registerTriggerListeners([this.$_popperNode],IB,this.popperTriggers,this.popperHideTriggers,t)},$_registerEventListeners(e,t,r){this.$_events.push({targetNodes:e,eventType:t,handler:r}),e.forEach(n=>n.addEventListener(t,r,Cd?{passive:!0}:void 0))},$_registerTriggerListeners(e,t,r,n,i){let o=r;n!=null&&(o=typeof n=="function"?n(o):n),o.forEach(s=>{const a=t[s];a&&this.$_registerEventListeners(e,a,i)})},$_removeEventListeners(e){const t=[];this.$_events.forEach(r=>{const{targetNodes:n,eventType:i,handler:o}=r;!e||e===i?n.forEach(s=>s.removeEventListener(i,o)):t.push(r)}),this.$_events=t},$_refreshListeners(){this.$_isDisposed||(this.$_removeEventListeners(),this.$_addEventListeners())},$_handleGlobalClose(e,t=!1){this.$_showFrameLocked||(this.hide({event:e}),e.closePopover?this.$emit("close-directive"):this.$emit("auto-hide"),t&&(this.$_preventShow=!0,setTimeout(()=>{this.$_preventShow=!1},300)))},$_detachPopperNode(){this.$_popperNode.parentNode&&this.$_popperNode.parentNode.removeChild(this.$_popperNode)},$_swapTargetAttrs(e,t){for(const r of this.$_targetNodes){const n=r.getAttribute(e);n&&(r.removeAttribute(e),r.setAttribute(t,n))}},$_applyAttrsToTarget(e){for(const t of this.$_targetNodes)for(const r in e){const n=e[r];n==null?t.removeAttribute(r):t.setAttribute(r,n)}},$_updateParentShownChildren(e){let t=this.parentPopper;for(;t;)e?t.shownChildren.add(this.randomId):(t.shownChildren.delete(this.randomId),t.$_pendingHide&&t.hide()),t=t.parentPopper},$_isAimingPopper(){const e=this.$_referenceNode.getBoundingClientRect();if(U0>=e.left&&U0<=e.right&&V0>=e.top&&V0<=e.bottom){const t=this.$_popperNode.getBoundingClientRect(),r=U0-ef,n=V0-tf,o=t.left+t.width/2-ef+(t.top+t.height/2)-tf+t.width+t.height,s=ef+r*o,a=tf+n*o;return x_(ef,tf,s,a,t.left,t.top,t.left,t.bottom)||x_(ef,tf,s,a,t.left,t.top,t.right,t.top)||x_(ef,tf,s,a,t.right,t.top,t.right,t.bottom)||x_(ef,tf,s,a,t.left,t.bottom,t.right,t.bottom)}return!1}},render(){return this.$slots.default(this.slotData)}});typeof document<"u"&&typeof window<"u"&&(Bse?(document.addEventListener("touchstart",NB,Cd?{passive:!0,capture:!0}:!0),document.addEventListener("touchend",cje,Cd?{passive:!0,capture:!0}:!0)):(window.addEventListener("mousedown",NB,!0),window.addEventListener("click",lje,!0)),window.addEventListener("resize",hje));function NB(e){for(let t=0;t<sl.length;t++){const r=sl[t];try{const n=r.popperNode();r.$_mouseDownContains=n.contains(e.target)}catch{}}}function lje(e){Hse(e)}function cje(e){Hse(e,!0)}function Hse(e,t=!1){const r={};for(let n=sl.length-1;n>=0;n--){const i=sl[n];try{const o=i.$_containsGlobalTarget=uje(i,e);i.$_pendingHide=!1,requestAnimationFrame(()=>{if(i.$_pendingHide=!1,!r[i.randomId]&&BB(i,o,e)){if(i.$_handleGlobalClose(e,t),!e.closeAllPopover&&e.closePopover&&o){let a=i.parentPopper;for(;a;)r[a.randomId]=!0,a=a.parentPopper;return}let s=i.parentPopper;for(;s&&BB(s,s.$_containsGlobalTarget,e);){s.$_handleGlobalClose(e,t);s=s.parentPopper}}})}catch{}}}function uje(e,t){const r=e.popperNode();return e.$_mouseDownContains||r.contains(t.target)}function BB(e,t,r){return r.closeAllPopover||r.closePopover&&t||fje(e,r)&&!t}function fje(e,t){if(typeof e.autoHide=="function"){const r=e.autoHide(t);return e.lastAutoHide=r,r}return e.autoHide}function hje(e){for(let t=0;t<sl.length;t++)sl[t].$_computePosition(e)}let ef=0,tf=0,U0=0,V0=0;typeof window<"u"&&window.addEventListener("mousemove",e=>{ef=U0,tf=V0,U0=e.clientX,V0=e.clientY},Cd?{passive:!0}:void 0);function x_(e,t,r,n,i,o,s,a){const l=((s-i)*(t-o)-(a-o)*(e-i))/((a-o)*(r-e)-(s-i)*(n-t)),c=((r-e)*(t-o)-(n-t)*(e-i))/((a-o)*(r-e)-(s-i)*(n-t));return l>=0&&l<=1&&c>=0&&c<=1}var BS=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r};const dje={extends:zse()};function vje(e,t,r,n,i,o){return Hn(),_l("div",{ref:"reference",class:Cl(["v-popper",{"v-popper--shown":e.slotData.isShown}])},[Nf(e.$slots,"default",Rbe(hoe(e.slotData)))],2)}var pje=BS(dje,[["render",vje]]);function gje(){var e=window.navigator.userAgent,t=e.indexOf("MSIE ");if(t>0)return parseInt(e.substring(t+5,e.indexOf(".",t)),10);var r=e.indexOf("Trident/");if(r>0){var n=e.indexOf("rv:");return parseInt(e.substring(n+3,e.indexOf(".",n)),10)}var i=e.indexOf("Edge/");return i>0?parseInt(e.substring(i+5,e.indexOf(".",i)),10):-1}let p$;function xP(){xP.init||(xP.init=!0,p$=gje()!==-1)}var FS={name:"ResizeObserver",props:{emitOnMount:{type:Boolean,default:!1},ignoreWidth:{type:Boolean,default:!1},ignoreHeight:{type:Boolean,default:!1}},emits:["notify"],mounted(){xP(),Eu(()=>{this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitOnMount&&this.emitSize()});const e=document.createElement("object");this._resizeObject=e,e.setAttribute("aria-hidden","true"),e.setAttribute("tabindex",-1),e.onload=this.addResizeHandlers,e.type="text/html",p$&&this.$el.appendChild(e),e.data="about:blank",p$||this.$el.appendChild(e)},beforeUnmount(){this.removeResizeHandlers()},methods:{compareAndNotify(){(!this.ignoreWidth&&this._w!==this.$el.offsetWidth||!this.ignoreHeight&&this._h!==this.$el.offsetHeight)&&(this._w=this.$el.offsetWidth,this._h=this.$el.offsetHeight,this.emitSize())},emitSize(){this.$emit("notify",{width:this._w,height:this._h})},addResizeHandlers(){this._resizeObject.contentDocument.defaultView.addEventListener("resize",this.compareAndNotify),this.compareAndNotify()},removeResizeHandlers(){this._resizeObject&&this._resizeObject.onload&&(!p$&&this._resizeObject.contentDocument&&this._resizeObject.contentDocument.defaultView.removeEventListener("resize",this.compareAndNotify),this.$el.removeChild(this._resizeObject),this._resizeObject.onload=null,this._resizeObject=null)}}};const mje=L_e();M_e("data-v-b329ee4c");const yje={class:"resize-observer",tabindex:"-1"};D_e();const bje=mje((e,t,r,n,i,o)=>(Hn(),ws("div",yje)));FS.render=bje;FS.__scopeId="data-v-b329ee4c";FS.__file="src/components/ResizeObserver.vue";var Wse=(e="theme")=>({computed:{themeClass(){return aje(this[e])}}});const _je=ri({name:"VPopperContent",components:{ResizeObserver:FS},mixins:[Wse()],props:{popperId:String,theme:String,shown:Boolean,mounted:Boolean,skipTransition:Boolean,autoHide:Boolean,handleResize:Boolean,classes:Object,result:Object},emits:["hide","resize"],methods:{toPx(e){return e!=null&&!isNaN(e)?`${e}px`:null}}}),wje=["id","aria-hidden","tabindex","data-popper-placement"],$je={ref:"inner",class:"v-popper__inner"},kje=Jo("div",{class:"v-popper__arrow-outer"},null,-1),xje=Jo("div",{class:"v-popper__arrow-inner"},null,-1),Sje=[kje,xje];function Cje(e,t,r,n,i,o){const s=Wp("ResizeObserver");return Hn(),_l("div",{id:e.popperId,ref:"popover",class:Cl(["v-popper__popper",[e.themeClass,e.classes.popperClass,{"v-popper__popper--shown":e.shown,"v-popper__popper--hidden":!e.shown,"v-popper__popper--show-from":e.classes.showFrom,"v-popper__popper--show-to":e.classes.showTo,"v-popper__popper--hide-from":e.classes.hideFrom,"v-popper__popper--hide-to":e.classes.hideTo,"v-popper__popper--skip-transition":e.skipTransition,"v-popper__popper--arrow-overflow":e.result&&e.result.arrow.overflow,"v-popper__popper--no-positioning":!e.result}]]),style:ad(e.result?{position:e.result.strategy,transform:`translate3d(${Math.round(e.result.x)}px,${Math.round(e.result.y)}px,0)`}:void 0),"aria-hidden":e.shown?"false":"true",tabindex:e.autoHide?0:void 0,"data-popper-placement":e.result?e.result.placement:void 0,onKeyup:t[2]||(t[2]=h$e(a=>e.autoHide&&e.$emit("hide"),["esc"]))},[Jo("div",{class:"v-popper__backdrop",onClick:t[0]||(t[0]=a=>e.autoHide&&e.$emit("hide"))}),Jo("div",{class:"v-popper__wrapper",style:ad(e.result?{transformOrigin:e.result.transformOrigin}:void 0)},[Jo("div",$je,[e.mounted?(Hn(),_l(Do,{key:0},[Jo("div",null,[Nf(e.$slots,"default")]),e.handleResize?(Hn(),ws(s,{key:0,onNotify:t[1]||(t[1]=a=>e.$emit("resize",a))})):Gp("",!0)],64)):Gp("",!0)],512),Jo("div",{ref:"arrow",class:"v-popper__arrow-container",style:ad(e.result?{left:e.toPx(e.result.arrow.x),top:e.toPx(e.result.arrow.y)}:void 0)},Sje,4)],4)],46,wje)}var Use=BS(_je,[["render",Cje]]),Vse={methods:{show(...e){return this.$refs.popper.show(...e)},hide(...e){return this.$refs.popper.hide(...e)},dispose(...e){return this.$refs.popper.dispose(...e)},onResize(...e){return this.$refs.popper.onResize(...e)}}};const Eje=ri({name:"VPopperWrapper",components:{Popper:pje,PopperContent:Use},mixins:[Vse,Wse("finalTheme")],props:{theme:{type:String,default:null}},computed:{finalTheme(){var e;return(e=this.theme)!=null?e:this.$options.vPopperTheme}},methods:{getTargetNodes(){return Array.from(this.$el.children).filter(e=>e!==this.$refs.popperContent.$el)}}});function jje(e,t,r,n,i,o){const s=Wp("PopperContent"),a=Wp("Popper");return Hn(),ws(a,{ref:"popper",theme:e.finalTheme,"target-nodes":e.getTargetNodes,"popper-node":()=>e.$refs.popperContent.$el,class:Cl([e.themeClass])},{default:_s(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,show:d,hide:v,handleResize:g,onResize:p,classes:m,result:y})=>[Nf(e.$slots,"default",{shown:c,show:d,hide:v}),Kr(s,{ref:"popperContent","popper-id":l,theme:e.finalTheme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":g,classes:m,result:y,onHide:v,onResize:p},{default:_s(()=>[Nf(e.$slots,"popper",{shown:c,hide:v})]),_:2},1032,["popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:3},8,["theme","target-nodes","popper-node","class"])}var n5=BS(Eje,[["render",jje]]);const Oje=ri(L1(Gc({},n5),{name:"VDropdown",vPopperTheme:"dropdown"})),Tje=ri(L1(Gc({},n5),{name:"VMenu",vPopperTheme:"menu"})),Pje=ri(L1(Gc({},n5),{name:"VTooltip",vPopperTheme:"tooltip"})),Aje=ri({name:"VTooltipDirective",components:{Popper:zse(),PopperContent:Use},mixins:[Vse],inheritAttrs:!1,props:{theme:{type:String,default:"tooltip"},html:{type:Boolean,default:e=>eg(e.theme,"html")},content:{type:[String,Number,Function],default:null},loadingContent:{type:String,default:e=>eg(e.theme,"loadingContent")}},data(){return{asyncContent:null}},computed:{isContentAsync(){return typeof this.content=="function"},loading(){return this.isContentAsync&&this.asyncContent==null},finalContent(){return this.isContentAsync?this.loading?this.loadingContent:this.asyncContent:this.content}},watch:{content:{handler(){this.fetchContent(!0)},immediate:!0},async finalContent(){await this.$nextTick(),this.$refs.popper.onResize()}},created(){this.$_fetchId=0},methods:{fetchContent(e){if(typeof this.content=="function"&&this.$_isShown&&(e||!this.$_loading&&this.asyncContent==null)){this.asyncContent=null,this.$_loading=!0;const t=++this.$_fetchId,r=this.content(this);r.then?r.then(n=>this.onResult(t,n)):this.onResult(t,r)}},onResult(e,t){e===this.$_fetchId&&(this.$_loading=!1,this.asyncContent=t)},onShow(){this.$_isShown=!0,this.fetchContent()},onHide(){this.$_isShown=!1}}}),Rje=["innerHTML"],Ije=["textContent"];function Mje(e,t,r,n,i,o){const s=Wp("PopperContent"),a=Wp("Popper");return Hn(),ws(a,ES({ref:"popper"},e.$attrs,{theme:e.theme,"popper-node":()=>e.$refs.popperContent.$el,onApplyShow:e.onShow,onApplyHide:e.onHide}),{default:_s(({popperId:l,isShown:c,shouldMountContent:u,skipTransition:f,autoHide:h,hide:d,handleResize:v,onResize:g,classes:p,result:m})=>[Kr(s,{ref:"popperContent",class:Cl({"v-popper--tooltip-loading":e.loading}),"popper-id":l,theme:e.theme,shown:c,mounted:u,"skip-transition":f,"auto-hide":h,"handle-resize":v,classes:p,result:m,onHide:d,onResize:g},{default:_s(()=>[e.html?(Hn(),_l("div",{key:0,innerHTML:e.finalContent},null,8,Rje)):(Hn(),_l("div",{key:1,textContent:fie(e.finalContent)},null,8,Ije))]),_:2},1032,["class","popper-id","theme","shown","mounted","skip-transition","auto-hide","handle-resize","classes","result","onHide","onResize"])]),_:1},16,["theme","popper-node","onApplyShow","onApplyHide"])}var Dje=BS(Aje,[["render",Mje]]);const qse="v-popper--has-tooltip";function Lje(e,t){let r=e.placement;if(!r&&t)for(const n of Fse)t[n]&&(r=n);return r||(r=eg(e.theme||"tooltip","placement")),r}function Kse(e,t,r){let n;const i=typeof t;return i==="string"?n={content:t}:t&&i==="object"?n=t:n={content:!1},n.placement=Lje(n,r),n.targetNodes=()=>[e],n.referenceNode=()=>e,n}let iE,Oy,Nje=0;function Bje(){if(iE)return;Oy=er([]),iE=boe({name:"VTooltipDirectiveApp",setup(){return{directives:Oy}},render(){return this.directives.map(t=>No(Dje,L1(Gc({},t.options),{shown:t.shown||t.options.shown,key:t.id})))},devtools:{hide:!0}});const e=document.createElement("div");document.body.appendChild(e),iE.mount(e)}function Fje(e,t,r){Bje();const n=er(Kse(e,t,r)),i=er(!1),o={id:Nje++,options:n,shown:i};return Oy.value.push(o),e.classList&&e.classList.add(qse),e.$_popper={options:n,item:o,show(){i.value=!0},hide(){i.value=!1}}}function Gse(e){if(e.$_popper){const t=Oy.value.indexOf(e.$_popper.item);t!==-1&&Oy.value.splice(t,1),delete e.$_popper,delete e.$_popperOldShown,delete e.$_popperMountTarget}e.classList&&e.classList.remove(qse)}function FB(e,{value:t,modifiers:r}){const n=Kse(e,t,r);if(!n.content||eg(n.theme||"tooltip","disabled"))Gse(e);else{let i;e.$_popper?(i=e.$_popper,i.options.value=n):i=Fje(e,t,r),typeof t.shown<"u"&&t.shown!==e.$_popperOldShown&&(e.$_popperOldShown=t.shown,t.shown?i.show():i.hide())}}var zje={beforeMount:FB,updated:FB,beforeUnmount(e){Gse(e)}};function zB(e){e.addEventListener("click",Jse),e.addEventListener("touchstart",Yse,Cd?{passive:!0}:!1)}function HB(e){e.removeEventListener("click",Jse),e.removeEventListener("touchstart",Yse),e.removeEventListener("touchend",Xse),e.removeEventListener("touchcancel",Qse)}function Jse(e){const t=e.currentTarget;e.closePopover=!t.$_vclosepopover_touch,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}function Yse(e){if(e.changedTouches.length===1){const t=e.currentTarget;t.$_vclosepopover_touch=!0;const r=e.changedTouches[0];t.$_vclosepopover_touchPoint=r,t.addEventListener("touchend",Xse),t.addEventListener("touchcancel",Qse)}}function Xse(e){const t=e.currentTarget;if(t.$_vclosepopover_touch=!1,e.changedTouches.length===1){const r=e.changedTouches[0],n=t.$_vclosepopover_touchPoint;e.closePopover=Math.abs(r.screenY-n.screenY)<20&&Math.abs(r.screenX-n.screenX)<20,e.closeAllPopover=t.$_closePopoverModifiers&&!!t.$_closePopoverModifiers.all}}function Qse(e){const t=e.currentTarget;t.$_vclosepopover_touch=!1}var Hje={beforeMount(e,{value:t,modifiers:r}){e.$_closePopoverModifiers=r,(typeof t>"u"||t)&&zB(e)},updated(e,{value:t,oldValue:r,modifiers:n}){e.$_closePopoverModifiers=n,t!==r&&(typeof t>"u"||t?zB(e):HB(e))},beforeUnmount(e){HB(e)}};function Wje(e,t={}){e.$_vTooltipInstalled||(e.$_vTooltipInstalled=!0,Nse(tu,t),e.directive("tooltip",zje),e.directive("close-popper",Hje),e.component("VTooltip",Pje),e.component("VDropdown",Oje),e.component("VMenu",Tje))}const Uje={version:"2.0.0-beta.20",install:Wje,options:tu},Vje=Dl(e=>{e.vueApp.use(Uje)}),qje=Dl(()=>{const e=sh(),t=O2e(),r=Ia();window.__NUXT_DEVTOOLS_VIEW__={setClient(n){e.value!==n&&(e.value=n,n.hooks.hook("host:update:reactivity",()=>{e.value&&(e.value={...e.value})}),n.hooks.hook("host:inspector:close",()=>{r.currentRoute.value.path==="/__inspecting"&&r.replace("/modules/components")}),n.hooks.hook("host:inspector:update",i=>{t.value=i}),n.hooks.hook("host:inspector:click",async(i,o,s,a)=>{const l=`./${o}:${s}:${a}`;await Ss.openInEditor(l)}),console.log("[nuxt-devtools] Client connected",n))}},r.afterEach(()=>{const n=r.currentRoute.value.path;n.includes("__")||e.value?.hooks.callHook("devtools:navigate",n)})}),Kje=[mke,ixe,sxe,mEe,yEe,wEe,$Ee,kEe,xEe,Vje,qje],Gje=ri({name:"NuxtLoadingIndicator",props:{throttle:{type:Number,default:200},duration:{type:Number,default:2e3},height:{type:Number,default:3},color:{type:[String,Boolean],default:"repeating-linear-gradient(to right,#00dc82 0%,#34cdfe 50%,#0047e1 100%)"}},setup(e,{slots:t}){const r=Jje({duration:e.duration,throttle:e.throttle}),n=Jn();return n.hook("page:start",r.start),n.hook("page:finish",r.finish),Ng(r.clear),()=>No("div",{class:"nuxt-loading-indicator",style:{position:"fixed",top:0,right:0,left:0,pointerEvents:"none",width:"auto",height:`${e.height}px`,opacity:r.isLoading.value?1:0,background:e.color||void 0,backgroundSize:`${100/r.progress.value*100}% auto`,transform:`scaleX(${r.progress.value}%)`,transformOrigin:"left",transition:"transform 0.1s, height 0.4s, opacity 0.4s",zIndex:999999}},t)}});function Jje(e){const t=er(0),r=er(!1),n=Wr(()=>1e4/e.duration);let i=null,o=null;function s(){l(),t.value=0,e.throttle?o=setTimeout(()=>{r.value=!0,f()},e.throttle):(r.value=!0,f())}function a(){t.value=100,u()}function l(){clearInterval(i),clearTimeout(o),i=null,o=null}function c(h){t.value=Math.min(100,t.value+h)}function u(){l(),setTimeout(()=>{r.value=!1,setTimeout(()=>{t.value=0},400)},500)}function f(){i=setInterval(()=>{c(n.value)},100)}return{progress:t,isLoading:r,start:s,finish:a,clear:l}}const Yje=(e,t)=>t.path.replace(/(:\w+)\([^)]+\)/g,"$1").replace(/(:\w+)[?+*]/g,"$1").replace(/:\w+/g,r=>e.params[r.slice(1)]?.toString()||""),Xje=(e,t)=>{const r=e.route.matched.find(i=>i.components?.default===e.Component.type),n=t??r?.meta.key??(r&&Yje(e.route,r));return typeof n=="function"?n(e.route):n},Qje=(e,t)=>({default:()=>e?No(Q_e,e===!0?{}:e,t):t}),Zje=ri({name:"FragmentWrapper",setup(e,{slots:t}){return()=>t.default?.()}}),SP=(e,t,r)=>({default:()=>t?No(e,t===!0?{}:t,r):No(Zje,{},r)}),eOe=ri({name:"NuxtPage",inheritAttrs:!1,props:{name:{type:String},transition:{type:[Boolean,Object],default:void 0},keepalive:{type:[Boolean,Object],default:void 0},route:{type:Object},pageKey:{type:[Function,String],default:null}},setup(e,{attrs:t}){const r=Jn();return()=>No(Qoe,{name:e.name,route:e.route,...t},{default:n=>{if(!n.Component)return;const i=Xje(n,e.pageKey),o=r.deferHydration(),s=!!(e.transition??n.route.meta.pageTransition??oP),a=s&&rOe([e.transition,n.route.meta.pageTransition,oP,{onAfterLeave:()=>{r.callHook("page:transition:finish",n.Component)}}].filter(Boolean));return SP(OS,s&&a,Qje(e.keepalive??n.route.meta.keepalive??rxe,No(Bie,{onPending:()=>r.callHook("page:start",n.Component),onResolve:()=>{Eu(()=>r.callHook("page:finish",n.Component).finally(o))}},{default:()=>No(nOe,{key:i,routeProps:n,pageKey:i,hasTransition:s})}))).default()}})}});function tOe(e){return Array.isArray(e)?e:e?[e]:[]}function rOe(e){const t=e.map(r=>({...r,onAfterLeave:tOe(r.onAfterLeave)}));return fSe(...t)}const nOe=ri({name:"RouteProvider",props:["routeProps","pageKey","hasTransition"],setup(e){const t=e.pageKey,r=e.routeProps.route,n={};for(const i in e.routeProps.route)n[i]=Wr(()=>t===e.pageKey?e.routeProps.route[i]:r[i]);return _p("_route",El(n)),()=>No(e.routeProps.Component)}}),iOe=ri({name:"LayoutLoader",inheritAttrs:!1,props:{name:String},async setup(e,t){const r=await Gv[e.name]().then(n=>n.default||n);return()=>No(r,t.attrs,t.slots)}}),oOe=ri({name:"NuxtLayout",inheritAttrs:!1,props:{name:{type:[String,Boolean,Object],default:null}},setup(e,t){const r=Ws("_route"),n=r===ese()?cSe():r,i=Wr(()=>pn(e.name)??n.meta.layout??"default");return()=>{const o=i.value&&i.value in Gv,s=n.meta.layoutTransition??txe;return SP(OS,o&&s,{default:()=>SP(iOe,o&&{key:i.value,name:i.value,...t.attrs},t.slots).default()}).default()}}}),Zse=ri({__name:"NIcon",props:{icon:null},setup(e){return(t,r)=>(Hn(),_l("div",{class:Cl(["n-icon",e.icon])},null,2))}}),eae=(e,t)=>{const r=e.__vccOpts||e;for(const[n,i]of t)r[n]=i;return r},sOe={},aOe={key:0,border:"t base","left-0":"","right-0":"","bottom-0":"",fixed:"",p5:"","glass-effect":"","z-200":""},lOe={key:0,flex:"~ gap-2","items-center":"","text-rose":""},cOe={key:1,flex:"~ gap-2","items-center":"","text-yellow":"","animate-pulse":""};function uOe(e,t){const r=Zse;return("wsError"in e?e.wsError:pn(kk))||("wsConnecting"in e?e.wsConnecting:pn(H0))?(Hn(),_l("div",aOe,[("wsError"in e?e.wsError:pn(kk))?(Hn(),_l("div",lOe,[Kr(r,{icon:"i-carbon-wifi-off"}),Kp(" WebSocket disconnected ")])):("wsConnecting"in e?e.wsConnecting:pn(H0))?(Hn(),_l("div",cOe,[Kr(r,{icon:"i-carbon-circle-dash","animate-spin":""}),Kp(" Connecting to the server... ")])):Gp("",!0)])):Gp("",!0)}const fOe=eae(sOe,[["render",uOe]]);let Dv;const Xm=[];function hOe(e){return Xm.push(e),window.__NUXT_DEVTOOLS__&&Xm.forEach(t=>t(window.__NUXT_DEVTOOLS__)),Object.defineProperty(window,"__NUXT_DEVTOOLS__",{set(t){t&&Xm.forEach(r=>r(t))},get(){return Dv.value},configurable:!0}),()=>{Xm.splice(Xm.indexOf(e),1)}}function dOe(){Dv||(Dv=Hp(),hOe(e));function e(t){Dv.value=t,t.host&&t.host.hooks.hook("host:update:reactivity",()=>{$_e(Dv)})}return Dv}const dHt=dOe();/**
|
|
12
12
|
* vis-data
|
|
13
13
|
* http://visjs.org/
|
|
14
14
|
*
|
|
@@ -256,4 +256,4 @@ WARNING: This link could potentially be dangerous`)){const m=window.open();if(m)
|
|
|
256
256
|
`:`
|
|
257
257
|
`)}clearSelection(){this._model.clearSelection(),this._removeMouseDownListeners(),this.refresh(),this._onSelectionChange.fire()}refresh(k){this._refreshAnimationFrame||(this._refreshAnimationFrame=this._coreBrowserService.window.requestAnimationFrame(()=>this._refresh())),f.isLinux&&k&&this.selectionText.length&&this._onLinuxMouseSelection.fire(this.selectionText)}_refresh(){this._refreshAnimationFrame=void 0,this._onRedrawRequest.fire({start:this._model.finalSelectionStart,end:this._model.finalSelectionEnd,columnSelectMode:this._activeSelectionMode===3})}_isClickInSelection(k){const x=this._getMouseBufferCoords(k),C=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;return!!(C&&E&&x)&&this._areCoordsInSelection(x,C,E)}isCellInSelection(k,x){const C=this._model.finalSelectionStart,E=this._model.finalSelectionEnd;return!(!C||!E)&&this._areCoordsInSelection([k,x],C,E)}_areCoordsInSelection(k,x,C){return k[1]>x[1]&&k[1]<C[1]||x[1]===C[1]&&k[1]===x[1]&&k[0]>=x[0]&&k[0]<C[0]||x[1]<C[1]&&k[1]===C[1]&&k[0]<C[0]||x[1]<C[1]&&k[1]===x[1]&&k[0]>=x[0]}_selectWordAtCursor(k,x){var C,E;const j=(E=(C=this._linkifier.currentLink)===null||C===void 0?void 0:C.link)===null||E===void 0?void 0:E.range;if(j)return this._model.selectionStart=[j.start.x-1,j.start.y-1],this._model.selectionStartLength=(0,_.getRangeLength)(j,this._bufferService.cols),this._model.selectionEnd=void 0,!0;const A=this._getMouseBufferCoords(k);return!!A&&(this._selectWordAt(A,x),this._model.selectionEnd=void 0,!0)}selectAll(){this._model.isSelectAllActive=!0,this.refresh(),this._onSelectionChange.fire()}selectLines(k,x){this._model.clearSelection(),k=Math.max(k,0),x=Math.min(x,this._bufferService.buffer.lines.length-1),this._model.selectionStart=[0,k],this._model.selectionEnd=[this._bufferService.cols,x],this.refresh(),this._onSelectionChange.fire()}_handleTrim(k){this._model.handleTrim(k)&&this.refresh()}_getMouseBufferCoords(k){const x=this._mouseService.getCoords(k,this._screenElement,this._bufferService.cols,this._bufferService.rows,!0);if(x)return x[0]--,x[1]--,x[1]+=this._bufferService.buffer.ydisp,x}_getMouseEventScrollAmount(k){let x=(0,m.getCoordsRelativeToElement)(this._coreBrowserService.window,k,this._screenElement)[1];const C=this._renderService.dimensions.css.canvas.height;return x>=0&&x<=C?0:(x>C&&(x-=C),x=Math.min(Math.max(x,-50),50),x/=50,x/Math.abs(x)+Math.round(14*x))}shouldForceSelection(k){return f.isMac?k.altKey&&this._optionsService.rawOptions.macOptionClickForcesSelection:k.shiftKey}handleMouseDown(k){if(this._mouseDownTimeStamp=k.timeStamp,(k.button!==2||!this.hasSelection)&&k.button===0){if(!this._enabled){if(!this.shouldForceSelection(k))return;k.stopPropagation()}k.preventDefault(),this._dragScrollAmount=0,this._enabled&&k.shiftKey?this._handleIncrementalClick(k):k.detail===1?this._handleSingleClick(k):k.detail===2?this._handleDoubleClick(k):k.detail===3&&this._handleTripleClick(k),this._addMouseDownListeners(),this.refresh(!0)}}_addMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.addEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.addEventListener("mouseup",this._mouseUpListener)),this._dragScrollIntervalTimer=this._coreBrowserService.window.setInterval(()=>this._dragScroll(),50)}_removeMouseDownListeners(){this._screenElement.ownerDocument&&(this._screenElement.ownerDocument.removeEventListener("mousemove",this._mouseMoveListener),this._screenElement.ownerDocument.removeEventListener("mouseup",this._mouseUpListener)),this._coreBrowserService.window.clearInterval(this._dragScrollIntervalTimer),this._dragScrollIntervalTimer=void 0}_handleIncrementalClick(k){this._model.selectionStart&&(this._model.selectionEnd=this._getMouseBufferCoords(k))}_handleSingleClick(k){if(this._model.selectionStartLength=0,this._model.isSelectAllActive=!1,this._activeSelectionMode=this.shouldColumnSelect(k)?3:0,this._model.selectionStart=this._getMouseBufferCoords(k),!this._model.selectionStart)return;this._model.selectionEnd=void 0;const x=this._bufferService.buffer.lines.get(this._model.selectionStart[1]);x&&x.length!==this._model.selectionStart[0]&&x.hasWidth(this._model.selectionStart[0])===0&&this._model.selectionStart[0]++}_handleDoubleClick(k){this._selectWordAtCursor(k,!0)&&(this._activeSelectionMode=1)}_handleTripleClick(k){const x=this._getMouseBufferCoords(k);x&&(this._activeSelectionMode=2,this._selectLineAt(x[1]))}shouldColumnSelect(k){return k.altKey&&!(f.isMac&&this._optionsService.rawOptions.macOptionClickForcesSelection)}_handleMouseMove(k){if(k.stopImmediatePropagation(),!this._model.selectionStart)return;const x=this._model.selectionEnd?[this._model.selectionEnd[0],this._model.selectionEnd[1]]:null;if(this._model.selectionEnd=this._getMouseBufferCoords(k),!this._model.selectionEnd)return void this.refresh(!0);this._activeSelectionMode===2?this._model.selectionEnd[1]<this._model.selectionStart[1]?this._model.selectionEnd[0]=0:this._model.selectionEnd[0]=this._bufferService.cols:this._activeSelectionMode===1&&this._selectToWordAt(this._model.selectionEnd),this._dragScrollAmount=this._getMouseEventScrollAmount(k),this._activeSelectionMode!==3&&(this._dragScrollAmount>0?this._model.selectionEnd[0]=this._bufferService.cols:this._dragScrollAmount<0&&(this._model.selectionEnd[0]=0));const C=this._bufferService.buffer;if(this._model.selectionEnd[1]<C.lines.length){const E=C.lines.get(this._model.selectionEnd[1]);E&&E.hasWidth(this._model.selectionEnd[0])===0&&this._model.selectionEnd[0]++}x&&x[0]===this._model.selectionEnd[0]&&x[1]===this._model.selectionEnd[1]||this.refresh(!0)}_dragScroll(){if(this._model.selectionEnd&&this._model.selectionStart&&this._dragScrollAmount){this._onRequestScrollLines.fire({amount:this._dragScrollAmount,suppressScrollEvent:!1});const k=this._bufferService.buffer;this._dragScrollAmount>0?(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=this._bufferService.cols),this._model.selectionEnd[1]=Math.min(k.ydisp+this._bufferService.rows,k.lines.length-1)):(this._activeSelectionMode!==3&&(this._model.selectionEnd[0]=0),this._model.selectionEnd[1]=k.ydisp),this.refresh()}}_handleMouseUp(k){const x=k.timeStamp-this._mouseDownTimeStamp;if(this._removeMouseDownListeners(),this.selectionText.length<=1&&x<500&&k.altKey&&this._optionsService.rawOptions.altClickMovesCursor){if(this._bufferService.buffer.ybase===this._bufferService.buffer.ydisp){const C=this._mouseService.getCoords(k,this._element,this._bufferService.cols,this._bufferService.rows,!1);if(C&&C[0]!==void 0&&C[1]!==void 0){const E=(0,y.moveToCellSequence)(C[0]-1,C[1]-1,this._bufferService,this._coreService.decPrivateModes.applicationCursorKeys);this._coreService.triggerDataEvent(E,!0)}}}else this._fireEventIfSelectionChanged()}_fireEventIfSelectionChanged(){const k=this._model.finalSelectionStart,x=this._model.finalSelectionEnd,C=!(!k||!x||k[0]===x[0]&&k[1]===x[1]);C?k&&x&&(this._oldSelectionStart&&this._oldSelectionEnd&&k[0]===this._oldSelectionStart[0]&&k[1]===this._oldSelectionStart[1]&&x[0]===this._oldSelectionEnd[0]&&x[1]===this._oldSelectionEnd[1]||this._fireOnSelectionChange(k,x,C)):this._oldHasSelection&&this._fireOnSelectionChange(k,x,C)}_fireOnSelectionChange(k,x,C){this._oldSelectionStart=k,this._oldSelectionEnd=x,this._oldHasSelection=C,this._onSelectionChange.fire()}_handleBufferActivate(k){this.clearSelection(),this._trimListener.dispose(),this._trimListener=k.activeBuffer.lines.onTrim(x=>this._handleTrim(x))}_convertViewportColToCharacterIndex(k,x){let C=x;for(let E=0;x>=E;E++){const j=k.loadCell(E,this._workCell).getChars().length;this._workCell.getWidth()===0?C--:j>1&&x!==E&&(C+=j-1)}return C}setSelection(k,x,C){this._model.clearSelection(),this._removeMouseDownListeners(),this._model.selectionStart=[k,x],this._model.selectionStartLength=C,this.refresh(),this._fireEventIfSelectionChanged()}rightClickSelect(k){this._isClickInSelection(k)||(this._selectWordAtCursor(k,!1)&&this.refresh(!0),this._fireEventIfSelectionChanged())}_getWordAt(k,x,C=!0,E=!0){if(k[0]>=this._bufferService.cols)return;const j=this._bufferService.buffer,A=j.lines.get(k[1]);if(!A)return;const T=j.translateBufferLineToString(k[1],!1);let L=this._convertViewportColToCharacterIndex(A,k[0]),V=L;const P=k[0]-L;let F=0,O=0,R=0,H=0;if(T.charAt(L)===" "){for(;L>0&&T.charAt(L-1)===" ";)L--;for(;V<T.length&&T.charAt(V+1)===" ";)V++}else{let U=k[0],N=k[0];A.getWidth(U)===0&&(F++,U--),A.getWidth(N)===2&&(O++,N++);const W=A.getString(N).length;for(W>1&&(H+=W-1,V+=W-1);U>0&&L>0&&!this._isCharWordSeparator(A.loadCell(U-1,this._workCell));){A.loadCell(U-1,this._workCell);const I=this._workCell.getChars().length;this._workCell.getWidth()===0?(F++,U--):I>1&&(R+=I-1,L-=I-1),L--,U--}for(;N<A.length&&V+1<T.length&&!this._isCharWordSeparator(A.loadCell(N+1,this._workCell));){A.loadCell(N+1,this._workCell);const I=this._workCell.getChars().length;this._workCell.getWidth()===2?(O++,N++):I>1&&(H+=I-1,V+=I-1),V++,N++}}V++;let M=L+P-F+R,z=Math.min(this._bufferService.cols,V-L+F+O-R-H);if(x||T.slice(L,V).trim()!==""){if(C&&M===0&&A.getCodePoint(0)!==32){const U=j.lines.get(k[1]-1);if(U&&A.isWrapped&&U.getCodePoint(this._bufferService.cols-1)!==32){const N=this._getWordAt([this._bufferService.cols-1,k[1]-1],!1,!0,!1);if(N){const W=this._bufferService.cols-N.start;M-=W,z+=W}}}if(E&&M+z===this._bufferService.cols&&A.getCodePoint(this._bufferService.cols-1)!==32){const U=j.lines.get(k[1]+1);if(U?.isWrapped&&U.getCodePoint(0)!==32){const N=this._getWordAt([0,k[1]+1],!1,!1,!0);N&&(z+=N.length)}}return{start:M,length:z}}}_selectWordAt(k,x){const C=this._getWordAt(k,x);if(C){for(;C.start<0;)C.start+=this._bufferService.cols,k[1]--;this._model.selectionStart=[C.start,k[1]],this._model.selectionStartLength=C.length}}_selectToWordAt(k){const x=this._getWordAt(k,!0);if(x){let C=k[1];for(;x.start<0;)x.start+=this._bufferService.cols,C--;if(!this._model.areSelectionValuesReversed())for(;x.start+x.length>this._bufferService.cols;)x.length-=this._bufferService.cols,C++;this._model.selectionEnd=[this._model.areSelectionValuesReversed()?x.start:x.start+x.length,C]}}_isCharWordSeparator(k){return k.getWidth()!==0&&this._optionsService.rawOptions.wordSeparator.indexOf(k.getChars())>=0}_selectLineAt(k){const x=this._bufferService.buffer.getWrappedRangeForLine(k),C={start:{x:0,y:x.first},end:{x:this._bufferService.cols-1,y:x.last}};this._model.selectionStart=[0,x.first],this._model.selectionEnd=void 0,this._model.selectionStartLength=(0,_.getRangeLength)(C,this._bufferService.cols)}};S=c([u(3,p.IBufferService),u(4,p.ICoreService),u(5,g.IMouseService),u(6,p.IOptionsService),u(7,g.IRenderService),u(8,g.ICoreBrowserService)],S),a.SelectionService=S},4725:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.IThemeService=a.ICharacterJoinerService=a.ISelectionService=a.IRenderService=a.IMouseService=a.ICoreBrowserService=a.ICharSizeService=void 0;const c=l(8343);a.ICharSizeService=(0,c.createDecorator)("CharSizeService"),a.ICoreBrowserService=(0,c.createDecorator)("CoreBrowserService"),a.IMouseService=(0,c.createDecorator)("MouseService"),a.IRenderService=(0,c.createDecorator)("RenderService"),a.ISelectionService=(0,c.createDecorator)("SelectionService"),a.ICharacterJoinerService=(0,c.createDecorator)("CharacterJoinerService"),a.IThemeService=(0,c.createDecorator)("ThemeService")},6731:function(s,a,l){var c=this&&this.__decorate||function(S,k,x,C){var E,j=arguments.length,A=j<3?k:C===null?C=Object.getOwnPropertyDescriptor(k,x):C;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")A=Reflect.decorate(S,k,x,C);else for(var T=S.length-1;T>=0;T--)(E=S[T])&&(A=(j<3?E(A):j>3?E(k,x,A):E(k,x))||A);return j>3&&A&&Object.defineProperty(k,x,A),A},u=this&&this.__param||function(S,k){return function(x,C){k(x,C,S)}};Object.defineProperty(a,"__esModule",{value:!0}),a.ThemeService=a.DEFAULT_ANSI_COLORS=void 0;const f=l(7239),h=l(8055),d=l(8460),v=l(844),g=l(2585),p=h.css.toColor("#ffffff"),m=h.css.toColor("#000000"),y=h.css.toColor("#ffffff"),b=h.css.toColor("#000000"),_={css:"rgba(255, 255, 255, 0.3)",rgba:4294967117};a.DEFAULT_ANSI_COLORS=Object.freeze((()=>{const S=[h.css.toColor("#2e3436"),h.css.toColor("#cc0000"),h.css.toColor("#4e9a06"),h.css.toColor("#c4a000"),h.css.toColor("#3465a4"),h.css.toColor("#75507b"),h.css.toColor("#06989a"),h.css.toColor("#d3d7cf"),h.css.toColor("#555753"),h.css.toColor("#ef2929"),h.css.toColor("#8ae234"),h.css.toColor("#fce94f"),h.css.toColor("#729fcf"),h.css.toColor("#ad7fa8"),h.css.toColor("#34e2e2"),h.css.toColor("#eeeeec")],k=[0,95,135,175,215,255];for(let x=0;x<216;x++){const C=k[x/36%6|0],E=k[x/6%6|0],j=k[x%6];S.push({css:h.channels.toCss(C,E,j),rgba:h.channels.toRgba(C,E,j)})}for(let x=0;x<24;x++){const C=8+10*x;S.push({css:h.channels.toCss(C,C,C),rgba:h.channels.toRgba(C,C,C)})}return S})());let $=class extends v.Disposable{constructor(S){super(),this._optionsService=S,this._onChangeColors=this.register(new d.EventEmitter),this.onChangeColors=this._onChangeColors.event,this._contrastCache=new f.ColorContrastCache,this._colors={foreground:p,background:m,cursor:y,cursorAccent:b,selectionForeground:void 0,selectionBackgroundTransparent:_,selectionBackgroundOpaque:h.color.blend(m,_),selectionInactiveBackgroundTransparent:_,selectionInactiveBackgroundOpaque:h.color.blend(m,_),ansi:a.DEFAULT_ANSI_COLORS.slice(),contrastCache:this._contrastCache},this._updateRestoreColors(),this._setTheme(this._optionsService.rawOptions.theme),this.register(this._optionsService.onSpecificOptionChange("minimumContrastRatio",()=>this._contrastCache.clear())),this.register(this._optionsService.onSpecificOptionChange("theme",()=>this._setTheme(this._optionsService.rawOptions.theme)))}get colors(){return this._colors}_setTheme(S={}){const k=this._colors;if(k.foreground=w(S.foreground,p),k.background=w(S.background,m),k.cursor=w(S.cursor,y),k.cursorAccent=w(S.cursorAccent,b),k.selectionBackgroundTransparent=w(S.selectionBackground,_),k.selectionBackgroundOpaque=h.color.blend(k.background,k.selectionBackgroundTransparent),k.selectionInactiveBackgroundTransparent=w(S.selectionInactiveBackground,k.selectionBackgroundTransparent),k.selectionInactiveBackgroundOpaque=h.color.blend(k.background,k.selectionInactiveBackgroundTransparent),k.selectionForeground=S.selectionForeground?w(S.selectionForeground,h.NULL_COLOR):void 0,k.selectionForeground===h.NULL_COLOR&&(k.selectionForeground=void 0),h.color.isOpaque(k.selectionBackgroundTransparent)&&(k.selectionBackgroundTransparent=h.color.opacity(k.selectionBackgroundTransparent,.3)),h.color.isOpaque(k.selectionInactiveBackgroundTransparent)&&(k.selectionInactiveBackgroundTransparent=h.color.opacity(k.selectionInactiveBackgroundTransparent,.3)),k.ansi=a.DEFAULT_ANSI_COLORS.slice(),k.ansi[0]=w(S.black,a.DEFAULT_ANSI_COLORS[0]),k.ansi[1]=w(S.red,a.DEFAULT_ANSI_COLORS[1]),k.ansi[2]=w(S.green,a.DEFAULT_ANSI_COLORS[2]),k.ansi[3]=w(S.yellow,a.DEFAULT_ANSI_COLORS[3]),k.ansi[4]=w(S.blue,a.DEFAULT_ANSI_COLORS[4]),k.ansi[5]=w(S.magenta,a.DEFAULT_ANSI_COLORS[5]),k.ansi[6]=w(S.cyan,a.DEFAULT_ANSI_COLORS[6]),k.ansi[7]=w(S.white,a.DEFAULT_ANSI_COLORS[7]),k.ansi[8]=w(S.brightBlack,a.DEFAULT_ANSI_COLORS[8]),k.ansi[9]=w(S.brightRed,a.DEFAULT_ANSI_COLORS[9]),k.ansi[10]=w(S.brightGreen,a.DEFAULT_ANSI_COLORS[10]),k.ansi[11]=w(S.brightYellow,a.DEFAULT_ANSI_COLORS[11]),k.ansi[12]=w(S.brightBlue,a.DEFAULT_ANSI_COLORS[12]),k.ansi[13]=w(S.brightMagenta,a.DEFAULT_ANSI_COLORS[13]),k.ansi[14]=w(S.brightCyan,a.DEFAULT_ANSI_COLORS[14]),k.ansi[15]=w(S.brightWhite,a.DEFAULT_ANSI_COLORS[15]),S.extendedAnsi){const x=Math.min(k.ansi.length-16,S.extendedAnsi.length);for(let C=0;C<x;C++)k.ansi[C+16]=w(S.extendedAnsi[C],a.DEFAULT_ANSI_COLORS[C+16])}this._contrastCache.clear(),this._updateRestoreColors(),this._onChangeColors.fire(this.colors)}restoreColor(S){this._restoreColor(S),this._onChangeColors.fire(this.colors)}_restoreColor(S){if(S!==void 0)switch(S){case 256:this._colors.foreground=this._restoreColors.foreground;break;case 257:this._colors.background=this._restoreColors.background;break;case 258:this._colors.cursor=this._restoreColors.cursor;break;default:this._colors.ansi[S]=this._restoreColors.ansi[S]}else for(let k=0;k<this._restoreColors.ansi.length;++k)this._colors.ansi[k]=this._restoreColors.ansi[k]}modifyColors(S){S(this._colors),this._onChangeColors.fire(this.colors)}_updateRestoreColors(){this._restoreColors={foreground:this._colors.foreground,background:this._colors.background,cursor:this._colors.cursor,ansi:this._colors.ansi.slice()}}};function w(S,k){if(S!==void 0)try{return h.css.toColor(S)}catch{}return k}$=c([u(0,g.IOptionsService)],$),a.ThemeService=$},6349:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CircularList=void 0;const c=l(8460),u=l(844);class f extends u.Disposable{constructor(d){super(),this._maxLength=d,this.onDeleteEmitter=this.register(new c.EventEmitter),this.onDelete=this.onDeleteEmitter.event,this.onInsertEmitter=this.register(new c.EventEmitter),this.onInsert=this.onInsertEmitter.event,this.onTrimEmitter=this.register(new c.EventEmitter),this.onTrim=this.onTrimEmitter.event,this._array=new Array(this._maxLength),this._startIndex=0,this._length=0}get maxLength(){return this._maxLength}set maxLength(d){if(this._maxLength===d)return;const v=new Array(d);for(let g=0;g<Math.min(d,this.length);g++)v[g]=this._array[this._getCyclicIndex(g)];this._array=v,this._maxLength=d,this._startIndex=0}get length(){return this._length}set length(d){if(d>this._length)for(let v=this._length;v<d;v++)this._array[v]=void 0;this._length=d}get(d){return this._array[this._getCyclicIndex(d)]}set(d,v){this._array[this._getCyclicIndex(d)]=v}push(d){this._array[this._getCyclicIndex(this._length)]=d,this._length===this._maxLength?(this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1)):this._length++}recycle(){if(this._length!==this._maxLength)throw new Error("Can only recycle when the buffer is full");return this._startIndex=++this._startIndex%this._maxLength,this.onTrimEmitter.fire(1),this._array[this._getCyclicIndex(this._length-1)]}get isFull(){return this._length===this._maxLength}pop(){return this._array[this._getCyclicIndex(this._length---1)]}splice(d,v,...g){if(v){for(let p=d;p<this._length-v;p++)this._array[this._getCyclicIndex(p)]=this._array[this._getCyclicIndex(p+v)];this._length-=v,this.onDeleteEmitter.fire({index:d,amount:v})}for(let p=this._length-1;p>=d;p--)this._array[this._getCyclicIndex(p+g.length)]=this._array[this._getCyclicIndex(p)];for(let p=0;p<g.length;p++)this._array[this._getCyclicIndex(d+p)]=g[p];if(g.length&&this.onInsertEmitter.fire({index:d,amount:g.length}),this._length+g.length>this._maxLength){const p=this._length+g.length-this._maxLength;this._startIndex+=p,this._length=this._maxLength,this.onTrimEmitter.fire(p)}else this._length+=g.length}trimStart(d){d>this._length&&(d=this._length),this._startIndex+=d,this._length-=d,this.onTrimEmitter.fire(d)}shiftElements(d,v,g){if(!(v<=0)){if(d<0||d>=this._length)throw new Error("start argument out of range");if(d+g<0)throw new Error("Cannot shift elements in list beyond index 0");if(g>0){for(let m=v-1;m>=0;m--)this.set(d+m+g,this.get(d+m));const p=d+v+g-this._length;if(p>0)for(this._length+=p;this._length>this._maxLength;)this._length--,this._startIndex++,this.onTrimEmitter.fire(1)}else for(let p=0;p<v;p++)this.set(d+p+g,this.get(d+p))}}_getCyclicIndex(d){return(this._startIndex+d)%this._maxLength}}a.CircularList=f},1439:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.clone=void 0,a.clone=function l(c,u=5){if(typeof c!="object")return c;const f=Array.isArray(c)?[]:{};for(const h in c)f[h]=u<=1?c[h]:c[h]&&l(c[h],u-1);return f}},8055:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.contrastRatio=a.toPaddedHex=a.rgba=a.rgb=a.css=a.color=a.channels=a.NULL_COLOR=void 0;const c=l(6114);let u=0,f=0,h=0,d=0;var v,g,p;function m(b){const _=b.toString(16);return _.length<2?"0"+_:_}function y(b,_){return b<_?(_+.05)/(b+.05):(b+.05)/(_+.05)}a.NULL_COLOR={css:"#00000000",rgba:0},function(b){b.toCss=function(_,$,w,S){return S!==void 0?`#${m(_)}${m($)}${m(w)}${m(S)}`:`#${m(_)}${m($)}${m(w)}`},b.toRgba=function(_,$,w,S=255){return(_<<24|$<<16|w<<8|S)>>>0}}(v=a.channels||(a.channels={})),function(b){function _($,w){return d=Math.round(255*w),[u,f,h]=p.toChannels($.rgba),{css:v.toCss(u,f,h,d),rgba:v.toRgba(u,f,h,d)}}b.blend=function($,w){if(d=(255&w.rgba)/255,d===1)return{css:w.css,rgba:w.rgba};const S=w.rgba>>24&255,k=w.rgba>>16&255,x=w.rgba>>8&255,C=$.rgba>>24&255,E=$.rgba>>16&255,j=$.rgba>>8&255;return u=C+Math.round((S-C)*d),f=E+Math.round((k-E)*d),h=j+Math.round((x-j)*d),{css:v.toCss(u,f,h),rgba:v.toRgba(u,f,h)}},b.isOpaque=function($){return(255&$.rgba)==255},b.ensureContrastRatio=function($,w,S){const k=p.ensureContrastRatio($.rgba,w.rgba,S);if(k)return p.toColor(k>>24&255,k>>16&255,k>>8&255)},b.opaque=function($){const w=(255|$.rgba)>>>0;return[u,f,h]=p.toChannels(w),{css:v.toCss(u,f,h),rgba:w}},b.opacity=_,b.multiplyOpacity=function($,w){return d=255&$.rgba,_($,d*w/255)},b.toColorRGB=function($){return[$.rgba>>24&255,$.rgba>>16&255,$.rgba>>8&255]}}(a.color||(a.color={})),function(b){let _,$;if(!c.isNode){const w=document.createElement("canvas");w.width=1,w.height=1;const S=w.getContext("2d",{willReadFrequently:!0});S&&(_=S,_.globalCompositeOperation="copy",$=_.createLinearGradient(0,0,1,1))}b.toColor=function(w){if(w.match(/#[\da-f]{3,8}/i))switch(w.length){case 4:return u=parseInt(w.slice(1,2).repeat(2),16),f=parseInt(w.slice(2,3).repeat(2),16),h=parseInt(w.slice(3,4).repeat(2),16),p.toColor(u,f,h);case 5:return u=parseInt(w.slice(1,2).repeat(2),16),f=parseInt(w.slice(2,3).repeat(2),16),h=parseInt(w.slice(3,4).repeat(2),16),d=parseInt(w.slice(4,5).repeat(2),16),p.toColor(u,f,h,d);case 7:return{css:w,rgba:(parseInt(w.slice(1),16)<<8|255)>>>0};case 9:return{css:w,rgba:parseInt(w.slice(1),16)>>>0}}const S=w.match(/rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})\s*(,\s*(0|1|\d?\.(\d+))\s*)?\)/);if(S)return u=parseInt(S[1]),f=parseInt(S[2]),h=parseInt(S[3]),d=Math.round(255*(S[5]===void 0?1:parseFloat(S[5]))),p.toColor(u,f,h,d);if(!_||!$)throw new Error("css.toColor: Unsupported css format");if(_.fillStyle=$,_.fillStyle=w,typeof _.fillStyle!="string")throw new Error("css.toColor: Unsupported css format");if(_.fillRect(0,0,1,1),[u,f,h,d]=_.getImageData(0,0,1,1).data,d!==255)throw new Error("css.toColor: Unsupported css format");return{rgba:v.toRgba(u,f,h,d),css:w}}}(a.css||(a.css={})),function(b){function _($,w,S){const k=$/255,x=w/255,C=S/255;return .2126*(k<=.03928?k/12.92:Math.pow((k+.055)/1.055,2.4))+.7152*(x<=.03928?x/12.92:Math.pow((x+.055)/1.055,2.4))+.0722*(C<=.03928?C/12.92:Math.pow((C+.055)/1.055,2.4))}b.relativeLuminance=function($){return _($>>16&255,$>>8&255,255&$)},b.relativeLuminance2=_}(g=a.rgb||(a.rgb={})),function(b){function _(w,S,k){const x=w>>24&255,C=w>>16&255,E=w>>8&255;let j=S>>24&255,A=S>>16&255,T=S>>8&255,L=y(g.relativeLuminance2(j,A,T),g.relativeLuminance2(x,C,E));for(;L<k&&(j>0||A>0||T>0);)j-=Math.max(0,Math.ceil(.1*j)),A-=Math.max(0,Math.ceil(.1*A)),T-=Math.max(0,Math.ceil(.1*T)),L=y(g.relativeLuminance2(j,A,T),g.relativeLuminance2(x,C,E));return(j<<24|A<<16|T<<8|255)>>>0}function $(w,S,k){const x=w>>24&255,C=w>>16&255,E=w>>8&255;let j=S>>24&255,A=S>>16&255,T=S>>8&255,L=y(g.relativeLuminance2(j,A,T),g.relativeLuminance2(x,C,E));for(;L<k&&(j<255||A<255||T<255);)j=Math.min(255,j+Math.ceil(.1*(255-j))),A=Math.min(255,A+Math.ceil(.1*(255-A))),T=Math.min(255,T+Math.ceil(.1*(255-T))),L=y(g.relativeLuminance2(j,A,T),g.relativeLuminance2(x,C,E));return(j<<24|A<<16|T<<8|255)>>>0}b.ensureContrastRatio=function(w,S,k){const x=g.relativeLuminance(w>>8),C=g.relativeLuminance(S>>8);if(y(x,C)<k){if(C<x){const A=_(w,S,k),T=y(x,g.relativeLuminance(A>>8));if(T<k){const L=$(w,S,k);return T>y(x,g.relativeLuminance(L>>8))?A:L}return A}const E=$(w,S,k),j=y(x,g.relativeLuminance(E>>8));if(j<k){const A=_(w,S,k);return j>y(x,g.relativeLuminance(A>>8))?E:A}return E}},b.reduceLuminance=_,b.increaseLuminance=$,b.toChannels=function(w){return[w>>24&255,w>>16&255,w>>8&255,255&w]},b.toColor=function(w,S,k,x){return{css:v.toCss(w,S,k,x),rgba:v.toRgba(w,S,k,x)}}}(p=a.rgba||(a.rgba={})),a.toPaddedHex=m,a.contrastRatio=y},8969:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CoreTerminal=void 0;const c=l(844),u=l(2585),f=l(4348),h=l(7866),d=l(744),v=l(7302),g=l(6975),p=l(8460),m=l(1753),y=l(1480),b=l(7994),_=l(9282),$=l(5435),w=l(5981),S=l(2660);let k=!1;class x extends c.Disposable{constructor(E){super(),this._onBinary=this.register(new p.EventEmitter),this.onBinary=this._onBinary.event,this._onData=this.register(new p.EventEmitter),this.onData=this._onData.event,this._onLineFeed=this.register(new p.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onResize=this.register(new p.EventEmitter),this.onResize=this._onResize.event,this._onWriteParsed=this.register(new p.EventEmitter),this.onWriteParsed=this._onWriteParsed.event,this._onScroll=this.register(new p.EventEmitter),this._instantiationService=new f.InstantiationService,this.optionsService=this.register(new v.OptionsService(E)),this._instantiationService.setService(u.IOptionsService,this.optionsService),this._bufferService=this.register(this._instantiationService.createInstance(d.BufferService)),this._instantiationService.setService(u.IBufferService,this._bufferService),this._logService=this.register(this._instantiationService.createInstance(h.LogService)),this._instantiationService.setService(u.ILogService,this._logService),this.coreService=this.register(this._instantiationService.createInstance(g.CoreService)),this._instantiationService.setService(u.ICoreService,this.coreService),this.coreMouseService=this.register(this._instantiationService.createInstance(m.CoreMouseService)),this._instantiationService.setService(u.ICoreMouseService,this.coreMouseService),this.unicodeService=this.register(this._instantiationService.createInstance(y.UnicodeService)),this._instantiationService.setService(u.IUnicodeService,this.unicodeService),this._charsetService=this._instantiationService.createInstance(b.CharsetService),this._instantiationService.setService(u.ICharsetService,this._charsetService),this._oscLinkService=this._instantiationService.createInstance(S.OscLinkService),this._instantiationService.setService(u.IOscLinkService,this._oscLinkService),this._inputHandler=this.register(new $.InputHandler(this._bufferService,this._charsetService,this.coreService,this._logService,this.optionsService,this._oscLinkService,this.coreMouseService,this.unicodeService)),this.register((0,p.forwardEvent)(this._inputHandler.onLineFeed,this._onLineFeed)),this.register(this._inputHandler),this.register((0,p.forwardEvent)(this._bufferService.onResize,this._onResize)),this.register((0,p.forwardEvent)(this.coreService.onData,this._onData)),this.register((0,p.forwardEvent)(this.coreService.onBinary,this._onBinary)),this.register(this.coreService.onRequestScrollToBottom(()=>this.scrollToBottom())),this.register(this.coreService.onUserInput(()=>this._writeBuffer.handleUserInput())),this.register(this.optionsService.onSpecificOptionChange("windowsMode",j=>this._handleWindowsModeOptionChange(j))),this.register(this._bufferService.onScroll(j=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this.register(this._inputHandler.onScroll(j=>{this._onScroll.fire({position:this._bufferService.buffer.ydisp,source:0}),this._inputHandler.markRangeDirty(this._bufferService.buffer.scrollTop,this._bufferService.buffer.scrollBottom)})),this._writeBuffer=this.register(new w.WriteBuffer((j,A)=>this._inputHandler.parse(j,A))),this.register((0,p.forwardEvent)(this._writeBuffer.onWriteParsed,this._onWriteParsed)),this.register((0,c.toDisposable)(()=>{var j;(j=this._windowsMode)===null||j===void 0||j.dispose(),this._windowsMode=void 0}))}get onScroll(){return this._onScrollApi||(this._onScrollApi=this.register(new p.EventEmitter),this._onScroll.event(E=>{var j;(j=this._onScrollApi)===null||j===void 0||j.fire(E.position)})),this._onScrollApi.event}get cols(){return this._bufferService.cols}get rows(){return this._bufferService.rows}get buffers(){return this._bufferService.buffers}get options(){return this.optionsService.options}set options(E){for(const j in E)this.optionsService.options[j]=E[j]}write(E,j){this._writeBuffer.write(E,j)}writeSync(E,j){this._logService.logLevel<=u.LogLevelEnum.WARN&&!k&&(this._logService.warn("writeSync is unreliable and will be removed soon."),k=!0),this._writeBuffer.writeSync(E,j)}resize(E,j){isNaN(E)||isNaN(j)||(E=Math.max(E,d.MINIMUM_COLS),j=Math.max(j,d.MINIMUM_ROWS),this._bufferService.resize(E,j))}scroll(E,j=!1){this._bufferService.scroll(E,j)}scrollLines(E,j,A){this._bufferService.scrollLines(E,j,A)}scrollPages(E){this._bufferService.scrollPages(E)}scrollToTop(){this._bufferService.scrollToTop()}scrollToBottom(){this._bufferService.scrollToBottom()}scrollToLine(E){this._bufferService.scrollToLine(E)}registerEscHandler(E,j){return this._inputHandler.registerEscHandler(E,j)}registerDcsHandler(E,j){return this._inputHandler.registerDcsHandler(E,j)}registerCsiHandler(E,j){return this._inputHandler.registerCsiHandler(E,j)}registerOscHandler(E,j){return this._inputHandler.registerOscHandler(E,j)}_setup(){this.optionsService.rawOptions.windowsMode&&this._enableWindowsMode()}reset(){this._inputHandler.reset(),this._bufferService.reset(),this._charsetService.reset(),this.coreService.reset(),this.coreMouseService.reset()}_handleWindowsModeOptionChange(E){var j;E?this._enableWindowsMode():((j=this._windowsMode)===null||j===void 0||j.dispose(),this._windowsMode=void 0)}_enableWindowsMode(){if(!this._windowsMode){const E=[];E.push(this.onLineFeed(_.updateWindowsModeWrappedState.bind(null,this._bufferService))),E.push(this.registerCsiHandler({final:"H"},()=>((0,_.updateWindowsModeWrappedState)(this._bufferService),!1))),this._windowsMode={dispose:()=>{for(const j of E)j.dispose()}}}}}a.CoreTerminal=x},8460:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.forwardEvent=a.EventEmitter=void 0,a.EventEmitter=class{constructor(){this._listeners=[],this._disposed=!1}get event(){return this._event||(this._event=l=>(this._listeners.push(l),{dispose:()=>{if(!this._disposed){for(let c=0;c<this._listeners.length;c++)if(this._listeners[c]===l)return void this._listeners.splice(c,1)}}})),this._event}fire(l,c){const u=[];for(let f=0;f<this._listeners.length;f++)u.push(this._listeners[f]);for(let f=0;f<u.length;f++)u[f].call(void 0,l,c)}dispose(){this._listeners&&(this._listeners.length=0),this._disposed=!0}},a.forwardEvent=function(l,c){return l(u=>c.fire(u))}},5435:function(s,a,l){var c=this&&this.__decorate||function(V,P,F,O){var R,H=arguments.length,M=H<3?P:O===null?O=Object.getOwnPropertyDescriptor(P,F):O;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")M=Reflect.decorate(V,P,F,O);else for(var z=V.length-1;z>=0;z--)(R=V[z])&&(M=(H<3?R(M):H>3?R(P,F,M):R(P,F))||M);return H>3&&M&&Object.defineProperty(P,F,M),M},u=this&&this.__param||function(V,P){return function(F,O){P(F,O,V)}};Object.defineProperty(a,"__esModule",{value:!0}),a.InputHandler=a.WindowsOptionsReportType=void 0;const f=l(2584),h=l(7116),d=l(2015),v=l(844),g=l(482),p=l(8437),m=l(8460),y=l(643),b=l(511),_=l(3734),$=l(2585),w=l(6242),S=l(6351),k=l(5941),x={"(":0,")":1,"*":2,"+":3,"-":1,".":2},C=131072;function E(V,P){if(V>24)return P.setWinLines||!1;switch(V){case 1:return!!P.restoreWin;case 2:return!!P.minimizeWin;case 3:return!!P.setWinPosition;case 4:return!!P.setWinSizePixels;case 5:return!!P.raiseWin;case 6:return!!P.lowerWin;case 7:return!!P.refreshWin;case 8:return!!P.setWinSizeChars;case 9:return!!P.maximizeWin;case 10:return!!P.fullscreenWin;case 11:return!!P.getWinState;case 13:return!!P.getWinPosition;case 14:return!!P.getWinSizePixels;case 15:return!!P.getScreenSizePixels;case 16:return!!P.getCellSizePixels;case 18:return!!P.getWinSizeChars;case 19:return!!P.getScreenSizeChars;case 20:return!!P.getIconTitle;case 21:return!!P.getWinTitle;case 22:return!!P.pushTitle;case 23:return!!P.popTitle;case 24:return!!P.setWinLines}return!1}var j;(function(V){V[V.GET_WIN_SIZE_PIXELS=0]="GET_WIN_SIZE_PIXELS",V[V.GET_CELL_SIZE_PIXELS=1]="GET_CELL_SIZE_PIXELS"})(j=a.WindowsOptionsReportType||(a.WindowsOptionsReportType={}));let A=0;class T extends v.Disposable{constructor(P,F,O,R,H,M,z,U,N=new d.EscapeSequenceParser){super(),this._bufferService=P,this._charsetService=F,this._coreService=O,this._logService=R,this._optionsService=H,this._oscLinkService=M,this._coreMouseService=z,this._unicodeService=U,this._parser=N,this._parseBuffer=new Uint32Array(4096),this._stringDecoder=new g.StringToUtf32,this._utf8Decoder=new g.Utf8ToUtf32,this._workCell=new b.CellData,this._windowTitle="",this._iconName="",this._windowTitleStack=[],this._iconNameStack=[],this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=p.DEFAULT_ATTR_DATA.clone(),this._onRequestBell=this.register(new m.EventEmitter),this.onRequestBell=this._onRequestBell.event,this._onRequestRefreshRows=this.register(new m.EventEmitter),this.onRequestRefreshRows=this._onRequestRefreshRows.event,this._onRequestReset=this.register(new m.EventEmitter),this.onRequestReset=this._onRequestReset.event,this._onRequestSendFocus=this.register(new m.EventEmitter),this.onRequestSendFocus=this._onRequestSendFocus.event,this._onRequestSyncScrollBar=this.register(new m.EventEmitter),this.onRequestSyncScrollBar=this._onRequestSyncScrollBar.event,this._onRequestWindowsOptionsReport=this.register(new m.EventEmitter),this.onRequestWindowsOptionsReport=this._onRequestWindowsOptionsReport.event,this._onA11yChar=this.register(new m.EventEmitter),this.onA11yChar=this._onA11yChar.event,this._onA11yTab=this.register(new m.EventEmitter),this.onA11yTab=this._onA11yTab.event,this._onCursorMove=this.register(new m.EventEmitter),this.onCursorMove=this._onCursorMove.event,this._onLineFeed=this.register(new m.EventEmitter),this.onLineFeed=this._onLineFeed.event,this._onScroll=this.register(new m.EventEmitter),this.onScroll=this._onScroll.event,this._onTitleChange=this.register(new m.EventEmitter),this.onTitleChange=this._onTitleChange.event,this._onColor=this.register(new m.EventEmitter),this.onColor=this._onColor.event,this._parseStack={paused:!1,cursorStartX:0,cursorStartY:0,decodedLength:0,position:0},this._specialColors=[256,257,258],this.register(this._parser),this._dirtyRowTracker=new L(this._bufferService),this._activeBuffer=this._bufferService.buffer,this.register(this._bufferService.buffers.onBufferActivate(W=>this._activeBuffer=W.activeBuffer)),this._parser.setCsiHandlerFallback((W,I)=>{this._logService.debug("Unknown CSI code: ",{identifier:this._parser.identToString(W),params:I.toArray()})}),this._parser.setEscHandlerFallback(W=>{this._logService.debug("Unknown ESC code: ",{identifier:this._parser.identToString(W)})}),this._parser.setExecuteHandlerFallback(W=>{this._logService.debug("Unknown EXECUTE code: ",{code:W})}),this._parser.setOscHandlerFallback((W,I,G)=>{this._logService.debug("Unknown OSC code: ",{identifier:W,action:I,data:G})}),this._parser.setDcsHandlerFallback((W,I,G)=>{I==="HOOK"&&(G=G.toArray()),this._logService.debug("Unknown DCS code: ",{identifier:this._parser.identToString(W),action:I,payload:G})}),this._parser.setPrintHandler((W,I,G)=>this.print(W,I,G)),this._parser.registerCsiHandler({final:"@"},W=>this.insertChars(W)),this._parser.registerCsiHandler({intermediates:" ",final:"@"},W=>this.scrollLeft(W)),this._parser.registerCsiHandler({final:"A"},W=>this.cursorUp(W)),this._parser.registerCsiHandler({intermediates:" ",final:"A"},W=>this.scrollRight(W)),this._parser.registerCsiHandler({final:"B"},W=>this.cursorDown(W)),this._parser.registerCsiHandler({final:"C"},W=>this.cursorForward(W)),this._parser.registerCsiHandler({final:"D"},W=>this.cursorBackward(W)),this._parser.registerCsiHandler({final:"E"},W=>this.cursorNextLine(W)),this._parser.registerCsiHandler({final:"F"},W=>this.cursorPrecedingLine(W)),this._parser.registerCsiHandler({final:"G"},W=>this.cursorCharAbsolute(W)),this._parser.registerCsiHandler({final:"H"},W=>this.cursorPosition(W)),this._parser.registerCsiHandler({final:"I"},W=>this.cursorForwardTab(W)),this._parser.registerCsiHandler({final:"J"},W=>this.eraseInDisplay(W,!1)),this._parser.registerCsiHandler({prefix:"?",final:"J"},W=>this.eraseInDisplay(W,!0)),this._parser.registerCsiHandler({final:"K"},W=>this.eraseInLine(W,!1)),this._parser.registerCsiHandler({prefix:"?",final:"K"},W=>this.eraseInLine(W,!0)),this._parser.registerCsiHandler({final:"L"},W=>this.insertLines(W)),this._parser.registerCsiHandler({final:"M"},W=>this.deleteLines(W)),this._parser.registerCsiHandler({final:"P"},W=>this.deleteChars(W)),this._parser.registerCsiHandler({final:"S"},W=>this.scrollUp(W)),this._parser.registerCsiHandler({final:"T"},W=>this.scrollDown(W)),this._parser.registerCsiHandler({final:"X"},W=>this.eraseChars(W)),this._parser.registerCsiHandler({final:"Z"},W=>this.cursorBackwardTab(W)),this._parser.registerCsiHandler({final:"`"},W=>this.charPosAbsolute(W)),this._parser.registerCsiHandler({final:"a"},W=>this.hPositionRelative(W)),this._parser.registerCsiHandler({final:"b"},W=>this.repeatPrecedingCharacter(W)),this._parser.registerCsiHandler({final:"c"},W=>this.sendDeviceAttributesPrimary(W)),this._parser.registerCsiHandler({prefix:">",final:"c"},W=>this.sendDeviceAttributesSecondary(W)),this._parser.registerCsiHandler({final:"d"},W=>this.linePosAbsolute(W)),this._parser.registerCsiHandler({final:"e"},W=>this.vPositionRelative(W)),this._parser.registerCsiHandler({final:"f"},W=>this.hVPosition(W)),this._parser.registerCsiHandler({final:"g"},W=>this.tabClear(W)),this._parser.registerCsiHandler({final:"h"},W=>this.setMode(W)),this._parser.registerCsiHandler({prefix:"?",final:"h"},W=>this.setModePrivate(W)),this._parser.registerCsiHandler({final:"l"},W=>this.resetMode(W)),this._parser.registerCsiHandler({prefix:"?",final:"l"},W=>this.resetModePrivate(W)),this._parser.registerCsiHandler({final:"m"},W=>this.charAttributes(W)),this._parser.registerCsiHandler({final:"n"},W=>this.deviceStatus(W)),this._parser.registerCsiHandler({prefix:"?",final:"n"},W=>this.deviceStatusPrivate(W)),this._parser.registerCsiHandler({intermediates:"!",final:"p"},W=>this.softReset(W)),this._parser.registerCsiHandler({intermediates:" ",final:"q"},W=>this.setCursorStyle(W)),this._parser.registerCsiHandler({final:"r"},W=>this.setScrollRegion(W)),this._parser.registerCsiHandler({final:"s"},W=>this.saveCursor(W)),this._parser.registerCsiHandler({final:"t"},W=>this.windowOptions(W)),this._parser.registerCsiHandler({final:"u"},W=>this.restoreCursor(W)),this._parser.registerCsiHandler({intermediates:"'",final:"}"},W=>this.insertColumns(W)),this._parser.registerCsiHandler({intermediates:"'",final:"~"},W=>this.deleteColumns(W)),this._parser.registerCsiHandler({intermediates:'"',final:"q"},W=>this.selectProtected(W)),this._parser.registerCsiHandler({intermediates:"$",final:"p"},W=>this.requestMode(W,!0)),this._parser.registerCsiHandler({prefix:"?",intermediates:"$",final:"p"},W=>this.requestMode(W,!1)),this._parser.setExecuteHandler(f.C0.BEL,()=>this.bell()),this._parser.setExecuteHandler(f.C0.LF,()=>this.lineFeed()),this._parser.setExecuteHandler(f.C0.VT,()=>this.lineFeed()),this._parser.setExecuteHandler(f.C0.FF,()=>this.lineFeed()),this._parser.setExecuteHandler(f.C0.CR,()=>this.carriageReturn()),this._parser.setExecuteHandler(f.C0.BS,()=>this.backspace()),this._parser.setExecuteHandler(f.C0.HT,()=>this.tab()),this._parser.setExecuteHandler(f.C0.SO,()=>this.shiftOut()),this._parser.setExecuteHandler(f.C0.SI,()=>this.shiftIn()),this._parser.setExecuteHandler(f.C1.IND,()=>this.index()),this._parser.setExecuteHandler(f.C1.NEL,()=>this.nextLine()),this._parser.setExecuteHandler(f.C1.HTS,()=>this.tabSet()),this._parser.registerOscHandler(0,new w.OscHandler(W=>(this.setTitle(W),this.setIconName(W),!0))),this._parser.registerOscHandler(1,new w.OscHandler(W=>this.setIconName(W))),this._parser.registerOscHandler(2,new w.OscHandler(W=>this.setTitle(W))),this._parser.registerOscHandler(4,new w.OscHandler(W=>this.setOrReportIndexedColor(W))),this._parser.registerOscHandler(8,new w.OscHandler(W=>this.setHyperlink(W))),this._parser.registerOscHandler(10,new w.OscHandler(W=>this.setOrReportFgColor(W))),this._parser.registerOscHandler(11,new w.OscHandler(W=>this.setOrReportBgColor(W))),this._parser.registerOscHandler(12,new w.OscHandler(W=>this.setOrReportCursorColor(W))),this._parser.registerOscHandler(104,new w.OscHandler(W=>this.restoreIndexedColor(W))),this._parser.registerOscHandler(110,new w.OscHandler(W=>this.restoreFgColor(W))),this._parser.registerOscHandler(111,new w.OscHandler(W=>this.restoreBgColor(W))),this._parser.registerOscHandler(112,new w.OscHandler(W=>this.restoreCursorColor(W))),this._parser.registerEscHandler({final:"7"},()=>this.saveCursor()),this._parser.registerEscHandler({final:"8"},()=>this.restoreCursor()),this._parser.registerEscHandler({final:"D"},()=>this.index()),this._parser.registerEscHandler({final:"E"},()=>this.nextLine()),this._parser.registerEscHandler({final:"H"},()=>this.tabSet()),this._parser.registerEscHandler({final:"M"},()=>this.reverseIndex()),this._parser.registerEscHandler({final:"="},()=>this.keypadApplicationMode()),this._parser.registerEscHandler({final:">"},()=>this.keypadNumericMode()),this._parser.registerEscHandler({final:"c"},()=>this.fullReset()),this._parser.registerEscHandler({final:"n"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"o"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"|"},()=>this.setgLevel(3)),this._parser.registerEscHandler({final:"}"},()=>this.setgLevel(2)),this._parser.registerEscHandler({final:"~"},()=>this.setgLevel(1)),this._parser.registerEscHandler({intermediates:"%",final:"@"},()=>this.selectDefaultCharset()),this._parser.registerEscHandler({intermediates:"%",final:"G"},()=>this.selectDefaultCharset());for(const W in h.CHARSETS)this._parser.registerEscHandler({intermediates:"(",final:W},()=>this.selectCharset("("+W)),this._parser.registerEscHandler({intermediates:")",final:W},()=>this.selectCharset(")"+W)),this._parser.registerEscHandler({intermediates:"*",final:W},()=>this.selectCharset("*"+W)),this._parser.registerEscHandler({intermediates:"+",final:W},()=>this.selectCharset("+"+W)),this._parser.registerEscHandler({intermediates:"-",final:W},()=>this.selectCharset("-"+W)),this._parser.registerEscHandler({intermediates:".",final:W},()=>this.selectCharset("."+W)),this._parser.registerEscHandler({intermediates:"/",final:W},()=>this.selectCharset("/"+W));this._parser.registerEscHandler({intermediates:"#",final:"8"},()=>this.screenAlignmentPattern()),this._parser.setErrorHandler(W=>(this._logService.error("Parsing error: ",W),W)),this._parser.registerDcsHandler({intermediates:"$",final:"q"},new S.DcsHandler((W,I)=>this.requestStatusString(W,I)))}getAttrData(){return this._curAttrData}_preserveStack(P,F,O,R){this._parseStack.paused=!0,this._parseStack.cursorStartX=P,this._parseStack.cursorStartY=F,this._parseStack.decodedLength=O,this._parseStack.position=R}_logSlowResolvingAsync(P){this._logService.logLevel<=$.LogLevelEnum.WARN&&Promise.race([P,new Promise((F,O)=>setTimeout(()=>O("#SLOW_TIMEOUT"),5e3))]).catch(F=>{if(F!=="#SLOW_TIMEOUT")throw F;console.warn("async parser handler taking longer than 5000 ms")})}_getCurrentLinkId(){return this._curAttrData.extended.urlId}parse(P,F){let O,R=this._activeBuffer.x,H=this._activeBuffer.y,M=0;const z=this._parseStack.paused;if(z){if(O=this._parser.parse(this._parseBuffer,this._parseStack.decodedLength,F))return this._logSlowResolvingAsync(O),O;R=this._parseStack.cursorStartX,H=this._parseStack.cursorStartY,this._parseStack.paused=!1,P.length>C&&(M=this._parseStack.position+C)}if(this._logService.logLevel<=$.LogLevelEnum.DEBUG&&this._logService.debug("parsing data"+(typeof P=="string"?` "${P}"`:` "${Array.prototype.map.call(P,U=>String.fromCharCode(U)).join("")}"`),typeof P=="string"?P.split("").map(U=>U.charCodeAt(0)):P),this._parseBuffer.length<P.length&&this._parseBuffer.length<C&&(this._parseBuffer=new Uint32Array(Math.min(P.length,C))),z||this._dirtyRowTracker.clearRange(),P.length>C)for(let U=M;U<P.length;U+=C){const N=U+C<P.length?U+C:P.length,W=typeof P=="string"?this._stringDecoder.decode(P.substring(U,N),this._parseBuffer):this._utf8Decoder.decode(P.subarray(U,N),this._parseBuffer);if(O=this._parser.parse(this._parseBuffer,W))return this._preserveStack(R,H,W,U),this._logSlowResolvingAsync(O),O}else if(!z){const U=typeof P=="string"?this._stringDecoder.decode(P,this._parseBuffer):this._utf8Decoder.decode(P,this._parseBuffer);if(O=this._parser.parse(this._parseBuffer,U))return this._preserveStack(R,H,U,0),this._logSlowResolvingAsync(O),O}this._activeBuffer.x===R&&this._activeBuffer.y===H||this._onCursorMove.fire(),this._onRequestRefreshRows.fire(this._dirtyRowTracker.start,this._dirtyRowTracker.end)}print(P,F,O){let R,H;const M=this._charsetService.charset,z=this._optionsService.rawOptions.screenReaderMode,U=this._bufferService.cols,N=this._coreService.decPrivateModes.wraparound,W=this._coreService.modes.insertMode,I=this._curAttrData;let G=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._activeBuffer.x&&O-F>0&&G.getWidth(this._activeBuffer.x-1)===2&&G.setCellFromCodePoint(this._activeBuffer.x-1,0,1,I.fg,I.bg,I.extended);for(let ee=F;ee<O;++ee){if(R=P[ee],H=this._unicodeService.wcwidth(R),R<127&&M){const ue=M[String.fromCharCode(R)];ue&&(R=ue.charCodeAt(0))}if(z&&this._onA11yChar.fire((0,g.stringFromCodePoint)(R)),this._getCurrentLinkId()&&this._oscLinkService.addLineToLink(this._getCurrentLinkId(),this._activeBuffer.ybase+this._activeBuffer.y),H||!this._activeBuffer.x){if(this._activeBuffer.x+H-1>=U){if(N){for(;this._activeBuffer.x<U;)G.setCellFromCodePoint(this._activeBuffer.x++,0,1,I.fg,I.bg,I.extended);this._activeBuffer.x=0,this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData(),!0)):(this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!0),G=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y)}else if(this._activeBuffer.x=U-1,H===2)continue}if(W&&(G.insertCells(this._activeBuffer.x,H,this._activeBuffer.getNullCell(I),I),G.getWidth(U-1)===2&&G.setCellFromCodePoint(U-1,y.NULL_CELL_CODE,y.NULL_CELL_WIDTH,I.fg,I.bg,I.extended)),G.setCellFromCodePoint(this._activeBuffer.x++,R,H,I.fg,I.bg,I.extended),H>0)for(;--H;)G.setCellFromCodePoint(this._activeBuffer.x++,0,0,I.fg,I.bg,I.extended)}else G.getWidth(this._activeBuffer.x-1)?G.addCodepointToCell(this._activeBuffer.x-1,R):G.addCodepointToCell(this._activeBuffer.x-2,R)}O-F>0&&(G.loadCell(this._activeBuffer.x-1,this._workCell),this._workCell.getWidth()===2||this._workCell.getCode()>65535?this._parser.precedingCodepoint=0:this._workCell.isCombined()?this._parser.precedingCodepoint=this._workCell.getChars().charCodeAt(0):this._parser.precedingCodepoint=this._workCell.content),this._activeBuffer.x<U&&O-F>0&&G.getWidth(this._activeBuffer.x)===0&&!G.hasContent(this._activeBuffer.x)&&G.setCellFromCodePoint(this._activeBuffer.x,0,1,I.fg,I.bg,I.extended),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}registerCsiHandler(P,F){return P.final!=="t"||P.prefix||P.intermediates?this._parser.registerCsiHandler(P,F):this._parser.registerCsiHandler(P,O=>!E(O.params[0],this._optionsService.rawOptions.windowOptions)||F(O))}registerDcsHandler(P,F){return this._parser.registerDcsHandler(P,new S.DcsHandler(F))}registerEscHandler(P,F){return this._parser.registerEscHandler(P,F)}registerOscHandler(P,F){return this._parser.registerOscHandler(P,new w.OscHandler(F))}bell(){return this._onRequestBell.fire(),!0}lineFeed(){return this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._optionsService.rawOptions.convertEol&&(this._activeBuffer.x=0),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._activeBuffer.x>=this._bufferService.cols&&this._activeBuffer.x--,this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._onLineFeed.fire(),!0}carriageReturn(){return this._activeBuffer.x=0,!0}backspace(){var P;if(!this._coreService.decPrivateModes.reverseWraparound)return this._restrictCursor(),this._activeBuffer.x>0&&this._activeBuffer.x--,!0;if(this._restrictCursor(this._bufferService.cols),this._activeBuffer.x>0)this._activeBuffer.x--;else if(this._activeBuffer.x===0&&this._activeBuffer.y>this._activeBuffer.scrollTop&&this._activeBuffer.y<=this._activeBuffer.scrollBottom&&(!((P=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y))===null||P===void 0)&&P.isWrapped)){this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y).isWrapped=!1,this._activeBuffer.y--,this._activeBuffer.x=this._bufferService.cols-1;const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);F.hasWidth(this._activeBuffer.x)&&!F.hasContent(this._activeBuffer.x)&&this._activeBuffer.x--}return this._restrictCursor(),!0}tab(){if(this._activeBuffer.x>=this._bufferService.cols)return!0;const P=this._activeBuffer.x;return this._activeBuffer.x=this._activeBuffer.nextStop(),this._optionsService.rawOptions.screenReaderMode&&this._onA11yTab.fire(this._activeBuffer.x-P),!0}shiftOut(){return this._charsetService.setgLevel(1),!0}shiftIn(){return this._charsetService.setgLevel(0),!0}_restrictCursor(P=this._bufferService.cols-1){this._activeBuffer.x=Math.min(P,Math.max(0,this._activeBuffer.x)),this._activeBuffer.y=this._coreService.decPrivateModes.origin?Math.min(this._activeBuffer.scrollBottom,Math.max(this._activeBuffer.scrollTop,this._activeBuffer.y)):Math.min(this._bufferService.rows-1,Math.max(0,this._activeBuffer.y)),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_setCursor(P,F){this._dirtyRowTracker.markDirty(this._activeBuffer.y),this._coreService.decPrivateModes.origin?(this._activeBuffer.x=P,this._activeBuffer.y=this._activeBuffer.scrollTop+F):(this._activeBuffer.x=P,this._activeBuffer.y=F),this._restrictCursor(),this._dirtyRowTracker.markDirty(this._activeBuffer.y)}_moveCursor(P,F){this._restrictCursor(),this._setCursor(this._activeBuffer.x+P,this._activeBuffer.y+F)}cursorUp(P){const F=this._activeBuffer.y-this._activeBuffer.scrollTop;return F>=0?this._moveCursor(0,-Math.min(F,P.params[0]||1)):this._moveCursor(0,-(P.params[0]||1)),!0}cursorDown(P){const F=this._activeBuffer.scrollBottom-this._activeBuffer.y;return F>=0?this._moveCursor(0,Math.min(F,P.params[0]||1)):this._moveCursor(0,P.params[0]||1),!0}cursorForward(P){return this._moveCursor(P.params[0]||1,0),!0}cursorBackward(P){return this._moveCursor(-(P.params[0]||1),0),!0}cursorNextLine(P){return this.cursorDown(P),this._activeBuffer.x=0,!0}cursorPrecedingLine(P){return this.cursorUp(P),this._activeBuffer.x=0,!0}cursorCharAbsolute(P){return this._setCursor((P.params[0]||1)-1,this._activeBuffer.y),!0}cursorPosition(P){return this._setCursor(P.length>=2?(P.params[1]||1)-1:0,(P.params[0]||1)-1),!0}charPosAbsolute(P){return this._setCursor((P.params[0]||1)-1,this._activeBuffer.y),!0}hPositionRelative(P){return this._moveCursor(P.params[0]||1,0),!0}linePosAbsolute(P){return this._setCursor(this._activeBuffer.x,(P.params[0]||1)-1),!0}vPositionRelative(P){return this._moveCursor(0,P.params[0]||1),!0}hVPosition(P){return this.cursorPosition(P),!0}tabClear(P){const F=P.params[0];return F===0?delete this._activeBuffer.tabs[this._activeBuffer.x]:F===3&&(this._activeBuffer.tabs={}),!0}cursorForwardTab(P){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let F=P.params[0]||1;for(;F--;)this._activeBuffer.x=this._activeBuffer.nextStop();return!0}cursorBackwardTab(P){if(this._activeBuffer.x>=this._bufferService.cols)return!0;let F=P.params[0]||1;for(;F--;)this._activeBuffer.x=this._activeBuffer.prevStop();return!0}selectProtected(P){const F=P.params[0];return F===1&&(this._curAttrData.bg|=536870912),F!==2&&F!==0||(this._curAttrData.bg&=-536870913),!0}_eraseInBufferLine(P,F,O,R=!1,H=!1){const M=this._activeBuffer.lines.get(this._activeBuffer.ybase+P);M.replaceCells(F,O,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData(),H),R&&(M.isWrapped=!1)}_resetBufferLine(P,F=!1){const O=this._activeBuffer.lines.get(this._activeBuffer.ybase+P);O.fill(this._activeBuffer.getNullCell(this._eraseAttrData()),F),this._bufferService.buffer.clearMarkers(this._activeBuffer.ybase+P),O.isWrapped=!1}eraseInDisplay(P,F=!1){let O;switch(this._restrictCursor(this._bufferService.cols),P.params[0]){case 0:for(O=this._activeBuffer.y,this._dirtyRowTracker.markDirty(O),this._eraseInBufferLine(O++,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,F);O<this._bufferService.rows;O++)this._resetBufferLine(O,F);this._dirtyRowTracker.markDirty(O);break;case 1:for(O=this._activeBuffer.y,this._dirtyRowTracker.markDirty(O),this._eraseInBufferLine(O,0,this._activeBuffer.x+1,!0,F),this._activeBuffer.x+1>=this._bufferService.cols&&(this._activeBuffer.lines.get(O+1).isWrapped=!1);O--;)this._resetBufferLine(O,F);this._dirtyRowTracker.markDirty(0);break;case 2:for(O=this._bufferService.rows,this._dirtyRowTracker.markDirty(O-1);O--;)this._resetBufferLine(O,F);this._dirtyRowTracker.markDirty(0);break;case 3:const R=this._activeBuffer.lines.length-this._bufferService.rows;R>0&&(this._activeBuffer.lines.trimStart(R),this._activeBuffer.ybase=Math.max(this._activeBuffer.ybase-R,0),this._activeBuffer.ydisp=Math.max(this._activeBuffer.ydisp-R,0),this._onScroll.fire(0))}return!0}eraseInLine(P,F=!1){switch(this._restrictCursor(this._bufferService.cols),P.params[0]){case 0:this._eraseInBufferLine(this._activeBuffer.y,this._activeBuffer.x,this._bufferService.cols,this._activeBuffer.x===0,F);break;case 1:this._eraseInBufferLine(this._activeBuffer.y,0,this._activeBuffer.x+1,!1,F);break;case 2:this._eraseInBufferLine(this._activeBuffer.y,0,this._bufferService.cols,!0,F)}return this._dirtyRowTracker.markDirty(this._activeBuffer.y),!0}insertLines(P){this._restrictCursor();let F=P.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const O=this._activeBuffer.ybase+this._activeBuffer.y,R=this._bufferService.rows-1-this._activeBuffer.scrollBottom,H=this._bufferService.rows-1+this._activeBuffer.ybase-R+1;for(;F--;)this._activeBuffer.lines.splice(H-1,1),this._activeBuffer.lines.splice(O,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}deleteLines(P){this._restrictCursor();let F=P.params[0]||1;if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const O=this._activeBuffer.ybase+this._activeBuffer.y;let R;for(R=this._bufferService.rows-1-this._activeBuffer.scrollBottom,R=this._bufferService.rows-1+this._activeBuffer.ybase-R;F--;)this._activeBuffer.lines.splice(O,1),this._activeBuffer.lines.splice(R,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.y,this._activeBuffer.scrollBottom),this._activeBuffer.x=0,!0}insertChars(P){this._restrictCursor();const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return F&&(F.insertCells(this._activeBuffer.x,P.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}deleteChars(P){this._restrictCursor();const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return F&&(F.deleteCells(this._activeBuffer.x,P.params[0]||1,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}scrollUp(P){let F=P.params[0]||1;for(;F--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,0,this._activeBuffer.getBlankLine(this._eraseAttrData()));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollDown(P){let F=P.params[0]||1;for(;F--;)this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollBottom,1),this._activeBuffer.lines.splice(this._activeBuffer.ybase+this._activeBuffer.scrollTop,0,this._activeBuffer.getBlankLine(p.DEFAULT_ATTR_DATA));return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollLeft(P){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const F=P.params[0]||1;for(let O=this._activeBuffer.scrollTop;O<=this._activeBuffer.scrollBottom;++O){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+O);R.deleteCells(0,F,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}scrollRight(P){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const F=P.params[0]||1;for(let O=this._activeBuffer.scrollTop;O<=this._activeBuffer.scrollBottom;++O){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+O);R.insertCells(0,F,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}insertColumns(P){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const F=P.params[0]||1;for(let O=this._activeBuffer.scrollTop;O<=this._activeBuffer.scrollBottom;++O){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+O);R.insertCells(this._activeBuffer.x,F,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}deleteColumns(P){if(this._activeBuffer.y>this._activeBuffer.scrollBottom||this._activeBuffer.y<this._activeBuffer.scrollTop)return!0;const F=P.params[0]||1;for(let O=this._activeBuffer.scrollTop;O<=this._activeBuffer.scrollBottom;++O){const R=this._activeBuffer.lines.get(this._activeBuffer.ybase+O);R.deleteCells(this._activeBuffer.x,F,this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),R.isWrapped=!1}return this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom),!0}eraseChars(P){this._restrictCursor();const F=this._activeBuffer.lines.get(this._activeBuffer.ybase+this._activeBuffer.y);return F&&(F.replaceCells(this._activeBuffer.x,this._activeBuffer.x+(P.params[0]||1),this._activeBuffer.getNullCell(this._eraseAttrData()),this._eraseAttrData()),this._dirtyRowTracker.markDirty(this._activeBuffer.y)),!0}repeatPrecedingCharacter(P){if(!this._parser.precedingCodepoint)return!0;const F=P.params[0]||1,O=new Uint32Array(F);for(let R=0;R<F;++R)O[R]=this._parser.precedingCodepoint;return this.print(O,0,O.length),!0}sendDeviceAttributesPrimary(P){return P.params[0]>0||(this._is("xterm")||this._is("rxvt-unicode")||this._is("screen")?this._coreService.triggerDataEvent(f.C0.ESC+"[?1;2c"):this._is("linux")&&this._coreService.triggerDataEvent(f.C0.ESC+"[?6c")),!0}sendDeviceAttributesSecondary(P){return P.params[0]>0||(this._is("xterm")?this._coreService.triggerDataEvent(f.C0.ESC+"[>0;276;0c"):this._is("rxvt-unicode")?this._coreService.triggerDataEvent(f.C0.ESC+"[>85;95;0c"):this._is("linux")?this._coreService.triggerDataEvent(P.params[0]+"c"):this._is("screen")&&this._coreService.triggerDataEvent(f.C0.ESC+"[>83;40003;0c")),!0}_is(P){return(this._optionsService.rawOptions.termName+"").indexOf(P)===0}setMode(P){for(let F=0;F<P.length;F++)switch(P.params[F]){case 4:this._coreService.modes.insertMode=!0;break;case 20:this._optionsService.options.convertEol=!0}return!0}setModePrivate(P){for(let F=0;F<P.length;F++)switch(P.params[F]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!0;break;case 2:this._charsetService.setgCharset(0,h.DEFAULT_CHARSET),this._charsetService.setgCharset(1,h.DEFAULT_CHARSET),this._charsetService.setgCharset(2,h.DEFAULT_CHARSET),this._charsetService.setgCharset(3,h.DEFAULT_CHARSET);break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(132,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!0,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!0;break;case 12:this._optionsService.options.cursorBlink=!0;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!0;break;case 66:this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire();break;case 9:this._coreMouseService.activeProtocol="X10";break;case 1e3:this._coreMouseService.activeProtocol="VT200";break;case 1002:this._coreMouseService.activeProtocol="DRAG";break;case 1003:this._coreMouseService.activeProtocol="ANY";break;case 1004:this._coreService.decPrivateModes.sendFocus=!0,this._onRequestSendFocus.fire();break;case 1005:this._logService.debug("DECSET 1005 not supported (see #2507)");break;case 1006:this._coreMouseService.activeEncoding="SGR";break;case 1015:this._logService.debug("DECSET 1015 not supported (see #2507)");break;case 1016:this._coreMouseService.activeEncoding="SGR_PIXELS";break;case 25:this._coreService.isCursorHidden=!1;break;case 1048:this.saveCursor();break;case 1049:this.saveCursor();case 47:case 1047:this._bufferService.buffers.activateAltBuffer(this._eraseAttrData()),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!0}return!0}resetMode(P){for(let F=0;F<P.length;F++)switch(P.params[F]){case 4:this._coreService.modes.insertMode=!1;break;case 20:this._optionsService.options.convertEol=!1}return!0}resetModePrivate(P){for(let F=0;F<P.length;F++)switch(P.params[F]){case 1:this._coreService.decPrivateModes.applicationCursorKeys=!1;break;case 3:this._optionsService.rawOptions.windowOptions.setWinLines&&(this._bufferService.resize(80,this._bufferService.rows),this._onRequestReset.fire());break;case 6:this._coreService.decPrivateModes.origin=!1,this._setCursor(0,0);break;case 7:this._coreService.decPrivateModes.wraparound=!1;break;case 12:this._optionsService.options.cursorBlink=!1;break;case 45:this._coreService.decPrivateModes.reverseWraparound=!1;break;case 66:this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire();break;case 9:case 1e3:case 1002:case 1003:this._coreMouseService.activeProtocol="NONE";break;case 1004:this._coreService.decPrivateModes.sendFocus=!1;break;case 1005:this._logService.debug("DECRST 1005 not supported (see #2507)");break;case 1006:case 1016:this._coreMouseService.activeEncoding="DEFAULT";break;case 1015:this._logService.debug("DECRST 1015 not supported (see #2507)");break;case 25:this._coreService.isCursorHidden=!0;break;case 1048:this.restoreCursor();break;case 1049:case 47:case 1047:this._bufferService.buffers.activateNormalBuffer(),P.params[F]===1049&&this.restoreCursor(),this._coreService.isCursorInitialized=!0,this._onRequestRefreshRows.fire(0,this._bufferService.rows-1),this._onRequestSyncScrollBar.fire();break;case 2004:this._coreService.decPrivateModes.bracketedPasteMode=!1}return!0}requestMode(P,F){const O=this._coreService.decPrivateModes,{activeProtocol:R,activeEncoding:H}=this._coreMouseService,M=this._coreService,{buffers:z,cols:U}=this._bufferService,{active:N,alt:W}=z,I=this._optionsService.rawOptions,G=D=>D?1:2,ee=P.params[0];return ue=ee,q=F?ee===2?3:ee===4?G(M.modes.insertMode):ee===12?4:ee===20?G(I.convertEol):0:ee===1?G(O.applicationCursorKeys):ee===3?I.windowOptions.setWinLines?U===80?2:U===132?1:0:0:ee===6?G(O.origin):ee===7?G(O.wraparound):ee===8?3:ee===9?G(R==="X10"):ee===12?G(I.cursorBlink):ee===25?G(!M.isCursorHidden):ee===45?G(O.reverseWraparound):ee===66?G(O.applicationKeypad):ee===1e3?G(R==="VT200"):ee===1002?G(R==="DRAG"):ee===1003?G(R==="ANY"):ee===1004?G(O.sendFocus):ee===1005?4:ee===1006?G(H==="SGR"):ee===1015?4:ee===1016?G(H==="SGR_PIXELS"):ee===1048?1:ee===47||ee===1047||ee===1049?G(N===W):ee===2004?G(O.bracketedPasteMode):0,M.triggerDataEvent(`${f.C0.ESC}[${F?"":"?"}${ue};${q}$y`),!0;var ue,q}_updateAttrColor(P,F,O,R,H){return F===2?(P|=50331648,P&=-16777216,P|=_.AttributeData.fromColorRGB([O,R,H])):F===5&&(P&=-50331904,P|=33554432|255&O),P}_extractColor(P,F,O){const R=[0,0,-1,0,0,0];let H=0,M=0;do{if(R[M+H]=P.params[F+M],P.hasSubParams(F+M)){const z=P.getSubParams(F+M);let U=0;do R[1]===5&&(H=1),R[M+U+1+H]=z[U];while(++U<z.length&&U+M+1+H<R.length);break}if(R[1]===5&&M+H>=2||R[1]===2&&M+H>=5)break;R[1]&&(H=1)}while(++M+F<P.length&&M+H<R.length);for(let z=2;z<R.length;++z)R[z]===-1&&(R[z]=0);switch(R[0]){case 38:O.fg=this._updateAttrColor(O.fg,R[1],R[3],R[4],R[5]);break;case 48:O.bg=this._updateAttrColor(O.bg,R[1],R[3],R[4],R[5]);break;case 58:O.extended=O.extended.clone(),O.extended.underlineColor=this._updateAttrColor(O.extended.underlineColor,R[1],R[3],R[4],R[5])}return M}_processUnderline(P,F){F.extended=F.extended.clone(),(!~P||P>5)&&(P=1),F.extended.underlineStyle=P,F.fg|=268435456,P===0&&(F.fg&=-268435457),F.updateExtended()}_processSGR0(P){P.fg=p.DEFAULT_ATTR_DATA.fg,P.bg=p.DEFAULT_ATTR_DATA.bg,P.extended=P.extended.clone(),P.extended.underlineStyle=0,P.extended.underlineColor&=-67108864,P.updateExtended()}charAttributes(P){if(P.length===1&&P.params[0]===0)return this._processSGR0(this._curAttrData),!0;const F=P.length;let O;const R=this._curAttrData;for(let H=0;H<F;H++)O=P.params[H],O>=30&&O<=37?(R.fg&=-50331904,R.fg|=16777216|O-30):O>=40&&O<=47?(R.bg&=-50331904,R.bg|=16777216|O-40):O>=90&&O<=97?(R.fg&=-50331904,R.fg|=16777224|O-90):O>=100&&O<=107?(R.bg&=-50331904,R.bg|=16777224|O-100):O===0?this._processSGR0(R):O===1?R.fg|=134217728:O===3?R.bg|=67108864:O===4?(R.fg|=268435456,this._processUnderline(P.hasSubParams(H)?P.getSubParams(H)[0]:1,R)):O===5?R.fg|=536870912:O===7?R.fg|=67108864:O===8?R.fg|=1073741824:O===9?R.fg|=2147483648:O===2?R.bg|=134217728:O===21?this._processUnderline(2,R):O===22?(R.fg&=-134217729,R.bg&=-134217729):O===23?R.bg&=-67108865:O===24?(R.fg&=-268435457,this._processUnderline(0,R)):O===25?R.fg&=-536870913:O===27?R.fg&=-67108865:O===28?R.fg&=-1073741825:O===29?R.fg&=2147483647:O===39?(R.fg&=-67108864,R.fg|=16777215&p.DEFAULT_ATTR_DATA.fg):O===49?(R.bg&=-67108864,R.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):O===38||O===48||O===58?H+=this._extractColor(P,H,R):O===59?(R.extended=R.extended.clone(),R.extended.underlineColor=-1,R.updateExtended()):O===100?(R.fg&=-67108864,R.fg|=16777215&p.DEFAULT_ATTR_DATA.fg,R.bg&=-67108864,R.bg|=16777215&p.DEFAULT_ATTR_DATA.bg):this._logService.debug("Unknown SGR attribute: %d.",O);return!0}deviceStatus(P){switch(P.params[0]){case 5:this._coreService.triggerDataEvent(`${f.C0.ESC}[0n`);break;case 6:const F=this._activeBuffer.y+1,O=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${f.C0.ESC}[${F};${O}R`)}return!0}deviceStatusPrivate(P){if(P.params[0]===6){const F=this._activeBuffer.y+1,O=this._activeBuffer.x+1;this._coreService.triggerDataEvent(`${f.C0.ESC}[?${F};${O}R`)}return!0}softReset(P){return this._coreService.isCursorHidden=!1,this._onRequestSyncScrollBar.fire(),this._activeBuffer.scrollTop=0,this._activeBuffer.scrollBottom=this._bufferService.rows-1,this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._coreService.reset(),this._charsetService.reset(),this._activeBuffer.savedX=0,this._activeBuffer.savedY=this._activeBuffer.ybase,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,this._coreService.decPrivateModes.origin=!1,!0}setCursorStyle(P){const F=P.params[0]||1;switch(F){case 1:case 2:this._optionsService.options.cursorStyle="block";break;case 3:case 4:this._optionsService.options.cursorStyle="underline";break;case 5:case 6:this._optionsService.options.cursorStyle="bar"}const O=F%2==1;return this._optionsService.options.cursorBlink=O,!0}setScrollRegion(P){const F=P.params[0]||1;let O;return(P.length<2||(O=P.params[1])>this._bufferService.rows||O===0)&&(O=this._bufferService.rows),O>F&&(this._activeBuffer.scrollTop=F-1,this._activeBuffer.scrollBottom=O-1,this._setCursor(0,0)),!0}windowOptions(P){if(!E(P.params[0],this._optionsService.rawOptions.windowOptions))return!0;const F=P.length>1?P.params[1]:0;switch(P.params[0]){case 14:F!==2&&this._onRequestWindowsOptionsReport.fire(j.GET_WIN_SIZE_PIXELS);break;case 16:this._onRequestWindowsOptionsReport.fire(j.GET_CELL_SIZE_PIXELS);break;case 18:this._bufferService&&this._coreService.triggerDataEvent(`${f.C0.ESC}[8;${this._bufferService.rows};${this._bufferService.cols}t`);break;case 22:F!==0&&F!==2||(this._windowTitleStack.push(this._windowTitle),this._windowTitleStack.length>10&&this._windowTitleStack.shift()),F!==0&&F!==1||(this._iconNameStack.push(this._iconName),this._iconNameStack.length>10&&this._iconNameStack.shift());break;case 23:F!==0&&F!==2||this._windowTitleStack.length&&this.setTitle(this._windowTitleStack.pop()),F!==0&&F!==1||this._iconNameStack.length&&this.setIconName(this._iconNameStack.pop())}return!0}saveCursor(P){return this._activeBuffer.savedX=this._activeBuffer.x,this._activeBuffer.savedY=this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.savedCurAttrData.fg=this._curAttrData.fg,this._activeBuffer.savedCurAttrData.bg=this._curAttrData.bg,this._activeBuffer.savedCharset=this._charsetService.charset,!0}restoreCursor(P){return this._activeBuffer.x=this._activeBuffer.savedX||0,this._activeBuffer.y=Math.max(this._activeBuffer.savedY-this._activeBuffer.ybase,0),this._curAttrData.fg=this._activeBuffer.savedCurAttrData.fg,this._curAttrData.bg=this._activeBuffer.savedCurAttrData.bg,this._charsetService.charset=this._savedCharset,this._activeBuffer.savedCharset&&(this._charsetService.charset=this._activeBuffer.savedCharset),this._restrictCursor(),!0}setTitle(P){return this._windowTitle=P,this._onTitleChange.fire(P),!0}setIconName(P){return this._iconName=P,!0}setOrReportIndexedColor(P){const F=[],O=P.split(";");for(;O.length>1;){const R=O.shift(),H=O.shift();if(/^\d+$/.exec(R)){const M=parseInt(R);if(0<=M&&M<256)if(H==="?")F.push({type:0,index:M});else{const z=(0,k.parseColor)(H);z&&F.push({type:1,index:M,color:z})}}}return F.length&&this._onColor.fire(F),!0}setHyperlink(P){const F=P.split(";");return!(F.length<2)&&(F[1]?this._createHyperlink(F[0],F[1]):!F[0]&&this._finishHyperlink())}_createHyperlink(P,F){this._getCurrentLinkId()&&this._finishHyperlink();const O=P.split(":");let R;const H=O.findIndex(M=>M.startsWith("id="));return H!==-1&&(R=O[H].slice(3)||void 0),this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=this._oscLinkService.registerLink({id:R,uri:F}),this._curAttrData.updateExtended(),!0}_finishHyperlink(){return this._curAttrData.extended=this._curAttrData.extended.clone(),this._curAttrData.extended.urlId=0,this._curAttrData.updateExtended(),!0}_setOrReportSpecialColor(P,F){const O=P.split(";");for(let R=0;R<O.length&&!(F>=this._specialColors.length);++R,++F)if(O[R]==="?")this._onColor.fire([{type:0,index:this._specialColors[F]}]);else{const H=(0,k.parseColor)(O[R]);H&&this._onColor.fire([{type:1,index:this._specialColors[F],color:H}])}return!0}setOrReportFgColor(P){return this._setOrReportSpecialColor(P,0)}setOrReportBgColor(P){return this._setOrReportSpecialColor(P,1)}setOrReportCursorColor(P){return this._setOrReportSpecialColor(P,2)}restoreIndexedColor(P){if(!P)return this._onColor.fire([{type:2}]),!0;const F=[],O=P.split(";");for(let R=0;R<O.length;++R)if(/^\d+$/.exec(O[R])){const H=parseInt(O[R]);0<=H&&H<256&&F.push({type:2,index:H})}return F.length&&this._onColor.fire(F),!0}restoreFgColor(P){return this._onColor.fire([{type:2,index:256}]),!0}restoreBgColor(P){return this._onColor.fire([{type:2,index:257}]),!0}restoreCursorColor(P){return this._onColor.fire([{type:2,index:258}]),!0}nextLine(){return this._activeBuffer.x=0,this.index(),!0}keypadApplicationMode(){return this._logService.debug("Serial port requested application keypad."),this._coreService.decPrivateModes.applicationKeypad=!0,this._onRequestSyncScrollBar.fire(),!0}keypadNumericMode(){return this._logService.debug("Switching back to normal keypad."),this._coreService.decPrivateModes.applicationKeypad=!1,this._onRequestSyncScrollBar.fire(),!0}selectDefaultCharset(){return this._charsetService.setgLevel(0),this._charsetService.setgCharset(0,h.DEFAULT_CHARSET),!0}selectCharset(P){return P.length!==2?(this.selectDefaultCharset(),!0):(P[0]==="/"||this._charsetService.setgCharset(x[P[0]],h.CHARSETS[P[1]]||h.DEFAULT_CHARSET),!0)}index(){return this._restrictCursor(),this._activeBuffer.y++,this._activeBuffer.y===this._activeBuffer.scrollBottom+1?(this._activeBuffer.y--,this._bufferService.scroll(this._eraseAttrData())):this._activeBuffer.y>=this._bufferService.rows&&(this._activeBuffer.y=this._bufferService.rows-1),this._restrictCursor(),!0}tabSet(){return this._activeBuffer.tabs[this._activeBuffer.x]=!0,!0}reverseIndex(){if(this._restrictCursor(),this._activeBuffer.y===this._activeBuffer.scrollTop){const P=this._activeBuffer.scrollBottom-this._activeBuffer.scrollTop;this._activeBuffer.lines.shiftElements(this._activeBuffer.ybase+this._activeBuffer.y,P,1),this._activeBuffer.lines.set(this._activeBuffer.ybase+this._activeBuffer.y,this._activeBuffer.getBlankLine(this._eraseAttrData())),this._dirtyRowTracker.markRangeDirty(this._activeBuffer.scrollTop,this._activeBuffer.scrollBottom)}else this._activeBuffer.y--,this._restrictCursor();return!0}fullReset(){return this._parser.reset(),this._onRequestReset.fire(),!0}reset(){this._curAttrData=p.DEFAULT_ATTR_DATA.clone(),this._eraseAttrDataInternal=p.DEFAULT_ATTR_DATA.clone()}_eraseAttrData(){return this._eraseAttrDataInternal.bg&=-67108864,this._eraseAttrDataInternal.bg|=67108863&this._curAttrData.bg,this._eraseAttrDataInternal}setgLevel(P){return this._charsetService.setgLevel(P),!0}screenAlignmentPattern(){const P=new b.CellData;P.content=4194304|"E".charCodeAt(0),P.fg=this._curAttrData.fg,P.bg=this._curAttrData.bg,this._setCursor(0,0);for(let F=0;F<this._bufferService.rows;++F){const O=this._activeBuffer.ybase+this._activeBuffer.y+F,R=this._activeBuffer.lines.get(O);R&&(R.fill(P),R.isWrapped=!1)}return this._dirtyRowTracker.markAllDirty(),this._setCursor(0,0),!0}requestStatusString(P,F){const O=this._bufferService.buffer,R=this._optionsService.rawOptions;return(H=>(this._coreService.triggerDataEvent(`${f.C0.ESC}${H}${f.C0.ESC}\\`),!0))(P==='"q'?`P1$r${this._curAttrData.isProtected()?1:0}"q`:P==='"p'?'P1$r61;1"p':P==="r"?`P1$r${O.scrollTop+1};${O.scrollBottom+1}r`:P==="m"?"P1$r0m":P===" q"?`P1$r${{block:2,underline:4,bar:6}[R.cursorStyle]-(R.cursorBlink?1:0)} q`:"P0$r")}markRangeDirty(P,F){this._dirtyRowTracker.markRangeDirty(P,F)}}a.InputHandler=T;let L=class{constructor(V){this._bufferService=V,this.clearRange()}clearRange(){this.start=this._bufferService.buffer.y,this.end=this._bufferService.buffer.y}markDirty(V){V<this.start?this.start=V:V>this.end&&(this.end=V)}markRangeDirty(V,P){V>P&&(A=V,V=P,P=A),V<this.start&&(this.start=V),P>this.end&&(this.end=P)}markAllDirty(){this.markRangeDirty(0,this._bufferService.rows-1)}};L=c([u(0,$.IBufferService)],L)},844:(s,a)=>{function l(c){for(const u of c)u.dispose();c.length=0}Object.defineProperty(a,"__esModule",{value:!0}),a.getDisposeArrayDisposable=a.disposeArray=a.toDisposable=a.Disposable=void 0,a.Disposable=class{constructor(){this._disposables=[],this._isDisposed=!1}dispose(){this._isDisposed=!0;for(const c of this._disposables)c.dispose();this._disposables.length=0}register(c){return this._disposables.push(c),c}unregister(c){const u=this._disposables.indexOf(c);u!==-1&&this._disposables.splice(u,1)}},a.toDisposable=function(c){return{dispose:c}},a.disposeArray=l,a.getDisposeArrayDisposable=function(c){return{dispose:()=>l(c)}}},1505:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.FourKeyMap=a.TwoKeyMap=void 0;class l{constructor(){this._data={}}set(u,f,h){this._data[u]||(this._data[u]={}),this._data[u][f]=h}get(u,f){return this._data[u]?this._data[u][f]:void 0}clear(){this._data={}}}a.TwoKeyMap=l,a.FourKeyMap=class{constructor(){this._data=new l}set(c,u,f,h,d){this._data.get(c,u)||this._data.set(c,u,new l),this._data.get(c,u).set(f,h,d)}get(c,u,f,h){var d;return(d=this._data.get(c,u))===null||d===void 0?void 0:d.get(f,h)}clear(){this._data.clear()}}},6114:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.isChromeOS=a.isLinux=a.isWindows=a.isIphone=a.isIpad=a.isMac=a.getSafariVersion=a.isSafari=a.isLegacyEdge=a.isFirefox=a.isNode=void 0,a.isNode=typeof navigator>"u";const l=a.isNode?"node":navigator.userAgent,c=a.isNode?"node":navigator.platform;a.isFirefox=l.includes("Firefox"),a.isLegacyEdge=l.includes("Edge"),a.isSafari=/^((?!chrome|android).)*safari/i.test(l),a.getSafariVersion=function(){if(!a.isSafari)return 0;const u=l.match(/Version\/(\d+)/);return u===null||u.length<2?0:parseInt(u[1])},a.isMac=["Macintosh","MacIntel","MacPPC","Mac68K"].includes(c),a.isIpad=c==="iPad",a.isIphone=c==="iPhone",a.isWindows=["Windows","Win16","Win32","WinCE"].includes(c),a.isLinux=c.indexOf("Linux")>=0,a.isChromeOS=/\bCrOS\b/.test(l)},6106:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.SortedList=void 0;let l=0;a.SortedList=class{constructor(c){this._getKey=c,this._array=[]}clear(){this._array.length=0}insert(c){this._array.length!==0?(l=this._search(this._getKey(c),0,this._array.length-1),this._array.splice(l,0,c)):this._array.push(c)}delete(c){if(this._array.length===0)return!1;const u=this._getKey(c);if(u===void 0||(l=this._search(u,0,this._array.length-1),l===-1)||this._getKey(this._array[l])!==u)return!1;do if(this._array[l]===c)return this._array.splice(l,1),!0;while(++l<this._array.length&&this._getKey(this._array[l])===u);return!1}*getKeyIterator(c){if(this._array.length!==0&&(l=this._search(c,0,this._array.length-1),!(l<0||l>=this._array.length)&&this._getKey(this._array[l])===c))do yield this._array[l];while(++l<this._array.length&&this._getKey(this._array[l])===c)}forEachByKey(c,u){if(this._array.length!==0&&(l=this._search(c,0,this._array.length-1),!(l<0||l>=this._array.length)&&this._getKey(this._array[l])===c))do u(this._array[l]);while(++l<this._array.length&&this._getKey(this._array[l])===c)}values(){return this._array.values()}_search(c,u,f){if(f<u)return u;let h=Math.floor((u+f)/2);const d=this._getKey(this._array[h]);if(d>c)return this._search(c,u,h-1);if(d<c)return this._search(c,h+1,f);for(;h>0&&this._getKey(this._array[h-1])===c;)h--;return h}}},7226:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DebouncedIdleTask=a.IdleTaskQueue=a.PriorityTaskQueue=void 0;const c=l(6114);class u{constructor(){this._tasks=[],this._i=0}enqueue(d){this._tasks.push(d),this._start()}flush(){for(;this._i<this._tasks.length;)this._tasks[this._i]()||this._i++;this.clear()}clear(){this._idleCallback&&(this._cancelCallback(this._idleCallback),this._idleCallback=void 0),this._i=0,this._tasks.length=0}_start(){this._idleCallback||(this._idleCallback=this._requestCallback(this._process.bind(this)))}_process(d){this._idleCallback=void 0;let v=0,g=0,p=d.timeRemaining(),m=0;for(;this._i<this._tasks.length;){if(v=Date.now(),this._tasks[this._i]()||this._i++,v=Math.max(1,Date.now()-v),g=Math.max(v,g),m=d.timeRemaining(),1.5*g>m)return p-v<-20&&console.warn(`task queue exceeded allotted deadline by ${Math.abs(Math.round(p-v))}ms`),void this._start();p=m}this.clear()}}class f extends u{_requestCallback(d){return setTimeout(()=>d(this._createDeadline(16)))}_cancelCallback(d){clearTimeout(d)}_createDeadline(d){const v=Date.now()+d;return{timeRemaining:()=>Math.max(0,v-Date.now())}}}a.PriorityTaskQueue=f,a.IdleTaskQueue=!c.isNode&&"requestIdleCallback"in window?class extends u{_requestCallback(h){return requestIdleCallback(h)}_cancelCallback(h){cancelIdleCallback(h)}}:f,a.DebouncedIdleTask=class{constructor(){this._queue=new a.IdleTaskQueue}set(h){this._queue.clear(),this._queue.enqueue(h)}flush(){this._queue.flush()}}},9282:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.updateWindowsModeWrappedState=void 0;const c=l(643);a.updateWindowsModeWrappedState=function(u){const f=u.buffer.lines.get(u.buffer.ybase+u.buffer.y-1),h=f?.get(u.cols-1),d=u.buffer.lines.get(u.buffer.ybase+u.buffer.y);d&&h&&(d.isWrapped=h[c.CHAR_DATA_CODE_INDEX]!==c.NULL_CELL_CODE&&h[c.CHAR_DATA_CODE_INDEX]!==c.WHITESPACE_CELL_CODE)}},3734:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ExtendedAttrs=a.AttributeData=void 0;class l{constructor(){this.fg=0,this.bg=0,this.extended=new c}static toColorRGB(f){return[f>>>16&255,f>>>8&255,255&f]}static fromColorRGB(f){return(255&f[0])<<16|(255&f[1])<<8|255&f[2]}clone(){const f=new l;return f.fg=this.fg,f.bg=this.bg,f.extended=this.extended.clone(),f}isInverse(){return 67108864&this.fg}isBold(){return 134217728&this.fg}isUnderline(){return this.hasExtendedAttrs()&&this.extended.underlineStyle!==0?1:268435456&this.fg}isBlink(){return 536870912&this.fg}isInvisible(){return 1073741824&this.fg}isItalic(){return 67108864&this.bg}isDim(){return 134217728&this.bg}isStrikethrough(){return 2147483648&this.fg}isProtected(){return 536870912&this.bg}getFgColorMode(){return 50331648&this.fg}getBgColorMode(){return 50331648&this.bg}isFgRGB(){return(50331648&this.fg)==50331648}isBgRGB(){return(50331648&this.bg)==50331648}isFgPalette(){return(50331648&this.fg)==16777216||(50331648&this.fg)==33554432}isBgPalette(){return(50331648&this.bg)==16777216||(50331648&this.bg)==33554432}isFgDefault(){return(50331648&this.fg)==0}isBgDefault(){return(50331648&this.bg)==0}isAttributeDefault(){return this.fg===0&&this.bg===0}getFgColor(){switch(50331648&this.fg){case 16777216:case 33554432:return 255&this.fg;case 50331648:return 16777215&this.fg;default:return-1}}getBgColor(){switch(50331648&this.bg){case 16777216:case 33554432:return 255&this.bg;case 50331648:return 16777215&this.bg;default:return-1}}hasExtendedAttrs(){return 268435456&this.bg}updateExtended(){this.extended.isEmpty()?this.bg&=-268435457:this.bg|=268435456}getUnderlineColor(){if(268435456&this.bg&&~this.extended.underlineColor)switch(50331648&this.extended.underlineColor){case 16777216:case 33554432:return 255&this.extended.underlineColor;case 50331648:return 16777215&this.extended.underlineColor;default:return this.getFgColor()}return this.getFgColor()}getUnderlineColorMode(){return 268435456&this.bg&&~this.extended.underlineColor?50331648&this.extended.underlineColor:this.getFgColorMode()}isUnderlineColorRGB(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==50331648:this.isFgRGB()}isUnderlineColorPalette(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==16777216||(50331648&this.extended.underlineColor)==33554432:this.isFgPalette()}isUnderlineColorDefault(){return 268435456&this.bg&&~this.extended.underlineColor?(50331648&this.extended.underlineColor)==0:this.isFgDefault()}getUnderlineStyle(){return 268435456&this.fg?268435456&this.bg?this.extended.underlineStyle:1:0}}a.AttributeData=l;class c{constructor(f=0,h=0){this._ext=0,this._urlId=0,this._ext=f,this._urlId=h}get ext(){return this._urlId?-469762049&this._ext|this.underlineStyle<<26:this._ext}set ext(f){this._ext=f}get underlineStyle(){return this._urlId?5:(469762048&this._ext)>>26}set underlineStyle(f){this._ext&=-469762049,this._ext|=f<<26&469762048}get underlineColor(){return 67108863&this._ext}set underlineColor(f){this._ext&=-67108864,this._ext|=67108863&f}get urlId(){return this._urlId}set urlId(f){this._urlId=f}clone(){return new c(this._ext,this._urlId)}isEmpty(){return this.underlineStyle===0&&this._urlId===0}}a.ExtendedAttrs=c},9092:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferStringIterator=a.Buffer=a.MAX_BUFFER_SIZE=void 0;const c=l(6349),u=l(8437),f=l(511),h=l(643),d=l(4634),v=l(4863),g=l(7116),p=l(3734),m=l(7226);a.MAX_BUFFER_SIZE=4294967295,a.Buffer=class{constructor(b,_,$){this._hasScrollback=b,this._optionsService=_,this._bufferService=$,this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.tabs={},this.savedY=0,this.savedX=0,this.savedCurAttrData=u.DEFAULT_ATTR_DATA.clone(),this.savedCharset=g.DEFAULT_CHARSET,this.markers=[],this._nullCell=f.CellData.fromCharData([0,h.NULL_CELL_CHAR,h.NULL_CELL_WIDTH,h.NULL_CELL_CODE]),this._whitespaceCell=f.CellData.fromCharData([0,h.WHITESPACE_CELL_CHAR,h.WHITESPACE_CELL_WIDTH,h.WHITESPACE_CELL_CODE]),this._isClearing=!1,this._memoryCleanupQueue=new m.IdleTaskQueue,this._memoryCleanupPosition=0,this._cols=this._bufferService.cols,this._rows=this._bufferService.rows,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}getNullCell(b){return b?(this._nullCell.fg=b.fg,this._nullCell.bg=b.bg,this._nullCell.extended=b.extended):(this._nullCell.fg=0,this._nullCell.bg=0,this._nullCell.extended=new p.ExtendedAttrs),this._nullCell}getWhitespaceCell(b){return b?(this._whitespaceCell.fg=b.fg,this._whitespaceCell.bg=b.bg,this._whitespaceCell.extended=b.extended):(this._whitespaceCell.fg=0,this._whitespaceCell.bg=0,this._whitespaceCell.extended=new p.ExtendedAttrs),this._whitespaceCell}getBlankLine(b,_){return new u.BufferLine(this._bufferService.cols,this.getNullCell(b),_)}get hasScrollback(){return this._hasScrollback&&this.lines.maxLength>this._rows}get isCursorInViewport(){const b=this.ybase+this.y-this.ydisp;return b>=0&&b<this._rows}_getCorrectBufferLength(b){if(!this._hasScrollback)return b;const _=b+this._optionsService.rawOptions.scrollback;return _>a.MAX_BUFFER_SIZE?a.MAX_BUFFER_SIZE:_}fillViewportRows(b){if(this.lines.length===0){b===void 0&&(b=u.DEFAULT_ATTR_DATA);let _=this._rows;for(;_--;)this.lines.push(this.getBlankLine(b))}}clear(){this.ydisp=0,this.ybase=0,this.y=0,this.x=0,this.lines=new c.CircularList(this._getCorrectBufferLength(this._rows)),this.scrollTop=0,this.scrollBottom=this._rows-1,this.setupTabStops()}resize(b,_){const $=this.getNullCell(u.DEFAULT_ATTR_DATA);let w=0;const S=this._getCorrectBufferLength(_);if(S>this.lines.maxLength&&(this.lines.maxLength=S),this.lines.length>0){if(this._cols<b)for(let x=0;x<this.lines.length;x++)w+=+this.lines.get(x).resize(b,$);let k=0;if(this._rows<_)for(let x=this._rows;x<_;x++)this.lines.length<_+this.ybase&&(this._optionsService.rawOptions.windowsMode?this.lines.push(new u.BufferLine(b,$)):this.ybase>0&&this.lines.length<=this.ybase+this.y+k+1?(this.ybase--,k++,this.ydisp>0&&this.ydisp--):this.lines.push(new u.BufferLine(b,$)));else for(let x=this._rows;x>_;x--)this.lines.length>_+this.ybase&&(this.lines.length>this.ybase+this.y+1?this.lines.pop():(this.ybase++,this.ydisp++));if(S<this.lines.maxLength){const x=this.lines.length-S;x>0&&(this.lines.trimStart(x),this.ybase=Math.max(this.ybase-x,0),this.ydisp=Math.max(this.ydisp-x,0),this.savedY=Math.max(this.savedY-x,0)),this.lines.maxLength=S}this.x=Math.min(this.x,b-1),this.y=Math.min(this.y,_-1),k&&(this.y+=k),this.savedX=Math.min(this.savedX,b-1),this.scrollTop=0}if(this.scrollBottom=_-1,this._isReflowEnabled&&(this._reflow(b,_),this._cols>b))for(let k=0;k<this.lines.length;k++)w+=+this.lines.get(k).resize(b,$);this._cols=b,this._rows=_,this._memoryCleanupQueue.clear(),w>.1*this.lines.length&&(this._memoryCleanupPosition=0,this._memoryCleanupQueue.enqueue(()=>this._batchedMemoryCleanup()))}_batchedMemoryCleanup(){let b=!0;this._memoryCleanupPosition>=this.lines.length&&(this._memoryCleanupPosition=0,b=!1);let _=0;for(;this._memoryCleanupPosition<this.lines.length;)if(_+=this.lines.get(this._memoryCleanupPosition++).cleanupMemory(),_>100)return!0;return b}get _isReflowEnabled(){return this._hasScrollback&&!this._optionsService.rawOptions.windowsMode}_reflow(b,_){this._cols!==b&&(b>this._cols?this._reflowLarger(b,_):this._reflowSmaller(b,_))}_reflowLarger(b,_){const $=(0,d.reflowLargerGetLinesToRemove)(this.lines,this._cols,b,this.ybase+this.y,this.getNullCell(u.DEFAULT_ATTR_DATA));if($.length>0){const w=(0,d.reflowLargerCreateNewLayout)(this.lines,$);(0,d.reflowLargerApplyNewLayout)(this.lines,w.layout),this._reflowLargerAdjustViewport(b,_,w.countRemoved)}}_reflowLargerAdjustViewport(b,_,$){const w=this.getNullCell(u.DEFAULT_ATTR_DATA);let S=$;for(;S-- >0;)this.ybase===0?(this.y>0&&this.y--,this.lines.length<_&&this.lines.push(new u.BufferLine(b,w))):(this.ydisp===this.ybase&&this.ydisp--,this.ybase--);this.savedY=Math.max(this.savedY-$,0)}_reflowSmaller(b,_){const $=this.getNullCell(u.DEFAULT_ATTR_DATA),w=[];let S=0;for(let k=this.lines.length-1;k>=0;k--){let x=this.lines.get(k);if(!x||!x.isWrapped&&x.getTrimmedLength()<=b)continue;const C=[x];for(;x.isWrapped&&k>0;)x=this.lines.get(--k),C.unshift(x);const E=this.ybase+this.y;if(E>=k&&E<k+C.length)continue;const j=C[C.length-1].getTrimmedLength(),A=(0,d.reflowSmallerGetNewLineLengths)(C,this._cols,b),T=A.length-C.length;let L;L=this.ybase===0&&this.y!==this.lines.length-1?Math.max(0,this.y-this.lines.maxLength+T):Math.max(0,this.lines.length-this.lines.maxLength+T);const V=[];for(let M=0;M<T;M++){const z=this.getBlankLine(u.DEFAULT_ATTR_DATA,!0);V.push(z)}V.length>0&&(w.push({start:k+C.length+S,newLines:V}),S+=V.length),C.push(...V);let P=A.length-1,F=A[P];F===0&&(P--,F=A[P]);let O=C.length-T-1,R=j;for(;O>=0;){const M=Math.min(R,F);if(C[P]===void 0)break;if(C[P].copyCellsFrom(C[O],R-M,F-M,M,!0),F-=M,F===0&&(P--,F=A[P]),R-=M,R===0){O--;const z=Math.max(O,0);R=(0,d.getWrappedLineTrimmedLength)(C,z,this._cols)}}for(let M=0;M<C.length;M++)A[M]<b&&C[M].setCell(A[M],$);let H=T-L;for(;H-- >0;)this.ybase===0?this.y<_-1?(this.y++,this.lines.pop()):(this.ybase++,this.ydisp++):this.ybase<Math.min(this.lines.maxLength,this.lines.length+S)-_&&(this.ybase===this.ydisp&&this.ydisp++,this.ybase++);this.savedY=Math.min(this.savedY+T,this.ybase+_-1)}if(w.length>0){const k=[],x=[];for(let P=0;P<this.lines.length;P++)x.push(this.lines.get(P));const C=this.lines.length;let E=C-1,j=0,A=w[j];this.lines.length=Math.min(this.lines.maxLength,this.lines.length+S);let T=0;for(let P=Math.min(this.lines.maxLength-1,C+S-1);P>=0;P--)if(A&&A.start>E+T){for(let F=A.newLines.length-1;F>=0;F--)this.lines.set(P--,A.newLines[F]);P++,k.push({index:E+1,amount:A.newLines.length}),T+=A.newLines.length,A=w[++j]}else this.lines.set(P,x[E--]);let L=0;for(let P=k.length-1;P>=0;P--)k[P].index+=L,this.lines.onInsertEmitter.fire(k[P]),L+=k[P].amount;const V=Math.max(0,C+S-this.lines.maxLength);V>0&&this.lines.onTrimEmitter.fire(V)}}stringIndexToBufferIndex(b,_,$=!1){for(;_;){const w=this.lines.get(b);if(!w)return[-1,-1];const S=$?w.getTrimmedLength():w.length;for(let k=0;k<S;++k)if(w.get(k)[h.CHAR_DATA_WIDTH_INDEX]&&(_-=w.get(k)[h.CHAR_DATA_CHAR_INDEX].length||1),_<0)return[b,k];b++}return[b,0]}translateBufferLineToString(b,_,$=0,w){const S=this.lines.get(b);return S?S.translateToString(_,$,w):""}getWrappedRangeForLine(b){let _=b,$=b;for(;_>0&&this.lines.get(_).isWrapped;)_--;for(;$+1<this.lines.length&&this.lines.get($+1).isWrapped;)$++;return{first:_,last:$}}setupTabStops(b){for(b!=null?this.tabs[b]||(b=this.prevStop(b)):(this.tabs={},b=0);b<this._cols;b+=this._optionsService.rawOptions.tabStopWidth)this.tabs[b]=!0}prevStop(b){for(b==null&&(b=this.x);!this.tabs[--b]&&b>0;);return b>=this._cols?this._cols-1:b<0?0:b}nextStop(b){for(b==null&&(b=this.x);!this.tabs[++b]&&b<this._cols;);return b>=this._cols?this._cols-1:b<0?0:b}clearMarkers(b){this._isClearing=!0;for(let _=0;_<this.markers.length;_++)this.markers[_].line===b&&(this.markers[_].dispose(),this.markers.splice(_--,1));this._isClearing=!1}clearAllMarkers(){this._isClearing=!0;for(let b=0;b<this.markers.length;b++)this.markers[b].dispose(),this.markers.splice(b--,1);this._isClearing=!1}addMarker(b){const _=new v.Marker(b);return this.markers.push(_),_.register(this.lines.onTrim($=>{_.line-=$,_.line<0&&_.dispose()})),_.register(this.lines.onInsert($=>{_.line>=$.index&&(_.line+=$.amount)})),_.register(this.lines.onDelete($=>{_.line>=$.index&&_.line<$.index+$.amount&&_.dispose(),_.line>$.index&&(_.line-=$.amount)})),_.register(_.onDispose(()=>this._removeMarker(_))),_}_removeMarker(b){this._isClearing||this.markers.splice(this.markers.indexOf(b),1)}iterator(b,_,$,w,S){return new y(this,b,_,$,w,S)}};class y{constructor(_,$,w=0,S=_.lines.length,k=0,x=0){this._buffer=_,this._trimRight=$,this._startIndex=w,this._endIndex=S,this._startOverscan=k,this._endOverscan=x,this._startIndex<0&&(this._startIndex=0),this._endIndex>this._buffer.lines.length&&(this._endIndex=this._buffer.lines.length),this._current=this._startIndex}hasNext(){return this._current<this._endIndex}next(){const _=this._buffer.getWrappedRangeForLine(this._current);_.first<this._startIndex-this._startOverscan&&(_.first=this._startIndex-this._startOverscan),_.last>this._endIndex+this._endOverscan&&(_.last=this._endIndex+this._endOverscan),_.first=Math.max(_.first,0),_.last=Math.min(_.last,this._buffer.lines.length);let $="";for(let w=_.first;w<=_.last;++w)$+=this._buffer.translateBufferLineToString(w,this._trimRight);return this._current=_.last+1,{range:_,content:$}}}a.BufferStringIterator=y},8437:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLine=a.DEFAULT_ATTR_DATA=void 0;const c=l(482),u=l(643),f=l(511),h=l(3734);a.DEFAULT_ATTR_DATA=Object.freeze(new h.AttributeData);let d=0;class v{constructor(p,m,y=!1){this.isWrapped=y,this._combined={},this._extendedAttrs={},this._data=new Uint32Array(3*p);const b=m||f.CellData.fromCharData([0,u.NULL_CELL_CHAR,u.NULL_CELL_WIDTH,u.NULL_CELL_CODE]);for(let _=0;_<p;++_)this.setCell(_,b);this.length=p}get(p){const m=this._data[3*p+0],y=2097151&m;return[this._data[3*p+1],2097152&m?this._combined[p]:y?(0,c.stringFromCodePoint)(y):"",m>>22,2097152&m?this._combined[p].charCodeAt(this._combined[p].length-1):y]}set(p,m){this._data[3*p+1]=m[u.CHAR_DATA_ATTR_INDEX],m[u.CHAR_DATA_CHAR_INDEX].length>1?(this._combined[p]=m[1],this._data[3*p+0]=2097152|p|m[u.CHAR_DATA_WIDTH_INDEX]<<22):this._data[3*p+0]=m[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|m[u.CHAR_DATA_WIDTH_INDEX]<<22}getWidth(p){return this._data[3*p+0]>>22}hasWidth(p){return 12582912&this._data[3*p+0]}getFg(p){return this._data[3*p+1]}getBg(p){return this._data[3*p+2]}hasContent(p){return 4194303&this._data[3*p+0]}getCodePoint(p){const m=this._data[3*p+0];return 2097152&m?this._combined[p].charCodeAt(this._combined[p].length-1):2097151&m}isCombined(p){return 2097152&this._data[3*p+0]}getString(p){const m=this._data[3*p+0];return 2097152&m?this._combined[p]:2097151&m?(0,c.stringFromCodePoint)(2097151&m):""}isProtected(p){return 536870912&this._data[3*p+2]}loadCell(p,m){return d=3*p,m.content=this._data[d+0],m.fg=this._data[d+1],m.bg=this._data[d+2],2097152&m.content&&(m.combinedData=this._combined[p]),268435456&m.bg&&(m.extended=this._extendedAttrs[p]),m}setCell(p,m){2097152&m.content&&(this._combined[p]=m.combinedData),268435456&m.bg&&(this._extendedAttrs[p]=m.extended),this._data[3*p+0]=m.content,this._data[3*p+1]=m.fg,this._data[3*p+2]=m.bg}setCellFromCodePoint(p,m,y,b,_,$){268435456&_&&(this._extendedAttrs[p]=$),this._data[3*p+0]=m|y<<22,this._data[3*p+1]=b,this._data[3*p+2]=_}addCodepointToCell(p,m){let y=this._data[3*p+0];2097152&y?this._combined[p]+=(0,c.stringFromCodePoint)(m):(2097151&y?(this._combined[p]=(0,c.stringFromCodePoint)(2097151&y)+(0,c.stringFromCodePoint)(m),y&=-2097152,y|=2097152):y=m|4194304,this._data[3*p+0]=y)}insertCells(p,m,y,b){if((p%=this.length)&&this.getWidth(p-1)===2&&this.setCellFromCodePoint(p-1,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs),m<this.length-p){const _=new f.CellData;for(let $=this.length-p-m-1;$>=0;--$)this.setCell(p+m+$,this.loadCell(p+$,_));for(let $=0;$<m;++$)this.setCell(p+$,y)}else for(let _=p;_<this.length;++_)this.setCell(_,y);this.getWidth(this.length-1)===2&&this.setCellFromCodePoint(this.length-1,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs)}deleteCells(p,m,y,b){if(p%=this.length,m<this.length-p){const _=new f.CellData;for(let $=0;$<this.length-p-m;++$)this.setCell(p+$,this.loadCell(p+m+$,_));for(let $=this.length-m;$<this.length;++$)this.setCell($,y)}else for(let _=p;_<this.length;++_)this.setCell(_,y);p&&this.getWidth(p-1)===2&&this.setCellFromCodePoint(p-1,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs),this.getWidth(p)!==0||this.hasContent(p)||this.setCellFromCodePoint(p,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs)}replaceCells(p,m,y,b,_=!1){if(_)for(p&&this.getWidth(p-1)===2&&!this.isProtected(p-1)&&this.setCellFromCodePoint(p-1,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs),m<this.length&&this.getWidth(m-1)===2&&!this.isProtected(m)&&this.setCellFromCodePoint(m,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs);p<m&&p<this.length;)this.isProtected(p)||this.setCell(p,y),p++;else for(p&&this.getWidth(p-1)===2&&this.setCellFromCodePoint(p-1,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs),m<this.length&&this.getWidth(m-1)===2&&this.setCellFromCodePoint(m,0,1,b?.fg||0,b?.bg||0,b?.extended||new h.ExtendedAttrs);p<m&&p<this.length;)this.setCell(p++,y)}resize(p,m){if(p===this.length)return 4*this._data.length*2<this._data.buffer.byteLength;const y=3*p;if(p>this.length){if(this._data.buffer.byteLength>=4*y)this._data=new Uint32Array(this._data.buffer,0,y);else{const b=new Uint32Array(y);b.set(this._data),this._data=b}for(let b=this.length;b<p;++b)this.setCell(b,m)}else{this._data=this._data.subarray(0,y);const b=Object.keys(this._combined);for(let $=0;$<b.length;$++){const w=parseInt(b[$],10);w>=p&&delete this._combined[w]}const _=Object.keys(this._extendedAttrs);for(let $=0;$<_.length;$++){const w=parseInt(_[$],10);w>=p&&delete this._extendedAttrs[w]}}return this.length=p,4*y*2<this._data.buffer.byteLength}cleanupMemory(){if(4*this._data.length*2<this._data.buffer.byteLength){const p=new Uint32Array(this._data.length);return p.set(this._data),this._data=p,1}return 0}fill(p,m=!1){if(m)for(let y=0;y<this.length;++y)this.isProtected(y)||this.setCell(y,p);else{this._combined={},this._extendedAttrs={};for(let y=0;y<this.length;++y)this.setCell(y,p)}}copyFrom(p){this.length!==p.length?this._data=new Uint32Array(p._data):this._data.set(p._data),this.length=p.length,this._combined={};for(const m in p._combined)this._combined[m]=p._combined[m];this._extendedAttrs={};for(const m in p._extendedAttrs)this._extendedAttrs[m]=p._extendedAttrs[m];this.isWrapped=p.isWrapped}clone(){const p=new v(0);p._data=new Uint32Array(this._data),p.length=this.length;for(const m in this._combined)p._combined[m]=this._combined[m];for(const m in this._extendedAttrs)p._extendedAttrs[m]=this._extendedAttrs[m];return p.isWrapped=this.isWrapped,p}getTrimmedLength(){for(let p=this.length-1;p>=0;--p)if(4194303&this._data[3*p+0])return p+(this._data[3*p+0]>>22);return 0}copyCellsFrom(p,m,y,b,_){const $=p._data;if(_)for(let S=b-1;S>=0;S--){for(let k=0;k<3;k++)this._data[3*(y+S)+k]=$[3*(m+S)+k];268435456&$[3*(m+S)+2]&&(this._extendedAttrs[y+S]=p._extendedAttrs[m+S])}else for(let S=0;S<b;S++){for(let k=0;k<3;k++)this._data[3*(y+S)+k]=$[3*(m+S)+k];268435456&$[3*(m+S)+2]&&(this._extendedAttrs[y+S]=p._extendedAttrs[m+S])}const w=Object.keys(p._combined);for(let S=0;S<w.length;S++){const k=parseInt(w[S],10);k>=m&&(this._combined[k-m+y]=p._combined[k])}}translateToString(p=!1,m=0,y=this.length){p&&(y=Math.min(y,this.getTrimmedLength()));let b="";for(;m<y;){const _=this._data[3*m+0],$=2097151&_;b+=2097152&_?this._combined[m]:$?(0,c.stringFromCodePoint)($):u.WHITESPACE_CELL_CHAR,m+=_>>22||1}return b}}a.BufferLine=v},4841:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.getRangeLength=void 0,a.getRangeLength=function(l,c){if(l.start.y>l.end.y)throw new Error(`Buffer range end (${l.end.x}, ${l.end.y}) cannot be before start (${l.start.x}, ${l.start.y})`);return c*(l.end.y-l.start.y)+(l.end.x-l.start.x+1)}},4634:(s,a)=>{function l(c,u,f){if(u===c.length-1)return c[u].getTrimmedLength();const h=!c[u].hasContent(f-1)&&c[u].getWidth(f-1)===1,d=c[u+1].getWidth(0)===2;return h&&d?f-1:f}Object.defineProperty(a,"__esModule",{value:!0}),a.getWrappedLineTrimmedLength=a.reflowSmallerGetNewLineLengths=a.reflowLargerApplyNewLayout=a.reflowLargerCreateNewLayout=a.reflowLargerGetLinesToRemove=void 0,a.reflowLargerGetLinesToRemove=function(c,u,f,h,d){const v=[];for(let g=0;g<c.length-1;g++){let p=g,m=c.get(++p);if(!m.isWrapped)continue;const y=[c.get(g)];for(;p<c.length&&m.isWrapped;)y.push(m),m=c.get(++p);if(h>=g&&h<p){g+=y.length-1;continue}let b=0,_=l(y,b,u),$=1,w=0;for(;$<y.length;){const k=l(y,$,u),x=k-w,C=f-_,E=Math.min(x,C);y[b].copyCellsFrom(y[$],w,_,E,!1),_+=E,_===f&&(b++,_=0),w+=E,w===k&&($++,w=0),_===0&&b!==0&&y[b-1].getWidth(f-1)===2&&(y[b].copyCellsFrom(y[b-1],f-1,_++,1,!1),y[b-1].setCell(f-1,d))}y[b].replaceCells(_,f,d);let S=0;for(let k=y.length-1;k>0&&(k>b||y[k].getTrimmedLength()===0);k--)S++;S>0&&(v.push(g+y.length-S),v.push(S)),g+=y.length-1}return v},a.reflowLargerCreateNewLayout=function(c,u){const f=[];let h=0,d=u[h],v=0;for(let g=0;g<c.length;g++)if(d===g){const p=u[++h];c.onDeleteEmitter.fire({index:g-v,amount:p}),g+=p-1,v+=p,d=u[++h]}else f.push(g);return{layout:f,countRemoved:v}},a.reflowLargerApplyNewLayout=function(c,u){const f=[];for(let h=0;h<u.length;h++)f.push(c.get(u[h]));for(let h=0;h<f.length;h++)c.set(h,f[h]);c.length=u.length},a.reflowSmallerGetNewLineLengths=function(c,u,f){const h=[],d=c.map((m,y)=>l(c,y,u)).reduce((m,y)=>m+y);let v=0,g=0,p=0;for(;p<d;){if(d-p<f){h.push(d-p);break}v+=f;const m=l(c,g,u);v>m&&(v-=m,g++);const y=c[g].getWidth(v-1)===2;y&&v--;const b=y?f-1:f;h.push(b),p+=b}return h},a.getWrappedLineTrimmedLength=l},5295:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferSet=void 0;const c=l(9092),u=l(8460),f=l(844);class h extends f.Disposable{constructor(v,g){super(),this._optionsService=v,this._bufferService=g,this._onBufferActivate=this.register(new u.EventEmitter),this.onBufferActivate=this._onBufferActivate.event,this.reset(),this.register(this._optionsService.onSpecificOptionChange("scrollback",()=>this.resize(this._bufferService.cols,this._bufferService.rows))),this.register(this._optionsService.onSpecificOptionChange("tabStopWidth",()=>this.setupTabStops()))}reset(){this._normal=new c.Buffer(!0,this._optionsService,this._bufferService),this._normal.fillViewportRows(),this._alt=new c.Buffer(!1,this._optionsService,this._bufferService),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}),this.setupTabStops()}get alt(){return this._alt}get active(){return this._activeBuffer}get normal(){return this._normal}activateNormalBuffer(){this._activeBuffer!==this._normal&&(this._normal.x=this._alt.x,this._normal.y=this._alt.y,this._alt.clearAllMarkers(),this._alt.clear(),this._activeBuffer=this._normal,this._onBufferActivate.fire({activeBuffer:this._normal,inactiveBuffer:this._alt}))}activateAltBuffer(v){this._activeBuffer!==this._alt&&(this._alt.fillViewportRows(v),this._alt.x=this._normal.x,this._alt.y=this._normal.y,this._activeBuffer=this._alt,this._onBufferActivate.fire({activeBuffer:this._alt,inactiveBuffer:this._normal}))}resize(v,g){this._normal.resize(v,g),this._alt.resize(v,g),this.setupTabStops(v)}setupTabStops(v){this._normal.setupTabStops(v),this._alt.setupTabStops(v)}}a.BufferSet=h},511:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CellData=void 0;const c=l(482),u=l(643),f=l(3734);class h extends f.AttributeData{constructor(){super(...arguments),this.content=0,this.fg=0,this.bg=0,this.extended=new f.ExtendedAttrs,this.combinedData=""}static fromCharData(v){const g=new h;return g.setFromCharData(v),g}isCombined(){return 2097152&this.content}getWidth(){return this.content>>22}getChars(){return 2097152&this.content?this.combinedData:2097151&this.content?(0,c.stringFromCodePoint)(2097151&this.content):""}getCode(){return this.isCombined()?this.combinedData.charCodeAt(this.combinedData.length-1):2097151&this.content}setFromCharData(v){this.fg=v[u.CHAR_DATA_ATTR_INDEX],this.bg=0;let g=!1;if(v[u.CHAR_DATA_CHAR_INDEX].length>2)g=!0;else if(v[u.CHAR_DATA_CHAR_INDEX].length===2){const p=v[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0);if(55296<=p&&p<=56319){const m=v[u.CHAR_DATA_CHAR_INDEX].charCodeAt(1);56320<=m&&m<=57343?this.content=1024*(p-55296)+m-56320+65536|v[u.CHAR_DATA_WIDTH_INDEX]<<22:g=!0}else g=!0}else this.content=v[u.CHAR_DATA_CHAR_INDEX].charCodeAt(0)|v[u.CHAR_DATA_WIDTH_INDEX]<<22;g&&(this.combinedData=v[u.CHAR_DATA_CHAR_INDEX],this.content=2097152|v[u.CHAR_DATA_WIDTH_INDEX]<<22)}getAsCharData(){return[this.fg,this.getChars(),this.getWidth(),this.getCode()]}}a.CellData=h},643:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WHITESPACE_CELL_CODE=a.WHITESPACE_CELL_WIDTH=a.WHITESPACE_CELL_CHAR=a.NULL_CELL_CODE=a.NULL_CELL_WIDTH=a.NULL_CELL_CHAR=a.CHAR_DATA_CODE_INDEX=a.CHAR_DATA_WIDTH_INDEX=a.CHAR_DATA_CHAR_INDEX=a.CHAR_DATA_ATTR_INDEX=a.DEFAULT_EXT=a.DEFAULT_ATTR=a.DEFAULT_COLOR=void 0,a.DEFAULT_COLOR=0,a.DEFAULT_ATTR=256|a.DEFAULT_COLOR<<9,a.DEFAULT_EXT=0,a.CHAR_DATA_ATTR_INDEX=0,a.CHAR_DATA_CHAR_INDEX=1,a.CHAR_DATA_WIDTH_INDEX=2,a.CHAR_DATA_CODE_INDEX=3,a.NULL_CELL_CHAR="",a.NULL_CELL_WIDTH=1,a.NULL_CELL_CODE=0,a.WHITESPACE_CELL_CHAR=" ",a.WHITESPACE_CELL_WIDTH=1,a.WHITESPACE_CELL_CODE=32},4863:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Marker=void 0;const c=l(8460),u=l(844);class f{constructor(d){this.line=d,this.isDisposed=!1,this._disposables=[],this._id=f._nextId++,this._onDispose=this.register(new c.EventEmitter),this.onDispose=this._onDispose.event}get id(){return this._id}dispose(){this.isDisposed||(this.isDisposed=!0,this.line=-1,this._onDispose.fire(),(0,u.disposeArray)(this._disposables),this._disposables.length=0)}register(d){return this._disposables.push(d),d}}a.Marker=f,f._nextId=1},7116:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DEFAULT_CHARSET=a.CHARSETS=void 0,a.CHARSETS={},a.DEFAULT_CHARSET=a.CHARSETS.B,a.CHARSETS[0]={"`":"◆",a:"▒",b:"␉",c:"␌",d:"␍",e:"␊",f:"°",g:"±",h:"",i:"␋",j:"┘",k:"┐",l:"┌",m:"└",n:"┼",o:"⎺",p:"⎻",q:"─",r:"⎼",s:"⎽",t:"├",u:"┤",v:"┴",w:"┬",x:"│",y:"≤",z:"≥","{":"π","|":"≠","}":"£","~":"·"},a.CHARSETS.A={"#":"£"},a.CHARSETS.B=void 0,a.CHARSETS[4]={"#":"£","@":"¾","[":"ij","\\":"½","]":"|","{":"¨","|":"f","}":"¼","~":"´"},a.CHARSETS.C=a.CHARSETS[5]={"[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},a.CHARSETS.R={"#":"£","@":"à","[":"°","\\":"ç","]":"§","{":"é","|":"ù","}":"è","~":"¨"},a.CHARSETS.Q={"@":"à","[":"â","\\":"ç","]":"ê","^":"î","`":"ô","{":"é","|":"ù","}":"è","~":"û"},a.CHARSETS.K={"@":"§","[":"Ä","\\":"Ö","]":"Ü","{":"ä","|":"ö","}":"ü","~":"ß"},a.CHARSETS.Y={"#":"£","@":"§","[":"°","\\":"ç","]":"é","`":"ù","{":"à","|":"ò","}":"è","~":"ì"},a.CHARSETS.E=a.CHARSETS[6]={"@":"Ä","[":"Æ","\\":"Ø","]":"Å","^":"Ü","`":"ä","{":"æ","|":"ø","}":"å","~":"ü"},a.CHARSETS.Z={"#":"£","@":"§","[":"¡","\\":"Ñ","]":"¿","{":"°","|":"ñ","}":"ç"},a.CHARSETS.H=a.CHARSETS[7]={"@":"É","[":"Ä","\\":"Ö","]":"Å","^":"Ü","`":"é","{":"ä","|":"ö","}":"å","~":"ü"},a.CHARSETS["="]={"#":"ù","@":"à","[":"é","\\":"ç","]":"ê","^":"î",_:"è","`":"ô","{":"ä","|":"ö","}":"ü","~":"û"}},2584:(s,a)=>{var l,c;Object.defineProperty(a,"__esModule",{value:!0}),a.C1_ESCAPED=a.C1=a.C0=void 0,function(u){u.NUL="\0",u.SOH="",u.STX="",u.ETX="",u.EOT="",u.ENQ="",u.ACK="",u.BEL="\x07",u.BS="\b",u.HT=" ",u.LF=`
|
|
258
258
|
`,u.VT="\v",u.FF="\f",u.CR="\r",u.SO="",u.SI="",u.DLE="",u.DC1="",u.DC2="",u.DC3="",u.DC4="",u.NAK="",u.SYN="",u.ETB="",u.CAN="",u.EM="",u.SUB="",u.ESC="\x1B",u.FS="",u.GS="",u.RS="",u.US="",u.SP=" ",u.DEL=""}(l=a.C0||(a.C0={})),(c=a.C1||(a.C1={})).PAD="",c.HOP="",c.BPH="",c.NBH="",c.IND="",c.NEL="
",c.SSA="",c.ESA="",c.HTS="",c.HTJ="",c.VTS="",c.PLD="",c.PLU="",c.RI="",c.SS2="",c.SS3="",c.DCS="",c.PU1="",c.PU2="",c.STS="",c.CCH="",c.MW="",c.SPA="",c.EPA="",c.SOS="",c.SGCI="",c.SCI="",c.CSI="",c.ST="",c.OSC="",c.PM="",c.APC="",(a.C1_ESCAPED||(a.C1_ESCAPED={})).ST=`${l.ESC}\\`},7399:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.evaluateKeyboardEvent=void 0;const c=l(2584),u={48:["0",")"],49:["1","!"],50:["2","@"],51:["3","#"],52:["4","$"],53:["5","%"],54:["6","^"],55:["7","&"],56:["8","*"],57:["9","("],186:[";",":"],187:["=","+"],188:[",","<"],189:["-","_"],190:[".",">"],191:["/","?"],192:["`","~"],219:["[","{"],220:["\\","|"],221:["]","}"],222:["'",'"']};a.evaluateKeyboardEvent=function(f,h,d,v){const g={type:0,cancel:!1,key:void 0},p=(f.shiftKey?1:0)|(f.altKey?2:0)|(f.ctrlKey?4:0)|(f.metaKey?8:0);switch(f.keyCode){case 0:f.key==="UIKeyInputUpArrow"?g.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A":f.key==="UIKeyInputLeftArrow"?g.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D":f.key==="UIKeyInputRightArrow"?g.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C":f.key==="UIKeyInputDownArrow"&&(g.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B");break;case 8:if(f.altKey){g.key=c.C0.ESC+c.C0.DEL;break}g.key=c.C0.DEL;break;case 9:if(f.shiftKey){g.key=c.C0.ESC+"[Z";break}g.key=c.C0.HT,g.cancel=!0;break;case 13:g.key=f.altKey?c.C0.ESC+c.C0.CR:c.C0.CR,g.cancel=!0;break;case 27:g.key=c.C0.ESC,f.altKey&&(g.key=c.C0.ESC+c.C0.ESC),g.cancel=!0;break;case 37:if(f.metaKey)break;p?(g.key=c.C0.ESC+"[1;"+(p+1)+"D",g.key===c.C0.ESC+"[1;3D"&&(g.key=c.C0.ESC+(d?"b":"[1;5D"))):g.key=h?c.C0.ESC+"OD":c.C0.ESC+"[D";break;case 39:if(f.metaKey)break;p?(g.key=c.C0.ESC+"[1;"+(p+1)+"C",g.key===c.C0.ESC+"[1;3C"&&(g.key=c.C0.ESC+(d?"f":"[1;5C"))):g.key=h?c.C0.ESC+"OC":c.C0.ESC+"[C";break;case 38:if(f.metaKey)break;p?(g.key=c.C0.ESC+"[1;"+(p+1)+"A",d||g.key!==c.C0.ESC+"[1;3A"||(g.key=c.C0.ESC+"[1;5A")):g.key=h?c.C0.ESC+"OA":c.C0.ESC+"[A";break;case 40:if(f.metaKey)break;p?(g.key=c.C0.ESC+"[1;"+(p+1)+"B",d||g.key!==c.C0.ESC+"[1;3B"||(g.key=c.C0.ESC+"[1;5B")):g.key=h?c.C0.ESC+"OB":c.C0.ESC+"[B";break;case 45:f.shiftKey||f.ctrlKey||(g.key=c.C0.ESC+"[2~");break;case 46:g.key=p?c.C0.ESC+"[3;"+(p+1)+"~":c.C0.ESC+"[3~";break;case 36:g.key=p?c.C0.ESC+"[1;"+(p+1)+"H":h?c.C0.ESC+"OH":c.C0.ESC+"[H";break;case 35:g.key=p?c.C0.ESC+"[1;"+(p+1)+"F":h?c.C0.ESC+"OF":c.C0.ESC+"[F";break;case 33:f.shiftKey?g.type=2:f.ctrlKey?g.key=c.C0.ESC+"[5;"+(p+1)+"~":g.key=c.C0.ESC+"[5~";break;case 34:f.shiftKey?g.type=3:f.ctrlKey?g.key=c.C0.ESC+"[6;"+(p+1)+"~":g.key=c.C0.ESC+"[6~";break;case 112:g.key=p?c.C0.ESC+"[1;"+(p+1)+"P":c.C0.ESC+"OP";break;case 113:g.key=p?c.C0.ESC+"[1;"+(p+1)+"Q":c.C0.ESC+"OQ";break;case 114:g.key=p?c.C0.ESC+"[1;"+(p+1)+"R":c.C0.ESC+"OR";break;case 115:g.key=p?c.C0.ESC+"[1;"+(p+1)+"S":c.C0.ESC+"OS";break;case 116:g.key=p?c.C0.ESC+"[15;"+(p+1)+"~":c.C0.ESC+"[15~";break;case 117:g.key=p?c.C0.ESC+"[17;"+(p+1)+"~":c.C0.ESC+"[17~";break;case 118:g.key=p?c.C0.ESC+"[18;"+(p+1)+"~":c.C0.ESC+"[18~";break;case 119:g.key=p?c.C0.ESC+"[19;"+(p+1)+"~":c.C0.ESC+"[19~";break;case 120:g.key=p?c.C0.ESC+"[20;"+(p+1)+"~":c.C0.ESC+"[20~";break;case 121:g.key=p?c.C0.ESC+"[21;"+(p+1)+"~":c.C0.ESC+"[21~";break;case 122:g.key=p?c.C0.ESC+"[23;"+(p+1)+"~":c.C0.ESC+"[23~";break;case 123:g.key=p?c.C0.ESC+"[24;"+(p+1)+"~":c.C0.ESC+"[24~";break;default:if(!f.ctrlKey||f.shiftKey||f.altKey||f.metaKey)if(d&&!v||!f.altKey||f.metaKey)!d||f.altKey||f.ctrlKey||f.shiftKey||!f.metaKey?f.key&&!f.ctrlKey&&!f.altKey&&!f.metaKey&&f.keyCode>=48&&f.key.length===1?g.key=f.key:f.key&&f.ctrlKey&&(f.key==="_"&&(g.key=c.C0.US),f.key==="@"&&(g.key=c.C0.NUL)):f.keyCode===65&&(g.type=1);else{const m=u[f.keyCode],y=m?.[f.shiftKey?1:0];if(y)g.key=c.C0.ESC+y;else if(f.keyCode>=65&&f.keyCode<=90){const b=f.ctrlKey?f.keyCode-64:f.keyCode+32;let _=String.fromCharCode(b);f.shiftKey&&(_=_.toUpperCase()),g.key=c.C0.ESC+_}else if(f.keyCode===32)g.key=c.C0.ESC+(f.ctrlKey?c.C0.NUL:" ");else if(f.key==="Dead"&&f.code.startsWith("Key")){let b=f.code.slice(3,4);f.shiftKey||(b=b.toLowerCase()),g.key=c.C0.ESC+b,g.cancel=!0}}else f.keyCode>=65&&f.keyCode<=90?g.key=String.fromCharCode(f.keyCode-64):f.keyCode===32?g.key=c.C0.NUL:f.keyCode>=51&&f.keyCode<=55?g.key=String.fromCharCode(f.keyCode-51+27):f.keyCode===56?g.key=c.C0.DEL:f.keyCode===219?g.key=c.C0.ESC:f.keyCode===220?g.key=c.C0.FS:f.keyCode===221&&(g.key=c.C0.GS)}return g}},482:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Utf8ToUtf32=a.StringToUtf32=a.utf32ToString=a.stringFromCodePoint=void 0,a.stringFromCodePoint=function(l){return l>65535?(l-=65536,String.fromCharCode(55296+(l>>10))+String.fromCharCode(l%1024+56320)):String.fromCharCode(l)},a.utf32ToString=function(l,c=0,u=l.length){let f="";for(let h=c;h<u;++h){let d=l[h];d>65535?(d-=65536,f+=String.fromCharCode(55296+(d>>10))+String.fromCharCode(d%1024+56320)):f+=String.fromCharCode(d)}return f},a.StringToUtf32=class{constructor(){this._interim=0}clear(){this._interim=0}decode(l,c){const u=l.length;if(!u)return 0;let f=0,h=0;if(this._interim){const d=l.charCodeAt(h++);56320<=d&&d<=57343?c[f++]=1024*(this._interim-55296)+d-56320+65536:(c[f++]=this._interim,c[f++]=d),this._interim=0}for(let d=h;d<u;++d){const v=l.charCodeAt(d);if(55296<=v&&v<=56319){if(++d>=u)return this._interim=v,f;const g=l.charCodeAt(d);56320<=g&&g<=57343?c[f++]=1024*(v-55296)+g-56320+65536:(c[f++]=v,c[f++]=g)}else v!==65279&&(c[f++]=v)}return f}},a.Utf8ToUtf32=class{constructor(){this.interim=new Uint8Array(3)}clear(){this.interim.fill(0)}decode(l,c){const u=l.length;if(!u)return 0;let f,h,d,v,g=0,p=0,m=0;if(this.interim[0]){let _=!1,$=this.interim[0];$&=(224&$)==192?31:(240&$)==224?15:7;let w,S=0;for(;(w=63&this.interim[++S])&&S<4;)$<<=6,$|=w;const k=(224&this.interim[0])==192?2:(240&this.interim[0])==224?3:4,x=k-S;for(;m<x;){if(m>=u)return 0;if(w=l[m++],(192&w)!=128){m--,_=!0;break}this.interim[S++]=w,$<<=6,$|=63&w}_||(k===2?$<128?m--:c[g++]=$:k===3?$<2048||$>=55296&&$<=57343||$===65279||(c[g++]=$):$<65536||$>1114111||(c[g++]=$)),this.interim.fill(0)}const y=u-4;let b=m;for(;b<u;){for(;!(!(b<y)||128&(f=l[b])||128&(h=l[b+1])||128&(d=l[b+2])||128&(v=l[b+3]));)c[g++]=f,c[g++]=h,c[g++]=d,c[g++]=v,b+=4;if(f=l[b++],f<128)c[g++]=f;else if((224&f)==192){if(b>=u)return this.interim[0]=f,g;if(h=l[b++],(192&h)!=128){b--;continue}if(p=(31&f)<<6|63&h,p<128){b--;continue}c[g++]=p}else if((240&f)==224){if(b>=u)return this.interim[0]=f,g;if(h=l[b++],(192&h)!=128){b--;continue}if(b>=u)return this.interim[0]=f,this.interim[1]=h,g;if(d=l[b++],(192&d)!=128){b--;continue}if(p=(15&f)<<12|(63&h)<<6|63&d,p<2048||p>=55296&&p<=57343||p===65279)continue;c[g++]=p}else if((248&f)==240){if(b>=u)return this.interim[0]=f,g;if(h=l[b++],(192&h)!=128){b--;continue}if(b>=u)return this.interim[0]=f,this.interim[1]=h,g;if(d=l[b++],(192&d)!=128){b--;continue}if(b>=u)return this.interim[0]=f,this.interim[1]=h,this.interim[2]=d,g;if(v=l[b++],(192&v)!=128){b--;continue}if(p=(7&f)<<18|(63&h)<<12|(63&d)<<6|63&v,p<65536||p>1114111)continue;c[g++]=p}}return g}}},225:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeV6=void 0;const l=[[768,879],[1155,1158],[1160,1161],[1425,1469],[1471,1471],[1473,1474],[1476,1477],[1479,1479],[1536,1539],[1552,1557],[1611,1630],[1648,1648],[1750,1764],[1767,1768],[1770,1773],[1807,1807],[1809,1809],[1840,1866],[1958,1968],[2027,2035],[2305,2306],[2364,2364],[2369,2376],[2381,2381],[2385,2388],[2402,2403],[2433,2433],[2492,2492],[2497,2500],[2509,2509],[2530,2531],[2561,2562],[2620,2620],[2625,2626],[2631,2632],[2635,2637],[2672,2673],[2689,2690],[2748,2748],[2753,2757],[2759,2760],[2765,2765],[2786,2787],[2817,2817],[2876,2876],[2879,2879],[2881,2883],[2893,2893],[2902,2902],[2946,2946],[3008,3008],[3021,3021],[3134,3136],[3142,3144],[3146,3149],[3157,3158],[3260,3260],[3263,3263],[3270,3270],[3276,3277],[3298,3299],[3393,3395],[3405,3405],[3530,3530],[3538,3540],[3542,3542],[3633,3633],[3636,3642],[3655,3662],[3761,3761],[3764,3769],[3771,3772],[3784,3789],[3864,3865],[3893,3893],[3895,3895],[3897,3897],[3953,3966],[3968,3972],[3974,3975],[3984,3991],[3993,4028],[4038,4038],[4141,4144],[4146,4146],[4150,4151],[4153,4153],[4184,4185],[4448,4607],[4959,4959],[5906,5908],[5938,5940],[5970,5971],[6002,6003],[6068,6069],[6071,6077],[6086,6086],[6089,6099],[6109,6109],[6155,6157],[6313,6313],[6432,6434],[6439,6440],[6450,6450],[6457,6459],[6679,6680],[6912,6915],[6964,6964],[6966,6970],[6972,6972],[6978,6978],[7019,7027],[7616,7626],[7678,7679],[8203,8207],[8234,8238],[8288,8291],[8298,8303],[8400,8431],[12330,12335],[12441,12442],[43014,43014],[43019,43019],[43045,43046],[64286,64286],[65024,65039],[65056,65059],[65279,65279],[65529,65531]],c=[[68097,68099],[68101,68102],[68108,68111],[68152,68154],[68159,68159],[119143,119145],[119155,119170],[119173,119179],[119210,119213],[119362,119364],[917505,917505],[917536,917631],[917760,917999]];let u;a.UnicodeV6=class{constructor(){if(this.version="6",!u){u=new Uint8Array(65536),u.fill(1),u[0]=0,u.fill(0,1,32),u.fill(0,127,160),u.fill(2,4352,4448),u[9001]=2,u[9002]=2,u.fill(2,11904,42192),u[12351]=1,u.fill(2,44032,55204),u.fill(2,63744,64256),u.fill(2,65040,65050),u.fill(2,65072,65136),u.fill(2,65280,65377),u.fill(2,65504,65511);for(let f=0;f<l.length;++f)u.fill(0,l[f][0],l[f][1]+1)}}wcwidth(f){return f<32?0:f<127?1:f<65536?u[f]:function(h,d){let v,g=0,p=d.length-1;if(h<d[0][0]||h>d[p][1])return!1;for(;p>=g;)if(v=g+p>>1,h>d[v][1])g=v+1;else{if(!(h<d[v][0]))return!0;p=v-1}return!1}(f,c)?0:f>=131072&&f<=196605||f>=196608&&f<=262141?2:1}}},5981:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.WriteBuffer=void 0;const c=l(8460),u=l(844);class f extends u.Disposable{constructor(d){super(),this._action=d,this._writeBuffer=[],this._callbacks=[],this._pendingData=0,this._bufferOffset=0,this._isSyncWriting=!1,this._syncCalls=0,this._didUserInput=!1,this._onWriteParsed=this.register(new c.EventEmitter),this.onWriteParsed=this._onWriteParsed.event}handleUserInput(){this._didUserInput=!0}writeSync(d,v){if(v!==void 0&&this._syncCalls>v)return void(this._syncCalls=0);if(this._pendingData+=d.length,this._writeBuffer.push(d),this._callbacks.push(void 0),this._syncCalls++,this._isSyncWriting)return;let g;for(this._isSyncWriting=!0;g=this._writeBuffer.shift();){this._action(g);const p=this._callbacks.shift();p&&p()}this._pendingData=0,this._bufferOffset=2147483647,this._isSyncWriting=!1,this._syncCalls=0}write(d,v){if(this._pendingData>5e7)throw new Error("write data discarded, use flow control to avoid losing data");if(!this._writeBuffer.length){if(this._bufferOffset=0,this._didUserInput)return this._didUserInput=!1,this._pendingData+=d.length,this._writeBuffer.push(d),this._callbacks.push(v),void this._innerWrite();setTimeout(()=>this._innerWrite())}this._pendingData+=d.length,this._writeBuffer.push(d),this._callbacks.push(v)}_innerWrite(d=0,v=!0){const g=d||Date.now();for(;this._writeBuffer.length>this._bufferOffset;){const p=this._writeBuffer[this._bufferOffset],m=this._action(p,v);if(m){const b=_=>Date.now()-g>=12?setTimeout(()=>this._innerWrite(0,_)):this._innerWrite(g,_);return void m.catch(_=>(queueMicrotask(()=>{throw _}),Promise.resolve(!1))).then(b)}const y=this._callbacks[this._bufferOffset];if(y&&y(),this._bufferOffset++,this._pendingData-=p.length,Date.now()-g>=12)break}this._writeBuffer.length>this._bufferOffset?(this._bufferOffset>50&&(this._writeBuffer=this._writeBuffer.slice(this._bufferOffset),this._callbacks=this._callbacks.slice(this._bufferOffset),this._bufferOffset=0),setTimeout(()=>this._innerWrite())):(this._writeBuffer.length=0,this._callbacks.length=0,this._pendingData=0,this._bufferOffset=0),this._onWriteParsed.fire()}}a.WriteBuffer=f},5941:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.toRgbString=a.parseColor=void 0;const l=/^([\da-f])\/([\da-f])\/([\da-f])$|^([\da-f]{2})\/([\da-f]{2})\/([\da-f]{2})$|^([\da-f]{3})\/([\da-f]{3})\/([\da-f]{3})$|^([\da-f]{4})\/([\da-f]{4})\/([\da-f]{4})$/,c=/^[\da-f]+$/;function u(f,h){const d=f.toString(16),v=d.length<2?"0"+d:d;switch(h){case 4:return d[0];case 8:return v;case 12:return(v+v).slice(0,3);default:return v+v}}a.parseColor=function(f){if(!f)return;let h=f.toLowerCase();if(h.indexOf("rgb:")===0){h=h.slice(4);const d=l.exec(h);if(d){const v=d[1]?15:d[4]?255:d[7]?4095:65535;return[Math.round(parseInt(d[1]||d[4]||d[7]||d[10],16)/v*255),Math.round(parseInt(d[2]||d[5]||d[8]||d[11],16)/v*255),Math.round(parseInt(d[3]||d[6]||d[9]||d[12],16)/v*255)]}}else if(h.indexOf("#")===0&&(h=h.slice(1),c.exec(h)&&[3,6,9,12].includes(h.length))){const d=h.length/3,v=[0,0,0];for(let g=0;g<3;++g){const p=parseInt(h.slice(d*g,d*g+d),16);v[g]=d===1?p<<4:d===2?p:d===3?p>>4:p>>8}return v}},a.toRgbString=function(f,h=16){const[d,v,g]=f;return`rgb:${u(d,h)}/${u(v,h)}/${u(g,h)}`}},5770:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.PAYLOAD_LIMIT=void 0,a.PAYLOAD_LIMIT=1e7},6351:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DcsHandler=a.DcsParser=void 0;const c=l(482),u=l(8742),f=l(5770),h=[];a.DcsParser=class{constructor(){this._handlers=Object.create(null),this._active=h,this._ident=0,this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=h}registerHandler(v,g){this._handlers[v]===void 0&&(this._handlers[v]=[]);const p=this._handlers[v];return p.push(g),{dispose:()=>{const m=p.indexOf(g);m!==-1&&p.splice(m,1)}}}clearHandler(v){this._handlers[v]&&delete this._handlers[v]}setHandlerFallback(v){this._handlerFb=v}reset(){if(this._active.length)for(let v=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;v>=0;--v)this._active[v].unhook(!1);this._stack.paused=!1,this._active=h,this._ident=0}hook(v,g){if(this.reset(),this._ident=v,this._active=this._handlers[v]||h,this._active.length)for(let p=this._active.length-1;p>=0;p--)this._active[p].hook(g);else this._handlerFb(this._ident,"HOOK",g)}put(v,g,p){if(this._active.length)for(let m=this._active.length-1;m>=0;m--)this._active[m].put(v,g,p);else this._handlerFb(this._ident,"PUT",(0,c.utf32ToString)(v,g,p))}unhook(v,g=!0){if(this._active.length){let p=!1,m=this._active.length-1,y=!1;if(this._stack.paused&&(m=this._stack.loopPosition-1,p=g,y=this._stack.fallThrough,this._stack.paused=!1),!y&&p===!1){for(;m>=0&&(p=this._active[m].unhook(v),p!==!0);m--)if(p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=m,this._stack.fallThrough=!1,p;m--}for(;m>=0;m--)if(p=this._active[m].unhook(!1),p instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=m,this._stack.fallThrough=!0,p}else this._handlerFb(this._ident,"UNHOOK",v);this._active=h,this._ident=0}};const d=new u.Params;d.addParam(0),a.DcsHandler=class{constructor(v){this._handler=v,this._data="",this._params=d,this._hitLimit=!1}hook(v){this._params=v.length>1||v.params[0]?v.clone():d,this._data="",this._hitLimit=!1}put(v,g,p){this._hitLimit||(this._data+=(0,c.utf32ToString)(v,g,p),this._data.length>f.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}unhook(v){let g=!1;if(this._hitLimit)g=!1;else if(v&&(g=this._handler(this._data,this._params),g instanceof Promise))return g.then(p=>(this._params=d,this._data="",this._hitLimit=!1,p));return this._params=d,this._data="",this._hitLimit=!1,g}}},2015:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.EscapeSequenceParser=a.VT500_TRANSITION_TABLE=a.TransitionTable=void 0;const c=l(844),u=l(8742),f=l(6242),h=l(6351);class d{constructor(m){this.table=new Uint8Array(m)}setDefault(m,y){this.table.fill(m<<4|y)}add(m,y,b,_){this.table[y<<8|m]=b<<4|_}addMany(m,y,b,_){for(let $=0;$<m.length;$++)this.table[y<<8|m[$]]=b<<4|_}}a.TransitionTable=d;const v=160;a.VT500_TRANSITION_TABLE=function(){const p=new d(4095),m=Array.apply(null,Array(256)).map((S,k)=>k),y=(S,k)=>m.slice(S,k),b=y(32,127),_=y(0,24);_.push(25),_.push.apply(_,y(28,32));const $=y(0,14);let w;for(w in p.setDefault(1,0),p.addMany(b,0,2,0),$)p.addMany([24,26,153,154],w,3,0),p.addMany(y(128,144),w,3,0),p.addMany(y(144,152),w,3,0),p.add(156,w,0,0),p.add(27,w,11,1),p.add(157,w,4,8),p.addMany([152,158,159],w,0,7),p.add(155,w,11,3),p.add(144,w,11,9);return p.addMany(_,0,3,0),p.addMany(_,1,3,1),p.add(127,1,0,1),p.addMany(_,8,0,8),p.addMany(_,3,3,3),p.add(127,3,0,3),p.addMany(_,4,3,4),p.add(127,4,0,4),p.addMany(_,6,3,6),p.addMany(_,5,3,5),p.add(127,5,0,5),p.addMany(_,2,3,2),p.add(127,2,0,2),p.add(93,1,4,8),p.addMany(b,8,5,8),p.add(127,8,5,8),p.addMany([156,27,24,26,7],8,6,0),p.addMany(y(28,32),8,0,8),p.addMany([88,94,95],1,0,7),p.addMany(b,7,0,7),p.addMany(_,7,0,7),p.add(156,7,0,0),p.add(127,7,0,7),p.add(91,1,11,3),p.addMany(y(64,127),3,7,0),p.addMany(y(48,60),3,8,4),p.addMany([60,61,62,63],3,9,4),p.addMany(y(48,60),4,8,4),p.addMany(y(64,127),4,7,0),p.addMany([60,61,62,63],4,0,6),p.addMany(y(32,64),6,0,6),p.add(127,6,0,6),p.addMany(y(64,127),6,0,0),p.addMany(y(32,48),3,9,5),p.addMany(y(32,48),5,9,5),p.addMany(y(48,64),5,0,6),p.addMany(y(64,127),5,7,0),p.addMany(y(32,48),4,9,5),p.addMany(y(32,48),1,9,2),p.addMany(y(32,48),2,9,2),p.addMany(y(48,127),2,10,0),p.addMany(y(48,80),1,10,0),p.addMany(y(81,88),1,10,0),p.addMany([89,90,92],1,10,0),p.addMany(y(96,127),1,10,0),p.add(80,1,11,9),p.addMany(_,9,0,9),p.add(127,9,0,9),p.addMany(y(28,32),9,0,9),p.addMany(y(32,48),9,9,12),p.addMany(y(48,60),9,8,10),p.addMany([60,61,62,63],9,9,10),p.addMany(_,11,0,11),p.addMany(y(32,128),11,0,11),p.addMany(y(28,32),11,0,11),p.addMany(_,10,0,10),p.add(127,10,0,10),p.addMany(y(28,32),10,0,10),p.addMany(y(48,60),10,8,10),p.addMany([60,61,62,63],10,0,11),p.addMany(y(32,48),10,9,12),p.addMany(_,12,0,12),p.add(127,12,0,12),p.addMany(y(28,32),12,0,12),p.addMany(y(32,48),12,9,12),p.addMany(y(48,64),12,0,11),p.addMany(y(64,127),12,12,13),p.addMany(y(64,127),10,12,13),p.addMany(y(64,127),9,12,13),p.addMany(_,13,13,13),p.addMany(b,13,13,13),p.add(127,13,0,13),p.addMany([27,156,24,26],13,14,0),p.add(v,0,2,0),p.add(v,8,5,8),p.add(v,6,0,6),p.add(v,11,0,11),p.add(v,13,13,13),p}();class g extends c.Disposable{constructor(m=a.VT500_TRANSITION_TABLE){super(),this._transitions=m,this._parseStack={state:0,handlers:[],handlerPos:0,transition:0,chunkPos:0},this.initialState=0,this.currentState=this.initialState,this._params=new u.Params,this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._printHandlerFb=(y,b,_)=>{},this._executeHandlerFb=y=>{},this._csiHandlerFb=(y,b)=>{},this._escHandlerFb=y=>{},this._errorHandlerFb=y=>y,this._printHandler=this._printHandlerFb,this._executeHandlers=Object.create(null),this._csiHandlers=Object.create(null),this._escHandlers=Object.create(null),this.register((0,c.toDisposable)(()=>{this._csiHandlers=Object.create(null),this._executeHandlers=Object.create(null),this._escHandlers=Object.create(null)})),this._oscParser=this.register(new f.OscParser),this._dcsParser=this.register(new h.DcsParser),this._errorHandler=this._errorHandlerFb,this.registerEscHandler({final:"\\"},()=>!0)}_identifier(m,y=[64,126]){let b=0;if(m.prefix){if(m.prefix.length>1)throw new Error("only one byte as prefix supported");if(b=m.prefix.charCodeAt(0),b&&60>b||b>63)throw new Error("prefix must be in range 0x3c .. 0x3f")}if(m.intermediates){if(m.intermediates.length>2)throw new Error("only two bytes as intermediates are supported");for(let $=0;$<m.intermediates.length;++$){const w=m.intermediates.charCodeAt($);if(32>w||w>47)throw new Error("intermediate must be in range 0x20 .. 0x2f");b<<=8,b|=w}}if(m.final.length!==1)throw new Error("final must be a single byte");const _=m.final.charCodeAt(0);if(y[0]>_||_>y[1])throw new Error(`final must be in range ${y[0]} .. ${y[1]}`);return b<<=8,b|=_,b}identToString(m){const y=[];for(;m;)y.push(String.fromCharCode(255&m)),m>>=8;return y.reverse().join("")}setPrintHandler(m){this._printHandler=m}clearPrintHandler(){this._printHandler=this._printHandlerFb}registerEscHandler(m,y){const b=this._identifier(m,[48,126]);this._escHandlers[b]===void 0&&(this._escHandlers[b]=[]);const _=this._escHandlers[b];return _.push(y),{dispose:()=>{const $=_.indexOf(y);$!==-1&&_.splice($,1)}}}clearEscHandler(m){this._escHandlers[this._identifier(m,[48,126])]&&delete this._escHandlers[this._identifier(m,[48,126])]}setEscHandlerFallback(m){this._escHandlerFb=m}setExecuteHandler(m,y){this._executeHandlers[m.charCodeAt(0)]=y}clearExecuteHandler(m){this._executeHandlers[m.charCodeAt(0)]&&delete this._executeHandlers[m.charCodeAt(0)]}setExecuteHandlerFallback(m){this._executeHandlerFb=m}registerCsiHandler(m,y){const b=this._identifier(m);this._csiHandlers[b]===void 0&&(this._csiHandlers[b]=[]);const _=this._csiHandlers[b];return _.push(y),{dispose:()=>{const $=_.indexOf(y);$!==-1&&_.splice($,1)}}}clearCsiHandler(m){this._csiHandlers[this._identifier(m)]&&delete this._csiHandlers[this._identifier(m)]}setCsiHandlerFallback(m){this._csiHandlerFb=m}registerDcsHandler(m,y){return this._dcsParser.registerHandler(this._identifier(m),y)}clearDcsHandler(m){this._dcsParser.clearHandler(this._identifier(m))}setDcsHandlerFallback(m){this._dcsParser.setHandlerFallback(m)}registerOscHandler(m,y){return this._oscParser.registerHandler(m,y)}clearOscHandler(m){this._oscParser.clearHandler(m)}setOscHandlerFallback(m){this._oscParser.setHandlerFallback(m)}setErrorHandler(m){this._errorHandler=m}clearErrorHandler(){this._errorHandler=this._errorHandlerFb}reset(){this.currentState=this.initialState,this._oscParser.reset(),this._dcsParser.reset(),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0,this._parseStack.state!==0&&(this._parseStack.state=2,this._parseStack.handlers=[])}_preserveStack(m,y,b,_,$){this._parseStack.state=m,this._parseStack.handlers=y,this._parseStack.handlerPos=b,this._parseStack.transition=_,this._parseStack.chunkPos=$}parse(m,y,b){let _,$=0,w=0,S=0;if(this._parseStack.state)if(this._parseStack.state===2)this._parseStack.state=0,S=this._parseStack.chunkPos+1;else{if(b===void 0||this._parseStack.state===1)throw this._parseStack.state=1,new Error("improper continuation due to previous async handler, giving up parsing");const k=this._parseStack.handlers;let x=this._parseStack.handlerPos-1;switch(this._parseStack.state){case 3:if(b===!1&&x>-1){for(;x>=0&&(_=k[x](this._params),_!==!0);x--)if(_ instanceof Promise)return this._parseStack.handlerPos=x,_}this._parseStack.handlers=[];break;case 4:if(b===!1&&x>-1){for(;x>=0&&(_=k[x](),_!==!0);x--)if(_ instanceof Promise)return this._parseStack.handlerPos=x,_}this._parseStack.handlers=[];break;case 6:if($=m[this._parseStack.chunkPos],_=this._dcsParser.unhook($!==24&&$!==26,b),_)return _;$===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0;break;case 5:if($=m[this._parseStack.chunkPos],_=this._oscParser.end($!==24&&$!==26,b),_)return _;$===27&&(this._parseStack.transition|=1),this._params.reset(),this._params.addParam(0),this._collect=0}this._parseStack.state=0,S=this._parseStack.chunkPos+1,this.precedingCodepoint=0,this.currentState=15&this._parseStack.transition}for(let k=S;k<y;++k){switch($=m[k],w=this._transitions.table[this.currentState<<8|($<160?$:v)],w>>4){case 2:for(let A=k+1;;++A){if(A>=y||($=m[A])<32||$>126&&$<v){this._printHandler(m,k,A),k=A-1;break}if(++A>=y||($=m[A])<32||$>126&&$<v){this._printHandler(m,k,A),k=A-1;break}if(++A>=y||($=m[A])<32||$>126&&$<v){this._printHandler(m,k,A),k=A-1;break}if(++A>=y||($=m[A])<32||$>126&&$<v){this._printHandler(m,k,A),k=A-1;break}}break;case 3:this._executeHandlers[$]?this._executeHandlers[$]():this._executeHandlerFb($),this.precedingCodepoint=0;break;case 0:break;case 1:if(this._errorHandler({position:k,code:$,currentState:this.currentState,collect:this._collect,params:this._params,abort:!1}).abort)return;break;case 7:const x=this._csiHandlers[this._collect<<8|$];let C=x?x.length-1:-1;for(;C>=0&&(_=x[C](this._params),_!==!0);C--)if(_ instanceof Promise)return this._preserveStack(3,x,C,w,k),_;C<0&&this._csiHandlerFb(this._collect<<8|$,this._params),this.precedingCodepoint=0;break;case 8:do switch($){case 59:this._params.addParam(0);break;case 58:this._params.addSubParam(-1);break;default:this._params.addDigit($-48)}while(++k<y&&($=m[k])>47&&$<60);k--;break;case 9:this._collect<<=8,this._collect|=$;break;case 10:const E=this._escHandlers[this._collect<<8|$];let j=E?E.length-1:-1;for(;j>=0&&(_=E[j](),_!==!0);j--)if(_ instanceof Promise)return this._preserveStack(4,E,j,w,k),_;j<0&&this._escHandlerFb(this._collect<<8|$),this.precedingCodepoint=0;break;case 11:this._params.reset(),this._params.addParam(0),this._collect=0;break;case 12:this._dcsParser.hook(this._collect<<8|$,this._params);break;case 13:for(let A=k+1;;++A)if(A>=y||($=m[A])===24||$===26||$===27||$>127&&$<v){this._dcsParser.put(m,k,A),k=A-1;break}break;case 14:if(_=this._dcsParser.unhook($!==24&&$!==26),_)return this._preserveStack(6,[],0,w,k),_;$===27&&(w|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0;break;case 4:this._oscParser.start();break;case 5:for(let A=k+1;;A++)if(A>=y||($=m[A])<32||$>127&&$<v){this._oscParser.put(m,k,A),k=A-1;break}break;case 6:if(_=this._oscParser.end($!==24&&$!==26),_)return this._preserveStack(5,[],0,w,k),_;$===27&&(w|=1),this._params.reset(),this._params.addParam(0),this._collect=0,this.precedingCodepoint=0}this.currentState=15&w}}}a.EscapeSequenceParser=g},6242:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OscHandler=a.OscParser=void 0;const c=l(5770),u=l(482),f=[];a.OscParser=class{constructor(){this._state=0,this._active=f,this._id=-1,this._handlers=Object.create(null),this._handlerFb=()=>{},this._stack={paused:!1,loopPosition:0,fallThrough:!1}}registerHandler(h,d){this._handlers[h]===void 0&&(this._handlers[h]=[]);const v=this._handlers[h];return v.push(d),{dispose:()=>{const g=v.indexOf(d);g!==-1&&v.splice(g,1)}}}clearHandler(h){this._handlers[h]&&delete this._handlers[h]}setHandlerFallback(h){this._handlerFb=h}dispose(){this._handlers=Object.create(null),this._handlerFb=()=>{},this._active=f}reset(){if(this._state===2)for(let h=this._stack.paused?this._stack.loopPosition-1:this._active.length-1;h>=0;--h)this._active[h].end(!1);this._stack.paused=!1,this._active=f,this._id=-1,this._state=0}_start(){if(this._active=this._handlers[this._id]||f,this._active.length)for(let h=this._active.length-1;h>=0;h--)this._active[h].start();else this._handlerFb(this._id,"START")}_put(h,d,v){if(this._active.length)for(let g=this._active.length-1;g>=0;g--)this._active[g].put(h,d,v);else this._handlerFb(this._id,"PUT",(0,u.utf32ToString)(h,d,v))}start(){this.reset(),this._state=1}put(h,d,v){if(this._state!==3){if(this._state===1)for(;d<v;){const g=h[d++];if(g===59){this._state=2,this._start();break}if(g<48||57<g)return void(this._state=3);this._id===-1&&(this._id=0),this._id=10*this._id+g-48}this._state===2&&v-d>0&&this._put(h,d,v)}}end(h,d=!0){if(this._state!==0){if(this._state!==3)if(this._state===1&&this._start(),this._active.length){let v=!1,g=this._active.length-1,p=!1;if(this._stack.paused&&(g=this._stack.loopPosition-1,v=d,p=this._stack.fallThrough,this._stack.paused=!1),!p&&v===!1){for(;g>=0&&(v=this._active[g].end(h),v!==!0);g--)if(v instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=g,this._stack.fallThrough=!1,v;g--}for(;g>=0;g--)if(v=this._active[g].end(!1),v instanceof Promise)return this._stack.paused=!0,this._stack.loopPosition=g,this._stack.fallThrough=!0,v}else this._handlerFb(this._id,"END",h);this._active=f,this._id=-1,this._state=0}}},a.OscHandler=class{constructor(h){this._handler=h,this._data="",this._hitLimit=!1}start(){this._data="",this._hitLimit=!1}put(h,d,v){this._hitLimit||(this._data+=(0,u.utf32ToString)(h,d,v),this._data.length>c.PAYLOAD_LIMIT&&(this._data="",this._hitLimit=!0))}end(h){let d=!1;if(this._hitLimit)d=!1;else if(h&&(d=this._handler(this._data),d instanceof Promise))return d.then(v=>(this._data="",this._hitLimit=!1,v));return this._data="",this._hitLimit=!1,d}}},8742:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.Params=void 0;const l=2147483647;class c{constructor(f=32,h=32){if(this.maxLength=f,this.maxSubParamsLength=h,h>256)throw new Error("maxSubParamsLength must not be greater than 256");this.params=new Int32Array(f),this.length=0,this._subParams=new Int32Array(h),this._subParamsLength=0,this._subParamsIdx=new Uint16Array(f),this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}static fromArray(f){const h=new c;if(!f.length)return h;for(let d=Array.isArray(f[0])?1:0;d<f.length;++d){const v=f[d];if(Array.isArray(v))for(let g=0;g<v.length;++g)h.addSubParam(v[g]);else h.addParam(v)}return h}clone(){const f=new c(this.maxLength,this.maxSubParamsLength);return f.params.set(this.params),f.length=this.length,f._subParams.set(this._subParams),f._subParamsLength=this._subParamsLength,f._subParamsIdx.set(this._subParamsIdx),f._rejectDigits=this._rejectDigits,f._rejectSubDigits=this._rejectSubDigits,f._digitIsSub=this._digitIsSub,f}toArray(){const f=[];for(let h=0;h<this.length;++h){f.push(this.params[h]);const d=this._subParamsIdx[h]>>8,v=255&this._subParamsIdx[h];v-d>0&&f.push(Array.prototype.slice.call(this._subParams,d,v))}return f}reset(){this.length=0,this._subParamsLength=0,this._rejectDigits=!1,this._rejectSubDigits=!1,this._digitIsSub=!1}addParam(f){if(this._digitIsSub=!1,this.length>=this.maxLength)this._rejectDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParamsIdx[this.length]=this._subParamsLength<<8|this._subParamsLength,this.params[this.length++]=f>l?l:f}}addSubParam(f){if(this._digitIsSub=!0,this.length)if(this._rejectDigits||this._subParamsLength>=this.maxSubParamsLength)this._rejectSubDigits=!0;else{if(f<-1)throw new Error("values lesser than -1 are not allowed");this._subParams[this._subParamsLength++]=f>l?l:f,this._subParamsIdx[this.length-1]++}}hasSubParams(f){return(255&this._subParamsIdx[f])-(this._subParamsIdx[f]>>8)>0}getSubParams(f){const h=this._subParamsIdx[f]>>8,d=255&this._subParamsIdx[f];return d-h>0?this._subParams.subarray(h,d):null}getSubParamsAll(){const f={};for(let h=0;h<this.length;++h){const d=this._subParamsIdx[h]>>8,v=255&this._subParamsIdx[h];v-d>0&&(f[h]=this._subParams.slice(d,v))}return f}addDigit(f){let h;if(this._rejectDigits||!(h=this._digitIsSub?this._subParamsLength:this.length)||this._digitIsSub&&this._rejectSubDigits)return;const d=this._digitIsSub?this._subParams:this.params,v=d[h-1];d[h-1]=~v?Math.min(10*v+f,l):f}}a.Params=c},5741:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.AddonManager=void 0,a.AddonManager=class{constructor(){this._addons=[]}dispose(){for(let l=this._addons.length-1;l>=0;l--)this._addons[l].instance.dispose()}loadAddon(l,c){const u={instance:c,dispose:c.dispose,isDisposed:!1};this._addons.push(u),c.dispose=()=>this._wrappedAddonDispose(u),c.activate(l)}_wrappedAddonDispose(l){if(l.isDisposed)return;let c=-1;for(let u=0;u<this._addons.length;u++)if(this._addons[u]===l){c=u;break}if(c===-1)throw new Error("Could not dispose an addon that has not been loaded");l.isDisposed=!0,l.dispose.apply(l.instance),this._addons.splice(c,1)}}},8771:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferApiView=void 0;const c=l(3785),u=l(511);a.BufferApiView=class{constructor(f,h){this._buffer=f,this.type=h}init(f){return this._buffer=f,this}get cursorY(){return this._buffer.y}get cursorX(){return this._buffer.x}get viewportY(){return this._buffer.ydisp}get baseY(){return this._buffer.ybase}get length(){return this._buffer.lines.length}getLine(f){const h=this._buffer.lines.get(f);if(h)return new c.BufferLineApiView(h)}getNullCell(){return new u.CellData}}},3785:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferLineApiView=void 0;const c=l(511);a.BufferLineApiView=class{constructor(u){this._line=u}get isWrapped(){return this._line.isWrapped}get length(){return this._line.length}getCell(u,f){if(!(u<0||u>=this._line.length))return f?(this._line.loadCell(u,f),f):this._line.loadCell(u,new c.CellData)}translateToString(u,f,h){return this._line.translateToString(u,f,h)}}},8285:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.BufferNamespaceApi=void 0;const c=l(8771),u=l(8460);a.BufferNamespaceApi=class{constructor(f){this._core=f,this._onBufferChange=new u.EventEmitter,this.onBufferChange=this._onBufferChange.event,this._normal=new c.BufferApiView(this._core.buffers.normal,"normal"),this._alternate=new c.BufferApiView(this._core.buffers.alt,"alternate"),this._core.buffers.onBufferActivate(()=>this._onBufferChange.fire(this.active))}get active(){if(this._core.buffers.active===this._core.buffers.normal)return this.normal;if(this._core.buffers.active===this._core.buffers.alt)return this.alternate;throw new Error("Active buffer is neither normal nor alternate")}get normal(){return this._normal.init(this._core.buffers.normal)}get alternate(){return this._alternate.init(this._core.buffers.alt)}}},7975:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.ParserApi=void 0,a.ParserApi=class{constructor(l){this._core=l}registerCsiHandler(l,c){return this._core.registerCsiHandler(l,u=>c(u.toArray()))}addCsiHandler(l,c){return this.registerCsiHandler(l,c)}registerDcsHandler(l,c){return this._core.registerDcsHandler(l,(u,f)=>c(u,f.toArray()))}addDcsHandler(l,c){return this.registerDcsHandler(l,c)}registerEscHandler(l,c){return this._core.registerEscHandler(l,c)}addEscHandler(l,c){return this.registerEscHandler(l,c)}registerOscHandler(l,c){return this._core.registerOscHandler(l,c)}addOscHandler(l,c){return this.registerOscHandler(l,c)}}},7090:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeApi=void 0,a.UnicodeApi=class{constructor(l){this._core=l}register(l){this._core.unicodeService.register(l)}get versions(){return this._core.unicodeService.versions}get activeVersion(){return this._core.unicodeService.activeVersion}set activeVersion(l){this._core.unicodeService.activeVersion=l}}},744:function(s,a,l){var c=this&&this.__decorate||function(p,m,y,b){var _,$=arguments.length,w=$<3?m:b===null?b=Object.getOwnPropertyDescriptor(m,y):b;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")w=Reflect.decorate(p,m,y,b);else for(var S=p.length-1;S>=0;S--)(_=p[S])&&(w=($<3?_(w):$>3?_(m,y,w):_(m,y))||w);return $>3&&w&&Object.defineProperty(m,y,w),w},u=this&&this.__param||function(p,m){return function(y,b){m(y,b,p)}};Object.defineProperty(a,"__esModule",{value:!0}),a.BufferService=a.MINIMUM_ROWS=a.MINIMUM_COLS=void 0;const f=l(2585),h=l(5295),d=l(8460),v=l(844);a.MINIMUM_COLS=2,a.MINIMUM_ROWS=1;let g=class extends v.Disposable{constructor(p){super(),this.isUserScrolling=!1,this._onResize=this.register(new d.EventEmitter),this.onResize=this._onResize.event,this._onScroll=this.register(new d.EventEmitter),this.onScroll=this._onScroll.event,this.cols=Math.max(p.rawOptions.cols||0,a.MINIMUM_COLS),this.rows=Math.max(p.rawOptions.rows||0,a.MINIMUM_ROWS),this.buffers=this.register(new h.BufferSet(p,this))}get buffer(){return this.buffers.active}resize(p,m){this.cols=p,this.rows=m,this.buffers.resize(p,m),this._onResize.fire({cols:p,rows:m})}reset(){this.buffers.reset(),this.isUserScrolling=!1}scroll(p,m=!1){const y=this.buffer;let b;b=this._cachedBlankLine,b&&b.length===this.cols&&b.getFg(0)===p.fg&&b.getBg(0)===p.bg||(b=y.getBlankLine(p,m),this._cachedBlankLine=b),b.isWrapped=m;const _=y.ybase+y.scrollTop,$=y.ybase+y.scrollBottom;if(y.scrollTop===0){const w=y.lines.isFull;$===y.lines.length-1?w?y.lines.recycle().copyFrom(b):y.lines.push(b.clone()):y.lines.splice($+1,0,b.clone()),w?this.isUserScrolling&&(y.ydisp=Math.max(y.ydisp-1,0)):(y.ybase++,this.isUserScrolling||y.ydisp++)}else{const w=$-_+1;y.lines.shiftElements(_+1,w-1,-1),y.lines.set($,b.clone())}this.isUserScrolling||(y.ydisp=y.ybase),this._onScroll.fire(y.ydisp)}scrollLines(p,m,y){const b=this.buffer;if(p<0){if(b.ydisp===0)return;this.isUserScrolling=!0}else p+b.ydisp>=b.ybase&&(this.isUserScrolling=!1);const _=b.ydisp;b.ydisp=Math.max(Math.min(b.ydisp+p,b.ybase),0),_!==b.ydisp&&(m||this._onScroll.fire(b.ydisp))}scrollPages(p){this.scrollLines(p*(this.rows-1))}scrollToTop(){this.scrollLines(-this.buffer.ydisp)}scrollToBottom(){this.scrollLines(this.buffer.ybase-this.buffer.ydisp)}scrollToLine(p){const m=p-this.buffer.ydisp;m!==0&&this.scrollLines(m)}};g=c([u(0,f.IOptionsService)],g),a.BufferService=g},7994:(s,a)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.CharsetService=void 0,a.CharsetService=class{constructor(){this.glevel=0,this._charsets=[]}reset(){this.charset=void 0,this._charsets=[],this.glevel=0}setgLevel(l){this.glevel=l,this.charset=this._charsets[l]}setgCharset(l,c){this._charsets[l]=c,this.glevel===l&&(this.charset=c)}}},1753:function(s,a,l){var c=this&&this.__decorate||function(b,_,$,w){var S,k=arguments.length,x=k<3?_:w===null?w=Object.getOwnPropertyDescriptor(_,$):w;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")x=Reflect.decorate(b,_,$,w);else for(var C=b.length-1;C>=0;C--)(S=b[C])&&(x=(k<3?S(x):k>3?S(_,$,x):S(_,$))||x);return k>3&&x&&Object.defineProperty(_,$,x),x},u=this&&this.__param||function(b,_){return function($,w){_($,w,b)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreMouseService=void 0;const f=l(2585),h=l(8460),d=l(844),v={NONE:{events:0,restrict:()=>!1},X10:{events:1,restrict:b=>b.button!==4&&b.action===1&&(b.ctrl=!1,b.alt=!1,b.shift=!1,!0)},VT200:{events:19,restrict:b=>b.action!==32},DRAG:{events:23,restrict:b=>b.action!==32||b.button!==3},ANY:{events:31,restrict:b=>!0}};function g(b,_){let $=(b.ctrl?16:0)|(b.shift?4:0)|(b.alt?8:0);return b.button===4?($|=64,$|=b.action):($|=3&b.button,4&b.button&&($|=64),8&b.button&&($|=128),b.action===32?$|=32:b.action!==0||_||($|=3)),$}const p=String.fromCharCode,m={DEFAULT:b=>{const _=[g(b,!1)+32,b.col+32,b.row+32];return _[0]>255||_[1]>255||_[2]>255?"":`\x1B[M${p(_[0])}${p(_[1])}${p(_[2])}`},SGR:b=>{const _=b.action===0&&b.button!==4?"m":"M";return`\x1B[<${g(b,!0)};${b.col};${b.row}${_}`},SGR_PIXELS:b=>{const _=b.action===0&&b.button!==4?"m":"M";return`\x1B[<${g(b,!0)};${b.x};${b.y}${_}`}};let y=class extends d.Disposable{constructor(b,_){super(),this._bufferService=b,this._coreService=_,this._protocols={},this._encodings={},this._activeProtocol="",this._activeEncoding="",this._lastEvent=null,this._onProtocolChange=this.register(new h.EventEmitter),this.onProtocolChange=this._onProtocolChange.event;for(const $ of Object.keys(v))this.addProtocol($,v[$]);for(const $ of Object.keys(m))this.addEncoding($,m[$]);this.reset()}addProtocol(b,_){this._protocols[b]=_}addEncoding(b,_){this._encodings[b]=_}get activeProtocol(){return this._activeProtocol}get areMouseEventsActive(){return this._protocols[this._activeProtocol].events!==0}set activeProtocol(b){if(!this._protocols[b])throw new Error(`unknown protocol "${b}"`);this._activeProtocol=b,this._onProtocolChange.fire(this._protocols[b].events)}get activeEncoding(){return this._activeEncoding}set activeEncoding(b){if(!this._encodings[b])throw new Error(`unknown encoding "${b}"`);this._activeEncoding=b}reset(){this.activeProtocol="NONE",this.activeEncoding="DEFAULT",this._lastEvent=null}triggerMouseEvent(b){if(b.col<0||b.col>=this._bufferService.cols||b.row<0||b.row>=this._bufferService.rows||b.button===4&&b.action===32||b.button===3&&b.action!==32||b.button!==4&&(b.action===2||b.action===3)||(b.col++,b.row++,b.action===32&&this._lastEvent&&this._equalEvents(this._lastEvent,b,this._activeEncoding==="SGR_PIXELS"))||!this._protocols[this._activeProtocol].restrict(b))return!1;const _=this._encodings[this._activeEncoding](b);return _&&(this._activeEncoding==="DEFAULT"?this._coreService.triggerBinaryEvent(_):this._coreService.triggerDataEvent(_,!0)),this._lastEvent=b,!0}explainEvents(b){return{down:!!(1&b),up:!!(2&b),drag:!!(4&b),move:!!(8&b),wheel:!!(16&b)}}_equalEvents(b,_,$){if($){if(b.x!==_.x||b.y!==_.y)return!1}else if(b.col!==_.col||b.row!==_.row)return!1;return b.button===_.button&&b.action===_.action&&b.ctrl===_.ctrl&&b.alt===_.alt&&b.shift===_.shift}};y=c([u(0,f.IBufferService),u(1,f.ICoreService)],y),a.CoreMouseService=y},6975:function(s,a,l){var c=this&&this.__decorate||function(y,b,_,$){var w,S=arguments.length,k=S<3?b:$===null?$=Object.getOwnPropertyDescriptor(b,_):$;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")k=Reflect.decorate(y,b,_,$);else for(var x=y.length-1;x>=0;x--)(w=y[x])&&(k=(S<3?w(k):S>3?w(b,_,k):w(b,_))||k);return S>3&&k&&Object.defineProperty(b,_,k),k},u=this&&this.__param||function(y,b){return function(_,$){b(_,$,y)}};Object.defineProperty(a,"__esModule",{value:!0}),a.CoreService=void 0;const f=l(2585),h=l(8460),d=l(1439),v=l(844),g=Object.freeze({insertMode:!1}),p=Object.freeze({applicationCursorKeys:!1,applicationKeypad:!1,bracketedPasteMode:!1,origin:!1,reverseWraparound:!1,sendFocus:!1,wraparound:!0});let m=class extends v.Disposable{constructor(y,b,_){super(),this._bufferService=y,this._logService=b,this._optionsService=_,this.isCursorInitialized=!1,this.isCursorHidden=!1,this._onData=this.register(new h.EventEmitter),this.onData=this._onData.event,this._onUserInput=this.register(new h.EventEmitter),this.onUserInput=this._onUserInput.event,this._onBinary=this.register(new h.EventEmitter),this.onBinary=this._onBinary.event,this._onRequestScrollToBottom=this.register(new h.EventEmitter),this.onRequestScrollToBottom=this._onRequestScrollToBottom.event,this.modes=(0,d.clone)(g),this.decPrivateModes=(0,d.clone)(p)}reset(){this.modes=(0,d.clone)(g),this.decPrivateModes=(0,d.clone)(p)}triggerDataEvent(y,b=!1){if(this._optionsService.rawOptions.disableStdin)return;const _=this._bufferService.buffer;b&&this._optionsService.rawOptions.scrollOnUserInput&&_.ybase!==_.ydisp&&this._onRequestScrollToBottom.fire(),b&&this._onUserInput.fire(),this._logService.debug(`sending data "${y}"`,()=>y.split("").map($=>$.charCodeAt(0))),this._onData.fire(y)}triggerBinaryEvent(y){this._optionsService.rawOptions.disableStdin||(this._logService.debug(`sending binary "${y}"`,()=>y.split("").map(b=>b.charCodeAt(0))),this._onBinary.fire(y))}};m=c([u(0,f.IBufferService),u(1,f.ILogService),u(2,f.IOptionsService)],m),a.CoreService=m},9074:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.DecorationService=void 0;const c=l(8055),u=l(8460),f=l(844),h=l(6106);let d=0,v=0;class g extends f.Disposable{constructor(){super(),this._decorations=new h.SortedList(y=>y?.marker.line),this._onDecorationRegistered=this.register(new u.EventEmitter),this.onDecorationRegistered=this._onDecorationRegistered.event,this._onDecorationRemoved=this.register(new u.EventEmitter),this.onDecorationRemoved=this._onDecorationRemoved.event,this.register((0,f.toDisposable)(()=>{for(const y of this._decorations.values())this._onDecorationRemoved.fire(y);this.reset()}))}get decorations(){return this._decorations.values()}registerDecoration(y){if(y.marker.isDisposed)return;const b=new p(y);if(b){const _=b.marker.onDispose(()=>b.dispose());b.onDispose(()=>{b&&(this._decorations.delete(b)&&this._onDecorationRemoved.fire(b),_.dispose())}),this._decorations.insert(b),this._onDecorationRegistered.fire(b)}return b}reset(){for(const y of this._decorations.values())y.dispose();this._decorations.clear()}*getDecorationsAtCell(y,b,_){var $,w,S;let k=0,x=0;for(const C of this._decorations.getKeyIterator(b))k=($=C.options.x)!==null&&$!==void 0?$:0,x=k+((w=C.options.width)!==null&&w!==void 0?w:1),y>=k&&y<x&&(!_||((S=C.options.layer)!==null&&S!==void 0?S:"bottom")===_)&&(yield C)}forEachDecorationAtCell(y,b,_,$){this._decorations.forEachByKey(b,w=>{var S,k,x;d=(S=w.options.x)!==null&&S!==void 0?S:0,v=d+((k=w.options.width)!==null&&k!==void 0?k:1),y>=d&&y<v&&(!_||((x=w.options.layer)!==null&&x!==void 0?x:"bottom")===_)&&$(w)})}dispose(){for(const y of this._decorations.values())this._onDecorationRemoved.fire(y);this.reset()}}a.DecorationService=g;class p extends f.Disposable{constructor(y){super(),this.options=y,this.isDisposed=!1,this.onRenderEmitter=this.register(new u.EventEmitter),this.onRender=this.onRenderEmitter.event,this._onDispose=this.register(new u.EventEmitter),this.onDispose=this._onDispose.event,this._cachedBg=null,this._cachedFg=null,this.marker=y.marker,this.options.overviewRulerOptions&&!this.options.overviewRulerOptions.position&&(this.options.overviewRulerOptions.position="full")}get backgroundColorRGB(){return this._cachedBg===null&&(this.options.backgroundColor?this._cachedBg=c.css.toColor(this.options.backgroundColor):this._cachedBg=void 0),this._cachedBg}get foregroundColorRGB(){return this._cachedFg===null&&(this.options.foregroundColor?this._cachedFg=c.css.toColor(this.options.foregroundColor):this._cachedFg=void 0),this._cachedFg}dispose(){this._onDispose.fire(),super.dispose()}}},4348:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.InstantiationService=a.ServiceCollection=void 0;const c=l(2585),u=l(8343);class f{constructor(...d){this._entries=new Map;for(const[v,g]of d)this.set(v,g)}set(d,v){const g=this._entries.get(d);return this._entries.set(d,v),g}forEach(d){for(const[v,g]of this._entries.entries())d(v,g)}has(d){return this._entries.has(d)}get(d){return this._entries.get(d)}}a.ServiceCollection=f,a.InstantiationService=class{constructor(){this._services=new f,this._services.set(c.IInstantiationService,this)}setService(h,d){this._services.set(h,d)}getService(h){return this._services.get(h)}createInstance(h,...d){const v=(0,u.getServiceDependencies)(h).sort((m,y)=>m.index-y.index),g=[];for(const m of v){const y=this._services.get(m.id);if(!y)throw new Error(`[createInstance] ${h.name} depends on UNKNOWN service ${m.id}.`);g.push(y)}const p=v.length>0?v[0].index:d.length;if(d.length!==p)throw new Error(`[createInstance] First service dependency of ${h.name} at position ${p+1} conflicts with ${d.length} static arguments`);return new h(...d,...g)}}},7866:function(s,a,l){var c=this&&this.__decorate||function(g,p,m,y){var b,_=arguments.length,$=_<3?p:y===null?y=Object.getOwnPropertyDescriptor(p,m):y;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")$=Reflect.decorate(g,p,m,y);else for(var w=g.length-1;w>=0;w--)(b=g[w])&&($=(_<3?b($):_>3?b(p,m,$):b(p,m))||$);return _>3&&$&&Object.defineProperty(p,m,$),$},u=this&&this.__param||function(g,p){return function(m,y){p(m,y,g)}};Object.defineProperty(a,"__esModule",{value:!0}),a.LogService=void 0;const f=l(844),h=l(2585),d={debug:h.LogLevelEnum.DEBUG,info:h.LogLevelEnum.INFO,warn:h.LogLevelEnum.WARN,error:h.LogLevelEnum.ERROR,off:h.LogLevelEnum.OFF};let v=class extends f.Disposable{constructor(g){super(),this._optionsService=g,this.logLevel=h.LogLevelEnum.OFF,this._updateLogLevel(),this.register(this._optionsService.onSpecificOptionChange("logLevel",()=>this._updateLogLevel()))}_updateLogLevel(){this.logLevel=d[this._optionsService.rawOptions.logLevel]}_evalLazyOptionalParams(g){for(let p=0;p<g.length;p++)typeof g[p]=="function"&&(g[p]=g[p]())}_log(g,p,m){this._evalLazyOptionalParams(m),g.call(console,"xterm.js: "+p,...m)}debug(g,...p){this.logLevel<=h.LogLevelEnum.DEBUG&&this._log(console.log,g,p)}info(g,...p){this.logLevel<=h.LogLevelEnum.INFO&&this._log(console.info,g,p)}warn(g,...p){this.logLevel<=h.LogLevelEnum.WARN&&this._log(console.warn,g,p)}error(g,...p){this.logLevel<=h.LogLevelEnum.ERROR&&this._log(console.error,g,p)}};v=c([u(0,h.IOptionsService)],v),a.LogService=v},7302:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.OptionsService=a.DEFAULT_OPTIONS=void 0;const c=l(8460),u=l(6114),f=l(844);a.DEFAULT_OPTIONS={cols:80,rows:24,cursorBlink:!1,cursorStyle:"block",cursorWidth:1,customGlyphs:!0,drawBoldTextInBrightColors:!0,fastScrollModifier:"alt",fastScrollSensitivity:5,fontFamily:"courier-new, courier, monospace",fontSize:15,fontWeight:"normal",fontWeightBold:"bold",lineHeight:1,letterSpacing:0,linkHandler:null,logLevel:"info",scrollback:1e3,scrollOnUserInput:!0,scrollSensitivity:1,screenReaderMode:!1,smoothScrollDuration:0,macOptionIsMeta:!1,macOptionClickForcesSelection:!1,minimumContrastRatio:1,disableStdin:!1,allowProposedApi:!1,allowTransparency:!1,tabStopWidth:8,theme:{},rightClickSelectsWord:u.isMac,windowOptions:{},windowsMode:!1,wordSeparator:" ()[]{}',\"`",altClickMovesCursor:!0,convertEol:!1,termName:"xterm",cancelEvents:!1,overviewRulerWidth:0};const h=["normal","bold","100","200","300","400","500","600","700","800","900"];class d extends f.Disposable{constructor(g){super(),this._onOptionChange=this.register(new c.EventEmitter),this.onOptionChange=this._onOptionChange.event;const p=Object.assign({},a.DEFAULT_OPTIONS);for(const m in g)if(m in p)try{const y=g[m];p[m]=this._sanitizeAndValidateOption(m,y)}catch(y){console.error(y)}this.rawOptions=p,this.options=Object.assign({},p),this._setupOptions()}onSpecificOptionChange(g,p){return this.onOptionChange(m=>{m===g&&p(this.rawOptions[g])})}onMultipleOptionChange(g,p){return this.onOptionChange(m=>{g.indexOf(m)!==-1&&p()})}_setupOptions(){const g=m=>{if(!(m in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${m}"`);return this.rawOptions[m]},p=(m,y)=>{if(!(m in a.DEFAULT_OPTIONS))throw new Error(`No option with key "${m}"`);y=this._sanitizeAndValidateOption(m,y),this.rawOptions[m]!==y&&(this.rawOptions[m]=y,this._onOptionChange.fire(m))};for(const m in this.rawOptions){const y={get:g.bind(this,m),set:p.bind(this,m)};Object.defineProperty(this.options,m,y)}}_sanitizeAndValidateOption(g,p){switch(g){case"cursorStyle":if(p||(p=a.DEFAULT_OPTIONS[g]),!function(m){return m==="block"||m==="underline"||m==="bar"}(p))throw new Error(`"${p}" is not a valid value for ${g}`);break;case"wordSeparator":p||(p=a.DEFAULT_OPTIONS[g]);break;case"fontWeight":case"fontWeightBold":if(typeof p=="number"&&1<=p&&p<=1e3)break;p=h.includes(p)?p:a.DEFAULT_OPTIONS[g];break;case"cursorWidth":p=Math.floor(p);case"lineHeight":case"tabStopWidth":if(p<1)throw new Error(`${g} cannot be less than 1, value: ${p}`);break;case"minimumContrastRatio":p=Math.max(1,Math.min(21,Math.round(10*p)/10));break;case"scrollback":if((p=Math.min(p,4294967295))<0)throw new Error(`${g} cannot be less than 0, value: ${p}`);break;case"fastScrollSensitivity":case"scrollSensitivity":if(p<=0)throw new Error(`${g} cannot be less than or equal to 0, value: ${p}`);case"rows":case"cols":if(!p&&p!==0)throw new Error(`${g} must be numeric, value: ${p}`)}return p}}a.OptionsService=d},2660:function(s,a,l){var c=this&&this.__decorate||function(d,v,g,p){var m,y=arguments.length,b=y<3?v:p===null?p=Object.getOwnPropertyDescriptor(v,g):p;if(typeof Reflect=="object"&&typeof Reflect.decorate=="function")b=Reflect.decorate(d,v,g,p);else for(var _=d.length-1;_>=0;_--)(m=d[_])&&(b=(y<3?m(b):y>3?m(v,g,b):m(v,g))||b);return y>3&&b&&Object.defineProperty(v,g,b),b},u=this&&this.__param||function(d,v){return function(g,p){v(g,p,d)}};Object.defineProperty(a,"__esModule",{value:!0}),a.OscLinkService=void 0;const f=l(2585);let h=class{constructor(d){this._bufferService=d,this._nextId=1,this._entriesWithId=new Map,this._dataByLinkId=new Map}registerLink(d){const v=this._bufferService.buffer;if(d.id===void 0){const _=v.addMarker(v.ybase+v.y),$={data:d,id:this._nextId++,lines:[_]};return _.onDispose(()=>this._removeMarkerFromLink($,_)),this._dataByLinkId.set($.id,$),$.id}const g=d,p=this._getEntryIdKey(g),m=this._entriesWithId.get(p);if(m)return this.addLineToLink(m.id,v.ybase+v.y),m.id;const y=v.addMarker(v.ybase+v.y),b={id:this._nextId++,key:this._getEntryIdKey(g),data:g,lines:[y]};return y.onDispose(()=>this._removeMarkerFromLink(b,y)),this._entriesWithId.set(b.key,b),this._dataByLinkId.set(b.id,b),b.id}addLineToLink(d,v){const g=this._dataByLinkId.get(d);if(g&&g.lines.every(p=>p.line!==v)){const p=this._bufferService.buffer.addMarker(v);g.lines.push(p),p.onDispose(()=>this._removeMarkerFromLink(g,p))}}getLinkData(d){var v;return(v=this._dataByLinkId.get(d))===null||v===void 0?void 0:v.data}_getEntryIdKey(d){return`${d.id};;${d.uri}`}_removeMarkerFromLink(d,v){const g=d.lines.indexOf(v);g!==-1&&(d.lines.splice(g,1),d.lines.length===0&&(d.data.id!==void 0&&this._entriesWithId.delete(d.key),this._dataByLinkId.delete(d.id)))}};h=c([u(0,f.IBufferService)],h),a.OscLinkService=h},8343:(s,a)=>{function l(c,u,f){u.di$target===u?u.di$dependencies.push({id:c,index:f}):(u.di$dependencies=[{id:c,index:f}],u.di$target=u)}Object.defineProperty(a,"__esModule",{value:!0}),a.createDecorator=a.getServiceDependencies=a.serviceRegistry=void 0,a.serviceRegistry=new Map,a.getServiceDependencies=function(c){return c.di$dependencies||[]},a.createDecorator=function(c){if(a.serviceRegistry.has(c))return a.serviceRegistry.get(c);const u=function(f,h,d){if(arguments.length!==3)throw new Error("@IServiceName-decorator can only be used to decorate a parameter");l(u,f,d)};return u.toString=()=>c,a.serviceRegistry.set(c,u),u}},2585:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.IDecorationService=a.IUnicodeService=a.IOscLinkService=a.IOptionsService=a.ILogService=a.LogLevelEnum=a.IInstantiationService=a.ICharsetService=a.ICoreService=a.ICoreMouseService=a.IBufferService=void 0;const c=l(8343);var u;a.IBufferService=(0,c.createDecorator)("BufferService"),a.ICoreMouseService=(0,c.createDecorator)("CoreMouseService"),a.ICoreService=(0,c.createDecorator)("CoreService"),a.ICharsetService=(0,c.createDecorator)("CharsetService"),a.IInstantiationService=(0,c.createDecorator)("InstantiationService"),(u=a.LogLevelEnum||(a.LogLevelEnum={}))[u.DEBUG=0]="DEBUG",u[u.INFO=1]="INFO",u[u.WARN=2]="WARN",u[u.ERROR=3]="ERROR",u[u.OFF=4]="OFF",a.ILogService=(0,c.createDecorator)("LogService"),a.IOptionsService=(0,c.createDecorator)("OptionsService"),a.IOscLinkService=(0,c.createDecorator)("OscLinkService"),a.IUnicodeService=(0,c.createDecorator)("UnicodeService"),a.IDecorationService=(0,c.createDecorator)("DecorationService")},1480:(s,a,l)=>{Object.defineProperty(a,"__esModule",{value:!0}),a.UnicodeService=void 0;const c=l(8460),u=l(225);a.UnicodeService=class{constructor(){this._providers=Object.create(null),this._active="",this._onChange=new c.EventEmitter,this.onChange=this._onChange.event;const f=new u.UnicodeV6;this.register(f),this._active=f.version,this._activeProvider=f}dispose(){this._onChange.dispose()}get versions(){return Object.keys(this._providers)}get activeVersion(){return this._active}set activeVersion(f){if(!this._providers[f])throw new Error(`unknown Unicode version "${f}"`);this._active=f,this._activeProvider=this._providers[f],this._onChange.fire(f)}register(f){this._providers[f.version]=f}wcwidth(f){return this._activeProvider.wcwidth(f)}getStringCellWidth(f){let h=0;const d=f.length;for(let v=0;v<d;++v){let g=f.charCodeAt(v);if(55296<=g&&g<=56319){if(++v>=d)return h+this.wcwidth(g);const p=f.charCodeAt(v);56320<=p&&p<=57343?g=1024*(g-55296)+p-56320+65536:h+=this.wcwidth(p)}h+=this.wcwidth(g)}return h}}}},n={};function i(s){var a=n[s];if(a!==void 0)return a.exports;var l=n[s]={exports:{}};return r[s].call(l.exports,l,l.exports,i),l.exports}var o={};return(()=>{var s=o;Object.defineProperty(s,"__esModule",{value:!0}),s.Terminal=void 0;const a=i(3236),l=i(9042),c=i(7975),u=i(7090),f=i(5741),h=i(8285),d=["cols","rows"];s.Terminal=class{constructor(v){this._core=new a.Terminal(v),this._addonManager=new f.AddonManager,this._publicOptions=Object.assign({},this._core.options);const g=m=>this._core.options[m],p=(m,y)=>{this._checkReadonlyOptions(m),this._core.options[m]=y};for(const m in this._core.options){const y={get:g.bind(this,m),set:p.bind(this,m)};Object.defineProperty(this._publicOptions,m,y)}}_checkReadonlyOptions(v){if(d.includes(v))throw new Error(`Option "${v}" can only be set in the constructor`)}_checkProposedApi(){if(!this._core.optionsService.rawOptions.allowProposedApi)throw new Error("You must set the allowProposedApi option to true to use proposed API")}get onBell(){return this._core.onBell}get onBinary(){return this._core.onBinary}get onCursorMove(){return this._core.onCursorMove}get onData(){return this._core.onData}get onKey(){return this._core.onKey}get onLineFeed(){return this._core.onLineFeed}get onRender(){return this._core.onRender}get onResize(){return this._core.onResize}get onScroll(){return this._core.onScroll}get onSelectionChange(){return this._core.onSelectionChange}get onTitleChange(){return this._core.onTitleChange}get onWriteParsed(){return this._core.onWriteParsed}get element(){return this._core.element}get parser(){return this._parser||(this._parser=new c.ParserApi(this._core)),this._parser}get unicode(){return this._checkProposedApi(),new u.UnicodeApi(this._core)}get textarea(){return this._core.textarea}get rows(){return this._core.rows}get cols(){return this._core.cols}get buffer(){return this._buffer||(this._buffer=new h.BufferNamespaceApi(this._core)),this._buffer}get markers(){return this._checkProposedApi(),this._core.markers}get modes(){const v=this._core.coreService.decPrivateModes;let g="none";switch(this._core.coreMouseService.activeProtocol){case"X10":g="x10";break;case"VT200":g="vt200";break;case"DRAG":g="drag";break;case"ANY":g="any"}return{applicationCursorKeysMode:v.applicationCursorKeys,applicationKeypadMode:v.applicationKeypad,bracketedPasteMode:v.bracketedPasteMode,insertMode:this._core.coreService.modes.insertMode,mouseTrackingMode:g,originMode:v.origin,reverseWraparoundMode:v.reverseWraparound,sendFocusMode:v.sendFocus,wraparoundMode:v.wraparound}}get options(){return this._publicOptions}set options(v){for(const g in v)this._publicOptions[g]=v[g]}blur(){this._core.blur()}focus(){this._core.focus()}resize(v,g){this._verifyIntegers(v,g),this._core.resize(v,g)}open(v){this._core.open(v)}attachCustomKeyEventHandler(v){this._core.attachCustomKeyEventHandler(v)}registerLinkProvider(v){return this._core.registerLinkProvider(v)}registerCharacterJoiner(v){return this._checkProposedApi(),this._core.registerCharacterJoiner(v)}deregisterCharacterJoiner(v){this._checkProposedApi(),this._core.deregisterCharacterJoiner(v)}registerMarker(v=0){return this._verifyIntegers(v),this._core.addMarker(v)}registerDecoration(v){var g,p,m;return this._checkProposedApi(),this._verifyPositiveIntegers((g=v.x)!==null&&g!==void 0?g:0,(p=v.width)!==null&&p!==void 0?p:0,(m=v.height)!==null&&m!==void 0?m:0),this._core.registerDecoration(v)}hasSelection(){return this._core.hasSelection()}select(v,g,p){this._verifyIntegers(v,g,p),this._core.select(v,g,p)}getSelection(){return this._core.getSelection()}getSelectionPosition(){return this._core.getSelectionPosition()}clearSelection(){this._core.clearSelection()}selectAll(){this._core.selectAll()}selectLines(v,g){this._verifyIntegers(v,g),this._core.selectLines(v,g)}dispose(){this._addonManager.dispose(),this._core.dispose()}scrollLines(v){this._verifyIntegers(v),this._core.scrollLines(v)}scrollPages(v){this._verifyIntegers(v),this._core.scrollPages(v)}scrollToTop(){this._core.scrollToTop()}scrollToBottom(){this._core.scrollToBottom()}scrollToLine(v){this._verifyIntegers(v),this._core.scrollToLine(v)}clear(){this._core.clear()}write(v,g){this._core.write(v,g)}writeln(v,g){this._core.write(v),this._core.write(`\r
|
|
259
|
-
`,g)}paste(v){this._core.paste(v)}refresh(v,g){this._verifyIntegers(v,g),this._core.refresh(v,g)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(v){return this._addonManager.loadAddon(this,v)}static get strings(){return l}_verifyIntegers(...v){for(const g of v)if(g===1/0||isNaN(g)||g%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...v){for(const g of v)if(g&&(g===1/0||isNaN(g)||g%1!=0||g<0))throw new Error("This API only accepts positive integers")}}})(),o})()})})(wzt);var aie={},$zt={get exports(){return aie},set exports(e){aie=e}};(function(e,t){(function(r,n){e.exports=n()})(self,function(){return(()=>{var r={};return(()=>{var n=r;Object.defineProperty(n,"__esModule",{value:!0}),n.FitAddon=void 0,n.FitAddon=class{constructor(){}activate(i){this._terminal=i}dispose(){}fit(){const i=this.proposeDimensions();if(!i||!this._terminal||isNaN(i.cols)||isNaN(i.rows))return;const o=this._terminal._core;this._terminal.rows===i.rows&&this._terminal.cols===i.cols||(o._renderService.clear(),this._terminal.resize(i.cols,i.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const i=this._terminal._core,o=i._renderService.dimensions;if(o.css.cell.width===0||o.css.cell.height===0)return;const s=this._terminal.options.scrollback===0?0:i.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),l=parseInt(a.getPropertyValue("height")),c=Math.max(0,parseInt(a.getPropertyValue("width"))),u=window.getComputedStyle(this._terminal.element),f=l-(parseInt(u.getPropertyValue("padding-top"))+parseInt(u.getPropertyValue("padding-bottom"))),h=c-(parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("padding-left")))-s;return{cols:Math.max(2,Math.floor(h/o.css.cell.width)),rows:Math.max(1,Math.floor(f/o.css.cell.height))}}}})(),r})()})})($zt);const kzt=ri({__name:"NButton",props:{to:null,icon:null},setup(e){return(t,r)=>{const n=Zse;return Hn(),ws(iwe(e.to?pn(ASe):"button"),ES({to:e.to},t.$attrs,{class:"n-transition n-button n-button-base hover:n-button-hover active:n-button-active focus-visible:n-focus-base n-disabled:n-disabled"}),{default:_s(()=>[Nf(t.$slots,"icon",{},()=>[e.icon?(Hn(),ws(n,{key:0,icon:e.icon,class:"n-button-icon"},null,8,["icon"])):Gp("",!0)]),Nf(t.$slots,"default")]),_:3},16,["to"])}}}),xzt={p4:"",flex:"~ col gap-1"},Szt=Jo("h3",{class:"text-lg font-medium leading-6"}," Restart ",-1),Czt={op50:""},Ezt={flex:"~ gap-3","justify-end":"",mt2:""},jzt=ri({__name:"RestartDialogs",setup(e){const t=Jn(),r=cEe(),n=sh(),i=obt();return t.hook("devtools:terminal:exit",({id:o,code:s})=>{if(s===0){const a=r.value.find(l=>l.id===o);a&&(r.value=r.value.filter(l=>l.id!==o),i.start(a.message).then(l=>{l&&(Ss.restartNuxt(),setTimeout(()=>{n.value?.reloadPage()},500))}))}}),(o,s)=>{const a=kzt,l=ibt;return Hn(),ws(pn(i),null,{default:_s(({resolve:c,args:u})=>[Kr(l,{"model-value":!0,onClose:f=>c(!1)},{default:_s(()=>[Jo("div",xzt,[Szt,Jo("p",Czt,fie(u[0]),1),Jo("div",Ezt,[Kr(a,{onClick:f=>c(!1)},{default:_s(()=>[Kp(" Cancel ")]),_:2},1032,["onClick"]),Kr(a,{n:"solid primary",onClick:f=>c(!0)},{default:_s(()=>[Kp(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}});function Ozt(){const e=Jn(),t=Ia();Object.assign(_se,{async refresh(r){e.hooks.callHookParallel("app:data:refresh",[r])},async callHook(r,...n){e.hooks.callHookParallel(r,...n)},async onTerminalData(r){e.hooks.callHookParallel("devtools:terminal:data",r)},async onTerminalExit(r){e.hooks.callHookParallel("devtools:terminal:exit",r)},async navigateTo(r){t.push(r)}})}const Tzt=ri({__name:"app",setup(e){In(()=>import("./unocss-runtime.
|
|
259
|
+
`,g)}paste(v){this._core.paste(v)}refresh(v,g){this._verifyIntegers(v,g),this._core.refresh(v,g)}reset(){this._core.reset()}clearTextureAtlas(){this._core.clearTextureAtlas()}loadAddon(v){return this._addonManager.loadAddon(this,v)}static get strings(){return l}_verifyIntegers(...v){for(const g of v)if(g===1/0||isNaN(g)||g%1!=0)throw new Error("This API only accepts integers")}_verifyPositiveIntegers(...v){for(const g of v)if(g&&(g===1/0||isNaN(g)||g%1!=0||g<0))throw new Error("This API only accepts positive integers")}}})(),o})()})})(wzt);var aie={},$zt={get exports(){return aie},set exports(e){aie=e}};(function(e,t){(function(r,n){e.exports=n()})(self,function(){return(()=>{var r={};return(()=>{var n=r;Object.defineProperty(n,"__esModule",{value:!0}),n.FitAddon=void 0,n.FitAddon=class{constructor(){}activate(i){this._terminal=i}dispose(){}fit(){const i=this.proposeDimensions();if(!i||!this._terminal||isNaN(i.cols)||isNaN(i.rows))return;const o=this._terminal._core;this._terminal.rows===i.rows&&this._terminal.cols===i.cols||(o._renderService.clear(),this._terminal.resize(i.cols,i.rows))}proposeDimensions(){if(!this._terminal||!this._terminal.element||!this._terminal.element.parentElement)return;const i=this._terminal._core,o=i._renderService.dimensions;if(o.css.cell.width===0||o.css.cell.height===0)return;const s=this._terminal.options.scrollback===0?0:i.viewport.scrollBarWidth,a=window.getComputedStyle(this._terminal.element.parentElement),l=parseInt(a.getPropertyValue("height")),c=Math.max(0,parseInt(a.getPropertyValue("width"))),u=window.getComputedStyle(this._terminal.element),f=l-(parseInt(u.getPropertyValue("padding-top"))+parseInt(u.getPropertyValue("padding-bottom"))),h=c-(parseInt(u.getPropertyValue("padding-right"))+parseInt(u.getPropertyValue("padding-left")))-s;return{cols:Math.max(2,Math.floor(h/o.css.cell.width)),rows:Math.max(1,Math.floor(f/o.css.cell.height))}}}})(),r})()})})($zt);const kzt=ri({__name:"NButton",props:{to:null,icon:null},setup(e){return(t,r)=>{const n=Zse;return Hn(),ws(iwe(e.to?pn(ASe):"button"),ES({to:e.to},t.$attrs,{class:"n-transition n-button n-button-base hover:n-button-hover active:n-button-active focus-visible:n-focus-base n-disabled:n-disabled"}),{default:_s(()=>[Nf(t.$slots,"icon",{},()=>[e.icon?(Hn(),ws(n,{key:0,icon:e.icon,class:"n-button-icon"},null,8,["icon"])):Gp("",!0)]),Nf(t.$slots,"default")]),_:3},16,["to"])}}}),xzt={p4:"",flex:"~ col gap-1"},Szt=Jo("h3",{class:"text-lg font-medium leading-6"}," Restart ",-1),Czt={op50:""},Ezt={flex:"~ gap-3","justify-end":"",mt2:""},jzt=ri({__name:"RestartDialogs",setup(e){const t=Jn(),r=cEe(),n=sh(),i=obt();return t.hook("devtools:terminal:exit",({id:o,code:s})=>{if(s===0){const a=r.value.find(l=>l.id===o);a&&(r.value=r.value.filter(l=>l.id!==o),i.start(a.message).then(l=>{l&&(Ss.restartNuxt(),setTimeout(()=>{n.value?.reloadPage()},500))}))}}),(o,s)=>{const a=kzt,l=ibt;return Hn(),ws(pn(i),null,{default:_s(({resolve:c,args:u})=>[Kr(l,{"model-value":!0,onClose:f=>c(!1)},{default:_s(()=>[Jo("div",xzt,[Szt,Jo("p",Czt,fie(u[0]),1),Jo("div",Ezt,[Kr(a,{onClick:f=>c(!1)},{default:_s(()=>[Kp(" Cancel ")]),_:2},1032,["onClick"]),Kr(a,{n:"solid primary",onClick:f=>c(!0)},{default:_s(()=>[Kp(" Update ")]),_:2},1032,["onClick"])])])]),_:2},1032,["onClose"])]),_:1})}}});function Ozt(){const e=Jn(),t=Ia();Object.assign(_se,{async refresh(r){e.hooks.callHookParallel("app:data:refresh",[r])},async callHook(r,...n){e.hooks.callHookParallel(r,...n)},async onTerminalData(r){e.hooks.callHookParallel("devtools:terminal:data",r)},async onTerminalExit(r){e.hooks.callHookParallel("devtools:terminal:exit",r)},async navigateTo(r){t.push(r)}})}const Tzt=ri({__name:"app",setup(e){In(()=>import("./unocss-runtime.5708ce83.js"),[],import.meta.url),Foe({title:"Nuxt DevTools",meta:[{name:"viewport",content:"width=device-width, initial-scale=1"}],link:[{rel:"icon",type:"image/svg+xml",href:"/nuxt.svg"}]}),Ozt();const t=sh();addEventListener("keypress",n=>{n.code==="KeyD"&&n.altKey&&(t.value?.closeDevTools(),n.preventDefault())});const{scale:r}=Pse();return oh(()=>{const n=T2e();uk(()=>{window.__NUXT_DEVTOOLS__=n.value}),uk(()=>{document.body.style.fontSize=`${r.value*15}px`})}),(n,i)=>{const o=Gje,s=eOe,a=oOe,l=fOe,c=jzt;return Hn(),_l(Do,null,[Kr(o),Kr(a,null,{default:_s(()=>[Kr(s)]),_:1}),Kr(l),Kr(c)],64)}}}),lie={__name:"nuxt-root",setup(e){const t=Y_e(()=>In(()=>import("./error-component.0a7a48e4.js"),[],import.meta.url).then(a=>a.default||a)),r=()=>null,n=Jn(),i=n.deferHydration();_p("_route",ese()),n.hooks.callHookWith(a=>a.map(l=>l()),"vue:setup");const o=PS();Yie((a,l,c)=>{n.hooks.callHook("vue:error",a,l,c).catch(u=>console.error("[nuxt] Error in `vue:error` hook",u)),gSe(a)&&(a.fatal||a.unhandled)&&Vc(n,Kv,[a])});const{islandContext:s}=!1;return(a,l)=>(Hn(),ws(Bie,{onResolve:pn(i)},{default:_s(()=>[pn(o)?(Hn(),ws(pn(t),{key:0,error:pn(o)},null,8,["error"])):pn(s)?(Hn(),ws(pn(r),{key:1,context:pn(s)},null,8,["context"])):(Hn(),ws(pn(Tzt),{key:2}))]),_:1},8,["onResolve"]))}};globalThis.$fetch||(globalThis.$fetch=joe.create({baseURL:eke()}));let cie;const Pzt=gke(Kje);cie=async function(){const r=Boolean(window.__NUXT__?.serverRendered)?p$e(lie):boe(lie),n=dke({vueApp:r});try{await pke(n,Pzt)}catch(i){await n.callHook("app:error",i),n.payload.error=n.payload.error||i}try{await n.hooks.callHook("app:created",r),await n.hooks.callHook("app:beforeMount",r),r.mount("#"+nxe),await n.hooks.callHook("app:mounted",r),await Eu()}catch(i){await n.callHook("app:error",i),n.payload.error=n.payload.error||i}},cie().catch(e=>{console.error("Error while mounting app:",e)});export{joe as $,cHt as A,Zzt as B,Ss as C,lHt as D,er as E,Do as F,Gzt as G,Xn as H,Zse as I,Nf as J,Wp as K,ise as L,sEe as M,sHt as N,iHt as O,oh as P,Dt as Q,zn as R,Pse as S,Bzt as T,D2e as U,Ia as V,nHt as W,iwe as X,Xzt as Y,Kzt as Z,In as _,ri as a,OS as a0,ES as a1,El as a2,Yzt as a3,Eu as a4,Cy as a5,T2e as a6,ese as a7,uHt as a8,oHt as a9,FT as aA,M_e as aB,D_e as aC,Azt as aD,dN as aE,x1t as aF,sie as aG,aie as aH,lEe as aI,No as aJ,tHt as aK,Mzt as aL,o$e as aM,a$e as aN,hHt as aO,Vzt as aP,eHt as aQ,Ml as aR,Ws as aS,Foe as aT,aHt as aa,Fzt as ab,zzt as ac,Izt as ad,rHt as ae,ASe as af,fHt as ag,Wzt as ah,Nzt as ai,eae as aj,Jn as ak,wSe as al,cEe as am,obt as an,ibt as ao,Hzt as ap,Dzt as aq,j2e as ar,Lzt as as,oEe as at,Uzt as au,h$e as av,dHt as aw,Jzt as ax,ZCe as ay,uCe as az,sh as b,ws as c,Y_e as d,eu as e,_l as f,hoe as g,Jo as h,Kr as i,eEe as j,kzt as k,Kp as l,Wr as m,Rbe as n,Hn as o,Qzt as p,ad as q,uk as r,Hp as s,fie as t,pn as u,Rzt as v,_s as w,Cl as x,Gp as y,qzt as z};
|